query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Tests that an image with the sizes attribute is output correctly.
public function testThemeImageWithSizes() { // Test with multipliers. $sizes = '(max-width: ' . rand(10, 30) . 'em) 100vw, (max-width: ' . rand(30, 50) . 'em) 50vw, 30vw'; $image = [ '#theme' => 'image', '#sizes' => $sizes, '#uri' => reset($this->testImages), '#width' => rand(0, 1000) . 'px', '#height' => rand(0, 500) . 'px', '#alt' => $this->randomMachineName(), '#title' => $this->randomMachineName(), ]; $this->render($image); // Make sure sizes is set. $this->assertRaw($sizes, 'Sizes is set correctly.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGetImageSize()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image size to be 516x710 pixels.'\n );\n\n if (extension_loaded('imagick')) {\n $img = new P4Cms_Image();\n try {\n $img->getImageSize();\n $this->fail('Expected failure with empty Imagick object.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame(\n $e->getMessage(),\n \"Can not get image size: no image data were set.\"\n );\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n }", "public function testMultipleSizesAsString() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200,400,600'));\n }", "function has_image_size($name)\n {\n }", "public function test_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50 );\n\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t\t$imagick_image_editor->get_size()\n\t\t);\n\t}", "public function add_image_sizes() {\n\t\tif ( ! is_array( $this->image_sizes ) || empty( $this->image_sizes ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ( $this->image_sizes as $key => $value ) {\n\t\t\tforeach ( $value as $name => $attributes ) {\n\t\t\t\tif ( empty( $attributes ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ( isset( $attributes->width ) && ! empty( $attributes->width ) && isset( $attributes->height ) && ! empty( $attributes->height ) && isset( $attributes->crop ) ) {\n\t\t\t\t\tadd_image_size( $name, $attributes->width, $attributes->height, $attributes->crop );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function test_resize() {\n\n\t\t$file = DIR_TESTDATA . '/images/gradient-square.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50 );\n\n\t\t$this->assertEquals( array( 'width' => 50, 'height' => 50 ), $imagick_image_editor->get_size() );\n\t}", "function testImageSize()\r\n {\r\n $nautilus = $this->nautilus->uploadDir('/tmp');\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 33122));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n $this->assertEquals('/tmp/nautilus_test_image.jpeg',$upload);\r\n\r\n /*give it invalid 'max' size*/\r\n $nautilus = $this->nautilus;\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 22));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $this->setExpectedException('Image\\ImageException','File sizes must be between 1 to 22 bytes');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n }", "public function test_single_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t# First, check to see if returned array is as expected\n\t\t$expected_array = array(\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\t// Now, verify real dimensions are as expected\n\t\t$image_path = DIR_TESTDATA . '/images/' . $resized[0]['file'];\n\t\t$this->assertImageDimensions(\n\t\t\t$image_path,\n\t\t\t$expected_array[0]['width'],\n\t\t\t$expected_array[0]['height']\n\t\t);\n\t}", "public function size()\n { \n $props = $this->uri->ruri_to_assoc();\n\n if (!isset($props['o'])) exit(0);\n $w = -1;\n $h = -1;\n $m = 0;\n if (isset($props['w'])) $w = $props['w'];\n if (isset($props['h'])) $h = $props['h'];\n if (isset($props['m'])) $m = $props['m'];\n\n $this->img->set_img($props['o']);\n $this->img->set_size($w, $h, $m);\n $this->img->set_square($m);\n $this->img->get_img();\n }", "public function testMultipleSizesAsStringWrappedInArray() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor(['200,400,600']));\n }", "function imageCheck($target,$width=1,$height=1){\n if($width==1&&$height==1){\n return is_array(getimagesize($target));\n }else{\n $rvalue = false;\n if(is_array(getimagesize($target))){\n try {\n $img = new Imagick($target);\n if(strtoupper($img->getImageFormat())=='GIF'){\n $img = $img->coalesceImages();\n $img = $img->coalesceImages();\n do {\n if($width==0||$height==0)\n $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1);\n else $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1,true);\n } while ($img->nextImage());\n $img = $img->deconstructImages();\n $img->writeImages($target,true);\n }else{\n if($width==0||$height==0)\n $img->thumbnailImage($width, $height);\n else $img->thumbnailImage($width, $height,true);\n $img->writeImage($target);\n }\n $img->destroy();\n $rvalue = true;\n } catch (Exception $e) {\n }\n }\n return $rvalue;\n }\n}", "public function test_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\n\t\t\t/**\n\t\t\t * #0 - 10x10 resize, no cropping.\n\t\t\t * By aspect, should be 10x6 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 10,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #1 - 75x50 resize, with cropping.\n\t\t\t * Output dimensions should be 75x50\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #2 - 20 pixel max height, no cropping.\n\t\t\t * By aspect, should be 30x20 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 9999, # Arbitrary High Value\n\t\t\t\t'height' => 20,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #3 - 45 pixel max height, with cropping.\n\t\t\t * By aspect, should be 45x400 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 9999, # Arbitrary High Value\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #4 - 50 pixel max width, no cropping.\n\t\t\t * By aspect, should be 50x33 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #5 - 55 pixel max width, no cropping, null height\n\t\t\t * By aspect, should be 55x36 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => null,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #6 - 55 pixel max height, no cropping, no width specified.\n\t\t\t * By aspect, should be 82x55 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'height' => 55,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #7 - 60 pixel max height, no cropping, null width.\n\t\t\t * By aspect, should be 90x60 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => 60,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #8 - 70 pixel max height, no cropping, negative width.\n\t\t\t * By aspect, should be 105x70 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => -9999, # Arbitrary Negative Value\n\t\t\t\t'height' => 70,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #9 - 200 pixel max width, no cropping, negative height.\n\t\t\t * By aspect, should be 200x133 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => -9999, # Arbitrary Negative Value\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t$expected_array = array(\n\n\t\t\t// #0\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-10x7.jpg',\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 7,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-10x7.jpg' ),\n\t\t\t),\n\n\t\t\t// #1\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-75x50.jpg',\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-75x50.jpg' ),\n\t\t\t),\n\n\t\t\t// #2\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-30x20.jpg',\n\t\t\t\t'width' => 30,\n\t\t\t\t'height' => 20,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-30x20.jpg' ),\n\t\t\t),\n\n\t\t\t// #3\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-45x400.jpg',\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 400,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-45x400.jpg' ),\n\t\t\t),\n\n\t\t\t// #4\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\n\t\t\t// #5\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-55x37.jpg',\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => 37,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-55x37.jpg' ),\n\t\t\t),\n\n\t\t\t// #6\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-83x55.jpg',\n\t\t\t\t'width' => 83,\n\t\t\t\t'height' => 55,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-83x55.jpg' ),\n\t\t\t),\n\n\t\t\t// #7\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-90x60.jpg',\n\t\t\t\t'width' => 90,\n\t\t\t\t'height' => 60,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-90x60.jpg' ),\n\t\t\t),\n\n\t\t\t// #8\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-105x70.jpg',\n\t\t\t\t'width' => 105,\n\t\t\t\t'height' => 70,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-105x70.jpg' ),\n\t\t\t),\n\n\t\t\t// #9\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-200x133.jpg',\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => 133,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-200x133.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertNotNull( $resized );\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\tforeach ( $resized as $key => $image_data ) {\n\t\t\t$image_path = DIR_TESTDATA . '/images/' . $image_data['file'];\n\n\t\t\t// Now, verify real dimensions are as expected\n\t\t\t$this->assertImageDimensions(\n\t\t\t\t$image_path,\n\t\t\t\t$expected_array[ $key ]['width'],\n\t\t\t\t$expected_array[ $key ]['height']\n\t\t\t);\n\t\t}\n\t}", "public function testRangeWithIntermediateSizes() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 300],\n ['width' => 400],\n ['width' => 500],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,3'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 280],\n ['width' => 360],\n ['width' => 440],\n ['width' => 520],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,4'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 267],\n ['width' => 333],\n ['width' => 400],\n ['width' => 467],\n ['width' => 533],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,5'));\n }", "public function testResizeIfNeededNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/tall-image.jpg', true);\n $this->assertTrue($resized);\n }", "function register_image_sizes() {\n\t}", "public function register_image_sizes() {\n\n }", "public function test_resize_and_crop() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50, true );\n\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'width' => 100,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t\t$imagick_image_editor->get_size()\n\t\t);\n\t}", "public function GetImageSize() {\n\n return $this->IsValid()\n ? @getimagesize($this->TmpName) // @ - prevent warning on reading non-images\n : false;\n }", "public function testGetImageInfoFromBlob()\n {\n $imgBlob = file_get_contents($this->_testImagePath);\n $imgInfo = Tinebase_ImageHelper::getImageInfoFromBlob($imgBlob);\n \n $this->assertEquals($this->_testImageData['width'], $imgInfo['width']);\n }", "public function test_resize_and_crop() {\n\n\t\t$file = DIR_TESTDATA . '/images/gradient-square.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50, true );\n\n\t\t$this->assertEquals( array( 'width' => 100, 'height' => 50 ), $imagick_image_editor->get_size() );\n\t}", "public function testDimensionsValidation(): void\n {\n $builder = new ValidationBuilder();\n $builder->validate(\"avatar\", function (Field $field): void {\n $field->dimensions(function(Dimensions $dimensions): void {\n $dimensions->ratio(3/2)->width(100);\n });\n });\n\n $rules = $builder->getRules();\n\n $this->assertCount(1, $rules);\n $this->assertEquals([\"dimensions:ratio=1.5,width=100\"], $rules[\"avatar\"]);\n }", "public function hasSizes() {\n if (!empty($this->cropBox['width'])) {\n return TRUE;\n }\n\n if (!empty($this->cropBox['height'])) {\n return TRUE;\n }\n\n return FALSE;\n }", "protected function extractSvgImageSizes() {}", "function get_image_size_dimensions($size) {\n\t\tglobal $_wp_additional_image_sizes;\n\t\tif (isset($_wp_additional_image_sizes[$size])) {\n\t\t\t$width = intval($_wp_additional_image_sizes[$size]['width']);\n\t\t\t$height = intval($_wp_additional_image_sizes[$size]['height']);\n\t\t} else {\n\t\t\t$width = get_option($size.'_size_w');\n\t\t\t$height = get_option($size.'_size_h');\n\t\t}\n\n\t\tif ( $width && $height ) {\n\t\t\treturn array(\n\t\t\t\t'width' => $width,\n\t\t\t\t'height' => $height\n\t\t\t);\n\t\t} else return false;\n\t}", "public function testSaveWithQualityImageEquals(): void\n {\n $thumb = $this->getThumbCreatorInstance()->resize(200)->save(['quality' => 10]);\n $this->assertImageFileEquals('resize_w200_h200_quality_10.jpg', $thumb);\n }", "function testImageSize()\n {\n $bulletproof = $this->bulletproof->uploadDir('/tmp');\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 33122));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n $this->assertEquals('/tmp/bulletproof_test_image.jpeg',$upload);\n\n /*give it invalid 'max' size*/\n $bulletproof = $this->bulletproof;\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 22));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $this->setExpectedException('ImageUploader\\ImageUploaderException','File sizes must be between 1 to 22 bytes');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n }", "function get_intermediate_image_sizes()\n {\n }", "public function IncorrectImagePixelSize()\n\t{\n\t\tglobal $ft_dom;\n\t\t$code = array('');\t\t\t\n\t\t$elements = $ft_dom->getElementsByTagName('img');\n\t\t$img_array = array();\n\t\t$badimg = array();\n\t\t$code[1] = 0;\n\t\t$code[2] = '';\n\t\t$max_resource_tests = 50;\n\n\t foreach ($elements as $element) { \n\t\t\t//don't try to do too many.\n\t\t\tif(count($img_array) > $max_resource_tests) { continue; }\n\t\t\tif(Helper::likelyPixel($element)) { continue; }\n\t\t\tif($element->hasAttribute('src')) {\n\t\t\t\t//if((!$element->hasAttribute('width') && $element->hasAttribute('style')) && Helper::hasInlineStyleAttribute($element->getAttribute('style'),'width')) { echo \"width set inline.\"; }\n\t\t\t\tif(in_array($element->getAttribute('src'),$img_array)) { continue; }\n\t\t\t\t\n\t\t\t\tif ($element->hasAttribute('width') || $element->hasAttribute('height')) {\n\t\t\t\t\t$link = Helper::getAbsoluteResourceLink($element->getAttribute('src'));\n\t\t\t\t\t\n\t\t\t\t\tif(Helper::http200Test($link)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tlist($width, $height) = getimagesize($link);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($element->hasAttribute('width')) {\n\t\t\t\t\t\t\t//echo \"\\n\\nwidth:\" . $element->getAttribute('width') . \"\\n\";\n\n\t\t\t\t\t\t\tif($element->getAttribute('width') != $width) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) { $code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be width=\\\"$width\\\"\"; }\n\t\t\t\t\t\t\t\t$badimg[] = $element;\n\t\t\t\t\t\t\t\t$code[1]++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($element->hasAttribute('height')) {\n\n\t\t\t\t\t\t\tif($element->getAttribute('height') != $height) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) {\n\t\t\t\t\t\t\t\t\tif(in_array($element, $badimg)) {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= \"\\n and height=\\\"$height\\\"(\" .$element->getAttribute('src') . \")\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be height=\\\"$height\\\"\";\n\t\t\t\t\t\t\t\t\t\t$code[1]++;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(in_array($element, $badimg)) { $code[0] .= \"\\n\\n\"; }\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$img_array[] = $element->getAttribute('src');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($code[0] != '') {\n\t\t\tif($code[1] > Helper::$max_disp_threshold) { $code[0] .= '...'; }\n\t\t\tif($code[1] > 1) { $code[2] = 's'; }\t\t\t\n\t\t\treturn $code;\n\t\t}\n\t return false;\n\t}", "function custom_image_sizes() {\n}", "public function test_multi_resize_does_not_create() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t// If no images are generated, the returned array is empty.\n\t\t$this->assertEmpty( $resized );\n\t}", "public function validDimensions() {\n\t\tlist($width, $height) = getimagesize($this->file['tmp_name']);\n\t\n\t\tif($height <= $this->max_height && $width <= $this->max_width) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\t\t\t\t\n\t}", "function acf_get_image_sizes()\n{\n}", "public function testImageConfiguration()\n {\n $this->runConfigurationAssertions(new Image(), [\n 'imgable_type',\n 'url',\n 'imgable_id',\n ]);\n }", "private function get_image_sizes() {\n\n\t\treturn array(\n\t\t\t'square_medium' => array( 200, 200 ),\n\t\t\t'full' => array( 1200, 1200 ),\n\t\t);\n\n\t}", "public function testResizeIfNeededNotNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/small-image.jpg', true);\n $this->assertFalse($resized);\n\n // wide image to be resized\n $resized = Processor::resizeIfNeeded('/app/tests/wide-image.jpg', true);\n $this->assertTrue($resized);\n }", "protected function assertImageDimensions( $filename, $width, $height ) {\n\t\t$detected_width = 0;\n\t\t$detected_height = 0;\n\t\t$image_size = getimagesize( $filename );\n\n\t\tif ( isset( $image_size[0] ) ) {\n\t\t\t$detected_width = $image_size[0];\n\t\t}\n\n\t\tif ( isset( $image_size[1] ) ) {\n\t\t\t$detected_height = $image_size[1];\n\t\t}\n\n\t\t$this->assertSame( $width, $detected_width );\n\t\t$this->assertSame( $height, $detected_height );\n\t}", "public function testThemeImageWithSrcsetWidth() {\n // Test with multipliers.\n $widths = [\n rand(0, 500) . 'w',\n rand(500, 1000) . 'w',\n ];\n $image = [\n '#theme' => 'image',\n '#srcset' => [\n [\n 'uri' => $this->testImages[0],\n 'width' => $widths[0],\n ],\n [\n 'uri' => $this->testImages[1],\n 'width' => $widths[1],\n ],\n ],\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the srcset attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->generateString($this->testImages[0]) . ' ' . $widths[0] . ', ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' ' . $widths[1], 'Correct output for image with srcset attribute and width descriptors.');\n }", "public function differentSizesDataProvider() {}", "public function testSizeServiceWithConfiguration()\n {\n $size = self::createContainer(array('environment' => 'test'))->get('ivory_google_map.size');\n\n $this->assertEquals($size->getWidth(), 100.1);\n $this->assertEquals($size->getHeight(), 200.2);\n\n $this->assertEquals($size->getWidthUnit(), 'px');\n $this->assertEquals($size->getHeightUnit(), 'pt');\n }", "public static function get_sizes()\n {\n }", "public function testCSize() {\n\t\t$csize = new CSize();\n\t\t$csize->set(100,200,300);\n\t\t$this->assertTrue($csize->w===100);\n\t\t$this->assertTrue($csize->h===200);\n\t\t$this->assertTrue($csize->l===300);\n\t\t$csize->scale(0.5,2.0,1.5);\n\t\t$this->assertTrue($csize->w==50);\n\t\t$this->assertTrue($csize->h==400);\n\t\t$this->assertTrue($csize->l==450);\n\t}", "private function makeImageSize(): void\n {\n list($width, $height) = getimagesize($this->getUrl());\n $size = array('height' => $height, 'width' => $width );\n\n $this->width = $size['width'];\n $this->height = $size['height'];\n }", "public function load_image_sizes() {\n\t\tif ( ! is_file( ARI_JSON_DIR . 'image-sizes.json' ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$handle = fopen( ARI_JSON_DIR . 'image-sizes.json', 'r' );\n\t\t$contents = fread( $handle, filesize( ARI_JSON_DIR . 'image-sizes.json' ) );\n\t\tfclose( $handle );\n\n\t\t$result = json_decode( $contents );\n\t\tif ( is_array( $result ) && ! empty( $result ) ) {\n\t\t\t$this->image_sizes = $result;\n\t\t}\n\t}", "function _image_get_preview_ratio($w, $h)\n {\n }", "function wp_get_additional_image_sizes()\n {\n }", "function wp_calculate_image_sizes($size, $image_src = \\null, $image_meta = \\null, $attachment_id = 0)\n {\n }", "function width_height($imgurl){\n\n $data = getimagesize( $imgurl );\n $width = $data[0];\n $height = $data[1];\n\n echo 'width=\"'.$width.'\" height=\"'.$height.'\"';\n}", "function image_sizes() {\n\tadd_image_size( 'rwd-small', 400, 200 );\n\tadd_image_size( 'rwd-medium', 800, 400 );\n\tadd_image_size( 'rwd-large', 1200, 600 );\n\tadd_image_size( 'rwd-mediumx2', 1600, 800 );\n\tadd_image_size( 'rwd-xl', 2000, 1000 );\n\tadd_image_size( 'rwd-largex2', 2400, 1200 );\n\tadd_image_size( 'rwd-xlx2', 4000, 2000 );\n}", "function throwImgSize( $imgSrc, $sOption = null ){\n $aImg = getImageSize( $imgSrc );\n\n $aImgSize['width'] = $aImg[0];\n $aImgSize['height'] = $aImg[1];\n\n if( $sOption == 'width' || $sOption == 'height' )\n return $aImgSize[$sOption];\n else\n return $aImgSize;\n }", "function get_image_size( $size ) {\n\t$sizes = get_image_sizes();\n\n\tif ( isset( $sizes[ $size ] ) ) {\n\t\treturn $sizes[ $size ];\n\t}\n\n\treturn false;\n}", "function wp_image_matches_ratio($source_width, $source_height, $target_width, $target_height)\n {\n }", "function add_image_size($name, $width = 0, $height = 0, $crop = \\false)\n {\n }", "public function intermediate_image_sizes($sizes = array())\n {\n }", "public function testDimensionsForceMesasures()\n {\n $dimensions = Dimensions::create(\n 400,\n 400,\n 200,\n 200,\n ElcodiMediaImageResizeTypes::FORCE_MEASURES\n );\n\n $this->assertEquals(0, $dimensions->getSrcX());\n $this->assertEquals(0, $dimensions->getSrcY());\n $this->assertEquals(400, $dimensions->getSrcWidth());\n $this->assertEquals(400, $dimensions->getSrcHeight());\n\n $this->assertEquals(0, $dimensions->getDstX());\n $this->assertEquals(0, $dimensions->getDstY());\n $this->assertEquals(200, $dimensions->getDstWidth());\n $this->assertEquals(200, $dimensions->getDstHeight());\n $this->assertEquals(200, $dimensions->getDstFrameX());\n $this->assertEquals(200, $dimensions->getDstFrameY());\n }", "function imageVerbose($property, $size = null);", "function reg_image_sizes() {\n add_image_size( 'medium', 480, 0, false );\n add_image_size( 'medium-large', 500, 0, false );\n add_image_size( 'large', 600, 0, false );\n}", "function getimagesize($filename){\n\t\treturn ($this->isSvg() ? $this->getSvgSize($filename) : we_thumbnail::getimagesize($filename));\n\t}", "public function sizeImg($width, $height, $crop = true);", "function wp_get_registered_image_subsizes()\n {\n }", "function ccac_2020_new_custom_image_sizes_names( $sizes ) {\n /* Pinegrow generated Image Sizes Names Begin*/\n /* This code will be replaced by returning names of custom image sizes. */\n /* Pinegrow generated Image Sizes Names End */\n return $sizes;\n}", "function elk_getimagesize($file, $error = 'array')\n{\n\t$sizes = @getimagesize($file);\n\n\t// Can't get it, what shall we return\n\tif (empty($sizes))\n\t{\n\t\t$sizes = $error === 'array' ? array(-1, -1, -1) : false;\n\t}\n\n\treturn $sizes;\n}", "protected static function image_sizes() {\n\t\tif ( null === self::$image_sizes ) {\n\t\t\tglobal $_wp_additional_image_sizes;\n\n\t\t\t// Populate an array matching the data structure of $_wp_additional_image_sizes so we have a consistent structure for image sizes.\n\t\t\t$images = [\n\t\t\t\t'thumb' => [\n\t\t\t\t\t'width' => intval( get_option( 'thumbnail_size_w' ) ),\n\t\t\t\t\t'height' => intval( get_option( 'thumbnail_size_h' ) ),\n\t\t\t\t\t'crop' => (bool) get_option( 'thumbnail_crop' ),\n\t\t\t\t],\n\t\t\t\t'medium' => [\n\t\t\t\t\t'width' => intval( get_option( 'medium_size_w' ) ),\n\t\t\t\t\t'height' => intval( get_option( 'medium_size_h' ) ),\n\t\t\t\t\t'crop' => false,\n\t\t\t\t],\n\t\t\t\t'medium_large' => [\n\t\t\t\t\t'width' => intval( get_option( 'medium_large_size_w' ) ),\n\t\t\t\t\t'height' => intval( get_option( 'medium_large_size_h' ) ),\n\t\t\t\t\t'crop' => false,\n\t\t\t\t],\n\t\t\t\t'large' => [\n\t\t\t\t\t'width' => intval( get_option( 'large_size_w' ) ),\n\t\t\t\t\t'height' => intval( get_option( 'large_size_h' ) ),\n\t\t\t\t\t'crop' => false,\n\t\t\t\t],\n\t\t\t\t'full' => [\n\t\t\t\t\t'width' => null,\n\t\t\t\t\t'height' => null,\n\t\t\t\t\t'crop' => false,\n\t\t\t\t],\n\t\t\t];\n\n\t\t\t// Compatibility mapping as found in wp-includes/media.php.\n\t\t\t$images['thumbnail'] = $images['thumb'];\n\n\t\t\t// Update class variable, merging in $_wp_additional_image_sizes if any are set.\n\t\t\tif ( is_array( $_wp_additional_image_sizes ) && ! empty( $_wp_additional_image_sizes ) ) {\n\t\t\t\tself::$image_sizes = array_merge( $images, $_wp_additional_image_sizes );\n\t\t\t} else {\n\t\t\t\tself::$image_sizes = $images;\n\t\t\t}\n\t\t}\n\n\t\treturn is_array( self::$image_sizes ) ? self::$image_sizes : [];\n\t}", "public static function isImageSize($size)\n {\n return preg_match('/^[0-9]{1,4}$/', $size);\n }", "public function getImageSizes(): array\n {\n $additionalSizes = wp_get_additional_image_sizes();\n $names = $this->getImageSizesNames();\n\n return array_map(function (string $name) use ($additionalSizes) {\n if (isset($additionalSizes[$name])) {\n return [\n \"name\" => $name,\n \"width\" => $additionalSizes[$name][\"width\"],\n \"height\" => $additionalSizes[$name][\"height\"],\n \"crop\" => $additionalSizes[$name][\"crop\"],\n ];\n }\n \n return [\n \"name\" => $name,\n \"width\" => get_option(\"{$name}_size_w\"),\n \"height\" => get_option(\"{$name}_size_h\"),\n \"crop\" => !!get_option(\"{$name}_crop\"),\n ];\n }, $names);\n }", "function dark_urban_custom_image_sizes_names( $sizes ) {\n /* Pinegrow generated Image Sizes Names Begin*/\n /* This code will be replaced by returning names of custom image sizes. */\n /* Pinegrow generated Image Sizes Names End */\n return $sizes;\n}", "function image_size_input_fields($post, $check = '')\n {\n }", "function _wp_add_additional_image_sizes()\n {\n }", "function getImageSize() \n { \n return array($this->_width,$this->_height); \n }", "public function testImageCandidateFactoryWithWidthString()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg 1000w');\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "public function testGetMethodImageWithInvalidSize()\n {\n // Mock the method\n $methodMock = $this->getMethod();\n\n // Mock the request\n $requestMock = $this->createMock(Request::class);\n\n $requestMock\n ->expects($this->once())\n ->method('get')\n ->with($this->equalTo(\"/methods/{$methodMock->id}\"))\n ->will($this->returnValue($methodMock));\n\n // Create API instance\n $api = new Mollie('test_testapikey');\n $api->request = $requestMock;\n\n // Get method\n $method = $api->method($methodMock->id)->get();\n\n // Check method\n $this->assertMethod($method, $methodMock);\n\n // Get image\n $method->image('superduper');\n }", "public function testWebP() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH;\n\t\t$height = 0;\n\n\t\t$thumb = $image->Filter('format','webp')->ScaleWidth( $width );\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/{$width}x{$height}/filters:format(webp)/{$original_url}\", $url);\n\n\t\t$meta = getimagesize($url);\n\n\t\t$this->assertEquals( $meta['mime'], \"image/webp\" );\n\n\t}", "function validImageSize($tempFileName)\n{\n\t$validSize = true;\n\t\n // Check if image file is valid size\n $imageStats = getimagesize($tempFileName);\n\t\n\t//invalid if height or width < 256px or > 1024px\n if (($imageStats[0] < 256) || ($imageStats[1] < 256) || ($imageStats[0] > 1280) || ($imageStats[1] > 1280))\n\t{\n $validSize = false;\n\t}\n\t\n\treturn $validSize;\n}", "public function testImageCandidateFactoryWithWidthDescriptor()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromFileAndDescriptor(\n 'image.jpg',\n '1000w'\n );\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "public function test_srcset_invalid_values()\n {\n $invalid_breakpoints = array(\n array('sizes' => true), // srcset data not provided\n array('max_width' => 300, 'max_images' => 3), // no min_width\n array('min_width' => '1', 'max_width' => 300, 'max_images' => 3), // invalid min_width\n array('min_width' => 100, 'max_images' => 3), // no max_width\n array('min_width' => '1', 'max_width' => '3', 'max_images' => 3), // invalid max_width\n array('min_width' => 200, 'max_width' => 100, 'max_images' => 3), // min_width > max_width\n array('min_width' => 100, 'max_width' => 300), // no max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => 0), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => -17), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => '3'), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => null), // invalid max_images\n );\n\n\n $err_log_original_destination = ini_get('error_log');\n // Suppress error messages in error log\n ini_set('error_log', '/dev/null');\n\n try {\n foreach ($invalid_breakpoints as $value) {\n $tag = cl_image_tag(\n self::$public_id,\n array_merge(self::$common_image_options, array('srcset' => $value))\n );\n\n self::assertNotContains(\"srcset\", $tag);\n }\n } catch (\\Exception $e) {\n ini_set('error_log', $err_log_original_destination);\n throw $e;\n }\n\n ini_set('error_log', $err_log_original_destination);\n }", "function someImage($width, $height, $options = []);", "function wp_get_attachment_image_sizes($attachment_id, $size = 'medium', $image_meta = \\null)\n {\n }", "public function testResizeRatioModePreserveAndCropBottom()\n {\n Tinebase_ImageHelper::resize($this->_testImage, 100, 50, Tinebase_ImageHelper::RATIOMODE_PRESERVANDCROP);\n $this->assertEquals(50, $this->_testImage->height);\n // only works on my system^tm\n //$tmpPath = tempnam(Tinebase_Core::getTempDir(), 'tine20_tmp_gd');\n //file_put_contents($tmpPath, $this->_testImage->blob);\n //$this->assertFileEquals(dirname(__FILE__) . '/ImageHelper/phpunit-logo-preserveandcrop-100-50.gif', $tmpPath);\n //unlink($tmpPath);\n }", "public function get_image_sizes() {\n\t\tif ( ! is_array( $this->image_sizes ) || empty( $this->image_sizes ) ) {\n\t\t\treturn array();\n\t\t}\n\n\t\treturn $this->image_sizes;\n\t}", "function config_image_sizes($sizes) {\n\t\tadd_image_size('feature-image', 1400, 300, true);\n\t\t\n\t\t$myimgsizes = array(\n\t\t\t\"feature-image\" => __(\"Feature Image\")\n\t\t);\n\t\t$newimgsizes = array_merge($sizes, $myimgsizes);\n\t\t\n\t\treturn $newimgsizes;\n\t}", "function __checkDimensions($filePath) {\n\t\t$size = getimagesize($filePath);\n\t\t\t\t\n\t\tif(!$size) {\n\t\t\t$this->Session->setFlash('We could not check that image\\'s size, so we can\\'t upload it.');\n\t\t\t$this->redirect(Controller::referer('/'));\n\t\t}\n\n\t\tif($size[0] > 800 || $size[1] > 800) {\n\t\t\t$this->Session->setFlash('Images cannot be any larger than 800 by 800 pixels.');\n\t\t\t$this->redirect(Controller::referer('/'));\n\t\t}\n\t\t\n\t}", "public function _set_new_size_auto()\n {\n if (empty($this->source_width) || empty($this->source_height)) {\n if ( ! $this->SILENT_MODE) {\n trigger_error('Missing source image sizes!', E_USER_WARNING);\n }\n return false;\n }\n $k1 = $this->source_width / $this->limit_x;\n $k2 = $this->source_height / $this->limit_y;\n $k = $k1 >= $k2 ? $k1 : $k2;\n if ($this->reduce_only && $k1 <= 1 && $k2 <= 1) {\n $this->output_width = $this->source_width;\n $this->output_height = $this->source_height;\n } else {\n $this->output_width = round($this->source_width / $k, 0);\n $this->output_height = round($this->source_height / $k, 0);\n }\n return true;\n }", "public function test_responsive_width()\n {\n $tag = cl_image_tag(\"hello\", array(\"responsive_width\" => true, \"format\" => \"png\"));\n $this->assertEquals(\n \"<img class='cld-responsive' data-src='\" . self::DEFAULT_UPLOAD_PATH . \"c_limit,w_auto/hello.png'/>\",\n $tag\n );\n\n $options = array(\"width\" => 100, \"height\" => 100, \"crop\" => \"crop\", \"responsive_width\" => true);\n $result = Cloudinary::cloudinary_url(\"test\", $options);\n $this->assertEquals($options, array(\"responsive\" => true));\n $this->assertEquals($result, TagTest::DEFAULT_UPLOAD_PATH . \"c_crop,h_100,w_100/c_limit,w_auto/test\");\n Cloudinary::config(\n array(\n \"responsive_width_transformation\" => array(\n \"width\" => \"auto:breakpoints\",\n \"crop\" => \"pad\",\n ),\n )\n );\n $options = array(\"width\" => 100, \"height\" => 100, \"crop\" => \"crop\", \"responsive_width\" => true);\n $result = Cloudinary::cloudinary_url(\"test\", $options);\n $this->assertEquals($options, array(\"responsive\" => true));\n $this->assertEquals(\n $result,\n TagTest::DEFAULT_UPLOAD_PATH . \"c_crop,h_100,w_100/c_pad,w_auto:breakpoints/test\"\n );\n }", "function wp_getimagesize($filename, array &$image_info = \\null)\n {\n }", "public static function calculateScaleDimensions($source, $targetSize)\n {\n // Get size of image (handle different param-possibilities)\n if (is_string($source)) {\n $sourceSize = @getimagesize($source);\n } else if ($source instanceof Imagick) {\n $sourceSize = $source->getImageGeometry();\n $source = null;\n } else {\n $sourceSize = $source;\n $source = null;\n }\n\n if (!$sourceSize) return false;\n\n $w = null;\n if (isset($sourceSize[0])) $w = $sourceSize[0];\n if (isset($sourceSize['width'])) $w = $sourceSize['width'];\n\n $h = null;\n if (isset($sourceSize[1])) $h = $sourceSize[1];\n if (isset($sourceSize['height'])) $h = $sourceSize['height'];\n\n if (!$w || !$h) return false;\n\n $originalSize = array($w, $h);\n\n // get output-width\n $outputWidth = 0;\n if (isset($targetSize[0])) $outputWidth = $targetSize[0];\n if (isset($targetSize['width'])) $outputWidth = $targetSize['width'];\n\n // get output-height\n $outputHeight = 0;\n if (isset($targetSize[1])) $outputHeight = $targetSize[1];\n if (isset($targetSize['height'])) $outputHeight = $targetSize['height'];\n\n // get crop-data\n $crop = isset($targetSize['crop']) ? $targetSize['crop'] : null;\n\n // get cover\n $cover = isset($targetSize['cover']) ? $targetSize['cover'] : true;\n\n if ($outputWidth == 0 && $outputHeight == 0) {\n if ($crop) {\n return array(\n 'width' => $crop['width'],\n 'height' => $crop['height'],\n 'rotate' => null,\n 'crop' => array(\n 'x' => $crop['x'],\n 'y' => $crop['y'],\n 'width' => $crop['width'],\n 'height' => $crop['height']\n ),\n );\n } else {\n // Handle keep original\n return array(\n 'width' => $originalSize[0],\n 'height' => $originalSize[1],\n 'rotate' => null,\n 'crop' => array(\n 'x' => 0,\n 'y' => 0,\n 'width' => $originalSize[0],\n 'height' => $originalSize[1]\n ),\n 'keepOriginal' => true,\n );\n }\n }\n\n // Check if image has to be rotated\n $rotate = null;\n if (Kwf_Registry::get('config')->image->autoExifRotate\n && $source\n && function_exists('exif_read_data')\n && isset($sourceSize['mime'])\n && ($sourceSize['mime'] == 'image/jpg'\n || $sourceSize['mime'] == 'image/jpeg')\n ) {\n try {\n $exif = exif_read_data($source);\n if (isset($exif['Orientation'])) {\n switch ($exif['Orientation']) {\n case 6:\n $originalSize = array($h, $w);\n $rotate = 90;\n case 8:\n $originalSize = array($h, $w);\n $rotate = -90;\n }\n }\n } catch (ErrorException $e) {\n $rotate = null;\n }\n }\n\n // Calculate missing dimension\n $calculateWidth = $originalSize[0];\n $calculateHeight = $originalSize[1];\n if ($crop) {\n $calculateWidth = $crop['width'];\n $calculateHeight = $crop['height'];\n }\n\n if ($cover) { // image will always have defined size\n\n if ($outputWidth == 0) {\n if (isset($targetSize['aspectRatio'])) {\n $outputWidth = round($outputHeight * $targetSize['aspectRatio']);\n } else {\n $outputWidth = round($outputHeight * ($calculateWidth / $calculateHeight));\n }\n if ($outputWidth <= 0) $outputWidth = 1;\n }\n if ($outputHeight == 0) {\n if (isset($targetSize['aspectRatio']) && $targetSize['aspectRatio']) {\n $outputHeight = round($outputWidth * $targetSize['aspectRatio']);\n } else {\n $outputHeight = round($outputWidth * ($calculateHeight / $calculateWidth));\n }\n if ($outputHeight <= 0) $outputHeight = 1;\n }\n if (!$crop) { // crop from complete image\n $crop = array();\n // calculate crop depending on target-size\n if (($outputWidth / $outputHeight) >= ($originalSize[0] / $originalSize[1])) {\n $crop['width'] = $originalSize[0];\n $crop['height'] = $originalSize[0] * ($outputHeight / $outputWidth);\n } else {\n $crop['height'] = $originalSize[1];\n $crop['width'] = $originalSize[1] * ($outputWidth / $outputHeight);\n }\n // calculate x and y of crop\n $xDiff = $originalSize[0] - $crop['width'];\n $crop['x'] = $xDiff > 0 ? $xDiff / 2 : 0;\n $yDiff = $originalSize[1] - $crop['height'];\n $crop['y'] = $yDiff > 0 ? $yDiff / 2 : 0;\n } else {\n $oldCrop['width'] = $crop['width'];\n $oldCrop['height'] = $crop['height'];\n if (($outputWidth / $outputHeight) >= ($crop['width'] / $crop['height'])) {\n $crop['width'] = $crop['width'];\n $crop['height'] = $crop['width'] * ($outputHeight / $outputWidth);\n } else {\n $crop['height'] = $crop['height'];\n $crop['width'] = $crop['height'] * ($outputWidth / $outputHeight);\n }\n $xDiff = $oldCrop['width'] - $crop['width'];\n $crop['x'] += $xDiff > 0 ? $xDiff / 2 : 0;\n $yDiff = $oldCrop['height'] - $crop['height'];\n $crop['y'] += $yDiff > 0 ? $yDiff / 2 : 0;\n }\n\n } elseif (!$cover) { // image keeps aspectratio and will not be scaled up\n\n // calculateWidth is cropWidth if existing else originalWidth.\n // prevent image scale up\n if (!$crop) {\n $crop = array(\n 'x' => 0,\n 'y' => 0,\n 'width' => $originalSize[0],\n 'height' => $originalSize[1]\n );\n }\n if ($calculateWidth <= $outputWidth && $calculateHeight <= $outputHeight) {\n $outputWidth = $calculateWidth;\n $outputHeight = $calculateHeight;\n } else {\n if ($calculateWidth < $outputWidth) {\n $outputWidth = $calculateWidth;\n }\n if ($calculateHeight < $outputHeight) {\n $outputHeight = $calculateHeight;\n }\n }\n $widthRatio = $outputWidth ? $calculateWidth / $outputWidth : null;\n $heightRatio = $outputHeight ? $calculateHeight / $outputHeight : null;\n if ($widthRatio > $heightRatio) {\n $outputWidth = $calculateWidth / $widthRatio;\n $outputHeight = $calculateHeight / $widthRatio;\n } else if ($heightRatio > $widthRatio) {\n $outputWidth = $calculateWidth / $heightRatio;\n $outputHeight = $calculateHeight / $heightRatio;\n }\n\n }\n\n $outputWidth = round($outputWidth);\n if ($outputWidth <= 0) $outputWidth = 1;\n $outputHeight = round($outputHeight);\n if ($outputHeight <= 0) $outputHeight = 1;\n\n $ret = array(\n 'width' => round($outputWidth),\n 'height' => round($outputHeight),\n 'rotate' => $rotate,\n 'crop' => $crop\n );\n\n //Set values to match original-parameters when original won't change\n if ($ret['crop']['x'] == 0\n && $ret['crop']['y'] == 0\n && $ret['crop']['width'] == $originalSize[0]\n && $ret['crop']['height'] == $originalSize[1]\n && $ret['width'] == $originalSize[0]\n && $ret['height'] == $originalSize[1]\n ) {\n $ret['rotate'] = null;\n $ret['keepOriginal'] = true;\n }\n\n return $ret;\n }", "protected\n function setImageSizes()\n {\n return config('album.sizes');\n }", "function remove_image_size($name)\n {\n }", "private function validDimensions(array $size): bool\n {\n return $size['height'] > 0 && $size['width'] > 0;\n }", "public function testSize() {\n\t\t$array = array(1, 2, 3, 4, 5);\n\t\t$result = _::size($array);\n\t\t$this->assertEquals(5, $result);\n\n\t\t// test with an object\n\t\t$object = (object)array('one' => 1, 'two' => 2, 'three' => 3);\n\t\t$result = _::size($object);\n\t\t$this->assertEquals(3, $result);\n\t}", "public function getImageSizesNames(): array\n {\n return get_intermediate_image_sizes();\n }", "public function testValidateDocumentPngValidation()\n {\n }", "public function hasHardSizes() {\n return (!empty($this->cropBox['width']) && !empty($this->cropBox['height'])) ? TRUE : FALSE;\n }", "function calc_size()\n\t{\n\t\t\t$size = getimagesize(ROOT_PATH . $this->file);\n\t\t\t$this->width = $size[0];\n\t\t\t$this->height = $size[1];\n\t}", "public function testData()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n if (extension_loaded('imagick')) {\n // no driver was specified so the driver should be an instance of\n // P4Cms_Image_Driver_Imagick\n $this->assertTrue(\n $img->getDriver() instanceof P4Cms_Image_Driver_Imagick,\n 'Expected driver to be instance of P4Cms_Image_Driver_Imagick.'\n );\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected file at: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n\n $newImg = new P4Cms_Image();\n $newImg->setData($data);\n\n // the data returned from getData() should be the same as what was set\n $this->assertSame(\n $newImg->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image built from file: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n }", "public function get_image_size( $location = '' ) {\n\t\tif ( ! is_array( $this->image_sizes ) || empty( $this->image_sizes ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ( $this->image_sizes as $key => $value ) {\n\t\t\tforeach ( $value as $name => $attributes ) {\n\t\t\t\tif ( $name == $location ) {\n\t\t\t\t\treturn $attributes;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "function test_responsive_gallery_after_setup_theme() {\n\t\tBU\\Themes\\Responsive_Framework\\Galleries\\after_setup_theme();\n\n\t\t$this->assertTrue( has_image_size( 'responsive_gallery' ) );\n\t\t$this->assertTrue( has_image_size( 'responsive_gallery_1col' ) );\n\t\t$this->assertTrue( has_image_size( 'responsive_gallery_5col_up' ) );\n\t}", "function adds_new_image_sizes() {\n\t$config = array(\n\t\t'featured-image' => array(\n\t\t\t'width' => 720,\n\t\t\t'height' => 400,\n\t\t\t'crop' => true,\n\t\t)\n\t);\n\n\tforeach( $config as $name => $args) {\n\t\t$crop = array_key_exists( 'crop', $args ) ? $args['crop'] : false;\n\n\t\tadd_image_size( $name, $args['width'], $args['height'], $args['crop'] );\n\t}\n}", "public function testDimensionsNoResize()\n {\n $dimensions = Dimensions::create(\n 400,\n 400,\n 200,\n 200,\n ElcodiMediaImageResizeTypes::NO_RESIZE\n );\n\n $this->assertEquals(0, $dimensions->getSrcX());\n $this->assertEquals(0, $dimensions->getSrcY());\n $this->assertEquals(400, $dimensions->getSrcWidth());\n $this->assertEquals(400, $dimensions->getSrcHeight());\n\n $this->assertEquals(0, $dimensions->getDstX());\n $this->assertEquals(0, $dimensions->getDstY());\n $this->assertEquals(400, $dimensions->getDstWidth());\n $this->assertEquals(400, $dimensions->getDstHeight());\n $this->assertEquals(400, $dimensions->getDstFrameX());\n $this->assertEquals(400, $dimensions->getDstFrameY());\n }", "public function testResize($resizeType, $dimensions, $options, $expectedDimensions)\n {\n $input = $this->path . self::INPUT_IMAGE_GIF;\n $output = $this->path . self::OUTPUT_IMAGE_GIF;\n\n $resizer = new GifImageResizer(\n $resizeType,\n $dimensions,\n $options\n );\n $resizer->resize($input, $output);\n\n $this->assertTrue(is_file($output));\n\n $outputSize = getimagesize($output);\n $this->assertEquals($expectedDimensions[0], $outputSize[0]);\n $this->assertEquals($expectedDimensions[1], $outputSize[1]);\n }", "function PREFIX_add_image_sizes() {\n\t/*\n\t// 16:9\n\tadd_image_size( 'wide-xsmall', 295, 165, true );\n\tadd_image_size( 'wide-small', 360, 202, true );\n\tadd_image_size( 'wide-medium', 470, 264, true );\n\tadd_image_size( 'wide-large', 770, 433, true );\n\tadd_image_size( 'wide-xlarge', 1440, 810, true );\n\n\t// 4x3\n\tadd_image_size( 'ratio-4-3-small', 300, 225, true );\n\tadd_image_size( 'ratio-4-3-medium', 470, 353, true );\n\tadd_image_size( 'ratio-4-3-large', 740, 555, true );\n\tadd_image_size( 'ratio-4-3-xlarge', 1440, 1080, true );\n\n\t// Golden Ratio\n\tadd_image_size( 'ratio-gold-small', 300, 300 * 0.618, true );\n\tadd_image_size( 'ratio-gold-medium', 470, 470 * 0.618, true );\n\tadd_image_size( 'ratio-gold-large', 740, 740 * 0.618, true );\n\tadd_image_size( 'ratio-gold-xlarge', 1440, 1440 * 0.618, true );\n\n\t// Square\n\tadd_image_size( 'square-xsmall', 160, 160, true );\n\tadd_image_size( 'square-small', 300, 300, true );\n\tadd_image_size( 'square-medium', 470, 470, true );\n\tadd_image_size( 'square-large', 800, 800, true );\n\t*/\n}", "public function &get_cat_image_size($url)\n {\n $false = false;\n\n if (empty($url) || ($url == 'http://') || ($url == 'https://')) {\n return $false;\n }\n\n $size =& $this->_remote_image->get_image_size($url);\n if (!$size) {\n $this->_set_error_code($this->_remote_image->getErrorCode());\n $this->_set_errors($this->_remote_image->getErrors());\n return $false;\n }\n\n list($orig_width, $orig_height) = $size;\n\n list($show_width, $show_height) = $this->_image_size->adjust_size($orig_width, $orig_height, $this->_conf['cat_img_width'], $this->_conf['cat_img_height']);\n\n $arr = array(\n 'orig_width' => $orig_width,\n 'orig_height' => $orig_height,\n 'show_width' => $show_width,\n 'show_height' => $show_height,\n );\n\n return $arr;\n }" ]
[ "0.75862247", "0.72801906", "0.70403594", "0.6863978", "0.68473136", "0.6840969", "0.6813828", "0.6798351", "0.67464435", "0.6742632", "0.6654979", "0.66335624", "0.66272706", "0.6580212", "0.6572993", "0.65184814", "0.6504699", "0.65030384", "0.64962995", "0.64300084", "0.6406655", "0.64007187", "0.63840324", "0.63711804", "0.6370238", "0.63677645", "0.63434273", "0.63359755", "0.6320475", "0.6315422", "0.630356", "0.63001704", "0.62937933", "0.6256948", "0.6239025", "0.62105113", "0.6204966", "0.6198646", "0.6158511", "0.6148896", "0.614324", "0.6117138", "0.61138785", "0.6106725", "0.6105457", "0.60995173", "0.60994494", "0.60992384", "0.6078628", "0.60725904", "0.60568917", "0.6054019", "0.60398394", "0.6029468", "0.600149", "0.5998544", "0.5988885", "0.5980122", "0.5968362", "0.5961211", "0.59405476", "0.5934196", "0.5927801", "0.5926282", "0.59174955", "0.59126925", "0.5896569", "0.58917934", "0.58833027", "0.58641046", "0.5846945", "0.5843695", "0.5840831", "0.5829078", "0.582518", "0.58157194", "0.5813587", "0.5811657", "0.58071846", "0.5798168", "0.5785826", "0.578362", "0.57811624", "0.57724464", "0.5770577", "0.57672685", "0.5767195", "0.5764181", "0.57634854", "0.57600486", "0.57570475", "0.57457685", "0.57349616", "0.57329917", "0.5731003", "0.5729315", "0.5728935", "0.5726872", "0.57248354", "0.571861" ]
0.73105574
1
Tests that an image with the src attribute is output correctly.
public function testThemeImageWithSrc() { $image = [ '#theme' => 'image', '#uri' => reset($this->testImages), '#width' => rand(0, 1000) . 'px', '#height' => rand(0, 500) . 'px', '#alt' => $this->randomMachineName(), '#title' => $this->randomMachineName(), ]; $this->render($image); // Make sure the src attribute has the correct value. $this->assertRaw($this->fileUrlGenerator->generateString($image['#uri']), 'Correct output for an image with the src attribute.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_it_loads_an_image_string_into_a_resource()\n {\n imagepng(imagecreatefromstring($this->imagePath), $this->compareTestSaveLocation);\n imagepng($this->image->getImageResource(), $this->testImageSaveLocation);\n\n $correctImage = file_get_contents($this->compareTestSaveLocation);\n $testImage = file_get_contents($this->testImageSaveLocation);\n\n $this->assertEquals($correctImage, $testImage);\n }", "public function testS2imageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testGetImage() {\n\t\t$instance = new ImageObject( 123 );\n\n\t\t$this->assertNull(\n\t\t\t$instance->getImage( 123 ),\n\t\t\t'An ImageObject inside an ImageObject? Are you mad?!'\n\t\t);\n\t}", "public function testGetImageIfIsNull(): void\n {\n $result = $this->subject->getImage();\n\n $this->assertNull($result);\n }", "public function testSimageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = 'someOtherText';\n $expected = 1;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "abstract protected function processImage (string $src): string;", "public function testImageConfiguration()\n {\n $this->runConfigurationAssertions(new Image(), [\n 'imgable_type',\n 'url',\n 'imgable_id',\n ]);\n }", "public static function test_image($source) {\n\t\tif (strlen($source) < 10) {\n\t\t\tdebug_event('Art', 'Invalid image passed', 1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check to make sure PHP:GD exists. If so, we can sanity check\n\t\t// the image.\n\t\tif (function_exists('ImageCreateFromString')) {\n\t\t\t $image = ImageCreateFromString($source);\n\t\t\t if (!$image || imagesx($image) < 5 || imagesy($image) < 5) {\n\t\t\t\tdebug_event('Art', 'Image failed PHP-GD test',1);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function testThemeImageWithSrcsetWidth() {\n // Test with multipliers.\n $widths = [\n rand(0, 500) . 'w',\n rand(500, 1000) . 'w',\n ];\n $image = [\n '#theme' => 'image',\n '#srcset' => [\n [\n 'uri' => $this->testImages[0],\n 'width' => $widths[0],\n ],\n [\n 'uri' => $this->testImages[1],\n 'width' => $widths[1],\n ],\n ],\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the srcset attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->generateString($this->testImages[0]) . ' ' . $widths[0] . ', ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' ' . $widths[1], 'Correct output for image with srcset attribute and width descriptors.');\n }", "public function testS4imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testValidateDocumentPngValidation()\n {\n }", "function htmlImages($src)\n{\n\treturn '<img src=' . $src . '>';\n}", "public function testGetImage()\n {\n // TODO: How to mock a file?\n }", "public function testS3imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = 'someText';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function assertImagePresent(string $filename): void {\n // Drupal appends an underscore and a number to the filename when duplicate\n // files are uploaded, for example when a test runs more then once.\n // We split up the filename and extension and match for both.\n $parts = pathinfo($filename);\n $extension = $parts['extension'];\n $filename = $parts['filename'];\n $this->assertSession()->elementExists('css', \"img[src$='.$extension'][src*='$filename']\");\n }", "public function test_cl_image_tag_srcset()\n {\n $expected_tag = self::get_expected_cl_image_tag(\n self::$public_id,\n self::$common_transformation_str,\n '',\n self::$breakpoints_arr\n );\n\n $tag_with_breakpoints = cl_image_tag(\n self::$public_id,\n array_merge(\n self::$common_image_options,\n array('srcset' => self::$common_srcset)\n )\n );\n\n $this->assertEquals(\n $expected_tag,\n $tag_with_breakpoints,\n 'Should create img srcset attribute with provided breakpoints'\n );\n }", "public function testGetValidImageByImagePath () {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"image\");\n\n\t\t//create a new Image and insert it into MySQL\n\t\t$image = new Image(null, $this->VALID_IMAGEPATH, $this->VALID_IMAGETYPE);\n\t\t$image->insert($this->getPDO());\n\n\t\t//grab the data from MySQL and enforce the fields match our expectations\n\t\t$results = Image::getImageByImagePath($this->getPDO(), $image->getImagePath());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"image\"));\n\t\t$this->assertCount(1, $results);\n\t\t$this->assertContainsOnlyInstancesOf(\"Edu\\\\Cnm\\\\DevConnect\\\\Image\", $results);\n\n\t\t//grab the results from the array and validate it\n\t\t$pdoImage = $results[0];\n\t\t$this->assertEquals($pdoImage->getImageId(), $image->getImageId());\n\t\t$this->assertEquals($pdoImage->getImagePath(), $this->VALID_IMAGEPATH);\n\t\t$this->assertEquals($pdoImage->getImageType(), $this->VALID_IMAGETYPE);\n\t}", "public function testValidateDocumentImageValidation()\n {\n }", "public function testGetInvalidImageByImagePath() {\n\t\t//grab an image by searching for content that does not exist\n\t\t$image = Image::getImageByImagePath($this->getPDO(), \"this image is not found\");\n\t\t$this->assertCount(0, $image);\n\t}", "public function testImage()\n {\n $uploadedFile = new UploadedFile(__DIR__ . '/../Mock/image_10Mb.jpg', 'image.jpg');\n $user = new User();\n $user->setEmail('[email protected]')\n ->setImage($uploadedFile);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_DEFAULT]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setImage(null);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_IMAGE_REQUIRED]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n }", "public function isValidImage()\n\t{\n\t\t$src = $this->source_path;\n\t\t$extension = \\strtolower(\\substr($src, (\\strrpos($src, '.') + 1)));\n\n\t\tif (!\\in_array($extension, $this->image_extensions)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$r = @\\imagecreatefromstring(\\file_get_contents($src));\n\n\t\treturn \\is_resource($r) && \\get_resource_type($r) === 'gd';\n\t}", "public function testIsImageFile()\n {\n $this->assertTrue(Tinebase_ImageHelper::isImageFile($this->_testImagePath));\n $this->assertFalse(Tinebase_ImageHelper::isImageFile(__FILE__));\n }", "public function provideImageTests() {\n $result = [\n [[\n 'descr' => \"[img] produces an image.\",\n 'bbcode' => \"This is Google's logo: [img]http://www.google.com/intl/en_ALL/images/logo.gif[/img].\",\n 'html' => \"This is Google's logo: <img src=\\\"http://www.google.com/intl/en_ALL/images/logo.gif\\\" alt=\\\"logo.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] disallows a javascript: URL.\",\n 'bbcode' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n 'html' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows a URL with an unknown protocol type.\",\n 'bbcode' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n 'html' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows HTML content.\",\n 'bbcode' => \"This is Google's logo: [img]<a href='javascript:alert(\\\"foo\\\")'>click me</a>[/img].\",\n 'html' => \"This is Google's logo: [img]&lt;a href='javascript:alert(&quot;foo&quot;)'&gt;click me&lt;/a&gt;[/img].\",\n ]],\n [[\n 'descr' => \"[img] can produce a local image.\",\n 'bbcode' => \"This is a smiley: [img]smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"smileys/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local rooted URL.\",\n 'bbcode' => \"This is a smiley: [img]/smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local relative URL.\",\n 'bbcode' => \"This is a smiley: [img]../smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"../smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img=src] should produce an image.\",\n 'bbcode' => 'This is a smiley: [img=smile.gif?f=1&b=2][/img] okay?',\n 'html' => 'This is a smiley: <img src=\"smileys/smile.gif\" alt=\"smile.gif?f=1&amp;b=2\" class=\"bbcode_img\" /> okay?',\n ]]\n ];\n return $result;\n }", "public function testUrlGeneration() {\n\n\t\t$image = $this->getSampleImage();\n\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t// Generate a thumb\n\t\t$colour = 'ffffff';\n\t\t$thumb = $image->Pad( self::WIDTH, self::HEIGHT, $colour );\n\t\t$this->assertTrue($thumb instanceof ThumboredImage);\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// Thumbor\\Url\\Builder\n\t\t$instance = $image->getUrlInstance();\n\t\t$this->assertTrue($instance instanceof ThumborUrlBuilder);//Phumbor\n\t\t$instance_url = $instance->__toString();\n\n\t\t$this->assertEquals($url, $instance_url);\n\n\t\t$this->getRemoteImageDimensions($url, $width, $height);\n\n\t\t$this->assertEquals($width, self::WIDTH);\n\t\t$this->assertEquals($height, self::HEIGHT);\n\n\t\t// Test that the _resampled thumb DOES NOT exist locally in /assets, which is the point of Thumbor\n\t\t$variant_name = $image->variantName('Pad', self::WIDTH, self::HEIGHT, $colour);\n\t\t$filename = $image->getFilename();\n\t\t$hash = $image->getHash();\n\t\t$exists = $this->asset_store->exists($filename, $hash, $variant_name);\n\n\t\t$this->assertTrue( !$exists, \"The variant name exists and it should not\" );\n\n\t}", "public function testImageQueryString() {\n\t\t$result = $this->Html->image('test.gif?one=two&three=four');\n\t\t$this->assertTags($result, array('img' => array('src' => 'img/test.gif?one=two&amp;three=four', 'alt' => '')));\n\n\t\t$result = $this->Html->image(array(\n\t\t\t'controller' => 'images',\n\t\t\t'action' => 'display',\n\t\t\t'test',\n\t\t\t'?' => array('one' => 'two', 'three' => 'four')\n\t\t));\n\t\t$this->assertTags($result, array('img' => array('src' => '/images/display/test?one=two&amp;three=four', 'alt' => '')));\n\t}", "public function testImageWithTimestampping() {\n\t\tConfigure::write('Asset.timestamp', 'force');\n\n\t\t$this->Html->request->webroot = '/';\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$this->assertTags($result, array('img' => array('src' => 'preg:/\\/img\\/cake\\.icon\\.png\\?\\d+/', 'alt' => '')));\n\n\t\tConfigure::write('debug', 0);\n\t\tConfigure::write('Asset.timestamp', 'force');\n\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$this->assertTags($result, array('img' => array('src' => 'preg:/\\/img\\/cake\\.icon\\.png\\?\\d+/', 'alt' => '')));\n\n\t\t$this->Html->request->webroot = '/testing/longer/';\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$expected = array(\n\t\t\t'img' => array('src' => 'preg:/\\/testing\\/longer\\/img\\/cake\\.icon\\.png\\?[0-9]+/', 'alt' => '')\n\t\t);\n\t\t$this->assertTags($result, $expected);\n\t}", "public function testGetImage() {\n\n $image = $this->client->getObject(static::DCX_IMAGE_ID);\n\n $this->assertTrue($image instanceof Image);\n $this->assertSame(static::DCX_IMAGE_ID, $image->data()['id']);\n $this->assertSame('fotolia_160447209.jpg', $image->data()['filename']);\n $this->assertSame(TRUE, $image->data()['status']);\n }", "public function image($img) {\n\t\tif (strpos($img, 'http') === false) {\t\t\n\t\t} else {\n\t\t\techo \"<img src='img/{$img}'>\";\n\t\t}\n\t}", "public function assertValidImageRegion($region) {\n $regionObj = $this->getRegion($region);\n $elements = $regionObj->findAll('css', 'img');\n if (empty($elements)) {\n throw new \\Exception(sprintf('No image was not found in the \"%s\" region on the page %s', $region, $this->getSession()->getCurrentUrl()));\n }\n\n if ($src = $elements[0]->getAttribute('src')) {\n $params = array('http' => array('method' => 'HEAD'));\n $context = stream_context_create($params);\n $fp = @fopen($src, 'rb', FALSE, $context);\n if (!$fp) {\n throw new \\Exception(sprintf('Unable to download <img src=\"%s\"> in the \"%s\" region on the page %s', $src, $region, $this->getSession()->getCurrentUrl()));\n }\n\n $meta = stream_get_meta_data($fp);\n fclose($fp);\n if ($meta === FALSE) {\n throw new \\Exception(sprintf('Error reading from <img src=\"%s\"> in the \"%s\" region on the page %s', $src, $region, $this->getSession()->getCurrentUrl()));\n }\n\n $wrapper_data = $meta['wrapper_data'];\n $found = FALSE;\n if (is_array($wrapper_data)) {\n foreach ($wrapper_data as $header) {\n if (substr(strtolower($header), 0, 19) == 'content-type: image') {\n $found = TRUE;\n }\n }\n }\n\n if (!$found) {\n throw new \\Exception(sprintf('Not a valid image <img src=\"%s\"> in the \"%s\" region on the page %s', $src, $region, $this->getSession()->getCurrentUrl()));\n }\n }\n else {\n throw new \\Exception(sprintf('No image had no src=\"...\" attribute in the \"%s\" region on the page %s', $region, $this->getSession()->getCurrentUrl()));\n }\n }", "public function testIfStockManagementHasImage()\n {\n $this->assertNotNull($this->stock->getImage());\n }", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n return 'abort';\n } \n if (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n return 'abort';\n }\n }", "public function testProfilePrototypeGetImage()\n {\n\n }", "public function testData()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n if (extension_loaded('imagick')) {\n // no driver was specified so the driver should be an instance of\n // P4Cms_Image_Driver_Imagick\n $this->assertTrue(\n $img->getDriver() instanceof P4Cms_Image_Driver_Imagick,\n 'Expected driver to be instance of P4Cms_Image_Driver_Imagick.'\n );\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected file at: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n\n $newImg = new P4Cms_Image();\n $newImg->setData($data);\n\n // the data returned from getData() should be the same as what was set\n $this->assertSame(\n $newImg->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image built from file: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n }", "public function testGetAvatarImage()\n {\n }", "protected function isExternalImage() {}", "public function testSourceErrors()\n {\n $Image = new \\Rundiz\\Image\\Drivers\\Gd(self::$source_images_dir . 'city-amsterdam.jpg');\n $this->assertTrue($Image->status);\n // now errors.\n $Image = new \\Rundiz\\Image\\Drivers\\Gd(self::$source_images_dir . 'city-amsterdam-text.jpg');\n $this->assertFalse($Image->status);\n $this->assertSame(\\Rundiz\\Image\\Drivers\\Gd::RDIERROR_SRC_NOTIMAGE, $Image->statusCode);\n $Image = new \\Rundiz\\Image\\Drivers\\Gd(self::$source_images_dir . 'image-not-exists' . date('YmdHis') . '.jpg');\n $this->assertFalse($Image->status);\n $this->assertSame(\\Rundiz\\Image\\Drivers\\Gd::RDIERROR_SRC_NOTEXISTS, $Image->statusCode);\n }", "public function getPicture_always_returnCorrectly()\n {\n $this->assertEquals($this->user['picture'], $this->entity->getPicture());\n }", "public function testOnlyApplyToPNG() {\n $config = [];\n $loggerMock = $this->getLoggerMock();\n $imageFactoryMock = $this->getImageFactoryMock();\n $fileSystemMock = $this->getFileSystemMock();\n $shellOperationsMock = $this->getShellOperationsMock();\n\n $advpng = new AdvPng($config, 'advpng', [], $loggerMock, $imageFactoryMock, $fileSystemMock, $shellOperationsMock);\n\n $imagePNGMock = $this->getMock('\\Drupal\\Core\\Image\\ImageInterface');\n $imagePNGMock->method('getMimeType')->willReturn('image/jpeg');\n $imageFactoryMock->method('get')->willReturn($imagePNGMock);\n\n // Assert no call is made through to the shell commands.\n $shellOperationsMock->expects($this->never())->method('execShellCommand');\n\n // And assert that a 'jpg' isn't processed.\n $this->assertFalse($advpng->applyToImage('public://test_image.jpg'));\n }", "public function testImageValue() : void {\n\t\t$this->assertEquals('kc_image', PostType::Image->value);\n\t}", "public function testSetImageHandlerWithIncorrectResource()\n {\n $sut = new Image_Processor_Adapter_Gd2();\n\n $this->setExpectedException(\n 'UnexpectedValueException',\n \"Image handler was not correct type, 'gd' expected, 'stream' provided\"\n );\n\n $fp = @fopen(sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'image_processor_php_test.tmp', 'w+');\n if (false === $fp) {\n $this->fail('This test cannot run as we cannot write a file to the system temp dir.');\n }\n $sut->setImageHandler($fp);\n }", "function image_exist( $img ) \r\n\t\t{\r\n\t\t\tif( @file_get_contents( $img,0,NULL,0,1) ){ return 1; } else{ return 0; }\r\n\t\t\t\r\n\t\t}", "public function test_missing_image_file() {\n\t\t$out = wp_read_image_metadata( DIR_TESTDATA . '/images/404_image.png' );\n\t\t$this->assertFalse( $out );\n\t}", "public function testCustomAttribute() : void\n {\n $string = $this->basicSanitizer->sanitize('<img src=\"1.png\" data-src=\"1.png\">');\n $this->assertEquals('<img src=\"1.png\" data-src=\"1.png\">', $string);\n }", "public function testImgPathOriginal()\n {\n $imgPath = $this->imageService\n ->imgPath(\\Media\\Service\\Image::ORIGINAL, $this->imageId, $this->imageEntityData['extension']);\n $this->assertRegExp(\n '/[a-zA-z]*\\/[a-zA-z]*\\/' .\n self::DIRECTORY_NAME .\n '\\/[' .\n self::SIZE_ORIGINAL .\n ']*\\/[0-9]*\\/[0-9]*\\/[0-9]*\\/[0-9]*\\.[a-zA-Z]*/',\n $imgPath\n );\n }", "function img($src = '', bool $indexPage = false, $attributes = ''): string\n {\n if (! is_array($src)) {\n $src = ['src' => $src];\n }\n if (! isset($src['src'])) {\n $src['src'] = $attributes['src'] ?? '';\n }\n if (! isset($src['alt'])) {\n $src['alt'] = $attributes['alt'] ?? '';\n }\n\n $img = '<img';\n\n // Check for a relative URI\n if (! preg_match('#^([a-z]+:)?//#i', $src['src']) && strpos($src['src'], 'data:') !== 0) {\n if ($indexPage === true) {\n $img .= ' src=\"' . site_url($src['src']) . '\"';\n } else {\n $img .= ' src=\"' . slash_item('baseURL') . $src['src'] . '\"';\n }\n\n unset($src['src']);\n }\n\n // Append any other values\n foreach ($src as $key => $value) {\n $img .= ' ' . $key . '=\"' . $value . '\"';\n }\n\n // Prevent passing completed values to stringify_attributes\n if (is_array($attributes)) {\n unset($attributes['alt'], $attributes['src']);\n }\n\n return $img . stringify_attributes($attributes) . _solidus() . '>';\n }", "function testBug11370()\n {\n $bbc = new HTML_BBCodeParser2(array('filters' => ''));\n $bbc->addFilter('Images');\n\n $this->assertEquals('<img src=\"admin.php?fs=image\" alt=\"\" />',\n $bbc->qparse(\"[img]admin.php?fs=image[/img]\")\n );\n }", "public function testImageWithFullBase() {\n\t\t$result = $this->Html->image('test.gif', array('fullBase' => true));\n\t\t$here = $this->Html->url('/', true);\n\t\t$this->assertTags($result, array('img' => array('src' => $here . 'img/test.gif', 'alt' => '')));\n\n\t\t$result = $this->Html->image('sub/test.gif', array('fullBase' => true));\n\t\t$here = $this->Html->url('/', true);\n\t\t$this->assertTags($result, array('img' => array('src' => $here . 'img/sub/test.gif', 'alt' => '')));\n\n\t\t$request = $this->Html->request;\n\t\t$request->webroot = '/myproject/';\n\t\t$request->base = '/myproject';\n\t\tRouter::setRequestInfo($request);\n\n\t\t$result = $this->Html->image('sub/test.gif', array('fullBase' => true));\n\t\t$here = $this->Html->url('/', true);\n\t\t$this->assertTags($result, array('img' => array('src' => $here . 'img/sub/test.gif', 'alt' => '')));\n\t}", "function get_img_src ($img) {\n return (preg_match('~\\bsrc=\"([^\"]++)\"~', $img, $matches)) ? $matches[1] : '';\n}", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( KISSIT_MAIN_PRODUCT_WATERMARK_SIZE == 0 ) {\n \tif ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n \t\treturn 'abort';\n \t} \n \tif (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n \t\treturn 'abort';\n \t}\n }\n }", "public function testAddImageByUrl()\n {\n $oFooter = new Footer(1);\n $element = $oFooter->addImage('http://php.net/images/logos/php-med-trans-light.gif');\n\n $this->assertCount(1, $oFooter->getElements());\n $this->assertInstanceOf('PhpOffice\\\\PhpWord\\\\Element\\\\Image', $element);\n }", "public function getImageUrl();", "public function testAddImageSectionByUrl()\n {\n $oCell = new Cell();\n $element = $oCell->addImage('http://php.net/images/logos/php-med-trans-light.gif');\n\n $this->assertCount(1, $oCell->getElements());\n $this->assertInstanceOf('PhpOffice\\\\PhpWord\\\\Element\\\\Image', $element);\n }", "function img( $src = '', $index_page = FALSE, $attributes = '' )\n\t{\n\t\tif ( ! is_array( $src ) )\n\t\t{\n\t\t\t$src = [ 'src' => $src ];\n\t\t}\n\n\t\t// If there is no alt attribute defined, set it to an empty string\n\t\tif ( ! isset( $src[ 'alt' ] ) )\n\t\t{\n\t\t\t$src[ 'alt' ] = '';\n\t\t}\n\n\t\t$img = '<img';\n\n\t\tforeach ( $src as $k => $v )\n\t\t{\n\t\t\tif ( $k === 'src' && ! preg_match( '#^([a-z]+:)?//#i', $v ) )\n\t\t\t{\n\t\t\t\tif ( $index_page === TRUE )\n\t\t\t\t{\n\t\t\t\t\t$img .= ' src=\"' . get_instance()->config->site_url( $v ) . '\"';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$img .= ' src=\"' . \\O2System::$config->slash_item( 'base_url' ) . $v . '\"';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$img .= ' ' . $k . '=\"' . $v . '\"';\n\t\t\t}\n\t\t}\n\n\t\treturn $img . _stringify_attributes( $attributes ) . ' />';\n\t}", "public function hasImage(): bool;", "public function testThemeImageWithSrcsetMultiplier() {\n // Test with multipliers.\n $image = [\n '#theme' => 'image',\n '#srcset' => [\n [\n 'uri' => $this->testImages[0],\n 'multiplier' => '1x',\n ],\n [\n 'uri' => $this->testImages[1],\n 'multiplier' => '2x',\n ],\n ],\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the srcset attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[0])) . ' 1x, ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' 2x', 'Correct output for image with srcset attribute and multipliers.');\n }", "public function inlineImageExists()\n {\n }", "public function testProfilePrototypeUpdateImage()\n {\n\n }", "public function img($src = \"\", $alt = \"\") {\n echo \"<img src=assets/img/'\" . $src . \"' alt='\" . $alt . \"'>\";\n }", "public function testSetGetImageHandler()\n {\n $sut = new Image_Processor_Adapter_Gd2();\n\n $ih = imagecreatetruecolor(1, 1);\n $this->assertInstanceOf(get_class($sut), $sut->setImageHandler($ih));\n $this->assertSame($ih, $sut->getImageHandler());\n }", "public function hasSrc()\n {\n return $this->get(self::SRC) !== null;\n }", "public function testCseImageResponse()\n {\n $result = new GoogleRequest('#image #one test');\n $result = $result->makeCseRequest();\n $this->assertInstanceOf(\n \\Google_Service_Customsearch_ResultImage::class, \n $result->getItems()[0]->getImage()\n );\n }", "public function IncorrectImagePixelSize()\n\t{\n\t\tglobal $ft_dom;\n\t\t$code = array('');\t\t\t\n\t\t$elements = $ft_dom->getElementsByTagName('img');\n\t\t$img_array = array();\n\t\t$badimg = array();\n\t\t$code[1] = 0;\n\t\t$code[2] = '';\n\t\t$max_resource_tests = 50;\n\n\t foreach ($elements as $element) { \n\t\t\t//don't try to do too many.\n\t\t\tif(count($img_array) > $max_resource_tests) { continue; }\n\t\t\tif(Helper::likelyPixel($element)) { continue; }\n\t\t\tif($element->hasAttribute('src')) {\n\t\t\t\t//if((!$element->hasAttribute('width') && $element->hasAttribute('style')) && Helper::hasInlineStyleAttribute($element->getAttribute('style'),'width')) { echo \"width set inline.\"; }\n\t\t\t\tif(in_array($element->getAttribute('src'),$img_array)) { continue; }\n\t\t\t\t\n\t\t\t\tif ($element->hasAttribute('width') || $element->hasAttribute('height')) {\n\t\t\t\t\t$link = Helper::getAbsoluteResourceLink($element->getAttribute('src'));\n\t\t\t\t\t\n\t\t\t\t\tif(Helper::http200Test($link)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tlist($width, $height) = getimagesize($link);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($element->hasAttribute('width')) {\n\t\t\t\t\t\t\t//echo \"\\n\\nwidth:\" . $element->getAttribute('width') . \"\\n\";\n\n\t\t\t\t\t\t\tif($element->getAttribute('width') != $width) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) { $code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be width=\\\"$width\\\"\"; }\n\t\t\t\t\t\t\t\t$badimg[] = $element;\n\t\t\t\t\t\t\t\t$code[1]++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($element->hasAttribute('height')) {\n\n\t\t\t\t\t\t\tif($element->getAttribute('height') != $height) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) {\n\t\t\t\t\t\t\t\t\tif(in_array($element, $badimg)) {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= \"\\n and height=\\\"$height\\\"(\" .$element->getAttribute('src') . \")\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be height=\\\"$height\\\"\";\n\t\t\t\t\t\t\t\t\t\t$code[1]++;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(in_array($element, $badimg)) { $code[0] .= \"\\n\\n\"; }\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$img_array[] = $element->getAttribute('src');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($code[0] != '') {\n\t\t\tif($code[1] > Helper::$max_disp_threshold) { $code[0] .= '...'; }\n\t\t\tif($code[1] > 1) { $code[2] = 's'; }\t\t\t\n\t\t\treturn $code;\n\t\t}\n\t return false;\n\t}", "function validateImage($src) {\n\t\t$imageResult = '';\n\t\tif ($_FILES[$src]['tmp_name'] == '') {\n\t\t\tif (1 == $_FILES[$src]['error']) {\n\t\t\t\t$imageResult = 'Image Size is above server max upload size';\n\t\t\t}\n\t\t\t$imageResult .= '<br/>Image is empty!';\n\t\t}\n\t\tif (!is_uploaded_file($_FILES[$src]['tmp_name'])) {\n\t\t\t$imageResult .= '<br/>Image not uploaded';\n\t\t}\n\t\tif ($_FILES[$src]['size'] == 0) {\n\t\t\t$imageResult .= '<br/>Image size is 0';\n\t\t}\n\t\tif ($_FILES[$src]['size'] > 8388608) {\n\t\t\t$imageResult .= '<br/>Image size is greater than 8mb';\n\t\t}\n\t\t$size = GetImageSize($_FILES[$src]['tmp_name']);\n\t\tif ($size[2] != 1 && $size[2] != 2 && $size[2] != 3) {\n\t\t\t$imageResult .= '<br/>File Not an image';\n\t\t}\n\t\treturn ($imageResult == '') ? true : $imageResult;\n\t}", "function checkImg(){\n global $postpath;\n return getimagesize($postpath) !== false;\n }", "function img($src = '', $attributes = '', $index_page = false)\n\t{\n\t\tif ( ! is_array($src) )\n\t\t{\n\t\t\t$src = array('src' => $src);\n\t\t}\n\n\t\t// If there is no alt attribute defined, set it to an empty string\n\t\tif ( ! isset($src['alt']))\n\t\t{\n\t\t\t$src['alt'] = '';\n\t\t}\n\n\t\t$img = '<img';\n\n\t\tforeach ($src as $k => $v)\n\t\t{\n\t\t\tif ($k === 'src' && ! preg_match('#^(data:[a-z,;])|(([a-z]+:)?(?<!data:)//)#i', $v))\n\t\t\t{\n\t\t\t\tif ($index_page === true)\n\t\t\t\t{\n\t\t\t\t\t$img .= ' src=\"'.get_instance()->config->site_url($v).'\"';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$img .= ' src=\"'.get_instance()->config->slash_item('base_url').$v.'\"';\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$img .= ' '.$k.'=\"'.$v.'\"';\n\t\t\t}\n\t\t}\n\n\t\treturn $img._stringify_attributes($attributes).' />';\n\t}", "function test_img_external_source() {\n $links = array(\n 'external' => array(),\n 'internal' => array()\n );\n $posts = CompliantPost::published();\n\n foreach ( $posts as $post ) {\n foreach ( $post->embedded_images as $embedded_image ) {\n if ( $embedded_image->has_external_src() ) {\n $links['external'][] = $embedded_image->src;\n }\n else {\n $links['internal'][] = $embedded_image->src;\n }\n }\n }\n\n var_dump($links);\n }", "function dizzy_featured_ogimg () { \n\t $thumb = get_the_post_thumbnail($post->ID);\n\t\t$pattern= \"/(?<=src=['|\\\"])[^'|\\\"]*?(?=['|\\\"])/i\";\n\t\tpreg_match($pattern, $thumb, $thePath);\n\t\t$theSrc = $thePath[0];\n}", "public function image($src,$alt = null)\r\n {\r\n $element = $this->element('img')->attribute('src',$src);\r\n\r\n if(!is_null($alt))\r\n {\r\n $element->attribute('alt',$alt);\r\n }\r\n\r\n return $element;\r\n }", "public function testCacheIntegrity() {\n\t\t$fullPath = realpath(dirname(__FILE__) . '/gdtest/test_jpg.jpg');\n\n\t\ttry {\n\t\t\t$gdFailure = new GDBackend_Failure($fullPath, array('ScaleWidth', 123));\n\t\t\t$this->fail('GDBackend_Failure should throw an exception when setting image resource');\n\t\t} catch (GDBackend_Failure_Exception $e) {\n\t\t\t$cache = SS_Cache::factory('GDBackend_Manipulations');\n\t\t\t$key = md5(implode('_', array($fullPath, filemtime($fullPath))));\n\n\t\t\t$data = unserialize($cache->load($key));\n\n\t\t\t$this->assertArrayHasKey('ScaleWidth|123', $data);\n\t\t\t$this->assertTrue($data['ScaleWidth|123']);\n\t\t}\n\t}", "public function load()\n\t{\n\t\tif (!$this->isValidImage()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$this->image = new SimpleImage();\n\n\t\t$this->image->fromFile($this->source_path);\n\n\t\treturn true;\n\t}", "public function testGetImageSize()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image size to be 516x710 pixels.'\n );\n\n if (extension_loaded('imagick')) {\n $img = new P4Cms_Image();\n try {\n $img->getImageSize();\n $this->fail('Expected failure with empty Imagick object.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame(\n $e->getMessage(),\n \"Can not get image size: no image data were set.\"\n );\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n }", "public function testSetImageHandlerWithoutResource()\n {\n $adapter = new Image_Processor_Adapter_Gd2();\n\n $this->setExpectedException(\n 'UnexpectedValueException',\n 'Image handler passed was not a resource'\n );\n\n $adapter->setImageHandler('not a resource');\n }", "public function testWebP() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH;\n\t\t$height = 0;\n\n\t\t$thumb = $image->Filter('format','webp')->ScaleWidth( $width );\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/{$width}x{$height}/filters:format(webp)/{$original_url}\", $url);\n\n\t\t$meta = getimagesize($url);\n\n\t\t$this->assertEquals( $meta['mime'], \"image/webp\" );\n\n\t}", "function urlimageisvalid($image) {\n $params = array('http' => array('method' => 'HEAD'));\n $ctx = stream_context_create($params);\n $fp = @fopen($image, 'rb', false, $ctx);\n if (!$fp) \n return false; // Problem with url\n\n $meta = stream_get_meta_data($fp);\n if ($meta === false)\n {\n fclose($fp);\n return false; // Problem reading data from url\n }\n\n $wrapper_data = $meta[\"wrapper_data\"];\n if(is_array($wrapper_data)){\n foreach(array_keys($wrapper_data) as $hh){\n if (substr($wrapper_data[$hh], 0, 19) == \"Content-Type: image\") // strlen(\"Content-Type: image\") == 19 \n {\n fclose($fp);\n return true;\n }\n }\n }\n\n fclose($fp);\n return false;\n}", "public function testImageInfoIsEncodedCorrectlyWithMimeType()\n {\n // The model must be used here or any `'` in the blob must be escaped.\n $imageBlob = file_get_contents(\"/var/www/html/tests/fixtures/image.png\");\n Entry::create(1, 1, '2020-01-01', 'content', $imageBlob);\n\n Session::getInstance()->setUser(User::login(\"someuser\", \"password\"));\n $entries = Entry::getEntriesForCurrentUser();\n $formatted = $entries[0]->getEncodedImage();\n\n $this->assertEquals($formatted, \"data:image/png;base64,\" . base64_encode($imageBlob));\n }", "public function testImageSkippedWhenUnavailable() {\n\t\t$fullPath = realpath(dirname(__FILE__) . '/gdtest/test_jpg.jpg');\n\t\t$gd = new GDBackend_ImageUnavailable($fullPath);\n\n\t\t/* Ensure no image resource is created if the image is unavailable */\n\t\t$this->assertNull($gd->getImageResource());\n\t}", "public function testDownloadCertificateImage()\n {\n }", "public function testPutImage()\n {\n }", "function file_is_valid_image($path)\n {\n }", "public function testGetImageInfoFromBlob()\n {\n $imgBlob = file_get_contents($this->_testImagePath);\n $imgInfo = Tinebase_ImageHelper::getImageInfoFromBlob($imgBlob);\n \n $this->assertEquals($this->_testImageData['width'], $imgInfo['width']);\n }", "public function testGetValidImageTagByImageId() {\n\t\t$numRows = $this->getConnection()->getRowCount(\"imageTag\");\n\n\t\t$imageTag = new ImageTag($this->imageTagImage->getImageId(), $this->imageTagTag->getTagId());\n\t\t$imageTag->insert($this->getPDO());\n\t\t$results = ImageTag::getImageTagByImageId($this->getPDO(), $this->imageTagImage->getImageId());\n\n\t}", "public function iShouldSeeTheImageInTheElement($elem, $text) {\n $element = $this->getSession()->getPage()->find(\"css\", $elem);\n if (!$element) {\n throw new Exception('Expected element ' . $elem . ' not found on page.');\n }\n $value_current = $element->getAttribute(\"src\");\n if ($text !== $value_current && $text !== basename($value_current)) {\n throw new Exception('Expected value ' . $text . ' but found ' . $value_current);\n }\n }", "public function testPostImage()\n {\n }", "function get_fake_image( $source = 'dogapi', $custom_args = array() ) {\n\n\t// Allow a hardwired bypass for other content generators.\n\t$maybe_pass = apply_filters( Core\\HOOK_PREFIX . 'image_generate_bypass', '', $source, $custom_args );\n\n\t// Return the potentially bypassed content.\n\tif ( ! empty( $maybe_pass ) ) {\n\t\treturn $maybe_pass;\n\t}\n\n\t// Now switch between my image sources.\n\tswitch ( $source ) {\n\n\t\tcase 'dogapi':\n\n\t\t\treturn APICalls\\fetch_dog_api_image( $custom_args );\n\t\t\tbreak;\n\n\t\tcase 'flickr':\n\n\t\t\treturn APICalls\\fetch_lorem_flickr_image( $custom_args );\n\t\t\tbreak;\n\n\t\tcase 'local':\n\n\t\t\treturn Datasets\\fetch_local_file_data( 'image' );\n\t\t\tbreak;\n\n\t\tdefault :\n\t\t\treturn false;\n\n\t\t// End all the case checks.\n\t}\n}", "function file_is_displayable_image($path)\n {\n }", "public function set_source($img_file = '')\n {\n $this->_clean_data();\n if (empty($img_file) || ! file_exists($img_file) || ! is_readable($img_file)) {\n if ( ! $this->SILENT_MODE) {\n trigger_error('Wrong image file!', E_USER_WARNING);\n }\n return false;\n }\n $this->source_file = $img_file;\n $this->_get_img_info();\n if (empty($this->source_width) || empty($this->source_height) || empty($this->source_type)) {\n if ( ! $this->SILENT_MODE) {\n trigger_error('Cant get correct image info!', E_USER_WARNING);\n }\n return false;\n }\n $this->_set_new_size_auto();\n $func_name = 'imagecreatefrom' . $this->source_type;\n $this->tmp_img = strlen($this->source_type) ? $func_name($this->source_file) : null;\n\n if (empty($this->tmp_img)) {\n return false;\n }\n\n return true;\n }", "function img($file, $dir = 'images')\n{\n return src($file, $dir);\n}", "function test_no_takeaway_logo()\n\t{\n\t\t$result = $this->takeaways->getLogo($this->takeawayId);\n\t\t\n\t\tif ($result)\n\t\t\t$this->_assert_equals($result, 'images/nologo.gif');\n\t\telse\n\t\t\t$this->_fail();\n\t}", "function getImageRegex()\r\n\t{\r\n\t\t$output = preg_match_all('/<img.+src=[\\'\"]([^\\'\"]+)[\\'\"].*>/i', \r\n\t\t\t$this->description, $matches);\r\n\t\t$first_img = $matches [1] [0];\r\n\t\t\r\n\t\t//Defines a default image\r\n\t\tif(empty($first_img)){ \r\n\t\t\t$first_img = \"/images/default.jpg\";\r\n\t\t}\r\n\t\t$this->picture = $first_img;\r\n\t}", "public function test_it_stores_new_images_for_movies() {\n $img = \"data:image/gif;base64,R0lGODlhPQBEAPeoAJosM//AwO/AwHVYZ/z595kzAP/s7P+goOXMv8+fhw/v739/f+8PD98fH/8mJl+fn/9ZWb8/PzWlwv///6wWGbImAPgTEMImIN9gUFCEm/gDALULDN8PAD6atYdCTX9gUNKlj8wZAKUsAOzZz+UMAOsJAP/Z2ccMDA8PD/95eX5NWvsJCOVNQPtfX/8zM8+QePLl38MGBr8JCP+zs9myn/8GBqwpAP/GxgwJCPny78lzYLgjAJ8vAP9fX/+MjMUcAN8zM/9wcM8ZGcATEL+QePdZWf/29uc/P9cmJu9MTDImIN+/r7+/vz8/P8VNQGNugV8AAF9fX8swMNgTAFlDOICAgPNSUnNWSMQ5MBAQEJE3QPIGAM9AQMqGcG9vb6MhJsEdGM8vLx8fH98AANIWAMuQeL8fABkTEPPQ0OM5OSYdGFl5jo+Pj/+pqcsTE78wMFNGQLYmID4dGPvd3UBAQJmTkP+8vH9QUK+vr8ZWSHpzcJMmILdwcLOGcHRQUHxwcK9PT9DQ0O/v70w5MLypoG8wKOuwsP/g4P/Q0IcwKEswKMl8aJ9fX2xjdOtGRs/Pz+Dg4GImIP8gIH0sKEAwKKmTiKZ8aB/f39Wsl+LFt8dgUE9PT5x5aHBwcP+AgP+WltdgYMyZfyywz78AAAAAAAD///8AAP9mZv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAKgALAAAAAA9AEQAAAj/AFEJHEiwoMGDCBMqXMiwocAbBww4nEhxoYkUpzJGrMixogkfGUNqlNixJEIDB0SqHGmyJSojM1bKZOmyop0gM3Oe2liTISKMOoPy7GnwY9CjIYcSRYm0aVKSLmE6nfq05QycVLPuhDrxBlCtYJUqNAq2bNWEBj6ZXRuyxZyDRtqwnXvkhACDV+euTeJm1Ki7A73qNWtFiF+/gA95Gly2CJLDhwEHMOUAAuOpLYDEgBxZ4GRTlC1fDnpkM+fOqD6DDj1aZpITp0dtGCDhr+fVuCu3zlg49ijaokTZTo27uG7Gjn2P+hI8+PDPERoUB318bWbfAJ5sUNFcuGRTYUqV/3ogfXp1rWlMc6awJjiAAd2fm4ogXjz56aypOoIde4OE5u/F9x199dlXnnGiHZWEYbGpsAEA3QXYnHwEFliKAgswgJ8LPeiUXGwedCAKABACCN+EA1pYIIYaFlcDhytd51sGAJbo3onOpajiihlO92KHGaUXGwWjUBChjSPiWJuOO/LYIm4v1tXfE6J4gCSJEZ7YgRYUNrkji9P55sF/ogxw5ZkSqIDaZBV6aSGYq/lGZplndkckZ98xoICbTcIJGQAZcNmdmUc210hs35nCyJ58fgmIKX5RQGOZowxaZwYA+JaoKQwswGijBV4C6SiTUmpphMspJx9unX4KaimjDv9aaXOEBteBqmuuxgEHoLX6Kqx+yXqqBANsgCtit4FWQAEkrNbpq7HSOmtwag5w57GrmlJBASEU18ADjUYb3ADTinIttsgSB1oJFfA63bduimuqKB1keqwUhoCSK374wbujvOSu4QG6UvxBRydcpKsav++Ca6G8A6Pr1x2kVMyHwsVxUALDq/krnrhPSOzXG1lUTIoffqGR7Goi2MAxbv6O2kEG56I7CSlRsEFKFVyovDJoIRTg7sugNRDGqCJzJgcKE0ywc0ELm6KBCCJo8DIPFeCWNGcyqNFE06ToAfV0HBRgxsvLThHn1oddQMrXj5DyAQgjEHSAJMWZwS3HPxT/QMbabI/iBCliMLEJKX2EEkomBAUCxRi42VDADxyTYDVogV+wSChqmKxEKCDAYFDFj4OmwbY7bDGdBhtrnTQYOigeChUmc1K3QTnAUfEgGFgAWt88hKA6aCRIXhxnQ1yg3BCayK44EWdkUQcBByEQChFXfCB776aQsG0BIlQgQgE8qO26X1h8cEUep8ngRBnOy74E9QgRgEAC8SvOfQkh7FDBDmS43PmGoIiKUUEGkMEC/PJHgxw0xH74yx/3XnaYRJgMB8obxQW6kL9QYEJ0FIFgByfIL7/IQAlvQwEpnAC7DtLNJCKUoO/w45c44GwCXiAFB/OXAATQryUxdN4LfFiwgjCNYg+kYMIEFkCKDs6PKAIJouyGWMS1FSKJOMRB/BoIxYJIUXFUxNwoIkEKPAgCBZSQHQ1A2EWDfDEUVLyADj5AChSIQW6gu10bE/JG2VnCZGfo4R4d0sdQoBAHhPjhIB94v/wRoRKQWGRHgrhGSQJxCS+0pCZbEhAAOw==\";\n\n $data = [\n \"file_name\" => \"test-img.gif\",\n \"raw_data\" => $img\n ];\n\n $this->json('POST', route('api.movies.images.store', 1), $data)\n ->assertStatus(201)\n ->assertJsonStructure([\n \"id\",\n \"url\",\n \"mime\",\n \"size\"\n ]);\n\n $id = Image::first()->id;\n\n //Make sure it is gone\n $this->json('GET', route('api.movies.images.show', [$id, $id]))\n ->assertStatus(200);\n }", "public function test_it_has_images()\n {\n $business = BusinessFactory::create();\n $this->assertContainsOnlyInstancesOf(Image::class, $business->images);\n }", "function checkimage($img)\r\n{\r\n $imageMimeTypes = array(\r\n 'image/png',\r\n 'image/gif',\r\n 'image/jpeg');\r\n\r\n $img = mime_content_type($img);\r\n $imgcheck = false;\r\n if (in_array ($img, $imageMimeTypes))\r\n {\r\n $imgcheck = true;\r\n }\r\n return $imgcheck;\r\n}", "public function testJpeg()\n {\n $this->assertThat('./tests/images/jpeg.jpg',\n $this->logicalNot($this->equalTo(new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg')), '', 0.01));\n\n // should compare successfully with threshold = 0.1\n $this->assertThat('./tests/images/jpeg.jpg',\n new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg', 0.1), '', 0.1);\n }", "function check_image_existance($path,$image_name)\n{\n //buld the url\n $image_url=$path.$image_name;\n if (file_exists($image_url) !== false) {\n return true;\n }\n}", "function img_tag($src, array $attributes = array())\r\n{\r\n $attributes['src'] = $src;\r\n\r\n return tag('img', $attributes);\r\n}", "public function testImgPathOnlyPathOriginal()\n {\n $imgPath = $this->imageService->imgPath(\n \\Media\\Service\\Image::ORIGINAL,\n $this->imageId,\n $this->imageEntityData['extension'],\n \\Media\\Service\\File::FROM_PUBLIC\n );\n $this->assertRegExp(\n '/[a-zA-z]*\\/' .\n self::DIRECTORY_NAME.\n '\\/[' .\n self::SIZE_ORIGINAL .\n ']*\\/[0-9]*\\/[0-9]*\\/[0-9]*\\/[0-9]*\\.[a-zA-Z]*/',\n $imgPath\n );\n }", "public function testUndefinedAttributesOnAnImage()\n {\n $result = null;\n\n try {\n $quill = new QuillRender($this->delta_multiple_unknown_attributes_image);\n $result = $quill->render();\n } catch (\\Exception $e) {\n $this->fail(__METHOD__ . 'failure, ' . $e->getMessage());\n }\n\n $this->assertEquals(\n $this->expected_multiple_unknown_attributes_image,\n trim($result),\n __METHOD__ . ' - Undefined attributes on image failure'\n );\n }", "function showImage($filename){\n if(file_exists($filename))\n echo \"<img src=\\\"$filename\\\">\";\n }", "function shariff3uu_catch_image() {\n\t\t$result = preg_match_all( '/<img.+src=[\\'\"]([^\\'\"]+)[\\'\"].*>/i', get_post_field( 'post_content', get_the_ID() ), $matches );\n\t\tif ( array_key_exists( 0, $matches[1] ) ) {\n\t\t\treturn $matches[1][0];\n\t\t} else {\n\t\t\treturn '';\n\t\t}\n\t}", "function do_bbcode_img ($action, $attributes, $content, $params, $node_object) {\r\n\r\n if ($action == 'validate') {\r\n return true;\r\n }\r\n return '<img border=\"0\" src=\"'.htmlspecialchars($content).'\" alt=\"\">';\r\n}" ]
[ "0.6883127", "0.66157275", "0.6597458", "0.6551573", "0.651266", "0.64515555", "0.6446536", "0.6428485", "0.63694066", "0.636573", "0.6355856", "0.6288904", "0.6258007", "0.62237185", "0.6217384", "0.62136537", "0.6148944", "0.6133649", "0.61302394", "0.6126889", "0.6106779", "0.6090472", "0.60793346", "0.6074975", "0.60736406", "0.6014184", "0.599768", "0.59843045", "0.59761477", "0.59500724", "0.59497476", "0.59429544", "0.593252", "0.59264606", "0.592257", "0.5875672", "0.58563757", "0.5855298", "0.5832819", "0.5823105", "0.581987", "0.580604", "0.57987523", "0.57973754", "0.57886064", "0.57680494", "0.57623214", "0.57597154", "0.5758024", "0.57560605", "0.5743193", "0.5738111", "0.5733955", "0.5732801", "0.5731498", "0.5721083", "0.5711472", "0.57040477", "0.5695323", "0.5693097", "0.568937", "0.5685283", "0.56754047", "0.5665183", "0.5657857", "0.56365466", "0.56304175", "0.56242204", "0.5622147", "0.5612684", "0.5612115", "0.56072354", "0.56020486", "0.5580645", "0.5574035", "0.55728775", "0.55620414", "0.55611694", "0.55587494", "0.5557661", "0.55545104", "0.5546845", "0.55403775", "0.550629", "0.5503231", "0.5495138", "0.54900193", "0.54790294", "0.5473576", "0.5469838", "0.5469353", "0.5468156", "0.54627407", "0.5461989", "0.5459639", "0.5455606", "0.5455597", "0.5450397", "0.5443703", "0.5442997" ]
0.74064183
0
Tests that an image with the srcset and multipliers is output correctly.
public function testThemeImageWithSrcsetMultiplier() { // Test with multipliers. $image = [ '#theme' => 'image', '#srcset' => [ [ 'uri' => $this->testImages[0], 'multiplier' => '1x', ], [ 'uri' => $this->testImages[1], 'multiplier' => '2x', ], ], '#width' => rand(0, 1000) . 'px', '#height' => rand(0, 500) . 'px', '#alt' => $this->randomMachineName(), '#title' => $this->randomMachineName(), ]; $this->render($image); // Make sure the srcset attribute has the correct value. $this->assertRaw($this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[0])) . ' 1x, ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' 2x', 'Correct output for image with srcset attribute and multipliers.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testThemeImageWithSrcsetWidth() {\n // Test with multipliers.\n $widths = [\n rand(0, 500) . 'w',\n rand(500, 1000) . 'w',\n ];\n $image = [\n '#theme' => 'image',\n '#srcset' => [\n [\n 'uri' => $this->testImages[0],\n 'width' => $widths[0],\n ],\n [\n 'uri' => $this->testImages[1],\n 'width' => $widths[1],\n ],\n ],\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the srcset attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->generateString($this->testImages[0]) . ' ' . $widths[0] . ', ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' ' . $widths[1], 'Correct output for image with srcset attribute and width descriptors.');\n }", "public function test_cl_image_tag_srcset()\n {\n $expected_tag = self::get_expected_cl_image_tag(\n self::$public_id,\n self::$common_transformation_str,\n '',\n self::$breakpoints_arr\n );\n\n $tag_with_breakpoints = cl_image_tag(\n self::$public_id,\n array_merge(\n self::$common_image_options,\n array('srcset' => self::$common_srcset)\n )\n );\n\n $this->assertEquals(\n $expected_tag,\n $tag_with_breakpoints,\n 'Should create img srcset attribute with provided breakpoints'\n );\n }", "public function test_srcset_invalid_values()\n {\n $invalid_breakpoints = array(\n array('sizes' => true), // srcset data not provided\n array('max_width' => 300, 'max_images' => 3), // no min_width\n array('min_width' => '1', 'max_width' => 300, 'max_images' => 3), // invalid min_width\n array('min_width' => 100, 'max_images' => 3), // no max_width\n array('min_width' => '1', 'max_width' => '3', 'max_images' => 3), // invalid max_width\n array('min_width' => 200, 'max_width' => 100, 'max_images' => 3), // min_width > max_width\n array('min_width' => 100, 'max_width' => 300), // no max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => 0), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => -17), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => '3'), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => null), // invalid max_images\n );\n\n\n $err_log_original_destination = ini_get('error_log');\n // Suppress error messages in error log\n ini_set('error_log', '/dev/null');\n\n try {\n foreach ($invalid_breakpoints as $value) {\n $tag = cl_image_tag(\n self::$public_id,\n array_merge(self::$common_image_options, array('srcset' => $value))\n );\n\n self::assertNotContains(\"srcset\", $tag);\n }\n } catch (\\Exception $e) {\n ini_set('error_log', $err_log_original_destination);\n throw $e;\n }\n\n ini_set('error_log', $err_log_original_destination);\n }", "public function testSetGetImageHandler()\n {\n $sut = new Image_Processor_Adapter_Gd2();\n\n $ih = imagecreatetruecolor(1, 1);\n $this->assertInstanceOf(get_class($sut), $sut->setImageHandler($ih));\n $this->assertSame($ih, $sut->getImageHandler());\n }", "public function testRangeWithIntermediateSizes() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 300],\n ['width' => 400],\n ['width' => 500],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,3'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 280],\n ['width' => 360],\n ['width' => 440],\n ['width' => 520],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,4'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 267],\n ['width' => 333],\n ['width' => 400],\n ['width' => 467],\n ['width' => 533],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,5'));\n }", "public function testMultipleSizesAsString() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200,400,600'));\n }", "public function testThemeImageWithSizes() {\n // Test with multipliers.\n $sizes = '(max-width: ' . rand(10, 30) . 'em) 100vw, (max-width: ' . rand(30, 50) . 'em) 50vw, 30vw';\n $image = [\n '#theme' => 'image',\n '#sizes' => $sizes,\n '#uri' => reset($this->testImages),\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure sizes is set.\n $this->assertRaw($sizes, 'Sizes is set correctly.');\n }", "public function test_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\n\t\t\t/**\n\t\t\t * #0 - 10x10 resize, no cropping.\n\t\t\t * By aspect, should be 10x6 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 10,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #1 - 75x50 resize, with cropping.\n\t\t\t * Output dimensions should be 75x50\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #2 - 20 pixel max height, no cropping.\n\t\t\t * By aspect, should be 30x20 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 9999, # Arbitrary High Value\n\t\t\t\t'height' => 20,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #3 - 45 pixel max height, with cropping.\n\t\t\t * By aspect, should be 45x400 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 9999, # Arbitrary High Value\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #4 - 50 pixel max width, no cropping.\n\t\t\t * By aspect, should be 50x33 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #5 - 55 pixel max width, no cropping, null height\n\t\t\t * By aspect, should be 55x36 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => null,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #6 - 55 pixel max height, no cropping, no width specified.\n\t\t\t * By aspect, should be 82x55 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'height' => 55,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #7 - 60 pixel max height, no cropping, null width.\n\t\t\t * By aspect, should be 90x60 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => 60,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #8 - 70 pixel max height, no cropping, negative width.\n\t\t\t * By aspect, should be 105x70 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => -9999, # Arbitrary Negative Value\n\t\t\t\t'height' => 70,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #9 - 200 pixel max width, no cropping, negative height.\n\t\t\t * By aspect, should be 200x133 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => -9999, # Arbitrary Negative Value\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t$expected_array = array(\n\n\t\t\t// #0\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-10x7.jpg',\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 7,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-10x7.jpg' ),\n\t\t\t),\n\n\t\t\t// #1\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-75x50.jpg',\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-75x50.jpg' ),\n\t\t\t),\n\n\t\t\t// #2\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-30x20.jpg',\n\t\t\t\t'width' => 30,\n\t\t\t\t'height' => 20,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-30x20.jpg' ),\n\t\t\t),\n\n\t\t\t// #3\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-45x400.jpg',\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 400,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-45x400.jpg' ),\n\t\t\t),\n\n\t\t\t// #4\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\n\t\t\t// #5\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-55x37.jpg',\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => 37,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-55x37.jpg' ),\n\t\t\t),\n\n\t\t\t// #6\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-83x55.jpg',\n\t\t\t\t'width' => 83,\n\t\t\t\t'height' => 55,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-83x55.jpg' ),\n\t\t\t),\n\n\t\t\t// #7\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-90x60.jpg',\n\t\t\t\t'width' => 90,\n\t\t\t\t'height' => 60,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-90x60.jpg' ),\n\t\t\t),\n\n\t\t\t// #8\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-105x70.jpg',\n\t\t\t\t'width' => 105,\n\t\t\t\t'height' => 70,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-105x70.jpg' ),\n\t\t\t),\n\n\t\t\t// #9\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-200x133.jpg',\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => 133,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-200x133.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertNotNull( $resized );\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\tforeach ( $resized as $key => $image_data ) {\n\t\t\t$image_path = DIR_TESTDATA . '/images/' . $image_data['file'];\n\n\t\t\t// Now, verify real dimensions are as expected\n\t\t\t$this->assertImageDimensions(\n\t\t\t\t$image_path,\n\t\t\t\t$expected_array[ $key ]['width'],\n\t\t\t\t$expected_array[ $key ]['height']\n\t\t\t);\n\t\t}\n\t}", "public function testImageConfiguration()\n {\n $this->runConfigurationAssertions(new Image(), [\n 'imgable_type',\n 'url',\n 'imgable_id',\n ]);\n }", "public function IncorrectImagePixelSize()\n\t{\n\t\tglobal $ft_dom;\n\t\t$code = array('');\t\t\t\n\t\t$elements = $ft_dom->getElementsByTagName('img');\n\t\t$img_array = array();\n\t\t$badimg = array();\n\t\t$code[1] = 0;\n\t\t$code[2] = '';\n\t\t$max_resource_tests = 50;\n\n\t foreach ($elements as $element) { \n\t\t\t//don't try to do too many.\n\t\t\tif(count($img_array) > $max_resource_tests) { continue; }\n\t\t\tif(Helper::likelyPixel($element)) { continue; }\n\t\t\tif($element->hasAttribute('src')) {\n\t\t\t\t//if((!$element->hasAttribute('width') && $element->hasAttribute('style')) && Helper::hasInlineStyleAttribute($element->getAttribute('style'),'width')) { echo \"width set inline.\"; }\n\t\t\t\tif(in_array($element->getAttribute('src'),$img_array)) { continue; }\n\t\t\t\t\n\t\t\t\tif ($element->hasAttribute('width') || $element->hasAttribute('height')) {\n\t\t\t\t\t$link = Helper::getAbsoluteResourceLink($element->getAttribute('src'));\n\t\t\t\t\t\n\t\t\t\t\tif(Helper::http200Test($link)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tlist($width, $height) = getimagesize($link);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($element->hasAttribute('width')) {\n\t\t\t\t\t\t\t//echo \"\\n\\nwidth:\" . $element->getAttribute('width') . \"\\n\";\n\n\t\t\t\t\t\t\tif($element->getAttribute('width') != $width) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) { $code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be width=\\\"$width\\\"\"; }\n\t\t\t\t\t\t\t\t$badimg[] = $element;\n\t\t\t\t\t\t\t\t$code[1]++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($element->hasAttribute('height')) {\n\n\t\t\t\t\t\t\tif($element->getAttribute('height') != $height) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) {\n\t\t\t\t\t\t\t\t\tif(in_array($element, $badimg)) {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= \"\\n and height=\\\"$height\\\"(\" .$element->getAttribute('src') . \")\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be height=\\\"$height\\\"\";\n\t\t\t\t\t\t\t\t\t\t$code[1]++;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(in_array($element, $badimg)) { $code[0] .= \"\\n\\n\"; }\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$img_array[] = $element->getAttribute('src');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($code[0] != '') {\n\t\t\tif($code[1] > Helper::$max_disp_threshold) { $code[0] .= '...'; }\n\t\t\tif($code[1] > 1) { $code[2] = 's'; }\t\t\t\n\t\t\treturn $code;\n\t\t}\n\t return false;\n\t}", "public function testImageQueryString() {\n\t\t$result = $this->Html->image('test.gif?one=two&three=four');\n\t\t$this->assertTags($result, array('img' => array('src' => 'img/test.gif?one=two&amp;three=four', 'alt' => '')));\n\n\t\t$result = $this->Html->image(array(\n\t\t\t'controller' => 'images',\n\t\t\t'action' => 'display',\n\t\t\t'test',\n\t\t\t'?' => array('one' => 'two', 'three' => 'four')\n\t\t));\n\t\t$this->assertTags($result, array('img' => array('src' => '/images/display/test?one=two&amp;three=four', 'alt' => '')));\n\t}", "public function test_single_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t# First, check to see if returned array is as expected\n\t\t$expected_array = array(\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\t// Now, verify real dimensions are as expected\n\t\t$image_path = DIR_TESTDATA . '/images/' . $resized[0]['file'];\n\t\t$this->assertImageDimensions(\n\t\t\t$image_path,\n\t\t\t$expected_array[0]['width'],\n\t\t\t$expected_array[0]['height']\n\t\t);\n\t}", "function wp_image_matches_ratio($source_width, $source_height, $target_width, $target_height)\n {\n }", "public function provideImageTests() {\n $result = [\n [[\n 'descr' => \"[img] produces an image.\",\n 'bbcode' => \"This is Google's logo: [img]http://www.google.com/intl/en_ALL/images/logo.gif[/img].\",\n 'html' => \"This is Google's logo: <img src=\\\"http://www.google.com/intl/en_ALL/images/logo.gif\\\" alt=\\\"logo.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] disallows a javascript: URL.\",\n 'bbcode' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n 'html' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows a URL with an unknown protocol type.\",\n 'bbcode' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n 'html' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows HTML content.\",\n 'bbcode' => \"This is Google's logo: [img]<a href='javascript:alert(\\\"foo\\\")'>click me</a>[/img].\",\n 'html' => \"This is Google's logo: [img]&lt;a href='javascript:alert(&quot;foo&quot;)'&gt;click me&lt;/a&gt;[/img].\",\n ]],\n [[\n 'descr' => \"[img] can produce a local image.\",\n 'bbcode' => \"This is a smiley: [img]smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"smileys/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local rooted URL.\",\n 'bbcode' => \"This is a smiley: [img]/smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local relative URL.\",\n 'bbcode' => \"This is a smiley: [img]../smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"../smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img=src] should produce an image.\",\n 'bbcode' => 'This is a smiley: [img=smile.gif?f=1&b=2][/img] okay?',\n 'html' => 'This is a smiley: <img src=\"smileys/smile.gif\" alt=\"smile.gif?f=1&amp;b=2\" class=\"bbcode_img\" /> okay?',\n ]]\n ];\n return $result;\n }", "private function sanitize_srcset_attribute( DOMAttr $attribute ) {\n\t\t$srcset = $attribute->value;\n\n\t\t// Bail and raise a validation error if no image candidates were found or the last matched group does not\n\t\t// match the end of the `srcset`.\n\t\tif (\n\t\t\t! preg_match_all( self::SRCSET_REGEX_PATTERN, $srcset, $matches )\n\t\t\t||\n\t\t\tend( $matches[0] ) !== substr( $srcset, -strlen( end( $matches[0] ) ) )\n\t\t) {\n\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::INVALID_ATTR_VALUE,\n\t\t\t];\n\t\t\t$this->remove_invalid_attribute( $attribute->ownerElement, $attribute, $validation_error );\n\t\t\treturn;\n\t\t}\n\n\t\t$dimension_count = count( $matches['dimension'] );\n\t\t$commas_count = count( array_filter( $matches['comma'] ) );\n\n\t\t// Bail and raise a validation error if the number of dimensions does not match the number of URLs, or there\n\t\t// are not enough commas to separate the image candidates.\n\t\tif ( count( $matches['url'] ) !== $dimension_count || ( $dimension_count - 1 ) !== $commas_count ) {\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::INVALID_ATTR_VALUE,\n\t\t\t];\n\t\t\t$this->remove_invalid_attribute( $attribute->ownerElement, $attribute, $validation_error );\n\t\t\treturn;\n\t\t}\n\n\t\t// Bail if there are no duplicate image candidates.\n\t\t// Note: array_flip() is used as a faster alternative to array_unique(). See https://stackoverflow.com/a/8321709/93579.\n\t\tif ( count( array_flip( $matches['dimension'] ) ) === $dimension_count ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$image_candidates = [];\n\t\t$duplicate_dimensions = [];\n\n\t\tforeach ( $matches['dimension'] as $index => $dimension ) {\n\t\t\tif ( empty( trim( $dimension ) ) ) {\n\t\t\t\t$dimension = '1x';\n\t\t\t}\n\n\t\t\t// Catch if there are duplicate dimensions that have different URLs. In such cases a validation error will be raised.\n\t\t\tif ( isset( $image_candidates[ $dimension ] ) && $matches['url'][ $index ] !== $image_candidates[ $dimension ] ) {\n\t\t\t\t$duplicate_dimensions[] = $dimension;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$image_candidates[ $dimension ] = $matches['url'][ $index ];\n\t\t}\n\n\t\t// If there are duplicates, raise a validation error and stop short-circuit processing if the error is not removed.\n\t\tif ( ! empty( $duplicate_dimensions ) ) {\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::DUPLICATE_DIMENSIONS,\n\t\t\t\t'duplicate_dimensions' => $duplicate_dimensions,\n\t\t\t];\n\t\t\tif ( ! $this->should_sanitize_validation_error( $validation_error, [ 'node' => $attribute ] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Otherwise, output the normalized/validated srcset value.\n\t\t$attribute->value = implode(\n\t\t\t', ',\n\t\t\tarray_map(\n\t\t\t\tstatic function ( $dimension ) use ( $image_candidates ) {\n\t\t\t\t\treturn \"{$image_candidates[ $dimension ]} {$dimension}\";\n\t\t\t\t},\n\t\t\t\tarray_keys( $image_candidates )\n\t\t\t)\n\t\t);\n\t}", "public function testData()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n if (extension_loaded('imagick')) {\n // no driver was specified so the driver should be an instance of\n // P4Cms_Image_Driver_Imagick\n $this->assertTrue(\n $img->getDriver() instanceof P4Cms_Image_Driver_Imagick,\n 'Expected driver to be instance of P4Cms_Image_Driver_Imagick.'\n );\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected file at: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n\n $newImg = new P4Cms_Image();\n $newImg->setData($data);\n\n // the data returned from getData() should be the same as what was set\n $this->assertSame(\n $newImg->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image built from file: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n }", "public function testValidateDocumentPngValidation()\n {\n }", "public function testS2imageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testGetImageSize()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image size to be 516x710 pixels.'\n );\n\n if (extension_loaded('imagick')) {\n $img = new P4Cms_Image();\n try {\n $img->getImageSize();\n $this->fail('Expected failure with empty Imagick object.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame(\n $e->getMessage(),\n \"Can not get image size: no image data were set.\"\n );\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n }", "public function testSimageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = 'someOtherText';\n $expected = 1;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testSampleValuesGeneratedImages() {\n // Add an image field to the variation.\n FieldStorageConfig::create([\n 'entity_type' => 'commerce_product_variation',\n 'field_name' => 'field_images',\n 'type' => 'image',\n 'cardinality' => 1,\n ])->save();\n $field_config = FieldConfig::create([\n 'entity_type' => 'commerce_product_variation',\n 'field_name' => 'field_images',\n 'bundle' => 'default',\n ]);\n $field_config->save();\n\n $file_storage = \\Drupal::entityTypeManager()->getStorage('file');\n // Assert the baseline file count.\n $this->assertEquals(0, $file_storage->getQuery()->count()->execute());\n\n $this->enableLayoutsForBundle('default');\n $this->configureDefaultLayout('default');\n\n // We should have one randomly generated image, for the variation.\n // @todo we end up with 5. I think it's due to the sample generated Product\n // having sample variations also referenced.\n $files = $file_storage->loadMultiple();\n $this->assertCount(5, $files);\n }", "public function testWebP() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH;\n\t\t$height = 0;\n\n\t\t$thumb = $image->Filter('format','webp')->ScaleWidth( $width );\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/{$width}x{$height}/filters:format(webp)/{$original_url}\", $url);\n\n\t\t$meta = getimagesize($url);\n\n\t\t$this->assertEquals( $meta['mime'], \"image/webp\" );\n\n\t}", "public function testS4imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testCheckConvertability2()\r\n {\r\n global $pretend;\r\n\r\n $gd = $this->createGd('test.png');\r\n self::resetPretending();\r\n\r\n $pretend['functionsExisting'] = ['imagecreatefrompng'];\r\n $gd->checkConvertability();\r\n $pretend['functionsExisting'] = [];\r\n }", "public function responsiveImageProvider() {\n $image = 'http://www.example.com/test_image.png';\n $cloudinaryFetchUrl = $this->cloudinaryResourceBaseUrl . '/' . $this->cloudinaryCloudName . '/image/fetch';\n return [\n // Case 1. No config parameter sent.\n [\n 'image' => ['src' => $image, 'width' => 100, 'height' => 100],\n 'expected' => ['src' => $image, 'width' => 100, 'height' => 100]\n ],\n // Case 2. Only ask for a width (so just scale the image).\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 500],\n 'expected' => [\n 'width' => 600,\n 'height' => 300,\n 'src' => $cloudinaryFetchUrl . '/s--1SSv3TAe--/f_auto/q_auto/c_scale,w_600/' . $image,\n ],\n 'width' => 600,\n ],\n // Case 3. Ask for a width and height.\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 1000],\n 'expected' => [\n 'width' => 600,\n 'height' => 400,\n 'src' => $cloudinaryFetchUrl . '/s--oQnrp4QO--/f_auto/q_auto/c_fill,g_auto,h_400,w_600/' . $image,\n ],\n 'width' => 600,\n 'height' => 400,\n ],\n // Case 4. Ask for a custom transformation.\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 1000],\n 'expected' => [\n 'width' => 600,\n 'height' => 400,\n 'src' => $cloudinaryFetchUrl . '/s--iBYmBJnf--/f_auto/q_auto/c_fill,g_auto,h_400,w_600/c_lfill,h_150,w_150/' . $image\n ],\n 'width' => 600,\n 'height' => 400,\n 'sizes' => NULL,\n 'transform' => 'c_lfill,h_150,w_150',\n ],\n // Case 5. Ask for sizes.\n [\n 'image' => ['src' => $image, 'width' => 2000, 'height' => 1600],\n 'expected' => [\n 'src' => $cloudinaryFetchUrl . '/s--do7-bAD9--/f_auto/q_auto/c_scale,w_1600/' . $image,\n 'width' => 1600,\n 'height' => 1280,\n 'sizes' => '(max-width: 800px) 780px, (max-width: 1200px) 1100px, 1600px',\n 'srcset' => implode(', ', [\n $cloudinaryFetchUrl . '/s--MZkCHWuY--/f_auto/q_auto/c_scale,w_780/' . $image . ' 780w',\n $cloudinaryFetchUrl . '/s--xlf_u2mA--/f_auto/q_auto/c_scale,w_1100/' . $image . ' 1100w',\n ])\n ],\n 'width' => 1600,\n 'height' => NULL,\n 'sizes' => [\n [800, 780],\n [1200, 1100],\n ],\n ],\n // Case 6. A complete test, with height calculation, sizes and custom\n // transformations.\n [\n 'image' => ['src' => $image, 'width' => 2000, 'height' => 1600],\n 'expected' => [\n 'src' => $cloudinaryFetchUrl . '/s--PYehk6Pp--/f_auto/q_auto/c_fill,g_auto,h_1200,w_1600/co_rgb:000000,e_colorize:90/' . $image,\n 'width' => 1600,\n 'height' => 1200,\n 'sizes' => '(max-width: 800px) 780px, (max-width: 1200px) 1100px, 1600px',\n 'srcset' => implode(', ', [\n $cloudinaryFetchUrl . '/s--0q-v7sf8--/f_auto/q_auto/c_fill,g_auto,h_585,w_780/co_rgb:000000,e_colorize:90/' . $image . ' 780w',\n $cloudinaryFetchUrl . '/s--1PnC9sUX--/f_auto/q_auto/c_fill,g_auto,h_825,w_1100/co_rgb:000000,e_colorize:90/' . $image . ' 1100w',\n ]),\n ],\n 'width' => 1600,\n 'height' => 1200,\n 'sizes' => [\n [800, 780],\n [1200, 1100],\n ],\n 'transform' => 'co_rgb:000000,e_colorize:90',\n ],\n ];\n }", "function imageCheck($target,$width=1,$height=1){\n if($width==1&&$height==1){\n return is_array(getimagesize($target));\n }else{\n $rvalue = false;\n if(is_array(getimagesize($target))){\n try {\n $img = new Imagick($target);\n if(strtoupper($img->getImageFormat())=='GIF'){\n $img = $img->coalesceImages();\n $img = $img->coalesceImages();\n do {\n if($width==0||$height==0)\n $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1);\n else $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1,true);\n } while ($img->nextImage());\n $img = $img->deconstructImages();\n $img->writeImages($target,true);\n }else{\n if($width==0||$height==0)\n $img->thumbnailImage($width, $height);\n else $img->thumbnailImage($width, $height,true);\n $img->writeImage($target);\n }\n $img->destroy();\n $rvalue = true;\n } catch (Exception $e) {\n }\n }\n return $rvalue;\n }\n}", "public function testValidateDocumentImageValidation()\n {\n }", "public function testTransform()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n // test the behavior of scale with width and height\n $img->transform('scale', array(258, 355));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 258, 'height' => 355),\n 'Expected image to be scaled to 258x355 pixels.'\n );\n\n // test the behavior of scale with width only\n // 516/710 = 400/h => h = 550\n $img->transform('scale', array(400));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 400, 'height' => 550),\n 'Expected image to be scaled to 300x300 pixels.'\n );\n\n // test the behavior of crop\n $img->transform('crop', array(100, 100, 50, 50));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 100, 'height' => 100),\n 'Expected image to be cropped to 100x100 pixels.'\n );\n\n // test the behavior of unsupported transform\n try {\n $img->transform('foo');\n $this->fail('Expected failure with an unsupported transform.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame($e->getMessage(), \"Transform \\\"foo\\\" is not supported.\");\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n }", "public function testSetImageHandlerWithIncorrectResource()\n {\n $sut = new Image_Processor_Adapter_Gd2();\n\n $this->setExpectedException(\n 'UnexpectedValueException',\n \"Image handler was not correct type, 'gd' expected, 'stream' provided\"\n );\n\n $fp = @fopen(sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'image_processor_php_test.tmp', 'w+');\n if (false === $fp) {\n $this->fail('This test cannot run as we cannot write a file to the system temp dir.');\n }\n $sut->setImageHandler($fp);\n }", "public function test_comicEntityIsCreated_images_setImages()\n {\n $sut = $this->getSUT();\n $images = $sut->getImages();\n $expected = [\n Image::create(\n 'http://i.annihil.us/u/prod/marvel/i/mg/c/30/4fe8cb51f32e0',\n 'jpg'\n ),\n ];\n\n $this->assertEquals($expected, $images);\n }", "public function testImageParameters()\n {\n $imageParams = array(\n '#image',\n '#gif',\n '#mono',\n '#gray'\n );\n\n foreach($imageParams as $param) {\n $request = new Parameters($param.' test');\n $this->assertTrue($request->isImageSearch());\n }\n }", "public function testImageCandidateFactoryWithPixelDensityString()\n {\n $pixelDensityImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg 1x');\n $this->assertInstanceOf(DensityImageCandidate::class, $pixelDensityImageCandidate);\n }", "public function testConvertImage()\r\n\t{\r\n\t\t$sizeTol = 1000* 100;\t// bytes tolerance, under this limit files will be considered as having the same size\r\n\t\t$graphicTol = 0.2;\t\t//\tPSNR tolerance, under this limit fiesl will be considered as having the same graphical characteristic\r\n\r\n\t\t// downloaded files from url's. as convencion server 1 is production and server 2 is another sever\r\n\t\t$downloadedFileServer1 = dirname(__FILE__) . '/Server1.jpg';\t\r\n\t\t$downloadedFileServer2 = dirname(__FILE__) . '/Server2.jpg';\r\n\t\t\r\n\t\tfor ($i = 0; $i < count($this->urlServer1); $i++)\r\n\t\t{\r\n\t\t\t$status1 = file_put_contents($downloadedFileServer1, file_get_contents($this->urlServer1[$i]));\r\n\t\t\t$status2 = file_put_contents($downloadedFileServer2, file_get_contents($this->urlServer2[$i]));\r\n\t\t\techo 'comparing image files: [' . $this->urlServer1[$i] . '], [' . $this->urlServer2[$i] . ']' . PHP_EOL;\r\n\t\t\t\r\n\t\t\t// check if an image was not produce by any of the servers\r\n\t\t\tif ($status1 == 0 && $status2 == 0)\r\n\t\t\t{\r\n\t\t\t\techo $this->urlServer1[$i] . ' did not produce a file' . PHP_EOL;\r\n\t\t\t\techo $this->urlServer2[$i] . ' did not produce a file' . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telseif ($status1 == 0)\r\n\t\t\t{\r\n\t\t\t\techo $this->urlServer1[$i] . ' did not produce a file' . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telseif ($status2 == 0)\r\n\t\t\t{\r\n\t\t\t\techo $this->urlServer2[$i] . ' did not produce a file' . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\t\t\t \r\n\t\t\t\r\n\t\t\t// check if the file's extensions are identical\t\t\r\n\t\t\tif (pathinfo($downloadedFileServer1, PATHINFO_EXTENSION) != pathinfo($downloadedFileServer2, PATHINFO_EXTENSION))\r\n\t\t\t{\r\n\t\t\t\techo 'files extension are not identical' . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// check if the file's size are the same (upto a known tolerance)\t\t\t\t\t\r\n\t\t\tif ((abs(@filesize($downloadedFileServer1) - @filesize($downloadedFileServer2))) > $sizeTol)\r\n\t\t\t{\r\n\t\t\t\techo 'files sizes are not identical' . PHP_EOL;\r\n\t\t\t\techo $this->urlServer1[$i] . ': ' . @filesize($downloadedFileServer1) . PHP_EOL;\r\n\t\t\t\techo $this->urlServer2[$i] . ': ' . @filesize($downloadedFileServer2) . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// check if the image's height and width are the same\r\n\t\t\t$server1ImageSize = getimagesize($downloadedFileServer1);\r\n\t\t\t$server2ImageSize = getimagesize($downloadedFileServer2);\r\n\t\t\tif ((abs($server1ImageSize[0] - $server2ImageSize[0]) > 5) ||\r\n\t\t\t\t(abs($server1ImageSize[1] - $server2ImageSize[1]) > 5))\r\n\t\t\t{\r\n\t\t\t\techo 'files width and/or height are not identical' , PHP_EOL;\r\n\t\t\t\techo $this->urlServer1[$i] . ': ' . $server1ImageSize[0] . 'x' . $server1ImageSize[1] . PHP_EOL;\r\n\t\t\t\techo $this->urlServer2[$i] . ': ' . $server2ImageSize[0] . 'x' . $server2ImageSize[1] . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// check if images are identical, graphica-wise (upto a given tolerance) \r\n\t\t\t$tmpFile = tempnam(dirname(__FILE__), 'imageComperingTmp');\r\n\t\t\t$compare = dirname(kConf::get('bin_path_imagemagick')) . '\\compare';\r\n\t\t\t$options = '-metric RMSE';\r\n\t\t\t$cmd = $compare . ' ' . $options . ' ' . $downloadedFileServer1 . ' ' . $downloadedFileServer2 . ' ' . $tmpFile .\r\n\t\t\t\t' 2>resultLog.txt';\t\t\r\n\t\t\t$retValue = null;\r\n\t\t\t$output = null;\r\n\t\t\t$output = system($cmd, $retValue);\r\n\t\t\t$matches = array();\r\n\t\t\tpreg_match('/[0-9]*\\.?[0-9]*\\)/', file_get_contents('resultLog.txt'), $matches);\r\n\t\t\t@unlink($tmpFile);\t\t\t// delete tmp comparing file (used to copmpare the two image files)\r\n\t\t\t@unlink(\"resultLog.txt\");\t// delete tmp log file that (used to retrieve compare return value)\r\n\t\t\tif ($retValue != 0)\r\n\t\t\t{\r\n\t\t\t\tif (!file_exists($downloadedFileServer1) && !file_exists($downloadedFileServer2))\r\n\t\t\t\t\techo 'files were not downloaded from urls, the parameters produced no images' . PHP_EOL;\r\n\t\t\t\telse\r\n\t\t\t\t\techo 'unable to perform graphical comparison. beside that images seem identical' . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t$compareResult = floatval($matches[0]);\r\n\t\t\techo 'score is: ' . $compareResult . PHP_EOL;\r\n\t\t\t\r\n\t\t\tif ($compareResult > $graphicTol)\r\n\t\t\t{ \t\r\n\t\t\t\techo \"graphical comparison returned with highly un-identical value [$compareResult]\" . PHP_EOL;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\techo 'comparison complete, files are identical' . PHP_EOL;\r\n\t\t}\r\n\t\t// delete all temporal files\r\n\t\t@unlink($downloadedFileServer1);\r\n\t\t@unlink($downloadedFileServer2);\r\n\t\t@unlink(\"resultLog.txt\");\t\t\t\t\t\r\n\t}", "public function testThemeImageWithSrc() {\n\n $image = [\n '#theme' => 'image',\n '#uri' => reset($this->testImages),\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the src attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->generateString($image['#uri']), 'Correct output for an image with the src attribute.');\n }", "public function testProfilePrototypeGetImage()\n {\n\n }", "public function testSaveWithQualityImageEquals(): void\n {\n $thumb = $this->getThumbCreatorInstance()->resize(200)->save(['quality' => 10]);\n $this->assertImageFileEquals('resize_w200_h200_quality_10.jpg', $thumb);\n }", "function wp_image_add_srcset_and_sizes($image, $image_meta, $attachment_id)\n {\n }", "public function test_multi_resize_does_not_create() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t// If no images are generated, the returned array is empty.\n\t\t$this->assertEmpty( $resized );\n\t}", "public function testCreate()\n {\n // Calls the method to be tested\n $javaDriver = MetadataExtractorDriver::create();\n \n // Makes a simple call to ensure it works\n $output = $javaDriver->command([realpath(TEST_RESOURCES_DIRECTORY . '/elephant.jpg')]);\n \n $this->assertContains('[JPEG] Compression Type = Baseline', $output);\n $this->assertContains('[JPEG] Data Precision = 8 bits', $output);\n $this->assertContains('[JPEG] Image Height = 1280 pixels', $output);\n $this->assertContains('[JPEG] Image Width = 1920 pixels', $output);\n $this->assertContains('[JPEG] Number of Components = 3', $output);\n $this->assertContains(\n '[JPEG] Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert',\n $output\n );\n $this->assertContains(\n '[JPEG] Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert',\n $output\n );\n $this->assertContains(\n '[JPEG] Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert',\n $output\n );\n $this->assertContains('[JFIF] Version = 1.1', $output);\n $this->assertContains('[JFIF] Resolution Units = inch', $output);\n $this->assertContains('[JFIF] X Resolution = 300 dots', $output);\n $this->assertContains('[JFIF] Y Resolution = 300 dots', $output);\n $this->assertContains('[JFIF] Thumbnail Width Pixels = 0', $output);\n $this->assertContains('[JFIF] Thumbnail Height Pixels = 0', $output);\n $this->assertContains('[Exif IFD0] Make = Canon', $output);\n $this->assertContains('[Exif IFD0] Model = Canon EOS 70D', $output);\n $this->assertContains('[Exif IFD0] Exposure Time = 1/250 sec', $output);\n $this->assertContains('[Exif SubIFD] Exposure Time = 1/250 sec', $output);\n \n // Under Windows and with French local floating numbers use ',' but under Unix its '.'\n $this->assertTrue(\n strstr($output, '[Exif SubIFD] F-Number = f/8,0') !== false ||\n strstr($output, '[Exif SubIFD] F-Number = f/8.0') !== false\n );\n \n $this->assertContains('[Exif SubIFD] ISO Speed Ratings = null', $output);\n $this->assertContains('[Exif SubIFD] Date/Time Original = 2016:07:17 10:35:28', $output);\n $this->assertContains('[Exif SubIFD] Flash = null', $output);\n $this->assertContains('[Exif SubIFD] Focal Length = 51 mm', $output);\n $this->assertContains('[Exif SubIFD] Lens Model = EF-S17-55mm f/2.8 IS USM', $output);\n $this->assertContains('[File] File Name = elephant.jpg', $output);\n \n // Under Windows the number of bytes computed is not the same as Unix\n $this->assertTrue(\n strstr($output, '[File] File Size = 829992 bytes') !== false ||\n strstr($output, '[File] File Size = 830001 bytes') !== false\n );\n \n $this->assertContains('[File] File Modified Date = ', $output);\n }", "function testGreyscale() {\n\n\t\t// Apply greyscaling to each image\n\t\t$images = $this->applyToEachImage(function(GDBackend $gd) {\n\t\t\treturn $gd->greyscale();\n\t\t});\n\n\t\t// Test GIF (256 colour, transparency)\n\t\t$samplesGIF = $this->sampleAreas($images['gif']);\n\t\t$this->assertGreyscale($samplesGIF, 1);\n\n\t\t// Test JPG\n\t\t$samplesJPG = $this->sampleAreas($images['jpg']);\n\t\t$this->assertGreyscale($samplesJPG, 0, 4);\n\n\t\t// Test PNG 8 (indexed with alpha transparency)\n\t\t$samplesPNG8 = $this->sampleAreas($images['png8']);\n\t\t$this->assertGreyscale($samplesPNG8, 8, 4);\n\n\t\t// Test PNG 32 (full alpha transparency)\n\t\t$samplesPNG32 = $this->sampleAreas($images['png32']);\n\t\t$this->assertGreyscale($samplesPNG32, 8);\n\t}", "public function testUrlGeneration() {\n\n\t\t$image = $this->getSampleImage();\n\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t// Generate a thumb\n\t\t$colour = 'ffffff';\n\t\t$thumb = $image->Pad( self::WIDTH, self::HEIGHT, $colour );\n\t\t$this->assertTrue($thumb instanceof ThumboredImage);\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// Thumbor\\Url\\Builder\n\t\t$instance = $image->getUrlInstance();\n\t\t$this->assertTrue($instance instanceof ThumborUrlBuilder);//Phumbor\n\t\t$instance_url = $instance->__toString();\n\n\t\t$this->assertEquals($url, $instance_url);\n\n\t\t$this->getRemoteImageDimensions($url, $width, $height);\n\n\t\t$this->assertEquals($width, self::WIDTH);\n\t\t$this->assertEquals($height, self::HEIGHT);\n\n\t\t// Test that the _resampled thumb DOES NOT exist locally in /assets, which is the point of Thumbor\n\t\t$variant_name = $image->variantName('Pad', self::WIDTH, self::HEIGHT, $colour);\n\t\t$filename = $image->getFilename();\n\t\t$hash = $image->getHash();\n\t\t$exists = $this->asset_store->exists($filename, $hash, $variant_name);\n\n\t\t$this->assertTrue( !$exists, \"The variant name exists and it should not\" );\n\n\t}", "public static function test_image($source) {\n\t\tif (strlen($source) < 10) {\n\t\t\tdebug_event('Art', 'Invalid image passed', 1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check to make sure PHP:GD exists. If so, we can sanity check\n\t\t// the image.\n\t\tif (function_exists('ImageCreateFromString')) {\n\t\t\t $image = ImageCreateFromString($source);\n\t\t\t if (!$image || imagesx($image) < 5 || imagesy($image) < 5) {\n\t\t\t\tdebug_event('Art', 'Image failed PHP-GD test',1);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function testImageCandidateFactoryWithImpliedPixelDensityString()\n {\n $pixelDensityImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg');\n $this->assertInstanceOf(DensityImageCandidate::class, $pixelDensityImageCandidate);\n }", "public function testJpeg()\n {\n $this->assertThat('./tests/images/jpeg.jpg',\n $this->logicalNot($this->equalTo(new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg')), '', 0.01));\n\n // should compare successfully with threshold = 0.1\n $this->assertThat('./tests/images/jpeg.jpg',\n new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg', 0.1), '', 0.1);\n }", "public function testMultipleSizesAsStringWrappedInArray() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor(['200,400,600']));\n }", "protected function checkimagepattern($strtest){\n\t\t$hit=0;\n\t\t$strtestarr=explode('.', $strtest);\n\t\t$strtest=$strtestarr[0];\n\t\t$strconfarr=explode(',', $this->conf['attachments.']['webpagePreviewScanExcludeImagePatterns']);\n\t\t$countstrconfarr=count($strconfarr);\n\t\tfor($i = 0; $i < $countstrconfarr; $i++) {\n\t\t\t$fullteststr=str_replace($strconfarr[$i], '', $strtest);\n\t\t\tif ($fullteststr!=$strtest) {\n\t\t\t\t$hit=1;\n\t\t\t}\n\n\t\t}\n\n\t\t$fullteststr=str_replace($strtest, '', $this->conf['attachments.']['webpagePreviewScanExcludeImagePatterns']);\n\t\tif ($fullteststr!=$this->conf['attachments.']['webpagePreviewScanExcludeImagePatterns']) {\n\t\t\t$hit=2;\n\t\t}\n\n\t\tif (in_array($strtest, explode(',', $this->conf['attachments.']['webpagePreviewScanExcludeImagePatterns']))>0) {\n\t\t\t$hit=2;\n\t\t}\n\n\t\treturn $hit;\n\t}", "public function testOnlyApplyToPNG() {\n $config = [];\n $loggerMock = $this->getLoggerMock();\n $imageFactoryMock = $this->getImageFactoryMock();\n $fileSystemMock = $this->getFileSystemMock();\n $shellOperationsMock = $this->getShellOperationsMock();\n\n $advpng = new AdvPng($config, 'advpng', [], $loggerMock, $imageFactoryMock, $fileSystemMock, $shellOperationsMock);\n\n $imagePNGMock = $this->getMock('\\Drupal\\Core\\Image\\ImageInterface');\n $imagePNGMock->method('getMimeType')->willReturn('image/jpeg');\n $imageFactoryMock->method('get')->willReturn($imagePNGMock);\n\n // Assert no call is made through to the shell commands.\n $shellOperationsMock->expects($this->never())->method('execShellCommand');\n\n // And assert that a 'jpg' isn't processed.\n $this->assertFalse($advpng->applyToImage('public://test_image.jpg'));\n }", "public function testGetValidImageByImagePath () {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"image\");\n\n\t\t//create a new Image and insert it into MySQL\n\t\t$image = new Image(null, $this->VALID_IMAGEPATH, $this->VALID_IMAGETYPE);\n\t\t$image->insert($this->getPDO());\n\n\t\t//grab the data from MySQL and enforce the fields match our expectations\n\t\t$results = Image::getImageByImagePath($this->getPDO(), $image->getImagePath());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"image\"));\n\t\t$this->assertCount(1, $results);\n\t\t$this->assertContainsOnlyInstancesOf(\"Edu\\\\Cnm\\\\DevConnect\\\\Image\", $results);\n\n\t\t//grab the results from the array and validate it\n\t\t$pdoImage = $results[0];\n\t\t$this->assertEquals($pdoImage->getImageId(), $image->getImageId());\n\t\t$this->assertEquals($pdoImage->getImagePath(), $this->VALID_IMAGEPATH);\n\t\t$this->assertEquals($pdoImage->getImageType(), $this->VALID_IMAGETYPE);\n\t}", "function get_intermediate_image_sizes()\n {\n }", "function testImageSize()\r\n {\r\n $nautilus = $this->nautilus->uploadDir('/tmp');\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 33122));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n $this->assertEquals('/tmp/nautilus_test_image.jpeg',$upload);\r\n\r\n /*give it invalid 'max' size*/\r\n $nautilus = $this->nautilus;\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 22));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $this->setExpectedException('Image\\ImageException','File sizes must be between 1 to 22 bytes');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n }", "public function srcset($value = null)\n {\n if (!empty($value)) {\n $this->srcset = $value;\n return;\n }\n\n // If the full size was requested, render as is.\n if ($this->size && $this->size === 'full') {\n return $this->src;\n }\n\n $normal = $this->resize();\n $retina = $this->retina();\n\n $sources[] = $normal->src . ' ' . $normal->width . 'w';\n\n if ($retina->src && ($retina->src != $normal->src)) {\n $sources[] = $retina->src . ' 2x';\n $sources[] = $retina->src . ' ' . $retina->width .'w';\n }\n\n // If it's a larger image, provide a version in half it's size.\n if ($this->r_width > 400) {\n $half = $this->resize(round($this->r_width/2), round($this->r_height/2));\n\n if ($half->src != $normal->src) {\n $sources[] = $half->src . ' ' . $half->width .'w';\n }\n }\n\n return implode(', ', $sources);\n }", "function isSupportedType($type, $src_file) {\n if ($type !== \"jpg\" && $type !== \"jpeg\" && $type !== \"png\") {\n return zmgToolboxPlugin::registerError($src_file, 'GD 1.x: Source file is not an image or image type is not supported.');\n }\n return true;\n }", "public function testGetImages() : void {\n $galleryId = 0;\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getImages($galleryId)));\n }", "public function testS3imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = 'someText';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testResizeIfNeededNotNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/small-image.jpg', true);\n $this->assertFalse($resized);\n\n // wide image to be resized\n $resized = Processor::resizeIfNeeded('/app/tests/wide-image.jpg', true);\n $this->assertTrue($resized);\n }", "function check_image_type_array($source_pic)\n{\n switch ($source_pic) {\n case 'image/gif':\n return true;\n break;\n\n case 'image/jpeg':\n return true;\n break;\n\n case 'image/png':\n return true;\n break;\n\n case 'image/wbmp':\n return true;\n break;\n\n default:\n return false;\n break;\n }\n}", "public function testPutImage()\n {\n }", "protected function scaleImages() {}", "public function setImagesets()\n {\n $this->_imagesets = [];\n try {\n $pnmain = $this->_qobject->getPNMainTable();\n $type = $this->_image->getImageParams('type');\n if ($type == 'rgb') {\n $model = $this->_image->getImageParams('R_model');\n } else {\n $model = $this->_image->getImageParams('in_model');\n }\n\n if (!$model || $model == null) {\n return $this->mylogger->logMessage(\"Model for the parameter 'run_id' is not defined.\", $this, 'warning',\n false);\n }\n $runs = $pnmain->{$model}()\n ->where('found', 'y')\n ->distinct('run_id')\n ->pluck('run_id')\n ->toArray();\n\n if (!$runs || $runs == null || empty($runs)) {\n return $this->mylogger->logMessage(\"No results.\", $this, 'warning', false);\n }\n\n// $old_base_file_names = array_column($this->_oldresults, 'OutImage');\n\n foreach ($runs as $run_id) {\n $run_id = ($run_id == null || !$run_id) ? \"-1\" : $run_id;\n\n $base_file_name = $this->pngName($this->_qobject->getIdPNMain(),\n $this->_image->getImageParams('name_out'), $run_id);\n\n $full_file_name = MyFunctions::pathslash($this->_getOutDir()) . $base_file_name;\n\n $outimages = $this->_setOutimages($full_file_name);\n if (empty($outimages)) {\n continue;\n }\n\n $metadata = [\n 'type' => $type,\n 'run_id' => $run_id,\n 'OutImage' => $base_file_name,\n \"rgb_cube\" => ($type == 'rgb') ? $this->getRGBcubeName($this->_qobject->getIdPNMain(),\n $this->_image->getImageParams('name_out'),\n $run_id) : null,\n \"out_images\" => $outimages,\n ];\n\n\n// if (in_array($base_file_name, $old_base_file_names)) {\n// continue;\n// }\n\n $rgb_components = $this->_getRGBComponents($pnmain, $run_id);\n\n if ($rgb_components) {\n $this->_imagesets[$run_id] = array_merge($metadata, $rgb_components);\n } else {\n $this->mylogger->logMessage(\"Missing fits image(s).\", $this, 'warning', false);\n }\n }\n } catch (\\Exception $e) {\n $this->_imagesets = [];\n return $this->mylogger->logMessage(\"Problem with setting imagesets: \" . $e . \".\", $this, 'warning', false);\n }\n if (empty($this->_imagesets)) {\n return false;\n }\n return true;\n\n }", "public function testImageValue() : void {\n\t\t$this->assertEquals('kc_image', PostType::Image->value);\n\t}", "public function actionVerifyImages()\n {\n $srcImgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR .\n 'web' . DIRECTORY_SEPARATOR .\n 'images' . DIRECTORY_SEPARATOR .\n 'i1' . DIRECTORY_SEPARATOR;\n\n $dstImgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR .\n 'web' . DIRECTORY_SEPARATOR .\n 'images' . DIRECTORY_SEPARATOR .\n 'product' . DIRECTORY_SEPARATOR;\n\n echo 'Checking missing images in: ' . $srcImgDir . ' to ' . $dstImgDir . PHP_EOL;\n\n $imgDst = glob($dstImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cId = count($imgDst);\n if ($cId) {\n echo 'Found ' . $cId . ' in ' . $dstImgDir . ' folder '. PHP_EOL;\n }\n\n $imgSrc = glob($srcImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cIs = count($imgSrc);\n if ($cIs) {\n echo 'Found ' . $cIs . ' in ' . $srcImgDir . ' folder '. PHP_EOL;\n\n $cOk = $cErr = $j = 0;\n foreach ($imgSrc as $i) {\n /* if ($j == 7) {\n break;\n } */\n $art = substr($i, strlen($srcImgDir) + 1, -4);\n echo 'Checking image ' . $i . ' Checking articul: ' . $art . PHP_EOL;\n\n $civQuery = CatalogItemVariant::find()\n ->where(['published' => 1]);\n $civ = $civQuery->andFilterWhere(['like', 'img_url', $art])\n ->asArray()\n ->all();\n\n // echo 'Found: ' . print_r($civ, 1) . PHP_EOL;\n if (!empty($civ[0]['img_url'])) {\n $bsDst = basename($civ[0]['img_url']);\n echo 'Checking destination file: ' . $dstImgDir . $bsDst . PHP_EOL;\n if (file_exists($dstImgDir . $bsDst)) {\n echo 'Skip destination file exists: ' . $dstImgDir . $bsDst . PHP_EOL;\n } else {\n if (copy($i, $dstImgDir . $bsDst)) {\n echo 'Copied ' . $i . ' to ' . $dstImgDir . $bsDst . PHP_EOL;\n $cOk ++;\n } else {\n echo 'Error: can`t copy ' . $i . ' to ' . $dstImgDir . $bsDst . PHP_EOL;\n $cErr ++;\n }\n }\n }\n $j ++;\n }\n }\n $imgDst2 = glob($dstImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cId2 = count($imgDst2);\n if ($cId2) {\n echo 'Found ' . $cId2 . ' in ' . $dstImgDir . ' folder '. PHP_EOL;\n }\n echo 'Checked ' . $j . ' image files. Copied ' . $cOk . ' images. Image copy errors: ' . $cErr . PHP_EOL;\n }", "public function testGetValidImageTagByImageId() {\n\t\t$numRows = $this->getConnection()->getRowCount(\"imageTag\");\n\n\t\t$imageTag = new ImageTag($this->imageTagImage->getImageId(), $this->imageTagTag->getTagId());\n\t\t$imageTag->insert($this->getPDO());\n\t\t$results = ImageTag::getImageTagByImageId($this->getPDO(), $this->imageTagImage->getImageId());\n\n\t}", "function register_image_sizes() {\n\t}", "public function testFailedResample() {\n\t\t$fullPath = realpath(dirname(__FILE__) . '/gdtest/test_jpg.jpg');\n\n\t\ttry {\n\t\t\t$gdFailure = new GDBackend_Failure($fullPath, array('ScaleWidth-failed', 123));\n\t\t\t$this->fail('GDBackend_Failure should throw an exception when setting image resource');\n\t\t} catch (GDBackend_Failure_Exception $e) {\n\t\t\t$gd = new GDBackend($fullPath, array('ScaleWidth', 123));\n\t\t\t$this->assertTrue($gd->failedResample($fullPath, 'ScaleWidth-failed|123'));\n\t\t\t$this->assertFalse($gd->failedResample($fullPath, 'ScaleWidth-not-failed|123'));\n\t\t}\n\t}", "public function testGetImage() {\n\t\t$instance = new ImageObject( 123 );\n\n\t\t$this->assertNull(\n\t\t\t$instance->getImage( 123 ),\n\t\t\t'An ImageObject inside an ImageObject? Are you mad?!'\n\t\t);\n\t}", "public function testImageCandidateFactoryWithWidthDescriptor()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromFileAndDescriptor(\n 'image.jpg',\n '1000w'\n );\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "function wp_img_tag_add_srcset_and_sizes_attr($image, $context, $attachment_id)\n {\n }", "public function testResizeIfNeededNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/tall-image.jpg', true);\n $this->assertTrue($resized);\n }", "function PREFIX_add_image_sizes() {\n\t/*\n\t// 16:9\n\tadd_image_size( 'wide-xsmall', 295, 165, true );\n\tadd_image_size( 'wide-small', 360, 202, true );\n\tadd_image_size( 'wide-medium', 470, 264, true );\n\tadd_image_size( 'wide-large', 770, 433, true );\n\tadd_image_size( 'wide-xlarge', 1440, 810, true );\n\n\t// 4x3\n\tadd_image_size( 'ratio-4-3-small', 300, 225, true );\n\tadd_image_size( 'ratio-4-3-medium', 470, 353, true );\n\tadd_image_size( 'ratio-4-3-large', 740, 555, true );\n\tadd_image_size( 'ratio-4-3-xlarge', 1440, 1080, true );\n\n\t// Golden Ratio\n\tadd_image_size( 'ratio-gold-small', 300, 300 * 0.618, true );\n\tadd_image_size( 'ratio-gold-medium', 470, 470 * 0.618, true );\n\tadd_image_size( 'ratio-gold-large', 740, 740 * 0.618, true );\n\tadd_image_size( 'ratio-gold-xlarge', 1440, 1440 * 0.618, true );\n\n\t// Square\n\tadd_image_size( 'square-xsmall', 160, 160, true );\n\tadd_image_size( 'square-small', 300, 300, true );\n\tadd_image_size( 'square-medium', 470, 470, true );\n\tadd_image_size( 'square-large', 800, 800, true );\n\t*/\n}", "abstract protected function processImage (string $src): string;", "function testImageSize()\n {\n $bulletproof = $this->bulletproof->uploadDir('/tmp');\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 33122));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n $this->assertEquals('/tmp/bulletproof_test_image.jpeg',$upload);\n\n /*give it invalid 'max' size*/\n $bulletproof = $this->bulletproof;\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 22));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $this->setExpectedException('ImageUploader\\ImageUploaderException','File sizes must be between 1 to 22 bytes');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n }", "public function checkGraphicSimilarity()\r\n\t{\r\n\t\t// check if images are identical, graphica-wise (upto a given tolerance) \r\n\t\t$tmpFile = tempnam(dirname(__FILE__), 'imageComperingTmp');\r\n\t\t$convert = dirname(kConf::get('bin_path_imagemagick')) . '\\compare';\r\n\t\t$options = '-metric RMSE';\r\n\t\t$cmd = $convert . ' ' . $options . ' ' . $this->targetFile . ' ' . $this->referenceFile . ' ' . $tmpFile .\r\n\t\t\t' 2>resultLog.txt';\t\t\r\n\t\t$retValue = null;\r\n\t\t$output = null;\r\n\t\t$output = system($cmd, $retValue);\r\n\t\t$matches = array();\r\n\t\tpreg_match('/[0-9]*\\.?[0-9]*\\)/', file_get_contents('resultLog.txt'), $matches);\r\n\t\t@unlink($tmpFile);\t\t\t// delete tmp comparing file (used to copmpare the two image files)\r\n\t\t@unlink(\"resultLog.txt\");\t// delete tmp log file that was used to retrieve compare return value\r\n\t\tif ($retValue != 0)\r\n\t\t\treturn $retValue;\r\n\t\treturn floatval($matches[0]);\r\n\t}", "public function testImageCandidateFactoryWithImpliedPixelDensityDescriptor()\n {\n $pixelDensityImageCandidate = ImageCandidateFactory::createImageCandidateFromFileAndDescriptor('image.jpg');\n $this->assertInstanceOf(DensityImageCandidate::class, $pixelDensityImageCandidate);\n }", "public function testImageCandidateFactoryWithPixelDensityDescriptor()\n {\n $pixelDensityImageCandidate = ImageCandidateFactory::createImageCandidateFromFileAndDescriptor(\n 'image.jpg',\n '1x'\n );\n $this->assertInstanceOf(DensityImageCandidate::class, $pixelDensityImageCandidate);\n }", "function test_multiplication( $input, $output ) {\n\t\treturn $this->assertEquals( $output, wptexturize( $input ) );\n\t}", "public function testGetImage()\n {\n // TODO: How to mock a file?\n }", "public function testSetImageHandlerWithoutResource()\n {\n $adapter = new Image_Processor_Adapter_Gd2();\n\n $this->setExpectedException(\n 'UnexpectedValueException',\n 'Image handler passed was not a resource'\n );\n\n $adapter->setImageHandler('not a resource');\n }", "public function test_it_loads_an_image_string_into_a_resource()\n {\n imagepng(imagecreatefromstring($this->imagePath), $this->compareTestSaveLocation);\n imagepng($this->image->getImageResource(), $this->testImageSaveLocation);\n\n $correctImage = file_get_contents($this->compareTestSaveLocation);\n $testImage = file_get_contents($this->testImageSaveLocation);\n\n $this->assertEquals($correctImage, $testImage);\n }", "public function test_it_has_images()\n {\n $business = BusinessFactory::create();\n $this->assertContainsOnlyInstancesOf(Image::class, $business->images);\n }", "public function testCseImageResponse()\n {\n $result = new GoogleRequest('#image #one test');\n $result = $result->makeCseRequest();\n $this->assertInstanceOf(\n \\Google_Service_Customsearch_ResultImage::class, \n $result->getItems()[0]->getImage()\n );\n }", "public function testMimageShouldBeAdded()\n {\n $imageLabel = 4;\n $imageUrl = [];\n $this->expectException(TypeError::class);\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n\n }", "public function testImage()\n {\n $uploadedFile = new UploadedFile(__DIR__ . '/../Mock/image_10Mb.jpg', 'image.jpg');\n $user = new User();\n $user->setEmail('[email protected]')\n ->setImage($uploadedFile);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_DEFAULT]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setImage(null);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_IMAGE_REQUIRED]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n }", "public function filter_srcset_array( $sources, $size_array, $image_src, $image_meta, $attachment_id ) {\n\t\t$upload_dir = wp_upload_dir();\n\n\t\tforeach ( $sources as $i => $source ) {\n\t\t\tif ( ! self::validate_image_url( $source['url'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$url = $source['url'];\n\t\t\tlist( $width, $height ) = static::parse_dimensions_from_filename( $url );\n\n\t\t\t// It's quicker to get the full size with the data we have already, if available.\n\t\t\tif ( isset( $image_meta['file'] ) ) {\n\t\t\t\t$url = trailingslashit( $upload_dir['baseurl'] ) . $image_meta['file'];\n\t\t\t} else {\n\t\t\t\t$url = static::strip_image_dimensions_maybe( $url );\n\t\t\t}\n\n\t\t\t$args = [];\n\t\t\tif ( 'w' === $source['descriptor'] ) {\n\t\t\t\tif ( $height && ( intval( $source['value'] ) === intval( $width ) ) ) {\n\t\t\t\t\t$args['resize'] = $width . ',' . $height;\n\t\t\t\t} else {\n\t\t\t\t\t$args['w'] = $source['value'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the image_src is a tahcyon url, add it's params\n\t\t\t// to the srcset images too.\n\t\t\tif ( strpos( $image_src, TACHYON_URL ) === 0 ) {\n\t\t\t\tparse_str( parse_url( $image_src, PHP_URL_QUERY ) ?? '', $image_src_args );\n\t\t\t\t$args = array_merge( $args, array_intersect_key( $image_src_args, [ 'gravity' => true ] ) );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Filter the array of Tachyon arguments added to an image when it goes through Tachyon.\n\t\t\t * By default, contains only resize or width params\n\t\t\t *\n\t\t\t * @param array $args Array of Tachyon Arguments.\n\t\t\t * @param array $args {\n\t\t\t * Array of image details.\n\t\t\t *\n\t\t\t * @type $source Array containing URL and target dimensions.\n\t\t\t * @type $image_meta Array containing attachment metadata.\n\t\t\t * @type $width Image width.\n\t\t\t * @type $height Image height.\n\t\t\t * @type $attachment_id Image ID.\n\t\t\t * }\n\t\t\t */\n\t\t\t$args = apply_filters( 'tachyon_srcset_image_args', $args, compact( 'source', 'image_meta', 'width', 'height', 'attachment_id' ) );\n\n\t\t\t$sources[ $i ]['url'] = tachyon_url( $url, $args );\n\t\t}\n\n\t\treturn $sources;\n\t}", "protected function checkGdLibPngSupport() {}", "public function setUp() {\n $this->transformation = new Clip();\n\n $user = 'user';\n $imageIdentifier = 'imageIdentifier';\n $blob = file_get_contents(FIXTURES_DIR . '/jpeg-with-multiple-paths.jpg');\n\n $this->image = $this->createMock('Imbo\\Model\\Image');\n $this->image->expects($this->any())->method('getImageIdentifier')->will($this->returnValue($imageIdentifier));\n $this->image->expects($this->any())->method('getUser')->will($this->returnValue($user));\n\n $database = $this->createMock('Imbo\\Database\\DatabaseInterface');\n $database->expects($this->any())->method('getMetadata')->with($user, $imageIdentifier)->will($this->returnValue([\n 'paths' => ['House', 'Panda'],\n ]));\n\n $event = $this->createMock('Imbo\\EventManager\\Event');\n $event->expects($this->any())->method('getDatabase')->will($this->returnValue($database));\n\n $this->transformation->setEvent($event);\n $this->transformation->setImage($this->image);\n\n $this->imagick = new Imagick();\n $this->imagick->readImageBlob($blob);\n $this->transformation->setImagick($this->imagick);\n }", "public function testCheckConvertability1()\r\n {\r\n global $pretend;\r\n\r\n $gd = $this->createGd('test.png');\r\n self::resetPretending();\r\n\r\n $pretend['functionsNotExisting'] = ['imagecreatefrompng'];\r\n $this->expectException(SystemRequirementsNotMetException::class);\r\n $gd->checkConvertability();\r\n $pretend['functionsNotExisting'] = [];\r\n }", "public function testCacheIntegrity() {\n\t\t$fullPath = realpath(dirname(__FILE__) . '/gdtest/test_jpg.jpg');\n\n\t\ttry {\n\t\t\t$gdFailure = new GDBackend_Failure($fullPath, array('ScaleWidth', 123));\n\t\t\t$this->fail('GDBackend_Failure should throw an exception when setting image resource');\n\t\t} catch (GDBackend_Failure_Exception $e) {\n\t\t\t$cache = SS_Cache::factory('GDBackend_Manipulations');\n\t\t\t$key = md5(implode('_', array($fullPath, filemtime($fullPath))));\n\n\t\t\t$data = unserialize($cache->load($key));\n\n\t\t\t$this->assertArrayHasKey('ScaleWidth|123', $data);\n\t\t\t$this->assertTrue($data['ScaleWidth|123']);\n\t\t}\n\t}", "abstract public function describeImages(ImageFilter $images);", "function cilikke($src, $dest, $new_width) {\r\n\t$info = getimagesize($src);\r\n\t$mime = $info[\"mime\"];\r\n\tif( $mime == 'image/jpeg' ) $source_image = imagecreatefromjpeg($src);\r\n\telseif( $mime == 'image/png' ) $source_image = imagecreatefrompng($src);\r\n\t$width = imagesx($source_image);\r\n\t$height = imagesy($source_image);\r\n\t$new_height = floor($height * ($new_width / $width));\r\n\tif($new_width < $width && $new_height < $height)\r\n\t{\r\n\t\t$virtual_image = imagecreatetruecolor($new_width, $new_height);\t\r\n\t\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\r\n\t\timagejpeg($virtual_image, $dest);\r\n\t}else\r\n\t\tcopy($src, $dest);\r\n}", "public function testPostImage()\n {\n }", "protected function combineImages() {}", "function img_compare($before,$after,$reportfile,$ci){\n\techo $before.\"\\n\";\n\techo $after.\"\\n\";\n\t$write = false;\n\t$report = \"# Report \\n\";\n\t//size\n\t$bs = filesize($before);\n\t$as = filesize($after);\n\t$report.= \"## filesize\\n\";\n\tif($as != $bs){\n\t\t$diff = $as - $bs;\n\t\t$report.=\" file is $diff bytes different after\\n\\n\";\n\t\t$write = true;\n\t}\n\t\n\t//md5\n\tif(md5_file($before) != md5_file($after)){\n\t\t$report.=\"## md5\\n hashes of before and after are different\\n\\n\";\n\t}\n\t\n\t$report.=\"## IMAGE PROCESSING\\n\";\n\t//try some GD stuff\n\t$img = imagecreatefromjpeg($before); \n $img2 = imagecreatefromjpeg($after); \n\t $w = imagesx($img); \n\t $h = imagesy($img); \n\n\t $w2 = imagesx($img2); \n\t $h2 = imagesy($img2); \n \t $write = true;\n\t if($w != $w2 || $h!=$h2){\n\t\t $report.=\"image dimensions are different $w x $h versus $w2 x $h2\\n\";\n\t }else{\n\t \t\t$report.=\"image dimensions are the same $w x $h \\n\";\n\t }\n \n \n \t //something to write different pixels to\n\t $cim = @imagecreatetruecolor($w, $h)\n\t or die('Cannot Initialize new GD image stream');\n \n \t $totalpix = 0;\n\t $diffpix = 0;\n\t \n\t //whip through the pixels, compare and write differences\n\t //to $cim\n\t for($y=0;$y<$h;$y++) { \n\t for($x=0;$x<$w;$x++) { \n\t $rgb = imagecolorat($img, $x, $y); \n\t $r = ($rgb >> 16) & 0xFF; \n\t $g = ($rgb >> 8) & 0xFF; \n\t $b = $rgb & 0xFF; \n\t\t\t $pixelcolor = \"#\".str_repeat(\"0\",2-strlen(dechex($r))).dechex($r). \n\tstr_repeat(\"0\",2-strlen(dechex($g))).dechex($g). \n\tstr_repeat(\"0\",2-strlen(dechex($b))).dechex($b);\n\t\t\t \n\t\t\t $rgb2 = imagecolorat($img2, $x, $y); \n\t $r2 = ($rgb2 >> 16) & 0xFF; \n\t $g2 = ($rgb2 >> 8) & 0xFF; \n\t $b2 = $rgb2 & 0xFF; \n\t\t\t $pixelcolor2 = \"#\".str_repeat(\"0\",2-strlen(dechex($r2))).dechex($r2). \n\tstr_repeat(\"0\",2-strlen(dechex($g2))).dechex($g2). \n\tstr_repeat(\"0\",2-strlen(dechex($b2))).dechex($b2);\n\t\t\t if($pixelcolor != $pixelcolor2){\n\t\t\t\t $diffpix++;\n\t\t\t\t //write to cim\n\t\t\t\t imagesetpixel($cim, $x,$y, $rgb2);\n\t\t\t\t \n\t\t\t\t \n\t\t\t }\n\t\t\t $totalpix++;\n\t //echo $pixelcolor.\",\"; \n\t } \n\n\t\t\t \n\t } \n $report.=\"total pixels = $totalpix\\n\";\n\t $report.=\"pixels different = $diffpix\\n\";\n\t $diff = ($diffpix/$totalpix)*100;\n\t $report.=\"percentage diff = \".round($diff,2); //might be good to get a %ag threshold for this\n\t \n\t //write cim to jpeg, path $ci\n\t $report.=\"\\ndifferences shown in ![diffs]($ci \\\"Page Diffs\\\")\\n\";\n\t //put url in file - only write if X percent different ?\n\t imagejpeg($cim, $ci);\n\n\t // Free up memory\n\t imagedestroy($cim);\n\t\n\t //some kind of magic merge with before really light here?\n\t\n\t//image magic test/diff\n\t//if (!extension_loaded('imagick')){\n\t//\t echo 'imagick not installed\\n';\n\t//}else{\n\t\t//do tests\n\t//}\n\t\n\tif($write){\n\t\tfile_put_contents($reportfile, $report);\n\t}\n}", "function placeTestImage($images){\n\t// place the test images on the PDF. \n\tglobal $pdf;\n\n\t/* // 4 boxes TEMP FOR PLACEMENT\n\t$pdf->Rect(18, 120, 278, 260, 'L');\n\t$pdf->Rect(316, 120, 278, 260, 'L');\n\t$pdf->Rect(18, 400, 278, 260, 'L');\n\t$pdf->Rect(316, 400, 278, 260, 'L'); */\n\n\t$x = array(18, 316, 18, 316);\n\t$y = array(120, 120, 400, 400);\n\n\tfor($i = 0; $i < count($images) && $i < 4; $i++){\n\t\t// for each 4 images, place as per $x and $y\n\t\t\n\t\t$img = pngtojpeg($images[$i]); \n\n\t\t$set = centerImage($img, $x[$i], $y[$i], 278, 260);\n\t\t$pdf->Image($img, $set['x'], $set['y'], $set['w'], $set['h']);\n\n\t}\n\t\n\t//$set = $this->centerImage($newjpeg1, 36, 36, 350, 325);\n\t//$this->Image($newjpeg1,$set['x'],$set['y'],$set['w'],$set['h']);\n\n}", "public function register_image_sizes() {\n\n }", "public function testImageCandidateFactoryWithWidthString()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg 1000w');\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "public function testProfilePrototypeCreateImage()\n {\n\n }", "public function test_resize_and_crop() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50, true );\n\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'width' => 100,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t\t$imagick_image_editor->get_size()\n\t\t);\n\t}", "public function testSetRefImage() {\n\n $obj = new Materiels();\n\n $obj->setRefImage(\"refImage\");\n $this->assertEquals(\"refImage\", $obj->getRefImage());\n }", "function wp_get_attachment_image_srcset($attachment_id, $size = 'medium', $image_meta = \\null)\n {\n }", "function reg_image_sizes() {\n add_image_size( 'medium', 480, 0, false );\n add_image_size( 'medium-large', 500, 0, false );\n add_image_size( 'large', 600, 0, false );\n}" ]
[ "0.7132142", "0.687554", "0.6539896", "0.605218", "0.6018526", "0.59659445", "0.5842389", "0.57908744", "0.5777161", "0.5756085", "0.5722298", "0.56956017", "0.5671588", "0.5667395", "0.56593025", "0.5657271", "0.5650563", "0.5632054", "0.5623913", "0.5613944", "0.5611818", "0.55868584", "0.55740154", "0.55715686", "0.55614394", "0.5556669", "0.55374414", "0.5506169", "0.54981303", "0.5494442", "0.5486471", "0.5466469", "0.5463408", "0.54630566", "0.5458387", "0.54511863", "0.5446436", "0.54193574", "0.53594303", "0.533547", "0.5333737", "0.5333736", "0.53236914", "0.5313752", "0.5313215", "0.5309929", "0.5306525", "0.5299476", "0.52842563", "0.5268884", "0.52681386", "0.5257671", "0.52529895", "0.5237853", "0.52237463", "0.5214526", "0.5213505", "0.52118397", "0.5162047", "0.5154515", "0.5151493", "0.5142961", "0.51415277", "0.5138497", "0.5126172", "0.5118953", "0.511473", "0.5114313", "0.5113443", "0.50989044", "0.50983304", "0.5095119", "0.5093447", "0.50916916", "0.5083379", "0.5077548", "0.507746", "0.5077049", "0.50689715", "0.50572866", "0.50496185", "0.50486696", "0.5043876", "0.5036044", "0.5025449", "0.50106114", "0.50032467", "0.50013596", "0.49979234", "0.4994839", "0.49873957", "0.49849063", "0.49844164", "0.49748814", "0.49634752", "0.49613476", "0.49611652", "0.4958886", "0.4952383", "0.49322158" ]
0.79850364
0
Tests that an image with the srcset and widths is output correctly.
public function testThemeImageWithSrcsetWidth() { // Test with multipliers. $widths = [ rand(0, 500) . 'w', rand(500, 1000) . 'w', ]; $image = [ '#theme' => 'image', '#srcset' => [ [ 'uri' => $this->testImages[0], 'width' => $widths[0], ], [ 'uri' => $this->testImages[1], 'width' => $widths[1], ], ], '#width' => rand(0, 1000) . 'px', '#height' => rand(0, 500) . 'px', '#alt' => $this->randomMachineName(), '#title' => $this->randomMachineName(), ]; $this->render($image); // Make sure the srcset attribute has the correct value. $this->assertRaw($this->fileUrlGenerator->generateString($this->testImages[0]) . ' ' . $widths[0] . ', ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' ' . $widths[1], 'Correct output for image with srcset attribute and width descriptors.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function test_cl_image_tag_srcset()\n {\n $expected_tag = self::get_expected_cl_image_tag(\n self::$public_id,\n self::$common_transformation_str,\n '',\n self::$breakpoints_arr\n );\n\n $tag_with_breakpoints = cl_image_tag(\n self::$public_id,\n array_merge(\n self::$common_image_options,\n array('srcset' => self::$common_srcset)\n )\n );\n\n $this->assertEquals(\n $expected_tag,\n $tag_with_breakpoints,\n 'Should create img srcset attribute with provided breakpoints'\n );\n }", "public function test_srcset_invalid_values()\n {\n $invalid_breakpoints = array(\n array('sizes' => true), // srcset data not provided\n array('max_width' => 300, 'max_images' => 3), // no min_width\n array('min_width' => '1', 'max_width' => 300, 'max_images' => 3), // invalid min_width\n array('min_width' => 100, 'max_images' => 3), // no max_width\n array('min_width' => '1', 'max_width' => '3', 'max_images' => 3), // invalid max_width\n array('min_width' => 200, 'max_width' => 100, 'max_images' => 3), // min_width > max_width\n array('min_width' => 100, 'max_width' => 300), // no max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => 0), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => -17), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => '3'), // invalid max_images\n array('min_width' => 100, 'max_width' => 300, 'max_images' => null), // invalid max_images\n );\n\n\n $err_log_original_destination = ini_get('error_log');\n // Suppress error messages in error log\n ini_set('error_log', '/dev/null');\n\n try {\n foreach ($invalid_breakpoints as $value) {\n $tag = cl_image_tag(\n self::$public_id,\n array_merge(self::$common_image_options, array('srcset' => $value))\n );\n\n self::assertNotContains(\"srcset\", $tag);\n }\n } catch (\\Exception $e) {\n ini_set('error_log', $err_log_original_destination);\n throw $e;\n }\n\n ini_set('error_log', $err_log_original_destination);\n }", "public function testThemeImageWithSrcsetMultiplier() {\n // Test with multipliers.\n $image = [\n '#theme' => 'image',\n '#srcset' => [\n [\n 'uri' => $this->testImages[0],\n 'multiplier' => '1x',\n ],\n [\n 'uri' => $this->testImages[1],\n 'multiplier' => '2x',\n ],\n ],\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the srcset attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[0])) . ' 1x, ' . $this->fileUrlGenerator->transformRelative($this->fileUrlGenerator->generateString($this->testImages[1])) . ' 2x', 'Correct output for image with srcset attribute and multipliers.');\n }", "public function testRangeWithIntermediateSizes() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 300],\n ['width' => 400],\n ['width' => 500],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,3'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 280],\n ['width' => 360],\n ['width' => 440],\n ['width' => 520],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,4'));\n \n\n $this->assertEquals([\n ['width' => 200],\n ['width' => 267],\n ['width' => 333],\n ['width' => 400],\n ['width' => 467],\n ['width' => 533],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200-600,5'));\n }", "public function testGetImageSize()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image size to be 516x710 pixels.'\n );\n\n if (extension_loaded('imagick')) {\n $img = new P4Cms_Image();\n try {\n $img->getImageSize();\n $this->fail('Expected failure with empty Imagick object.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame(\n $e->getMessage(),\n \"Can not get image size: no image data were set.\"\n );\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n }", "public function testMultipleSizesAsString() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor('200,400,600'));\n }", "public function IncorrectImagePixelSize()\n\t{\n\t\tglobal $ft_dom;\n\t\t$code = array('');\t\t\t\n\t\t$elements = $ft_dom->getElementsByTagName('img');\n\t\t$img_array = array();\n\t\t$badimg = array();\n\t\t$code[1] = 0;\n\t\t$code[2] = '';\n\t\t$max_resource_tests = 50;\n\n\t foreach ($elements as $element) { \n\t\t\t//don't try to do too many.\n\t\t\tif(count($img_array) > $max_resource_tests) { continue; }\n\t\t\tif(Helper::likelyPixel($element)) { continue; }\n\t\t\tif($element->hasAttribute('src')) {\n\t\t\t\t//if((!$element->hasAttribute('width') && $element->hasAttribute('style')) && Helper::hasInlineStyleAttribute($element->getAttribute('style'),'width')) { echo \"width set inline.\"; }\n\t\t\t\tif(in_array($element->getAttribute('src'),$img_array)) { continue; }\n\t\t\t\t\n\t\t\t\tif ($element->hasAttribute('width') || $element->hasAttribute('height')) {\n\t\t\t\t\t$link = Helper::getAbsoluteResourceLink($element->getAttribute('src'));\n\t\t\t\t\t\n\t\t\t\t\tif(Helper::http200Test($link)) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tlist($width, $height) = getimagesize($link);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($element->hasAttribute('width')) {\n\t\t\t\t\t\t\t//echo \"\\n\\nwidth:\" . $element->getAttribute('width') . \"\\n\";\n\n\t\t\t\t\t\t\tif($element->getAttribute('width') != $width) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) { $code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be width=\\\"$width\\\"\"; }\n\t\t\t\t\t\t\t\t$badimg[] = $element;\n\t\t\t\t\t\t\t\t$code[1]++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($element->hasAttribute('height')) {\n\n\t\t\t\t\t\t\tif($element->getAttribute('height') != $height) {\n\t\t\t\t\t\t\t\tif($code[1] <= Helper::$max_disp_threshold) {\n\t\t\t\t\t\t\t\t\tif(in_array($element, $badimg)) {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= \"\\n and height=\\\"$height\\\"(\" .$element->getAttribute('src') . \")\";\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t$code[0] .= Helper::printCodeWithLineNumber($element) . \"\\nshould be height=\\\"$height\\\"\";\n\t\t\t\t\t\t\t\t\t\t$code[1]++;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif(in_array($element, $badimg)) { $code[0] .= \"\\n\\n\"; }\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t$img_array[] = $element->getAttribute('src');\n\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tif($code[0] != '') {\n\t\t\tif($code[1] > Helper::$max_disp_threshold) { $code[0] .= '...'; }\n\t\t\tif($code[1] > 1) { $code[2] = 's'; }\t\t\t\n\t\t\treturn $code;\n\t\t}\n\t return false;\n\t}", "public function testGetImageInfoFromBlob()\n {\n $imgBlob = file_get_contents($this->_testImagePath);\n $imgInfo = Tinebase_ImageHelper::getImageInfoFromBlob($imgBlob);\n \n $this->assertEquals($this->_testImageData['width'], $imgInfo['width']);\n }", "public function testImageCandidateFactoryWithWidthString()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg 1000w');\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "public function testImageCandidateFactoryWithWidthDescriptor()\n {\n $widthImageCandidate = ImageCandidateFactory::createImageCandidateFromFileAndDescriptor(\n 'image.jpg',\n '1000w'\n );\n $this->assertInstanceOf(WidthImageCandidate::class, $widthImageCandidate);\n }", "function imageCheck($target,$width=1,$height=1){\n if($width==1&&$height==1){\n return is_array(getimagesize($target));\n }else{\n $rvalue = false;\n if(is_array(getimagesize($target))){\n try {\n $img = new Imagick($target);\n if(strtoupper($img->getImageFormat())=='GIF'){\n $img = $img->coalesceImages();\n $img = $img->coalesceImages();\n do {\n if($width==0||$height==0)\n $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1);\n else $img->resizeImage($width, $height, Imagick::FILTER_BOX, 1,true);\n } while ($img->nextImage());\n $img = $img->deconstructImages();\n $img->writeImages($target,true);\n }else{\n if($width==0||$height==0)\n $img->thumbnailImage($width, $height);\n else $img->thumbnailImage($width, $height,true);\n $img->writeImage($target);\n }\n $img->destroy();\n $rvalue = true;\n } catch (Exception $e) {\n }\n }\n return $rvalue;\n }\n}", "public function testWebP() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH;\n\t\t$height = 0;\n\n\t\t$thumb = $image->Filter('format','webp')->ScaleWidth( $width );\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/{$width}x{$height}/filters:format(webp)/{$original_url}\", $url);\n\n\t\t$meta = getimagesize($url);\n\n\t\t$this->assertEquals( $meta['mime'], \"image/webp\" );\n\n\t}", "public function testImageConfiguration()\n {\n $this->runConfigurationAssertions(new Image(), [\n 'imgable_type',\n 'url',\n 'imgable_id',\n ]);\n }", "public function testThemeImageWithSizes() {\n // Test with multipliers.\n $sizes = '(max-width: ' . rand(10, 30) . 'em) 100vw, (max-width: ' . rand(30, 50) . 'em) 50vw, 30vw';\n $image = [\n '#theme' => 'image',\n '#sizes' => $sizes,\n '#uri' => reset($this->testImages),\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure sizes is set.\n $this->assertRaw($sizes, 'Sizes is set correctly.');\n }", "public function testData()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n if (extension_loaded('imagick')) {\n // no driver was specified so the driver should be an instance of\n // P4Cms_Image_Driver_Imagick\n $this->assertTrue(\n $img->getDriver() instanceof P4Cms_Image_Driver_Imagick,\n 'Expected driver to be instance of P4Cms_Image_Driver_Imagick.'\n );\n } else {\n $this->markTestIncomplete(\"Cannot verify default driver, 'imagick' extension not found.\");\n }\n\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected file at: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n\n $newImg = new P4Cms_Image();\n $newImg->setData($data);\n\n // the data returned from getData() should be the same as what was set\n $this->assertSame(\n $newImg->getImageSize(),\n array('width' => 516, 'height' => 710),\n 'Expected image built from file: ..assets/images/luigi.png to be 516x710 pixels.'\n );\n }", "function wp_image_matches_ratio($source_width, $source_height, $target_width, $target_height)\n {\n }", "public function testValidateDocumentImageValidation()\n {\n }", "public function testValidateDocumentPngValidation()\n {\n }", "public function test_responsive_width()\n {\n $tag = cl_image_tag(\"hello\", array(\"responsive_width\" => true, \"format\" => \"png\"));\n $this->assertEquals(\n \"<img class='cld-responsive' data-src='\" . self::DEFAULT_UPLOAD_PATH . \"c_limit,w_auto/hello.png'/>\",\n $tag\n );\n\n $options = array(\"width\" => 100, \"height\" => 100, \"crop\" => \"crop\", \"responsive_width\" => true);\n $result = Cloudinary::cloudinary_url(\"test\", $options);\n $this->assertEquals($options, array(\"responsive\" => true));\n $this->assertEquals($result, TagTest::DEFAULT_UPLOAD_PATH . \"c_crop,h_100,w_100/c_limit,w_auto/test\");\n Cloudinary::config(\n array(\n \"responsive_width_transformation\" => array(\n \"width\" => \"auto:breakpoints\",\n \"crop\" => \"pad\",\n ),\n )\n );\n $options = array(\"width\" => 100, \"height\" => 100, \"crop\" => \"crop\", \"responsive_width\" => true);\n $result = Cloudinary::cloudinary_url(\"test\", $options);\n $this->assertEquals($options, array(\"responsive\" => true));\n $this->assertEquals(\n $result,\n TagTest::DEFAULT_UPLOAD_PATH . \"c_crop,h_100,w_100/c_pad,w_auto:breakpoints/test\"\n );\n }", "public function test_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\n\t\t\t/**\n\t\t\t * #0 - 10x10 resize, no cropping.\n\t\t\t * By aspect, should be 10x6 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 10,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #1 - 75x50 resize, with cropping.\n\t\t\t * Output dimensions should be 75x50\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #2 - 20 pixel max height, no cropping.\n\t\t\t * By aspect, should be 30x20 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 9999, # Arbitrary High Value\n\t\t\t\t'height' => 20,\n\t\t\t\t'crop' => false,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #3 - 45 pixel max height, with cropping.\n\t\t\t * By aspect, should be 45x400 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 9999, # Arbitrary High Value\n\t\t\t\t'crop' => true,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #4 - 50 pixel max width, no cropping.\n\t\t\t * By aspect, should be 50x33 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #5 - 55 pixel max width, no cropping, null height\n\t\t\t * By aspect, should be 55x36 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => null,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #6 - 55 pixel max height, no cropping, no width specified.\n\t\t\t * By aspect, should be 82x55 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'height' => 55,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #7 - 60 pixel max height, no cropping, null width.\n\t\t\t * By aspect, should be 90x60 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => 60,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #8 - 70 pixel max height, no cropping, negative width.\n\t\t\t * By aspect, should be 105x70 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => -9999, # Arbitrary Negative Value\n\t\t\t\t'height' => 70,\n\t\t\t),\n\n\t\t\t/**\n\t\t\t * #9 - 200 pixel max width, no cropping, negative height.\n\t\t\t * By aspect, should be 200x133 output.\n\t\t\t */\n\t\t\tarray(\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => -9999, # Arbitrary Negative Value\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t$expected_array = array(\n\n\t\t\t// #0\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-10x7.jpg',\n\t\t\t\t'width' => 10,\n\t\t\t\t'height' => 7,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-10x7.jpg' ),\n\t\t\t),\n\n\t\t\t// #1\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-75x50.jpg',\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-75x50.jpg' ),\n\t\t\t),\n\n\t\t\t// #2\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-30x20.jpg',\n\t\t\t\t'width' => 30,\n\t\t\t\t'height' => 20,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-30x20.jpg' ),\n\t\t\t),\n\n\t\t\t// #3\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-45x400.jpg',\n\t\t\t\t'width' => 45,\n\t\t\t\t'height' => 400,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-45x400.jpg' ),\n\t\t\t),\n\n\t\t\t// #4\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\n\t\t\t// #5\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-55x37.jpg',\n\t\t\t\t'width' => 55,\n\t\t\t\t'height' => 37,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-55x37.jpg' ),\n\t\t\t),\n\n\t\t\t// #6\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-83x55.jpg',\n\t\t\t\t'width' => 83,\n\t\t\t\t'height' => 55,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-83x55.jpg' ),\n\t\t\t),\n\n\t\t\t// #7\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-90x60.jpg',\n\t\t\t\t'width' => 90,\n\t\t\t\t'height' => 60,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-90x60.jpg' ),\n\t\t\t),\n\n\t\t\t// #8\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-105x70.jpg',\n\t\t\t\t'width' => 105,\n\t\t\t\t'height' => 70,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-105x70.jpg' ),\n\t\t\t),\n\n\t\t\t// #9\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-200x133.jpg',\n\t\t\t\t'width' => 200,\n\t\t\t\t'height' => 133,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-200x133.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertNotNull( $resized );\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\tforeach ( $resized as $key => $image_data ) {\n\t\t\t$image_path = DIR_TESTDATA . '/images/' . $image_data['file'];\n\n\t\t\t// Now, verify real dimensions are as expected\n\t\t\t$this->assertImageDimensions(\n\t\t\t\t$image_path,\n\t\t\t\t$expected_array[ $key ]['width'],\n\t\t\t\t$expected_array[ $key ]['height']\n\t\t\t);\n\t\t}\n\t}", "public function testS4imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testMultipleSizesAsStringWrappedInArray() {\n $this->assertEquals([\n ['width' => 200],\n ['width' => 400],\n ['width' => 600],\n ], ImageSet::parseSizesDescriptor(['200,400,600']));\n }", "private function sanitize_srcset_attribute( DOMAttr $attribute ) {\n\t\t$srcset = $attribute->value;\n\n\t\t// Bail and raise a validation error if no image candidates were found or the last matched group does not\n\t\t// match the end of the `srcset`.\n\t\tif (\n\t\t\t! preg_match_all( self::SRCSET_REGEX_PATTERN, $srcset, $matches )\n\t\t\t||\n\t\t\tend( $matches[0] ) !== substr( $srcset, -strlen( end( $matches[0] ) ) )\n\t\t) {\n\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::INVALID_ATTR_VALUE,\n\t\t\t];\n\t\t\t$this->remove_invalid_attribute( $attribute->ownerElement, $attribute, $validation_error );\n\t\t\treturn;\n\t\t}\n\n\t\t$dimension_count = count( $matches['dimension'] );\n\t\t$commas_count = count( array_filter( $matches['comma'] ) );\n\n\t\t// Bail and raise a validation error if the number of dimensions does not match the number of URLs, or there\n\t\t// are not enough commas to separate the image candidates.\n\t\tif ( count( $matches['url'] ) !== $dimension_count || ( $dimension_count - 1 ) !== $commas_count ) {\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::INVALID_ATTR_VALUE,\n\t\t\t];\n\t\t\t$this->remove_invalid_attribute( $attribute->ownerElement, $attribute, $validation_error );\n\t\t\treturn;\n\t\t}\n\n\t\t// Bail if there are no duplicate image candidates.\n\t\t// Note: array_flip() is used as a faster alternative to array_unique(). See https://stackoverflow.com/a/8321709/93579.\n\t\tif ( count( array_flip( $matches['dimension'] ) ) === $dimension_count ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$image_candidates = [];\n\t\t$duplicate_dimensions = [];\n\n\t\tforeach ( $matches['dimension'] as $index => $dimension ) {\n\t\t\tif ( empty( trim( $dimension ) ) ) {\n\t\t\t\t$dimension = '1x';\n\t\t\t}\n\n\t\t\t// Catch if there are duplicate dimensions that have different URLs. In such cases a validation error will be raised.\n\t\t\tif ( isset( $image_candidates[ $dimension ] ) && $matches['url'][ $index ] !== $image_candidates[ $dimension ] ) {\n\t\t\t\t$duplicate_dimensions[] = $dimension;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$image_candidates[ $dimension ] = $matches['url'][ $index ];\n\t\t}\n\n\t\t// If there are duplicates, raise a validation error and stop short-circuit processing if the error is not removed.\n\t\tif ( ! empty( $duplicate_dimensions ) ) {\n\t\t\t$validation_error = [\n\t\t\t\t'code' => AMP_Tag_And_Attribute_Sanitizer::DUPLICATE_DIMENSIONS,\n\t\t\t\t'duplicate_dimensions' => $duplicate_dimensions,\n\t\t\t];\n\t\t\tif ( ! $this->should_sanitize_validation_error( $validation_error, [ 'node' => $attribute ] ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t// Otherwise, output the normalized/validated srcset value.\n\t\t$attribute->value = implode(\n\t\t\t', ',\n\t\t\tarray_map(\n\t\t\t\tstatic function ( $dimension ) use ( $image_candidates ) {\n\t\t\t\t\treturn \"{$image_candidates[ $dimension ]} {$dimension}\";\n\t\t\t\t},\n\t\t\t\tarray_keys( $image_candidates )\n\t\t\t)\n\t\t);\n\t}", "function wp_image_add_srcset_and_sizes($image, $image_meta, $attachment_id)\n {\n }", "public function testSetGetImageHandler()\n {\n $sut = new Image_Processor_Adapter_Gd2();\n\n $ih = imagecreatetruecolor(1, 1);\n $this->assertInstanceOf(get_class($sut), $sut->setImageHandler($ih));\n $this->assertSame($ih, $sut->getImageHandler());\n }", "public function test_single_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t# First, check to see if returned array is as expected\n\t\t$expected_array = array(\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\t// Now, verify real dimensions are as expected\n\t\t$image_path = DIR_TESTDATA . '/images/' . $resized[0]['file'];\n\t\t$this->assertImageDimensions(\n\t\t\t$image_path,\n\t\t\t$expected_array[0]['width'],\n\t\t\t$expected_array[0]['height']\n\t\t);\n\t}", "function guy_imagedims($src) {\n\tif (substr($src,0,1)=='/') $src = \nsubstr_replace($src,$_SERVER['DOCUMENT_ROOT'].'/',0,1);\n\tif (is_file($src)) {\n\t\t$wh = @GetImageSize($src);\n\t\treturn $wh[3];\n\t}\n\treturn '';\n}", "public function testResizeIfNeededNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/tall-image.jpg', true);\n $this->assertTrue($resized);\n }", "public function testThemeImageWithSrc() {\n\n $image = [\n '#theme' => 'image',\n '#uri' => reset($this->testImages),\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure the src attribute has the correct value.\n $this->assertRaw($this->fileUrlGenerator->generateString($image['#uri']), 'Correct output for an image with the src attribute.');\n }", "function throwImgWidth( $imgSrc ){\n return $this->throwImgSize( $imgSrc, 'width' );\n }", "public function testS2imageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public function testSimageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = 'someOtherText';\n $expected = 1;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "public static function test_image($source) {\n\t\tif (strlen($source) < 10) {\n\t\t\tdebug_event('Art', 'Invalid image passed', 1);\n\t\t\treturn false;\n\t\t}\n\n\t\t// Check to make sure PHP:GD exists. If so, we can sanity check\n\t\t// the image.\n\t\tif (function_exists('ImageCreateFromString')) {\n\t\t\t $image = ImageCreateFromString($source);\n\t\t\t if (!$image || imagesx($image) < 5 || imagesy($image) < 5) {\n\t\t\t\tdebug_event('Art', 'Image failed PHP-GD test',1);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public function testGetValidImageByImagePath () {\n\t\t//count the number of rows and save it for later\n\t\t$numRows = $this->getConnection()->getRowCount(\"image\");\n\n\t\t//create a new Image and insert it into MySQL\n\t\t$image = new Image(null, $this->VALID_IMAGEPATH, $this->VALID_IMAGETYPE);\n\t\t$image->insert($this->getPDO());\n\n\t\t//grab the data from MySQL and enforce the fields match our expectations\n\t\t$results = Image::getImageByImagePath($this->getPDO(), $image->getImagePath());\n\t\t$this->assertEquals($numRows + 1, $this->getConnection()->getRowCount(\"image\"));\n\t\t$this->assertCount(1, $results);\n\t\t$this->assertContainsOnlyInstancesOf(\"Edu\\\\Cnm\\\\DevConnect\\\\Image\", $results);\n\n\t\t//grab the results from the array and validate it\n\t\t$pdoImage = $results[0];\n\t\t$this->assertEquals($pdoImage->getImageId(), $image->getImageId());\n\t\t$this->assertEquals($pdoImage->getImagePath(), $this->VALID_IMAGEPATH);\n\t\t$this->assertEquals($pdoImage->getImageType(), $this->VALID_IMAGETYPE);\n\t}", "public function test_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50 );\n\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'width' => 75,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t\t$imagick_image_editor->get_size()\n\t\t);\n\t}", "public function testResizeIfNeededNotNeeded()\n {\n $resized = Processor::resizeIfNeeded('/app/tests/small-image.jpg', true);\n $this->assertFalse($resized);\n\n // wide image to be resized\n $resized = Processor::resizeIfNeeded('/app/tests/wide-image.jpg', true);\n $this->assertTrue($resized);\n }", "function get_intermediate_image_sizes()\n {\n }", "function has_image_size($name)\n {\n }", "public function checkWidthHeigth()\r\n\t{\r\n\t\t$referenceImageSize = getimagesize($this->referenceFile);\r\n\t\t$targetImageSize = getimagesize($this->targetFile);\r\n\t\treturn ((abs($targetImageSize[0] - $referenceImageSize[0])) < $this->pixelTol &&\r\n\t\t\tabs(($targetImageSize[1] - $referenceImageSize[1])) < $this->pixelTol);\r\n\t}", "public function provideImageTests() {\n $result = [\n [[\n 'descr' => \"[img] produces an image.\",\n 'bbcode' => \"This is Google's logo: [img]http://www.google.com/intl/en_ALL/images/logo.gif[/img].\",\n 'html' => \"This is Google's logo: <img src=\\\"http://www.google.com/intl/en_ALL/images/logo.gif\\\" alt=\\\"logo.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] disallows a javascript: URL.\",\n 'bbcode' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n 'html' => \"This is Google's logo: [img]javascript:alert()[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows a URL with an unknown protocol type.\",\n 'bbcode' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n 'html' => \"This is Google's logo: [img]foobar:bar.jpg[/img].\",\n ]],\n [[\n 'descr' => \"[img] disallows HTML content.\",\n 'bbcode' => \"This is Google's logo: [img]<a href='javascript:alert(\\\"foo\\\")'>click me</a>[/img].\",\n 'html' => \"This is Google's logo: [img]&lt;a href='javascript:alert(&quot;foo&quot;)'&gt;click me&lt;/a&gt;[/img].\",\n ]],\n [[\n 'descr' => \"[img] can produce a local image.\",\n 'bbcode' => \"This is a smiley: [img]smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"smileys/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local rooted URL.\",\n 'bbcode' => \"This is a smiley: [img]/smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"/smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img] can produce a local relative URL.\",\n 'bbcode' => \"This is a smiley: [img]../smile.gif[/img].\",\n 'html' => \"This is a smiley: <img src=\\\"../smile.gif\\\" alt=\\\"smile.gif\\\" class=\\\"bbcode_img\\\" />.\",\n ]],\n [[\n 'descr' => \"[img=src] should produce an image.\",\n 'bbcode' => 'This is a smiley: [img=smile.gif?f=1&b=2][/img] okay?',\n 'html' => 'This is a smiley: <img src=\"smileys/smile.gif\" alt=\"smile.gif?f=1&amp;b=2\" class=\"bbcode_img\" /> okay?',\n ]]\n ];\n return $result;\n }", "public function test_resize_and_crop() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50, true );\n\n\t\t$this->assertSame(\n\t\t\tarray(\n\t\t\t\t'width' => 100,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t\t$imagick_image_editor->get_size()\n\t\t);\n\t}", "public function testDimensionsInset()\n {\n $dimensions = Dimensions::create(\n 400,\n 400,\n 300,\n 150,\n ElcodiMediaImageResizeTypes::INSET\n );\n\n $this->assertEquals(0, $dimensions->getSrcX());\n $this->assertEquals(0, $dimensions->getSrcY());\n $this->assertEquals(400, $dimensions->getSrcWidth());\n $this->assertEquals(400, $dimensions->getSrcHeight());\n\n $this->assertEquals(0, $dimensions->getDstX());\n $this->assertEquals(0, $dimensions->getDstY());\n $this->assertEquals(150, $dimensions->getDstWidth());\n $this->assertEquals(150, $dimensions->getDstHeight());\n $this->assertEquals(150, $dimensions->getDstFrameX());\n $this->assertEquals(150, $dimensions->getDstFrameY());\n }", "function fiorello_mikado_max_image_width_srcset() {\n\t\treturn 1920;\n\t}", "function testImageSize()\r\n {\r\n $nautilus = $this->nautilus->uploadDir('/tmp');\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 33122));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n $this->assertEquals('/tmp/nautilus_test_image.jpeg',$upload);\r\n\r\n /*give it invalid 'max' size*/\r\n $nautilus = $this->nautilus;\r\n $nautilus->limitSize(array(\"min\" => 1, \"max\" => 22));\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n $this->setExpectedException('Image\\ImageException','File sizes must be between 1 to 22 bytes');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n }", "public function testCreate()\n {\n // Calls the method to be tested\n $javaDriver = MetadataExtractorDriver::create();\n \n // Makes a simple call to ensure it works\n $output = $javaDriver->command([realpath(TEST_RESOURCES_DIRECTORY . '/elephant.jpg')]);\n \n $this->assertContains('[JPEG] Compression Type = Baseline', $output);\n $this->assertContains('[JPEG] Data Precision = 8 bits', $output);\n $this->assertContains('[JPEG] Image Height = 1280 pixels', $output);\n $this->assertContains('[JPEG] Image Width = 1920 pixels', $output);\n $this->assertContains('[JPEG] Number of Components = 3', $output);\n $this->assertContains(\n '[JPEG] Component 1 = Y component: Quantization table 0, Sampling factors 2 horiz/2 vert',\n $output\n );\n $this->assertContains(\n '[JPEG] Component 2 = Cb component: Quantization table 1, Sampling factors 1 horiz/1 vert',\n $output\n );\n $this->assertContains(\n '[JPEG] Component 3 = Cr component: Quantization table 1, Sampling factors 1 horiz/1 vert',\n $output\n );\n $this->assertContains('[JFIF] Version = 1.1', $output);\n $this->assertContains('[JFIF] Resolution Units = inch', $output);\n $this->assertContains('[JFIF] X Resolution = 300 dots', $output);\n $this->assertContains('[JFIF] Y Resolution = 300 dots', $output);\n $this->assertContains('[JFIF] Thumbnail Width Pixels = 0', $output);\n $this->assertContains('[JFIF] Thumbnail Height Pixels = 0', $output);\n $this->assertContains('[Exif IFD0] Make = Canon', $output);\n $this->assertContains('[Exif IFD0] Model = Canon EOS 70D', $output);\n $this->assertContains('[Exif IFD0] Exposure Time = 1/250 sec', $output);\n $this->assertContains('[Exif SubIFD] Exposure Time = 1/250 sec', $output);\n \n // Under Windows and with French local floating numbers use ',' but under Unix its '.'\n $this->assertTrue(\n strstr($output, '[Exif SubIFD] F-Number = f/8,0') !== false ||\n strstr($output, '[Exif SubIFD] F-Number = f/8.0') !== false\n );\n \n $this->assertContains('[Exif SubIFD] ISO Speed Ratings = null', $output);\n $this->assertContains('[Exif SubIFD] Date/Time Original = 2016:07:17 10:35:28', $output);\n $this->assertContains('[Exif SubIFD] Flash = null', $output);\n $this->assertContains('[Exif SubIFD] Focal Length = 51 mm', $output);\n $this->assertContains('[Exif SubIFD] Lens Model = EF-S17-55mm f/2.8 IS USM', $output);\n $this->assertContains('[File] File Name = elephant.jpg', $output);\n \n // Under Windows the number of bytes computed is not the same as Unix\n $this->assertTrue(\n strstr($output, '[File] File Size = 829992 bytes') !== false ||\n strstr($output, '[File] File Size = 830001 bytes') !== false\n );\n \n $this->assertContains('[File] File Modified Date = ', $output);\n }", "function someImage($width, $height, $options = []);", "public function testTransform()\n {\n $img = new P4Cms_Image();\n $data = file_get_contents(TEST_ASSETS_PATH . '/images/luigi.png');\n $img->setData($data);\n\n // test the behavior of scale with width and height\n $img->transform('scale', array(258, 355));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 258, 'height' => 355),\n 'Expected image to be scaled to 258x355 pixels.'\n );\n\n // test the behavior of scale with width only\n // 516/710 = 400/h => h = 550\n $img->transform('scale', array(400));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 400, 'height' => 550),\n 'Expected image to be scaled to 300x300 pixels.'\n );\n\n // test the behavior of crop\n $img->transform('crop', array(100, 100, 50, 50));\n $this->assertSame(\n $img->getImageSize(),\n array('width' => 100, 'height' => 100),\n 'Expected image to be cropped to 100x100 pixels.'\n );\n\n // test the behavior of unsupported transform\n try {\n $img->transform('foo');\n $this->fail('Expected failure with an unsupported transform.');\n } catch (P4Cms_Image_Exception $e) {\n $this->assertSame($e->getMessage(), \"Transform \\\"foo\\\" is not supported.\");\n } catch (Exception $e) {\n $this->fail('Unexpected exception: '. $e->getMessage());\n }\n }", "function checkImg(){\n global $postpath;\n return getimagesize($postpath) !== false;\n }", "public function testGetValidImageTagByImageId() {\n\t\t$numRows = $this->getConnection()->getRowCount(\"imageTag\");\n\n\t\t$imageTag = new ImageTag($this->imageTagImage->getImageId(), $this->imageTagTag->getTagId());\n\t\t$imageTag->insert($this->getPDO());\n\t\t$results = ImageTag::getImageTagByImageId($this->getPDO(), $this->imageTagImage->getImageId());\n\n\t}", "public function testPadding() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH + 20;\n\t\t$height = self::HEIGHT + 20;\n\t\t$colour = 'f7392a';\n\t\t$thumb = $image->Pad( $width, $height, $colour);\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/fit-in/{$width}x{$height}/filters:fill(f7392a)/{$original_url}\", $url);\n\n\n\t}", "public function test_it_loads_an_image_string_into_a_resource()\n {\n imagepng(imagecreatefromstring($this->imagePath), $this->compareTestSaveLocation);\n imagepng($this->image->getImageResource(), $this->testImageSaveLocation);\n\n $correctImage = file_get_contents($this->compareTestSaveLocation);\n $testImage = file_get_contents($this->testImageSaveLocation);\n\n $this->assertEquals($correctImage, $testImage);\n }", "public function testImageCandidateFactoryWithPixelDensityString()\n {\n $pixelDensityImageCandidate = ImageCandidateFactory::createImageCandidateFromString('image.jpg 1x');\n $this->assertInstanceOf(DensityImageCandidate::class, $pixelDensityImageCandidate);\n }", "public function srcset($value = null)\n {\n if (!empty($value)) {\n $this->srcset = $value;\n return;\n }\n\n // If the full size was requested, render as is.\n if ($this->size && $this->size === 'full') {\n return $this->src;\n }\n\n $normal = $this->resize();\n $retina = $this->retina();\n\n $sources[] = $normal->src . ' ' . $normal->width . 'w';\n\n if ($retina->src && ($retina->src != $normal->src)) {\n $sources[] = $retina->src . ' 2x';\n $sources[] = $retina->src . ' ' . $retina->width .'w';\n }\n\n // If it's a larger image, provide a version in half it's size.\n if ($this->r_width > 400) {\n $half = $this->resize(round($this->r_width/2), round($this->r_height/2));\n\n if ($half->src != $normal->src) {\n $sources[] = $half->src . ' ' . $half->width .'w';\n }\n }\n\n return implode(', ', $sources);\n }", "public function testSaveWithQualityImageEquals(): void\n {\n $thumb = $this->getThumbCreatorInstance()->resize(200)->save(['quality' => 10]);\n $this->assertImageFileEquals('resize_w200_h200_quality_10.jpg', $thumb);\n }", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( KISSIT_MAIN_PRODUCT_WATERMARK_SIZE == 0 ) {\n \tif ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n \t\treturn 'abort';\n \t} \n \tif (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n \t\treturn 'abort';\n \t}\n }\n }", "function wp_get_attachment_image_srcset($attachment_id, $size = 'medium', $image_meta = \\null)\n {\n }", "function register_image_sizes() {\n\t}", "public function testUrlGeneration() {\n\n\t\t$image = $this->getSampleImage();\n\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t// Generate a thumb\n\t\t$colour = 'ffffff';\n\t\t$thumb = $image->Pad( self::WIDTH, self::HEIGHT, $colour );\n\t\t$this->assertTrue($thumb instanceof ThumboredImage);\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// Thumbor\\Url\\Builder\n\t\t$instance = $image->getUrlInstance();\n\t\t$this->assertTrue($instance instanceof ThumborUrlBuilder);//Phumbor\n\t\t$instance_url = $instance->__toString();\n\n\t\t$this->assertEquals($url, $instance_url);\n\n\t\t$this->getRemoteImageDimensions($url, $width, $height);\n\n\t\t$this->assertEquals($width, self::WIDTH);\n\t\t$this->assertEquals($height, self::HEIGHT);\n\n\t\t// Test that the _resampled thumb DOES NOT exist locally in /assets, which is the point of Thumbor\n\t\t$variant_name = $image->variantName('Pad', self::WIDTH, self::HEIGHT, $colour);\n\t\t$filename = $image->getFilename();\n\t\t$hash = $image->getHash();\n\t\t$exists = $this->asset_store->exists($filename, $hash, $variant_name);\n\n\t\t$this->assertTrue( !$exists, \"The variant name exists and it should not\" );\n\n\t}", "public function testGetImages() : void {\n $galleryId = 0;\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getImages($galleryId)));\n }", "public function responsiveImageProvider() {\n $image = 'http://www.example.com/test_image.png';\n $cloudinaryFetchUrl = $this->cloudinaryResourceBaseUrl . '/' . $this->cloudinaryCloudName . '/image/fetch';\n return [\n // Case 1. No config parameter sent.\n [\n 'image' => ['src' => $image, 'width' => 100, 'height' => 100],\n 'expected' => ['src' => $image, 'width' => 100, 'height' => 100]\n ],\n // Case 2. Only ask for a width (so just scale the image).\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 500],\n 'expected' => [\n 'width' => 600,\n 'height' => 300,\n 'src' => $cloudinaryFetchUrl . '/s--1SSv3TAe--/f_auto/q_auto/c_scale,w_600/' . $image,\n ],\n 'width' => 600,\n ],\n // Case 3. Ask for a width and height.\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 1000],\n 'expected' => [\n 'width' => 600,\n 'height' => 400,\n 'src' => $cloudinaryFetchUrl . '/s--oQnrp4QO--/f_auto/q_auto/c_fill,g_auto,h_400,w_600/' . $image,\n ],\n 'width' => 600,\n 'height' => 400,\n ],\n // Case 4. Ask for a custom transformation.\n [\n 'image' => ['src' => $image, 'width' => 1000, 'height' => 1000],\n 'expected' => [\n 'width' => 600,\n 'height' => 400,\n 'src' => $cloudinaryFetchUrl . '/s--iBYmBJnf--/f_auto/q_auto/c_fill,g_auto,h_400,w_600/c_lfill,h_150,w_150/' . $image\n ],\n 'width' => 600,\n 'height' => 400,\n 'sizes' => NULL,\n 'transform' => 'c_lfill,h_150,w_150',\n ],\n // Case 5. Ask for sizes.\n [\n 'image' => ['src' => $image, 'width' => 2000, 'height' => 1600],\n 'expected' => [\n 'src' => $cloudinaryFetchUrl . '/s--do7-bAD9--/f_auto/q_auto/c_scale,w_1600/' . $image,\n 'width' => 1600,\n 'height' => 1280,\n 'sizes' => '(max-width: 800px) 780px, (max-width: 1200px) 1100px, 1600px',\n 'srcset' => implode(', ', [\n $cloudinaryFetchUrl . '/s--MZkCHWuY--/f_auto/q_auto/c_scale,w_780/' . $image . ' 780w',\n $cloudinaryFetchUrl . '/s--xlf_u2mA--/f_auto/q_auto/c_scale,w_1100/' . $image . ' 1100w',\n ])\n ],\n 'width' => 1600,\n 'height' => NULL,\n 'sizes' => [\n [800, 780],\n [1200, 1100],\n ],\n ],\n // Case 6. A complete test, with height calculation, sizes and custom\n // transformations.\n [\n 'image' => ['src' => $image, 'width' => 2000, 'height' => 1600],\n 'expected' => [\n 'src' => $cloudinaryFetchUrl . '/s--PYehk6Pp--/f_auto/q_auto/c_fill,g_auto,h_1200,w_1600/co_rgb:000000,e_colorize:90/' . $image,\n 'width' => 1600,\n 'height' => 1200,\n 'sizes' => '(max-width: 800px) 780px, (max-width: 1200px) 1100px, 1600px',\n 'srcset' => implode(', ', [\n $cloudinaryFetchUrl . '/s--0q-v7sf8--/f_auto/q_auto/c_fill,g_auto,h_585,w_780/co_rgb:000000,e_colorize:90/' . $image . ' 780w',\n $cloudinaryFetchUrl . '/s--1PnC9sUX--/f_auto/q_auto/c_fill,g_auto,h_825,w_1100/co_rgb:000000,e_colorize:90/' . $image . ' 1100w',\n ]),\n ],\n 'width' => 1600,\n 'height' => 1200,\n 'sizes' => [\n [800, 780],\n [1200, 1100],\n ],\n 'transform' => 'co_rgb:000000,e_colorize:90',\n ],\n ];\n }", "public function testCacheIntegrity() {\n\t\t$fullPath = realpath(dirname(__FILE__) . '/gdtest/test_jpg.jpg');\n\n\t\ttry {\n\t\t\t$gdFailure = new GDBackend_Failure($fullPath, array('ScaleWidth', 123));\n\t\t\t$this->fail('GDBackend_Failure should throw an exception when setting image resource');\n\t\t} catch (GDBackend_Failure_Exception $e) {\n\t\t\t$cache = SS_Cache::factory('GDBackend_Manipulations');\n\t\t\t$key = md5(implode('_', array($fullPath, filemtime($fullPath))));\n\n\t\t\t$data = unserialize($cache->load($key));\n\n\t\t\t$this->assertArrayHasKey('ScaleWidth|123', $data);\n\t\t\t$this->assertTrue($data['ScaleWidth|123']);\n\t\t}\n\t}", "function wp_img_tag_add_srcset_and_sizes_attr($image, $context, $attachment_id)\n {\n }", "public function testS3imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = 'someText';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }", "abstract protected function processImage (string $src): string;", "public function testDimensionsInsetFillWhite()\n {\n $dimensions = Dimensions::create(\n 400,\n 400,\n 300,\n 150,\n ElcodiMediaImageResizeTypes::INSET_FILL_WHITE\n );\n\n $this->assertEquals(0, $dimensions->getSrcX());\n $this->assertEquals(0, $dimensions->getSrcY());\n $this->assertEquals(400, $dimensions->getSrcWidth());\n $this->assertEquals(400, $dimensions->getSrcHeight());\n\n $this->assertEquals(75, $dimensions->getDstX());\n $this->assertEquals(0, $dimensions->getDstY());\n $this->assertEquals(150, $dimensions->getDstWidth());\n $this->assertEquals(150, $dimensions->getDstHeight());\n $this->assertEquals(300, $dimensions->getDstFrameX());\n $this->assertEquals(150, $dimensions->getDstFrameY());\n }", "protected function renderImageSrcset(FileInterface $image, $width, $height)\r\n\t{\r\n\t\t// Get crop variants\r\n\t\t$cropString = $image instanceof FileReference ? $image->getProperty('crop') : '';\r\n\r\n\t\tif ( $this->arguments['ratio'] ) {\r\n\t\t\t$cropString = self::getCropString($image);\r\n\t\t}\r\n\r\n\t\t$cropVariantCollection = CropVariantCollection::create((string) $cropString);\r\n\r\n\t\t$cropVariant = $this->arguments['cropVariant'] ?: 'default';\r\n\t\t$cropArea = $cropVariantCollection->getCropArea($cropVariant);\r\n\t\t$focusArea = $cropVariantCollection->getFocusArea($cropVariant);\r\n\r\n\t\t// Generate fallback image\r\n\t\t$fallbackImage = $this->generateFallbackImage($image, $width, $cropArea);\r\n\r\n\t\tif ( $GLOBALS['_GET']['type'] == '98' ) {\r\n\t\t\t$lazyload = 0;\r\n\t\t} else {\r\n\t\t\tif ($this->arguments['lazyload']) {\r\n\t\t\t\tif ($this->arguments['lazyload'] == 1) {\r\n\t\t\t\t\t$lazyload = $this->arguments['lazyload'];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ($this->arguments['lazyload'] == 2 && $image->getProperty('tx_t3sbootstrap_lazy_load')) {\r\n\t\t\t\t\t\t$lazyload = $this->arguments['lazyload'];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$lazyload = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$lazyload = 0;\r\n\t\t\t}\r\n\t\t}\r\n$placeholderSize = 0;\r\n$placeholderInline = 0;\r\nif ($lazyload) {\r\n$placeholderSize = $this->arguments['placeholderSize'] ? $this->arguments['placeholderSize'] : 60;\r\n$placeholderInline = $this->arguments['placeholderInline'] ? $this->arguments['placeholderInline'] : 1;\r\n}\r\n\t\t// Generate image tag\r\n\t\t$this->tag = $this->responsiveImagesUtility->createImageTagWithSrcset(\r\n\t\t\t$image,\r\n\t\t\t$fallbackImage,\r\n\t\t\t$this->arguments['srcset'],\r\n\t\t\t$cropArea,\r\n\t\t\t$focusArea,\r\n\t\t\t$this->arguments['sizes'],\r\n\t\t\t$this->tag,\r\n\t\t\t$this->arguments['picturefill'],\r\n\t\t\tfalse,\r\n\t\t\t$lazyload,\r\n\t\t\t$this->arguments['ignoreFileExtensions'],\r\n\t\t\t$placeholderSize,\r\n\t\t\t$placeholderInline\r\n\t\t);\r\n\r\n\t\treturn $this->tag->render();\r\n\t}", "public function test_comicEntityIsCreated_images_setImages()\n {\n $sut = $this->getSUT();\n $images = $sut->getImages();\n $expected = [\n Image::create(\n 'http://i.annihil.us/u/prod/marvel/i/mg/c/30/4fe8cb51f32e0',\n 'jpg'\n ),\n ];\n\n $this->assertEquals($expected, $images);\n }", "public function _set_new_size_auto()\n {\n if (empty($this->source_width) || empty($this->source_height)) {\n if ( ! $this->SILENT_MODE) {\n trigger_error('Missing source image sizes!', E_USER_WARNING);\n }\n return false;\n }\n $k1 = $this->source_width / $this->limit_x;\n $k2 = $this->source_height / $this->limit_y;\n $k = $k1 >= $k2 ? $k1 : $k2;\n if ($this->reduce_only && $k1 <= 1 && $k2 <= 1) {\n $this->output_width = $this->source_width;\n $this->output_height = $this->source_height;\n } else {\n $this->output_width = round($this->source_width / $k, 0);\n $this->output_height = round($this->source_height / $k, 0);\n }\n return true;\n }", "public function testSmartCrop() {\n\t\t$image = $this->getSampleImage();\n\t\t$this->assertTrue( !empty($image->ID) && $image->exists() );\n\n\t\t$original_url = $image->getAbsoluteURL();\n\n\t\t$width = self::WIDTH;\n\t\t$height = 0;\n\t\t$thumb = $image->Smart(true)->ScaleWidth( $width );\n\n\t\t// Get its URL\n\t\t$url = $thumb->getAbsoluteURL();\n\n\t\t// should end with this command/path\n\t\t$this->assertStringEndsWith(\"=/{$width}x{$height}/smart/{$original_url}\", $url);\n\n\t}", "public function test_multi_resize_does_not_create() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t// If no images are generated, the returned array is empty.\n\t\t$this->assertEmpty( $resized );\n\t}", "public function test_resize() {\n\n\t\t$file = DIR_TESTDATA . '/images/gradient-square.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50 );\n\n\t\t$this->assertEquals( array( 'width' => 50, 'height' => 50 ), $imagick_image_editor->get_size() );\n\t}", "public function testImageQueryString() {\n\t\t$result = $this->Html->image('test.gif?one=two&three=four');\n\t\t$this->assertTags($result, array('img' => array('src' => 'img/test.gif?one=two&amp;three=four', 'alt' => '')));\n\n\t\t$result = $this->Html->image(array(\n\t\t\t'controller' => 'images',\n\t\t\t'action' => 'display',\n\t\t\t'test',\n\t\t\t'?' => array('one' => 'two', 'three' => 'four')\n\t\t));\n\t\t$this->assertTags($result, array('img' => array('src' => '/images/display/test?one=two&amp;three=four', 'alt' => '')));\n\t}", "public function testImage()\n {\n $uploadedFile = new UploadedFile(__DIR__ . '/../Mock/image_10Mb.jpg', 'image.jpg');\n $user = new User();\n $user->setEmail('[email protected]')\n ->setImage($uploadedFile);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_DEFAULT]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setImage(null);\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_IMAGE_REQUIRED]);\n Assert::assertEquals('image', $constraintViolationList->get(0)->getPropertyPath());\n }", "public function _get_img_info()\n {\n if ( ! file_exists($this->source_file) || ! filesize($this->source_file)) {\n return false;\n }\n list($this->source_width, $this->source_height, $type, $this->source_atts) = getimagesize($this->source_file);\n return isset($this->_avail_types[$type]) ? ($this->source_type = $this->_avail_types[$type]) : false;\n }", "function custom_image_sizes() {\n}", "public function is_valid_image() {\n\n if ( get_post_type( $this->slide->ID ) === 'attachment' ) {\n $image_id = $this->slide->ID;\n } else {\n $image_id = get_post_thumbnail_id( $this->slide->ID );\n }\n\n $meta = wp_get_attachment_metadata( $image_id );\n\n $is_valid = isset( $meta['width'], $meta['height'] );\n\n return apply_filters( 'metaslider_is_valid_image', $is_valid, $this->slide );\n }", "public function testJpeg()\n {\n $this->assertThat('./tests/images/jpeg.jpg',\n $this->logicalNot($this->equalTo(new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg')), '', 0.01));\n\n // should compare successfully with threshold = 0.1\n $this->assertThat('./tests/images/jpeg.jpg',\n new GDSimilarityConstraint('./tests/images/jpeg-alt.jpg', 0.1), '', 0.1);\n }", "public function testGetImage() {\n\t\t$instance = new ImageObject( 123 );\n\n\t\t$this->assertNull(\n\t\t\t$instance->getImage( 123 ),\n\t\t\t'An ImageObject inside an ImageObject? Are you mad?!'\n\t\t);\n\t}", "public function register_image_sizes() {\n\n }", "function testImageSize()\n {\n $bulletproof = $this->bulletproof->uploadDir('/tmp');\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 33122));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n $this->assertEquals('/tmp/bulletproof_test_image.jpeg',$upload);\n\n /*give it invalid 'max' size*/\n $bulletproof = $this->bulletproof;\n $bulletproof->limitSize(array(\"min\" => 1, \"max\" => 22));\n $image = array('name' => $this->testingImage,\n 'type' => 'image/jpeg',\n 'size' => 542,\n 'tmp_name' => $this->testingImage,\n 'error' => 0\n );\n $this->setExpectedException('ImageUploader\\ImageUploaderException','File sizes must be between 1 to 22 bytes');\n $upload = $bulletproof->upload($image,'bulletproof_test_image');\n\n }", "function createSrcset($id, $maxWidth = 20000)\n {\n global $serendipity;\n\n $origImage = serendipity_fetchImageFromDatabase($id);\n\n if ((isset($origImage['hotlink']) && $origImage['hotlink'] == 1) || ! $origImage) return ''; // don't allow on hotlink data\n\n $imagePath = $serendipity['serendipityHTTPPath'] . $serendipity['uploadHTTPPath'] . $origImage['path'] . $origImage['realname'];\n\n $thumbnails = $this->_getThumbnails($id);\n\n $srcset = \"srcset=\\\"$imagePath {$origImage['dimensions_width']}w,\";\n if ($origImage['dimensions_width'] <= $this->breakpoints[0]) {\n // don't set the original image as srcset source if its breakpoint would be too small\n $srcset = 'srcset=\"';\n }\n for ($i = 0; $i < count($this->thumbWidths); $i++) {\n $thumbWidth = $this->thumbWidths[$i];\n $matchedThumbnail = false;\n foreach ($thumbnails AS $thumbnail) {\n if (false !== strpos($thumbnail, $thumbWidth . 'W')) {\n $matchedThumbnail = $thumbnail;\n break;\n }\n }\n if ($matchedThumbnail) {\n $thumbnailHttp = str_replace($serendipity['serendipityPath'], $serendipity['serendipityHTTPPath'], $matchedThumbnail);\n $breakpoint = $this->breakpoints[$i];\n $srcset .= \"{$thumbnailHttp} {$breakpoint}w,\";\n }\n }\n // 2 == there is the original thumbnail without a dimension, and one thumbnail for the smallest breakpoint\n if (count($thumbnails) == 2) {\n if ($origImage['dimensions_width'] < end($this->breakpoints)) {\n // It is better to just use the original image\n $srcset = \"srcset=\\\"$imagePath {$origImage['dimensions_width']}w\";\n } else {\n // When the smallest thumbnail is the only responsive thumbnail our original image will be needed to as part of the srcset, otherwise we too often upscale the small thumbnail\n $srcset .= \"$imagePath {$origImage['dimensions_width']}w,\";\n }\n }\n\n if (substr($srcset, -strlen(',')) === ',') {\n // we don't want to have the trailing comma\n $srcset = substr($srcset, 0, -1);\n }\n $srcset .= '\"';\n\n return $srcset;\n }", "public function hasImageWidth()\n {\n return $this->image_width !== null;\n }", "public function test_resize_and_crop() {\n\n\t\t$file = DIR_TESTDATA . '/images/gradient-square.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$imagick_image_editor->resize( 100, 50, true );\n\n\t\t$this->assertEquals( array( 'width' => 100, 'height' => 50 ), $imagick_image_editor->get_size() );\n\t}", "function check_image_type_array($source_pic)\n{\n switch ($source_pic) {\n case 'image/gif':\n return true;\n break;\n\n case 'image/jpeg':\n return true;\n break;\n\n case 'image/png':\n return true;\n break;\n\n case 'image/wbmp':\n return true;\n break;\n\n default:\n return false;\n break;\n }\n}", "function throwImgSize( $imgSrc, $sOption = null ){\n $aImg = getImageSize( $imgSrc );\n\n $aImgSize['width'] = $aImg[0];\n $aImgSize['height'] = $aImg[1];\n\n if( $sOption == 'width' || $sOption == 'height' )\n return $aImgSize[$sOption];\n else\n return $aImgSize;\n }", "public function testValidateDocumentJpgValidation()\n {\n }", "public function isValidImage()\n\t{\n\t\t$src = $this->source_path;\n\t\t$extension = \\strtolower(\\substr($src, (\\strrpos($src, '.') + 1)));\n\n\t\tif (!\\in_array($extension, $this->image_extensions)) {\n\t\t\treturn false;\n\t\t}\n\n\t\t$r = @\\imagecreatefromstring(\\file_get_contents($src));\n\n\t\treturn \\is_resource($r) && \\get_resource_type($r) === 'gd';\n\t}", "public static function isImage($source)\n {\n return getimagesize($source);\n }", "public function test_it_has_images()\n {\n $business = BusinessFactory::create();\n $this->assertContainsOnlyInstancesOf(Image::class, $business->images);\n }", "abstract public function describeImages(ImageFilter $images);", "protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n return 'abort';\n } \n if (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n return 'abort';\n }\n }", "public function add_image_sizes() {\n\t\tif ( ! is_array( $this->image_sizes ) || empty( $this->image_sizes ) ) {\n\t\t\treturn false;\n\t\t}\n\t\tforeach ( $this->image_sizes as $key => $value ) {\n\t\t\tforeach ( $value as $name => $attributes ) {\n\t\t\t\tif ( empty( $attributes ) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif ( isset( $attributes->width ) && ! empty( $attributes->width ) && isset( $attributes->height ) && ! empty( $attributes->height ) && isset( $attributes->crop ) ) {\n\t\t\t\t\tadd_image_size( $name, $attributes->width, $attributes->height, $attributes->crop );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "function someImageUrl($width, $height, $options = []);", "function pendrell_image_lazysizes_srcset( $html = '' ) {\n static $counter = 1; // This counter is presumably triggered as often as the one in the next function\n if ( !empty( $html ) && $counter > PENDRELL_LAZYSIZES_COUNTER )\n $html = 'data-' . $html . ' srcset=\"' . ubik_imagery_blank() . '\" ';\n $counter++;\n return $html;\n}", "protected function extractSvgImageSizes() {}", "public function filter_srcset_array( $sources, $size_array, $image_src, $image_meta, $attachment_id ) {\n\t\t$upload_dir = wp_upload_dir();\n\n\t\tforeach ( $sources as $i => $source ) {\n\t\t\tif ( ! self::validate_image_url( $source['url'] ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$url = $source['url'];\n\t\t\tlist( $width, $height ) = static::parse_dimensions_from_filename( $url );\n\n\t\t\t// It's quicker to get the full size with the data we have already, if available.\n\t\t\tif ( isset( $image_meta['file'] ) ) {\n\t\t\t\t$url = trailingslashit( $upload_dir['baseurl'] ) . $image_meta['file'];\n\t\t\t} else {\n\t\t\t\t$url = static::strip_image_dimensions_maybe( $url );\n\t\t\t}\n\n\t\t\t$args = [];\n\t\t\tif ( 'w' === $source['descriptor'] ) {\n\t\t\t\tif ( $height && ( intval( $source['value'] ) === intval( $width ) ) ) {\n\t\t\t\t\t$args['resize'] = $width . ',' . $height;\n\t\t\t\t} else {\n\t\t\t\t\t$args['w'] = $source['value'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// If the image_src is a tahcyon url, add it's params\n\t\t\t// to the srcset images too.\n\t\t\tif ( strpos( $image_src, TACHYON_URL ) === 0 ) {\n\t\t\t\tparse_str( parse_url( $image_src, PHP_URL_QUERY ) ?? '', $image_src_args );\n\t\t\t\t$args = array_merge( $args, array_intersect_key( $image_src_args, [ 'gravity' => true ] ) );\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Filter the array of Tachyon arguments added to an image when it goes through Tachyon.\n\t\t\t * By default, contains only resize or width params\n\t\t\t *\n\t\t\t * @param array $args Array of Tachyon Arguments.\n\t\t\t * @param array $args {\n\t\t\t * Array of image details.\n\t\t\t *\n\t\t\t * @type $source Array containing URL and target dimensions.\n\t\t\t * @type $image_meta Array containing attachment metadata.\n\t\t\t * @type $width Image width.\n\t\t\t * @type $height Image height.\n\t\t\t * @type $attachment_id Image ID.\n\t\t\t * }\n\t\t\t */\n\t\t\t$args = apply_filters( 'tachyon_srcset_image_args', $args, compact( 'source', 'image_meta', 'width', 'height', 'attachment_id' ) );\n\n\t\t\t$sources[ $i ]['url'] = tachyon_url( $url, $args );\n\t\t}\n\n\t\treturn $sources;\n\t}", "public function testPutImage()\n {\n }", "function cilikke($src, $dest, $new_width) {\r\n\t$info = getimagesize($src);\r\n\t$mime = $info[\"mime\"];\r\n\tif( $mime == 'image/jpeg' ) $source_image = imagecreatefromjpeg($src);\r\n\telseif( $mime == 'image/png' ) $source_image = imagecreatefrompng($src);\r\n\t$width = imagesx($source_image);\r\n\t$height = imagesy($source_image);\r\n\t$new_height = floor($height * ($new_width / $width));\r\n\tif($new_width < $width && $new_height < $height)\r\n\t{\r\n\t\t$virtual_image = imagecreatetruecolor($new_width, $new_height);\t\r\n\t\timagecopyresampled($virtual_image, $source_image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);\r\n\t\timagejpeg($virtual_image, $dest);\r\n\t}else\r\n\t\tcopy($src, $dest);\r\n}", "function build_image_tag($atts) {\n\t\n\t$imageTag = \"<img \";\n\t// Loop through all attributes provided\n\tforeach ($atts as $att=>$value){\n\t\t\n\t\t// User can provide src as src or url\n\t\tif ($att=='url' || $att == 'src') {\n\t\t\n\t\t\t$imageTag = $imageTag . \"src='\" . $atts['url'] . \"' \";\n\t\t\n\t\t// User can provide widths as a comma delimited list to build srcset attribute\n\t\t} elseif ($att=='width'){\n\t\t\t\n\t\t\t// Create array from string list of widths\t\t\t\n\t\t\t$widths = array_map('trim', explode(\",\", $atts['width']));\t\n\t\t\t$imageTag = $imageTag . \"srcset='\";\n\t\t\t\n\t\t\t// Loop through all widths and add them to srcset attribute\n\t\t\t// Assumes image resizing service can change widths by adding \"?w=\"\n\t\t\tfor($i = 0; $i < sizeof($widths); $i++){\n\t\t\t\tif($i<sizeof($widths)-1){\n\t\t\t\t\t$imageTag = $imageTag . \"{$atts['url']}?w={$widths[$i]} {$widths[$i]}w, \";\n\t\t\t\t} else{\n\t\t\t\t\t$imageTag = $imageTag . \"{$atts['url']}?w={$widths[$i]} {$widths[$i]}w' \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Assumes all images are fullwidth\n\t\t\t$imageTag = $imageTag . \"sizes='100vw' \";\n\t\t\n\t\t// User can provide classes as comma delimited list or more common whitespace separated list\n\t\t} elseif ($att=='class'){\n\t\t\n\t\t\t// If comma delimited list, create array then create the classes string attribute\n\t\t\tif (strpos($atts['class'], ',') !== false){\n\t\t\t\t$classes = array_map('trim', explode(\",\", $atts['class']));\n\t\t\t\tfor($i = 0; $i < sizeof($classes); $i++){\n\t\t\t\t\tif($i<sizeof($classes)-1){\n\t\t\t\t\t\t$classAttr = $classAttr . \"{$classes[$i]} \";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$classAttr = $classAttr . \"{$classes[$i]}\";\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t// If not, simply copy provided list\t\t\n\t\t\t} else {\n\t\t\t\t$classAttr = $value;\n\t\t\t}\t\n\t\t\t$imageTag = $imageTag . \"class='{$classAttr}'\";\n\t\t\t\n\t\t// User can provide other attributes to add to image tag\n\t\t} else {\n\t\t\t$imageTag = $imageTag . \"{$att}='{$value}' \";\n\t\t}\n\t}\n\n\t// Close image tag out and return\n\treturn $imageTag . '/>';\n\t\n\n}", "public function get_image_width()\n {\n }" ]
[ "0.7010816", "0.68044627", "0.67026645", "0.6579118", "0.6535089", "0.64611906", "0.6453078", "0.64360106", "0.63177097", "0.62910914", "0.620381", "0.6102126", "0.60774326", "0.6060576", "0.6011463", "0.59291303", "0.58970004", "0.5860443", "0.58568287", "0.5836072", "0.58359563", "0.5802856", "0.57743603", "0.57726884", "0.57615024", "0.5734411", "0.5731578", "0.57153493", "0.57042587", "0.5701787", "0.56964505", "0.56950736", "0.56743306", "0.56676525", "0.56498736", "0.56483406", "0.56431144", "0.56083757", "0.56039685", "0.55808336", "0.557541", "0.55567735", "0.554295", "0.5542301", "0.5536091", "0.5534629", "0.55323315", "0.5522862", "0.552267", "0.5501772", "0.54937226", "0.5493376", "0.5484467", "0.54671186", "0.5465421", "0.54643464", "0.54576963", "0.5448827", "0.5445914", "0.54427856", "0.5437862", "0.5434192", "0.5428754", "0.54089713", "0.5403603", "0.53987956", "0.53981274", "0.5393401", "0.5389337", "0.53864247", "0.5378505", "0.5373602", "0.53713405", "0.5363332", "0.5360622", "0.5354225", "0.5335324", "0.53339976", "0.53286856", "0.53235066", "0.53211844", "0.5319658", "0.53161377", "0.5316109", "0.5306965", "0.53028584", "0.52947295", "0.5289872", "0.5287194", "0.5285036", "0.52848977", "0.5282325", "0.52801746", "0.52788687", "0.52749133", "0.5258835", "0.52492756", "0.5245364", "0.52440095", "0.52436703" ]
0.7944958
0
///////////////////////////////////////////////////////////////////////////// M E T H O D S ///////////////////////////////////////////////////////////////////////////// Webconfig constructor.
public function __construct() { clearos_profile(__METHOD__, __LINE__); parent::__construct("webconfig-httpd"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\t//GSMS::$config =& get_config();\n\t\tGSMS::$class['system_log']->log('debug', \"Config Class Initialized\");\n\n\t\t// Set the base_url automatically if none was provided\n\t\tif (GSMS::$config['base_url'] == '')\n\t\t{\n\t\t\tif (isset($_SERVER['HTTP_HOST']))\n\t\t\t{\n\t\t\t\t$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';\n\t\t\t\t$base_url .= '://'. $_SERVER['HTTP_HOST'];\n\t\t\t\t$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\t$base_url = 'http://localhost/';\n\t\t\t}\n\t\t\tGSMS::$siteURL=$base_url;\n\t\t\t$this->set_item('base_url', $base_url);\n\t\t\t\n\t\t}\n\t}", "public function __construct()\n {\n parent::__construct();\n $this->config = config($this->configName);\n }", "public function __construct () {\n\t\tglobal $_CONSTANTS;\n\t\t$a=array(\"'\");\n\t\t$b=array(\"\");\n\t\tforeach (parse_ini_file(\"settings.ini\") as $key=>$value) { \n\t\t\t${$key} = $value;\n\t\t\tif ($key==\"host\") {\n\t\t\t\tdefine(HOST,'https://' . $value);\n\t\t\t} else { \t\t\t\n\t\t\t\tdefine(strtoupper($key),str_replace($a,$b,$value));\n\t\t\t}\n\t\t}\n\t\t\n\t\t$this->host=HOST;\n\t}", "public function __construct($config){\n\t\tif(!is_array($config)){\n\t\t\tthrow new \\InvalidArgumentException('Config must be provided as an array');\n\t\t}\n\n\t\t$this->rootPath\t= rtrim($config['root_path'], '/').'/';\n\n\t\tif(!isset($config['site'])){\n\t\t\tthrow new \\InvalidArgumentException('Config is missing `site`');\n\t\t}\n\t\t$fields\t= array(\n\t\t\t'url',\n\t\t\t'name'\n\t\t);\n\t\tforeach($fields as $field){\n\t\t\tif(!isset($config['site'][$field])){\n\t\t\t\tthrow new \\InvalidArgumentException('Config is missing site setting `'.$field.'`');\n\t\t\t}\n\t\t\t$this->{$field}\t= $config['site'][$field];\n\t\t}\n\n\t\tif(!isset($config['paths'])){\n\t\t\tthrow new \\InvalidArgumentException('Config is missing `paths`');\n\t\t}\n\n\t\t$this->paths\t= array(\n\t\t\t'www'\t\t\t=> 'web',\n\t\t\t'drafts-web'\t=> 'drafts-web',\n\t\t\t'pages'\t\t\t=> 'pages',\n\t\t\t'posts'\t\t\t=> 'posts',\n\t\t\t'drafts'\t\t=> 'drafts',\n\t\t\t'themes'\t\t=> 'themes',\n\t\t\t'plugins'\t\t=> 'plugins',\n\t\t\t'assets'\t\t=> 'assets',\n\t\t\t'cache'\t\t\t=> 'cache'\n\t\t);\n\t\tforeach($this->paths as $key => $configKey){\n\t\t\tif(!isset($config['paths'][$configKey])){\n\t\t\t\tthrow new \\InvalidArgumentException('Config is missing path `'.$configKey.'`');\n\t\t\t}\n\n\t\t\t$path\t= $config['paths'][$configKey];\n\n\t\t\tif($path[0] != '/'){\n\t\t\t\t$path\t= $this->getPathRoot($path);\n\t\t\t}\n\t\t\t$this->paths[$key]\t= rtrim($path, '/').'/';\n\t\t}\n\n\t\t$this->config\t= $config;\n\t}", "function __construct()\r\n\t{\r\n\t\trequire './configs/configs.php';\r\n\t}", "public function __construct()\n {\n $this->_config = request('_config');\n }", "public function __construct()\n {\n $this->config = config('ldap');\n }", "public function __construct(){\n\t\t\n\t\t$this->config = Zend_Registry::get('config');\n\n\t}", "public function __construct($config)\n {\n }", "private function __construct()\n {\n require __DIR__ . \"/../config.php\";\n $this->setting = $confSettings;\n $this->adminLinks = $admin_link_array;\n $this->memberLinks = $member_link_array;\n }", "public function __construct(array $config = array());", "public function __construct()\n {\n $this->tpl = new \\Phalcon\\Config($this->tpl);\n self::$instance = $this;\n }", "public function __construct()\n\t{\n\t\t// Set the prefix.\n\t\t$this->setting_prefix = Config::getInstance()->getFrameworkConfig('setting_prefix');\n\t}", "function __construct() {\n //invoke the init method of the config object in context\n $this->init();\n }", "public function __construct($webUrl)\n {\n $this->webUrl = $webUrl;\n }", "function __construct() {\n global $urlpatterns,$errorhandler;\n //Initialize config object\n $this->config=new Config();\n //Get all URLs Routes\n $this->routes=$this->config->urlpatterns;\n //Get all ErrorHandler\n $this->error_routes=$this->config->errorhandler;\n //Check for server error\n $this->server_error();\n //Route URLs\n $this->router($this->config->request_path, $this->routes);\n }", "public function __construct()\n {\n $this->_config = sspmod_janus_DiContainer::getInstance()->getConfig();\n }", "public function __construct()\n {\n $this->params['config'] = config('app');\n }", "public function __construct($config)\n {\n }", "public function __construct()\n {\n\t\t$this->ini_array = parse_ini_file(\"config.ini\", true);\n }", "private function __construct()\n {\n // Overwrite _config from config.ini\n if ($_config = \\Phalcon\\DI::getDefault()->getShared('config')->auth) {\n foreach ($_config as $key => $value) {\n $this->_config[$key] = $value;\n }\n }\n\n $this->_cookies = \\Phalcon\\DI::getDefault()->getShared('cookies');\n $this->_session = \\Phalcon\\DI::getDefault()->getShared('session');\n $this->_security = \\Phalcon\\DI::getDefault()->getShared('security');\n }", "private function __construct() {\n $this->config = array(\n // These will all need to be changed to point at your mysql server.\n \"Database\" => array(\n \"Host\" => \"localhost\",\n \"Name\" => \"daeman\",\n \"Username\" => \"daeman\",\n \"Password\" => \"<password>\",\n ),\n );\n }", "public function __construct($config = array())\n\t{\n\t\t$config += Kohana::config('furi')->as_array();\n\n\t\t// Save the config in the object\n\t\t$this->config = $config;\n\t}", "public function __construct($config){\n\n // Collect the config arguments in provided format\n if (empty($config) || !is_array($config)){\n $config = func_get_args();\n if (empty($config) || !is_array($config)){\n $config = array();\n }\n }\n\n // Collect any of the root config variables\n $this->root_dir = isset($config['root_dir']) ? $config['root_dir'] : (isset($config[0]) ? $config[0] : '/var/www/html/');\n $this->root_url = isset($config['root_url']) ? $config['root_url'] : (isset($config[1]) ? $config[1] : 'http://www.domain.com/');\n $this->cache_date = isset($config['cache_date']) ? $config['cache_date'] : (isset($config[2]) ? $config[2] : '20XX-YY-ZZ');\n $this->ga_accountid = isset($config['ga_accountid']) ? $config['ga_accountid'] : (isset($config[2]) ? $config[2] : 'UA-00000000-0');\n\n // Predefine default page variables\n $this->seo_title = 'LegacyWebsite.NET';\n $this->seo_keywords = '';\n $this->seo_description = '';\n $this->content_title = 'LegacyWebsite.NET';\n $this->content_description = '';\n $this->content_markup = '';\n $this->styles_markup = '';\n $this->scripts_markup = '';\n\n }", "public function __construct()\n {\n\n // $configuration = $this->get('configuration');\n\n\n }", "public function __construct()\r\n\t{\r\n\t\t$this->ci =& get_instance();\r\n\t\t\r\n\t\t$this->ci->load->config('config');\r\n\t\t$this->alias_config = $this->ci->config->item('alias_config');\r\n\t\t$this->upload_config = $this->ci->config->item('upload_config');\r\n\t}", "public function __construct() {\n\n $this->loadConfig();\n\n }", "protected function __construct()\n {\n // Define the constants\n define('VALIB_CONFIG', $this->loadConfig());\n }", "function __construct()\r\n {\r\n parent::__construct();\r\n $this->config = clsSysCommon::getDomainConfig();\r\n }", "abstract public function __construct( $config );", "function __construct() {\n\t\t$config = ROOT_DIR . 'config/site.ini';\n\t\tif (file_exists($config)) {\n\t\t\t$config = new Zend_Config_Ini($config, APP_DEPLOY);\n\t\t\t$theme_location = $config->site->theme ? $config->site->theme : 'themes/default';\n\t\t} else {\n\t\t\t$theme_location = 'themes/default';\n\t\t}\n\n\t\t$this->theme_location = $theme_location;\n\t}", "public function __construct() {\n\t\t$this->autoSetConfigurationFolder();\n\t}", "public static function config();", "public function __construct()\n\t{\n\t\tself::$classRouter\t= RecursiveRouter::class;\n\t\tself::$configFile\t= \"config/config.ini\";\n\t\t$this->detectSelf( FALSE );\n\t\t$this->uri\t= getCwd().'/';\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hack for console jobs\n\t\t$this->initClock();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup clock\n\t\t$this->initConfiguration();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup configuration\n\t\t$this->initModules();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup module support\n\t\t$this->initDatabase();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup database connection\n\t\t$this->initCache();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup cache support\n\t\t$this->initRequest();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup HTTP request handler\n\t\t$this->initResponse();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup HTTP response handler\n\t\t$this->initRouter();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup request router\n\t\t$this->initLanguage();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// [DO NOT] setup language support\n\t\t$this->initPage();\n\t\t$this->__onInit();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// call init event (implemented by extending classes)\n\t\tif( $this->getModules()->has( 'Resource_Database' ) )\n\t\t\t$this->dbc->query( 'SET NAMES \"utf8\"' );\t\t\t\t\t\t\t\t\t\t\t\t// ...\n\t}", "function __construct($settings = array()){\n\t\t$config = Configure::read('Bitly');\n\t\tif (empty($config)) {\n\t\t\t$config = array();\n\t\t}\n\n\t\t$this->_set($config);\n\t\t$this->_set($settings);\n\t}", "public function __construct()\n {\n if (file_exists('bm-config.php')) {\n require_once('bm-config.php');\n } else if (file_exists('../bm-config.php')) {\n require_once('../bm-config.php');\n } else {\n $settings = array();\n }\n\n $defaults = array(\n 'cookie_name' => 'bm',\n 'debug' => false,\n 'use_wp_login' => false,\n 'session_duration' => 43200,// 12 hours\n 'log_directory' => '.',\n 'log_level' => 4,\n );\n $this->settings = array_merge($defaults, $settings);\n }", "function __construct()\n {\n $arguments = func_num_args();\n\n if ($arguments != 1) {\n throw new InvalidConfigurationException(\"Invalid arguments. Use config array\");\n } else {\n $this->config = func_get_arg(0);\n\n if(!is_array($this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. Use config array\");\n\n if(!array_key_exists('login', $this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. The config array is missing the 'login' key\");\n\n if(!array_key_exists('password', $this->config))\n throw new InvalidConfigurationException(\"Invalid arguments. The config array is missing the 'password' key\");\n }\n }", "function __construct() {\n $this->config = array(\n $this::CHECKOUT => 'https://ws.pagseguro.uol.com.br/v2/checkout/',\n $this::PAYMENT => 'https://pagseguro.uol.com.br/v2/checkout/payment.html',\n $this::NOTIFICATION => 'https://ws.pagseguro.uol.com.br/v2/transactions/notifications/'\n );\n }", "public function __construct($config=array())\n\t{\n $this->setConfig($config);\n $this->init();\n\t}", "protected function configure()\n {\n // load config\n $config = new \\Phalcon\\Config(array(\n 'base_url' => '/',\n 'static_base_url' => '/',\n ));\n\n if (file_exists(APPPATH.'config/static.php')) {\n $static = include APPPATH.'config/static.php';\n $config->merge($static);\n }\n\n if (file_exists(APPPATH.'config/setup.php')) {\n $setup = include APPPATH.'config/setup.php';\n $config->merge($setup);\n }\n\n return $config;\n }", "function __construct() {\n $this->getSystemConfig();\n }", "public function __construct()\n {\n // since this class extends Mage_Core_Model_Config we have access to that classes protected properties\n $this->_xml = \\Mage::getConfig()->_xml;\n }", "public function __construct()\n {\n $config = ConfigHolder::getConfig();\n $context = array();\n if(!empty($config->proxy))\n {\n $context['http'] = array('proxy' => filter_var($config->proxy, FILTER_SANITIZE_STRING));\n }\n $default_context = stream_context_get_default ($context); \n libxml_set_streams_context($default_context); \n }", "public function __construct() {\n require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'Config'.DIRECTORY_SEPARATOR.'Main.php');\n }", "public function __construct($config=array())\n {\n $this->init($config);\n }", "public function __construct()\n {\n // returns the base portal URL as defined in conf file\n $this->baseUrl = \\Factory::getConfigService()->GetPortalURL();\n $this->baseApiUrl = \\Factory::getConfigService()->getServerBaseUrl();\n }", "protected function initializeConfiguration() {}", "function __construct() {\n parent::__construct();\n array_push($this->_config_paths, APPPATH.'custom/');\n }", "public function __construct(array $config){\n\t\t$this->config = $config;\n\t}", "public function __construct($arr = array())\r\n {\r\n parent::__construct($arr);\r\n $config =& get_config();\r\n $this->log_path=($config['log_path'] != '') ? $config['log_path'] : BASEPATH.'logs/'; \r\n }", "public function __construct() {\n\t\t$this->staticDomain = Config::get('app.static_url');\n\t}", "public function __construct()\n\t{\n\n\t\tparent::__construct();\n\n\t\t/** \n\t\t * Using the fields from baseSettings, assign a new entry\n\t\t * to each variable.\n\t\t *\n\t\t * @param Each array has the new setting plus a description of each entry\n\t\t */ \n\n\t\t$this->newSettings = array(\n\t \t'webRoot'\t\t=> \tarray($this->webRoot,\t'Specify the folder your websites will reside'),\n\t \t'hostsFile'\t\t=> \tarray($this->hostsFile,\t'Specify your hosts file location'),\n\t \t'vhostsFile'\t=> \tarray($this->vhostsFile,\t'Specify your vhosts.conf location'),\n\t \t'rootHttpd'\t\t=> \tarray($this->rootHttpd,\t'Where do you put your websites?')\n\t \t);\n\n\t\tvar_dump($this->newSettings);\n\n\t \t/** \n\t\t * Get a list of the variables in the scope before including the file\n\t\t *\n\t\t * @var stores current variables\n\t\t */\n\n\t\t$this->oldVar = get_defined_vars();\n\n\t\t/** \n\t\t * Include the config file and get it's values\n\t\t *\n\t\t * @var stores variables of current config (before update)\n\t\t */\n\n\n\t\tif (is_file($this->filePath))\n\t\t{\n\t\t require_once($this->filePath);\n\t\t header(\"settingsSaved: 1\");\n\t\t} else {\n\t\t\theader(\"settingsSaved: Error: unable to load config\");\n\t\t}\n\t\t/** \n\t\t * Get a list of the variables in the scope after including the file\n\t\t *\n\t\t * @var stores variables of current config (after update)\n\t\t */\n\n\t\t$this->newVar = get_defined_vars();\n\n\t\t/** \n\t\t * Find the difference - after this, $fileSettings \n\t\t * contains only the variables declared in the file\n\t\t *\n\t\t * @var stores contains new variables.\n\t\t */\n\n\t\t$this->fileSettings = array_diff($this->newVar, $this->oldVar);\n\n\t\t/** \n\t\t * Update $fileSettings with any new values \n\t\t *\n\t\t * @var string stores new variables.\n\t\t */\n\n\t\t// \n\t\t$this->fileSettings = array_merge($this->fileSettings, $this->newSettings);\n\n\t}", "public function __construct()\n {\n $this->config = array(\n 'host' => 'localhost',\n 'db' => 'uhp',\n 'username' => 'root',\n 'password' => '',\n 'charset' => 'utf8mb4'\n );\n }", "public function __construct() {\n $this->_configPassword = $this->parseConfig(2);\n $this->_configClass = $this->parseConfig(5);\n $this->_time = time();\n\t}", "public function __construct()\n\t{\n\t\tglobal $appconf;\n\t\t$this->appconf = $appconf;\n\t\tunset($appconf);\n\t}", "public function __construct($config){\n $this->_config = $config;\n }", "public function __construct(array $config) \n\t{\n\t\t$this->_setupConfig($config);\n\t}", "public function __construct() {\n $iniPath=\"/etc/lxd_sync.conf\";\n if(!file_exists($iniPath)) die(\"LXD-SYNC:[FATAL] Configuration File not Found : {$iniPath}\");\n $this->_CONFIG = parse_ini_file($iniPath, true);\n}", "private function _setWebConfig()\n {\n $this->map_obj->set(\"name\", \"simplemappr\");\n $this->map_obj->setFontSet($this->font_file);\n $this->map_obj->web->set(\"template\", \"template.html\");\n $this->map_obj->web->set(\"imagepath\", $this->tmp_path);\n $this->map_obj->web->set(\"imageurl\", $this->tmp_url);\n }", "public function __construct($config = array())\n {\n parent::__construct($config);\n }", "public function createConfig()\n\t{\n\t}", "public function __construct()\n\t{\n\t\t$this->system = new System;\n\n\t\t$config = $this->system->getFileContent( \"Config\\\\config.json\" );\n\t\t$config = json_decode( $config, True );\n\n\t\tforeach( $config as $key => $value ) {\n\t\t\t$this->$key = $value;\n\t\t}\n\n\t\tif( $_SERVER['SERVER_NAME'] == \"localhost\" ) {\n\t\t\t$server = \"http://\" . $_SERVER['SERVER_NAME'];\n\t\t} else {\n\t\t\t$server = $_SERVER['SERVER_NAME'];\n\t\t}\n\t\t$this->server = $server . \"/\" . $this->workspace;\n\t\t\n\t\t$this->address = $this->parseAddress( $_SERVER['REQUEST_URI'] );\n\t}", "public function __construct(){\n\t\t$this->url = YaffmapConfig::get('url').$this->path;\n\t}", "public function __construct(array $config = []) {\n\t\t$defaults = [\n\t\t\t'protocol' => null,\n\t\t\t'version' => '1.1',\n\t\t\t'scheme' => 'http',\n\t\t\t'headers' => []\n\t\t];\n\t\t$config += $defaults;\n\n\t\tforeach (array_intersect_key(array_filter($config), $defaults) as $key => $value) {\n\t\t\t$this->{$key} = $value;\n\t\t}\n\t\tparent::__construct($config);\n\n\t\tif (strpos($this->host, '/') !== false) {\n\t\t\tlist($this->host, $this->path) = explode('/', $this->host, 2);\n\t\t}\n\t\t$this->path = str_replace('//', '/', \"/{$this->path}\");\n\t\t$this->protocol = $this->protocol ?: \"HTTP/{$this->version}\";\n\t}", "public function init() {\n //TODO override and put config intialization code here\n }", "private function initialize() {\n $CI = get_instance();\n $CI->config->load('dwootemplate', TRUE);\n $config = $CI->config->item('dwootemplate');\n foreach ($config as $key => $val) {\n $this->$key = $val;\n }\n }", "public function __construct()\n {\n if (is_file($config = root('config', 'config.php'))) {\n $this->item = (array) require($config);\n }\n if (is_file($config = _DIR_ . _DS_ . 'config.php')) {\n $this->set((array) require($config));\n }\n if(getenv('ENV')){\n if(is_file($config_env = root('config', getenv('ENV').'.php'))){\n $this->set((array) require($config_env));\n }\n }\n if (!$this->item) {\n throw new \\ErrorException('Unable load config');\n }\n }", "public function __construct()\n {\n $this->config = include(dirname(__FILE__). '/../config/config.php');\n }", "function __construct() {\n $this->conf = new Conf();\n }", "protected function _initPhpConfig()\n {\n }", "public function __construct()\n {\n\n $calendarConfigurations = [\n [\n 'calendar_id' => 1,\n 'user_pid' => 118,\n ],\n ];\n\n // Base Configuration\n // load this in your composer configuration: sabre/dav ~3.1.0\n\n // .htaccess configuration\n // RewriteRule ^CalDav/ /index.php?eID=CalDav [L]\n\n // require_once(ExtensionManagementUtility::extPath('calendarize', 'Resources/External/vendor/autoload.php'));\n\n // check Cal Dav infrastructure\n $this->checkEnvironment();\n }", "public function __construct($config = array()) {\n $CI = & get_instance();\n $CI->load->helper('url');\n $this->initialize($config);\n }", "protected static function init() {\r\n\t\tif (self::$cfg == null)\r\n\t\t\tself::$cfg = new config(factory::loadCfg(__CLASS__));\r\n\t}", "public function __construct()\r\n {\r\n try\r\n {\r\n parent::__construct();\r\n $this->tbl \t= \t$this->db->SITESETTING; \r\n\t\t $this->tbl_lang \t= $this->db->LANGUAGE; \r\n $this->conf \t=\t&get_config();\r\n }\r\n catch(Exception $err_obj)\r\n {\r\n show_error($err_obj->getMessage());\r\n } \r\n }", "public function __construct() {\n $this->config();\n parent::__construct();\n }", "function __construct( $conf ) {\n\t\t$this->conf = $conf;\n\t}", "function __construct($config) {\n if (isset($config['defaults']) && is_array($config['defaults'])) {\n $this->default_settings = $config['defaults'];\n }\n $this->set_defaults();\n }", "public function __construct($config){\n\t\tparent::__construct($config);\n\n\t}", "public function __construct($config)\n {\n $this->_config = $config;\n }", "public function __construct()\n\t{\n\t\t$this->componentConfig = Container::getInstance('com_admintools')->params;\n\t}", "public function __construct($config=false,$name=false) \n {\n $this->config = new Config($config);\n if($name){\n $this->get($name);\n }\n }", "public function __construct($config)\n {\n $this->config = $config;\n }", "public function __construct($config)\n {\n $this->config = $config;\n }", "public function __construct($config)\n {\n $this->config = $config;\n }", "public function testPHPWebUnitConfig(){\n $this->assertEquals('phpunit', $this->phpwebunit['bin']);\n $this->assertEquals('SCRIPT_FILENAME', $this->phpwebunit['script_name']);\n\n //Ok, lets make sure that offsets are working\n $newphpwebunit = new kcmerrill\\tdd\\phpwebunit;\n $newphpwebunit['bin'] = 'kcwazhere';\n $this->assertEquals('kcwazhere', $newphpwebunit['bin']);\n\n //Ok, now lets move on to make sure that our constructor is rocking\n $newphpwebunit = new kcmerrill\\tdd\\phpwebunit('something', array('bin'=>'kcwazhereagain'));\n $this->assertEquals('kcwazhereagain', $newphpwebunit['bin']);\n }", "abstract protected function defineConfiguration();", "public function __construct($config) {\n\n\t\t$this->config = $config;\n\t}", "public function __construct(array $values = array())\n {\n\n parent::__construct($values);\n\n// $this['dispatcher']->addSubscriber(new CorsListener());\n\n if ($this->getEnv() == self::ENV_DEVELOP || $this->getEnv() == self::ENV_TESTING) {\n $this['debug'] = true;\n }\n\n $this['config'] = new \\Zend\\Config\\Config(require_once $this['path'] . '/config.php');\n\n $this->getEm();\n\n// if (file_exists(__DIR__ . '.cache')) {\n// self::$cache = StorageFactory::factory(self::config('cache_helper'));\n// }\n }", "public function __construct($config = null)\r\n\t{\r\n\t\t$this->_db\t\t= Zend_Registry::get('db');\r\n\t\t\r\n\t\tif( $config == null ) {\r\n\t\t\t$this->_config\t= new Zend_Config_Ini('config/crons/' . $this->_shortName . '.ini', $_SERVER['ENVIRONMENT']);\r\n\t\t} else {\r\n\t\t\t$this->_config = $config; \r\n\t\t}\r\n\t}", "public function __construct($config)\r\n {\r\n $this->init($config);\r\n }", "protected function __construct() {\n \t// Set the configuration file\n \t$this->setConfigFile(APPLICATIONPATH.'/configurations/config.ini');\n \t// Load the configuration\n \t// into the system\n \t$this->readConfig();\n // Setup the database\n // $this->setDatabase();\n // Setup our caching system\n // $this->setCache();\n \t// Return instance\n \treturn $this;\n }", "function __construct() {\n\t\t\n\t\tparent::__construct(array('Waccess'), 8);\n\t\t\n\t}", "public function __construct( $config_instance ){\n \n\t$config_instance->host = (array) $config_instance->host;\n\t\n foreach($config_instance->host as $host)\n\t $this->addServer($host, $this->port);\n\t\n\t/**\n\t * EN: If you need compression Threshold, you can uncomment this\n\t */\n\t//$this->setCompressThreshold(20000, 0.2);\n }", "function __construct()\n\t{\n\t $this->loadConfig();\n\t\t$this ->conectar();\n\t}", "public function __construct() {\n $this->configs = new ArrayCollection();\n }", "function __construct() {\r\n\t\t$this->ini = eZINI::instance(\"bfeztag_metadata.ini\");\r\n\t}", "public function __construct( Config $config )\n {\n\n parent::__construct( '/', $config );\n $this->_autoIdentify = true;\n\n }", "public function __construct($config) {\n $this->config = $config;\n }", "public function __construct($config = array()) {\n\t\t$defaults = array();\n\t\tparent::__construct($config + $defaults);\n\t}", "public function __construct()\n {\n // get global configuration\n $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['roadworks']);\n if (is_array($extConf) && count($extConf)) {\n // call setter method foreach configuration entry\n foreach($extConf as $key => $value) {\n $methodName = 'set' . ucfirst($key);\n if (method_exists($this, $methodName)) {\n $this->$methodName($value);\n }\n }\n }\n }" ]
[ "0.64229685", "0.6329215", "0.6133582", "0.59689295", "0.5960309", "0.59183156", "0.59171414", "0.5903676", "0.5898844", "0.58840847", "0.58478606", "0.58466303", "0.58271456", "0.5816651", "0.57829106", "0.57820266", "0.57694894", "0.5761176", "0.5722317", "0.5721398", "0.57086486", "0.5701449", "0.569579", "0.5688567", "0.56495744", "0.56441104", "0.56241715", "0.5618994", "0.56123936", "0.5606175", "0.56060463", "0.5604381", "0.56005037", "0.5587694", "0.55823696", "0.5576521", "0.5573641", "0.55649424", "0.55608773", "0.55542314", "0.5553505", "0.5541852", "0.55415875", "0.5541491", "0.55287105", "0.55280256", "0.55146784", "0.55040365", "0.5497703", "0.54909295", "0.54890805", "0.54876745", "0.54826087", "0.54813826", "0.5474957", "0.54618305", "0.54536635", "0.5452704", "0.54443085", "0.54441345", "0.54427993", "0.54391235", "0.5437693", "0.54338646", "0.5433435", "0.5430888", "0.5429299", "0.5429076", "0.5422603", "0.5421314", "0.54047567", "0.5402937", "0.5398369", "0.53970426", "0.53964734", "0.53955597", "0.5387708", "0.538735", "0.5382889", "0.5375875", "0.5372365", "0.53602195", "0.53602195", "0.53602195", "0.5357804", "0.53555", "0.53532755", "0.5352098", "0.5351439", "0.53507096", "0.53486913", "0.5333376", "0.5328308", "0.53214806", "0.5314054", "0.53127277", "0.53080535", "0.530367", "0.5301265", "0.5294727" ]
0.66646796
0
Returns the list of available themes for webconfig.
public function get_themes() { clearos_profile(__METHOD__, __LINE__); $folder = new Folder(self::PATH_THEMES); $theme_list = array(); $folder_list = $folder->get_listing(); foreach ($folder_list as $theme) { $file = new File(self::PATH_THEMES . '/' . $theme . '/info/info'); if (!$file->exists()) continue; // FIXME info/info -> deploy/info.php include self::PATH_THEMES . '/' . $theme . '/info/info'; $theme_list[$theme] = $package; } // TODO: Sort by name, but key by theme directory return $theme_list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getThemes(){\r\n return array('theme1'=>\"Theme 1\", \r\n\t\t\t'theme2'=>\"Theme 2\", \r\n\t\t\t'theme3'=>\"Theme 3\" \r\n\t\t\t);\r\n }", "public function get_available_themes() {\n\t\treturn apply_filters( 'crocoblock-wizard/install-theme/available-themes', array(\n\t\t\t'kava' => array(\n\t\t\t\t'source' => 'crocoblock',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/kava.png',\n\t\t\t),\n\t\t\t'blocksy' => array(\n\t\t\t\t'source' => 'wordpress',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/blocksy.png',\n\t\t\t),\n\t\t\t'oceanwp' => array(\n\t\t\t\t'source' => 'wordpress',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/ocean.png',\n\t\t\t),\n\t\t\t'astra' => array(\n\t\t\t\t'source' => 'wordpress',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/astra.png',\n\t\t\t),\n\t\t\t'generatepress' => array(\n\t\t\t\t'source' => 'wordpress',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/generatepress.png',\n\t\t\t),\n\t\t\t'hello-elementor' => array(\n\t\t\t\t'source' => 'wordpress',\n\t\t\t\t'logo' => CB_WIZARD_URL . 'assets/img/hello.png',\n\t\t\t),\n\t\t) );\n\t}", "public function themes()\n {\n return R::findAll('theme', 'order by name');\n }", "public function getAvailableThemes()\n\t{\n\t\t$this->loadAvailableThemes();\n\t\treturn self::$_themes;\n\t}", "public function getAllThemes();", "public function themes(){\r\n\t\t\r\n\t\treturn $this->module_themes();\r\n\t}", "function getThemes() {\n\n\t$themesPath = '../../content/themes';\n\n\t$list = scandir($themesPath);\n\t$baseUrl = \\Raindrop\\Core\\Config\\Config::item('baseUrl');\n\t$themes = [];\n\n\tif(!empty($list)) {\n\t\tunset($list[0]);\n\t\tunset($list[1]);\n\n\t\tforeach($list as $dir) {\n\t\t\t$pathThemeDir = $themesPath . '/' . $dir;\n\t\t\t$pathConfig = $pathThemeDir . '/theme.json';\n\t\t\t$pathScreen = $baseUrl . '/content/themes/' . $dir . '/screen.jpg';\n\n\t\t\tif(is_dir($pathThemeDir) and is_file($pathConfig)) {\n\t\t\t\t$config = file_get_contents($pathConfig);\n\t\t\t\t$info = json_decode($config);\n\n\t\t\t\t$info->screen = $pathScreen;\n\t\t\t\t$info->dirTheme = $dir;\n\n\t\t\t\t$themes[] = $info;\n\t\t\t}\n\t\t}\n\n\t}\n\treturn $themes;\n}", "function get_site_allowed_themes()\n {\n }", "public function getThemes() {\r\n\t$themes = array();\r\n $themelist = array_merge((array)glob('modules/' . $this->name . '/themes/*', GLOB_ONLYDIR), glob(PROFILE_PATH . $this->name . '/themes/*', GLOB_ONLYDIR));\r\n\tforeach ($themelist as $filename) {\r\n\t $themeName = basename($filename);\r\n\t $themes[$themeName] = $themeName;\r\n\t}\r\n\treturn $themes;\r\n }", "private function themes()\n {\n $all_plugins = json_decode(file_get_contents($this->pluginsJson))->themes;\n return $all_plugins;\n }", "public function getThemes()\n {\n return $this->themes;\n }", "function get_allowed_themes()\n {\n }", "public static function getThemes() {\r\n\t\t$themes = array();\r\n\r\n\t\t// Special files to ignore\r\n\t\t$ignore = array('admin.css');\r\n\r\n\t\t// Get themes corresponding to .css files.\r\n\t\t$dir = dirname(__FILE__) . '/css';\r\n\t\tif ($handle = opendir($dir)) {\r\n\t\t while (false !== ($entry = readdir($handle))) {\r\n\t\t\t if (in_array($entry, $ignore)) {\r\n\t\t\t\t continue;\r\n\t\t\t }\r\n\r\n\t\t\t $file = $dir . '/' . $entry;\r\n\t\t\t if (!is_file($file)) {\r\n\t\t\t\t continue;\r\n\t\t\t }\r\n\r\n\t\t\t // Beautify name\r\n\t\t\t $name = substr($entry, 0, -4); // Remove \".css\"\r\n\t\t\t $name = str_replace('--', ', ', $name);\r\n\t\t\t $name = str_replace('-', ' ', $name);\r\n\t\t\t\t$name = ucwords($name);\r\n\r\n\t\t\t // Add theme\r\n\t $themes[$entry] = $name;\r\n\t\t }\r\n\t\t closedir($handle);\r\n\t\t}\r\n\r\n\t\t$themes['none'] = 'None';\r\n\r\n\t\t// Sort alphabetically\r\n\t\tasort($themes);\r\n\r\n\t\treturn $themes;\r\n\t}", "function get_themes()\n {\n }", "function get_themes()\n\t{\n\t\t$handle = opendir($this->e107->e107_dirs['THEMES_DIRECTORY']);\n\t\t$themelist = array();\n\t\twhile ($file = readdir($handle))\n\t\t{\n\t\t\tif (is_dir($this->e107->e107_dirs['THEMES_DIRECTORY'].$file) && $file !='_blank')\n\t\t\t{\n\t\t\t\tif(is_readable(\"./{$this->e107->e107_dirs['THEMES_DIRECTORY']}{$file}/theme.xml\"))\n\t\t\t\t{\n\t\t\t\t\t$themelist[] = $file;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tclosedir($handle);\n\t\treturn $themelist;\n\t}", "public function get_themes_list()\n {\n $baseUrl = 'http://prismjs.com/index.html?theme=';\n\n return [\n 1 => ['name' => 'Default', 'url' => $baseUrl . 'prism', 'file' => 'prism'],\n 2 => ['name' => 'Coy', 'url' => $baseUrl . 'prism-coy', 'file' => 'prism-coy'],\n 3 => ['name' => 'Dark', 'url' => $baseUrl . 'prism-dark', 'file' => 'prism-dark'],\n 4 => ['name' => 'Okaidia', 'url' => $baseUrl . 'prism-okaidia', 'file' => 'prism-okaidia'],\n 5 => ['name' => 'Tomorrow', 'url' => $baseUrl . 'prism-tomorrow', 'file' => 'prism-tomorrow'],\n 6 => ['name' => 'Twilight', 'url' => $baseUrl . 'prism-twilight', 'file' => 'prism-twilight'],\n ];\n }", "public function getThemes() {\n if ($this->themes !== null) {\n return $this->themes;\n }\n\n $this->themes = parent::getThemes();\n\n $themes = $this->config->get('theme');\n if (!is_array($themes)) {\n return $this->themes;\n }\n\n foreach ($themes as $name => $theme) {\n if (isset($theme['name'])) {\n $displayName = $theme['name'];\n } else {\n $displayName = $name;\n }\n\n if (isset($theme['engine'])) {\n if (is_array($theme['engine'])) {\n $engines = $theme['engine'];\n } else {\n $engines = array($theme['engine']);\n }\n } else {\n $engines = array();\n }\n\n if (isset($theme['region'])) {\n $regions = $theme['region'];\n } else {\n $regions = array();\n }\n\n if (isset($theme['parent'])) {\n $parent = $theme['parent'];\n } else {\n $parent = null;\n }\n\n $this->themes[$name] = new GenericTheme($name, $displayName, $engines, $regions, $parent);\n }\n\n return $this->themes;\n }", "function get_all_themes() {\r\n\t$themesPath = config(\"themes_dir\");\r\n\t$handle = opendir($themesPath);\r\n\t$themes = array();\r\n\twhile($folder = readdir($handle)) {\r\n\t\tif(substr($folder, 0, 1) != '.' and !preg_match(\"#\\.#\", $folder)) {\r\n\t\t\t$themes[$folder] = array();\r\n\t\t\t$theThemePath = $themesPath.$folder.'/';\r\n\t\t\t$themes[$folder]['info'] = include $theThemePath.'info.php';\r\n\t\t\t$themes[$folder]['preview'] = url(config('themes_folder').'/'.$folder.'/preview.png');\r\n\t\t}\r\n\t}\r\n\r\n\treturn $themes;\r\n}", "public static function themes()\n {\n return Theme::all()->where('sttema', '=', 'apr')->toArray();\n }", "public static function getAllThemes()\n {\n $themes = [];\n\n foreach (scandir(self::$themeRoot) as $dir) {\n if (self::isTheme($dir)){\n $themeConfig = self::$themeRoot . $dir . '/theme.json';\n $json = file_get_contents($themeConfig);\n $decoded = json_decode($json, true);\n\n $themes[] = $decoded['name'];\n }\n\n }\n\n return $themes;\n }", "public function retrieveThemes()\n {\n return $this->start()->uri(\"/api/theme\")\n ->get()\n ->go();\n }", "function thrive_dashboard_get_all_themes()\n{\n $themes = thrive_dashboard_get_thrive_products('theme');\n $current_theme = wp_get_theme();\n\n foreach ($themes as $key => $theme) {\n\n if ($current_theme->name == $theme->name) {\n unset($themes[$key]);\n continue;\n }\n\n $local_theme = wp_get_theme($theme->tag);\n if ($local_theme->exists()) {\n $theme->installed = true;\n } else {\n $theme->installed = false;\n }\n }\n\n return $themes;\n}", "public function all()\r\n {\r\n return $this->themes;\r\n }", "public static function get_themes() {\n\t\t$themes = get_transient( self::THEMES_TRANSIENT );\n\t\tif ( false === $themes ) {\n\t\t\t$theme_data = wp_remote_get( 'https://woocommerce.com/wp-json/wccom-extensions/1.0/search?category=themes' );\n\t\t\t$themes = array();\n\n\t\t\tif ( ! is_wp_error( $theme_data ) ) {\n\t\t\t\t$theme_data = json_decode( $theme_data['body'] );\n\t\t\t\t$woo_themes = property_exists( $theme_data, 'products' ) ? $theme_data->products : array();\n\t\t\t\t$sorted_themes = self::sort_woocommerce_themes( $woo_themes );\n\n\t\t\t\tforeach ( $sorted_themes as $theme ) {\n\t\t\t\t\t$slug = sanitize_title_with_dashes( $theme->slug );\n\t\t\t\t\t$themes[ $slug ] = (array) $theme;\n\t\t\t\t\t$themes[ $slug ]['is_installed'] = false;\n\t\t\t\t\t$themes[ $slug ]['has_woocommerce_support'] = true;\n\t\t\t\t\t$themes[ $slug ]['slug'] = $slug;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$installed_themes = wp_get_themes();\n\t\t\t$active_theme = get_option( 'stylesheet' );\n\n\t\t\tforeach ( $installed_themes as $slug => $theme ) {\n\t\t\t\t$theme_data = self::get_theme_data( $theme );\n\t\t\t\t$installed_themes = wp_get_themes();\n\t\t\t\t$themes[ $slug ] = $theme_data;\n\t\t\t}\n\n\t\t\t// Add the WooCommerce support tag for default themes that don't explicitly declare support.\n\t\t\tif ( function_exists( 'wc_is_wp_default_theme_active' ) && wc_is_wp_default_theme_active() ) {\n\t\t\t\t$themes[ $active_theme ]['has_woocommerce_support'] = true;\n\t\t\t}\n\n\t\t\t$themes = array( $active_theme => $themes[ $active_theme ] ) + $themes;\n\n\t\t\tset_transient( self::THEMES_TRANSIENT, $themes, DAY_IN_SECONDS );\n\t\t}\n\n\t\t$themes = apply_filters( 'woocommerce_admin_onboarding_themes', $themes );\n\t\treturn array_values( $themes );\n\t}", "private function getThemes() {\n $path = sprintf('%s/../../%s/%s/', __DIR__, PUBLIC_PATH, THEME_PATH);\n\n $themes = scandir($path);\n\n $output = [];\n foreach($themes as $theme) {\n // Check if the theme has an info.php file a && file_exists($path.$theme.'/icon.png)nd a thumbnail\n if(file_exists($path.$theme.'/info.php') && file_exists($path.$theme.'/icon.png')) {\n // Store the theme information\n require($path.$theme.'/info.php');\n $output[$theme]['name'] = $name;\n $output[$theme]['author'] = $author;\n $output[$theme]['url'] = $url;\n $output[$theme]['version'] = $version;\n $output[$theme]['path'] = $theme;\n }\n }\n\n return $output;\n }", "function getThemes(){\n\t$result = array();\n\t\n\t$handle = @opendir(ROOT_PATH . 'themes');\n\t\n\twhile (false !== ($f = readdir($handle))){\n\t\tif ($f != \".\" && $f != \"..\" && $f != \"CVS\" && $f != \"index.html\" && !preg_match(\"`[.]`\", $f)){\n\t\t\tif( is_file(ROOT_PATH . 'themes' . DS . $f . DS . 'layout.tpl') ){\n\t\t\t\t$result[] = $f;\n\t\t\t}\n }\n\t}\n closedir($handle);\n\n return $result;\n}", "function website_themes() {\n\n\t$websites = get_website_data();\n\n\t$themes = array();\n\n\tforeach ( $websites as $site ) {\n\t\t$themes[] = $site[ 'theme' ];\n\t}\n\n\treturn array_unique( $themes );\n\n}", "public function get_themes() {\n\t\t$recaptcha_themes = array(\n\t\t\t'light' => _x( 'Light', 'recaptcha theme', 'theme-my-login' ),\n\t\t\t'dark' => _x( 'Dark', 'recaptcha theme', 'theme-my-login' )\n\t\t);\n\t\treturn apply_filters( 'theme_my_login_recaptcha_themes', $recaptcha_themes );\n\t}", "function okcdesign_theme() {\n $themes = array();\n theme_plugins_invoke(__FUNCTION__, $themes);\n return $themes;\n}", "public static function getThemes()\n {\n $themes = array();\n $themesdir = opendir('modules/Scribite/plugins/TinyMCE/vendor/tiny_mce/themes');\n while (false !== ($f = readdir($themesdir))) {\n if ($f != '.' && $f != '..' && $f != 'CVS' && !preg_match('/[.]/', $f)) {\n $themes[] = array(\n 'text' => $f,\n 'value' => $f\n );\n }\n }\n\n closedir($themesdir);\n // sort array\n asort($themes);\n\n return $themes;\n }", "public static function getAllAdminThemes()\n {\n /**\n * Create an array of themes, with the directory paths\n * theme.ini files and images paths if they are present\n */\n $themes = array();\n $iterator = new VersionedDirectoryIterator(ADMIN_THEME_DIR);\n $themeDirs = $iterator->getValid();\n foreach ($themeDirs as $themeName) {\n $theme = self::getTheme($themeName);\n $theme->path = ADMIN_THEME_DIR . '/' . $themeName;\n $theme->setImage(self::THEME_IMAGE_FILE_NAME);\n $theme->setIni(self::THEME_INI_FILE_NAME);\n $theme->setConfig(self::THEME_CONFIG_FILE_NAME);\n $themes[$themeName] = $theme;\n }\n ksort($themes);\n return $themes;\n }", "static public function getThemeResourceTypes()\n\t\t{\n\t\t\treturn array('css');\n\t\t}", "function wp_get_active_and_valid_themes()\n {\n }", "public function getTheme();", "private function getStylesheets() {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes = $theme_handler->listInfo();\n $names = $themes[$name]->info['name'];\n $path = DRUPAL_ROOT . '/' . $theme\n ->getPath();\n $stylesheete = $path . '/css/' . $name . '.' . 'ckeditor.css';\n $default_stylesheet = drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/samples/assets/sample.css';\n\n if (file_exists($stylesheete)) {\n $stylesheet_options = [$stylesheete => $names];\n } elseif (!file_exists($stylesheete)) {\n $stylesheet_options = [$default_stylesheet => $names];\n }\n return $stylesheet_options ;\n }\n }", "public function get_meta_themes() {\n\t\tSingleton::get_instance( 'Theme', $this )->get_remote_theme_meta();\n\t}", "function scs_get_themes()\n\t {\n\t \tglobal $scs_themes;\n\t\t$scs_themes = array();\n\t\t\n\t \t$dir = dirname(__FILE__).'/'.SCS_THEMES_DIR.'/';\n\t\tif ($handle = opendir($dir)) {\n\t\t\twhile (false !== ($file = readdir($handle))) {\n\t\t\t\tif ($file != \".\" && $file != \"..\" && !is_file($file) && file_exists($dir.$file.'/index.php') ) {\n\t\t\t\t\t$scs_themes[] = ucfirst($file);\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($handle);\n\t\t}\n\t\t\n\t\treturn true;\n\t\t\n\t }", "static public function getThemeResourceTypes();", "public static function get_allowed_themes() {\n\t\t$allowed_themes = array();\n\t\t$themes = self::get_themes();\n\n\t\tforeach ( $themes as $theme ) {\n\t\t\t$price = preg_replace( '/&#?[a-z0-9]+;/i', '', $theme['price'] );\n\n\t\t\tif ( $theme['is_installed'] || '0.00' === $price ) {\n\t\t\t\t$allowed_themes[] = $theme['slug'];\n\t\t\t}\n\t\t}\n\n\t\treturn apply_filters( 'woocommerce_admin_onboarding_themes_whitelist', $allowed_themes );\n\t}", "public static function getInstalledThemesNames()\n\t\t{\n\t\t\treturn self::$installedThemesNames;\n\t\t}", "public function getThemes($context)\n {\n $themeController = new ThemeController();\n $themes = $themeController->getAllThemes();\n $context->local()->addval('themes', $themes); \n $context->local()->addval('topicChoices', $context->user()->userChoices()); \n if ($context->hasStudent())\n {\n return 'studentViews/themes.twig';\n }\n if ($context->hasML())\n {\n return 'moduleLeaderViews/themes.twig';\n }\n if ($context->hasTL())\n {\n return 'themeLeaderViews/themes.twig';\n }\n if ($context->hasSupervisor())\n {\n return 'supervisorViews/themes.twig';\n }\n return 'error/403.twig';\n }", "public function get_gallery_themes() {\n\n $instance = Envira_Gallery_Common::get_instance();\n return $instance->get_gallery_themes();\n\n }", "public static function getThemesForSelect()\n {\n if (!self::$_initialized) {\n self::init();\n }\n\n $results = [];\n foreach (self::$_themes as $theme) {\n $results[$theme->id()] = $theme->name();\n }\n\n return $results;\n }", "public function get_lightbox_themes() {\n\n $instance = Envira_Gallery_Common::get_instance();\n return $instance->get_lightbox_themes();\n\n }", "protected function parseThemes()\n {\n foreach ($this->themesDirs as $dir) {\n $absDir = $this->fileLocator->locate($dir);\n $finder = Finder::create()->files()->in($absDir)->name('*.css');\n foreach ($finder as $file) {\n $this->addTheme($file->getBasename('.css'), $file->getPathname());\n }\n }\n #save to cache if env prod\n if ($this->env == 'prod') {\n $this->cacheDriver->save(static::CACHE_THEMES_NAME, $this->getThemes());\n }\n }", "function _wprp_get_themes() {\n\n\trequire_once( ABSPATH . '/wp-admin/includes/theme.php' );\n\n\t_wpr_add_non_extend_theme_support_filter();\n\n\t// Get all themes\n\tif ( function_exists( 'wp_get_themes' ) )\n\t\t$themes = wp_get_themes();\n\telse\n\t\t$themes = get_themes();\n\n\t// Get the active theme\n\t$active = get_option( 'current_theme' );\n\n\t// Delete the transient so wp_update_themes can get fresh data\n\tif ( function_exists( 'get_site_transient' ) )\n\t\tdelete_site_transient( 'update_themes' );\n\n\telse\n\t\tdelete_transient( 'update_themes' );\n\n\t// Force a theme update check\n\twp_update_themes();\n\n\t// Different versions of wp store the updates in different places\n\t// TODO can we depreciate\n\tif ( function_exists( 'get_site_transient' ) && $transient = get_site_transient( 'update_themes' ) )\n\t\t$current = $transient;\n\n\telseif ( $transient = get_transient( 'update_themes' ) )\n\t\t$current = $transient;\n\n\telse\n\t\t$current = get_option( 'update_themes' );\n\n\tforeach ( (array) $themes as $key => $theme ) {\n\n\t\t// WordPress 3.4+\n\t\tif ( is_object( $theme ) && is_a( $theme, 'WP_Theme' ) ) {\n\n\t\t\t$new_version = isset( $current->response[$theme['Template']] ) ? $current->response[$theme['Template']]['new_version'] : null;\n\n\t\t\t$theme_array = array(\n\t\t\t\t'Name' => $theme->get( 'Name' ),\n\t\t\t\t'active' => $active == $theme->get( 'Name' ),\n\t\t\t\t'Template' => $theme->get_template(),\n\t\t\t\t'Stylesheet' => $theme->get_stylesheet(),\n\t\t\t\t'Screenshot' => $theme->get_screenshot(),\n\t\t\t\t'AuthorURI' => $theme->get( 'AuthorURI' ),\n\t\t\t\t'Author' => $theme->get( 'Author' ),\n\t\t\t\t'latest_version' => $new_version ? $new_version : $theme->get( 'Version' ),\n\t\t\t\t'Version' => $theme->get( 'Version' ),\n\t\t\t\t'ThemeURI' => $theme->get( 'ThemeURI' )\n\t\t\t);\n\n\t\t\t$themes[$key] = $theme_array;\n\n\t\t} else {\n\n\t\t\t$new_version = isset( $current->response[$theme['Template']] ) ? $current->response[$theme['Template']]['new_version'] : null;\n\n\t\t\tif ( $active == $theme['Name'] )\n\t\t\t\t$themes[$key]['active'] = true;\n\n\t\t\telse\n\t\t\t\t$themes[$key]['active'] = false;\n\n\t\t\tif ( $new_version ) {\n\n\t\t\t\t$themes[$key]['latest_version'] = $new_version;\n\t\t\t\t$themes[$key]['latest_package'] = $current->response[$theme['Template']]['package'];\n\n\t\t\t} else {\n\n\t\t\t\t$themes[$key]['latest_version'] = $theme['Version'];\n\n\t\t\t}\n\t\t}\n\t}\n\n\treturn $themes;\n}", "function return_back_std_themes_settings() {\r\n\r\n\t$get_all_themes = wp_get_themes();\r\n\r\n\t$root_plugin_path = get_theme_root();\r\n\t$root_plugin_path = str_replace( 'plugins/yoga-poses/templates/', '', $root_plugin_path );\r\n\t$root_plugin_path .= 'themes/';\r\n\r\n\tregister_theme_directory( $root_plugin_path );\r\n\r\n\t// activate first theme in list\r\n\tforeach ( $get_all_themes as $key => $one_theme ) {\r\n\t\tswitch_theme( $key );\r\n\t\tbreak;\r\n\t}\r\n\r\n\treturn $root_plugin_path;\r\n}", "public function theme_locations() {\n return $this->_theme_locations;\n }", "public static function get_theme_options() {\n\t\t\treturn get_option( 'theme_options' );\n\t\t}", "private function getEnabledThemes(){\n $enabledThemes = explode(\",\", GetConfig('GiftCertificateThemes'));\n $enabledThemesTmp = array();\n foreach($enabledThemes as $itemstmp){\n if(preg_match(\"/^CGC/\",$itemstmp)){\n continue;\n }\n $enabledThemesTmp[] = $itemstmp;\n }\n $enabledThemes = $enabledThemesTmp;\n return $enabledThemes;\n }", "public static function get_theme_options() {\n\t\t\treturn get_option( 'ELMT_theme_options' );\n\t\t}", "public static function GetDefaultThemeInformation()\n\t{\n\t\treturn array(\n\t\t\t'name' => 'light-grey',\n\t\t\t'parameters' => array(\n\t\t\t\t'variables' => array(),\n\t\t\t\t'imports' => array(\n\t\t\t\t\t'css-variables' => '../css/css-variables.scss',\n\t\t\t\t),\n\t\t\t\t'stylesheets' => array(\n\t\t\t\t\t'jqueryui' => '../css/ui-lightness/jqueryui.scss',\n\t\t\t\t\t'main' => '../css/light-grey.scss',\n\t\t\t\t),\n\t\t\t),\n\t\t);\n\t}", "private function getStylesheet() {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes = [];\n $stylesheet_options = [];\n $theme_handler = Drupal::service('theme_handler');\n foreach ($theme_handler->listInfo() as $name => $theme) {\n $themes[$name] = DRUPAL_ROOT . '/' . $theme\n ->getPath();\n if (file_exists($themes[$name])) {\n $stylesheet = $themes[$name] . '/css/' . $name . '.' . 'ckeditor.css';\n }\n else {\n $stylesheet = drupal_get_path('module', 'ckeditor_stylesheetparser') . '/js/plugins/stylesheetparser/samples/assets/sample.css';\n }\n }\n $stylesheet_options = $stylesheet;\n return $stylesheet_options;\n }\n }", "public function get_themes()\n\t{\n\t\t// load the helper file\n\t\t$this->load->helper('file');\n\n\t\t// get the list of 'folders' which\n\t\t// just means we're getting a potential\n\t\t// list of new themes that's been installed\n\t\t// since we last looked at themes\n\t\t$folders = get_dir_file_info(APPPATH . 'themes/');\n\n\t\t// foreach of those folders, we're loading the class\n\t\t// from the theme_details.php file, then we pass it\n\t\t// off to the save_theme() function to deal with \n\t\t// duplicates and insert newly added themes.\n\t\tforeach ($folders as &$folder)\n\t\t{\n\t\t\t// spawn that theme class...\n\t\t\t$details = $this->spawn_class($folder['relative_path'], $folder['name']);\n\n\t\t\t// if spawn_class was a success\n\t\t\t// we'll see if it needs saving\n\t\t\tif ($details)\n\t\t\t{\n\t\t\t\t// because this pwnd me for 30 minutes\n\t\t\t\t$details->path = $folder['name'];\n\t\t\t\n\t\t\t\t// save it...\n\t\t\t\t$this->save_theme($details);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t// now that we've updated everything, let's\n\t\t// give the end user something to look at.\n\t\treturn $this->db->get($this->_table['templates'])->result();\n\t}", "function get_mobile_themes()\r\n\t {\r\n\t\tif(!function_exists('get_themes'))\r\n\t\t\treturn null;\r\n\r\n\t\treturn $wp_themes = get_themes();\r\n\r\n\t\t/*foreach($wp_themes as $name=>$theme) {\r\n\t\t\t$stylish_dir = $wp_themes[$name]['Stylesheet Dir'];\r\n\r\n\t\t\tif(is_file($stylish_dir.'/style.css')) {\r\n\t\t\t\t$theme_data = get_theme_data($stylish_dir.'/style.css');\r\n\t\t\t\t$tags = $theme_data['Tags'];\r\n\r\n\t\t\t\tforeach($tags as $tag) {\r\n\t\t\t\t\tif(eregi('Mobile Theme', $tag) || eregi('WPtap', $tag)) {\r\n\t\t\t\t\t\t$wptap_mobile_themes[$name] = $theme;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn $wptap_mobile_themes;*/\r\n\t }", "public static function getTheme ()\n {\n $config = Zend_Registry::get('config');\n\n return $config->app->theme;\n }", "public function provides()\n {\n return array('themes');\n }", "public function provides()\n {\n return array('themes');\n }", "public function providesTheme(): Collection\n {\n return $this->enabled()\n ->filter(function (Extension $e) {\n return $e->providesTheme();\n });\n }", "public static function all(): array\n {\n $it = new DirectoryIterator(plugins_path('/summer/login/skins'));\n $it->rewind();\n $result = [];\n foreach ($it as $fileinfo) {\n if (!$fileinfo->isDir() || $fileinfo->isDot()) {\n continue;\n }\n $theme = static::load($fileinfo->getFilename());\n $result[] = $theme;\n }\n return $result;\n }", "public function getThemeLayouts();", "public static function getTheme()\n {\n $config = parse_ini_file(self::$configuration, false);\n return $config['theme'];\n }", "public static function getThemeTags() {\n\t\t\t$theme_tags = get_transient( 'if_child_gen_theme_tags' );\n\t\t if( ! $theme_tags ) {\n\t\t $response = wp_remote_get( 'https://api.wordpress.org/themes/info/1.1/?action=feature_list' );\n\t\t if( ! is_wp_error( $response ) ) {\n\t\t $theme_tags = wp_remote_retrieve_body( $response );\n\t\t $theme_tags = json_decode( $theme_tags, true );\n\t\t $theme_tags = $theme_tags ? $theme_tags : array();\n\t\t set_transient( 'if_child_gen_theme_tags', $theme_tags, WEEK_IN_SECONDS );\n\t\t } else {\n\t\t \t$theme_tags = array();\n\t\t }\n\t\t }\n\n\t\t return array_merge($theme_tags, array(\n\t\t \t'Colors' => array(\n\t\t \t\t'black', 'blue', 'brown', 'gray', 'green', 'orange', 'pink', 'purple', 'red', 'silver', 'tan', 'white', 'yellow',\n\t\t \t\t'dark', 'light',\n\t \t\t)\n\t \t));\n\t\t}", "private function findThemeTemplateDirs()\n {\n if ($this->theme['module'] === null) { // no module involved\n return array();\n }\n\n // setup directories & namespaces\n $themeDir = \\SimpleSAML\\Module::getModuleDir($this->theme['module']).'/themes/'.$this->theme['name'];\n $subdirs = scandir($themeDir);\n if (!$subdirs) { // no subdirectories in the theme directory, nothing to do here\n // this is probably wrong, log a message\n \\SimpleSAML\\Logger::warning('Emtpy theme directory for theme \"'.$this->theme['name'].'\".');\n return array();\n }\n\n $themeTemplateDirs = array();\n foreach ($subdirs as $entry) {\n // discard anything that's not a directory. Expression is negated to profit from lazy evaluation\n if (!($entry !== '.' && $entry !== '..' && is_dir($themeDir.'/'.$entry))) {\n continue;\n }\n\n // set correct name for the default namespace\n $ns = ($entry === 'default') ? \\Twig_Loader_Filesystem::MAIN_NAMESPACE : $entry;\n $themeTemplateDirs[] = array($ns => $themeDir.'/'.$entry);\n }\n return $themeTemplateDirs;\n }", "function wpmu_get_blog_allowedthemes($blog_id = 0)\n {\n }", "function find_all_themes($full_details = false)\n{\n if ($GLOBALS['IN_MINIKERNEL_VERSION']) {\n return $full_details ? array('default' => array()) : array('default' => do_lang('DEFAULT'));\n }\n\n require_code('files');\n\n $themes = array();\n $_dir = @opendir(get_file_base() . '/themes/');\n if ($_dir !== false) {\n while (false !== ($file = readdir($_dir))) {\n $ini_file = get_file_base() . '/themes/' . $file . '/theme.ini';\n if ((strpos($file, '.') === false) && (is_dir(get_file_base() . '/themes/' . $file)) && (file_exists($ini_file))) {\n $details = better_parse_ini_file($ini_file);\n if (!array_key_exists('title', $details)) {\n $details['title'] = '?';\n }\n if (!array_key_exists('description', $details)) {\n $details['description'] = '?';\n }\n if (!array_key_exists('author', $details)) {\n $details['author'] = '?';\n }\n $themes[$file] = $full_details ? $details : $details['title'];\n }\n }\n closedir($_dir);\n }\n if (get_custom_file_base() != get_file_base()) {\n $_dir = @opendir(get_custom_file_base() . '/themes/');\n if ($_dir !== false) {\n while (false !== ($file = readdir($_dir))) {\n $ini_file = get_custom_file_base() . '/themes/' . $file . '/theme.ini';\n if ((strpos($file, '.') === false) && (is_dir(get_custom_file_base() . '/themes/' . $file)) && (file_exists($ini_file))) {\n $details = better_parse_ini_file($ini_file);\n if (!array_key_exists('title', $details)) {\n $details['title'] = '?';\n }\n if (!array_key_exists('description', $details)) {\n $details['description'] = '?';\n }\n if (!array_key_exists('author', $details)) {\n $details['author'] = '?';\n }\n $themes[$file] = $full_details ? $details : $details['title'];\n }\n }\n closedir($_dir);\n }\n }\n if (!array_key_exists('default', $themes)) {\n $details = better_parse_ini_file(get_file_base() . '/themes/default/theme.ini');\n if (!array_key_exists('title', $details)) {\n $details['title'] = '?';\n }\n if (!array_key_exists('description', $details)) {\n $details['description'] = '?';\n }\n if (!array_key_exists('author', $details)) {\n $details['author'] = '?';\n }\n $themes['default'] = $full_details ? $details : $details['title'];\n }\n\n // Sort\n if ($full_details) {\n sort_maps_by($themes, 'title');\n } else {\n natsort($themes);\n }\n\n // Default theme should go first\n if (isset($themes['default'])) {\n $temp = $themes['default'];\n $temp_2 = $themes;\n $themes = array('default' => $temp) + $temp_2;\n }\n\n // Admin theme should go last\n if (isset($themes['admin'])) {\n $temp = $themes['admin'];\n unset($themes['admin']);\n $themes['admin'] = $temp;\n }\n\n return $themes;\n}", "function wpmu_get_blog_allowedthemes( $blog_id = 0 ) {\n\t_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_site()' );\n\treturn array_map( 'intval', WP_Theme::get_allowed_on_site( $blog_id ) );\n}", "function get_site_allowed_themes() {\n\t_deprecated_function( __FUNCTION__, '3.4.0', 'WP_Theme::get_allowed_on_network()' );\n\treturn array_map( 'intval', WP_Theme::get_allowed_on_network() );\n}", "public static function scan()\n {\n if (!FS_ACCESS && Config::get('available_themes')) {\n return Config::get('available_themes');\n }\n $dir = \"themes/\";\n $scanned = scandir($dir);\n $_packages = [];\n foreach ($scanned as $folder) {\n if ($folder[0] != '.') {\n $json = $dir.$folder.'/package.json';\n if (file_exists($json)) {\n $data = json_decode(file_get_contents($json));\n if (!FS_ACCESS && isset($data->mainsite) && $data->mainsite===true) {\n continue;\n }\n @$data->title = @$data->title?? @$data->name;\n $data->package = $folder;\n $data->url = @$data->homepage?? (@$data->url?? '');\n $_packages[$folder] = $data;\n }\n }\n }\n return $_packages;\n }", "public function get_theme_info(){\n\t\treturn (array)$this->theme_info;\n\t}", "public function scanThemes()\r\n {\r\n\r\n $parentThemes = [];\r\n $themesConfig = config('themes.themes', []);\r\n\r\n foreach ($this->loadThemesJson() as $data) {\r\n // Are theme settings overriden in config/themes.php?\r\n if (array_key_exists($data['name'], $themesConfig)) {\r\n $data = array_merge($data, $themesConfig[$data['name']]);\r\n }\r\n\r\n // Create theme\r\n $theme = new Theme(\r\n $data['name'],\r\n $data['asset-path'],\r\n $data['views-path']\r\n );\r\n\r\n // Has a parent theme? Store parent name to resolve later.\r\n if ($data['extends']) {\r\n $parentThemes[$theme->name] = $data['extends'];\r\n }\r\n\r\n // Load the rest of the values as theme Settings\r\n $theme->loadSettings($data);\r\n }\r\n\r\n // Add themes from config/themes.php\r\n foreach ($themesConfig as $themeName => $themeConfig) {\r\n\r\n // Is it an element with no values?\r\n if (is_string($themeConfig)) {\r\n $themeName = $themeConfig;\r\n $themeConfig = [];\r\n }\r\n\r\n // Create new or Update existing?\r\n if (!$this->exists($themeName)) {\r\n $theme = new Theme($themeName);\r\n } else {\r\n $theme = $this->find($themeName);\r\n }\r\n\r\n // Load Values from config/themes.php\r\n if (isset($themeConfig['asset-path'])) {\r\n $theme->assetPath = $themeConfig['asset-path'];\r\n }\r\n\r\n if (isset($themeConfig['views-path'])) {\r\n $theme->viewsPath = $themeConfig['views-path'];\r\n }\r\n\r\n if (isset($themeConfig['extends'])) {\r\n $parentThemes[$themeName] = $themeConfig['extends'];\r\n }\r\n\r\n $theme->loadSettings(array_merge($theme->settings, $themeConfig));\r\n }\r\n\r\n // All themes are loaded. Now we can assign the parents to the child-themes\r\n foreach ($parentThemes as $childName => $parentName) {\r\n $child = $this->find($childName);\r\n\r\n if ($this->exists($parentName)) {\r\n $parent = $this->find($parentName);\r\n } else {\r\n $parent = new Theme($parentName);\r\n }\r\n\r\n $child->setParent($parent);\r\n }\r\n }", "public function getThemesDirectory(): string\n {\n return config('theme-system.themes_directory', resource_path('themes')) ?? resource_path('themes');\n }", "public function listThemes(Request $request)\n {\n\n // list pages in the site\n $dir = app()->basePath().'/'.env('THEMES_LOCATION');\n\n // list files\n $arr = Utilities::listSpecificFiles($dir, 'theme.json');\n\n $result = array();\n\n foreach ($arr as $item) {\n\n // get contents of file\n $json = json_decode(file_get_contents($item));\n\n // get location of theme\n $temp = explode('public/themes/', $item);\n $location = substr($temp[1], 0, strpos($temp[1], '/theme.json'));\n\n $json->location = $location;\n\n array_push($result, $json);\n\n }\n\n return response()->json($result);\n\n }", "public static function load_themes()\n\t{\n\t\t$config = Kohana::$config->load('site');\n\n\t\t//set admin theme based on path info\n\t\t$path = ltrim(Request::detect_uri(), '/');\n\t\tTheme::$is_admin = ( $path == \"admin\" || !strncmp($path, \"admin/\", 6) );\n\n\t\tif (Theme::$is_admin)\n\t\t{\n\t\t\t// Load the admin theme\n\t\t\tTheme::$admin_theme_name = $config->get('admin_theme', Theme::$admin_theme_name);\n\t\t\tTheme::$active = Theme::$admin_theme_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Load the site theme\n\t\t\tTheme::$site_theme_name = $config->get('theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t//Set mobile theme, if enabled and mobile request\n\t\tif(Request::is_mobile() AND $config->get('mobile_theme', FALSE))\n\t\t{\n\t\t\t// Load the mobile theme\n\t\t\tTheme::$site_theme_name = $config->get('mobile_theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t// Admins can override the site theme, temporarily. This lets us preview themes.\n\t\tif (User::is_admin() AND isset($_GET['theme']) AND $override = $_GET['theme'])\n\t\t{\n\t\t\tif (file_exists(THEMEPATH.$override))\n\t\t\t{\n\t\t\t\tTheme::$site_theme_name = $override;\n\t\t\t\tTheme::$admin_theme_name = $override;\n\t\t\t\tTheme::$active \t\t = $override;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tKohana::$log->add(LOG::ERROR, 'Missing override site theme: :theme', array(':theme' => $override));\n\t\t\t}\n\t\t}\n\n\t\t//Finally set the active theme\n\t\tTheme::set_theme();\n\t}", "function opanda_sr_get_theme_styles(){\n require_once OPANDA_SR_PLUGIN_DIR. '/includes/style-manager.class.php'; \n \n $themeId = isset( $_POST['onp_theme_id'] ) ? $_POST['onp_theme_id'] : null;\n \n if( !$themeId ) {\n json_encode( array('error' => '[Error] The theme id [onp_theme_id] is not specified.') );\n exit;\n }\n \n $styles = OnpSL_StyleManager::getStylesTitles( $themeId );\n\n echo json_encode( $styles );\n exit;\n}", "function get_theme_mods()\n {\n }", "public function getList()\r\n {\r\n $themes = [];\r\n\r\n $q = $this->_db->query('SELECT id, title, description, thumbnail FROM theme');\r\n\r\n while ($donnees = $q->fetch(PDO::FETCH_ASSOC))\r\n {\r\n $themes[] = new themeClass($donnees);\r\n }\r\n\r\n return $themes;\r\n }", "function wpcom_vip_themes_root() {\n\treturn WP_CONTENT_DIR . '/themes';\n}", "function wp_using_themes()\n {\n }", "public function getThemeConfiguration()\n {\n return $this->getParameter('themeConfiguration');\n }", "public function getTheme () {\n $admin = Yii::app()->settings;\n \n if ($admin->enforceDefaultTheme && $admin->defaultTheme !== null) {\n $theme = $this->getDefaultTheme ();\n if ($theme) return $theme;\n } \n \n return $this->theme;\n }", "public function getDesignTheme();", "static function bad_themes_results() {\n\n\t\t$return = array();\n\t\t$request = remote_get_json( 'https://varnish-http-purge.objects-us-east-1.dream.io/themes.json' );\n\n\t\tif( is_wp_error( $request ) ) {\n\t\t\treturn $return; // Bail early\n\t\t}\n\n\t\t$body = wp_remote_retrieve_body( $request );\n\t\t$themes = json_decode( $body );\n\n\t\tif( empty( $themes ) ) {\n\t\t\treturn $return; // Bail early\n\t\t}\n\n\t\t// Check all the themes. If one of the questionable ones are active, warn\n\t\tforeach ( $themes as $theme => $info ) {\n\t\t\t$my_theme = wp_get_theme( $theme );\n\t\t\t$message = 'Active Theme ' . ucfirst( $theme ) . ': ' . $info->message;\n\t\t\t$warning = $info->type;\n\t\t\tif ( $my_theme->exists() ) {\n\t\t\t\t$return[ 'theme' ] = array( 'icon' => $warning, 'message' => $message );\n\t\t\t}\n\t\t}\n\n\t\treturn $return;\n\t}", "public function getThemeList($package = null)\r\n {\r\n $result = array();\r\n\r\n if (is_null($package)){\r\n foreach ($this->getPackageList() as $package){\r\n $result[$package] = $this->getThemeList($package);\r\n }\r\n } else {\r\n $directory = Mage::getBaseDir('design') . DS . 'frontend' . DS . $package;\r\n $result = $this->_listDirectories($directory);\r\n }\r\n\r\n return $result;\r\n }", "function getThemesSelect( $iThemeSelect ){\n global $config;\n\n $content = null;\n foreach( $config['themes'] as $iTheme => $aData ){\n $content .= '<option value=\"'.$iTheme.'\"'.( ( $iTheme == $iThemeSelect ) ? ' selected=\"selected\"' : null ).'>'.$aData[3].'</option>';\n } // end foreach\n return $content;\n}", "function display_themes()\n {\n }", "public function getSkinStylesheetDirectories() {}", "public static function getThemesRoot()\n {\n return self::$themeRoot;\n }", "function install_themes_feature_list()\n {\n }", "public static function get_theme_class_map() {\n return self::$theme_class_map;\n }", "protected function getTheme()\n {\n return !empty($_GET['theme']) ? $_GET['theme'] : 'basic';\n }", "function techfak_get_theme_options() {\n\treturn get_option( 'techfak_theme_options', techfak_get_default_theme_options() );\n}", "function themes( $args ){\n \n // select toolbox\n if( $args['tool'] == null ){\n $tool = 'display';\n } else {\n $tool = $args['tool'];\n }\n \n // page title\n $this->view->add('page_title','Manage Garage Themes');\n \n // use our fancy tool box\n if( $func = $this->themes_toolbox($tool,$this) ) {\n \n // check fro success, default to no\n $success = false;\n \n // choose tool and execute\n $success = $func($this);\n }\n \n // get the list of themes\n $theme_dirs = glob('themes/*', GLOB_ONLYDIR);\n \n // create theme list\n $theme_list = array();\n \n $theme_list[] = array( 'name' => 'Default', 'path' => 'views' );\n \n // build list\n foreach( $theme_dirs as $theme ){\n $theme_list[] = array(\n 'name' => $theme,\n 'path' => $theme\n );\n }\n \n // add to list\n $this->view->add('theme_list',$theme_list);\n \n // get current theme from settings\n $current_theme = $this->app->settings('theme')->get('theme');\n \n // add to view\n $this->view->add('current_theme',$current_theme);\n \n // add self link\n $this->view->add('self_link',\n $this->app->form_path('admin/themes')\n );\n \n }", "public function getTheme() {\n $templateFacade = $this->dependencyInjector->get('ride\\\\library\\\\template\\\\TemplateFacade');\n\n return $templateFacade->getDefaultTheme();\n }", "function get_registered_theme_features()\n {\n }", "public function get_working_theme() {\n $default_themes = array('twentythirteen', 'twentytwelve', 'twentyeleven');\n\n foreach ($default_themes as $theme_dir) {\n $theme = wp_get_theme($theme_dir);\n\n if ($theme->exists()) {\n return $theme;\n }\n }\n\n return false;\n }", "public function getTheme()\n {\n return _THEME_NAME_;\n }", "public function findTheme($themeName);", "public function getTheme ()\r\n\t{\r\n\t\treturn Tg_Site::getTheme($this->themeId);\r\n\t}", "public static function loadThemes()\n {\n $themesFolder = new Folder(ROOT . DS . 'themes');\n $themes = $themesFolder->read()[0];\n $loader = require ROOT . DS . 'vendor' . DS . 'autoload.php';\n foreach ($themes as $theme) {\n $loader->addPsr4('WasabiTheme\\\\' . $theme . '\\\\', [$themesFolder->path . DS . $theme . DS . 'src']);\n Plugin::load('WasabiTheme/' . $theme, [\n 'path' => $themesFolder->path . DS . $theme . DS,\n 'bootstrap' => true,\n 'routes' => false\n ]);\n }\n }" ]
[ "0.7704014", "0.7699614", "0.7659151", "0.7644294", "0.75788486", "0.7552582", "0.7477126", "0.74440116", "0.7370683", "0.73647016", "0.7357037", "0.7343212", "0.73171616", "0.72541463", "0.7251043", "0.7233521", "0.72275805", "0.71937954", "0.7168683", "0.7151764", "0.7123255", "0.70642346", "0.69655126", "0.69624853", "0.68913054", "0.68761164", "0.6868701", "0.68572146", "0.6758937", "0.67420405", "0.6738407", "0.6713568", "0.67071545", "0.66892636", "0.6681185", "0.66579574", "0.6648699", "0.6611683", "0.65822583", "0.6575456", "0.6534304", "0.65071046", "0.6485332", "0.6461425", "0.64364135", "0.6426904", "0.64246225", "0.6405667", "0.63914675", "0.63906604", "0.6385902", "0.6369633", "0.6366022", "0.63602644", "0.63197243", "0.62907404", "0.6274663", "0.6274663", "0.6262911", "0.62512696", "0.6242588", "0.62045217", "0.6194247", "0.6191888", "0.6168031", "0.6150753", "0.6141964", "0.61316514", "0.61224383", "0.61210823", "0.6118718", "0.6109476", "0.60963374", "0.60961545", "0.6092772", "0.60874367", "0.6079438", "0.60776526", "0.6076263", "0.6074812", "0.6031101", "0.6030308", "0.6007619", "0.59987587", "0.59948903", "0.59711236", "0.5967735", "0.59633195", "0.5940988", "0.59162694", "0.5912716", "0.5912499", "0.5910322", "0.5907322", "0.5898682", "0.5898445", "0.5887668", "0.5874026", "0.58496875", "0.58435214" ]
0.72642744
13
Returns configured theme mode.
public function get_theme_mode() { clearos_profile(__METHOD__, __LINE__); if (! $this->is_loaded) $this->_load_config(); return $this->config['theme_mode']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTheme();", "public function getCurrentTheme()\n {\n return $theme = $this->config->theming->theme;\n }", "public function getDesignTheme();", "public static function getTheme ()\n {\n $config = Zend_Registry::get('config');\n\n return $config->app->theme;\n }", "public function get_theme() {\n return $this->_theme;\n }", "public static function getTheme()\n {\n $config = parse_ini_file(self::$configuration, false);\n return $config['theme'];\n }", "protected function getTheme()\n {\n return !empty($_GET['theme']) ? $_GET['theme'] : 'basic';\n }", "public function getTheme() {\n $templateFacade = $this->dependencyInjector->get('ride\\\\library\\\\template\\\\TemplateFacade');\n\n return $templateFacade->getDefaultTheme();\n }", "public function getMode()\n {\n $value = $this->_config->get('dataprocessing/general/mode');\n\n if ($value === null) {\n $value = 'products';\n }\n\n return $value;\n }", "public function getCurrentTheme(): string\n {\n $theme = $this->theme;\n\n if ($theme == 'default' || $theme === null) {\n return 'default';\n }\n\n if (mb_strlen($theme) > 0) {\n return $theme;\n }\n\n return $this->getDefaultTheme();\n }", "public function getTheme () {\n $admin = Yii::app()->settings;\n \n if ($admin->enforceDefaultTheme && $admin->defaultTheme !== null) {\n $theme = $this->getDefaultTheme ();\n if ($theme) return $theme;\n } \n \n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function getTheme()\n {\n return $this->theme;\n }", "public function getMode()\n {\n $currentMode = $this->getChildBlock('toolbar')->getCurrentMode();\n return $currentMode;\n }", "public function getTheme()\n\t{\n\t\treturn $this->theme;\n\t}", "public function getTheme() {\n return $this->escapeHtml(strtolower(Mage::getStoreConfig(self::CONFIG_PREFIX . 'theme_name', $this->getStore())));\n }", "function current_theme()\n {\n return current_theme();\n }", "public function getStyle() {\n // have to handle it here if set, so we can show apps in dark mode.\n $darkmode = '';\n if ($this->getRequest()->getSession()->get('darkmode') === 'true') {\n statsd_bump('dagd_dark_mode_active');\n }\n\n return array(\n $darkmode,\n );\n }", "function getMode() {\n\t\treturn $this->get('mode');\n\t}", "protected function _getCurrentTheme()\n {\n return $this->_coreRegistry->registry('current_theme');\n }", "public function getTheme()\n {\n return _THEME_NAME_;\n }", "public function getThemeConfiguration()\n {\n return $this->getParameter('themeConfiguration');\n }", "function get_current_theme()\n {\n }", "public static function getMode();", "public function getAdminTheme()\n {\n if ($this->sc->isGranted('IS_AUTHENTICATED_FULLY')) {\n $theme = $this->sc->getToken()->getUser()->getAdminTheme();\n }\n\n return empty($theme) ? 'default' : $theme;\n }", "public function getMode()\n {\n if (isset($this->data[\"mode\"])) {\n return $this->data[\"mode\"];\n }\n if (isset($this->data['external'])) {\n return \"prefer_local\";\n }\n return \"only_local\";\n }", "public function getCurrentMode()\n {\n $params = request()->input();\n\n if (isset($params['mode']))\n return $params['mode'];\n\n return 'grid';\n }", "protected function get() : string\n\t{\n\t\treturn $this->app->config->theme;\n\t}", "public function get_theme_name(){\n\t\treturn $this->current_theme;\n\t}", "public function getThemeName()\n {\n return $this->theme;\n }", "public static function getMode()\n {\n return self::$_mode;\n }", "protected function getMode() {\n\t\treturn $this->mode;\n\t}", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getMode()\n {\n return $this->mode;\n }", "public function getCurrentSiteTheme()\n {\n $siteInfo = $this->getCurrentSiteInfo();\n\n return $siteInfo['theme'];\n }", "public function getDefaultTheme(): string\n {\n return config('theme-system.theme', 'default') ?? 'default';\n }", "public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}", "public function getMode()\n\t{\n\t\treturn $this->mode;\n\t}", "public function getMode(): string\n {\n return $this->mode;\n }", "public function current_theme() {\r\n\t $dataArr = array(\r\n 'theme_status' => 1\r\n );\r\n $themeDetails = $this->CI->DatabaseModel->access_database('ts_themes','select','',$dataArr);\r\n if( !empty($themeDetails) ) {\r\n return $themeDetails[0]['theme_name'];\r\n }\r\n else {\r\n return 'default';\r\n }\r\n\t}", "public function GetMode()\n\t{\n\t\treturn $this->mode;\n\t}", "public function getMode() {\n return $this->mode;\n }", "public function getMode() {\n return $this->mode;\n }", "public function getThemeKey($type = '') {\n if ($type === 'mobile') {\n $r = $this->config->get('Garden.MobileTheme', AddonManager::DEFAULT_MOBILE_THEME);\n } else {\n $r = $this->config->get('Garden.Theme', AddonManager::DEFAULT_DESKTOP_THEME);\n }\n return $r;\n }", "public function getMode()\n {\n return;\n }", "public function getCodeMirrorMode()\n\t{\n\t\t$sMode = null;\n\n\t\tif ($this->sFileExtension == 'php') {\n\t\t\t$sMode = 'application/x-httpd-php';\n\t\t}\n\t\telseif ($this->sFileExtension == 'html') {\n\t\t\t$sMode = 'text/html';\n\t\t}\n\t\telseif ($this->sFileExtension == 'js') {\n\t\t\t$sMode = 'text/javascript';\n\t\t}\n\t\telseif ($this->sFileExtension == 'css') {\n\t\t\t$sMode = 'text/css';\n\t\t}\n\t\telseif ($this->sFileExtension == 'less') {\n\t\t\t$sMode = 'text/x-less';\n\t\t}\n\t\telseif ($this->sFileExtension == 'yaml') {\n\t\t\t$sMode = 'text/x-yaml';\n\t\t}\n\n\t\treturn $sMode;\n\t}", "public function getMode()\n {\n $env = $this->reader->load(ConfigFilePool::APP_ENV);\n return isset($env[State::PARAM_MODE]) ? $env[State::PARAM_MODE] : null;\n }", "public function getMode();", "public function getMode();", "public function getMode();", "public function getMode();", "public function get_working_theme() {\n $default_themes = array('twentythirteen', 'twentytwelve', 'twentyeleven');\n\n foreach ($default_themes as $theme_dir) {\n $theme = wp_get_theme($theme_dir);\n\n if ($theme->exists()) {\n return $theme;\n }\n }\n\n return false;\n }", "function getMode() {\n\t\treturn $this->mode;\n\t}", "public function getMode()\n {\n return $this->_mode;\n }", "public function mode()\n\t{\n\t\treturn $this->mode;\n\t}", "public function get_mode() {\n global $SESSION;\n if (isset($SESSION->homeworkblockmode)) {\n return $SESSION->homeworkblockmode;\n }\n\n $possiblemodes = $this->get_possible_modes();\n $SESSION->homeworkblockmode = $possiblemodes[0];\n return $possiblemodes[0];\n }", "public function getMode() {\n return $this->mode;\n }", "public static function get_theme_options() {\n\t\t\treturn get_option( 'ELMT_theme_options' );\n\t\t}", "public function getEditingThemeId()\n {\n $theme = \\Phpfox::model('layout_theme')\n ->select()\n ->where('is_editing=?', 1)\n ->first();\n\n if (!empty($theme)) {\n return $theme->getId();\n }\n\n return 'default';\n }", "public static function getTheme()\n {\n $className = static::getCalledClass();\n while (!StringHandler::endsWith($className, \"App\")) {\n $className = get_parent_class($className);\n if ($className === false) {\n $className = \"\";\n break;\n }\n if (strpos($className, \"\\\\\") !== 0) {\n $className = \"\\\\\" . $className;\n }\n }\n $theme = Kernel::getService('em')\n ->getRepository('RZ\\Roadiz\\Core\\Entities\\Theme')\n ->findOneBy(['className' => $className]);\n return $theme;\n }", "function getMode()\n {\n return $this->mode;\n }", "protected function getTheme()\n\t{\n\t\treturn strtolower($this->argument('name'));\n\t}", "public function getTheme ()\r\n\t{\r\n\t\treturn Tg_Site::getTheme($this->themeId);\r\n\t}", "public function getCurrentTheme()\n {\n $status = $this->runWpCliCommand('theme', 'status');\n $status = preg_replace(\"/\\033\\[[^m]*m/\", '', $status); // remove formatting\n\n preg_match_all(\"/^[^A-Z]*([A-Z]+)[^a-z]+([a-z\\-]+).*$/m\", $status, $matches);\n\n foreach ($matches[1] as $lineNumber => $status) {\n if (Strings::contains($status, 'A')) {\n return $matches[2][$lineNumber];\n }\n }\n\n return null; // this should never happen, there is always some activate theme\n }", "public function getName(){\n\t\t$theme = \\GO::config()->allow_themes && \\GO::user() ? \\GO::user()->theme : \\GO::config()->theme;\n\t\t\n\t\tif(!file_exists(\\GO::view()->getPath().'themes/'.$theme.'/Layout.php')){\n\t\t\treturn 'Paper';\n\t\t} else {\n\t\t\treturn $theme;\n\t\t}\n\t}", "public function getRenderingMode() {}", "public function getRenderingMode() {}", "public function get_tab_style() {\n\t\t$tab_style = ( ! empty( wpcd_get_early_option( 'wordpress_app_tab_style' ) ) ) ? wpcd_get_early_option( 'wordpress_app_tab_style' ) : 'left';\n\t\treturn $tab_style;\n\t}", "public function getThemeName() {}", "function getMode()\n {\n return $this->mode;\n }", "public function get_theme_name() {\n\t\treturn $this->theme_name;\n\t}", "function getMode() {\n\t\treturn $this->_mode;\n\t}", "function getMode() {\n\t\treturn $this->_mode;\n\t}", "public function getCurrentMode()\n\t{\n\t\tif ($this->getHidepriceModel()->getId()) {\n\t\t\treturn $this->getHidepriceModel()->getMode();\n\t\t}\n\n\t\treturn 0;\n\t}", "public function getAppleButtonTheme()\n {\n return $this->_getConfigModel()->getAppleButtonTheme();\n }", "public function getSelectedTheme()\n {\n $selectedTheme = OW::getConfig()->getValue('base', 'selectedTheme');\n\n if ( empty($this->themeObjects[$selectedTheme]) )\n {\n $this->themeObjects[$selectedTheme] = $this->themeService->getThemeObjectByKey(OW::getConfig()->getValue('base', 'selectedTheme'));\n }\n\n return $this->themeObjects[$selectedTheme];\n }", "public function mode($mode = NULL)\n\t{\n\t\tif (!is_null($mode))\n\t\t{\n\t\t\tunset(OLPBlackbox_Config::getInstance()->blackbox_mode);\n\t\t\tOLPBlackbox_Config::getInstance()->blackbox_mode = $mode;\n\t\t}\n\n\t\treturn OLPBlackbox_Config::getInstance()->blackbox_mode;\n\t}", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "public function getTheme()\n {\n return new Kuler_Theme($this->_comment);\n }", "public function getMode(): string;", "public static function get_core_default_theme()\n {\n }", "public function getDisplayMode()\n\t\t{\n\t\t\treturn isset($this->state['mode'])\n\t\t\t\t\t? $this->state['mode']\n\t\t\t\t\t: self::DEFAULT_DISPLAY_MODE;\n\t\t}", "public function getDefaultDriver()\n {\n if (in_array($this->getTemplateName(), $this->availableThemes)) \n {\n return $this->getTemplateName();\n }\n else\n {\n return $this->defaultThemeName;\n } \n }", "function get_theme ()\r\n {\r\n return $_SESSION[\"theme\"];\r\n }", "public function getIdTheme()\n {\n return $this->idTheme;\n }", "protected function getTheme()\n {\n if ($this->theme == null) {\n $this->theme = new Theme($this->app['view'], $this->options['theme'], $this->options['custom']);\n }\n\n return $this->theme;\n }", "public static function get_theme_options() {\n\t\t\treturn get_option( 'theme_options' );\n\t\t}", "public static function getMyTheme()\n {\n $paramArray = (\\Config\\Site::getAllParams());\n return ($paramArray['hash'])?'Flexi':'';\n }", "public function getMode()\n {\n if (array_key_exists(\"mode\", $this->_propDict)) {\n if (is_a($this->_propDict[\"mode\"], \"\\Beta\\Microsoft\\Graph\\Model\\SimulationMode\") || is_null($this->_propDict[\"mode\"])) {\n return $this->_propDict[\"mode\"];\n } else {\n $this->_propDict[\"mode\"] = new SimulationMode($this->_propDict[\"mode\"]);\n return $this->_propDict[\"mode\"];\n }\n }\n return null;\n }", "public function getThemeLayout();", "function getAppMode()\n {\n return $this->_props['AppMode'];\n }", "public function get_restriction_mode() {\n\n\t\tif ( null === $this->restriction_mode ) {\n\n\t\t\t$default_mode = 'hide_content';\n\t\t\t$restriction_mode = get_option( $this->restriction_mode_option, $default_mode );\n\n\t\t\t$this->restriction_mode = in_array( $restriction_mode, $this->get_restriction_modes( false ), true ) ? $restriction_mode : $default_mode;\n\t\t}\n\n\t\treturn $this->restriction_mode;\n\t}", "public function get_mode() {\n return edd_get_option( 'edd_commissions_payout_schedule_mode', '' );\n }", "public function modeName()\n\t{\n\t\treturn $this->mode->name();\n\t}" ]
[ "0.73051256", "0.73007196", "0.7202147", "0.7199959", "0.7191706", "0.7167727", "0.71357787", "0.7118886", "0.7098299", "0.7077854", "0.7068453", "0.7060847", "0.7060847", "0.7060847", "0.70416796", "0.6979258", "0.69183207", "0.6883121", "0.68673724", "0.68665665", "0.68643594", "0.68376523", "0.681739", "0.6797623", "0.6784743", "0.67753714", "0.675914", "0.67416114", "0.6732742", "0.6713442", "0.6678732", "0.6664167", "0.6655594", "0.65735394", "0.65735394", "0.65735394", "0.65735394", "0.65735394", "0.65735394", "0.65735394", "0.6571949", "0.6570638", "0.6549939", "0.6549939", "0.65454596", "0.653738", "0.65348744", "0.6532112", "0.6532112", "0.6523154", "0.651262", "0.6505934", "0.6496591", "0.64845395", "0.64845395", "0.64845395", "0.64845395", "0.6464464", "0.6459175", "0.645346", "0.64404666", "0.64360976", "0.6431614", "0.64306766", "0.6427199", "0.64179325", "0.6417212", "0.6415873", "0.6410297", "0.63944966", "0.6388196", "0.6355993", "0.6355993", "0.6340307", "0.6339703", "0.6322023", "0.63216114", "0.6303524", "0.6303524", "0.6276158", "0.62744343", "0.6274134", "0.6269752", "0.6228496", "0.6228252", "0.62230736", "0.62203264", "0.6219444", "0.6211798", "0.620626", "0.6195855", "0.6179243", "0.6172988", "0.6168484", "0.6158225", "0.61413354", "0.6124964", "0.6113057", "0.609999", "0.6093" ]
0.8885009
0
Restarts webconfig in a gentle way. A webconfig restart request through the GUI needs special handling. To avoid killing itself, a restart is handled by the external clearsync system.
public function reset_gently() { clearos_profile(__METHOD__, __LINE__); $file = new File(self::FILE_RESTART); if ($file->exists()) $file->delete(); $file->create('root', 'root', '0644'); $file->add_lines("restart requested\n"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restart() {\n\t\t$this->invoke(\"restart\");\n\t}", "abstract protected function _restart();", "protected function restart(): void\n {\n // TODO\n }", "public static function restart()\n {\n $pid = file_get_contents(self::$master_pid);\n posix_kill($pid, SIGUSR1);\n\n if (!is_dir(__APP_DIR__.\"/http_process_cache\"))\n mkdir(__APP_DIR__.\"/http_process_cache\");\n\n $file = new File(__APP_DIR__.\"/http_process_cache\");\n $file->set(\"restart_\".$pid,1,6);\n\n return 1;\n }", "function reload_all_sync() {\n\tglobal $config;\n\n\t/* parse config.xml again */\n\t$config = parse_config(true);\n\n\t/* set up our timezone */\n\tsystem_timezone_configure();\n\n\t/* set up our hostname */\n\tsystem_hostname_configure();\n\n\t/* make hosts file */\n\tsystem_hosts_generate();\n\n\t/* generate resolv.conf */\n\tsystem_resolvconf_generate();\n\n\t/* enable routing */\n\tsystem_routing_enable();\n\n\t/* set up interfaces */\n\tinterfaces_configure();\n\n\t/* start dyndns service */\n\tservices_dyndns_configure();\n\n\t/* configure cron service */\n\tconfigure_cron();\n\n\t/* start the NTP client */\n\tsystem_ntp_configure();\n\n\t/* sync pw database */\n\tunlink_if_exists(\"/etc/spwd.db.tmp\");\n\tmwexec(\"/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd\");\n\n\t/* restart sshd */\n\tsend_event(\"service restart sshd\");\n\n\t/* restart webConfigurator if needed */\n\tsend_event(\"service restart webgui\");\n}", "public function restart()\n {\n session_regenerate_id(true);\n $this->setup();\n }", "public function restart( $args, $assoc_args ) {\n\t\t$this->site_docker_compose_execute( $args[0], 'restart', $args, $assoc_args);\n\t}", "public function restart()\n {\n $this->destroy();\n $this->start();\n }", "private function restart() {\n session_start();\n session_regenerate_id();\n session_destroy();\n session_commit();\n session_start();\n $this->setUserAgent();\n $this->setRemoteAddress();\n }", "function VM_rebootAndDisableNetbootAfterInstall($vmName)\n{\n\tVM_webAction($vmName, 'rebootAndDisableNetboot');\n}", "protected function restart()\n {\n $this->stop();\n $this->start();\n }", "public function restart() {\n $cmd = sprintf(\"./control.sh restart %s -game %s -ip %s -port %d -maxplayers %d -map %s -rcon %s\", $this->sid, $this->gameId, $this->ip, $this->port, $this->maxplayers, $this->map, $this->rcon);\n ssh($cmd, $this->host);\n log_action('RESTART');\n }", "public static function reboot(): void\n {\n //====================================================================//\n // Clear Module Configuration Array\n if (isset(self::core()->conf)) {\n self::core()->conf = null;\n }\n //====================================================================//\n // Clear Webservice Configuration\n if (isset(self::core()->soap)) {\n self::core()->soap = null;\n }\n //====================================================================//\n // Clear Module Local Objects Classes\n if (isset(self::core()->objects)) {\n self::core()->objects = array();\n }\n //====================================================================//\n // Reset Commits Manager\n CommitsManager::reset();\n //====================================================================//\n // Clear Module Log\n self::log()->cleanLog();\n self::log()->deb('Splash Module Rebooted');\n }", "public static function reload()\n {\n self::$config = null;\n self::init();\n }", "public function reload()\n {\n if ($this->config['server_type'] == 'process') {\n $pid = $this->getPid('worker');\n } else {\n $pid = $this->getPid('master');\n }\n\n if (empty($pid)) {\n die(\"{$this->config['process_name']} has not process\".PHP_EOL);\n }\n\n exec(\"kill -USR1 \" . implode(' ', $pid), $output, $return);\n\n if ($return === false) {\n die(\"{$this->config['process_name']} reload fail\".PHP_EOL);\n }\n echo \"{$this->config['process_name']} reload success\".PHP_EOL;\n }", "public function actionReloadInstallData()\n {\n //Sets time limit\n @set_time_limit(1800);\n if(file_exists(APPLICATION_PATH . '/protected/backend/runtime/apploaded.bin'))\n {\n unlink(APPLICATION_PATH . '/protected/backend/runtime/apploaded.bin');\n }\n FileUtil::writeFile(APPLICATION_PATH . '/protected/backend/runtime', 'rebuildstate.bin', 'wb', 'Rebuild in progress');\n InstallManager::reloadInstallData();\n echo \"Success\";\n unlink(APPLICATION_PATH . '/protected/backend/runtime' . '/rebuildstate.bin');\n FileUtil::writeFile(APPLICATION_PATH . '/protected/backend/runtime', 'apploaded.bin', 'wb', 'Application is loaded');\n }", "public function restart(): void\n {\n $this->stop();\n $this->start();\n }", "public function restart($quiet = FALSE) {\n\t\t$this->action(\"restart\", $quiet);\n\t}", "public function restart() {\n\t\t$this->resetTriggerTime();\n\t\t$this->timer->restartEvent( $this );\n\t}", "protected function reloadNginxConfigs()\n {\n $reloadCommand = $this->config && !empty($this->config['redirectsReloadCommand']) ? $this->config['redirectsReloadCommand'] : null;\n\n if ($reloadCommand) {\n exec($reloadCommand, $output, $returned);\n }\n\n // TODO: any error-handling (like checking the output and/or the returned value)?\n }", "function reload_firewall_process() {\n $cmdStart = \"/etc/init.d/firewall reload\";\n exec($cmdStart, $output, $return_reload);\n\n\texec(\"logger -t web -p 7 \\\"\".$cmdStart.\"\\\"\");\n if((0 === $return_reload)){\n return true;\n }else{\n return false;\n }\n}", "function VM_rebootAndActivateNetboot($vmName)\n{\n\tVM_webAction($vmName, 'rebootAndActivateNetboot');\n}", "function VM_shutdownAndDisableNetbootAfterInstall($vmName)\n{\n\tVM_webAction($vmName, 'shutdownAndDisableNetboot');\n}", "function restart()\n {\n $this->destroy();\n if( $this->_state !== 'destroyed' ) {\n // @TODO :: generated error here\n return false;\n }\n\n $this->_state = 'restart';\n\t\t$this->_start();\n\t\t$this->_state\t=\t'active';\n\n\t\t$this->_setCounter();\n\n return true;\n }", "public function cleanUpOldRunningConfigurations() {}", "public function reloadSettings () \n {\n \t// get the current settings from the database\n \t$this->settings = $this->qdb_object->getSettingsAll();\n \t// perform error checking\n \tif (isset ($this->settings['ERRORS']) && ($this->settings['ERRORS'] != ''))\n \t{\n \t\t// fatal error as we need these settings for everything else to work\n \t\t$err = Errors::getInstance();\n \t\t$err->errorEvent(ERROR_SETTINGS, \"Error reloading settings \".$this->settings['ERRORS']);\n \t}\n \t\n }", "public function reload_settings()\r\n\t{\r\n\t\t$this->clear_cache();\r\n\t\t$this->load_settings();\r\n\t}", "public static function resetConfiguration()\n {\n static::$config = null;\n Registry::clear();\n }", "function roots_flush_rewrites() {\n\nif(of_get_option('flush_htaccess', false) == 1 || get_transient(\"was_flushed\") === false) {\n\t\n\t\tglobal $wp_rewrite;\n\t\t$wp_rewrite->flush_rules();\n\t\n\t\tset_transient(\"was_flushed\", true, 60 * 60 * 24 * 7 );\n\t}\n}", "public function updateSettings(Request $request)\n {\n\n $configFilePath = dirname(__DIR__) . '/../../../build/configs/pirrot_default.conf';\n if (file_exists('/etc/pirrot.conf')) {\n $configFilePath = '/etc/pirrot.conf';\n }\n\n // Get setting values from the configuration file.\n $config = new ConfManagerService($configFilePath);\n $currentSettings = $config->read();\n $updateSettings = $request->json();\n $newSettings = [];\n foreach ($updateSettings as $setting) {\n $newSettings[$setting['name']] = $setting['value'];\n }\n\n // Set all \"boolean\" type config items to \"false\" if the checkbox is not checked.\n $falseBooleanValues = array_diff_key($currentSettings, $newSettings);\n foreach ($falseBooleanValues as $key => $value) {\n // Ignore settings that are on the \"blacklist\"/ignored list (to prevent them being overwritten with \"false\")\n if (!in_array($key, $this->ignoredSettings)) {\n $newSettings[$key] = \"false\"; // Yes, really set this to a string and NOT a boolean type (as we're witting it to a text file)\n }\n }\n $updatedConfig = $config->update($newSettings);\n\n // Get the current request URL so we can manipulate it for the auto-refresh after the service has been restarted.\n $url = parse_url(request()->root());\n $response =\n [\n 'check_url' => $url['scheme'] . \"://\" . $url['host'] . ':' . $newSettings['web_interface_port'] . '/up',\n 'after_url' => $url['scheme'] . \"://\" . $url['host'] . ':' . $newSettings['web_interface_port'] . '/settings',\n ];\n\n // We will only write the new configuration file and attempt to restart the Pirrot daemon ONLY if it's actually running on a RPi.\n if (env('APP_ENV') !== 'production') {\n $response =\n [\n 'check_url' => request()->root() . '/up',\n 'after_url' => request()->root() . '/settings',\n ];\n return response($response, 200);\n }\n\n // Backup the old configuration file and then write the new file...\n system(\"cp \" . $configFilePath . \" /opt/pirrot/storage/backups/pirrot-\" . date(\"dmYHis\") . \".conf\");\n file_put_contents('/etc/pirrot.conf', $updatedConfig);\n\n // Trigger a daemon restart (after two seconds to give us enough time to respond to the HTTP request)\n system('sudo /opt/pirrot/web/resources/scripts/restart-pirrot.sh > /dev/null &');\n\n return response($response, 200);\n }", "public function reload()\n {\n if ($this->config['server_type'] == 'process') {\n $pid = $this->getPid('worker');\n } else {\n $pid = $this->getPid('master');\n }\n\n if (empty($pid)) {\n echo \"{$this->config['process_name']} has not process\" . PHP_EOL;\n return false;\n }\n\n exec(\"kill -USR1 \" . implode(' ', $pid), $output, $return);\n\n if ($return === false) {\n echo \"{$this->config['process_name']} reload fail\" . PHP_EOL;\n return false;\n }\n echo \"{$this->config['process_name']} reload success\" . PHP_EOL;\n return true;\n }", "function reloadConfig() {\n\t\treturn $this->_config = PommoAPI :: configGetBase(TRUE);\n\t}", "function reload () {\n\t\t\t$cmd = \"sh \".NEXUS.\"/core/bin/scripts/exec.sh /bin/bash /etc/squid3/squid.reload\";\n\t\t\t$ret = shell_exec(html_entity_decode($cmd)).\"\\n\";\n\t\t}", "public function restart($id);", "public function doRescan($params, $context)\n {\n $this->validateMethodContext($context, [\"role\" => OMV_ROLE_ADMINISTRATOR]);\n // Get the configuration object.\n $db = \\OMV\\Config\\Database::getInstance();\n $object = $db->get(\"conf.service.webdesk\");\n if (TRUE !== $object->get(\"enable\"))\n return;\n exec(\"systemctl force-reload webdesk\", $output);\n }", "public function reloadServer(): void\n {\n [\n 'state' => [\n 'host' => $host,\n 'rpcPort' => $rpcPort,\n ],\n ] = $this->serverStateFile->read();\n\n tap($this->processFactory->createProcess([\n $this->findRoadRunnerBinary(),\n 'reset',\n '-o', \"rpc.listen=tcp://$host:$rpcPort\",\n '-s',\n ], base_path()))->start()->waitUntil(function ($type, $buffer) {\n if ($type === Process::ERR) {\n throw new RuntimeException('Cannot reload RoadRunner: '.$buffer);\n }\n\n return true;\n });\n }", "private function reloadConfig($mdlCP)\n {\n $backend = new Backend();\n \n // generate captive portal config\n $bckresult = trim($backend->configdRun('template reload OPNsense/Captiveportal'));\n if ($bckresult == \"OK\") {\n if ($mdlCP->isEnabled()) {\n $bckresult = trim($backend->configdRun(\"captiveportal restart\"));\n if ($bckresult == \"OK\") {\n return true;\n }\n }\n } \n\n return false;\n }", "public function prepareForRestart() {\n\t\tparent::prepareForRestart();\n\t}", "public function reload() {\n\t\t$this->invoke(\"reload\");\n\t}", "function reload_all() {\n\tsend_event(\"service reload all\");\n}", "function drush_solr_post_provision_deploy_rollback() {\n d()->service('http')->create_config('site');\n d()->service('http')->parse_configs();\n}", "private function reconfigure() {\n\t\t$global = JConfig::getInstance();\n\t\tforeach ($global as $key => $value) {\n\t\t\tif (array_key_exists($key, $this->config)) {\n\t\t\t\t$this->config[$key] = $value;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tif (class_exists('JPConfig')) {\n\t\t\t\t$this->config = array_merge($this->config, JPConfig::getData());\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t// class JPConfig doesn't exist\n\t\t}\n\t}", "public function routerRebuilding() {\n $this->rebuilding = TRUE;\n }", "public function reloadNagios() {\n exec('service nagios3 reload');\n echo \"The host is now being monitored\" . PHP_EOL;\n }", "public function recacheAction()\n {\n $kernel = $this->get('kernel');\n $application = new Application($kernel);\n $application->setAutoExit(false);\n\n $input = new ArrayInput([\n 'command' => 'cache:clear',\n '--env' => $kernel->getEnvironment(),\n '--no-warmup' => true,\n ]);\n $output = new NullOutput();\n $application->run($input, $output);\n\n // Remove flash message.\n $session = $this->get('session');\n $flashBag = $session->getFlashBag();\n $flashBag->get('warning_cache');\n\n return new RedirectResponse($this->admin->generateUrl('list'));\n }", "public function reset()\n {\n $this->call('cache:clear');\n copy(\n storage_path('app/example.config.json'),\n storage_path('app/config.json')\n );\n $this->info('Reset Completed!');\n }", "public static function handleReload()\n {\n \\Controller::reload();\n }", "function _biurnal_conf_clear_conf_cache($name) {\n ctools_include('object-cache');\n ctools_object_cache_clear('biurnal_conf', $name);\n}", "function reload_interfaces_sync() {\n\tglobal $config, $g;\n\n\tif (g_get('debug')) {\n\t\tlog_error(gettext(\"reload_interfaces_sync() is starting.\"));\n\t}\n\n\t/* parse config.xml again */\n\t$config = parse_config(true);\n\n\t/* enable routing */\n\tsystem_routing_enable();\n\tif (g_get('debug')) {\n\t\tlog_error(gettext(\"Enabling system routing\"));\n\t}\n\n\tif (g_get('debug')) {\n\t\tlog_error(gettext(\"Cleaning up Interfaces\"));\n\t}\n\n\t/* set up interfaces */\n\tinterfaces_configure();\n}", "public function handle()\n {\n system('/sbin/reboot') ;\n }", "function reloadBackuPpc () { // relit la conf du fichier\n\texec('/usr/bin/sudo /usr/share/se3/scripts/startbackup reload');\n}", "public function indexAction() {\n\t\t$db = Mage::getSingleton('core/resource')->getConnection('core_write');\n\t\t$db->query(\"DELETE FROM core_resource WHERE code = 'ajax_setup';\");\n\t\t$db->query(\"DELETE FROM core_config_data WHERE path LIKE '%et_ajax_configs/%';\");\n\t\tob_start();\n\t\techo '<b>Default Config Section: et_ajax_configs</b>';\n\t\techo '<pre>';\n\t\t$helper = Mage::helper('ajax');\n\t\techo '<a href=\"'.$this->_getRefererUrl().'\">Go back</a>';\n\t\t$content = ob_get_clean();\n\t\t$this->getResponse()->setBody($content);\n\t}", "public function configResetstat() {\n return $this->returnCommand(['CONFIG', 'RESETSTAT']);\n }", "public function reload( $args, $assoc_args ) {\n\t\t$this->site_docker_compose_execute( $args[0], 'reload', $args, $assoc_args);\n\t}", "function templatesrecache()\n\t{\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t$justdone = intval( $this->ipsclass->input['justdone'] );\n\t\t$justdone = $justdone ? $justdone : 1;\n\t\t\n\t\t$s = $this->ipsclass->DB->build_and_exec_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'skin_sets',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'where' => 'set_skin_set_id > '.$justdone,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'order' => 'set_skin_set_id',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'limit' => array( 0, 1 ),\n\t\t\t\t\t\t\t\t\t\t\t\t\t )\t\t );\n\t\t\n\t\tif ( $s['set_skin_set_id'] )\n\t\t{\n\t\t\t$this->ipsclass->cache_func->_rebuild_all_caches( array( $s['set_skin_set_id'] ) );\n\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}&amp;justdone={$s['set_skin_set_id']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />Rebuilt the '{$s['set_name']}' skin cache...\" );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ipsclass->input['step']++;\n\t\t\t\t\t\t\n\t\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />No more skins to rebuild...\" );\n\t\t}\n\t}", "public function flushCache()\n {\n Yii::$app->cache->delete(self::CACHE_CONFIGS);\n }", "public function test_admin_restart_match()\n {\n $this->assertTrue($this->btwServer->adminRestartMatch());\n\n sleep(30);\n }", "function vpn_ipsec_force_reload($interface = \"\") {\n\tglobal $g, $config;\n\n\t$ipseccfg = $config['ipsec'];\n\n\tif (!empty($interface) && is_array($ipseccfg['phase1'])) {\n\t\t$found = false;\n\t\tforeach ($ipseccfg['phase1'] as $ipsec) {\n\t\t\tif (!isset($ipsec['disabled']) && ($ipsec['interface'] == $interface)) {\n\t\t\t\t$found = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (!$found) {\n\t\t\tlog_error(sprintf(gettext(\"Ignoring IPsec racoon daemon reload since there are no tunnels on interface %s\"), $interface));\n\t\t\treturn;\n\t\t}\n\t}\n\n\t/* send a SIGKILL to be sure */\n\tkillbypid(\"{$g['varrun_path']}/racoon.pid\");\n\n\t/* wait for process to die */\n\tsleep(4);\n\n\t/* kill racoon forcefully */\n\tif (is_process_running(\"racoon\"))\n\t\tmwexec(\"/usr/bin/killall -9 racoon\", true);\n\n\t/* wait for flushing to finish */\n\tsleep(1);\n\n\t/* if ipsec is enabled, start up again */\n\tif (isset($ipseccfg['enable'])) {\n\t\tlog_error(gettext(\"Forcefully reloading IPsec racoon daemon\"));\n\t\tvpn_ipsec_configure();\n\t}\n}", "public function onConfigSave(ConfigCrudEvent $event) {\n if ($event->getConfig()->getName() === 'node.settings' && $event->isChanged('use_admin_theme')) {\n $this->routerBuilder->setRebuildNeeded();\n }\n }", "protected function clearRewriteCache()\n {\n $cache = (int) Shopware()->Config()->routerCache;\n $cache = $cache < 360 ? 86400 : $cache;\n\n $sql = \"SELECT `id` FROM `s_core_config_elements` WHERE `name` LIKE 'routerlastupdate'\";\n $elementId = Shopware()->Db()->fetchOne($sql);\n\n $sql = \"\n SELECT v.shop_id, v.value\n FROM s_core_config_values v\n WHERE v.element_id=?\n \";\n $values = Shopware()->Db()->fetchPairs($sql, array($elementId));\n\n foreach ($values as $shopId => $value) {\n $value = unserialize($value);\n $value = min(strtotime($value), time() - $cache);\n $value = date('Y-m-d H:i:s', $value);\n $value = serialize($value);\n $sql = '\n UPDATE s_core_config_values SET value=?\n WHERE shop_id=? AND element_id=?\n ';\n Shopware()->Db()->query($sql, array($value, $shopId, $elementId));\n }\n }", "function wpb_uninstall() {\n flush_rewrite_rules();\n }", "public static function resetFrontendEnvironment() {}", "protected function resetFrontendEnvironment() {}", "function resetConfig() {\n global $db;\n global $lang;\n\n if(configEnabled() == true) {\n\n if($res = $db->query('TRUNCATE `'.$lang[\"config_db_name\"].'`.`'.$lang[\"config_table_name\"].'`')) {\n\n if($res = $db->query(\"INSERT IGNORE INTO `\".$lang[\"config_db_name\"].\"`.`\".$lang[\"config_table_name\"].\"` (`id`, `key`, `val`) VALUES \".getKeys())) {\n return \"Reset\";\n } else {\n return \"Cannot insert rows. Error: \".$db->error;\n }\n\n } else {\n return \"Cannot truncate. Error: \".$db->error;\n }\n\n } else {\n // return \"Config never been initialized.\";\n // instead of returning that error, initalize and try again\n $pc = prepConfig();\n if($pc == \"Ready\") {\n resetConfig();\n } else {\n return \"Initialization error: \".$pc;\n }\n }\n }", "public function restart()\r\n\t{\r\n\t\tif ($this->_destroyed === FALSE)\r\n\t\t{\r\n\t\t\t// Wipe out the current session.\r\n\t\t\t$this->destroy();\r\n\t\t}\r\n\t\r\n\t\t// Allow the new session to be saved\r\n\t\t$this->_destroyed = FALSE;\r\n\t\r\n\t\treturn $this->_restart();\r\n\t}", "private function postRestartProject() {\r\n $this->clientOwnsProject();\r\n\r\n $this->db->where(\"landingpage_collectionid\", $this->project)\r\n ->set('cr', 0)\r\n ->set('arpv', 0)\r\n ->set('z_score', 0)\r\n ->set('revenue', 0)\r\n ->set('conversions', 0)\r\n ->set('conversion_value_aggregation', 0)\r\n ->set('conversion_value_square_aggregation', 0)\r\n ->set('standard_deviation', 0)\r\n ->set('impressions', 0)\r\n ->set('is_maximum', 0)\r\n ->update('landing_page');\r\n\r\n $this->db->where(\"landingpage_collectionid\", $this->project)\r\n ->set('conversions', 0)\r\n ->set('conversion_value_aggregation', 0)\r\n ->set('conversion_value_square_aggregation', 0)\r\n ->set('standard_deviation', 0)\r\n ->update('collection_goal_conversions');\r\n\r\n $this->db->where(\"landingpage_collectionid\", $this->project)\r\n ->set('progress', 1)\r\n ->set('sample_time', 0)\r\n ->set('restart_date', date('Y-m-d H:i:s'))\r\n ->set('last_sample_date', date('Y-m-d H:i:s'))\r\n ->update('landingpage_collection');\r\n\r\n $this->optimisation->updateSlotsWithoutProgressChange($this->project);\r\n $this->optimisation->flushKpiResultsForCollection($this->project);\r\n $this->optimisation->evaluateImpactAfterCollectionChange($this->project);\r\n $this->optimisation->flushCollectionCache($this->project);\r\n return $this->successResponse(201);\r\n }", "public function reload() {\n $this->init();\n redirect('./');\n }", "function crpTalk_admin_updateconfig()\n{\n\t// Security check\n\tif (!SecurityUtil :: checkPermission('crpTalk::', '::', ACCESS_ADMIN))\n\t{\n\t\treturn LogUtil :: registerPermissionError();\n\t}\n\n\t$talk= new crpTalk();\n\treturn $talk->updateConfig();\n}", "function restart_openvpn($ip) {\n global $config;\n $_ipv4_regex = \"/local[ ]+$ip/\";\n if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-client'])) {\n foreach ($config['openvpn']['openvpn-client'] as $settings) {\n if ($settings['interface'] == $ip || preg_match($_ipv4_regex, $settings['custom_options'])) {\n log_error(\"Restarting OpenVPN client instance on {$ip} because of transition of IP $ip.\");\n openvpn_restart('client', $settings);\n }\n }\n }\n if (is_array($config['openvpn']) && is_array($config['openvpn']['openvpn-server'])) {\n foreach ($config['openvpn']['openvpn-server'] as $settings) {\n if ($settings['interface'] == $ip || preg_match($_ipv4_regex, $settings['custom_options'])) {\n log_error(\"Restarting OpenVPN instance on {$ip} because of transition of IP $ip.\");\n openvpn_restart('server', $settings);\n }\n }\n }\n}", "public function testConfigChange() {\n $this->installProcedure->shouldBeCalledOnce();\n $this->updateProcedure->shouldBeCalledOnce();\n\n $this->cachedInstall->install($this->installer, $this->updater);\n file_put_contents($this->appRoot . '/config/a/foo.yml', 'bar');\n $this->cachedInstall->install($this->installer, $this->updater);\n\n $this->assertSiteInstalled();\n $this->assertSiteCached($this->cachedInstall->getInstallCacheId());\n $this->assertSiteCached($this->cachedInstall->getUpdateCacheId());\n }", "protected static function resetFrontendEnvironment() {}", "protected static function resetFrontendEnvironment() {}", "public static function forceReconnect()\n {\n self::$config = null;\n self::connect(true);\n }", "public function restart(Device $device)\n {\n\n }", "public function flush_rewrites() {\n\t\t$flush_rewrites = get_option( 'ccf_flush_rewrites' );\n\n\t\tif ( ! empty( $flush_rewrites ) ) {\n\t\t\tflush_rewrite_rules();\n\n\t\t\tdelete_option( 'ccf_flush_rewrites' );\n\t\t}\n\t}", "public function setDeviceRestartBehavior(?Win32LobAppRestartBehavior $value): void {\n $this->getBackingStore()->set('deviceRestartBehavior', $value);\n }", "public function resetAllBreakpoints();", "public function restartDynos($option = array()){\n\t\t$this->logger(\"preparing dynos to restart\");\n\n\t\t$callback = function($data,$info,$params = array()){\n\t\t\t\n\t\t\t$config_vars = json_decode($data);\n\n\t\t\tif(isset($config_vars->SCHEDULER_LAST_DYNO_RESTART)){\n\n\t\t\t\t// evaluate config vars\n\t\t\t\t// check the target apps\n\t\t\t\t$target_apps = explode(\",\",$this->target_app);\n\t\t\t\tif(!is_array($target_apps) && empty($target_apps)){\n\t\t\t\t\t$this->logger(\"Restart dyno failed. Invalid target app\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// check last restart info\n\t\t\t\t// config var must be json\n\t\t\t\t$this->scheduler_last_restart = json_decode($config_vars->SCHEDULER_LAST_DYNO_RESTART);\n\n\t\t\t\tif($this->scheduler_last_restart == NULL){\n\t\t\t\t\t$this->logger(\"Restart dyno failed. Invalid config var 'SCHEDULER_LAST_DYNO_RESTART'\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$this->last_restarted_app = $this->scheduler_last_restart->{\"last-restarted-app\"};\n\n\t\t\t\t$last_app_key = array_search($this->last_restarted_app, $target_apps);\n\n\t\t\t\tif($last_app_key === FALSE){\n\t\t\t\t\t$this->logger(\"Restart dyno failed. Invalid target app\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$this->target_app = isset($target_apps[$last_app_key+1]) ? $target_apps[$last_app_key+1] : $target_apps[0];\n\n\t\t\t\t$this->logger(\"Checking info for {$this->target_app}\");\n\n\t\t\t\t// get the last restart timestamp\n\t\t\t\t$time_last_restart = new DateTime($this->scheduler_last_restart->{$this->target_app});\n\n\t\t\t\t// get the time interval\n\t\t\t\t$time_interval = json_decode($this->time_interval);\n\n\t\t\t\tif($time_interval == NULL){\n\t\t\t\t\t$this->logger(\"Restart dyno failed. Invalid time interval\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t$this->time_interval = $time_interval->{$this->target_app};\n\t\t\t\t\n\t\t\t\t$current_time = new DateTime('now');\n\t\t\t\t\n\t\t\t\t$elapsed = $current_time->getTimestamp() - $time_last_restart->getTimestamp();\n\n\n\t\t\t\tif(getenv('RESTARTER_ENV')=='LOCAL'){\n\t\t\t\t\t# for testing test in minutes\n\t\t\t\t\t$elapsed = floor($elapsed / (60));\n\t\t\t\t\t$this->logger(\"Minutes since last update: {$elapsed}\");\n\t\t\t\t}else{\n\t\t\t\t\t$elapsed = floor($elapsed / (60*60));\n\t\t\t\t\t$this->logger(\"Hours since last update: {$elapsed}\");\t\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif($elapsed >= $this->time_interval){\n\t\t\t\t\t$fetched_dynos_callback = function($data, $info)\n\t\t\t\t\t{\n\t\t\t\t\t\t$dyno_list = json_decode($data);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$dynos_to_restart = count($dyno_list);\n\n\t\t\t\t\t\t$this->logger(\"Number of dynos to restart: {$dynos_to_restart}\");\n\n\t\t\t\t\t\tif(!empty($dyno_list)){\n\t\t\t\t\t\t\t$this->restart_dyno_recursive(0, $dyno_list);\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t\t$this->getDynos($fetched_dynos_callback);\n\t\t\t\t}else{\n\t\t\t\t\t$this->logger(\"Nothing to restart.\");\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t$this->getConfigVars($this->restarter_app,$callback);\n\t}", "public function simulationReset()\n\t{\n\t\tif ($this->getSettings()->getType() == self::SETTING_TYPE_SIMULATION)\n\t\t{\n\t\t\t$this->data->directSet(\"resetNeeded\", 1);\n\t\t}\n\t}", "function action_spipbb_admin_reconfig()\n{\n\t$securiser_action = charger_fonction('securiser_action', 'inc');\n\t$arg = $securiser_action();\n\n\t$action=$arg;\n\tinclude_spip('inc/headers');\n\n\t$redirige = urldecode(_request('redirect'));\n\n\tif (!autoriser('configurer', 'plugins')) {\n\t\tinclude_spip('inc/minipres');\n\t\techo minipres();\n\t\texit;\n\t}\n\n#\tif ( ($action==\"save\") AND spipbb_is_configured() ) {\n# h. pourquoi ce controle\n# il y a un controle avant et apres cette \"action\" ! et vu les conditions de cette\n# fonction on ne peut atteindre la reecriture de la config !!\n\n# Il serait bien de pourvoir renvoyer en arg de $redirige un code d'erreur\n# interpreter dans spipbb_cofiguration pour indiquer (en rouge) l'objet qui\n# empeche la config : \"vous n'avez pas remplis ce champs, choisir ceci ... \" !!?\n#(voir gafospip)\n\n\n\tif ($action==\"save\") {\n\n\t\t$reconf=false;\n\n\t\tif (($config_spipbb=_request('config_spipbb'))\n\t\t\tand $config_spipbb!=$GLOBALS['spipbb']['configure']) {\n\t\t\t$GLOBALS['spipbb']['configure']=$config_spipbb;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($spipbb_id_secteur=_request('spipbb_id_secteur')))\n\t\t\tand intval($spipbb_id_secteur)<>intval($GLOBALS['spipbb']['id_secteur'])) {\n\t\t\t$GLOBALS['spipbb']['id_secteur']=intval($spipbb_id_secteur);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($id_groupe_mot=_request('id_groupe_mot')))\n\t\t\t\tand intval($id_groupe_mot)<>intval($GLOBALS['spipbb']['id_groupe_mot'])) {\n\n\t\t\t# solution boiteuse (au 1/12/07) ; peut etre revoir l_ensemble !\n\t\t\t# Mais il est important de conserver la correspondance article/post\n\t\t\t# avec leur mot-clef associes (ferme et annonce)\n\n\t\t\t# on memorise le precedent id_groupe\n\t\t\t$id_groupe_premodif = $GLOBALS['spipbb']['id_groupe_mot'];\n\n\t\t\t$GLOBALS['spipbb']['id_groupe_mot']=intval($id_groupe_mot);\n\t\t\t$reconf=true;\n\t\t}\n\t\telse if ( empty($GLOBALS['spipbb']['id_groupe_mot']) and\n\t\t\t\t(strlen($nom_groupe_mot=trim(_request('nom_groupe_mot')))) ) {\n\n\t\t\t\t// on cherche s'il n'existe pas deja\n\t\t\t\t$row = sql_fetsel('id_groupe','spip_groupes_mots', \"titre = '$nom_groupe_mot'\" ,'','','1');\n\t\t\t\tif (!$row) { // Celui la n'existe pas\n\t\t\t\t\t$res = sql_insertq(\"spip_groupes_mots\",array(\n\t\t\t\t\t\t\t'titre' => $nom_groupe_mot,\n\t\t\t\t\t\t\t'descriptif' => _T('spipbb:mot_groupe_moderation'),\n\t\t\t\t\t\t\t'articles' => 'oui',\n\t\t\t\t\t\t\t'rubriques' => 'oui',\n\t\t\t\t\t\t\t'minirezo' => 'oui',\n\t\t\t\t\t\t\t'comite' => 'oui',\n\t\t\t\t\t\t\t'forum' => 'oui' )\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t$row['id_groupe'] = $res;\n\t\t\t\t}\n\t\t\t\t#\n\t\t\t\t$id_groupe_premodif='non';\n\n\t\t\t\t$GLOBALS['spipbb']['id_groupe_mot'] = $row['id_groupe'];\n\t\t\t\t// on cree les mots cles associes\n\t\t\t\t$row = sql_fetsel('count(*) AS total','spip_mots',\n\t\t\t\t\t\tarray('id_groupe='.$GLOBALS['spipbb']['id_groupe_mot']));\n\t\t\t\tif (!$row or $row['total']<3) {\n\t\t\t\t\t$GLOBALS['spipbb']['id_mot_ferme'] = spipbb_init_mot_cle(\"ferme\",$GLOBALS['spipbb']['id_groupe_mot']);\n\t\t\t\t\t$GLOBALS['spipbb']['id_mot_annonce'] = spipbb_init_mot_cle(\"annonce\",$GLOBALS['spipbb']['id_groupe_mot']);\n\t\t\t\t\t$GLOBALS['spipbb']['id_mot_postit'] = spipbb_init_mot_cle(\"postit\",$GLOBALS['spipbb']['id_groupe_mot']);\n\t\t\t\t} // L'admin doit choisir lui meme ses mots clefs\n\t\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($id_mot_ferme=_request('id_mot_ferme')))\n\t\t\tand intval($id_mot_ferme)<>intval($GLOBALS['spipbb']['id_mot_ferme'])) {\n\n\t\t\t#on memorise le precedent mot\n\t\t\t$id_ferme_premodif = $GLOBALS['spipbb']['id_mot_ferme'];\n\n\t\t\t$GLOBALS['spipbb']['id_mot_ferme']=intval($id_mot_ferme);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($id_mot_annonce=_request('id_mot_annonce')))\n\t\t\tand intval($id_mot_annonce)<>intval($GLOBALS['spipbb']['id_mot_annonce'])) {\n\n\t\t\t#on memorise le precedent mot\n\t\t\t$id_annonce_premodif = $GLOBALS['spipbb']['id_mot_annonce'];\n\n\t\t\t$GLOBALS['spipbb']['id_mot_annonce']=intval($id_mot_annonce);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($id_mot_postit=_request('id_mot_postit')))\n\t\t\tand intval($id_mot_postit)<>intval($GLOBALS['spipbb']['id_mot_postit'])) {\n\t\t\t$GLOBALS['spipbb']['id_mot_postit']=intval($id_mot_postit);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($squelette_groupeforum=_request('squelette_groupeforum'))\n\t\t\tand $squelette_groupeforum!=$GLOBALS['spipbb']['squelette_groupeforum']) {\n\t\t\t$GLOBALS['spipbb']['squelette_groupeforum']=$squelette_groupeforum;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($squelette_filforum=_request('squelette_filforum'))\n\t\t\tand $squelette_filforum!=$GLOBALS['spipbb']['squelette_filforum']) {\n\t\t\t$GLOBALS['spipbb']['squelette_filforum']=$squelette_filforum;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($config_spam_words=_request('config_spam_words'))\n\t\t\tand $config_spam_words!=$GLOBALS['spipbb']['config_spam_words']) {\n\t\t\t$GLOBALS['spipbb']['config_spam_words']=$config_spam_words;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($sw_nb_spam_ban=_request('sw_nb_spam_ban')))\n\t\t\tand intval($sw_nb_spam_ban)<>intval($GLOBALS['spipbb']['sw_nb_spam_ban'])) {\n\t\t\t$GLOBALS['spipbb']['sw_nb_spam_ban']=intval($sw_nb_spam_ban);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($sw_ban_ip=_request('sw_ban_ip')))\n\t\t\tand intval($sw_ban_ip)<>intval($GLOBALS['spipbb']['sw_ban_ip'])) {\n\t\t\t$GLOBALS['spipbb']['sw_ban_ip']=intval($sw_ban_ip);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($sw_ban_ip=_request('sw_admin_can_spam'))\n\t\t\tand $sw_ban_ip!=$GLOBALS['spipbb']['sw_admin_can_spam']) {\n\t\t\t$GLOBALS['spipbb']['sw_admin_can_spam']=$sw_ban_ip;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($sw_modo_can_spam=_request('sw_modo_can_spam'))\n\t\t\tand $sw_modo_can_spam!=$GLOBALS['spipbb']['sw_modo_can_spam']) {\n\t\t\t$GLOBALS['spipbb']['sw_modo_can_spam']=$sw_modo_can_spam;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($sw_send_pm_warning=_request('sw_send_pm_warning'))\n\t\t\tand $sw_send_pm_warning!=$GLOBALS['spipbb']['sw_send_pm_warning']) {\n\t\t\t$GLOBALS['spipbb']['sw_send_pm_warning']=$sw_send_pm_warning;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($sw_warning_from_admin=_request('sw_warning_from_admin'))\n\t\t\tand $sw_warning_from_admin!=$GLOBALS['spipbb']['sw_warning_from_admin']) {\n\t\t\t$GLOBALS['spipbb']['sw_warning_from_admin']=$sw_warning_from_admin;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($sw_warning_pm_titre=_request('sw_warning_pm_titre')))\n\t\t\tand $sw_warning_pm_titre!=$GLOBALS['spipbb']['sw_warning_pm_titre']) {\n\t\t\t$GLOBALS['spipbb']['sw_warning_pm_titre']=$sw_warning_pm_titre;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif ((strlen($sw_warning_pm_message=_request('sw_warning_pm_message')))\n\t\t\tand $sw_warning_pm_message!=$GLOBALS['spipbb']['sw_warning_pm_message']) {\n\t\t\t$GLOBALS['spipbb']['sw_warning_pm_message']=$sw_warning_pm_message;\n\t\t\t$reconf=true;\n\t\t}\n\t\t# ajouts gafospip / scoty\n\t\t# nombre lignes dans divers tableau de presentation\n\t\tif ((strlen($fixlimit=_request('fixlimit')))\n\t\t\tand intval($fixlimit)<>intval($GLOBALS['spipbb']['fixlimit'])) {\n\t\t\t$GLOBALS['spipbb']['fixlimit']=intval($fixlimit);\n\t\t\t$reconf=true;\n\t\t}\n\t\t# temps avant deplacement d_un thread\n\t\tif ((strlen($lockmaint=_request('lockmaint')))\n\t\t\tand intval($lockmaint)<>intval($GLOBALS['spipbb']['lockmaint'])) {\n\t\t\t$GLOBALS['spipbb']['lockmaint']=intval($lockmaint);\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($affiche_bouton_abus=_request('affiche_bouton_abus'))\n\t\t\tand $affiche_bouton_abus!=$GLOBALS['spipbb']['affiche_bouton_abus']) {\n\t\t\t$GLOBALS['spipbb']['affiche_bouton_abus']=$affiche_bouton_abus;\n\t\t\t$reconf=true;\n\t\t}\n\t\tif (($affiche_bouton_rss=_request('affiche_bouton_rss'))\n\t\t\tand $affiche_bouton_rss!=$GLOBALS['spipbb']['affiche_bouton_rss']) {\n\t\t\t$GLOBALS['spipbb']['affiche_bouton_rss']=$affiche_bouton_rss;\n\t\t\t$reconf=true;\n\t\t}\n\n\n\t\t# bouton speciaux\n\t\t# bouton abus\n\t\tif (($affiche_bouton_abus=_request('affiche_bouton_abus'))\n\t\t\tand $affiche_bouton_abus!=$GLOBALS['spipbb']['affiche_bouton_abus']) {\n\t\t\t$GLOBALS['spipbb']['affiche_bouton_abus']=$affiche_bouton_abus;\n\t\t\t$reconf=true;\n\t\t}\n\t\t# bouton rss\n\t\tif (($affiche_bouton_rss=_request('affiche_bouton_rss'))\n\t\t\tand $affiche_bouton_rss!=$GLOBALS['spipbb']['affiche_bouton_rss']) {\n\t\t\t$GLOBALS['spipbb']['affiche_bouton_rss']=$affiche_bouton_rss;\n\t\t\t$reconf=true;\n\t\t}\n\t\t# c: 27/12/7\n\t\t# Par defaut on n'apparait pas dans la liste des membres sauf si option modifie\n\t\tif (($affiche_membre_defaut=_request('affiche_membre_defaut'))\n\t\t\tand $affiche_membre_defaut!=$GLOBALS['spipbb']['affiche_membre_defaut']) {\n\t\t\t$GLOBALS['spipbb']['affiche_membre_defaut']=$affiche_membre_defaut;\n\t\t\t$reconf=true;\n\t\t}\n\t\t# c: 27/12/7\n\t\t# on peut parametrer le niveau de log de spipbb compris entre 0 et 3 ( _SPIPBB_LOG_LEVEL par defaut )\n\t\tif ((strlen($log_level=_request('log_level')))\n\t\t\tand intval($log_level)<>intval($GLOBALS['spipbb']['log_level'])) {\n\t\t\t$log_level=intval($log_level);\n\t\t\t$GLOBALS['spipbb']['log_level']=($log_level>3) ? _SPIPBB_LOG_LEVEL : ( ($log_level<0) ? _SPIPBB_LOG_LEVEL : $log_level ) ;\n\t\t\t$reconf=true;\n\t\t}\n\n\t\t# h. 1/12/08 #########################################\n\t\t# Recuperer la jointure de mot-clef annonce, ferme pour articles et posts\n\t\t# d_une precedente install gafospip ( et spipbb anc. generation ??? )\n\t\t# et/ou\n\t\t# d_un changement de mot-clef (-> nouvel ID)\n\t\t#\n\t\t# Rappel :: les mots annonce et ferme peuvent etre associes\n\t\t# aux articles comme au posts\n\t\t#\n\t\tif($GLOBALS['spipbb']['id_mot_annonce']>0 AND $GLOBALS['spipbb']['id_mot_ferme']>0) {\n\t\t\t$mots_base=array('annonce','ferme');\n\t\t\t$mots_preced=array();\n\n\t\t\t# gafospip ? (passe juste en premiere install !!)\n\t\t\tif( isset($id_groupe_premodif) AND $id_groupe_premodif=='non' AND strlen($GLOBALS['meta']['gaf_install']) )\n\t\t\t{\n\t\t\t\t$gaf_install = @unserialize($GLOBALS['meta']['gaf_install']);\n\t\t\t\t$id_groupe_preced = $gaf_install['groupe'];\n\n\t\t\t\t# cherche mot \"annonce\" et \"ferme\" dans ce groupe\n\t\t\t\tforeach($mots_base as $m) {\n\t\t\t\t\t$q = sql_select(\"id_mot\",\n\t\t\t\t\t\t\t\t\t\"spip_mots\",\n\t\t\t\t\t\t\t\t\t\"titre=\"._q($m).\" AND id_groupe=\"._q($id_groupe_preced) );\n\t\t\t\t\tif($row = sql_fetch($q)) {\n\t\t\t\t\t\t$mots_preced[$m] = $row['id_mot'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\trecreer_jointures_mots($GLOBALS['spipbb']['id_mot_annonce'], $GLOBALS['spipbb']['id_mot_ferme'], $mots_preced, $mots_base);\n\t\t\t}\n\t\t\t# si antecedent non gafospip (sinon rien a faire)\n\t\t\telseif(isset($id_groupe_premodif) AND is_int($id_groupe_premodif) AND $id_groupe_premodif>0)\n\t\t\t{\n\t\t\t\t$mots_preced['annonce']=$id_annonce_premodif;\n\t\t\t\t$mots_preced['ferme']=$id_ferme_premodif;\n\t\t\t\trecreer_jointures_mots($GLOBALS['spipbb']['id_mot_annonce'], $GLOBALS['spipbb']['id_mot_ferme'], $mots_preced, $mots_base);\n\t\t\t\tnettoyer_ante_jointures($mots_preced, $mots_base);\n\t\t\t}\n\n\t\t}\n\n\t\t# enreg. metas spipbb\n\t\tif ($reconf) spipbb_save_metas();\n\n\t}\n\n\tredirige_par_entete($redirige);\n}", "function end_conf_app()\n\t{\n\t}", "public static function restart(Vm $vm);", "public function updateNgnix($revert = false)\n {\n global $boot;\n\n if ($this->domain) {\n $file = self::path['nginxPath'] . '/custom/' . \"$this->domain.conf\";\n\n if ($revert) {\n $trashDir = self::path['nginxPath'] . \"/custom/.trash\";\n $boot->mkdir($trashDir);\n copy($file, $trashDir . \"/$this->domain.conf\");\n $boot->rmfile($file);\n Az::debug($file, 'config removed: ');\n return 0;\n }\n\n $content = file_get_contents($this->confTpl);\n $replace = [\n '{domain}' => \"$this->domain\",\n '{app}' => $this->domain,\n '{root}' => \"d:/Develop/Projects/ALL/backup/zetsoft/\",\n ];\n $content = strtr($content, $replace);\n\n file_put_contents($file, $content);\n }\n\n $history_sub_dirs = glob(self::path['nginxPath'] . '/history/*', GLOB_ONLYDIR);\n foreach ($history_sub_dirs as $dir) {\n $innerFolder = substr($dir, 54);\n $file = self::path['nginxPath'] . \"/history/$innerFolder/$this->newName.$innerFolder.uz.conf\";\n\n if ($revert) {\n $trashDir = \"$dir/.trash\";\n if (!file_exists($trashDir))\n $boot->mkdir($trashDir);\n if (file_exists($file)) {\n copy($file, $trashDir . \"/$this->newName.$innerFolder.uz.conf\");\n }\n $boot->rmfile($file);\n continue;\n }\n\n $content = file_get_contents($this->confTpl);\n $replace = [\n '{domain}' => \"$this->newName.$innerFolder.uz\",\n '{app}' => $this->newName,\n '{root}' => \"d:/Develop/Projects/ALL/history/$innerFolder/zetsoft/\",\n ];\n $content = strtr($content, $replace);\n\n file_put_contents($file, $content);\n }\n\n $folders = ['backup', 'extract', 'zetsoft', 'zoftapp'];\n\n foreach ($folders as $folder) {\n\n if ($folder === 'zoftapp') $file = self::path['nginxPath'] . \"/$folder/$this->newName.zoft.uz.conf\";\n else $file = self::path['nginxPath'] . \"/$folder/$this->newName.$folder.uz.conf\";\n\n if ($revert) {\n $trashDir = self::path['nginxPath'] . \"/$folder/.trash\";\n if (!file_exists($trashDir))\n $boot->mkdir($trashDir);\n if (file_exists($file)) {\n if ($folder === 'zoftapp') copy($file, $trashDir . \"/$this->newName.zoft.uz.conf\");\n else copy($file, $trashDir . \"/$this->newName.$folder.uz.conf\");\n }\n $boot->rmfile($file);\n Az::debug($file, 'config removed: ');\n continue;\n }\n\n $content = file_get_contents($this->confTpl);\n $replace = [\n '{domain}' => $folder === 'zoftapp' ? \"$this->newName.zoft.uz\" : \"$this->newName.$folder.uz\",\n '{app}' => $this->newName,\n '{root}' => $folder === 'backup' ? \"d:/Develop/Projects/ALL/backup/zetsoft/\" : \"d:/Develop/Projects/ALL/asrorz/zetsoft/\",\n ];\n $content = strtr($content, $replace);\n\n file_put_contents($file, $content);\n }\n\n $this->checkNginx();\n\n }", "public function clearConfigurationCacheCommand() {\n\t\t$this->cacheApiService->clearConfigurationCache();\n\t\t$message = 'Configuration cache has been cleared.';\n\t\t$this->logger->info($message);\n\t\t$this->outputLine($message);\n\t}", "protected function reloadRoutes()\n {\n Router::reload();\n }", "public function getRestartPolicy()\n {\n return $this->_restartPolicy;\n }", "public function setRestartApp(bool $restartApp): self\n {\n $this->options['restartApp'] = $restartApp;\n return $this;\n }", "function recache()\n\t{\n\t\t$this->ipsclass->input['step']++;\n\t\t$uninstall = ( $this->ipsclass->input['un'] == 1 ) ? \"&amp;un=1\" : \"\";\n\t\t\n\t\t//-----------------------------------------\n\t\t// Components\n\t\t//-----------------------------------------\n\t\t\n\t\t$components = $this->ipsclass->load_class( ROOT_PATH.'sources/action_admin/components.php', 'ad_components' );\n\t\t$components->components_rebuildcache();\n\t\t\n\t\t//-----------------------------------------\n\t\t// Forum Cache\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->update_forum_cache();\n\t\t\n\t\t//-----------------------------------------\n\t\t// Group Cache\n\t\t//-----------------------------------------\n\t\t\n\t\t$this->ipsclass->cache['group_cache'] = array();\n\t\t\n\t\t$this->ipsclass->DB->build_query( array( 'select' => '*',\n\t\t\t\t\t\t\t\t\t\t\t\t 'from' => 'groups'\n\t\t\t\t\t\t\t\t\t\t) );\n\t\t$this->ipsclass->DB->exec_query();\n\t\t\n\t\twhile ( $i = $this->ipsclass->DB->fetch_row() )\n\t\t{\n\t\t\t$this->ipsclass->cache['group_cache'][ $i['g_id'] ] = $i;\n\t\t}\n\t\t\n\t\t$this->ipsclass->update_cache( array( 'name' => 'group_cache', 'array' => 1, 'deletefirst' => 1 ) );\n\t\t\n\t\t//-----------------------------------------\n\t\t// Settings\n\t\t//-----------------------------------------\n\t\t\n\t\t$settings = $this->ipsclass->load_class( ROOT_PATH.'sources/action_admin/settings.php', 'ad_settings' );\n\t\t$settings->setting_rebuildcache();\n\t\t\n\t\t$this->ipsclass->admin->redirect( \"{$this->ipsclass->form_code}&amp;code=work&amp;mod={$this->ipsclass->input['mod']}&amp;step={$this->ipsclass->input['step']}{$uninstall}&amp;st={$this->ipsclass->input['st']}\", \"{$this->xml_array['mod_info']['title']['VALUE']}<br />IPB caches updated....\" );\n\t}", "public function runcatalogsyncAction()\n {\n\n $result = Mage::getModel('ddg_automation/cron')->catalogSync();\n if ($result['message'])\n Mage::getSingleton('adminhtml/session')->addSuccess($result['message']);\n\n $this->_redirectReferer();\n }", "protected function reindexNewURLs() {\n\t\tif ($this->commandLineOptions->hasOption(tx_mnogosearch_clioptions::REINDEX)) {\n\t\t\t$this->showProgressMessage('Going to reindex new URLs.');\n\t\t\t$urlFileName = $this->generateURLListFile();\n\t\t\tif ($urlFileName != '') {\n\t\t\t\t$this->indexer->indexURLs($urlFileName);\n\t\t\t\t@unlink($urlFileName);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->showProgressMessage('No new URLs found.');\n\t\t\t}\n\t\t}\n\t}", "function _refresh_config($tpl, $add_vars = false)\n\t{\n\t\tif(@file_exists(IP_ROOT_PATH . 'templates/' . $tpl . '/xs_config.cfg'))\n\t\t{\n\t\t\t$style_config = array();\n\t\t\tinclude(IP_ROOT_PATH . 'templates/' . $tpl . '/xs_config.cfg');\n\t\t\tif(sizeof($style_config))\n\t\t\t{\n\t\t\t\tglobal $config, $db;\n\t\t\t\tfor($i = 0; $i < sizeof($style_config); $i++)\n\t\t\t\t{\n\t\t\t\t\tif(!isset($this->style_config[$style_config[$i]['var']]))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->style_config[$style_config[$i]['var']] = $style_config[$i]['default'];\n\t\t\t\t\t\tif($add_vars)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->vars['TPL_CFG_' . strtoupper($style_config[$i]['var'])] = $style_config[$i]['default'];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$str = $this->_serialize($this->style_config);\n\t\t\t\t$config_name = 'xs_style_' . $tpl;\n\t\t\t\tif(isset($config[$config_name]))\n\t\t\t\t{\n\t\t\t\t\t$sql = \"UPDATE \" . CONFIG_TABLE . \" SET config_value='\" . str_replace('\\\\\\'', '\\'\\'', addslashes($str)) . \"' WHERE config_name='\" . str_replace('\\\\\\'', '\\'\\'', addslashes($config_name)) . \"'\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$sql = \"INSERT INTO \" . CONFIG_TABLE . \" (config_name, config_value) VALUES ('\" . str_replace('\\\\\\'', '\\'\\'', addslashes($config_name)) . \"', '\" . str_replace('\\\\\\'', '\\'\\'', addslashes($str)) . \"')\";\n\t\t\t\t}\n\t\t\t\t$db->sql_query($sql);\n\t\t\t\t$config[$config_name] = $str;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "function redirKill($addr, $rsecs = 0, $estatus = 0) {\r\n\theader(\"refresh:$rsecs; url=$addr\");\r\n\texit(0);\r\n}", "public static function reset()\n {\n self::$config = null;\n self::$configLoaded = false;\n }", "public function reInit(): bool {}", "protected function removeObsoleteLocalConfigurationSettings() {}", "protected function reloadAdminHome() {\r\n\t\ttry {\r\n\t\t\tif (strlen($adminHomePageID\t= LBoxConfigManagerProperties::getPropertyContentByName(\"ref_page_xt_admin\")) < 1) {\r\n\t\t\t\tthrow new LBoxExceptionPage(\"Property ref_page_xt_admin not set!\");\r\n\t\t\t}\r\n\t\t\tLBoxFront::reload(LBoxConfigManagerStructure::getPageById($adminHomePageID)->url);\r\n\t\t}\r\n\t\tcatch (Exception $e) {\r\n\t\t\tthrow $e;\r\n\t\t}\r\n\t}", "protected function resetFrontendEnvironment() {\n\t\t$GLOBALS['TSFE'] = $this->tsfeBackup;\n\t\tchdir($this->workingDirectoryBackup);\n\t}", "public function restart() {\r\n\t\t$s = $this->stop();\r\n\t\t$this->start();\r\n\t\treturn $s;\r\n\t}", "function rad_rewrite_flush(){\n\trad_setup_products(); //the function above that set up the CPT\n\tflush_rewrite_rules(); //re-builds the .htaccess rules\n}", "protected function stopOptimizeAllAction() {\n\t\t$coreConfig = Mage::getConfig();\n\t\t$coreConfig->saveConfig(\"mageio_autosettig\", Mage::helper('core')->escapeHtml('Off'))->cleanCache();\n\t\t$this->ajaxReponse(false);\t\t\n\t}" ]
[ "0.6518858", "0.59543204", "0.59226114", "0.5791351", "0.5723413", "0.5711671", "0.56946695", "0.5571932", "0.55015415", "0.54668504", "0.5419699", "0.5407208", "0.5369516", "0.5356378", "0.5349592", "0.5306644", "0.5280407", "0.52606654", "0.52425975", "0.5220435", "0.51883775", "0.51626766", "0.5154168", "0.5086854", "0.50760347", "0.49869406", "0.49601436", "0.49536383", "0.4926654", "0.49092487", "0.4889119", "0.4886451", "0.48812947", "0.48683164", "0.48583996", "0.4854326", "0.4850285", "0.48258185", "0.48162463", "0.48004377", "0.4797735", "0.47869834", "0.47723758", "0.47667488", "0.4731715", "0.47278264", "0.47151238", "0.46990374", "0.46694133", "0.46178284", "0.46159342", "0.4601126", "0.45882526", "0.45851016", "0.45783806", "0.45776287", "0.45522273", "0.4539539", "0.45341486", "0.4524902", "0.45104307", "0.4504284", "0.4503073", "0.44998577", "0.44991234", "0.44838676", "0.4478788", "0.44768697", "0.4470234", "0.44666347", "0.44517007", "0.44517007", "0.44363326", "0.4432417", "0.44226357", "0.4417734", "0.44169763", "0.4414324", "0.4407102", "0.43925044", "0.43891007", "0.43786955", "0.4377414", "0.4372138", "0.43704274", "0.43694836", "0.43675873", "0.4362358", "0.4361178", "0.4358777", "0.43535018", "0.43455365", "0.43419865", "0.43419504", "0.4333913", "0.4326816", "0.432644", "0.43208674", "0.43203098", "0.4313609" ]
0.53287894
15
Sets the theme for webconfig.
public function set_theme($theme) { clearos_profile(__METHOD__, __LINE__); $this->_set_parameter('theme', $theme); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppTheme($themeName = '');", "public function setDefaultDesignTheme();", "function setTheme($theme) {\n $this->local_theme = $theme;\n if(isset($this->xTemplate))$this->xTemplate->assign(\"THEME\", $this->local_theme);\n}", "public function setup_theme()\n {\n }", "public function setTheme($theme)\n {\n $this->theme = $theme;\n }", "public static function setSiteStyling()\n {\n $styling = SiteManagement::getMetaValue('settings');\n if (!empty($styling[0]['enable_theme_color']) && $styling[0]['enable_theme_color'] == 'true') {\n if (!empty($styling[0]['primary_color'])) {\n ob_start(); ?>\n <style>\n /* Theme Text Color */\n a,\n p a,\n p a:hover,\n a:hover,\n a:focus,\n a:active,\n .wt-navigation>ul>li:hover>a,\n .wt-navigation>ul>li.current-menu-item>a,\n .wt-navarticletab li:hover a,\n .wt-navarticletab li a.active,\n .wt-categoriescontent li a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-effectivecontent li:hover a,\n .wt-articlesingle-content .wt-description .wt-blockquotevone q,\n .wt-filtertag li:hover a,\n .wt-userlisting-breadcrumb li .wt-clicksave,\n .wt-clicksave,\n .wt-qrcodefeat h3 span,\n .wt-comfollowers ul li:hover a span,\n .wt-postarticlemeta .wt-following span,\n .tg-qrcodefeat h3 span,\n .active-category {\n color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Background Color */\n .wt-btn:hover,\n .wt-dropdowarrow,\n .navbar-toggle,\n .wt-btn,\n .wt-navigationarea .wt-navigation>ul>li>a:after,\n .wt-searchbtn,\n .wt-sectiontitle:after,\n .wt-navarticletab li a:after,\n .wt-pagination ul li a:hover,\n .wt-pagination ul li.wt-active a,\n .wt-widgettag a:hover,\n .wt-articlesingle-content .wt-description blockquote span i,\n .wt-searchgbtn,\n .wt-filtertagclear a,\n .ui-slider-horizontal .ui-slider-range,\n .wt-btnsearch,\n .wt-newnoti a em,\n .wt-notificationicon>a:after,\n .wt-rightarea .wt-nav .navbar-toggler,\n .wt-usersidebaricon span,\n .wt-usersidebaricon span i,\n .wt-filtertag .wt-filtertagclear a,\n .loader:before,\n .wt-offersmessages .wt-ad:after,\n .wt-btnsendmsg,\n .wt-tabstitle li a:before,\n .wt-tabscontenttitle:before,\n .wt-tablecategories thead tr th:first-child:before,\n .wt-tablecategories tbody tr td:first-child:before,\n .wt-slidernav .wt-prev:hover,\n .wt-slidernav .wt-next:hover,\n .vb>.vb-dragger>.vb-dragger-styler,\n .wt-pagination ul li span,\n .la-banner-settings .wt-location h5:after,\n .la-section-settings .wt-location h6:after,\n .wt-forgotpassword-holder .card .card-body form .form-group button[type=submit] {\n background: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Border Color */\n input:focus,\n .select select:focus,\n .form-control:focus,\n .wt-navigation>ul>li>.sub-menu,\n .wt-pagination ul li a:hover,\n .wt-widgettag a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-filtertag li:hover a,\n .wt-filtertag .wt-filtertagclear a,\n .wt-themerangeslider .ui-slider-handle,\n .wt-clicksavebtn,\n .wt-pagination ul li.wt-active a,\n .wt-usernav>ul,\n .wt-pagination ul li span {\n border-color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* RGBA Background Color */\n .loader{\n background: <?php echo $styling[0]['primary_color'] ?>;\n background: -moz-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -webkit-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -o-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -ms-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: linear-gradient(to right, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n }\n </style>\n <?php return ob_get_clean();\n }\n }\n }", "public function theme()\n {\n }", "public function setup_config() {\n\t\t$theme = wp_get_theme();\n\n\t\t$this->theme_args['name'] = apply_filters( 'ti_wl_theme_name', $theme->__get( 'Name' ) );\n\t\t$this->theme_args['template'] = $theme->get( 'Template' );\n\t\t$this->theme_args['version'] = $theme->__get( 'Version' );\n\t\t$this->theme_args['description'] = apply_filters( 'ti_wl_theme_description', $theme->__get( 'Description' ) );\n\t\t$this->theme_args['slug'] = $theme->__get( 'stylesheet' );\n\t}", "function configure_theme($themeFile) {\n $newEntry = $this->GetThemeInfo($this->css_dir.$themeFile);\n $this->products->columns = $newEntry['columns'];\n }", "function setTheme($name, $load=true)\n {\n $this->m_themeName = $name;\n $this->m_themeLoad = $load;\n }", "public function initTheme($theme_name);", "public function themeSetup()\n {\n add_theme_support('title-tag');\n add_theme_support('post-thumbnails');\n add_theme_support('html5', [\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n ]);\n\n add_theme_support('align-wide');\n\n add_theme_support('editor-color-palette', \\Fp\\Fabric\\fabric()->config('theme.colours'));\n\n // Disables custom colors in block color palette.\n add_theme_support('disable-custom-colors');\n }", "public function apply_theme()\n\t{\n\t\treturn 'twentyten';\n\t}", "public function setTheme(\\Magento\\Framework\\View\\Design\\ThemeInterface $theme);", "public function setTheme(string $theme)\n {\n if (!empty($theme)) {\n $this->theme = $theme;\n }\n }", "public function init() {\n Yii::app()->theme = 'bootstrap';\n }", "public function registerTheme()\n {\n $this->app->singleton(ThemeContract::class, function ($app) {\n return new Theme($app, $this->app['view']->getFinder(), $this->app['config'], $this->app['translator']);\n });\n }", "public function theme($theme)\n {\n $themepath = $this->dir . '/theme/' . $theme;\n if (is_dir(realpath($themepath))) {\n $this->theme = $theme;\n }\n }", "public function setTheme(GenericTheme $theme) {\n $data = array(\n 'name' => $theme->getDisplayName(),\n 'parent' => $theme->getParent(),\n \t'engine' => $theme->getEngines(),\n 'region' => $theme->getRegions(),\n );\n\n $this->config->set('theme.' . $theme->getName(), $data);\n $this->themes[$theme->getName()] = $theme;\n\n $this->createResources($theme);\n }", "function chocorocco_customizer_action_switch_theme() {\n\t\tif (false) chocorocco_customizer_save_css();\n\t}", "function tsc_theme_options() {\n\tadd_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'tsc_theme_options_page' );\n}", "public function _setViewTheme($theme)\n\t{\n\t\t\n\t\t$theme_dir = APPPATH.DIRECTORY_SEPARATOR.VIEWS_DIR.DIRECTORY_SEPARATOR.VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme;\n\t\t$this->theme_public_dir = BASE_URL.'/'.THEMES_PUBLIC_DIR.\"{$theme}/\";\n\t\tif (is_dir($theme_dir))\n\t\t{\n\t\t\t$this->theme = $theme;\n\t\t\t$this->theme_dir = $theme_dir;\n\t\t\t$this->theme_open_view = VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme.DIRECTORY_SEPARATOR.THEME_OPEN_VIEW;\n\t\t\t$this->theme_close_view = VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme.DIRECTORY_SEPARATOR.THEME_CLOSE_VIEW;\n\t\t}\n\t\telse\n\t\t{\n\t\t\texit('Invalid Theme Specified: '.$theme_dir); // TODO: Proper error handling\n\t\t}\n\t\t\n\t}", "public function setstyle($name){\n\t\t// Check whether the information is valid //\n\t\tif (array_key_exists($name, $this->_style)) {\n\t\t\t// switch name theme do class name//\n\t\t\t$name = $this->get_style_array($name);\n\t\t\t// hydrate var //\n\t\t\t$this->_style_name = $name;\n\t\t}else{throw new Exception('Theme not found'); die();}\n\t}", "public static function setDefault($theme) {\n variable_set('theme_default', $theme);\n }", "public function set($themeName)\r\n {\r\n if ($this->exists($themeName)) {\r\n $theme = $this->find($themeName);\r\n } else {\r\n $theme = new Theme($themeName);\r\n }\r\n\r\n $this->activeTheme = $theme;\r\n\r\n // Get theme view paths\r\n $paths = $theme->getViewPaths();\r\n\r\n // fall-back to default paths (set in views.php config file)\r\n foreach ($this->laravelViewsPath as $path) {\r\n if (!in_array($path, $paths)) {\r\n $paths[] = $path;\r\n }\r\n }\r\n\r\n config(['view.paths' => $paths]);\r\n\r\n $themeViewFinder = app('view.finder');\r\n $themeViewFinder->setPaths($paths);\r\n Event::dispatch('igaster.laravel-theme.change', $theme);\r\n return $theme;\r\n }", "function cinerama_edge_register_theme_settings() {\n\t\tregister_setting( EDGE_OPTIONS_SLUG, 'edgtf_options' );\n\t}", "public static function setAdmin($theme) {\n variable_set('admin_theme', $theme);\n }", "public function set_theme( $theme = NULL ) {\n $this->_theme = $theme;\n foreach ( $this->_theme_locations as $location ) {\n if ( $this->_theme AND file_exists( $location . $this->_theme ) ) {\n $this->_theme_path = rtrim( $location . $this->_theme . '/' );\n break;\n }\n }\n\n return $this;\n }", "function set_theme_mod($name, $value)\n {\n }", "public static function set_theme($theme = FALSE)\n\t{\n\t\tif( !empty($theme)) Theme::$active = $theme;\n\n\t\t$modules = Kohana::modules();\n\t\tif( ! empty(Theme::$active) AND ! in_array(Theme::$active, array_keys($modules)))\n\t\t{\n\t\t\t//set absolute theme path and load the request theme as kohana module\n\t\t\tKohana::modules(array('theme' => THEMEPATH.Theme::$active) + $modules);\n\t\t}\n\t\n\t\tunset($modules);\n\t}", "public function setConfig($fileName)\n {\n // Get the theme's config file\n $themeConfig = $this->path . '/' . $fileName;\n\n // If the theme has a config file, set hasConfig to true.\n $this->hasConfig = (file_exists($themeConfig) && is_readable($themeConfig));\n }", "public static function theme(): void\n {\n $smarty = self::getInstance(Smarty::class);\n if (defined(\"_PATH_\"))\n $smarty->assign(\"base\", _PATH_);\n $smarty->assign(\"css\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/css\");\n $smarty->assign(\"data\", _ROOT_ . \"/../data\");\n $smarty->assign(\"root\", _ROOT_);\n $smarty->assign(\"js\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/js\");\n $smarty->assign(\"img\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/img\");\n $smarty->assign(\"template\", _THEME_);\n\n if (file_exists(_APP_ . \"/routes.php\"))\n include_once(_APP_ . \"/routes.php\");\n else\n Display::response(\"No se ha encontrado el archivo routes.php\", \"json\", 500);\n \n if (is_dir(_SRC_ . \"/Routes\"))\n foreach (glob(_SRC_ . \"/Routes/*.php\") as $routeFile)\n require_once $routeFile;\n \n \n if (file_exists(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\")) {\n include_once(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\");\n }\n }", "function set_theme($params)\n\t{\n\n\t\t(object) $theme = array_to_object($params);\n\n \t/**\n \t * ----------------------------------------------------------------------\n\t\t * The YoteyoteUI Main Configuration data array.\n\t\t * ----------------------------------------------------------------------\n\t\t */\n/*\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => 'Yoteyote',\n\t\t\t 'version' => '1.0',\n\t\t\t 'author' => 'Yoteyote',\n\t\t\t 'title' => 'YoteyoteUI - Premium Web App and Admin Template',\n\t\t\t 'description' => 'YoteyoteUI is a Premium Web App and Admin Template',\n\t\t\t\t'keywords' => 'Yoteyote',\n\n\t\t\t // '' empty to remove full width from the page (< 992px: 100%, > 992px: 95%, 1440px max width)\n\t\t\t // 'full-width' for a full width page (100%, 1920px max width)\n\t\t\t 'page' => 'full-width',\n\n\t\t\t // 'navbar-default' for a light header\n\t\t\t // 'navbar-inverse' for a dark header\n\t\t\t 'header_navbar' => 'navbar-default',\n\n\t\t\t // 'navbar-fixed-top' for a top fixed header\n\t\t\t // 'navbar-fixed-bottom' for a bottom fixed header\n\t\t\t 'header' => 'navbar-fixed-top',\n\n\t\t\t // '' left sidebar will open only from the top left toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of left sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_left' => 'enable-hover',\n\n\t\t\t // '' right sidebar will open only from the top right toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of right sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_right' => '',\n\n\t\t\t // '' empty for default behavior\n\t\t\t // 'sidebar-left-pinned' for a left pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-right-pinned' for a right pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-left-pinned sidebar-right-pinned' for both sidebars pinned (always visible > 1200px)\n\t\t\t 'navigation' => '',\n\n\t\t\t // All effects apply in resolutions larger than 1200px width\n\t\t\t // 'fx-none' remove all effects from main content when one of the sidebars are open (better website performance)\n\t\t\t // 'fx-opacity' opacity effect\n\t\t\t // 'fx-move' move effect\n\t\t\t // 'fx-push' push effect\n\t\t\t // 'fx-rotate' rotate effect\n\t\t\t // 'fx-push-move' push-move effect\n\t\t\t // 'fx-push-rotate' push-rotate effect\n\t\t\t 'content_fx' => 'fx-opacity',\n\n\t\t\t // Available themes: 'river', 'amethyst' , 'dragon', 'emerald', 'grass' or '' leave empty for the default fresh orange\n\t\t\t 'theme' => 'dragon',\n\t\t\t //'theme' => $this->input->cookie('theme_cookie', TRUE),\n\n\t\t\t //'active_page' => basename($_SERVER['PHP_SELF']),\n\t\t\t 'active_page' => current_url($page), // To get the CI current page.\n\t\t\t),\n\t\t);\n*/\n\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => $theme->name,\n\t\t\t 'version' => $theme->version,\n\t\t\t 'author' => $theme->author,\n\t\t\t 'title' => $theme->title,\n\t\t\t 'description' => $theme->description,\n\t\t\t\t'keywords' => $theme->keywords,\n\t\t\t 'page' => $theme->page,\n\t\t\t 'header_navbar' => $theme->header_navbar,\n\t\t\t 'header' => $theme->header,\n\t\t\t 'sidebar_left' => $theme->sidebar_left,\n\t\t\t 'sidebar_right' => $theme->sidebar_right,\n\t\t\t 'navigation' => $theme->navigation,\n\t\t\t 'content_fx' => $theme->content_fx,\n\t\t\t 'theme' => $theme->theme,\n\t\t\t 'active_page' => $theme->active_page,\n\t\t\t),\n\t\t);\n\n\t\treturn $data;\n\t}", "function define_theme_colors($theme, $settings)\n\t{\n\t\tswitch ($theme) \n\t\t{\n\t\t\tcase 'light':\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'light',\n\t\t\t\t\t'body' => '#C5AC91',\n\t\t\t\t\t'text' => '#000',\n\t\t\t\t\t'menuHover' => 'rgba(252, 180, 103, 0.65)',\n\t\t\t\t\t'titles' => '#FCB467',\n\t\t\t\t\t'boxes' => '#fff',\n\t\t\t\t\t'shadows' => '#565659',\n\t\t\t\t\t'alertBoxes' => '#8A3324',\n\t\t\t\t\t'alertCircle' => '#4E231C',\n\t\t\t\t);\n\t\t\t\tbreak;\n\n\t\t\tcase 'dark':\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'dark',\n\t\t\t\t\t'body' => '#fff',\n\t\t\t\t\t'text' => '#000',\n\t\t\t\t\t'menuHover' => 'rgba(176, 180, 195, 0.68)',\n\t\t\t\t\t'titles' => '#AFAFAF',\n\t\t\t\t\t'boxes' => '#F1F1F1',\n\t\t\t\t\t'shadows' => '#AFAFAF',\n\t\t\t\t\t'alertBoxes' => '#565659',\n\t\t\t\t\t'alertCircle' => '#252527',\t\t\t\t\t\n\t\t\t\t);\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'default',\n\t\t\t\t\t'body' => '#1F253D',\n\t\t\t\t\t'text' => '#fff',\n\t\t\t\t\t'menuHover' => '#50597b',\n\t\t\t\t\t'titles' => '#11a8ab',\n\t\t\t\t\t'boxes' => '#394264',\n\t\t\t\t\t'shadows' => '#074142',\n\t\t\t\t\t'alertBoxes' => '#1A4E95',\n\t\t\t\t\t'alertCircle' => '#0A3269',\n\t\t\t\t);\n\t\t}\n\n\t\tforeach ($themeDefaults as $key => $val){\n\t\t\t$settings[$key] = $val;\n\t\t}\n\n\t\treturn $settings;\n\t}", "function set_theme_base_url($theme = null)\n{\n switch ($theme) {\n case 'public':\n $baseUrl = PUBLIC_BASE_URL;\n break;\n case 'admin':\n $baseUrl = ADMIN_BASE_URL;\n break;\n case 'install':\n $baseUrl = INSTALL_BASE_URL;\n default:\n $baseUrl = CURRENT_BASE_URL;\n break;\n }\n $front = Zend_Controller_Front::getInstance();\n $previousBases = $front->getParam('previousBaseUrls');\n $previousBases[] = $front->getBaseUrl();\n $front->setParam('previousBaseUrls', $previousBases);\n return $front->setBaseUrl($baseUrl);\n}", "public function theme() {\n // Do nothing by default\n }", "public function getTheme()\n {\n $this->appinfo['theme_vendor'] = DEF_VENDOR;\n $this->appinfo['theme_directory'] = DEF_THEME;\n $this->appinfo['theme_path'] = DIR_APP.DIRECTORY_SEPARATOR.$this->appinfo['theme_vendor'].DIRECTORY_SEPARATOR.DIR_THEMES.DIRECTORY_SEPARATOR.$this->appinfo['theme_directory'];\n $this->appinfo['theme_webpath'] = DIR_APP.'/'.$this->appinfo['theme_vendor'].'/'.DIR_THEMES.'/'.$this->appinfo['theme_directory'];\n }", "public function getDesignTheme();", "function autodidact_theme_setup() {\n\n}", "function set_theme_option($optionName, $optionValue, $themeName = null)\n{\n if (!$themeName) {\n $themeName = Theme::getCurrentThemeName('public');\n }\n Theme::setOption($themeName, $optionName, $optionValue);\n}", "public function setup_theme()\n {\n add_theme_support('title-tag');\n\n /* WP custom logo */\n add_theme_support(\n 'custom-logo',\n [\n 'header-text' => [\n 'site-title',\n 'site-description'\n ],\n 'height' => 100,\n 'width' => 100,\n ]\n );\n\n\n /* Add theme support for selective refresh for widgets */\n add_theme_support('customize-selective-refresh-widgets');\n\n /* Add default posts and comments RSS feed links to head */\n add_theme_support('automatic-feed-links');\n\n /**\n * Switch default core markup for search form, comment form, comment-list, gallery, caption, script and style\n * to output valid HTML5.\n */\n add_theme_support(\n 'html5',\n [\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n 'script',\n 'style',\n ]\n );\n\n /* Gutenberg theme support */\n add_theme_support('wp-block-styles');\n add_theme_support('align-wide');\n add_theme_support('editor-styles');\n\n global $content_width;\n if (!isset($content_width)) $content_width = 1240;\n }", "public static function setTheme(string $themeName)\n {\n if(!is_string($themeName))\n throw new \\Exception('First argument must be a string.');\n\n Helpers::write_ini_file(self::$configuration, 'theme', $themeName);\n }", "private function setup_theme() {\n\n // Use post thumbnails as featured images\n add_theme_support( 'post-thumbnails' );\n\n // Post formats aren't used in this theme.\n remove_theme_support( 'post-formats' );\n\n // Enable support for HTML5 markup.\n add_theme_support( 'html5', [\n 'comment-list',\n 'search-form',\n 'comment-form',\n 'gallery',\n 'caption',\n ] );\n\n // Enable RSS feed links\n add_theme_support( 'automatic-feed-links' );\n\n // Disable comment RSS feeds\n add_filter( 'feed_links_show_comments_feed', '__return_false' );\n\n // Images\n add_image_size( 'medium-square', 300, 300, true );\n\n // Image sizes for responsive content images\n add_image_size( '2048-wide', 2048 );\n add_image_size( '1024-wide', 1024 );\n add_image_size( '800-wide', 800 );\n add_image_size( '640-wide', 640 );\n add_image_size( '480-wide', 480 );\n add_image_size( '400-wide', 400 );\n add_image_size( '320-wide', 320 );\n\n // 16x9 for the lead image\n add_image_size( '2048-16x9', 2048, 1152, true );\n add_image_size( '1024-16x9', 1024, 576, true ); // The size of the lead image\n add_image_size( '800-16x9', 800, 450, true );\n add_image_size( '640-16x9', 640, 360, true );\n add_image_size( '480-16x9', 480, 270, true );\n add_image_size( '400-16x9', 400, 225, true );\n add_image_size( '320-16x9', 320, 180, true );\n\n add_image_size( 'twitter-card', 120, 120, true );\n add_image_size( 'facebook-open-graph', 1200, 630, true );\n\n $sidebars = [\n 'homepage' => esc_html__( 'Homepage', 'pedestal' ),\n ];\n foreach ( $sidebars as $id => $sidebar ) {\n $args = [\n 'name' => $sidebar,\n 'id' => \"sidebar-$id\",\n 'description' => '',\n 'class' => '',\n 'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => \"</li>\\n\",\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => \"</h3>\\n\",\n ];\n register_sidebar( $args );\n }\n\n }", "public function themeSetup()\n\t{\n\n\t\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\t\tadd_editor_style();\n\n\t\t// This theme uses a custom image size for featured images, displayed on \"standard\" posts.\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\n\t\t\n\t\tadd_image_size('hero', 1920, 1080, true );\t\n\t\tadd_image_size('hero-news', 480, 250, true );\t\n\t\tadd_image_size('timeline', 768, 450, true );\t\t\n\t\t//add_image_size('660x400', 660, 400, true );\t\t\n\t\t//add_image_size('810x431', 810, 431, true );\t\t\t\n\n\t\t/**\n\t\t * Make theme available for translation\n\t\t * Translations can be filed in the /languages/ directory\n\t\t * If you're building a theme based on _s, use a find and replace\n\t\t * to change '_s' to the name of your theme in all the template files\n\t\t */\n\t\tload_theme_textdomain( DION_THEME_SLUG, get_template_directory() . '/languages' );\n\t\t\n\n\t\t/**\n\t\t * Add default posts and comments RSS feed links to head\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\n\t\t/**\n\t\t * More menus can be added if necessary\n\t\t */\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Ana Menü', DION_THEME_SLUG ),\n\t\t\t'footer-section' => __( 'Alt Menü', DION_THEME_SLUG ),\n\t\t) );\n\n\n\t}", "function thememount_set_rs_as_theme() {\n\tif(get_option('revSliderAsTheme') != 'true'){\n\t\tupdate_option('revSliderAsTheme', 'true');\n\t}\n\tif(get_option('revslider-valid-notice') != 'false'){\n\t\tupdate_option('revslider-valid-notice', 'false');\n\t}\n\tif( function_exists('set_revslider_as_theme') ){\t\n\t\tset_revslider_as_theme();\n\t}\n}", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "public function settings_field_theme() {\n\t\t?>\n\t\t<select name=\"theme_my_login_recaptcha[theme]\" id=\"theme_my_login_recaptcha_theme\">\n\t\t<?php foreach ( $this->get_themes() as $theme => $theme_name ) : ?>\n\t\t\t<option value=\"<?php echo $theme; ?>\"<?php selected( $this->get_option( 'theme' ), $theme ); ?>><?php echo $theme_name; ?></option>\n\t\t<?php endforeach; ?>\n\t\t</select>\n\t\t<?php\n\t}", "public static function load_themes()\n\t{\n\t\t$config = Kohana::$config->load('site');\n\n\t\t//set admin theme based on path info\n\t\t$path = ltrim(Request::detect_uri(), '/');\n\t\tTheme::$is_admin = ( $path == \"admin\" || !strncmp($path, \"admin/\", 6) );\n\n\t\tif (Theme::$is_admin)\n\t\t{\n\t\t\t// Load the admin theme\n\t\t\tTheme::$admin_theme_name = $config->get('admin_theme', Theme::$admin_theme_name);\n\t\t\tTheme::$active = Theme::$admin_theme_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Load the site theme\n\t\t\tTheme::$site_theme_name = $config->get('theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t//Set mobile theme, if enabled and mobile request\n\t\tif(Request::is_mobile() AND $config->get('mobile_theme', FALSE))\n\t\t{\n\t\t\t// Load the mobile theme\n\t\t\tTheme::$site_theme_name = $config->get('mobile_theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t// Admins can override the site theme, temporarily. This lets us preview themes.\n\t\tif (User::is_admin() AND isset($_GET['theme']) AND $override = $_GET['theme'])\n\t\t{\n\t\t\tif (file_exists(THEMEPATH.$override))\n\t\t\t{\n\t\t\t\tTheme::$site_theme_name = $override;\n\t\t\t\tTheme::$admin_theme_name = $override;\n\t\t\t\tTheme::$active \t\t = $override;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tKohana::$log->add(LOG::ERROR, 'Missing override site theme: :theme', array(':theme' => $override));\n\t\t\t}\n\t\t}\n\n\t\t//Finally set the active theme\n\t\tTheme::set_theme();\n\t}", "private function _setWebConfig()\n {\n $this->map_obj->set(\"name\", \"simplemappr\");\n $this->map_obj->setFontSet($this->font_file);\n $this->map_obj->web->set(\"template\", \"template.html\");\n $this->map_obj->web->set(\"imagepath\", $this->tmp_path);\n $this->map_obj->web->set(\"imageurl\", $this->tmp_url);\n }", "public function theme_installer()\n {\n }", "public function setThemeName($themeName, Request $request);", "public function setTheme($themeName)\n {\n $this->themeLocation = \"src/Application/Themes/\".$themeName.\"/\";\n if (!is_dir(ROOT_PATH.$this->themeLocation))\n throw new Display\\Exception(\"Theme \".$themeName.\" not found at \".ROOT_PATH.$themeLocation);\n }", "public function menu_set_custom_theme()\n {\n return menu_set_custom_theme();\n }", "private function setup_theme() {\n\n\t\tforeach( $this->get_image_sizes() as $image_size => $values ) {\n\t\t\tadd_image_size( $image_size, $values[0], $values[1] );\n\t\t}\n\n\t}", "protected function theme($theme) {\n if(is_string($theme)){\n $theme = AppTheme::load($theme);\n }\n return parent::theme($theme);\n }", "public function init() {\n //Yii::app()->theme = Yii::app()->user->getCurrentTheme();\n //Yii::app()->theme = 'teacher';\n //parent::init();\n }", "public function getTheme();", "public function theme($data)\n\t{\t\n\t\t$theme = Erdiko::getTheme($this->_localConfig['theme']['name'], $this->_localConfig['theme']['namespace'], $this->_localConfig['theme']['path'], $this->_themeExtras);\n\t\t$theme->setLocalConfig($this->_localConfig);\n\t\t\n\t\t// If no data is given load the view\n\t\tif(!isset($data['main_content']))\n\t\t{\n\t\t\t// render the page\n\t\t\t$data['main_content'] = $theme->renderView($this->_pageData['view']['page'], $this->_pageData['data']);\n\t\t}\n\n\t\t$theme->setTitle($this->_pageData['data']['title']);\n\n\t\t// Alter layout if needed\n\t\tif($this->_numberColumns)\n\t\t\t$theme->setNumCloumns($this->_numberColumns);\n\t\tif($this->_layout)\n\t\t\t$theme->setLayout($this->_layout);\n\t\t$theme->setTemplate( $this->getTemplate() );\n\n\t\t// Deal with sidebars for multi-column layouts\n\t\tif(!empty($this->_pageData['sidebar']))\n\t\t\t$theme->setSidebars($this->_pageData['sidebar']);\n\n\t\t$theme->theme($data);\n\t}", "function switch_theme($stylesheet)\n {\n }", "final public function init(){\n\t\twp_register_style( 'tify-tinymce_template', self::tFyAppUrl() . '/theme.css', array(), '1.150317' );\n\t}", "private function configureTemplate(){\n\t\t$viewdirectory = DIR_MODULE . $this->getModule()->getLocation() . 'view/';\n\t\t// add module css\n\t\t$template = $this->getTemplate();\n\t\t$template->addStyle('<link href=\"'.$viewdirectory.'css/style.css\" rel=\"stylesheet\"/>');\n\t\n\t\t$template->setPageTitle($this->getModule()->getDisplayedName());\n\t}", "public function setTheme()\n {\n $name = $this->slim->request->post('name');\n $range = $this->slim->request->post('range');\n\n if (!isset($name) && !isset($range)) {\n throw new PushApiException(PushApiException::NO_DATA);\n }\n\n if (!in_array($range, Theme::getValidValues(), true)) {\n throw new PushApiException(PushApiException::INVALID_RANGE, \"Valid range themes: \" . Theme::UNICAST . \", \" . Theme::MULTICAST . \", \" . Theme::BROADCAST);\n }\n\n // Checking if theme already exists\n $theme = Theme::where('name', $name)->first();\n\n if (!isset($theme->name)) {\n $theme = new Theme;\n $theme->name = $name;\n $theme->range = $range;\n $theme->save();\n }\n\n $this->send($theme->toArray());\n }", "public function switch_theme_handler( $theme ){\n\n\t\t$options = WordpressConnect::getCurrentOptions();\n\n\t\t$options = apply_filters( 'wp_connect_options', $options );\n\n\t\tWordpressConnect::setOptions( $options );\n\n\t}", "private function configureTemplate(){\n\t\t$viewdirectory = DIR_MODULE . $this->getModule()->getLocation() . 'view/';\n\t\t// add module css\n\t\t$template = $this->getTemplate();\n\t\t$template->addStyle('<link href=\"'.$viewdirectory.'css/style.css\" rel=\"stylesheet\"/>');\n\n\t\t$template->setPageTitle($this->getModule()->getDisplayedName());\n\t}", "protected function getTheme()\n {\n return !empty($_GET['theme']) ? $_GET['theme'] : 'basic';\n }", "public function applySkin($control)\n\t{\n\t\t$type=get_class($control);\n\t\tif(($id=$control->getSkinID())==='')\n\t\t\t$id=0;\n\t\tif(isset($this->_skins[$type][$id]))\n\t\t{\n\t\t\tforeach($this->_skins[$type][$id] as $name=>$value)\n\t\t\t{\n\t\t\t\tPrado::trace(\"Applying skin $name to $type\",'Prado\\Web\\UI\\TThemeManager');\n\t\t\t\tif(is_array($value))\n\t\t\t\t{\n\t\t\t\t\tswitch($value[0])\n\t\t\t\t\t{\n\t\t\t\t\t\tcase TTemplate::CONFIG_EXPRESSION:\n\t\t\t\t\t\t\t$value=$this->evaluateExpression($value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_ASSET:\n\t\t\t\t\t\t\t$value=$this->_themeUrl.'/'.ltrim($value[1],'/');\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_DATABIND:\n\t\t\t\t\t\t\t$control->bindProperty($name,$value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_PARAMETER:\n\t\t\t\t\t\t\t$control->setSubProperty($name,$this->getApplication()->getParameters()->itemAt($value[1]));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_TEMPLATE:\n\t\t\t\t\t\t\t$control->setSubProperty($name,$value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_LOCALIZATION:\n\t\t\t\t\t\t\t$control->setSubProperty($name,Prado::localize($value[1]));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new TConfigurationException('theme_tag_unexpected',$name,$value[0]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!is_array($value))\n\t\t\t\t{\n\t\t\t\t\tif(strpos($name,'.')===false)\t// is simple property or custom attribute\n\t\t\t\t\t{\n\t\t\t\t\t\tif($control->hasProperty($name))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($control->canSetProperty($name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$setter='set'.$name;\n\t\t\t\t\t\t\t\t$control->$setter($value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthrow new TConfigurationException('theme_property_readonly',$type,$name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow new TConfigurationException('theme_property_undefined',$type,$name);\n\t\t\t\t\t}\n\t\t\t\t\telse\t// complex property\n\t\t\t\t\t\t$control->setSubProperty($name,$value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function alterConfiguration()\n {\n config()->set('mail.markdown.theme', 'tuxedo');\n config()->set('mail.markdown.paths', array_merge([__DIR__.'/../resources/views'], config('mail.markdown.paths')));\n }", "private function setFormTheme(FormView $formView, $theme) {\n $twig = $this->get('twig');\n\n try {\n $twig\n ->getRuntime('Symfony\\Bridge\\Twig\\Form\\TwigRenderer')\n ->setTheme($formView, $theme);\n } catch (Twig_Error_Runtime $e) {\n // BC for Symfony < 3.2 where this runtime not exists\n $twig\n ->getExtension('Symfony\\Bridge\\Twig\\Extension\\FormExtension')\n ->renderer\n ->setTheme($formView, $theme);\n }\n }", "function set_theme ($theme)\r\n {\r\n $_SESSION[\"theme\"] = $theme;\r\n }", "public function after_setup_theme()\n {\n }", "private function bootstrapTheme()\n {\n $this->setThemeSupport();\n $this->registerMenus();\n $this->registerCPT();\n $this->registerTemplates();\n $this->registerOptionsPages();\n $this->addImageSizes();\n }", "function MicroBuilder_Theme_Factory () {}", "public function setTheme(View $view, $themes)\n {\n $this->themes[$view] = [];\n\n foreach ($themes as $theme) {\n $this->loadBlocks($theme);\n $this->themes[$view] = array_merge($this->themes[$view], [$theme]);\n }\n }", "public function _theme_url() {\n\t\treturn $this->EE->elements->_theme_url();\n\t}", "function theme_sleat_process_css($css, $theme)\n{\n // Set custom CSS.\n if (!empty($theme->settings->customcss)) {\n $customcss = $theme->settings->customcss;\n } else {\n $customcss = null;\n }\n $css = theme_sleat_set_customcss($css, $customcss);\n\n // Define the default settings for the theme incase they've not been set.\n $brandprimary = '#0275d8';\n $defaults = array(\n '[[setting:brandprimary]]' => $brandprimary,\n '[[setting:brandprimary-lighter]]' => theme_sleat_tint($brandprimary, 0.4),\n '[[setting:brandprimary-darker]]' => theme_sleat_shade($brandprimary, 0.4),\n '[[setting:sitewidth]]' => '1200px',\n '[[setting:textcolour]]' => '#373a3c',\n '[[setting:linkcolor]]' => '#0275d8',\n '[[setting:backgroundcolour]]' => '#eceeef',\n '[[setting:sitebackground]]' => 'none',\n '[[setting:sitebackground_size]]' => 'cover',\n '[[setting:sitebackground_repeat]]' => 'none',\n '[[setting:sitebackground_position]]' => 'center center',\n '[[setting:sitebackground_fixed]]' => 'fixed',\n '[[setting:loginbackground]]' => $theme->setting_file_url('loginbackground', 'loginbackground'),\n );\n\n // Get all the defined settings for the theme and replace defaults.\n foreach ($theme->settings as $key => $val) {\n if (array_key_exists('[[setting:'.$key.']]', $defaults) && !empty($val)) {\n $defaults['[[setting:'.$key.']]'] = $val;\n }\n }\n\n $loginbackground = $theme->setting_file_url('loginbackground', 'loginbackground');\n if (array_key_exists('[[setting:loginbackground]]', $defaults) && !empty($loginbackground)) {\n $defaults['[[setting:loginbackground]]'] = $loginbackground;\n }\n\n $sitebackground = $theme->setting_file_url('sitebackground', 'sitebackground');\n if (array_key_exists('[[setting:sitebackground]]', $defaults) && !empty($sitebackground)) {\n $defaults['[[setting:sitebackground]]'] = $sitebackground;\n }\n\n // Replace the CSS with values from the $defaults array.\n $css = strtr($css, $defaults);\n\n return $css;\n}", "public function style_settings() {\n include __DIR__ . \"/views/style_settings.php\";\n }", "public function registerNamespace($theme)\n {\n $this->viewFactory->addNamespace('theme', $this->getThemePath($theme));\n }", "public function ThemeEngineRender(){\n\t\t// Get the path and settings for the Theme\n\t\t$themeName = $this->config['theme']['name'];\n\t\t$themePath = RAND_INSTALL_PATH . \"/themes/{$themeName}\";\n\t\t$themeUrl = $this->request->base_url . \"themes/{$themeName}\"; \n\n\t\t//Add stylesheet\n\t\t$this->data['stylesheet'] = \"{$themeUrl}/style.css\";\n\n\t\t//Include global functions and functions.php from the theme\n\t\t$rd = &$this;\n\t\t$globalFunctions = RAND_INSTALL_PATH . \"themes/functions.php\";\n\t\tif(is_file($globalFunctions)){\n\t\t\tinclude $globalFunctions;\n\t\t}\n\t\t$functionsPath = \"{$themePath}/functions.php\";\n\t\tif(is_file($functionsPath)){\n\t\t\tinclude $functionsPath;\n\t\t}\n\n\t\textract($this->data);\n\t\tinclude(\"{$themePath}/default.tpl.php\");\n\n\n\n\t}", "public static function register_settings() {\n\t\t\tregister_setting( 'ELMT_theme_options', 'ELMT_theme_options', array( 'ELMT_theme_options', 'sanitize' ) );\n\t\t}", "function mytheme_customize_css()\n {\n ?>\n <style type=\"text/css\">\n body {\n background-color: <?php echo get_theme_mod('art_backgroundColour','#ffffff'); ?>!important;\n }\n .myTheme{\n background-color: <?php echo get_theme_mod('art_headerFooterColour', '#000000'); ?>!important ;\n }\n\n\n </style>\n<?php\n}", "public function run()\n {\n if ($this->isDefaultThemeIsSet()) {\n $this->info('Theme is set already');\n return;\n }\n\n $fileConfig = new FileConfigService;\n $activeTheme = $fileConfig->set('theme.active', 'dot');\n $this->success('Set default theme is done');\n $this->insertDefaultTheme();\n $this->success('Insert new theme to database done');\n }", "public static function style_set() {\n\t\t global $I2_USER;\n\t\t if (self::$style == NULL) {\n\t\t\t if (isset($I2_USER)) {\n\t\t\t\t\t self::$style = ($I2_USER->style);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t\t self::$style = 'default';\n\t\t\t }\n\t\t\t d('Style set to '.self::$style,7);\n\t\t }\n\t }", "function change_theme( $blog_id, $theme )\n\t{\n\t\tswitch_to_blog( $blog_id );\n\n\t\tswitch_theme( $theme );\n\t\n\t\trestore_current_blog();\n\t}", "function addTheme(& $site, & $siteElement) {\n\t\tif ($site->getField('theme')) {\n\t\t\t$themeElement =& $this->_document->createElement('theme');\n\t\t\t$siteElement->appendChild($themeElement);\n\n\t\t\t$element =& $this->_document->createElement('name');\n\t\t\t$themeElement->appendChild($element);\n\t\t\t$element->appendChild($this->_document->createTextNode($site->getField('theme')));\n\t\t\t\n\t\t\t// if we have themesettings, add them\n\t\t\tif ($themesettings = $site->getField('themesettings')) {\n\t\t\t\t$settingsArray = unserialize(urldecode($themesettings));\n\t\t\t\t\n\t\t\t\t$settingsParts = array(\n\t\t\t\t\t\t\n\t\t\t\t\t\t'color_scheme' => 'colorscheme',\n\t\t\t\t\t\t'background_color' => 'bgcolor',\n\t\t\t\t\t\t'border_style' => 'borderstyle',\n\t\t\t\t\t\t'border_color' => 'bordercolor',\n\t\t\t\t\t\t'text_color' => 'textcolor',\n\t\t\t\t\t\t'link_color' => 'linkcolor',\n\t\t\t\t\t\t'navigation_arrangement' => 'nav_arrange',\n\t\t\t\t\t\t'site_width' => 'site_width',\n\t\t\t\t\t\t'navigation_width' => 'nav_width',\n\t\t\t\t\t\t'section_nav_size' => 'sectionnav_size',\n\t\t\t\t\t\t'page_nav_size' => 'nav_size'\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\tforeach ($settingsParts as $tag => $key) {\n\t\t\t\t\t\n\t\t\t\t\tif ($settingsArray[$key]) {\n\t\t\t\t\t\t$element =& $this->_document->createElement($tag);\n\t\t\t\t\t\t$themeElement->appendChild($element);\n\t\t\t\t\t\t$element->appendChild($this->_document->createTextNode($settingsArray[$key]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function setTheme($theme) {\n $this->checkNotStopped();\n $this->_theme = $theme;\n return $this;\n }", "public function themeFramework()\r\n\t{\r\n\t\treturn 'angular';\r\n\t}", "public static function register_settings() {\n\t\t\tregister_setting( 'theme_options', 'theme_options', array( 'IODD_Theme_Options', 'sanitize' ) );\n\t\t}", "private function set_styles()\n {\n\n if (count($this->assets_css['global']) > 0)\n {\n $this->template->append_metadata('<!-- BEGIN GLOBAL MANDATORY STYLES -->');\n foreach($this->assets_css['global'] as $asset)\n {\n $this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . '../../themes/public/css/' . $asset . '\" media=\"screen\" />');\n }\n }\n if (isset($this->assets_css['page_style']) && count($this->assets_css['page_style']) > 0)\n {\n $this->template->append_metadata('<!-- BEGIN PAGE STYLES -->');\n foreach($this->assets_css['page_style'] as $asset)\n {\n $this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . '../../themes/public/css/' . $asset . '\" media=\"screen\" />');\n }\n }\n\n // Webkit based browsers\n //$this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/webkit.css\" media=\"screen\" />');\n\n // Internet Explorer styles\n $this->template->append_metadata('<!--[if IE 6]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie6.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 7]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie7.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 8]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie8.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 9]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie9.css\" media=\"screen\" /><![endif]-->');\n }", "function settingsCustomizeRegister($wp_customize)\n{\n\t$wp_customize->add_section(\n\t\t'settings_section',\n\t\tarray(\n\t\t\t'title' => 'Theme Settings',\n\t\t\t'description' => 'Edit the theme setings.',\n\t\t\t'priority' => 0,\n\t\t)\n\t);\n\t\n\t$wp_customize->add_setting(\n\t\t'google_maps_api_key',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\t\n\t$wp_customize->add_control(\n\t\t'google_maps_api_key',\n\t\tarray(\n\t\t\t'label' => 'Google Maps API Key',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\t\n\t$wp_customize->add_setting(\n\t\t'navbar_type',\n\t\tarray(\n\t\t\t'default' => 'Inline',\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\t\n\t$wp_customize->add_control(\n\t\t'navbar_type',\n\t\tarray(\n\t\t\t'label' => 'Navbar Type',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'select',\n\t\t\t'choices' => array(\n\t\t\t\t'inline' => 'Inline',\n\t\t\t\t'layered' => 'Layered',\n\t\t\t\t'layered--centered' => 'Layered but Centered',\n\t\t\t\t'logo-center' => 'Layered with logo in center',\n\t\t\t)\n\t\t)\n\t);\n\n\t$wp_customize->add_setting(\n\t\t'facebook_url',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\t\n\t$wp_customize->add_control(\n\t\t'facebook_url',\n\t\tarray(\n\t\t\t'label' => 'Facebook Profile URL',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\n\t$wp_customize->add_setting(\n\t\t'twitter_url',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\n\t$wp_customize->add_control(\n\t\t'twitter_url',\n\t\tarray(\n\t\t\t'label' => 'Twitter Profile URL',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\n\t$wp_customize->add_setting(\n\t\t'instagram_url',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\n\t$wp_customize->add_control(\n\t\t'instagram_url',\n\t\tarray(\n\t\t\t'label' => 'Instagram Profile URL',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\n\t$wp_customize->add_setting(\n\t\t'github_url',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\n\t$wp_customize->add_control(\n\t\t'github_url',\n\t\tarray(\n\t\t\t'label' => 'Github Profile URL',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\n\t$wp_customize->add_setting(\n\t\t'linkedin_url',\n\t\tarray(\n\t\t\t'type' => 'option',\n\t\t)\n\t);\n\n\t$wp_customize->add_control(\n\t\t'linkedin_url',\n\t\tarray(\n\t\t\t'label' => 'LinkedIn Profile URL',\n\t\t\t'section' => 'settings_section',\n\t\t\t'type' => 'text'\n\t\t)\n\t);\n\n $wp_customize->add_setting(\n 'youtube_url',\n array(\n 'type' => 'option',\n )\n );\n\n $wp_customize->add_control(\n 'youtube_url',\n array(\n 'label' => 'Youtube Channel URL',\n 'section' => 'settings_section',\n 'type' => 'text'\n )\n );\n\n}", "public function getTheme () {\n $admin = Yii::app()->settings;\n \n if ($admin->enforceDefaultTheme && $admin->defaultTheme !== null) {\n $theme = $this->getDefaultTheme ();\n if ($theme) return $theme;\n } \n \n return $this->theme;\n }", "public function set($theme)\n {\n return $this->setCurrent($theme);\n }", "public function setTheme($theme)\n {\n if ($this->_themeExists($theme)) {\n $this->_theme = (string) $theme;\n $this->_resetPaths();\n return true;\n }\n return false;\n }", "public function switch_theme($name_theme) {\r\n\t\t\t$i = self::new_instance();\r\n\t\t\tif(!empty($i->wpeologs_settings['my_services'][\"themes\"]) && $i->wpeologs_settings['my_services'][\"themes\"]['service_active'])\r\n\t\t\t\tself::log_datas_in_files(\"themes\", array(\"object_id\" => $name_theme, \"message\" => __('The theme ' . $name_theme . ' is activated')), 0);\r\n\t\t}", "public function set_theme_mode($mode)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->_set_parameter('theme_mode', $mode);\n }", "function wp_using_themes()\n {\n }", "function wp_theme_auto_update_setting_template()\n {\n }", "public function setContext($contextName, $configDir = \"/app/config/contexts/\")\n\t{\n\t\t$config = Erdiko::getConfigFile($this->_webroot.$configDir.$contextName.\".json\");\n\t\t$this->_localConfig['theme'] = $config['theme']; // swap out theme configs\n\t\t// error_log(\"config: \".print_r($config, true));\n\t}", "public function update_midrub_frontend_theme() {\n \n // Verify if the frontend theme can be updated\n (new MidrubBaseAdminCollectionUpdateHelpers\\Frontend_themes)->verify();\n \n }", "function htmlconvertwordpresstheme($wp_customize){\n $wp_customize->add_panel('htmlconvertwordpresstheme_settings', array(\n\n 'title'=>__('htmlconvertwordpresstheme_settings'),\n 'description' =>'',\n 'priority'=>10,\n\n\n ));\n\n\n $wp_customize->add_section('htmlconvertwordpresstheme_colors', array(\n 'title'=>'color',\n 'panel'=> 'htmlconvertwordpresstheme_settings',\n\n\n ));\n\n\n $wp_customize->add_setting('htmlconvertwordpresstheme_nav_bg_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n ));\n\n\n $wp_customize->add_control('htmlconvertwordpresstheme_nav_bg_color', array(\n \n 'label'=>__('Menu Background'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n ));\n\n/* customize setting body background color*/\n$wp_customize->add_setting('htmlconvertwordpresstheme_body_background_color', array(\n\n 'type'=>'theme_mod',\n 'capability'=> 'edit_theme_options',\n 'default'=>'#fff',\n 'transport'=>'refresh',\n 'sanitize_callback'=>'sanitize_hex_color',\n));\n\n\n$wp_customize->add_control('htmlconvertwordpresstheme_body_background_color', array(\n\n 'label'=>__('Body Background color'),\n 'type'=>'color',\n 'section'=>'htmlconvertwordpresstheme_colors',\n));\n\n\n}", "public static function get_core_default_theme()\n {\n }" ]
[ "0.72090924", "0.681749", "0.6557434", "0.6549071", "0.6221505", "0.61645657", "0.6155534", "0.6144889", "0.6144313", "0.6046996", "0.6020954", "0.5997792", "0.5964339", "0.5890587", "0.5857309", "0.58411515", "0.5833647", "0.5825682", "0.5825133", "0.58121455", "0.5809484", "0.57954407", "0.5793757", "0.5785915", "0.5781365", "0.5778778", "0.5760515", "0.574412", "0.5726752", "0.57250667", "0.57129186", "0.57104504", "0.5706466", "0.5686863", "0.568085", "0.56720454", "0.567049", "0.56637347", "0.5635057", "0.5625505", "0.5622225", "0.5597111", "0.5586343", "0.5577479", "0.55465704", "0.5533966", "0.5531965", "0.5530905", "0.55288535", "0.55073655", "0.5476349", "0.54703695", "0.5464813", "0.5463461", "0.54613245", "0.5459306", "0.5454745", "0.5432935", "0.54221934", "0.54059917", "0.539601", "0.53938454", "0.53881615", "0.5381078", "0.5375018", "0.53701055", "0.53605783", "0.534794", "0.5345649", "0.5343043", "0.5335327", "0.5328045", "0.53129065", "0.53112215", "0.53089243", "0.5299011", "0.52901804", "0.52855545", "0.52849555", "0.5282922", "0.52821594", "0.5275973", "0.5273194", "0.52699417", "0.5267844", "0.52633005", "0.5249348", "0.52460885", "0.52418613", "0.5240408", "0.52398384", "0.52356297", "0.523533", "0.5234138", "0.52337986", "0.5227872", "0.5227086", "0.52270746", "0.52182287", "0.5218168" ]
0.6127466
9
Sets the theme mode for webconfig.
public function set_theme_mode($mode) { clearos_profile(__METHOD__, __LINE__); $this->_set_parameter('theme_mode', $mode); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppTheme($themeName = '');", "public function setDefaultDesignTheme();", "function cinerama_edge_register_theme_settings() {\n\t\tregister_setting( EDGE_OPTIONS_SLUG, 'edgtf_options' );\n\t}", "public function setup_theme()\n {\n }", "function chocorocco_customizer_action_switch_theme() {\n\t\tif (false) chocorocco_customizer_save_css();\n\t}", "function setTheme($theme) {\n $this->local_theme = $theme;\n if(isset($this->xTemplate))$this->xTemplate->assign(\"THEME\", $this->local_theme);\n}", "function tsc_theme_options() {\n\tadd_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'tsc_theme_options_page' );\n}", "public function setTheme($theme)\n {\n $this->theme = $theme;\n }", "public function set_theme($theme)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->_set_parameter('theme', $theme);\n }", "public function apply_theme()\n\t{\n\t\treturn 'twentyten';\n\t}", "public function theme()\n {\n }", "function set_theme_mod($name, $value)\n {\n }", "function autodidact_theme_setup() {\n\n}", "public function themeSetup()\n {\n add_theme_support('title-tag');\n add_theme_support('post-thumbnails');\n add_theme_support('html5', [\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n ]);\n\n add_theme_support('align-wide');\n\n add_theme_support('editor-color-palette', \\Fp\\Fabric\\fabric()->config('theme.colours'));\n\n // Disables custom colors in block color palette.\n add_theme_support('disable-custom-colors');\n }", "public static function set_theme($theme = FALSE)\n\t{\n\t\tif( !empty($theme)) Theme::$active = $theme;\n\n\t\t$modules = Kohana::modules();\n\t\tif( ! empty(Theme::$active) AND ! in_array(Theme::$active, array_keys($modules)))\n\t\t{\n\t\t\t//set absolute theme path and load the request theme as kohana module\n\t\t\tKohana::modules(array('theme' => THEMEPATH.Theme::$active) + $modules);\n\t\t}\n\t\n\t\tunset($modules);\n\t}", "public function setup_config() {\n\t\t$theme = wp_get_theme();\n\n\t\t$this->theme_args['name'] = apply_filters( 'ti_wl_theme_name', $theme->__get( 'Name' ) );\n\t\t$this->theme_args['template'] = $theme->get( 'Template' );\n\t\t$this->theme_args['version'] = $theme->__get( 'Version' );\n\t\t$this->theme_args['description'] = apply_filters( 'ti_wl_theme_description', $theme->__get( 'Description' ) );\n\t\t$this->theme_args['slug'] = $theme->__get( 'stylesheet' );\n\t}", "public function setConfig($fileName)\n {\n // Get the theme's config file\n $themeConfig = $this->path . '/' . $fileName;\n\n // If the theme has a config file, set hasConfig to true.\n $this->hasConfig = (file_exists($themeConfig) && is_readable($themeConfig));\n }", "function configure_theme($themeFile) {\n $newEntry = $this->GetThemeInfo($this->css_dir.$themeFile);\n $this->products->columns = $newEntry['columns'];\n }", "function setTheme($name, $load=true)\n {\n $this->m_themeName = $name;\n $this->m_themeLoad = $load;\n }", "public function initTheme($theme_name);", "public static function setSiteStyling()\n {\n $styling = SiteManagement::getMetaValue('settings');\n if (!empty($styling[0]['enable_theme_color']) && $styling[0]['enable_theme_color'] == 'true') {\n if (!empty($styling[0]['primary_color'])) {\n ob_start(); ?>\n <style>\n /* Theme Text Color */\n a,\n p a,\n p a:hover,\n a:hover,\n a:focus,\n a:active,\n .wt-navigation>ul>li:hover>a,\n .wt-navigation>ul>li.current-menu-item>a,\n .wt-navarticletab li:hover a,\n .wt-navarticletab li a.active,\n .wt-categoriescontent li a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-effectivecontent li:hover a,\n .wt-articlesingle-content .wt-description .wt-blockquotevone q,\n .wt-filtertag li:hover a,\n .wt-userlisting-breadcrumb li .wt-clicksave,\n .wt-clicksave,\n .wt-qrcodefeat h3 span,\n .wt-comfollowers ul li:hover a span,\n .wt-postarticlemeta .wt-following span,\n .tg-qrcodefeat h3 span,\n .active-category {\n color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Background Color */\n .wt-btn:hover,\n .wt-dropdowarrow,\n .navbar-toggle,\n .wt-btn,\n .wt-navigationarea .wt-navigation>ul>li>a:after,\n .wt-searchbtn,\n .wt-sectiontitle:after,\n .wt-navarticletab li a:after,\n .wt-pagination ul li a:hover,\n .wt-pagination ul li.wt-active a,\n .wt-widgettag a:hover,\n .wt-articlesingle-content .wt-description blockquote span i,\n .wt-searchgbtn,\n .wt-filtertagclear a,\n .ui-slider-horizontal .ui-slider-range,\n .wt-btnsearch,\n .wt-newnoti a em,\n .wt-notificationicon>a:after,\n .wt-rightarea .wt-nav .navbar-toggler,\n .wt-usersidebaricon span,\n .wt-usersidebaricon span i,\n .wt-filtertag .wt-filtertagclear a,\n .loader:before,\n .wt-offersmessages .wt-ad:after,\n .wt-btnsendmsg,\n .wt-tabstitle li a:before,\n .wt-tabscontenttitle:before,\n .wt-tablecategories thead tr th:first-child:before,\n .wt-tablecategories tbody tr td:first-child:before,\n .wt-slidernav .wt-prev:hover,\n .wt-slidernav .wt-next:hover,\n .vb>.vb-dragger>.vb-dragger-styler,\n .wt-pagination ul li span,\n .la-banner-settings .wt-location h5:after,\n .la-section-settings .wt-location h6:after,\n .wt-forgotpassword-holder .card .card-body form .form-group button[type=submit] {\n background: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* Theme Border Color */\n input:focus,\n .select select:focus,\n .form-control:focus,\n .wt-navigation>ul>li>.sub-menu,\n .wt-pagination ul li a:hover,\n .wt-widgettag a:hover,\n .wt-joinsteps li.wt-active a,\n .wt-filtertag li:hover a,\n .wt-filtertag .wt-filtertagclear a,\n .wt-themerangeslider .ui-slider-handle,\n .wt-clicksavebtn,\n .wt-pagination ul li.wt-active a,\n .wt-usernav>ul,\n .wt-pagination ul li span {\n border-color: <?php echo $styling[0]['primary_color'] ?>;\n }\n\n /* RGBA Background Color */\n .loader{\n background: <?php echo $styling[0]['primary_color'] ?>;\n background: -moz-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -webkit-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -o-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: -ms-linear-gradient(left, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n background: linear-gradient(to right, <?php echo $styling[0]['primary_color'] ?> 10%, rgba(255, 88, 81, 0) 42%);\n }\n </style>\n <?php return ob_get_clean();\n }\n }\n }", "function thememount_set_rs_as_theme() {\n\tif(get_option('revSliderAsTheme') != 'true'){\n\t\tupdate_option('revSliderAsTheme', 'true');\n\t}\n\tif(get_option('revslider-valid-notice') != 'false'){\n\t\tupdate_option('revslider-valid-notice', 'false');\n\t}\n\tif( function_exists('set_revslider_as_theme') ){\t\n\t\tset_revslider_as_theme();\n\t}\n}", "public function get_theme_mode()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n if (! $this->is_loaded)\n $this->_load_config();\n\n return $this->config['theme_mode'];\n }", "public function getDesignTheme();", "public function setTheme(\\Magento\\Framework\\View\\Design\\ThemeInterface $theme);", "public function theme() {\n // Do nothing by default\n }", "public function settings_field_theme() {\n\t\t?>\n\t\t<select name=\"theme_my_login_recaptcha[theme]\" id=\"theme_my_login_recaptcha_theme\">\n\t\t<?php foreach ( $this->get_themes() as $theme => $theme_name ) : ?>\n\t\t\t<option value=\"<?php echo $theme; ?>\"<?php selected( $this->get_option( 'theme' ), $theme ); ?>><?php echo $theme_name; ?></option>\n\t\t<?php endforeach; ?>\n\t\t</select>\n\t\t<?php\n\t}", "public function theme($theme)\n {\n $themepath = $this->dir . '/theme/' . $theme;\n if (is_dir(realpath($themepath))) {\n $this->theme = $theme;\n }\n }", "public static function setAdmin($theme) {\n variable_set('admin_theme', $theme);\n }", "public function init() {\n Yii::app()->theme = 'bootstrap';\n }", "function set_theme_option($optionName, $optionValue, $themeName = null)\n{\n if (!$themeName) {\n $themeName = Theme::getCurrentThemeName('public');\n }\n Theme::setOption($themeName, $optionName, $optionValue);\n}", "public function setTheme(string $theme)\n {\n if (!empty($theme)) {\n $this->theme = $theme;\n }\n }", "public function _setViewTheme($theme)\n\t{\n\t\t\n\t\t$theme_dir = APPPATH.DIRECTORY_SEPARATOR.VIEWS_DIR.DIRECTORY_SEPARATOR.VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme;\n\t\t$this->theme_public_dir = BASE_URL.'/'.THEMES_PUBLIC_DIR.\"{$theme}/\";\n\t\tif (is_dir($theme_dir))\n\t\t{\n\t\t\t$this->theme = $theme;\n\t\t\t$this->theme_dir = $theme_dir;\n\t\t\t$this->theme_open_view = VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme.DIRECTORY_SEPARATOR.THEME_OPEN_VIEW;\n\t\t\t$this->theme_close_view = VIEWS_THEME_DIR.DIRECTORY_SEPARATOR.$theme.DIRECTORY_SEPARATOR.THEME_CLOSE_VIEW;\n\t\t}\n\t\telse\n\t\t{\n\t\t\texit('Invalid Theme Specified: '.$theme_dir); // TODO: Proper error handling\n\t\t}\n\t\t\n\t}", "function set_theme($params)\n\t{\n\n\t\t(object) $theme = array_to_object($params);\n\n \t/**\n \t * ----------------------------------------------------------------------\n\t\t * The YoteyoteUI Main Configuration data array.\n\t\t * ----------------------------------------------------------------------\n\t\t */\n/*\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => 'Yoteyote',\n\t\t\t 'version' => '1.0',\n\t\t\t 'author' => 'Yoteyote',\n\t\t\t 'title' => 'YoteyoteUI - Premium Web App and Admin Template',\n\t\t\t 'description' => 'YoteyoteUI is a Premium Web App and Admin Template',\n\t\t\t\t'keywords' => 'Yoteyote',\n\n\t\t\t // '' empty to remove full width from the page (< 992px: 100%, > 992px: 95%, 1440px max width)\n\t\t\t // 'full-width' for a full width page (100%, 1920px max width)\n\t\t\t 'page' => 'full-width',\n\n\t\t\t // 'navbar-default' for a light header\n\t\t\t // 'navbar-inverse' for a dark header\n\t\t\t 'header_navbar' => 'navbar-default',\n\n\t\t\t // 'navbar-fixed-top' for a top fixed header\n\t\t\t // 'navbar-fixed-bottom' for a bottom fixed header\n\t\t\t 'header' => 'navbar-fixed-top',\n\n\t\t\t // '' left sidebar will open only from the top left toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of left sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_left' => 'enable-hover',\n\n\t\t\t // '' right sidebar will open only from the top right toggle button (better website performance)\n\t\t\t // 'enable-hover' will make a small portion of right sidebar visible, so that it can be opened with a mouse hover (> 1200px) (may affect website performance)\n\t\t\t 'sidebar_right' => '',\n\n\t\t\t // '' empty for default behavior\n\t\t\t // 'sidebar-left-pinned' for a left pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-right-pinned' for a right pinned sidebar (always visible > 1200px)\n\t\t\t // 'sidebar-left-pinned sidebar-right-pinned' for both sidebars pinned (always visible > 1200px)\n\t\t\t 'navigation' => '',\n\n\t\t\t // All effects apply in resolutions larger than 1200px width\n\t\t\t // 'fx-none' remove all effects from main content when one of the sidebars are open (better website performance)\n\t\t\t // 'fx-opacity' opacity effect\n\t\t\t // 'fx-move' move effect\n\t\t\t // 'fx-push' push effect\n\t\t\t // 'fx-rotate' rotate effect\n\t\t\t // 'fx-push-move' push-move effect\n\t\t\t // 'fx-push-rotate' push-rotate effect\n\t\t\t 'content_fx' => 'fx-opacity',\n\n\t\t\t // Available themes: 'river', 'amethyst' , 'dragon', 'emerald', 'grass' or '' leave empty for the default fresh orange\n\t\t\t 'theme' => 'dragon',\n\t\t\t //'theme' => $this->input->cookie('theme_cookie', TRUE),\n\n\t\t\t //'active_page' => basename($_SERVER['PHP_SELF']),\n\t\t\t 'active_page' => current_url($page), // To get the CI current page.\n\t\t\t),\n\t\t);\n*/\n\n\t\t$data = array(\n\t\t\t'template' => array(\n \t\t\t'name' => $theme->name,\n\t\t\t 'version' => $theme->version,\n\t\t\t 'author' => $theme->author,\n\t\t\t 'title' => $theme->title,\n\t\t\t 'description' => $theme->description,\n\t\t\t\t'keywords' => $theme->keywords,\n\t\t\t 'page' => $theme->page,\n\t\t\t 'header_navbar' => $theme->header_navbar,\n\t\t\t 'header' => $theme->header,\n\t\t\t 'sidebar_left' => $theme->sidebar_left,\n\t\t\t 'sidebar_right' => $theme->sidebar_right,\n\t\t\t 'navigation' => $theme->navigation,\n\t\t\t 'content_fx' => $theme->content_fx,\n\t\t\t 'theme' => $theme->theme,\n\t\t\t 'active_page' => $theme->active_page,\n\t\t\t),\n\t\t);\n\n\t\treturn $data;\n\t}", "public function switch_theme_handler( $theme ){\n\n\t\t$options = WordpressConnect::getCurrentOptions();\n\n\t\t$options = apply_filters( 'wp_connect_options', $options );\n\n\t\tWordpressConnect::setOptions( $options );\n\n\t}", "private function setup_theme() {\n\n // Use post thumbnails as featured images\n add_theme_support( 'post-thumbnails' );\n\n // Post formats aren't used in this theme.\n remove_theme_support( 'post-formats' );\n\n // Enable support for HTML5 markup.\n add_theme_support( 'html5', [\n 'comment-list',\n 'search-form',\n 'comment-form',\n 'gallery',\n 'caption',\n ] );\n\n // Enable RSS feed links\n add_theme_support( 'automatic-feed-links' );\n\n // Disable comment RSS feeds\n add_filter( 'feed_links_show_comments_feed', '__return_false' );\n\n // Images\n add_image_size( 'medium-square', 300, 300, true );\n\n // Image sizes for responsive content images\n add_image_size( '2048-wide', 2048 );\n add_image_size( '1024-wide', 1024 );\n add_image_size( '800-wide', 800 );\n add_image_size( '640-wide', 640 );\n add_image_size( '480-wide', 480 );\n add_image_size( '400-wide', 400 );\n add_image_size( '320-wide', 320 );\n\n // 16x9 for the lead image\n add_image_size( '2048-16x9', 2048, 1152, true );\n add_image_size( '1024-16x9', 1024, 576, true ); // The size of the lead image\n add_image_size( '800-16x9', 800, 450, true );\n add_image_size( '640-16x9', 640, 360, true );\n add_image_size( '480-16x9', 480, 270, true );\n add_image_size( '400-16x9', 400, 225, true );\n add_image_size( '320-16x9', 320, 180, true );\n\n add_image_size( 'twitter-card', 120, 120, true );\n add_image_size( 'facebook-open-graph', 1200, 630, true );\n\n $sidebars = [\n 'homepage' => esc_html__( 'Homepage', 'pedestal' ),\n ];\n foreach ( $sidebars as $id => $sidebar ) {\n $args = [\n 'name' => $sidebar,\n 'id' => \"sidebar-$id\",\n 'description' => '',\n 'class' => '',\n 'before_widget' => '<li id=\"%1$s\" class=\"widget %2$s\">',\n 'after_widget' => \"</li>\\n\",\n 'before_title' => '<h3 class=\"widget-title\">',\n 'after_title' => \"</h3>\\n\",\n ];\n register_sidebar( $args );\n }\n\n }", "public function set($themeName)\r\n {\r\n if ($this->exists($themeName)) {\r\n $theme = $this->find($themeName);\r\n } else {\r\n $theme = new Theme($themeName);\r\n }\r\n\r\n $this->activeTheme = $theme;\r\n\r\n // Get theme view paths\r\n $paths = $theme->getViewPaths();\r\n\r\n // fall-back to default paths (set in views.php config file)\r\n foreach ($this->laravelViewsPath as $path) {\r\n if (!in_array($path, $paths)) {\r\n $paths[] = $path;\r\n }\r\n }\r\n\r\n config(['view.paths' => $paths]);\r\n\r\n $themeViewFinder = app('view.finder');\r\n $themeViewFinder->setPaths($paths);\r\n Event::dispatch('igaster.laravel-theme.change', $theme);\r\n return $theme;\r\n }", "public function set_theme( $theme = NULL ) {\n $this->_theme = $theme;\n foreach ( $this->_theme_locations as $location ) {\n if ( $this->_theme AND file_exists( $location . $this->_theme ) ) {\n $this->_theme_path = rtrim( $location . $this->_theme . '/' );\n break;\n }\n }\n\n return $this;\n }", "public static function setDefault($theme) {\n variable_set('theme_default', $theme);\n }", "protected function getTheme()\n {\n return !empty($_GET['theme']) ? $_GET['theme'] : 'basic';\n }", "public function setThemeName($themeName, Request $request);", "function define_theme_colors($theme, $settings)\n\t{\n\t\tswitch ($theme) \n\t\t{\n\t\t\tcase 'light':\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'light',\n\t\t\t\t\t'body' => '#C5AC91',\n\t\t\t\t\t'text' => '#000',\n\t\t\t\t\t'menuHover' => 'rgba(252, 180, 103, 0.65)',\n\t\t\t\t\t'titles' => '#FCB467',\n\t\t\t\t\t'boxes' => '#fff',\n\t\t\t\t\t'shadows' => '#565659',\n\t\t\t\t\t'alertBoxes' => '#8A3324',\n\t\t\t\t\t'alertCircle' => '#4E231C',\n\t\t\t\t);\n\t\t\t\tbreak;\n\n\t\t\tcase 'dark':\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'dark',\n\t\t\t\t\t'body' => '#fff',\n\t\t\t\t\t'text' => '#000',\n\t\t\t\t\t'menuHover' => 'rgba(176, 180, 195, 0.68)',\n\t\t\t\t\t'titles' => '#AFAFAF',\n\t\t\t\t\t'boxes' => '#F1F1F1',\n\t\t\t\t\t'shadows' => '#AFAFAF',\n\t\t\t\t\t'alertBoxes' => '#565659',\n\t\t\t\t\t'alertCircle' => '#252527',\t\t\t\t\t\n\t\t\t\t);\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t\n\t\t\tdefault:\n\t\t\t\t$themeDefaults = array(\n\t\t\t\t\t'theme' => 'default',\n\t\t\t\t\t'body' => '#1F253D',\n\t\t\t\t\t'text' => '#fff',\n\t\t\t\t\t'menuHover' => '#50597b',\n\t\t\t\t\t'titles' => '#11a8ab',\n\t\t\t\t\t'boxes' => '#394264',\n\t\t\t\t\t'shadows' => '#074142',\n\t\t\t\t\t'alertBoxes' => '#1A4E95',\n\t\t\t\t\t'alertCircle' => '#0A3269',\n\t\t\t\t);\n\t\t}\n\n\t\tforeach ($themeDefaults as $key => $val){\n\t\t\t$settings[$key] = $val;\n\t\t}\n\n\t\treturn $settings;\n\t}", "function mmpm_register_theme_options() {\n\t\tregister_setting( 'mmpm_options_group', MMPM_OPTIONS_DB_NAME );\n//\t\tregister_setting( 'mmpm_options_group', MMPM_SKIN_DB_NAME );\n\t}", "public function setTheme($theme)\n {\n if ($this->_themeExists($theme)) {\n $this->_theme = (string) $theme;\n $this->_resetPaths();\n return true;\n }\n return false;\n }", "function set_theme_base_url($theme = null)\n{\n switch ($theme) {\n case 'public':\n $baseUrl = PUBLIC_BASE_URL;\n break;\n case 'admin':\n $baseUrl = ADMIN_BASE_URL;\n break;\n case 'install':\n $baseUrl = INSTALL_BASE_URL;\n default:\n $baseUrl = CURRENT_BASE_URL;\n break;\n }\n $front = Zend_Controller_Front::getInstance();\n $previousBases = $front->getParam('previousBaseUrls');\n $previousBases[] = $front->getBaseUrl();\n $front->setParam('previousBaseUrls', $previousBases);\n return $front->setBaseUrl($baseUrl);\n}", "public function themeFramework()\r\n\t{\r\n\t\treturn 'angular';\r\n\t}", "public static function register_settings() {\n\t\t\tregister_setting( 'ELMT_theme_options', 'ELMT_theme_options', array( 'ELMT_theme_options', 'sanitize' ) );\n\t\t}", "function preview_theme()\n {\n }", "public function getThemeConfiguration()\n {\n return $this->getParameter('themeConfiguration');\n }", "public function themeSetup()\n\t{\n\n\t\t// This theme styles the visual editor with editor-style.css to match the theme style.\n\t\tadd_editor_style();\n\n\t\t// This theme uses a custom image size for featured images, displayed on \"standard\" posts.\n\t\tadd_theme_support( 'post-thumbnails' );\n\n\n\t\t\n\t\tadd_image_size('hero', 1920, 1080, true );\t\n\t\tadd_image_size('hero-news', 480, 250, true );\t\n\t\tadd_image_size('timeline', 768, 450, true );\t\t\n\t\t//add_image_size('660x400', 660, 400, true );\t\t\n\t\t//add_image_size('810x431', 810, 431, true );\t\t\t\n\n\t\t/**\n\t\t * Make theme available for translation\n\t\t * Translations can be filed in the /languages/ directory\n\t\t * If you're building a theme based on _s, use a find and replace\n\t\t * to change '_s' to the name of your theme in all the template files\n\t\t */\n\t\tload_theme_textdomain( DION_THEME_SLUG, get_template_directory() . '/languages' );\n\t\t\n\n\t\t/**\n\t\t * Add default posts and comments RSS feed links to head\n\t\t */\n\t\tadd_theme_support( 'automatic-feed-links' );\n\n\n\t\t/**\n\t\t * More menus can be added if necessary\n\t\t */\n\t\tregister_nav_menus( array(\n\t\t\t'primary' => __( 'Ana Menü', DION_THEME_SLUG ),\n\t\t\t'footer-section' => __( 'Alt Menü', DION_THEME_SLUG ),\n\t\t) );\n\n\n\t}", "public function btn_change_theme($e){\r\n\t\t\r\n\t\treturn $this->mudule_btn_change_theme($e);\r\n\t}", "public static function setTheme(string $themeName)\n {\n if(!is_string($themeName))\n throw new \\Exception('First argument must be a string.');\n\n Helpers::write_ini_file(self::$configuration, 'theme', $themeName);\n }", "function set_theme ($theme)\r\n {\r\n $_SESSION[\"theme\"] = $theme;\r\n }", "protected function theme($theme) {\n if(is_string($theme)){\n $theme = AppTheme::load($theme);\n }\n return parent::theme($theme);\n }", "private function setThemeSupport()\n {\n if (isset($this->config['featuredImages']) && $this->config['featuredImages']) {\n add_theme_support('post-thumbnails');\n }\n }", "private function _setWebConfig()\n {\n $this->map_obj->set(\"name\", \"simplemappr\");\n $this->map_obj->setFontSet($this->font_file);\n $this->map_obj->web->set(\"template\", \"template.html\");\n $this->map_obj->web->set(\"imagepath\", $this->tmp_path);\n $this->map_obj->web->set(\"imageurl\", $this->tmp_url);\n }", "public static function load_themes()\n\t{\n\t\t$config = Kohana::$config->load('site');\n\n\t\t//set admin theme based on path info\n\t\t$path = ltrim(Request::detect_uri(), '/');\n\t\tTheme::$is_admin = ( $path == \"admin\" || !strncmp($path, \"admin/\", 6) );\n\n\t\tif (Theme::$is_admin)\n\t\t{\n\t\t\t// Load the admin theme\n\t\t\tTheme::$admin_theme_name = $config->get('admin_theme', Theme::$admin_theme_name);\n\t\t\tTheme::$active = Theme::$admin_theme_name;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Load the site theme\n\t\t\tTheme::$site_theme_name = $config->get('theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t//Set mobile theme, if enabled and mobile request\n\t\tif(Request::is_mobile() AND $config->get('mobile_theme', FALSE))\n\t\t{\n\t\t\t// Load the mobile theme\n\t\t\tTheme::$site_theme_name = $config->get('mobile_theme', Theme::$site_theme_name);\n\t\t\tTheme::$active = Theme::$site_theme_name;\n\t\t}\n\t\n\t\t// Admins can override the site theme, temporarily. This lets us preview themes.\n\t\tif (User::is_admin() AND isset($_GET['theme']) AND $override = $_GET['theme'])\n\t\t{\n\t\t\tif (file_exists(THEMEPATH.$override))\n\t\t\t{\n\t\t\t\tTheme::$site_theme_name = $override;\n\t\t\t\tTheme::$admin_theme_name = $override;\n\t\t\t\tTheme::$active \t\t = $override;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tKohana::$log->add(LOG::ERROR, 'Missing override site theme: :theme', array(':theme' => $override));\n\t\t\t}\n\t\t}\n\n\t\t//Finally set the active theme\n\t\tTheme::set_theme();\n\t}", "public function _theme_url() {\n\t\treturn $this->EE->elements->_theme_url();\n\t}", "public function getTheme();", "function wp_theme_auto_update_setting_template()\n {\n }", "function SetAdminConfiguration() {\n\t\t\tadd_options_page(\"3B Meteo\", \"3B Meteo\", 8, basename(__FILE__), array(\"TreBiMeteo\",'DesignAdminPage'));\n\t\t}", "public function setup_theme()\n {\n add_theme_support('title-tag');\n\n /* WP custom logo */\n add_theme_support(\n 'custom-logo',\n [\n 'header-text' => [\n 'site-title',\n 'site-description'\n ],\n 'height' => 100,\n 'width' => 100,\n ]\n );\n\n\n /* Add theme support for selective refresh for widgets */\n add_theme_support('customize-selective-refresh-widgets');\n\n /* Add default posts and comments RSS feed links to head */\n add_theme_support('automatic-feed-links');\n\n /**\n * Switch default core markup for search form, comment form, comment-list, gallery, caption, script and style\n * to output valid HTML5.\n */\n add_theme_support(\n 'html5',\n [\n 'search-form',\n 'comment-form',\n 'comment-list',\n 'gallery',\n 'caption',\n 'script',\n 'style',\n ]\n );\n\n /* Gutenberg theme support */\n add_theme_support('wp-block-styles');\n add_theme_support('align-wide');\n add_theme_support('editor-styles');\n\n global $content_width;\n if (!isset($content_width)) $content_width = 1240;\n }", "public function theme_installer()\n {\n }", "function switch_theme($stylesheet)\n {\n }", "public function customize_preview_settings()\n {\n }", "public function setstyle($name){\n\t\t// Check whether the information is valid //\n\t\tif (array_key_exists($name, $this->_style)) {\n\t\t\t// switch name theme do class name//\n\t\t\t$name = $this->get_style_array($name);\n\t\t\t// hydrate var //\n\t\t\t$this->_style_name = $name;\n\t\t}else{throw new Exception('Theme not found'); die();}\n\t}", "public function getTheme()\n {\n $this->appinfo['theme_vendor'] = DEF_VENDOR;\n $this->appinfo['theme_directory'] = DEF_THEME;\n $this->appinfo['theme_path'] = DIR_APP.DIRECTORY_SEPARATOR.$this->appinfo['theme_vendor'].DIRECTORY_SEPARATOR.DIR_THEMES.DIRECTORY_SEPARATOR.$this->appinfo['theme_directory'];\n $this->appinfo['theme_webpath'] = DIR_APP.'/'.$this->appinfo['theme_vendor'].'/'.DIR_THEMES.'/'.$this->appinfo['theme_directory'];\n }", "public function update_midrub_frontend_theme() {\n \n // Verify if the frontend theme can be updated\n (new MidrubBaseAdminCollectionUpdateHelpers\\Frontend_themes)->verify();\n \n }", "function dynamik_theme_settings()\r\n{\r\n\t$user = wp_get_current_user();\r\n?>\r\n\t<div class=\"wrap\">\r\n\t\t\r\n\t\t<div id=\"dynamik-settings-saved\" class=\"dynamik-update-box\"></div>\r\n\t\t\r\n\t\t<?php\r\n\t\tif( !empty( $_POST['action'] ) && $_POST['action'] == 'reset' )\r\n\t\t{\r\n\t\t\tupdate_option( 'dynamik_gen_theme_settings', dynamik_theme_settings_defaults() );\r\n\t\t\tdynamik_write_files( $css = true, $ez = false, $custom = false );\r\n\t\t\tdynamik_get_settings( null, $args = array( 'cached' => false, 'array' => false ) );\r\n\t\t\tdynamik_protect_folders();\r\n\t\t?>\r\n\t\t\t<script type=\"text/javascript\">jQuery(document).ready(function($){ $('#dynamik-settings-saved').html('Theme Settings Reset').css(\"position\", \"fixed\").fadeIn('slow');window.setTimeout(function(){$('#dynamik-settings-saved').fadeOut( 'slow' );}, 2222); });</script>\r\n\t\t<?php\r\n\t\t}\r\n\r\n\t\tif( !empty( $_GET['activetab'] ) )\r\n\t\t{ ?>\r\n\t\t\t<script type=\"text/javascript\">jQuery(document).ready(function($) { $('#<?php echo $_GET['activetab']; ?>').click(); });</script>\t\r\n\t\t<?php\r\n\t\t} ?>\r\n\t\t\r\n\t\t<div id=\"icon-options-general\" class=\"icon32\"></div>\r\n\t\t\r\n\t\t<h2 id=\"dynamik-admin-heading\"><?php _e( 'Dynamik - Theme Settings', 'dynamik' ); ?></h2>\r\n\t\t\r\n\t\t<div id=\"dynamik-admin-wrap\">\r\n\t\t\t\r\n\t\t\t<form action=\"/\" id=\"theme-settings-form\" name=\"theme-settings-form\">\r\n\t\t\t\r\n\t\t\t\t<input type=\"hidden\" name=\"action\" value=\"dynamik_theme_settings_save\" />\r\n\t\t\t\t<input type=\"hidden\" name=\"security\" value=\"<?php echo wp_create_nonce( 'theme-settings' ); ?>\" />\r\n\t\t\t\t\r\n\t\t\t\t<div id=\"dynamik-floating-save\">\r\n\t\t\t\t\t<input type=\"submit\" value=\"<?php _e( 'Save Changes', 'dynamik' ); ?>\" name=\"Submit\" alt=\"Save Changes\" class=\"dynamik-save-button button button-primary\"/>\r\n\t\t\t\t\t<img class=\"dynamik-ajax-save-spinner\" src=\"<?php echo site_url() . '/wp-admin/images/spinner-2x.gif'; ?>\" />\r\n\t\t\t\t\t<span class=\"dynamik-saved\"></span>\r\n\t\t\t\t</div>\r\n\t\t\t\t\t\r\n\t\t\t\t<div id=\"dynamik-theme-settings-nav\" class=\"dynamik-admin-nav\">\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li id=\"dynamik-theme-settings-nav-info\" class=\"dynamik-options-nav-all dynamik-options-nav-active\"><a href=\"#\">Child Theme Info</a></li><li id=\"dynamik-theme-settings-nav-general\" class=\"dynamik-options-nav-all\"><a href=\"#\">General Settings</a></li><li id=\"dynamik-theme-settings-nav-import-export\" class=\"dynamik-options-nav-all\"><a class=\"dynamik-options-nav-last\" href=\"#\">Import / Export</a></li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\t\t\t\t\r\n\t\t\t\t<div class=\"dynamik-theme-settings-wrap\">\r\n\t\t\t\t\t<?php require_once( CHILD_DIR . '/lib/admin/boxes/settings-general.php' ); ?>\r\n\t\t\t\t</div>\r\n\t\t\t\r\n\t\t\t</form>\r\n\t\t\t\r\n\t\t\t<div class=\"dynamik-theme-settings-wrap\">\r\n\t\t\t\t<?php require_once( CHILD_DIR . '/lib/admin/boxes/settings-theme-info.php' ); ?>\r\n\t\t\t\t<?php require_once( CHILD_DIR . '/lib/admin/boxes/settings-import-export.php' ); ?>\r\n\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<div id=\"dynamik-admin-footer\">\r\n\t\t\t\t<p>\r\n\t\t\t\t\t<a href=\"https://cobaltapps.com\" target=\"_blank\">CobaltApps.com</a> | <a href=\"http://docs.cobaltapps.com/\" target=\"_blank\">Docs</a> | <a href=\"https://cobaltapps.com/my-account/\" target=\"_blank\">My Account</a> | <a href=\"https://cobaltapps.com/community/\" target=\"_blank\">Community Forum</a> | <a href=\"https://cobaltapps.com/affiliates/\" target=\"_blank\">Affiliates</a> &middot;\r\n\t\t\t\t\t<a><span id=\"show-options-reset\" class=\"dynamik-options-reset-button button\" style=\"margin:0; float:none !important;\"><?php _e( 'Theme Settings Reset', 'dynamik' ); ?></span></a><a href=\"http://dynamikdocs.cobaltapps.com/article/152-theme-settings-reset\" class=\"tooltip-mark\" target=\"_blank\">[?]</a>\r\n\t\t\t\t</p>\r\n\t\t\t</div>\r\n\t\t\t\r\n\t\t\t<div style=\"display:none; width:160px; border:none; background:none; margin:0 auto; padding:0; float:none; position:inherit;\" id=\"show-options-reset-box\" class=\"dynamik-custom-fonts-box\">\r\n\t\t\t\t<form style=\"float:left;\" id=\"dynamik-reset-theme-settings\" method=\"post\">\r\n\t\t\t\t\t<input style=\"background:#D54E21; width:160px !important; color:#FFFFFF !important; -webkit-box-shadow:none; box-shadow:none;\" type=\"submit\" value=\"<?php _e( 'Reset Theme Settings', 'dynamik' ); ?>\" class=\"dynamik-reset button\" name=\"Submit\" onClick='return confirm(\"<?php _e( 'Are you sure your want to reset your Dynamik Theme Settings?', 'dynamik' ); ?>\")'/><input type=\"hidden\" name=\"action\" value=\"reset\" />\r\n\t\t\t\t</form>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t</div> <!-- Close Wrap -->\r\n<?php\r\n}", "public function init() {\n //Yii::app()->theme = Yii::app()->user->getCurrentTheme();\n //Yii::app()->theme = 'teacher';\n //parent::init();\n }", "public function alterConfiguration()\n {\n config()->set('mail.markdown.theme', 'tuxedo');\n config()->set('mail.markdown.paths', array_merge([__DIR__.'/../resources/views'], config('mail.markdown.paths')));\n }", "public static function register_settings() {\n\t\t\tregister_setting( 'theme_options', 'theme_options', array( 'IODD_Theme_Options', 'sanitize' ) );\n\t\t}", "function change_theme( $blog_id, $theme )\n\t{\n\t\tswitch_to_blog( $blog_id );\n\n\t\tswitch_theme( $theme );\n\t\n\t\trestore_current_blog();\n\t}", "public function wp_themes_dir($theme = \\false)\n {\n }", "public function setTheme(GenericTheme $theme) {\n $data = array(\n 'name' => $theme->getDisplayName(),\n 'parent' => $theme->getParent(),\n \t'engine' => $theme->getEngines(),\n 'region' => $theme->getRegions(),\n );\n\n $this->config->set('theme.' . $theme->getName(), $data);\n $this->themes[$theme->getName()] = $theme;\n\n $this->createResources($theme);\n }", "public function switch_theme($name_theme) {\r\n\t\t\t$i = self::new_instance();\r\n\t\t\tif(!empty($i->wpeologs_settings['my_services'][\"themes\"]) && $i->wpeologs_settings['my_services'][\"themes\"]['service_active'])\r\n\t\t\t\tself::log_datas_in_files(\"themes\", array(\"object_id\" => $name_theme, \"message\" => __('The theme ' . $name_theme . ' is activated')), 0);\r\n\t\t}", "public static function theme(): void\n {\n $smarty = self::getInstance(Smarty::class);\n if (defined(\"_PATH_\"))\n $smarty->assign(\"base\", _PATH_);\n $smarty->assign(\"css\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/css\");\n $smarty->assign(\"data\", _ROOT_ . \"/../data\");\n $smarty->assign(\"root\", _ROOT_);\n $smarty->assign(\"js\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/js\");\n $smarty->assign(\"img\", _TEMPLATES_ . \"/\" . _THEME_NAME_ . \"/img\");\n $smarty->assign(\"template\", _THEME_);\n\n if (file_exists(_APP_ . \"/routes.php\"))\n include_once(_APP_ . \"/routes.php\");\n else\n Display::response(\"No se ha encontrado el archivo routes.php\", \"json\", 500);\n \n if (is_dir(_SRC_ . \"/Routes\"))\n foreach (glob(_SRC_ . \"/Routes/*.php\") as $routeFile)\n require_once $routeFile;\n \n \n if (file_exists(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\")) {\n include_once(_THEMES_ . \"/\" . _THEME_NAME_ . \"/index.php\");\n }\n }", "private function setup_theme() {\n\n\t\tforeach( $this->get_image_sizes() as $image_size => $values ) {\n\t\t\tadd_image_size( $image_size, $values[0], $values[1] );\n\t\t}\n\n\t}", "public static function setup()\n {\n $theme = static::getTheme();\n\n $className = static::getCalledClass();\n\n if ($theme === null) {\n $theme = new Theme();\n $theme->setClassName($className);\n $theme->setBackendTheme(static::isBackendTheme());\n $theme->setAvailable(true);\n\n Kernel::getService('em')->persist($theme);\n Kernel::getService('em')->flush();\n\n return true;\n }\n\n return false;\n }", "public function style_settings() {\n include __DIR__ . \"/views/style_settings.php\";\n }", "public function setAutoDarkModeOverride(ContextInterface $ctx, SetAutoDarkModeOverrideRequest $request): void;", "function theme_save_settings()\n\t{\n\t\tglobal $pagenow;\n\t\t\n\t\tif ( $pagenow == 'themes.php' && $_GET['page'] == 'theme-options' )\n\t\t{\n\t\t\tif ( isset ( $_GET['tab'] ) )\n\t\t\t{\n\t\t\t\t$tab = $_GET['tab'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$tab = 'general';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tswitch ( $tab )\n\t\t\t{\n\t\t\t\tcase 'general' :\n\t\t\t\t\n\t\t\t\t\tupdate_option( 'logo_image', $_POST['logo_image'] );\n\t\t\t\t\tupdate_option( 'header_background_image', $_POST['header_background_image'] );\n\t\t\t\t\tupdate_option( 'select_text_logo', $_POST['select_text_logo'] );\n\t\t\t\t\tupdate_option( 'theme_site_title', $_POST['theme_site_title'] );\n\t\t\t\t\tupdate_option( 'select_tagline', $_POST['select_tagline'] );\n\t\t\t\t\tupdate_option( 'theme_tagline', $_POST['theme_tagline'] );\n\t\t\t\t\tupdate_option( 'logo_login', $_POST['logo_login'] );\n\t\t\t\t\tupdate_option( 'logo_login_hide', $_POST['logo_login_hide'] );\n\t\t\t\t\tupdate_option( 'favicon', $_POST['favicon'] );\n\t\t\t\t\tupdate_option( 'apple_touch_icon', $_POST['apple_touch_icon'] );\n\t\t\t\t\tupdate_option( 'google_map_api_key', $_POST['google_map_api_key'] );\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'style' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'char_set_latin', $_POST['char_set_latin'] );\n\t\t\t\t\tupdate_option( 'char_set_latin_ext', $_POST['char_set_latin_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_cyrillic', $_POST['char_set_cyrillic'] );\n\t\t\t\t\tupdate_option( 'char_set_cyrillic_ext', $_POST['char_set_cyrillic_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_greek', $_POST['char_set_greek'] );\n\t\t\t\t\tupdate_option( 'char_set_greek_ext', $_POST['char_set_greek_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_vietnamese', $_POST['char_set_vietnamese'] );\n\t\t\t\t\tupdate_option( 'extra_font_styles', $_POST['extra_font_styles'] );\n\t\t\t\t\tupdate_option( 'classic_navigation_menu', $_POST['classic_navigation_menu'] );\n\t\t\t\t\tupdate_option( 'mobile_zoom', $_POST['mobile_zoom'] );\n\t\t\t\t\tupdate_option( 'custom_css', $_POST['custom_css'] );\n\t\t\t\t\tupdate_option( 'external_css', $_POST['external_css'] );\n\t\t\t\t\tupdate_option( 'external_js', $_POST['external_js'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'animation' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'classic_layout', $_POST['classic_layout'] );\n\t\t\t\t\tupdate_option( 'mobile_only_classic_layout', $_POST['mobile_only_classic_layout'] );\n\t\t\t\t\tupdate_option( 'pf_details_page_in_animation', $_POST['pf_details_page_in_animation'] );\n\t\t\t\t\tupdate_option( 'pf_details_page_out_animation', $_POST['pf_details_page_out_animation'] );\n\t\t\t\t\tupdate_option( 'pixelwars__ajax', $_POST['pixelwars__ajax'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'blog' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'theme_excerpt', $_POST['theme_excerpt'] );\n\t\t\t\t\tupdate_option( 'pagination', $_POST['pagination'] );\n\t\t\t\t\tupdate_option( 'about_the_author_module', $_POST['about_the_author_module'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'seo' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'theme_og_protocol', $_POST['theme_og_protocol'] );\n\t\t\t\t\tupdate_option( 'theme_seo_fields', $_POST['theme_seo_fields'] );\n\t\t\t\t\tupdate_option( 'site_description', $_POST['site_description'] );\n\t\t\t\t\tupdate_option( 'site_keywords', $_POST['site_keywords'] );\n\t\t\t\t\tupdate_option( 'tracking_code_head', $_POST['tracking_code_head'] );\n\t\t\t\t\tupdate_option( 'tracking_code_body', $_POST['tracking_code_body'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "function wp_using_themes()\n {\n }", "public function setTheme($themeName)\n {\n $this->themeLocation = \"src/Application/Themes/\".$themeName.\"/\";\n if (!is_dir(ROOT_PATH.$this->themeLocation))\n throw new Display\\Exception(\"Theme \".$themeName.\" not found at \".ROOT_PATH.$themeLocation);\n }", "public function get_default_theme_style() {\n\t\t\treturn 'pink';\n\t\t}", "function MicroBuilder_Theme_Factory () {}", "function theme_save_settings()\n\t{\n\t\tglobal $pagenow;\n\t\t\n\t\tif ( $pagenow == 'themes.php' && $_GET['page'] == 'theme-options' )\n\t\t{\n\t\t\tif ( isset ( $_GET['tab'] ) )\n\t\t\t{\n\t\t\t\t$tab = $_GET['tab'];\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$tab = 'general';\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tswitch ( $tab )\n\t\t\t{\n\t\t\t\tcase 'general' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'logo_type', $_POST['logo_type'] );\n\t\t\t\t\tupdate_option( 'select_text_logo', $_POST['select_text_logo'] );\n\t\t\t\t\tupdate_option( 'theme_site_title', $_POST['theme_site_title'] );\n\t\t\t\t\tupdate_option( 'logo_image', $_POST['logo_image'] );\n\t\t\t\t\tupdate_option( 'select_tagline', $_POST['select_tagline'] );\n\t\t\t\t\tupdate_option( 'theme_tagline', $_POST['theme_tagline'] );\n\t\t\t\t\tupdate_option( 'logo_login', $_POST['logo_login'] );\n\t\t\t\t\tupdate_option( 'logo_login_hide', $_POST['logo_login_hide'] );\n\t\t\t\t\tupdate_option( 'favicon', $_POST['favicon'] );\n\t\t\t\t\tupdate_option( 'apple_touch_icon', $_POST['apple_touch_icon'] );\n\t\t\t\t\tupdate_option( 'copyright_text', $_POST['copyright_text'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'style' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'char_set_latin', $_POST['char_set_latin'] );\n\t\t\t\t\tupdate_option( 'char_set_latin_ext', $_POST['char_set_latin_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_cyrillic', $_POST['char_set_cyrillic'] );\n\t\t\t\t\tupdate_option( 'char_set_cyrillic_ext', $_POST['char_set_cyrillic_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_greek', $_POST['char_set_greek'] );\n\t\t\t\t\tupdate_option( 'char_set_greek_ext', $_POST['char_set_greek_ext'] );\n\t\t\t\t\tupdate_option( 'char_set_vietnamese', $_POST['char_set_vietnamese'] );\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'nav_menu_search', $_POST['nav_menu_search'] );\n\t\t\t\t\tupdate_option( 'extra_font_styles', $_POST['extra_font_styles'] );\n\t\t\t\t\tupdate_option( 'footer_widget_locations', $_POST['footer_widget_locations'] );\n\t\t\t\t\tupdate_option( 'footer_widget_columns', $_POST['footer_widget_columns'] );\n\t\t\t\t\tupdate_option( 'mobile_zoom', $_POST['mobile_zoom'] );\n\t\t\t\t\tupdate_option( 'custom_css', $_POST['custom_css'] );\n\t\t\t\t\tupdate_option( 'external_css', $_POST['external_css'] );\n\t\t\t\t\tupdate_option( 'external_js', $_POST['external_js'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'blog' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'blog_type', $_POST['blog_type'] );\n\t\t\t\t\tupdate_option( 'post_sidebar', $_POST['post_sidebar'] );\n\t\t\t\t\tupdate_option( 'theme_excerpt', $_POST['theme_excerpt'] );\n\t\t\t\t\tupdate_option( 'pagination', $_POST['pagination'] );\n\t\t\t\t\tupdate_option( 'all_formats_homepage', $_POST['all_formats_homepage'] );\n\t\t\t\t\tupdate_option( 'about_the_author_module', $_POST['about_the_author_module'] );\n\t\t\t\t\tupdate_option( 'post_share_links_single', $_POST['post_share_links_single'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'portfolio' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'pf_ajax', $_POST['pf_ajax'] );\n\t\t\t\t\tupdate_option( 'pf_item_per_page', $_POST['pf_item_per_page'] );\n\t\t\t\t\tupdate_option( 'pf_content_editor', $_POST['pf_content_editor'] );\n\t\t\t\t\tupdate_option( 'pf_share_links_single', $_POST['pf_share_links_single'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'gallery' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'gl_ajax', $_POST['gl_ajax'] );\n\t\t\t\t\tupdate_option( 'gl_item_per_page', $_POST['gl_item_per_page'] );\n\t\t\t\t\tupdate_option( 'gl_ajax_single', $_POST['gl_ajax_single'] );\n\t\t\t\t\tupdate_option( 'gl_item_per_page_single', $_POST['gl_item_per_page_single'] );\n\t\t\t\t\tupdate_option( 'gl_slideshow_interval_single', $_POST['gl_slideshow_interval_single'] );\n\t\t\t\t\tupdate_option( 'gl_circular_single', $_POST['gl_circular_single'] );\n\t\t\t\t\tupdate_option( 'gl_next_on_click_image_single', $_POST['gl_next_on_click_image_single'] );\n\t\t\t\t\tupdate_option( 'gl_content_editor', $_POST['gl_content_editor'] );\n\t\t\t\t\tupdate_option( 'gl_share_links_single', $_POST['gl_share_links_single'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'sidebar' :\n\t\t\t\t\n\t\t\t\t\tupdate_option( 'no_sidebar_name', esc_attr( $_POST['new_sidebar_name'] ) );\n\t\t\t\t\t\n\t\t\t\t\tif ( esc_attr( $_POST['new_sidebar_name'] ) != \"\" )\n\t\t\t\t\t{\n\t\t\t\t\t\tif ( get_option( 'sidebars_with_commas' ) == \"\" )\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tupdate_option( 'sidebars_with_commas', esc_attr( $_POST['new_sidebar_name'] ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tupdate_option( 'sidebars_with_commas', get_option( 'sidebars_with_commas' ) . ',' . esc_attr( $_POST['new_sidebar_name'] ) );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'seo' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'theme_og_protocol', $_POST['theme_og_protocol'] );\n\t\t\t\t\tupdate_option( 'theme_seo_fields', $_POST['theme_seo_fields'] );\n\t\t\t\t\tupdate_option( 'site_description', $_POST['site_description'] );\n\t\t\t\t\tupdate_option( 'site_keywords', $_POST['site_keywords'] );\n\t\t\t\t\tupdate_option( 'tracking_code_head', $_POST['tracking_code_head'] );\n\t\t\t\t\tupdate_option( 'tracking_code', $_POST['tracking_code'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 'contact' :\n\t\t\t\t\t\n\t\t\t\t\tupdate_option( 'map_embed_code', $_POST['map_embed_code'] );\n\t\t\t\t\tupdate_option( 'enable_map', $_POST['enable_map'] );\n\t\t\t\t\tupdate_option( 'contact_form_email', $_POST['contact_form_email'] );\n\t\t\t\t\tupdate_option( 'contact_form_captcha', $_POST['contact_form_captcha'] );\n\t\t\t\t\tupdate_option( 'disable_contact_form', $_POST['disable_contact_form'] );\n\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// end switch\n\t\t}\n\t\t// end if\n\t}", "function theme_options_init(){\n\tregister_setting( 'htmlks4wp_options', 'htmlks4wp_theme_options', 'theme_options_validate' );\n}", "public static function setMode($mode)\n\t{\n\t\tif($mode != self::MODE_DEVELOPMENT && $mode != self::MODE_PRODUCTION) {\n\t\t\tthrow new BakedCarrotException('Invalid setMode parameter');\n\t\t}\n\t\t\n\t\tself::$app_mode = $mode;\n\t}", "function blueauthentic_theme_settings() {\n\tadd_settings_section(\n\t\t'social_section',\n\t\t'Social Media Account Links/URLs',\n\t\t'blueauthentic_social_section_description',\n\t\t'theme-options-section-social'\n\t);\n\n\tadd_option( 'social_facebook_option', 1 );\n\tadd_settings_field(\n\t\t'social_facebook_option',\n\t\t'Facebook Account',\n\t\t'social_facebook_option_callback',\n\t\t'theme-options-section-social',\n\t\t'social_section'\n\t);\n\tregister_setting( 'theme-options-group-social', 'social_facebook_option' );\n\n\tadd_option( 'social_twitter_option', 2 );\n\tadd_settings_field(\n\t\t'social_twitter_option',\n\t\t'Twitter Account',\n\t\t'social_twitter_option_callback',\n\t\t'theme-options-section-social',\n\t\t'social_section'\n\t);\n\tregister_setting( 'theme-options-group-social', 'social_twitter_option' );\n\n\tadd_option( 'social_youtube_option', 3 );\n\tadd_settings_field(\n\t\t'social_youtube_option',\n\t\t'Youtube Account',\n\t\t'social_youtube_option_callback',\n\t\t'theme-options-section-social',\n\t\t'social_section'\n\t);\n\tregister_setting( 'theme-options-group-social', 'social_youtube_option' );\n}", "public function menu_set_custom_theme()\n {\n return menu_set_custom_theme();\n }", "function display_themes()\n {\n }", "function override_theme() {\n\t\tif ( ! $this->is_troubleshooting() ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "function theme_action_handler( $theme ) {\n\t\t$this->add_ping( 'themes', array( 'theme' => get_option( 'stylesheet' ) ) );\n\t}", "private function setFormTheme(FormView $formView, $theme) {\n $twig = $this->get('twig');\n\n try {\n $twig\n ->getRuntime('Symfony\\Bridge\\Twig\\Form\\TwigRenderer')\n ->setTheme($formView, $theme);\n } catch (Twig_Error_Runtime $e) {\n // BC for Symfony < 3.2 where this runtime not exists\n $twig\n ->getExtension('Symfony\\Bridge\\Twig\\Extension\\FormExtension')\n ->renderer\n ->setTheme($formView, $theme);\n }\n }", "public function after_setup_theme()\n {\n }", "public function setContext($contextName, $configDir = \"/app/config/contexts/\")\n\t{\n\t\t$config = Erdiko::getConfigFile($this->_webroot.$configDir.$contextName.\".json\");\n\t\t$this->_localConfig['theme'] = $config['theme']; // swap out theme configs\n\t\t// error_log(\"config: \".print_r($config, true));\n\t}", "public function applySkin($control)\n\t{\n\t\t$type=get_class($control);\n\t\tif(($id=$control->getSkinID())==='')\n\t\t\t$id=0;\n\t\tif(isset($this->_skins[$type][$id]))\n\t\t{\n\t\t\tforeach($this->_skins[$type][$id] as $name=>$value)\n\t\t\t{\n\t\t\t\tPrado::trace(\"Applying skin $name to $type\",'Prado\\Web\\UI\\TThemeManager');\n\t\t\t\tif(is_array($value))\n\t\t\t\t{\n\t\t\t\t\tswitch($value[0])\n\t\t\t\t\t{\n\t\t\t\t\t\tcase TTemplate::CONFIG_EXPRESSION:\n\t\t\t\t\t\t\t$value=$this->evaluateExpression($value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_ASSET:\n\t\t\t\t\t\t\t$value=$this->_themeUrl.'/'.ltrim($value[1],'/');\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_DATABIND:\n\t\t\t\t\t\t\t$control->bindProperty($name,$value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_PARAMETER:\n\t\t\t\t\t\t\t$control->setSubProperty($name,$this->getApplication()->getParameters()->itemAt($value[1]));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_TEMPLATE:\n\t\t\t\t\t\t\t$control->setSubProperty($name,$value[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TTemplate::CONFIG_LOCALIZATION:\n\t\t\t\t\t\t\t$control->setSubProperty($name,Prado::localize($value[1]));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new TConfigurationException('theme_tag_unexpected',$name,$value[0]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!is_array($value))\n\t\t\t\t{\n\t\t\t\t\tif(strpos($name,'.')===false)\t// is simple property or custom attribute\n\t\t\t\t\t{\n\t\t\t\t\t\tif($control->hasProperty($name))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($control->canSetProperty($name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$setter='set'.$name;\n\t\t\t\t\t\t\t\t$control->$setter($value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tthrow new TConfigurationException('theme_property_readonly',$type,$name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow new TConfigurationException('theme_property_undefined',$type,$name);\n\t\t\t\t\t}\n\t\t\t\t\telse\t// complex property\n\t\t\t\t\t\t$control->setSubProperty($name,$value);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "public function setViewmode()\n {\n $viewmode = ee()->input->post('ee_cp_viewmode');\n if (in_array($viewmode, ['classic', 'jumpmenu'])) {\n ee()->input->set_cookie('ee_cp_viewmode', $viewmode, 31104000);\n }\n ee()->functions->redirect(ee('CP/URL')->make('homepage'));\n }", "function julia_kaya_customizer_settings() \r\n\t{\r\n\t\tadd_theme_page( esc_html__('Customizer Import','julia'), esc_html__('Customizer Import','julia'), 'edit_theme_options', 'import', array( $this,'julia_kaya_customize_import_option_page'));\r\n add_theme_page( esc_html__('Customizer Export','julia'), esc_html__('Customizer Export','julia'), 'edit_theme_options', 'export', array( $this,'julia_kaya_customize_export_option_page'));\r\n }" ]
[ "0.6917984", "0.6192973", "0.60276806", "0.60190177", "0.58888435", "0.58655363", "0.5786728", "0.57613456", "0.5749963", "0.5708846", "0.570547", "0.56839263", "0.56817305", "0.56801367", "0.565123", "0.5642772", "0.55631083", "0.55589056", "0.55246717", "0.55213904", "0.5510969", "0.5505592", "0.5474023", "0.54632217", "0.5456142", "0.5454959", "0.5452604", "0.54488903", "0.54417706", "0.54258037", "0.5411296", "0.5383785", "0.53717744", "0.53502035", "0.5346186", "0.5303761", "0.53022254", "0.52942187", "0.52823913", "0.52475744", "0.51980555", "0.5195767", "0.5194925", "0.5179019", "0.5178843", "0.5177852", "0.5175581", "0.51649106", "0.51621985", "0.51607144", "0.51474404", "0.5141973", "0.51398635", "0.51373506", "0.5132137", "0.513079", "0.51280653", "0.51257277", "0.511747", "0.5117337", "0.51167387", "0.5095525", "0.5083739", "0.507471", "0.5073557", "0.50696427", "0.5069076", "0.50689375", "0.5059563", "0.5058215", "0.50496495", "0.5046712", "0.50459945", "0.50428593", "0.50386536", "0.50302225", "0.5017243", "0.5012595", "0.49746752", "0.49732062", "0.49724957", "0.49708003", "0.4969357", "0.4967804", "0.4961605", "0.49597737", "0.49591607", "0.49574953", "0.49521768", "0.4947223", "0.49388695", "0.49369645", "0.4923272", "0.49224126", "0.49222553", "0.4916714", "0.49162123", "0.4912523", "0.49118528", "0.49072564" ]
0.6747356
1
///////////////////////////////////////////////////////////////////////////// P R I V A T E M E T H O D S ///////////////////////////////////////////////////////////////////////////// Loads configuration files.
protected function _load_config() { clearos_profile(__METHOD__, __LINE__); try { $config_file = new Configuration_File(self::FILE_CONFIG); $rawdata = $config_file->load(); } catch (File_Not_Found_Exception $e) { // Not fatal, set defaults below } catch (Engine_Exception $e) { throw new Engine_Exception($e->get_message(), CLEAROS_WARNING); } if (isset($rawdata['allow_shell']) && preg_match("/(true|1)/i", $rawdata['allow_shell'])) $this->config['allow_shell'] = TRUE; else $this->config['allow_shell'] = FALSE; if (isset($rawdata['theme_mode']) && !empty($rawdata['theme_mode'])) $this->config['theme_mode'] = $rawdata['theme_mode']; else $this->config['theme_mode'] = 'normal'; if (isset($rawdata['theme']) && !empty($rawdata['theme'])) $this->config['theme'] = $rawdata['theme']; else $this->config['theme'] = 'default'; $this->is_loaded = TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function loadConfig();", "private function loadConfig()\n {\n\n $this->config = include(__DIR__ . '/../../config/config.php');\n\n }", "public abstract function loadConfig($fileName);", "static function loadConfig() {\n\t\t$config = self::file($_SERVER[\"DOCUMENT_ROOT\"] . \"/../config.json\");\n\t\tif (!is_null($config))\n\t\t\tself::$config = json_decode($config);\n\t}", "private function loadConfig()\n {\n $files = scandir($this->configPath());\n $configs = [];\n\n foreach ($files as $file) {\n $filePath = $this->configPath() . DIRECTORY_SEPARATOR . $file;\n\n if (is_file($filePath)) {\n $config = [basename($file, '.php') => include $filePath];\n if (is_array($config)) {\n $configs = array_merge($configs, $config);\n }\n }\n }\n\n $this->config = $configs;\n }", "function loadConfig(){\n $file = file_get_contents($this->config_dir, FILE_USE_INCLUDE_PATH);\n $urls = json_decode($file,TRUE);\n //not the best way but error handling\n if ($file == NULL || $urls == NUll ){\n print(\"Error reading the config file or it it is empty\");\n }\n else{\n $this->config_data = $urls;\n\n }\n }", "public function load()\n\t{\n\t\tif (file_exists(self::$configPath))\n\t\t{\n\t\t\t$this->config = json_decode(file_get_contents(self::$configPath), true);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->config = array();\n\t\t}\n\t}", "protected function _load_config()\n {\n clearos_profile(__METHOD__, __LINE__);\n\n try {\n $config_file = new Configuration_File(self::APP_CONFIG);\n $this->config = $config_file->load();\n } catch (File_Not_Found_Exception $e) {\n // Not fatal\n }\n\n $this->is_loaded = TRUE;\n }", "private function LoadConfigFile(){\n $a = file_get_contents($this->RootDIR . 'config/main.json');\n $this->Config = json_decode($a, true);\n }", "function load_config() {\n\t\t$conf_file = @file_get_contents( LDAP_LOGIN_PATH.'data.dat' );\n\t\tif ($conf_file!==false)\n\t\t{\n\t\t\t$this->config = unserialize($conf_file);\n\t\t}\n\t}", "private static function loadAppConfig() {\n\t\t\t$appConfJson = file_get_contents(JIAOYU_PROJECT_HOME.\"/app/conf/config.json\");\n\t\t\ttry {\n\t\t\t\t$appConf = JsonUtils::decode($appConfJson);\n\t\t\t} catch (JsonException $e) {\n\t\t\t\tthrow new ConfigurationException(\"Error initializing app config: \".$e->getMessage());\n\t\t\t}\n\n\t\t\t// OK - now we can load up the config array from the file\n\t\t\tforeach ($appConf as $configKey => $configValue) {\n\t\t\t\tself::$config[$configKey] = $configValue;\n\t\t\t}\n\t\t}", "protected static function loadSingleExtLocalconfFiles() {}", "private function loadConfig() {\n $config = array();\n\n $this->config = $config;\n if (file_exists(__DIR__ . '/../config.php')) {\n require_once(__DIR__. '/../config.php');\n $this->config = array_merge($this->config, $config);\n //TODO check for required config entries\n } else {\n //TODO handle this nicer\n $this->fatalErr('NO_CFG', 'Unable to load config file');\n }\n\n if (array_key_exists('THEME', $this->config)) {\n $this->pageLoader->setTheme($this->config['THEME']);\n }\n }", "public static function load()\n {\n if(!self::$loaded)\n {\n $GLOBALS['_EZMVC_SYS_CONFIG'] = require __DIR__ . '/system.config.php'; //Load config file\n $GLOBALS['_EZMVC_SYS_CONFIG'] = is_array($GLOBALS['_EZMVC_SYS_CONFIG']) ? $GLOBALS['_EZMVC_SYS_CONFIG'] : []; //Make sure its an array\n\n $GLOBALS['_EZMVC_APP_CONFIG'] = require dirname(__DIR__) . '/app/config/app.config.php';\n $GLOBALS['_EZMVC_APP_CONFIG'] = is_array($GLOBALS['_EZMVC_APP_CONFIG']) ? $GLOBALS['_EZMVC_APP_CONFIG'] : [];\n }\n }", "public function load_config() {\n if (!isset($this->config)) {\n $name = $this->get_name();\n $this->config = get_config(\"local_$name\");\n }\n }", "function LoadConfiguration()\r\n\t{\r\n\t\t$cinfFilePath = Site::GetConfigFilePath ();\r\n\t\t$config = simplexml_load_file ( $cinfFilePath );\r\n\t\t\r\n\t\t// load languages\r\n\t\tif (isset ( $config->languages ))\r\n\t\t{\r\n\t\t\t$langs = ( array ) $config->languages;\r\n\t\t\t$langsA = $langs ['language'];\r\n\t\t\t\r\n\t\t\tif (! is_array ( $langsA ))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t$linkID = ( string ) $langsA->linkID;\r\n\t\t\t\t$linkName = ( string ) $langsA->linkName;\r\n\t\t\t\t$this->m_languages [$linkID] = $linkName;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tforeach ( $langsA as $lang )\r\n\t\t\t\t{\r\n\t\t\t\t\t$linkID = ( string ) $lang->linkID;\r\n\t\t\t\t\t$linkName = ( string ) $lang->linkName;\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->m_languages [$linkID] = $linkName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$langKes = array_keys ( $this->m_languages );\r\n\t\t\t$this->m_languageDefault = $langKes [0];\r\n\t\t}\r\n\t\t\r\n\t\t// load templates\r\n\t\tif (isset ( $config->templates ))\r\n\t\t{\r\n\t\t\t$templates = ( array ) $config->templates;\r\n\t\t\t$langsA = $templates ['template'];\r\n\t\t\t\r\n\t\t\tif (! is_array ( $langsA ))\r\n\t\t\t{\r\n\t\t\t\t$this->m_templates = null;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->m_templates = array ();\r\n\t\t\t\t\r\n\t\t\t\tforeach ( $langsA as $lang )\r\n\t\t\t\t{\r\n\t\t\t\t\t$fileName = ( string ) $lang;\r\n\t\t\t\t\tarray_push ( $this->m_templates, $fileName );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// load siteURL\r\n\t\tif (isset ( $config->url ))\r\n\t\t{\r\n\t\t\t$this->m_URL = ( string ) $config->url;\r\n\t\t\t$this->m_URL = trim ( $this->m_URL );\r\n\t\t}\r\n\t\t\r\n\t\t// load siteURL\r\n\t\tif (isset ( $config->maxImageWidth ))\r\n\t\t{\r\n\t\t\t$this->m_maxImageWidth = ( int ) $config->maxImageWidth;\r\n\t\t}\r\n\t\t\r\n\t\t// secuirity-file root\r\n\t\tif (isset ( $config->securFolder ))\r\n\t\t{\r\n\t\t\t$this->m_sfRoot = ( string ) $config->securFolder;\r\n\t\t\t$this->m_sfRoot = trim ( $this->m_sfRoot );\r\n\t\t}\r\n\t\t\r\n\t\t// boxes\r\n\t\tif (isset ( $config->boxes ))\r\n\t\t{\r\n\t\t\t$boxes = ( array ) $config->boxes;\r\n\t\t\t$boxes = $boxes ['box'];\r\n\t\t\tif (! is_array ( $boxes ))\r\n\t\t\t{\r\n\t\t\t\t$this->m_boxes = array ($boxes );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->m_boxes = $boxes;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// product image root\r\n\t\tif (isset ( $config->productImageRoot ))\r\n\t\t{\r\n\t\t\t$str = ( string ) $config->productImageRoot;\r\n\t\t\t$this->m_prodImagRoot = trim ( $str );\r\n\t\t}\r\n\t\t\r\n\t\t// product image root\r\n\t\tif (isset ( $config->galleryRoot ))\r\n\t\t{\r\n\t\t\t$str = ( string ) $config->galleryRoot;\r\n\t\t\t$this->m_galleryImageRoot = trim ( $str );\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public function readConfig() {\n if ( file_exists( $this->path . '/config/config.php' ) ) {\n require_once $this->path . '/config/config.php';\n }\n }", "private function loadConfiguration()\n {\n if (!Configuration::configurationIsLoaded()) {\n Configuration::loadConfiguration();\n }\n }", "public static function load()\n {\n $files = glob(BASEDIR . '/config/*.php');\n foreach ($files as $file){\n $key = str_replace('.php', '', basename($file));\n static::$values[$key] = include $file;\n }\n }", "protected function loadConfig() {\n $json = new JSON();\n $viewConfig = $json->readFile(__SITE_PATH . \"\\\\config\\\\view.json\");\n $this->meta_info = $viewConfig['meta'];\n $this->js_files = $viewConfig['javascript'];\n $this->css_files = $viewConfig['css'];\n }", "private function loadConfigFiles()\n { if (!$this->configFiles) {\n $this->configFiles[] = 'config.neon';\n }\n\n foreach ($this->configFiles as $file) {\n $this->configurator->addConfig($this->paths->getConfigDir().'/'.$file);\n }\n }", "public function initConfig() {\r\n\t$config = array();\r\n\tinclude($this->name . '/config.php');\r\n\t\\app::$config = array_merge(\\app::$config, $config);\r\n }", "public function loadConfiguration()\n {\n // Get bundles paths\n $bundles = $this->kernel->getBundles();\n $paths = array();\n $pathInBundles = 'Resources' . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'nekland_admin.yml';\n\n foreach ($bundles as $bundle) {\n $paths[] = $bundle->getPath() . DIRECTORY_SEPARATOR . $pathInBundles;\n }\n $this->configuration->setPaths($paths);\n $this->configuration->loadConfigFiles();\n }", "public function load()\n {\n $ini = APP_DIR.'config/'.ENVIRONMENT.'.ini';\n\n if(!file_exists($ini))\n Clockwork::throwError('Could not load config ('.$ini.')');\n\n $this->data = parse_ini_file($ini, true);\n \n $this->setValues();\n }", "protected function load_config() {\n $this->config = Kohana::$config->load('imagecache');\n $this->config_patterns = Kohana::$config->load('imagecache_patterns');\n }", "abstract protected function loadConfig(array $config);", "public static function load()\n {\n $entries = Configuration::get();\n \n foreach ($entries as $entry) {\n self::$config[$entry->id] = unserialize($entry->value);\n }\n }", "abstract public function loadConfig(array $config);", "protected function loadConfigsForRegister(): void\n {\n $shipConfigs = $this->getConfigsFromShip();\n $containersConfigs = $this->getConfigsFromContainers();\n\n $configs = array_merge($shipConfigs, $containersConfigs);\n\n foreach ($configs as $file){\n $filename = pathinfo($file, PATHINFO_FILENAME);\n $this->mergeConfigFrom($file, $filename);\n }\n }", "public function loadConfig()\n {\n return parse_ini_file(\n DIR_ROOT . '/config.ini', False\n );\n }", "private function load_config() {\n $this->config = new Config();\n }", "private function loadIni(){\n if(file_exists($this->fullPath.$this->iniFile)) {\n $arCfg = parse_ini_file($this->fullPath.$this->iniFile);\n $this->loadConfigs($arCfg);\n }\n }", "private function loadConfig()\n {\n $this->category->config = [];\n $this->loadMeta('admins', 'array');\n $this->loadMeta('members', 'array');\n $this->loadMeta('template');\n $this->loadMeta('category', 'array');\n //$this->loadMetaCategory();\n $this->loadInitScript();\n }", "public function loadConfigs($confdir = null) {\n if (!is_object($this->shared)) {\n $this->shared = \\Ease\\Shared::instanced();\n }\n\n foreach (glob($confdir . '/*.json') as $configFile) {\n $this->shared->loadConfig($configFile, true);\n }\n\n $this->debug = \\Ease\\Functions::cfg('debug');\n $this->apiurl = \\Ease\\Functions::cfg('FLEXIBEE_URL');\n }", "private function load()\n {\n if (!file_exists($this->file)) {\n throw new Exception('config file not found');\n }\n // read contents of wordpress config\n // we can not require the configuration because it requires a shit load of other files\n $this->config = file_get_contents($this->file);\n }", "private function loadConfiguration()\n {\n /** @var ConfigurationManager $configurationManager */\n $configurationManager = ConfigurationManager::getInstance();\n $this->configuration = $configurationManager->getMainConfiguration();\n }", "public function load_config() {\n if (!isset($this->config)) {\n $settingspluginname = 'assessmentsettings';\n $this->config = get_config(\"local_$settingspluginname\");\n }\n }", "function load_configs($file, $is_global = true)\n{\n\n if (substr($file, -5) != '.json') {\n throw new Exception('Invalid config file found in configs folder.');\n }\n\n $fname = strtolower(substr(basename($file), 0, - (strlen('.json'))));\n\n $GLOBALS[\"__CONFIG__{$fname}__\"] = json_decode(file_get_contents($file), true);\n}", "private static function loadConfigurationFile()\n {\n if(self::$ConfigurationData == null)\n {\n $file_contents = file_get_contents(CONFIGURATION_FILE);\n $json_data = json_decode($file_contents, true);\n\n if(empty($json_data))\n {\n throw new Exception(\"Invalid JSON data in the configuration file\");\n }\n\n self::$ConfigurationData = $json_data;\n }\n }", "public function loadConfig()\n {\n $this->setGlobalStoreOfShopNumber($this->getShopNumber());\n $this->loadArray($this->toArray());\n $this->setExportTmpAndLogSettings();\n }", "private function _loadConfig($filename)\n\t{\t\n\t\tif (!isset($config[$filename]))\n\t\t{\n\t\t\t$path = $this->pathToConfig . $filename . '.php';\n\t\t\tif (file_exists($path))\n\t\t\t{\n\t\t\t\trequire($this->pathToConfig . $filename . '.php');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Config file {$path} does not exist!\");\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * $config is the array found in ALL config files stored in $this->pathToConfig/\n\t\t */\n\t\treturn $config;\n\t}", "private static function getConfig() {\n\n\t\t$pathRoot = $_SERVER['DOCUMENT_ROOT'].substr($_SERVER['PHP_SELF'],0, strpos($_SERVER['PHP_SELF'],\"/\",1)).\"/config/\";\n\n\t\t$jsonConfig = file_get_contents($pathRoot.'config.json');\n\t\tself::$arrayConfig = json_decode($jsonConfig);\n\t}", "protected function setConfigurations()\n {\n if ($files = $this->getFiles('config'))\n {\n foreach ($files as $key => $filename)\n {\n $this->config->set(basename($filename, '.php'), require path('config').DIRECTORY_SEPARATOR.($filename));\n }\n }\n }", "public static function loadConfigs($files) {\n self::load_files_from_dir($files, APP_CONF_DIR);\n }", "public function loadConfig($data);", "public function load($files)\n\t{\n\t\t// multiple files\n\t\tif (strpos($files, ',')) {\n\t\t\t$filesList = explode(',', $files);\n\t\t}\n\t\telse { // single file\n\t\t\t$filesList[] = $files;\n\t\t}\n\n\t\tforeach($filesList as $file) {\n\t\t\t$file = trim($file);\n\n\t\t\t// default to BP./app/config/ dir\n\t\t\tif (substr($file, 0, 1 ) != \"/\") {\n\t\t\t\t$file = BP.'/app/config/'.$file;\n\t\t\t}\n\n\t\t\t// convert file into array\n\t\t\tif (file_exists($file)) {\n\t\t\t\t$config = parse_ini_file($file, true);\n\n\t\t\t\t// if it has sections, remove the config_title array that gets created\n\t\t\t\t// $configTitle = $config['config_title'];\n\t\t\t\t// unset($config['config_title']);\n\t\t\t\t// add the array using the config title as a key to the items array\n\n\t\t\t\tif (!is_array($config)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// has section headings\n\t\t\t\tif (is_array($config[key($config) ])) {\n\t\t\t\t\tforeach($config as $section => $values) {\n\t\t\t\t\t\t$this->container['config']->{$section} = (object)$values;\n\t\t\t\t\t}\n\t\t\t\t} else { // does not have sections\n\t\t\t\t\tforeach($config as $key => $value) {\n\t\t\t\t\t\t$this->container['config']->{$key} = $value;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "protected function Init() \n {\n // Load the APP config.php and add the defined vars\n $this->load($this->files['app']['file_path'], 'app');\n \n // Load the core.config.php and add the defined vars\n $this->load($this->files['core']['file_path'], 'core', 'config');\n \n // Load the database.config.php and add the defined vars\n $this->load($this->files['db']['file_path'], 'db', 'DB_configs');\n }", "private function loadConfig()\n {\n $base = APP_ROOT.'config/';\n $filename = $base.'app.yml';\n if (!file_exists($filename)) {\n throw new ConfigNotFoundException('The application config file '.$filename.' could not be found');\n }\n\n $config = Yaml::parseFile($filename);\n\n // Populate the environments array\n $hostname = gethostname();\n $environments = Yaml::parseFile($base.'env.yml');\n foreach ($environments as $env => $hosts) {\n foreach ($hosts as $host) {\n if (fnmatch($host, $hostname)) {\n $this->environments[] = $env;\n\n // Merge the app config for the environment\n $filename = $base.$env.'/app.yml';\n if (file_exists($filename)) {\n $envConfig = Yaml::parseFile($filename);\n $config = array_merge($config, $envConfig);\n }\n }\n }\n }\n\n // Loop through each of the config files and add them\n // to the main config array\n foreach (glob(APP_ROOT.'config/*.yml') as $file) {\n $key = str_replace('.yml', '', basename($file));\n $config[$key] = Yaml::parseFile($file);\n\n // Loop through each of the environments and merge their config\n foreach ($this->environments as $env) {\n $filename = $base.$env.'/'.$key.'.yml';\n if (file_exists($filename)) {\n $envConfig = Yaml::parseFile($filename);\n $config[$key] = array_merge($config[$key], $envConfig);\n }\n }\n }\n\n // Create and store the config object\n return $this->config = new Config($config);\n }", "public function loadConfiguration()\n {\n \\Env::init();\n\n if (file_exists(SRC_ROOT . '/.env')) {\n $dotenv = new Dotenv(SRC_ROOT);\n $dotenv->load();\n $dotenv->required([\n 'DB_NAME',\n 'DB_USER',\n 'DB_PASSWORD',\n 'DB_HOST'\n ]);\n }\n\n define('APP_ENV', env('APP_ENV') ?: self::ENV_LIVE);\n\n if (!in_array(APP_ENV, $this->getAllowedEnvironments(), true)) {\n die('Invalid environment');\n }\n\n $configFileName = SRC_ROOT . '/config/env/' . APP_ENV . '.php';\n\n if (file_exists($configFileName)) {\n require $configFileName;\n }\n }", "public static function loadConfig($configFile) {\n\t}", "function configurationLoad() {\n\t\tglobal $podserver_config_map;\n\t\t$item_idx = 0;\n\t\tunset($this->itemsConfiguration);\n\t\t$this->itemsConfiguration = array();\n\t\t// load the configuration details for each item in the map\n\t\tforeach ($podserver_config_map as $itemToConfigure){\n\t\t\t// get the configuration variable by indirection ($$)\n\t\t\tglobal $$itemToConfigure[0];\n\t\t\t// get the label for the item in the correct language by indirection ($$)\n\t\t\t$label_item_variable = 'label_'.$itemToConfigure[0];\n\t\t\tglobal $$label_item_variable;\n\t\t\tif ($$label_item_variable == '') $$label_item_variable = '$'.$label_item_variable;\n\t\t\tif (isset($_SESSION['lang']) && $_SESSION['lang'] == 'debug') $$label_item_variable = '$'.$label_item_variable;\n\t\t\t// get the help for the item in the correct language by indirection ($$)\n\t\t\t$help_item_variable = 'help_'.$itemToConfigure[0];\n\t\t\tglobal $$help_item_variable;\n\t\t\tif (isset($_SESSION['lang']) && $_SESSION['lang'] == 'debug') $$help_item_variable = '$'.$help_item_variable;\n\t\t\t// get the title for the item in the correct language by indirection ($$)\n\t\t\t$title_item_variable = 'title_'.$itemToConfigure[0];\n\t\t\tglobal $$title_item_variable;\n\t\t\t// show title variable name for language debug\n\t\t\tif (isset($_SESSION['lang']) && $_SESSION['lang'] == 'debug') $$title_item_variable = '$'.$title_item_variable;\n\t\t\t// get the default value from configuration map if no value found for the item in the configuration file\n\t\t\tif ($$itemToConfigure[0] == '') $$itemToConfigure[0] = $itemToConfigure[4];\n\t\t\t// load the item with all datas (map, value, title and label)\n\t\t\t$this->itemsConfiguration[] = new ItemConfiguration(\n\t\t\t\t\t\t\t$itemToConfigure[0],\n\t\t\t\t\t\t\t$itemToConfigure[1],\n\t\t\t\t\t\t\t$itemToConfigure[2],\n\t\t\t\t\t\t\t$itemToConfigure[3],\n\t\t\t\t\t\t\t$$itemToConfigure[0],\n\t\t\t\t\t\t\t$itemToConfigure[5],\n\t\t\t\t\t\t\t$$label_item_variable,\n\t\t\t\t\t\t\t$$title_item_variable,\n\t\t\t\t\t\t\t$$help_item_variable\n\t\t\t\t\t\t\t);\t\t\t\n\t\t}\n\t}", "function loadIniFiles()\n {\n \n $ff = HTML_FlexyFramework::get();\n $ff->generateDataobjectsCache(true);\n $this->dburl = parse_url($ff->database);\n \n \n $dbini = 'ini_'. basename($this->dburl['path']);\n \n \n $iniCache = isset( $ff->PDO_DataObject) ? $ff->PDO_DataObject['schema_location'] : $ff->DB_DataObject[$dbini];\n if (!file_exists($iniCache)) {\n return;\n }\n \n $this->schema = parse_ini_file($iniCache, true);\n $this->links = parse_ini_file(preg_replace('/\\.ini$/', '.links.ini', $iniCache), true);\n \n\n \n }", "private function read_config() {\n\t\t$sections = parse_ini_file($this->config['conf'], true);\n\t\tforeach ($sections as $sectionk => $sectionv) {\n\t\t\tforeach ($sectionv as $key => $var)\n\t\t\t\t$this->config[$sectionk . '.' . $key] = $var;\n\t\t}\n\t}", "public function loadConfigs()\n {\n self::$country_configs = self::getCountryConfigs();\n $configs = new parent();\n self::$categories = $configs->getCategories();\n self::$site_data = self::get_site_data();\n self::$payments_name = self::setPaymentGateway();\n }", "abstract protected function loadConfiguration($name);", "private function readConfig(){\n\n\t\t$this->_ini_array = parse_ini_file(CONFIG.'system.ini');\n\n\t\t$this->_host =\t$this->_ini_array['db_host'];\n\t\t$this->_username = $this->_ini_array['db_username'];\n\t\t$this->_password = $this->_ini_array['db_password'];\n\t\t$this->_database = $this->_ini_array['db_database'];\n\t\n\t\t$this->_log_enabled=$this->_ini_array['log_enabled'];\n\t\t$this->_log_level=$this->_ini_array['log_level'];\n\t\t$this->_log_file_path=$this->_ini_array['log_path'];\n\t\n\n\t\t$this->_lang_default=$this->_ini_array['lang_default'];\n\n\t}", "protected function initConfig()\n {\n $this->di->setShared('config', function () {\n $path = BASE_DIR . 'app/config/';\n\n if (!is_readable($path . 'config.php')) {\n throw new RuntimeException(\n 'Unable to read config from ' . $path . 'config.php'\n );\n }\n\n $config = include $path . 'config.php';\n\n if (is_array($config)) {\n $config = new Config($config);\n }\n\n if (!$config instanceof Config) {\n $type = gettype($config);\n if ($type == 'boolean') {\n $type .= ($type ? ' (true)' : ' (false)');\n } elseif (is_object($type)) {\n $type = get_class($type);\n }\n\n throw new RuntimeException(\n sprintf(\n 'Unable to read config file. Config must be either an array or Phalcon\\Config instance. Got %s',\n $type\n )\n );\n }\n\n if (is_readable($path . APPLICATION_ENV . '.php')) {\n $override = include_once $path . APPLICATION_ENV . '.php';\n\n if (is_array($override)) {\n $override = new Config($override);\n }\n\n if ($override instanceof Config) {\n $config->merge($override);\n }\n }\n\n return $config;\n });\n }", "private function initConfig() {\n\t\t$configLoader = new ConfigLoader($this->_env);\n\n /** set config to Di container */\n $this->_di->set('config', $configLoader, TRUE);\n $this->_config = $configLoader;\n\t}", "protected static function loadConfiguration()\n {\n if (null === self::$configuration) {\n self::$configuration = Register::getRegister();\n }\n }", "function cfgLoader($loadType = null, $jsonFile = null, $iniFile = null , $fullPath = null, $arrayFile = null){\n $this->loadType = ($loadType==null) ? \"ANY\" : $loadType;\n\n //Default file names or provided names\n $this->jsonFile = ($jsonFile==null) ? \"config.json\" : $jsonFile;\n $this->iniFile = ($iniFile == null) ? \"config.ini\" : $iniFile;\n $this->arrayFile = ($arrayFile == null) ? \"arraycfg.php\" : $arrayFile;\n\n //Default folder for cfg files\n $this->fullPath = ($fullPath == null) ? \"../cfg/\" : $fullPath;\n\n switch ($this->loadType){\n case \"ANY\":\n $this->loadJson();\n $this->loadIni();\n $this->loadArray();\n break;\n\n case \"JSON\":\n $this->loadJson();\n break;\n\n case \"INI\":\n $this->loadIni();\n break;\n\n case \"ARRAY\":\n $this->loadArray();\n break;\n }\n }", "private function _loadConfig($options) {\n\n $conf_file = NULL;\n if (isset($options ['config'])) {\n $conf_file = $options ['config'];\n } else if (isset($options ['c'])) {\n $conf_file = $options ['c'];\n }\n\n if ($conf_file !== NULL && !file_exists($conf_file)) {\n $this->log(\"file does not exists\", self::ERROR);\n exit;\n }\n\n if ($conf_file !== NULL && file_exists($conf_file)) {\n $this->_config = parse_ini_file($conf_file, true);\n return $this;\n }\n }", "public function initializeConfiguration(){\n //initial Configured autoload\n if(count($GLOBALS['config']['autoload']))\n self::autoload($GLOBALS['config']['autoload']);\n\n\n }", "private function loadConstants()\n {\n // config.ini globale\n $configurationFileName = (!empty($_SERVER['DOCUMENT_ROOT']) ? dirname($_SERVER['DOCUMENT_ROOT']) : getcwd()) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'config.ini';\n if(!file_exists($configurationFileName))\n {\n throw new \\Exception(sprintf('File di configurazione \"%s\" non trovato', $configurationFileName));\n }\n Config::add(parse_ini_file($configurationFileName, true));\n \n Config::set('application.dir', $this->getRootDir());\n \n if(!Config::get('MAIN/document_root'))\n {\n Config::set('MAIN/document_root', $this->getRootDir() . DIRECTORY_SEPARATOR . 'public');\n }\n \n if(!Config::get('MAIN/cache_path'))\n {\n Config::set('MAIN/cache_path', $this->getRootDir() . DIRECTORY_SEPARATOR . 'cache');\n }\n\n $coreDir = $this->getCoreDir();\n }", "public static function load()\n {\n $configFile = self::getConfigFilePath();\n\n if (!is_file($configFile)) {\n self::save([]);\n }\n\n $config = require($configFile);\n\n if (!is_array($config))\n return array();\n\n return $config;\n }", "protected function loadConfigurations(): array\n {\n $config = [];\n\n foreach ($this->getConfigurationFiles() as $key => $file) {\n $config[$key] = require $file;\n }\n\n return $config;\n }", "function load_config($path) {\n \n // Check path\n if(file_exists($path) == false) {\n throw new Exception(\"Unable to load configuration -- file not found: $path\");\n }\n \n // Check file\n if(is_file($path) == false) {\n throw new Exception(\"Unable to load configuration -- not a file: $path\");\n }\n \n // Check permissions\n if(is_readable($path) == false) {\n throw new Exception(\"Unable to load configuration -- access denied: $path\");\n }\n \n // Check size \n if(filesize($path) == 0) {\n throw new Exception(\"Unable to load configuration -- file is empty: $path\");\n }\n \n // Load parser\n require_once(YAML_PARSER);\n \n // Load config\n $config = Spyc::YAMLLoad($path);\n \n // Check result - if empty, throw an exception\n if(sizeof($config) == 0) {\n throw new Exception(\"Unable to load configuration -- parse error: $path\");\n }\n \n // General application options\n if(isset($config['info']['name'])) { $this->set_name($config['info']['name']); }\n if(isset($config['info']['admin email'])) { $this->set_admin_email($config['info']['admin email']); }\n if(isset($config['info']['admin name'])) { $this->set_admin_name($config['info']['admin name']); }\n if(isset($config['info']['base url'])) { $this->set_base_url($config['info']['base url']); }\n if(isset($config['info']['base directory'])) { $this->set_base_dir($config['info']['base directory']); }\n \n // Database\n if(isset($config['database']['name'])) { \n \n // Initialize db object\n $this->db = new StanfordDatabase();\n \n // Credentials\n if(isset($config['database']['name'])) { $this->db->set_database($config['database']['name']); }\n if(isset($config['database']['username'])) { $this->db->set_username($config['database']['username']); }\n if(isset($config['database']['password'])) { $this->db->set_password($config['database']['password']); }\n \n // Encryption\n if(isset($config['database']['use encryption'])) { $this->db->use_encryption($config['database']['use encryption']); }\n else { $this->db->use_encryption(false); }\n\n }\n \n // Use mysql sessions set to true\n if(isset($config['database']['use mysql sessions']) && $config['database']['use mysql sessions'] == true ) {\n \n // Check DB\n if($this->db instanceof StanfordDatabase) {\n \n // Enable MySQL sessions\n $this->db->setup_mysql_sessions();\n \n }\n else {\n \n // DB not configured\n throw new Exception(\"Cannot enable MySQL-based sessions -- database credentials not provided\"); \n \n }\n }\n \n // Logging\n if(isset($config['settings']['logging mode'])) {\n $this->util->set_error_reporting($config['settings']['logging mode']);\n }\n \n // Undo magic quotes\n if(isset($config['settings']['undo magic quotes']) && $config['settings']['undo magic quotes'] == true) {\n $this->util->undo_magic_quotes();\n }\n }", "protected function loadSettings() {}", "protected function loadSettings() {}", "protected function loadSettings() {}", "abstract protected function loadSettings();", "private function loadConfig() {\n\n //get pachage and configuration\n $pkg = Package::getByHandle(\"c5authy\");\n Loader::library('authy', $pkg);\n\n $co = new Config();\n $co->setPackageObject($pkg);\n\n $production = ( $co->get('authy_server_production') == \"1\" ? true : false );\n\n //set the values\n $this->api_key = $co->get('authy_api_key');\n $this->server = $production ? self::LIVE_SERVER : self::SANDBOX_SERVER;\n $this->auth_type = $co->get('authy_type');\n $this->sms_token = $co->get('authy_sms_tokens');\n }", "public function loadConfig($file) {\n $config = array();\n if (file_exists(PATH_CONFIGS . $file))\n include(PATH_CONFIGS . $file);\n if (!empty($config)) {\n foreach ($config as $name => $array) {\n $this->configs[$name] = $array;\n }\n }\n }", "function load_config()\n\t{\n\t\t$sql = \"SELECT * FROM config\";\n\n\t\t$dbdata = $this->conn->prepare($sql);\n\t\t$dbdata->execute();\n\n\t\tforeach ($dbdata->fetchAll(PDO::FETCH_OBJ) as $conf) {\n\t\t\tif ($conf->value == 'true') {\n\t\t\t\t$conf->value = true;\n\t\t\t} elseif ($conf->value == 'false') {\n\t\t\t\t$conf->value = false;\n\t\t\t}\n\n\t\t\t$this->config->set($conf->param, $conf->value);\n\t\t}\n\t}", "public function load( $files)\n {\n\n if(is_array($files))\n {\n foreach ($files as $file) {\n if(file_exists($file))\n $this->config_arr[basename($file,\".php\")] = include_once \"$file\";\n }\n }\n else{\n if(file_exists($files))\n $this->config_arr[basename($files,\".php\")] = include_once \"$files\";\n }\n }", "private function setUpConfig() {\n\n //Get the file where the configs are and process the arrays\n require($this->_data['pathtodata']);\n\n $this->_data = array_merge($this->_data,$acs_confdata);\n\n if (empty($this->_data['indexfile']))\n $this->_data['indexfile'] = 'index';\n\n if (empty($this->_data['common_extension']))\n $this->_data['common_extension'] = COMMON_EXTENSION;\n \n $this->setUriData($this->_data); \n \n //Create the cache file of the config\n if (isset($this->_data['cache_config']) && $this->_data['cache_config'])\n $this->saveConfig();\n else\n if (file_exists($this->_data['cache_config_file']))\n unlink($this->_data['cache_config_file']); \n }", "private function loadPhpConfiguration()\n {\n // direttive php\n require Config::get('MAIN/core_path') . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'cache' . DIRECTORY_SEPARATOR . 'baseCache.class.php';\n $cache = new BaseCache(array('cache_dir' => 'ini', 'extension' => '.cache'));\n\n if(!$cache->has('php.ini'))\n {\n $options = array();\n if(file_exists(Config::get('application.dir') . DIRECTORY_SEPARATOR . 'ini' . DIRECTORY_SEPARATOR . 'php.ini'))\n {\n $options = parse_ini_file(Config::get('application.dir') . DIRECTORY_SEPARATOR . 'ini' . DIRECTORY_SEPARATOR . 'php.ini', true);\n }\n else\n {\n $options = parse_ini_file(Config::get('MAIN/core_path') . DIRECTORY_SEPARATOR . 'ini' . DIRECTORY_SEPARATOR . 'php.ini', true);\n }\n\n $cache->set('php.ini', serialize($options));\n }\n else\n {\n $options = unserialize($cache->get('php.ini', array()));\n }\n\n $options = Config::get('application.debug') ? (isset($options['dev']) ? $options['dev'] : array()) : (isset($options['prod']) ? $options['prod'] : array());\n\n foreach($options as $varname => $varvalue)\n {\n ini_set($varname, $varvalue);\n }\n\n // php version\n if(Config::has('phpversion') && Config::get('phpversion') > phpversion())\n {\n throw new CoreException(sprintf('Per eseguire l\\'applicazione è richiesto PHP %s, installato PHP %s', Config::get('phpversion'), phpversion()));\n }\n\n // error handler\n //set_error_handler(array('CoreException', 'errorHandler'));\n }", "protected function loadConfiguration()\n {\n $config_path = __DIR__ . '/../../config/tintin.php';\n\n if (!$this->isLumen()) {\n $this->publishes([\n $config_path => config_path('view.php')\n ], 'config');\n }\n\n $this->mergeConfigFrom($config_path, 'view');\n }", "private static function init()\n {\n $configFile = App::root(self::FILE);\n if (!file_exists($configFile)) {\n throw new Exception('Missing configuration file: ' . self::FILE);\n }\n\n $userConfig = require $configFile;\n\n return array_replace_recursive(self::$default, $userConfig);\n }", "public static function load_app_conf() {\n $app_config = include(CONFIGPATH.'app.conf.php');\n return $app_config;\n }", "private function loadFiles()\n {\n $finder = new Finder();\n\n foreach (Config::get('routing_dirs') as $directory) {\n $finder\n ->files()\n ->name('*.yml')\n ->in($directory)\n ;\n\n foreach ($finder as $file) {\n $resource = $file->getRealPath();\n $this->routes = array_merge($this->routes, Yaml::parse(file_get_contents($resource)));\n }\n }\n }", "public static function load_db_conf(){\n $db_config = include(CONFIGPATH.'db.conf.php');\n return $db_config;\n }", "function loadConfigFile ($fileName) {\n\t\tif (file_exists ($fileName)) {\n\t\t\tif (is_readable ($fileName)) {\n\t\t\t\t$configItems = array ();\n\t\t\t\tinclude ($fileName);\n\t\t\t\t$this->loadConfigArray ($configItems);\n\t\t\t} else {\n\t\t\t\treturn new Error ('CONFIG_FILE_NOT_READABLE', $fileName);\n\t\t\t}\n\t\t} else {\n\t\t\treturn new Error ('CONFIG_FILE_NOT_FOUND', $fileName);\n\t\t}\n\t}", "public function loadConfiguration()\n\t{\n\t\t// Set the configuration file path for the application.\n\t\t$file = JPATH_CONFIGURATION . '/configuration.php';\n\n\t\t// Verify the configuration exists and is readable.\n\t\tif (!is_readable($file))\n\t\t{\n\t\t\tthrow new \\RuntimeException('Configuration file does not exist or is unreadable.');\n\t\t}\n\n\t\t// Load the configuration file into an object.\n\t\trequire $file ;\n\t\t$config = new JConfig;\n\n\t\tif ($config === null)\n\t\t{\n\t\t\tthrow new \\RuntimeException(sprintf('Unable to parse the configuration file %s.', $file));\n\t\t}\n\n\t\t// Get the FB config file path\n\t\t$file = JPATH_BASE . '/config_fb.json';\n\n\t\t// Verify the configuration exists and is readable.\n\t\tif (!is_readable($file))\n\t\t{\n\t\t\tthrow new \\RuntimeException('FB-Configuration file does not exist or is unreadable.');\n\t\t}\n\n\t\t// Load the configuration file into an object.\n\t\t$configFb = json_decode(file_get_contents($file));\n\n\t\tif ($configFb === null)\n\t\t{\n\t\t\tthrow new \\RuntimeException(sprintf('Unable to parse the configuration file %s.', $file));\n\t\t}\n\n\t\t// Merge the configuration\n\t\t$config->fb_app_id \t\t= $configFb->app_id;\n\t\t$config->fb_app_secret \t= $configFb->app_secret;\n\n\t\t$this->config->loadObject($config);\n\n\t\treturn $this;\n\t}", "private function loadArray(){\n if(file_exists($this->fullPath.$this->arrayFile)){\n include_once($this->fullPath.$this->arrayFile);\n if(!empty($arCfg)){\n $this->loadConfigs($arCfg);\n }\n }\n }", "private function initialiseConfig()\n {\n $this->mergeConfigFrom(__DIR__ . '/..' . Settings::LARAVEL_REAL_CONFIG, Settings::LARAVEL_CONFIG_NAME);\n }", "function parseConfig() {\n\n\t\t// Make sure our config file exists\n\t\tif(!file_exists(CONFIGPATH . $this->_options['configFile'])) {\n\t\t\tdie('Unable to find <b>'. CONFIGPATH . $this->_options['configFile'] .'</b> file, please check your application configuration');\n\t\t}\n\n\t\t// Switch the file extension\n\t\tswitch(PPI_Helper::getFileExtension($this->_options['configFile'])) {\n\t\t\tcase 'ini':\n\t\t\t\treturn new PPI_Config_Ini(parse_ini_file(CONFIGPATH . $this->_options['configFile'], true, INI_SCANNER_RAW), $this->_options['configBlock']);\n\n\t\t\tcase 'xml':\n\t\t\t\tdie('Trying to load a xml config file but no parser yet created.');\n\t\t\t\tbreak;\n\n\t\t\tcase 'php':\n\t\t\t\tdie('Trying to load a php config file but no parser yet created.');\n\t\t\t\tbreak;\n\n\t\t}\n\t}", "function config_load() {\n\t\t$config_camera = '/^\\s*([^:]+)\\s*:\\s*([0-9a-f]{2})[:-]?([0-9a-f]{2})[:-]?([0-9a-f]{2})[:-]?([0-9a-f]{2})[:-]?([0-9a-f]{2})[:-]?([0-9a-f]{2})\\s+(\\d+)\\s*x\\s*(\\d+)\\s*$/iu';\n\t\t$config_gate = '/^\\s*(.+)\\s*\\((\\d+)\\s*,\\s*(\\d+)\\)\\s*\\((\\d+),(\\d+)\\)\\s*$/u';\n\n\t\t$data = file(CONFIG_PATH);\n\t\tif ($data === NULL) {\n\t\t\treturn array();\n\t\t}\n\n\t\t$config = array();\n\n\t\t$status = 0;\n\t\tfor ($n=0; $n<sizeof($data); $n++) {\n\t\t\t$str = $data[$n];\n\t\t\n\t\t\tif (preg_match($config_camera, $str, $matches)) {\n\t\t\t\t$name = trim($matches[1]);\n\t\t\t\t$hw_id = $matches[2].$matches[3].$matches[4].$matches[5].$matches[6].$matches[7];\n\t\t\t\t$width = $matches[8];\n\t\t\t\t$height= $matches[9];\n\n\t\t\t\t$gates = array();\n\t\t\t\tarray_push($config, \n\t\t\t\t\t\t array(\"hw\" => $hw_id, \n\t\t\t\t\t\t \"name\" => $name, \n\t\t\t\t\t\t\t\t \"gates\" => &$gates,\n\t\t\t\t\t\t\t\t \"width\" => $width,\n\t\t\t\t\t\t\t\t \"height\"=> $height));\n\t\t\t\t$status = 1;\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ($status == 1 && preg_match($config_gate, $str, $matches)) {\n\t\t\t\tarray_push($gates, array(\"name\"=>trim($matches[1]),\n\t\t\t\t\t\t\t\t\t\t \"x1\" =>$matches[2],\n\t\t\t\t\t\t\t\t\t\t \"y1\" =>$matches[3],\n\t\t\t\t\t\t\t\t\t\t \"x2\" =>$matches[4],\n\t\t\t\t\t\t\t\t\t\t \"y2\" =>$matches[5]));\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\treturn $config;\n\t}", "public function loadConfig($filename)\n {\n return $this->getConfig()->loadConfig($filename);\n }", "function load_config($conf) {\n $this->conf = $conf; // Store configuration\n\n $this->pi_setPiVarDefaults(); // Set default piVars from TS\n $this->pi_initPIflexForm(); // Init FlexForm configuration for plugin\n\n // Read extension configuration\n $extConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$this->extKey]);\n\n if (is_array($extConf)) {\n $conf = t3lib_div::array_merge($extConf, $conf);\n\n }\n\n // Read TYPO3_CONF_VARS configuration\n $varsConf = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$this->extKey];\n\n if (is_array($varsConf)) {\n\n $conf = t3lib_div::array_merge($varsConf, $conf);\n\n }\n\n // Read FlexForm configuration\n if ($this->cObj->data['pi_flexform']['data']) {\n\n foreach ($this->cObj->data['pi_flexform']['data'] as $sheetName => $sheet) {\n\n foreach ($sheet as $langName => $lang) {\n foreach(array_keys($lang) as $key) {\n\n $flexFormConf[$key] = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], \n $key, $sheetName, $langName);\n\n if (!$flexFormConf[$key]) {\n unset($flexFormConf[$key]);\n\n }\n }\n }\n }\n }\n\n if (is_array($flexFormConf)) {\n\n $conf = t3lib_div::array_merge($conf, $flexFormConf);\n }\n\n $this->conf = $conf;\n\n }", "static public function load($filename) {\n\t\t$filename .= '.php';\n\n\t\tif (!file_exists($filename)) {\n\t\t\tthrow new \\Exception('Configuration file not found: ' . $filename);\n\t\t}\n\n\t\tinclude $filename;\n\n\t\tif (!isset($config)) {\n\t\t\tthrow new \\Exception('No variable $config found in ' . $filename);\n\t\t}\n\n\t\tself::$values = $config;\n\t}", "function load_config() {\n $config_file = \"scripts/i-erp.conf\";\n $comment = \"#\";\n // open the config file\n $fp = fopen($config_file, \"r\");\n if (!$fp) {\n echo(\"Failed to open file\");\n return 0;\n }\n // loop through the file lines and pull out variables\n while (!feof($fp)) {\n $line = trim(fgets($fp));\n if ($line && $line[0] != $comment) {\n $pieces = explode(\"=\", $line);\n $option = trim($pieces[0]);\n $value = trim($pieces[1]);\n $config_values[$option] = $value;\n }\n }\n fclose($fp);\n $_SESSION['install_lib'] = $config_values['install_lib'];\n $_SESSION['server'] = $config_values['server'];\n $_SESSION['timeout'] = $config_values['timeout'];\n $_SESSION['appname'] = $config_values['appname'];\n $_SESSION['h_logo'] = $config_values['h_logo'];\n $_SESSION['si_logo'] = $config_values['si_logo'];\n $_SESSION['copyr'] = $config_values['copyr'];\n return 1;\n}", "private static function readConfig()\n {\n $handler = self::getHandler();\n if (null == $handler->arrConfigGlobal && null == $handler->arrConfigLocal && null == $handler->arrConfigSecure) {\n include dirname(__FILE__) . '/../../config/default.php';\n\n $handler->arrConfigLocal = $APPCONFIG;\n\n $db = Base_Database::getConnection();\n try {\n // This is just for things like API keys, password salts etc.\n // If we have, at a later point, a function to export the database\n // en masse, then we can encrypt all the output from the secureconfig\n // table. It shouldn't overide the global or local config settings\n $sql = \"SELECT * FROM secureconfig\";\n $query = $db->prepare($sql);\n $query->execute();\n $handler->arrConfigSecure = $query->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);\n\n // This is just the regular global configuration settings.\n $sql = \"SELECT * FROM config\";\n $query = $db->prepare($sql);\n $query->execute();\n $handler->arrConfigGlobal = $query->fetchAll(PDO::FETCH_COLUMN|PDO::FETCH_GROUP);\n foreach ($handler->arrConfigGlobal as $key => $value) {\n $handler->arrConfig[$key] = array('isLocal' => false, 'isOverriden' => false, 'value' => $value[0]);\n }\n \n // This is the configuration settings local to this individual machine.\n foreach ($handler->arrConfigLocal as $key => $value) {\n if (isset($handler->arrConfig[$key])) {\n $handler->arrConfig[$key] = array('isLocal' => true, 'isOverriden' => true, 'value' => $value);\n } else {\n $handler->arrConfig[$key] = array('isLocal' => true, 'isOverriden' => false, 'value' => $value);\n }\n }\n } catch(Exception $e) {\n error_log($e);\n die();\n }\n }\n }", "private function load_settings() {\n\t\t\n\t}", "private function loadJson(){\n if(file_exists($this->fullPath.$this->jsonFile)) {\n $arCfg = get_object_vars(json_decode(file_get_contents($this->fullPath.$this->jsonFile)));\n $this->loadConfigs($arCfg);\n }\n }", "public static function init() {\n foreach (static::$dirs as $dir) {\n if($phpFiles = glob($dir . DIRECTORY_SEPARATOR . '*.php')) {\n foreach ($phpFiles as $phpFile) {\n $namespace = basename($phpFile, '.php');\n static::$config[$namespace] = require_once $phpFile;\n }\n }\n }\n }", "function __construct() {\n if (!file_exists($this->configuration_file_path)) {\n \n die(\"FATAL: Missing \" . $this->configuration_file_path . `pwd` );\n \n }\n \n $raw_contents = file_get_contents($this->configuration_file_path);\n\n\n //parse json object\n try {\n\n $this->Config = json_decode( $raw_contents );\n\n } catch (Exception $e) {\n\n die(\"FATAL: Bad configuration file? \");\n\n }\n \n\n }", "function xf_configLoad()\n{\n global $lang, $XF, $XF_loaded;\n if ($XF_loaded) {\n return $XF;\n }\n if (!($confdir = get_plugcfg_dir('xfields'))) {\n return false;\n }\n if (!file_exists($confdir.'/config.php')) {\n $XF_loaded = 1;\n\n return ['news' => []];\n }\n include $confdir.'/config.php';\n $XF_loaded = 1;\n $XF = is_array($xarray) ? $xarray : ['news' => []];\n\n return $XF;\n}", "protected function _initConfigs()\n {\n $registry = Zend_Registry::getInstance();\n \n $configs = array('config');\n \n foreach($configs AS $name) {\n $config = new Zend_Config_Ini(\n APPLICATION_PATH . '/configs/' . $name . '.ini',\n APPLICATION_ENV\n );\n $registry->set('config.' . $name, $config);\n }\n }", "function conf($path){\n\t$path=trim($path,'.');\n\tif(strlen($path)==0){\n\t\tthrow new exception(\"Illage config para\");\n\t}\n\tstatic $allconfig=array();\n\t$arrpath=explode('.',$path);\n\t//get config file name($cfn)\n\t$cfn=array_shift($arrpath);\n\n\tif(!array_key_exists($cfn,$allconfig)){\n\t\t//it seems that this config file has not been loaded\n\t\t$conffilepath='application/config/'.$cfn.'.php';\n\t\tif(is_readable($conffilepath)){\n\t\t\t//get include file\n\t\t\t$allconfig[$cfn]=include $conffilepath;\n\t\t\t$arrret=$allconfig[$cfn];\n\t\t}\n\t\telse{\n\t\t\tthrow new exception('config file include error');\n\t\t}\n\t}\n\telse{\n\t\t//it looks that this config file has been loaded already\n\t\t$arrret=$allconfig[$cfn];\n\t}\n\t//step into to get config array\n\tforeach($arrpath as $k => $v)\n\t{\n\t\tif(array_key_exists($v,$arrret)){\n\t\t\t$arrret=$arrret[$v];\n\t\t}\n\t\telse{\n\t\t\tthrow new exception('key '.$v.' doesnot exist ');\n\t\t}\n\t}\n\n\treturn $arrret;\n\n}", "function __loadConfig() {\n\t\t$area = $this->__determineArea();\n\t\tConfigure::write('Area', $area);\n\t\t$user = $this->User->findById($this->Session->read('Auth.User.id'));\n\t\tConfigure::write('User', $user['User']);\n\t}" ]
[ "0.7952769", "0.7854759", "0.7850848", "0.78005475", "0.77842784", "0.77263606", "0.7527358", "0.74719936", "0.74495775", "0.74414384", "0.73004705", "0.7289922", "0.7284549", "0.72816026", "0.7275365", "0.72532547", "0.7218785", "0.72002804", "0.71988803", "0.71961755", "0.7183614", "0.7162162", "0.71480954", "0.70664275", "0.705448", "0.70493484", "0.7043136", "0.7032435", "0.7017933", "0.6992953", "0.6954386", "0.69298774", "0.6908741", "0.6907347", "0.690071", "0.6885059", "0.68691677", "0.68576545", "0.68532103", "0.68501043", "0.68283725", "0.6821708", "0.68207616", "0.6805799", "0.6796095", "0.67953366", "0.6779548", "0.67742044", "0.676725", "0.6741064", "0.6728442", "0.6697622", "0.66926134", "0.66652703", "0.66596675", "0.6639908", "0.6636147", "0.6628147", "0.66097695", "0.66022694", "0.6591759", "0.6561946", "0.6559689", "0.65504605", "0.65504485", "0.65312314", "0.65300727", "0.6530062", "0.6530062", "0.65247697", "0.6514034", "0.6510773", "0.6506791", "0.64944565", "0.64778876", "0.64742196", "0.64692575", "0.6463344", "0.6454624", "0.64435345", "0.6442548", "0.64358795", "0.64193785", "0.6413937", "0.64064306", "0.63951427", "0.6387865", "0.6378597", "0.63758093", "0.6374682", "0.6374541", "0.6358019", "0.6357864", "0.6351509", "0.63455397", "0.6341032", "0.63356465", "0.63343763", "0.6331288", "0.6328171" ]
0.6950068
31
Sets a parameter in the config file.
protected function _set_parameter($key, $value) { clearos_profile(__METHOD__, __LINE__); $file = new File(self::FILE_CONFIG); if (! $file->exists()) $file->create('root', 'root', '0644'); $match = $file->replace_lines("/^$key\s*=\s*/", "$key = $value\n"); if (!$match) $file->add_lines("$key = $value\n"); $this->is_loaded = FALSE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _set_parameter($key, $value)\n {\n clearos_profile(__METHOD__, __LINE__);\n\n $this->is_loaded = FALSE;\n\n $file = new File(self::APP_CONFIG);\n\n if (! $file->exists())\n $file->create(\"root\", \"root\", \"0644\");\n\n $match = $file->replace_lines(\"/^$key\\s*=\\s*/\", \"$key = $value\\n\");\n\n if (!$match)\n $file->add_lines(\"$key = $value\\n\");\n }", "public function setParameter(string $name, $value): void\n {\n $this->config[$name] = $value;\n }", "public function set($parameter, $value);", "public abstract function setParameter($parameter);", "function _set_config_param($name,$value)\r\n\t{\r\n\t\t$this->db->query(\"update m_config_params set value = ? where name = ? limit 1\",array($value,$name));\r\n\t}", "public function setParameter($name, $value);", "public function setParam($param, $value){\n // $value = array_merge(array('plugins'), (array)$value);\n\n if ($param == 'template_dir'){\n $this->setTemplateDirs((array)$value);\n } else {\n //$this->_instance->$param = $value;\n }\n\n\n }", "public function setParam($param, $value);", "function set_parameter($name, $value)\r\n {\r\n //dump(get_class($this) . ' | ' . $name);\r\n $this->parameters[$name] = $value;\r\n }", "public function setParameter($name, $value) {\n $this->parameters[$name]= $value;\n }", "public function setConfig($key, $value);", "public function setParam($name, $value);", "protected function setParameter($name, $value)\n {\n $this->parameters[$name] = $value;\n }", "abstract protected function setParameter($key, $value);", "protected function setParamConfig()\n {\n $this->paramConfig = ArrayManipulation::deepMerge($this->paramConfig, array(\n 'placeholder' => array(\n 'name' => 'Platzhalter Text',\n 'type' => 'textfield'\n ),\n 'rows' => array(\n 'name' => 'Anzahl Zeilen',\n 'type' => 'textfield'\n ),\n 'maxlength' => array(\n 'name' => 'Maximale Anzahl Zeichen (optional)',\n 'type' => 'textfield'\n )\n ));\n }", "public function setParam($key, $value);", "function setParameter($key, $value) {\n $this->parameters[$key] = $value;\n }", "public function setParameter($param, $value)\n {\n $this->params[$param] = $value;\n }", "public function set($config){\n\t\t$this->configValues = $config;\n\t}", "public function set_parameter($name, $value)\n {\n $this->_parameters[ $name ] = $value;\n }", "public function setParameter($name, $value)\n {\n $this->getParameters();\n $this->parameters[$name] = $value;\n }", "public function setParameter($name, $value)\n {\n $this->parameters();\n $this->parameters[$name] = $value;\n }", "function setParam($name, $value) {\n $this->params[$name] = $value;\n }", "public abstract function setConfig($key, $value);", "public function setParameter($name, $value) {\n $this->parameters[$name] = $value;\n }", "public function setParameter ($name, $value)\n {\n\n $this->parameters[$name] = $value;\n\n }", "public function setParam($name, $value) {\n $this->parameter[$name] = $value;\n }", "public function setParameter($name, $value)\n {\n $this->parameters[$name] = $value;\n }", "public function __set($param, $value)\r\n {\r\n $this->params_named->set($param, $value);\r\n }", "protected function setParam($name, $value) {\n if (!array_key_exists($name, $this->params)) {\n throw new \\Exception(E()->Utils->translate('ERR_DEV_NO_PARAM').': '.$name.' @'.$this->getName() , SystemException::ERR_DEVELOPER);\n }\n if ($name == 'active') {\n $value = (bool)$value;\n }\n if (is_scalar($value)) {\n $value = explode('|', $value);\n $this->params[$name] =\n (sizeof($value) == 1) ? current($value) : $value;\n } elseif (is_array($value)) {\n $this->params[$name] = $value;\n } else {\n $this->params[$name] = $value;\n }\n }", "public function setParameter(string $paramName, $paramValue = NULL);", "function set_post_parameter($param, $value) {\n\n $post_value = \\M\\Config::get('POST');\n $post_value[$param] = $value;\n\n \\M\\Config::set('POST', $post_value);\n}", "function set_get_parameter($param, $value) {\n\n $get_value = \\M\\Config::get('GET');\n $get_value[$param] = $value;\n\n \\M\\Config::set('GET', $get_value);\n}", "public function set ( $name, $value ) {\n\t\tif(!ctype_alpha(str_replace(' ', '', $name))) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('The name \"%s\" is invalid.', $name));\n\t\t}\n\t\t$this->config[$name] = $value;\n\t}", "public function __set($param, $value);", "public function setParam($name, $value){\n\t\t$this->params[(string)$name] = $value;\n\t}", "public function set_param($key, $value)\n {\n }", "function setConfig( $pName, $pValue ) {\n\t\t$this->mConfig[$pName] = $pValue;\n\t\treturn( TRUE );\n\t}", "public function setParameter(int $parameter): void\n {\n $this->parameter = $parameter;\n }", "public function setParameter($name, $value)\n {\n $this->params[$name] = $value;\n $this->processFilters();\n }", "public function setParam($name, $value){\n\t\tthrow new Exception(\"Method \".__CLASS__.\"::\".__METHOD__.\" not implemented yet!\");\n\t}", "public function __set($param, $value)\n\t{\n\t\tswitch($param)\n\t\t{\n\t\t\tcase 'width':\n\t\t\tcase 'height':\n\t\t\tcase 'font_size':\n\t\t\tcase 'line_height':\n\t\t\t\tif(intval($value) )\n\t\t\t\t\t$this->$param = intval($value);\n\t\t\t\tbreak;\n\t\t\tcase 'format':\n\t\t\t\tif(in_array($value, array('jpg', 'jpeg') ) )\n\t\t\t\t{\n\t\t\t\t\t$this->format = 'jpg';\n\t\t\t\t\t$this->mime = 'images/jpeg';\n\t\t\t\t}\n\t\t\t\tif(in_array($value, array('png', 'gif') ) )\n\t\t\t\t{\n\t\t\t\t\t$this->format = $value;\n\t\t\t\t\t$this->mime = \"image/$value\";\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'font':\n\t\t\t\t// you can only use OTF fonts if it contains TTF outlines, otherwise the font may not work at all with GD\n\t\t\t\tif(file_exists($value) && preg_match('/(\\.[to]tf)$/', $value) )\n\t\t\t\t\t$this->font = $value;\n\t\t\t\tbreak;\n\t\t\tcase 'foreground':\n\t\t\t\tif(preg_match('/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/', $value, $matches))\n\t\t\t\t\t$this->$param = $this->add_colour($matches[1]);\n\t\t\t\tbreak;\n\t\t\tcase 'auto_rotate':\n\t\t\t\tif(is_bool($value))\n\t\t\t\t\t$this->$param = $value;\n\t\t\t\tbreak;\n\t\t}//end switch\n\t}", "private function setParameter($argv){\n\t\t\t\n\t\t// CLI argv count which must be 7 including filename\n\t\tif(count($argv) == 7){\n\n\t\t\tif( ( isset($argv[1]) && ($argv[1] == '-u') ) && (isset($argv[3]) && ($argv[3] == '-p')) ){\n\n\t\t\t\t$this->setUser($argv[2]);\n\t\t\t\t$this->setPassword($argv[4]);\n\t\t\t\t$this->setUrl($argv[5]);\n\t\t\t\t$this->setContributor($argv[6]);\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$this->setError('Invalid parameters.');\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\t$this->setError('Insufficient parameters.');\n\t\t}\n\t}", "public function setParam($param, $value)\n {\n $this->params[$param] = $value;\n }", "public function setParam(string $name, $value): void\n {\n $this->params[$name] = $value;\n }", "public static function set(string $config, mixed $value) : void{\n self::$configurations[$config] = $value;\n }", "public function set($params) {}", "public function setter(string $paramName, $paramValue);", "function setProperty($name, $value) {\n include_once(PAPAYA_INCLUDE_PATH.'system/base_module_options.php');\n base_module_options::writeOption($this->moduleGuid, $name, $value);\n }", "public function set( $name, $value )\n\t{\n\t\t$this->_params[$name] = $value;\n\t}", "public function setMinkParameter($name, $value)\n {\n $this->minkParameters[$name] = $value;\n }", "public function configSet($parameter, $value) {\n return $this->returnCommand(['CONFIG', 'SET'], null, [$parameter, $value]);\n }", "public function set_parameter(Application $application, $name, $value)\n {\n $parameters = &$this->determine_level($application);\n $parameters[$name] = $value;\n }", "public function setConfig(array $params);", "public static function set($name, $value)\n {\n self::$config[$name] = $value;\n }", "function set_external_config($key, $value)\n {\n $this->_external_config[$key] = $value;\n }", "public function setParam($name, $val) {\n $this->params[$name]= $val;\n }", "public function setParameter( $key, $value ) {\n\t\t$this->fields[ $this->parameterPrefix . trim( $key ) ] = $value;\n\t}", "public function setDefaultParam($name, $value);", "public function setParam($param, $value)\n {\n $this->_params[$param] = $value;\n }", "protected function setConfigValue($data){\t\n\t\tMage::getModel('core/config_data')->load($data['path'],'path')->setData($data)->save();\n\t}", "private function _setParam($param, $val)\n {\n \n switch ($param) {\n case 'symbol':\n $this->symbol = $val;\n break;\n case 'stat':\n $this->stat = $val;\n break;\n case 'history':\n $this->history = $val;\n break;\n }\n }", "function set($key, $val)\n {\n $config[$key] = $val;\n \n }", "public function setConfigVariable($name, $value)\n {\n $this->config[$name] = $value;\n }", "public function setConfig($config)\r\n {\r\n $this->config = $config;\r\n }", "public function __set($name, $value)\n {\n $this->params[$name] = $value;\n }", "public function set_config($name, $value) {\n $settingspluginname = 'assessmentsettings';\n $this->load_config();\n if ($value === null) {\n unset($this->config->$name);\n } else {\n $this->config->$name = $value;\n }\n set_config($name, $value, \"local_$settingspluginname\");\n }", "public function set_config($name, $value) {\n $pluginname = $this->get_name();\n $this->load_config();\n if ($value === null) {\n unset($this->config->$name);\n } else {\n $this->config->$name = $value;\n }\n set_config($name, $value, \"local_$pluginname\");\n }", "function sloodle_set_config($name, $value)\n {\n // If in debug mode, ensure the name is prefixed appropriately for Sloodle\n if (defined('SLOODLE_DEBUG') && SLOODLE_DEBUG) {\n if (substr_count($name, 'sloodle_') < 1) {\n exit (\"ERROR: sloodle_set_config(..) called with invalid value name \\\"$name\\\". Expected \\\"sloodle_\\\" prefix.\");\n }\n }\n // Use the standard Moodle config function, ignoring the 3rd parameter (\"plugin\", which defaults to NULL)\n return set_config(strtolower($name), $value);\n\t}", "public function setConfiguration($config){\r\n $this->configuration=$config;\r\n }", "public function set($key, $value)\n\t{\n\t\t$this->componentConfig->set($key, $value);\n\t}", "public function set( $key, $value ) {\n\n $this->_getConfigVars();\n $this->_conf[$key] = $value;\n $this->_updateConfigFile();\n }", "public function setConfig($config)\n\t{\n\t\t$this->config = $config;\n\t}", "function set_item($item, $value)\n\t{\n\t\t$this->config[$item] = $value;\n\t}", "public function setConfig($id, $value) {\n\t\t$config = $this->em->getRepository('SSNTherapassBundle:Config')->find($id);\n\t\tif (is_null($config)) {\n\t\t\t$config = new Config();\n\t\t}\n\t\t$config->setValue($value);\n\t\tif (is_null($config->getId())) {\n\t\t\t$config->setId($id);\n\t\t\t$this->em->persist($config);\n\t\t}\n\t}", "public static function set($name, $data)\n {\n list($file_name) = explode('.', $name, 2);\n static::load($file_name);\n \\Config::set('data::'.$name, $data);\n }", "public function setParameter($name, $value, $ns = null)\r\n {\r\n $this->parameterHolder->set($name, $value, $ns);\r\n }", "public function setParam($key, $value)\r\n {\r\n $this->_frontController->setParam($key, $value);\r\n }", "public function set_item($item, $value)\n\t{\n\t\tGSMS::$config[$item] = $value;\n\t}", "public function set(string $path, $value);", "public function setWithConfig(string $id, $class, $config_file, $setter = false);", "public function setConfig($config)\n {\n $this->config = $config;\n }", "public function setConfig($config)\n {\n $this->config = $config;\n }", "public function __set($key, $value)\n\t{\n\t\t$this->config(array($key => $value));\n\t}", "public function setConfig($a_configItem, $a_value)\n {\n $this->m_config[$a_configItem] = $a_value;\n }", "public function __set($param, $value)\n\t{\n\t\tswitch($param)\n\t\t{\n\t\t\tcase 'type':\n\t\t\t\tif(in_array($type, array('data', 'xref') ) )\n\t\t\t\t\t$this->type = $type;\n\t\t\t\tbreak;\n\t\t\tcase 'caption':\n\t\t\tcase 'class':\n\t\t\tcase 'id':\n\t\t\tcase 'xref_x':\n\t\t\t\tif(is_string($value))\n\t\t\t\t\t$this->$param = $value;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public function setParameter($parameter, $value)\n {\n $this->setParameters(array_merge($this->getParameters(), [$parameter => $value]));\n }", "public function set($name, $value)\n {\n $this->settings[$name] = $value;\n }", "public function set($name, $value){}", "public function set( $name, $value )\n\t{\n\t\t$this->params[ $name ] = $value;\n\t\tif( $value === null ) unset( $this->params[ $name ] );\n\t\t\n\t\t$this->modified = true;\n\t}", "public static function set(array $config): void;", "public function set($name, $value);", "public function set($name, $value);", "public function set($name, $value);", "private function setParam($statemant, $key, $value){\n\t\t$statemant->bindParam($key, $value);\n\t}", "public function edit ( $name, $value ) {\n\t\tif( !$this->has ( $name ) ) {\n\t\t\tthrow new \\InvalidArgumentException(sprintf('The name \"%s\" does not exist and can not be edited.', $name));\n\t\t}\n\t\t$this->config[$name] = $value;\n\t}", "public function setParameter( $key, $value ) {\n\t\tif ( array_key_exists( $key, $this->smoValues[\"simple\"] ) && !empty( $value ) ) {\n\t\t\t$this->smoValues[\"simple\"][$key] = $value;\n\t\t}\n\t}", "public function setParam($name, $value)\n\t{\n\t\treturn $this->_tpl->params->set($name, $value);\n\t}", "public function setConfig($key, $value, $bolPass = false)\r\n\t{\r\n\t\t$this->arrConfig[Parser::strtoupper( $key )] = $value;\r\n\t\t\r\n\t\tif ( $bolPass == true )\r\n\t\t{\r\n\t\t\t$this->arrPass[Parser::strtolower( $key )] = $value;\r\n\t\t}\r\n\t}", "public function setValue($key, $value) {\n\t\t$this->config->setValue($key, $value);\n\t}" ]
[ "0.7294095", "0.7273377", "0.70640916", "0.702777", "0.6996736", "0.6936444", "0.67541283", "0.67435306", "0.66797054", "0.6662459", "0.66475296", "0.66330963", "0.6558258", "0.65532917", "0.64926153", "0.64902455", "0.6477107", "0.64545625", "0.64384955", "0.6432275", "0.6429642", "0.6419755", "0.6410155", "0.64092505", "0.63956225", "0.6365313", "0.63560337", "0.63512856", "0.63390535", "0.6335073", "0.63154846", "0.6307983", "0.6300994", "0.6298273", "0.628107", "0.62780607", "0.6270383", "0.6265802", "0.62361526", "0.62323964", "0.6222034", "0.6197078", "0.6189111", "0.6183442", "0.6179153", "0.61624074", "0.6143341", "0.61370665", "0.6128662", "0.61265284", "0.61205596", "0.61195064", "0.61160797", "0.6113067", "0.6110867", "0.610915", "0.60686594", "0.60684395", "0.60610944", "0.6058455", "0.6057734", "0.6052862", "0.60199785", "0.60140985", "0.6013748", "0.6013433", "0.59993935", "0.5967376", "0.59638804", "0.5949946", "0.5947534", "0.5943763", "0.59397894", "0.5926091", "0.59196496", "0.59071136", "0.5904409", "0.58976275", "0.5894508", "0.58915246", "0.5884551", "0.5880532", "0.5880532", "0.5870183", "0.5869834", "0.5862935", "0.5854412", "0.5846713", "0.58405226", "0.58356154", "0.5834737", "0.5833787", "0.5833787", "0.5833787", "0.5830465", "0.5830124", "0.581832", "0.5805945", "0.57955825", "0.5785554" ]
0.74010634
0
stampa "speciale ragazzi" in rosso [RICHIAMATO IN stampaTitolo]
function verificaSpecialeRagazzi($numeroEvento, $conn) { $stmt = $conn->prepare("SELECT E.speciale_ragazzi FROM Evento AS E WHERE E.id = ?"); $stmt->bind_param("i", $numeroEvento); $stmt->execute(); $stmt->bind_result($speciale_ragazzi); $stmt->fetch(); $stmt->close(); if ($speciale_ragazzi){return "<h3 style='color:red;'> SPECIALE RAGAZZI </h3>";} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertarEstampa($urlimagen, $urlestampa)\n {\n $estampa = imagecreatefrompng($urlestampa);\n $im = imagecreatefromjpeg($urlimagen);\n // Establecer los márgenes para la estampa y obtener el alto/ancho de la imagen de la estampa\n $margen_dcho = 10;\n $margen_inf = 10;\n $sx = imagesx($estampa);\n $sy = imagesy($estampa);\n // Copiar la imagen de la estampa sobre nuestra foto usando los índices de márgen y el\n // ancho de la foto para calcular la posición de la estampa. \n imagecopy($im, $estampa, imagesx($im) - $sx - $margen_dcho, imagesy($im) - $sy - $margen_inf, 0, 0, imagesx($estampa), imagesy($estampa));\n // Imprimir y liberar memoria\n imagejpeg($im, $urlimagen);\n imagedestroy($im);\n }", "function ritorna_data_attuale() {\n\t$tz = 'Europe/Rome';\n\t$format='d/m/Y H:i:s'; // Formato Italiano\n $retData='';\n//\n// DO NOT EDIT ANYTHING BELOW THIS LINE!\n//\n\tdate_default_timezone_set($tz);\n\t$retData = date($format);\n\treturn($retData);\n}", "function Post_Time($timestamp)\n{\n\t$hrformat = \"%A, %d.%m.%Y. u %H:%M\"; \n\t$res = strftime($hrformat,strtotime($timestamp)); \n\t$vrijeme = iconv('ISO-8859-2', 'UTF-8', $res);\n\t\n\techo($vrijeme);\t\n}", "function waktu_lalu($timestamp){\n $selisih = time() - strtotime($timestamp) ;\n $detik = $selisih ;\n $menit = round($selisih / 60 );\n $jam = round($selisih / 3600 );\n $hari = round($selisih / 86400 );\n $minggu = round($selisih / 604800 );\n $bulan = round($selisih / 2419200 );\n $tahun = round($selisih / 29030400 );\n if ($detik <= 60) {\n $waktu = $detik.' detik yang lalu';\n } else if ($menit <= 60) {\n $waktu = $menit.' menit yang lalu';\n } else if ($jam <= 24) {\n $waktu = $jam.' jam yang lalu';\n } else if ($hari <= 7) {\n $waktu = $hari.' hari yang lalu';\n } else if ($minggu <= 4) {\n $waktu = $minggu.' minggu yang lalu';\n } else if ($bulan <= 12) {\n $waktu = $bulan.' bulan yang lalu';\n } else {\n $waktu = $tahun.' tahun yang lalu';\n }\n return $waktu;\n}", "static function stampaReportEventi($utenti = null){\n $dataGiorno = Utilita::getDataHome();\n $visualizza = 6;\n $prio = Utilita::getValoreFiltro($_GET['prio']);\n $utente = Utilita::getValoreFiltro($_GET['utn']);\n $filiale = Utilita::getValoreFiltro($_GET['filiale']);\n $tipo = Utilita::getValoreFiltro($_GET['tipo']);\n $da = mktime(23, 59, 59, date(\"n\",$dataGiorno), date(\"j\",$dataGiorno), date(\"Y\",$dataGiorno));\n $a = mktime(0, 0, 0, date(\"n\",$dataGiorno), date(\"j\",$dataGiorno), date(\"Y\",$dataGiorno));\n $sql = \"SELECT count(*) as totEventi FROM eventi e,causali c,dipendenti d,filiali f WHERE DATA_DA <= ? and DATA_A >= ? and c.id_motivo = e.fk_causale and d.fk_filiale = f.id_filiale and d.id_dipendente = e.fk_dipendente and (e.fk_causale = ? or ? = 0 ) and (e.priorita = ? or ? = 0 ) and (e.fk_dipendente = ? or ? = 0 ) and (d.fk_filiale = ? or ? = 0 )\";\n $rs = Database::getInstance()->eseguiQuery($sql,array($da,$a,$tipo,$tipo,$prio,$prio,$utente,$utente,$filiale,$filiale));\n $minRiga = Utilita::getNewMinRiga($_POST['codPag'],$_POST['minRiga'],$rs->fields[\"totEventi\"],$visualizza);\n\n $editTxt = '<a alt=\"edit\" href=\"'.Utilita::getHomeUrlFiltri().'&data='.$dataGiorno.'&id_evento=';\n $editTxt2 = '&minrg='.$minRiga.'\"><img border=\"0\" src=\"./img/';\n $prioTxt = '<img src=\"./img/prio'; $prioTxt2 = '.png\" />';\n if(!Autorizzazione::gruppoAmministrazione($_SESSION[\"username\"])){\n $listaUtenti = implode(\",\", $utenti);\n foreach ($utenti as $key => $value) {\n if($value == $utente) {\n $listaUtenti = $utente;\n break;\n }\n }\n $sql = \"SELECT e.id_evento as id, CONCAT(?,e.priorita,?) as ' ', CONCAT(?,e.id_evento,?,CASE WHEN (e.fk_dipendente = ? AND e.stato = 1)THEN 'modifica' ELSE 'dett' END,'.png\\\" /></a>') as Edit, c.nome as Causale,d.username as Utente,date_format(FROM_UNIXTIME(e.data_da),'%d.%m.%y') as Dal,date_format(FROM_UNIXTIME(e.data_a),'%d.%m.%y') as Al,f.nome as Filiale,CASE WHEN e.stato = 1 THEN 'Richiesto' WHEN e.stato = 2 THEN 'Accettato' ELSE 'Segnalato' END as Stato,CASE WHEN e.durata = 'G' THEN 'Giorno' WHEN e.durata = 'M' THEN 'Mattino' ELSE 'Pomeriggio' END as Periodo\n FROM eventi e,causali c,dipendenti d,filiali f\n WHERE DATA_DA <= ? AND DATA_A >= ? AND c.id_motivo = e.fk_causale\n AND d.fk_filiale = f.id_filiale\n AND d.id_dipendente = e.fk_dipendente\n AND (e.fk_causale = ? or ? = 0 )\n AND (e.priorita = ? or ? = 0 )\n AND (e.fk_dipendente in (\".$listaUtenti.\")) ORDER BY e.priorita DESC,e.data_da,c.nome,d.username\";\n\n\n $rs = Database::getInstance()->eseguiQuery($sql,array($prioTxt,$prioTxt2,$editTxt,$editTxt2,$_SESSION[\"id_utente\"],$da,$a,$tipo,$tipo,$prio,$prio));\n }\n else {\n $cnfTxt = '<a alt=\"conferma\" href=\"?pagina=amministrazione&tab=gestione_segnalazioni&azione=visualizza&id_evento=';\n $cnfTxt2 = '\">Conferma</a>';\n $sql = \"SELECT e.id_evento as id, CONCAT(?,e.priorita,?) as ' ', CONCAT(?,e.id_evento,?,'modifica.png\\\"/></a>') as Edit, c.nome as Causale,d.username as Utente,date_format(FROM_UNIXTIME(e.data_da),'%d.%m.%y') as Dal,date_format(FROM_UNIXTIME(e.data_a),'%d.%m.%y') as Al,f.nome as Filiale,CASE WHEN e.stato = 1 THEN 'Richiesto' WHEN e.stato = 2 THEN 'Accettato' ELSE CONCAT(?,e.id_evento,?) END as Stato,CASE WHEN e.durata = 'G' THEN 'Giorno' WHEN e.durata = 'M' THEN 'Mattino' ELSE 'Pomeriggio' END as Periodo FROM eventi e,causali c,dipendenti d,filiali f WHERE DATA_DA <= ? and DATA_A >= ? and c.id_motivo = e.fk_causale and d.fk_filiale = f.id_filiale and d.id_dipendente = e.fk_dipendente and (e.fk_causale = ? or ? = 0 ) and (e.priorita = ? or ? = 0 ) and (e.fk_dipendente = ? or ? = 0 ) and (d.fk_filiale = ? or ? = 0 ) ORDER BY e.priorita DESC,e.data_da,c.nome,d.username\";\n $rs = Database::getInstance()->eseguiQuery($sql,array($prioTxt,$prioTxt2,$editTxt,$editTxt2,$cnfTxt,$cnfTxt2,$da,$a,$tipo,$tipo,$prio,$prio,$utente,$utente,$filiale,$filiale));\n }\n if($rs->fields){\n echo '<p class=\"cellaTitoloTask\">'.stampaEvento::getTitoloReport($dataGiorno).'</p>';\n Utilita::stampaTabella($rs, $_GET[\"id_evento\"],$visualizza);\n }\n \n }", "public function tiempoAtras($timestamp){\n\t\t\tdate_default_timezone_set('America/Mexico_City');\n\t\t\t//this transform the timestamp in seconds\n\t\t\t$timestamp = strtotime($timestamp) ? strtotime($timestamp) : $timestamp;\n\t\t\t$time = time()- $timestamp;\n\n\t\t\tswitch($time){\n\t\t\t\t//Seconds\n\t\t\t\tcase $time <= 60:\n\t\t\t\t\treturn 'Just Now!!';\n\t\t\t\tbreak;\n\t\t\t\t//minutes\n\t\t\t\tcase $time >=60 && $time < 3600:\n\t\t\t\t\treturn (round($time/60) == 1 ) ? 'un minuto atras' : round($time/60).' minutos atras';\n\t\t\t\tbreak;\n\t\t\t\t//hours\n\t\t\t\tcase $time >= 3600 && $time < 86400:\n\t\t\t\t\treturn (round($time/3600)==1) ? 'una hora atras' : round($time/3600).' horas atras';\n\t\t\t\tbreak;\n\t\t\t\t//days\n\t\t\t\tcase $time >= 86400 && $time < 604800:\n\t\t\t\t\treturn ( round($time/86400)==1 ) ? 'un dia atras' : round($time/86400).' dias atras';\n\t\t\t\tbreak;\n\t\t\t\t//week\n\t\t\t\tcase $time >= 604800 && $time < 2600640:\n\t\t\t\t\treturn ( round($time/604800) == 1 ) ? 'una semana atras' : round($time/604800).' semanas atras';\n\t\t\t\tbreak;\n\t\t\t\t//Month\n\t\t\t\tcase $time >= 2600640 && $time <31207680:\n\t\t\t\t\treturn ( round($time/2600640) == 1 ) ? 'un mes atras' : round($time/2600640).' meses atras';\n\t\t\t\tbreak;\n\t\t\t\t//Year\n\t\t\t\tcase $time >= 31207680:\n\t\t\t\t\treturn ( round($time/31207680) == 1 ) ? 'un año atras' : round($time/31207680).' años atras';\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}", "public function actionMuestraPunto(){\n $d=0;\n $date=\"\";\n $dateTime=date(\"Y-m-d H:i:s\"); \n $mt = explode(' ', microtime()); \n $d=mt_rand(0,30); \n $time=strtotime ( date(\"Y-m-d H:i:s\") )*1000;\n echo CJSON::encode(array(\"temp\"=>$d,\"time\"=>$time)); \n }", "function stampaPersona($numeroEvento, $conn) {\n \n $stmt = $conn->prepare(\"SELECT tep.nome, P.alt_name, P.nome, P.cognome, P.id FROM (((eventoPersona AS ep INNER JOIN tipologiaEventoPersona AS tep ON tep.id = ep.tipologia) INNER JOIN Evento AS E ON E.id = ep.id_evento) INNER JOIN Persona AS P ON P.id = ep.id_persona) WHERE E.id = ? ORDER BY ep.tipologia\");\n $stmt->bind_param(\"i\", $numeroEvento);\n $stmt->execute();\n $stmt->bind_result($nome_tipo_rapporto, $alt_name, $nome, $cognome, $id);\n \n $daRitornare=\"\";\n \n $ultimaTipologia = \"babbi l'orsetto\";\n while($stmt->fetch()) {\n \n \n if( $nome_tipo_rapporto == $ultimaTipologia ){\n $daRitornare.= \", \". stampaNome($id, $conn);\n }else{\n if($ultimaTipologia != \"babbi l'orsetto\"){$daRitornare.= \"<br>\";}\n $daRitornare.= \"<b class='cappato'>\" . $nome_tipo_rapporto . \":</b> \";\n $daRitornare.= stampaNome($id);\n }\n \n $ultimaTipologia = $nome_tipo_rapporto; \n }\n return $daRitornare;\n }", "function cambiaf($stamp) \n{\n\t$fdia = explode(\"-\",$stamp);\n\t$fecha = $fdia[2].\"-\".$fdia[1].\"-\".$fdia[0];\n\treturn $fecha;\n}", "function RellenarTitulo()\r\n {\r\n $this->Imprimir('ANÁLSIS DE FALLAS DE DISTRIBUCIÓN');\r\n\r\n $this->Imprimir($this->convocatoria->getLugar(), 93, 10);\r\n\r\n $this->Imprimir(strftime(\"%A %d de %B de %Y\", strtotime($this->convocatoria->getFecha())) .\r\n ' - Hora: ' . $this->convocatoria->getHoraIni() . ' a ' .\r\n $this->convocatoria->getHoraFin(), 95, 10, 16);\r\n }", "private static function timestamp(){\n date_default_timezone_set('Africa/Nairobi');\n $time = time();\n return date(\"Y-m-d G:i:s\", $time);\n }", "public static function Guardar($unAuto)\n {\n//var_dump($unAuto);\n $archivo = fopen(\"Archivos/estacionados.txt\", \"a\");\n $renglon = $unAuto->patente.\"--\".$unAuto->fechIngreso.\"\\n\";\n \n fwrite($archivo, $renglon);\n fclose($archivo);\n }", "function acrescenta_min($horario, $minutos){\n $time = new DateTime($horario);\n $time->add(new DateInterval('PT' . $minutos . 'M'));\n return $stamp = $time->format('Y-m-d H:i:s');\n}", "abstract public function getTstamp();", "function cc_ho_vetrina($agenzia, $rif){\n\tglobal $invetrina;\n\t\n\t// $agenzia qua è il numero interno di Cometa\n\tif( isset( $invetrina[$agenzia] ) ){\t\t\n\t\t\n\t\tif ($invetrina[$agenzia]['imm'] == $rif) {\n\t\t\t// questo immobile è in vetrina\n\t\t\t$vetrina = '1';\n\t\t\tcc_import_immobili_error_log($rif.\" è in vetrina\");\n\t\t\t\n\t\t\t// vediamo se è lo stesso di quello che era già in vetrina o meno\n\t\t\t$oldrif = cc_get_rif_vetrina( substr($rif, 0, 2) );\n\t\t\tcc_import_immobili_error_log(\"oldrif: \".$oldrif);\n\t\t\t\n\t\t\t// se l'immobile attualemnte in vetrina non è questo tolgo quello attuale da vetrina\n\t\t\tif($oldrif != $rif) {\n\t\t\t\tcc_updateVetrina($oldrif); \n\t\t\t\tcc_import_immobili_error_log(\"Tolgo vetrina da \".$oldrif);\n\t\t\t}\n\t\t}else{\n\t\t\t$vetrina = '0';\n\t\t}\t\t\n\t\n\t}else{\n\t\t$vetrina = '0';\n\t}\n\t\n\treturn $vetrina;\n}", "function en_rojo($anio){\n $ar=array();\n $ar['anio']=$anio;\n $sql=\"select sigla,descripcion from unidad_acad \";\n $sql = toba::perfil_de_datos()->filtrar($sql);\n $resul=toba::db('designa')->consultar($sql);\n $ar['uni_acad']=$resul[0]['sigla'];\n $res=$this->get_totales($ar);//monto1+monto2=gastado\n $band=false;\n $i=0;\n $long=count($res);\n while(!$band && $i<$long){\n \n if(($res[$i]['credito']-($res[$i]['monto1']+$res[$i]['monto2']))<-50){//if($gaste>$resul[$i]['cred']){\n $band=true;\n }\n \n $i++;\n }\n return $band;\n \n }", "function generTribeFile()\n{\n global $pathdata, $tabtribes;\n \n $fileu16 = formFileName($pathdata.\"\\\\Npcs\\\\npc_tribe_relation.xml\");\n $fileout = \"../outputs/parse_output/tribe/tribe_relations.xml\";\n \n $fileext = convFileToUtf8($fileu16);\n logHead(\"Generierung der Datei\");\n logLine(\"Eingabedatei UTF16\",$fileu16);\n logLine(\"Eingabedatei UTF8\",$fileext);\n logLine(\"Ausgabedatei\",$fileout);\n \n $cntles = 0;\n $cntout = 0;\n \n $hdlout = openOutputFile($fileout);\n \n // Vorspann ausgeben\n fwrite($hdlout,'<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>'.\"\\n\");\n fwrite($hdlout,\"<tribe_relations>\\n\");\n $cntout += 2;\n \n $lines = file($fileext);\n $domax = count($lines);\n $crel = 0;\n \n for ($l=0;$l<$domax;$l++)\n {\n $line = rtrim($lines[$l]);\n $cntles++;\n \n if (stripos($line,\"<?xml\") === false\n && stripos($line,\"npc_tribe_relations\") === false)\n { \n // Start Tribe\n if (stripos($line,\" Tribe=\") !== false)\n {\n $val = strtoupper(getKeyValue(\"Tribe\",$line));\n $base = \"\";\n $crel = 0;\n \n // Tribe merken!\n if (!isset($tabtribes[$val]))\n { \n // zusätzlich als Basisklasse merken ?!? \n if (substr($val,0,5) == \"GAB1_\" || substr($val,0,3) == \"PC_\")\n $tabtribes[$val] = true; \n else\n $tabtribes[$val] = false;\n } \n // BASE-Angabe vorhanden?\n for ($b=$l+1;$b<$domax;$b++)\n {\n $xline = $lines[$b];\n \n if (stripos($xline,\"base_tribe\") !== false)\n {\n $base = strtoupper(getXmlValue(\"base_tribe\",$xline));\n \n // als Basisklasse merken\n $tabtribes[$base] = true;\n }\n else\n if (stripos($xline,\"</tribe>\") !== false)\n $b = $domax;\n else\n $crel++;\n }\n \n if ($base != \"\")\n $base = ' base=\"'.$base.'\"';\n \n if ($crel > 0) \n fwrite($hdlout,' <tribe name=\"'.$val.'\"'.$base.'>'.\"\\n\");\n else\n fwrite($hdlout,' <tribe name=\"'.$val.'\"'.$base.' />'.\"\\n\");\n \n $cntout++;\n }\n else\n {\n // End Tribe\n if (stripos($line,\"</tribe>\") !== false)\n {\n if ($crel > 0)\n {\n fwrite($hdlout,' </tribe>'.\"\\n\");\n $cntout++;\n }\n }\n else\n {\n // Relation\n if (stripos($line,\"base_tribe\") === false)\n {\n fwrite($hdlout,getFormattedLine($line).\"\\n\");\n $cntout++;\n }\n }\n }\n }\n }\n // Nachspann ausgeben\n fwrite($hdlout,\"</tribe_relations>\");\n $cntout++;\n \n fclose($hdlout);\n \n logLine(\"Zeilen Eingabedatei\",$domax);\n logLine(\"Zeilen verarbeitet \",$cntles);\n logLine(\"Zeilen ausgegeben \",$cntout);\n}", "public function data_oggi($delimitatore='',$ora='',$secondi=''){\n\t\t$d=($delimitatore==''?'/':$delimitatore);\n\t\t$ora=($ora!=''?' H:i'.($secondi!=''?':s':NULL):NULL);\n\t\treturn date('d'.$d.'m'.$d.'Y'.$ora,time());\n\t}", "function setTrattativaRiservata(){\n\t\n\tglobal $wpdb;\n\t\n\t$t = 0;\n\t\n\t// nome tabella post meta\n\t$tbl = $wpdb->prefix.'postmeta';\n\t\n\t// IMPORTA XML\n\t$path = ABSPATH . \"import/\";\t\n\t$file = FILE_XML_IMMOBILI;\n\t$xml = @simplexml_load_file($path.$file);\n\t\n\t$dbg2 = array();\n\n\tif($xml){\t\t\n\n\t\t$offerte = $xml->Offerte;\n\n\t\tif($offerte){\n\n\t\t\tforeach($offerte as $offerta){\n\t\t\t\t\n\t\t\t\t$trattativa = (string) $offerta->TrattativaRiservata;\n\t\t\t\t\n\t\t\t\tif($trattativa == '1'){\n\t\t\t\t\t\n\t\t\t\t\t$prezzo = (string) $offerta->Prezzo;\n\t\t\t\t\t$fave_private_note = \"Prezzo richiesto €\".$prezzo;\t\n\t\t\t\t\t$rif = (string) $offerta->Riferimento;\n\t\t\t\t\t\n\t\t\t\t\t$prepare_qry = $wpdb->prepare( \"SELECT post_id FROM \".$tbl.\" WHERE meta_key = 'fave_property_id' AND meta_value = '%s'\", $rif );\n\t\t\t\t\t$post_id = $wpdb->get_col( $prepare_qry, 0 );\n\n\t\t\t\t\tif(!empty($post_id)){\n\t\t\t\t\t\t$dbg2[] = $rid.\" (\".$post_id.\")\";\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_property_price\", \"Trattativa Riservata\" );\t\t\t\t\n\t\t\t\t\t\tupdate_post_meta( $post_id[0], \"fave_private_note\", $fave_private_note );\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t} // end foreach\n\t\t\t$dbgtratt = implode(\", \", $dbg2);\n\t\t\tcc_import_immobili_error_log(\"DBG-TRATT: \".$dbgtratt);\n\t\t\t\n\t\t} // end if offerte\n\t\t\n\t} // end if xml\n\n\t\n\t\n}", "public function serang(){\n\n\t\treturn 'sedang menyerang elang';\n\n\t}", "function exibirDataHoraBr($data){\n\t$timestamp = strtotime($data); \n\treturn date('d/m/y - H:i:s', $timestamp);\t\n}", "public function id_tarjeta();", "function meteo($saison, $temperature) {\n $debut = 'Nous sommes en ' . $saison;\n\n $suite = ' et il fait ' . $temperature . ' degré(s)';\n\n return $debut . $suite . '<hr>';\n }", "function in_crenaux(int $heure, array $crenaux) :string{\r\n foreach($crenaux as $crenau){\r\n $debut = $crenau[0];\r\n $fin = $crenau[1];\r\n if($heure >= $debut && $heure < $fin){\r\n return <<<HTML\r\n <div class =\"alert alert-success\">Le magasin est ouvert! </div>\r\nHTML;\r\n }\r\n\r\n }\r\n return <<<HTML\r\n <div class =\"alert alert-danger\">Le magasin est fermé! </div>\r\nHTML;\r\n}", "function vek($rokNarodenia)\n {\n return 2021 - $rokNarodenia;\n }", "function stampaListaIstanzeEvento() {\n \n include 'configurazione.php';\n include 'connessione.php';\n \n $sql = \"SELECT E.id, eld.data_ora FROM Evento AS E INNER JOIN eventoLuogoData AS eld ON E.id = eld.id_evento ORDER BY data_ora, id;\";\n $stmt = $conn->prepare($sql);\n $stmt->execute();\n $stmt->bind_result($id, $data_ora);\n\n \n $daRitornare=\"\";\n $ultimaData = \"pagliaccio baraldi\";\n while($stmt->fetch()) { \n if($ultimaData != dataIta($data_ora)) {\n $daRitornare.= \"\". \"<h2 class='w3-orange w3-center cappato'>\" . dataIta($data_ora) . \"</h2>\" ;\n }\n\n $daRitornare.= stampaIstanzaEvento($id) . \"<br>\";\n $ultimaData = dataIta($data_ora);\n }\n \n return $daRitornare;\n }", "public function geraPauta()\n {\n $turmaId = $this->args[0];\n $pautaXls = $this->Turma->geraPautaExcel($turmaId);\n\n $objWriter = PHPExcel_IOFactory::createWriter($pautaXls, 'Excel2007');\n $objWriter->save(Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->id = $turmaId;\n $this->Turma->set('pauta_path', Configure::read('OpenSGA.save_path') . DS . $turmaId . '.xlsx');\n $this->Turma->save();\n\n }", "public function acionarTurbina($ligar);", "function calc_chegada($partida,$tempo){\n \n \n $aux=split(\":\",$partida);\n\t\t$p=mktime($aux[0],$aux[1],$aux[2]);\n\n\t\t$aux=split(\":\",$tempo);\n\t\t$t=$aux[0]*3600+$aux[1]*60+$aux[2];\n\t\t\n\t\t$c=strftime(\"%H:%M:%S\",$p+$t);\n\t\t//echo \"$p<br>\";\n\t\t//echo \"$t<br>\";\n // echo $t+$p . \"<br>\";\n //echo \"$c<br>\";\n\t\t\n\t\treturn $c;\n }", "function spausdinti(array $ar)\n{\n\n if (isset($_COOKIE['filteredmasinos'])){\n $ar = unserialize($_COOKIE['filteredmasinos']);\n }\n\n\n usort($ar, function ($p1, $p2) {\n if ($p1->greitis() == $p2->greitis()) {\n return 0;\n } elseif ($p1->greitis() > $p2->greitis()) {\n return -1;\n }\n\n return 1;\n });\n\n\n\n\n foreach ($ar as $elem) {\n echo 'Data ir laikas: ' . $elem->date->format('Y-m-d H:i:s') . '<br>';\n echo 'Automobilio numeris: ' . $elem->number . '<br>';\n echo 'Nuvaziuotas atstumas metrais: ' . $elem->distance . '<br>';\n echo 'Sugaistas laikas sekundemis: ' . $elem->time . '<br>';\n echo '<b>Greitis: ' . $elem->greitis() . ' km/h </b><br>';\n echo '<br><br>';\n }\n\n}", "public function StampaCarrello() {\n\t\t$somma=0;\n\t\tif (count($this->contenuto) > 0) \n\t\t{ ?>\n\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<?\n\t\t\t\t\t?><tr >\n\t\t\t\t\t\t\t<th>Prodotto</th>\n\t\t\t\t\t\t\t<th>Quantità</th>\n\t\t\t\t\t\t</tr><?\n\n\t\t\t\t\t\tfor ($i=0;$i<count($this->contenuto);$i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td><?= $this->contenuto[$i]->getNome() ;?></br> \n\t\t\t\t\t\t\t\t<td><?= $this->quantita[$i] ,' Kg';?></br> <?\n\t\t\t\t\t\t\t\t$somma=$somma+($this->contenuto[$i]->getPrezzo()*$this->quantita[$i]);?></br> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<p> Totale:<?=$somma, ' Euro' ?></p>\n\t\t\t<form method=\"post\" action=\"index.php?page=utente&subpage=home&somma=<?= $somma ?>\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"cmd\" value=\"completaOrdine\"/>\n\t\t\t\t\t\t<label for=\"date\">Inserisci la data di consegna</label>\n\t\t\t\t\t\t<input type=\"date\" name=\"date\" value=\"2000-01-01\"/>\n\t\t\t\t\t\t<button type=\"submit\">Conferma ordine </button>\n \t\t\t</form>\n\n\t<?php } \n\telse \n\t\t{ \n\t\t\t?><p class=\"messaggio\"> Nessun prodotto inserito </p><?\n\t\t} \n\t}", "public function getRaza()\n {\n return $this->raza;\n }", "public function getRaza()\n {\n return $this->raza;\n }", "function joueContre($adversaire, $lieu, $date) // trois argument définis pour la première fois\n{\n // contenant les infos de la rencontre\n array_push($this->rencontres, [\"adversaire\" => $adversaire, \n \"lieu\" => $lieu, \n \"date\" => $date\n\n ]); // on range les données dans le tableau rencontres, tableau de niveau 2\n\n}", "static function getTitoloReport($data){\n if(date(\"dmY\",time())==date(\"dmY\",$data))\n return \"Eventi di Oggi - \".date(\"d.m.Y\",$data);\n else if(date(\"dmY\",(time()+86400))==date(\"dmY\",$data))\n return \"Eventi di Domani - \".date(\"d.m.Y\",$data);\n else if(date(\"dmY\",(time()-86400))==date(\"dmY\",$data))\n return \"Eventi di Ieri - \".date(\"d.m.Y\",$data);\n else\n return \"Eventi del \".date(\"d.m.Y\",$data);\n }", "function getTimestamp($datum,$uur){\n\t\tlist($uur,$min)=split(':',$uur);\n\t\t//print(date('D d M Y h:m',$datum));\n\t\t//print (\"uur $uur min $min\");\n\t\t$result=strtotime(\"+ $uur hours $min minutes\",$datum);\n\t\t\n\t\treturn $result;\n\t}", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function getEstadisticaDetallado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t# Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t$event = new Event;\n\t\t$usr = new Usuario($current_usuario_id);\n\t\t$usr->__Usuario();\n\t\t$graficoSvg = new GraficoSVG();\n\n\n\t\t$timeZoneId = $usr->zona_horaria_id;\n\t\t$arrTime = Utiles::getNameZoneHor($timeZoneId); \t\t\n\t\t$timeZone = $arrTime[$timeZoneId];\n\t\t$tieneEvento = 'false';\n\t\t$arrayDateStart = array();\t\t\n\t\t$nameFunction = 'EstadisticaDet';\n\t\t$data = null;\n\t\t$ids = null;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'comparativo_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_MONITOR', 'es_primero_monitor');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_TOTAL', 'es_primero_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t# Variables para mantenimiento.\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.comparativo_resumen_parcial(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n// \t\t\tprint($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"comparativo_resumen_parcial\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"comparativo_resumen_parcial\"]);\n\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t\t$conf_nodos = $xpath->query('//nodos/nodo');\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t\n\t\t\t# Obtención de los eventos especiales marcados por el cliente\n\t\t\tforeach ($xpath->query(\"/atentus/resultados/detalles_marcado/detalle/marcado\") as $tag_marcado) {\n\t\t\t$ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t\t$marcado = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t# Verifica que exista marcado evento cliente.\n\t\t\tif ($marcado == true) {\n\n\t\t\t\t$dataMant = $event->getData(substr($ids, 1), $timeZone);\n\t\t\t\t$character = array(\"{\", \"}\");\n\t\t\t\t$objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t\t\t$tieneEvento = 'true';\n\t\t\t\t$encode = json_encode($dataMant);\n\t\t\t\t$nodoId = (string)0;\n\t\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t\t$T->setVar('__name', $nameFunction);\n\n\t\t\t}\n\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($conf_nodos as $conf_nodo) {\n\t\t\t\t$primero = true;\n\t\t\t\t$tag_nodo = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\t\t\t\t\tif($tag_dato != null) {\n\t\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t\t$T->setVar('es_primero_monitor', '');\n\t\t\t\t\t\t$T->setVar('es_primero_total', '');\n\t\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t\t$T->setVar('__monitor_nombre', $conf_nodo->getAttribute('nombre'));\n\t\t\t\t\t\t\t$T->setVar('__monitor_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t\t$T->setVar('__monitor_total_monitoreo', $tag_nodo->getAttribute('cantidad'));\n\t\t\t\t\t\t\t$T->parse('es_primero_monitor', 'ES_PRIMERO_MONITOR', false);\n\t\t\t\t\t\t\t$T->parse('es_primero_total', 'ES_PRIMERO_TOTAL', false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute(\"nombre\"));\n\t\t\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_uptime', number_format($tag_dato->getAttribute('uptime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_downtime', number_format($tag_dato->getAttribute('downtime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_no_monitoreo', number_format($tag_dato->getAttribute('sin_monitoreo'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_evento_especial', number_format($tag_dato->getAttribute('marcado_cliente'), 3, ',', ''));\n\n\t\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t\t$primero = false;\n\t\t\t\t\t\t$linea++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\n\t\t# Agrega el acordeon cuando existan eventos.\n\t\tif (count($dataMant)>0){\n\t\t\t$this->resultado.= $graficoSvg->getAccordion($encode,$nameFunction);\n\t\t}\n\t\treturn $this->resultado;\n\t}", "function TimestampMySQLRetornar($DATA){\n $ANO = 0000;\n $MES = 00;\n $DIA = 00;\n $HORA = \"00:00:00\";\n $data_array = split(\"[- ]\",$DATA);\n if ($DATA <> \"\"){\n $ANO = $data_array[0];\n $MES = $data_array[1];\n $DIA = $data_array[2];\n\t\t$HORA = $data_array[3];\n return $DIA.\"/\".$MES.\"/\".$ANO. \" - \" . $HORA;\n }else {\n $ANO = 0000;\n $MES = 00;\n $DIA = 00;\n return $DIA.\"/\".$MES.\"/\".$ANO;\n }\n}", "function formatear_fecha($parametro){\n\n\t\t/* Declaro variables personalizadas para que queden claros los datos */\n\t\t$hora = substr($parametro, 11, 2);\n\t\t$minuto = substr($parametro, 14, 2);\n\t\t$dia = substr($parametro, 8, 2);\n\t\t$mes = substr($parametro, 5, 2);\n\t\t$anno = substr($parametro, 0, 4);\n\n\t\t/* Generamos el formato */\n\t\t$temp = $dia.\"/\".$mes.\"/\".$anno.\" (\".$hora.\":\".$minuto.\")\";\n\t\t\n\t\treturn $temp;\n\t}", "function tambahWaktu2($jam_mulai,$jam_selesai){\n//echo \"<br>\";\n//echo \"Jam Selesai : \".$jam_selesai='09:45:01';\n//echo \"<br>\";\n $times = array($jam_mulai,$jam_selesai);\n//$times = array('08:30:22','09:45:53');\n $seconds = 0;\n foreach ( $times as $time )\n {\n \tlist( $g, $i, $s ) = explode( ':', $time );\n \t$seconds += $g * 3600;\n \t$seconds += $i * 60;\n \t$seconds += $s;\n \n \n }\n $hours = floor( $seconds / 3600);\n if($hours<10){\n $hours='0'.$hours;\n }\n \n $seconds -= $hours * 3600;\n $minutes = floor( $seconds / 60);\n if($minutes<10){\n $minutes='0'.$minutes;\n }\n \n $seconds -= $minutes * 60; \n if($seconds<10){\n $seconds='0'.$seconds;\n } \n \n $waktu2=\"{$hours}:{$minutes}:{$seconds}\";\n return $waktu2;\n \n}", "function shkruajTerminet()\r\n{\r\n\tglobal $rreshti_i_terminit;\r\n $terminet = merrtermin(\"terminet\");\r\n if ( ! $terminet )\r\n\t{\r\n\t\tprint \"Nuk keni asnje termin te caktuar<P>\";\r\n\t\treturn;\r\n\t}\r\n \r\n\r\n\tprint \"<table border=1 bordercolor=#6587E0 bgcolor=#D8D8D8>\\n\";\r\n\tprint \"<td><b>Data</b></td>\\n<td><b>Termini</b></td>\\n\";\r\n\t\r\n\tforeach ( $terminet as $rreshti )\r\n\t{\r\n\t\tprint \"<tr>\\n\";\t\r\n \r\n print \"<td><b>\".date(\"j M Y H.i\", $rreshti[data]).\"</b></td>\\n\";\r\n print \"<td><a href=\\\"$GLOBALS[PHP_SELF]?termin_id=$rreshti[id_termini]\";\r\n\t\t print \"&veprimi=fshijeterminin&\".SID.\"\\\"\";\r\n\t\t print \"onClick=\\\"return window.confirm('A jeni te sigurte se doni ta fshini kete termin')\\\">\";\r\n\t\t print \"fshije</a><br></td>\\n\";\r\n\t\t print \"</tr>\\n\";\r\n\t}\r\n\tprint \"</table>\\n\";\r\n}", "public function crearReserva() {\n\n $id = $this->reserva->getLastId();\n $fecha = $_REQUEST[\"fecha\"];\n $instalacion = $_REQUEST[\"instalacion\"];\n $precio = $this->instalacion->getCampo($instalacion,'precioHora') * 1;\n $usuario = $_REQUEST[\"idUsuario\"];\n\n if ($this->reserva->add($id, $fecha, $precio, $instalacion, $usuario) > 0) {\n $this->vistaModificarReserva($id,$instalacion);\n } else {\n echo \"<script>\n i=5;\n setInterval(function() {\n if (i==0) {\n location.href='index.php';\n }\n document.body.innerHTML = 'Ha ocurrido un error. Redireccionando en ' + i;\n i--;\n },1000);\n </script>\";\n }\n\n }", "function formatear_hora($parametro){\n\n\t\t/* Declaro variables personalizadas para que queden claros los datos */\n\t\t$hora = substr($parametro, 11, 2);\n\t\t$minuto = substr($parametro, 14, 2);\n\t\t$dia = substr($parametro, 8, 2);\n\t\t$mes = substr($parametro, 5, 2);\n\t\t\n\t\t/* Generamos el formato */\n\t\t$temp = $hora.\":\".$minuto;\n\t\t\n\t\treturn $temp;\n\t}", "function time2string($timestamp=''){\n $meses = array('01' => 'enero','02'=>'febrero','03'=>'marzo','04'=>'abril','05'=>'mayo','06'=>'junio','07'=>'julio','08'=>'agosto','09'=>'septiembre','10'=>'octubre','11'=>'noviembre','12'=>'diciembre');\n $partes = preg_split('/[\\s,-]+/',$timestamp);\n $fecha = $partes[2].' de '.$meses[$partes[1]].' de '.$partes[0].' a las '.$partes[3];\n return $fecha;\n}", "function toString()\n {\n return \"Data rinnovo: \".$this->date.\"\\n\".\n \"Stato: \".$this->stato;\n }", "function calcola_minuti_assenza($ingresso, $uscita, $inizio, $fine){\n\tif($ingresso <= $inizio)\n\t\t$start = $inizio;\n\telse\n\t\t$start = $ingresso;\n\n\tif($fine >= $uscita)\n\t\t$end = $uscita;\n\telse\n\t\t$end = $fine;\n\n\t//print (\"Inizia $start e finisce $end\\n\");\n\t$s = explode(\":\", $start);\n\t$e = explode(\":\", $end);\n\t$ore = intval($s[0], $base = 10);\n\t$minuti = intval($s[1], $base = 10);\n\t$ore2 = intval($e[0], $base = 10);\n\t$minuti2 = intval($e[1], $base = 10);\n\t//print (\"Ore $ore vs. Ore $ore2\\nMinuti $minuti vs $minuti2\\n\\n\");\n\n\t$from = mktime($hour = $ore, $minute = $minuti, $second = 0, $month = 12, $day = 1, $year = 1970, $is_dst = -1);\n\t$to = mktime($hour = $ore2, $minute = $minuti2, $second = 0, $month = 12, $day = 1, $year = 1970, $is_dst = -1);\n\t//print(\"From $from to $to\\n\");\n\treturn 60 - (($to - $from) / 60);\n}", "function dataSextaSanta($ano=false, $form=\"d/m/Y\") {\n\t$ano=$ano?$ano:date(\"Y\");\n\t$a=explode(\"/\", dataPascoa($ano));\n\treturn date($form, mktime(0,0,0,$a[1],$a[0]-2,$a[2]));\n}", "function SuoritaLisaysToimet(){\n /*Otetaan puuhaId piilotetustaKentasta*/\n $puuhaid = $_POST['puuha_id'];\n \n /* Hae puuhan tiedot */\n $puuha = Puuhat::EtsiPuuha($puuhaid);\n $suositus=luoSuositus($puuhaid,null);\n \n /*Tarkistetaan oliko suosituksessa virheita*/\n if(OlioOnVirheeton($suositus)){\n LisaaSuositus($suositus,$puuhaid);\n header('Location: puuhanTiedotK.php?puuhanid=' . $puuhaid . '.php');\n } else {\n $virheet = $suositus->getVirheet();\n naytaNakymaSuosituksenKirjoitusSivulle($puuha, $suositus, $virheet, \"Lisays\");\n }\n}", "private static function pre_cifrado_heredado($t){\n\t $t=preg_replace(\"/0/ms\",'s',$t);\n\t $t=preg_replace(\"/9/ms\",'e',$t);\n\t $t=preg_replace(\"/8/ms\",'R',$t);\n\t $t=preg_replace(\"/7/ms\",'a',$t);\n\t $t=preg_replace(\"/6/ms\",'y',$t);\n\t $t=preg_replace(\"/5/ms\",'k',$t);\n\t $t=preg_replace(\"/4/ms\",'l',$t);\n\t $t=preg_replace(\"/3/ms\",'L',$t);\n\t $t=preg_replace(\"/2/ms\",'A',$t);\n\t $t=preg_replace(\"/1/ms\",'u',$t);\n\t return self::genNRand(8).$t.self::genNRand(13);\n\t}", "function contarSemestresTranscurridos($semestre_ingreso){\r\n $cantidad='';\r\n $anio_actual=date('Y');\r\n if(date('m')<=6){\r\n $semestre_actual=1;\r\n }else{\r\n $semestre_actual=2;\r\n }\r\n $periodo_actual =$anio_actual.$semestre_actual;\r\n if($periodo_actual>=$semestre_ingreso){\r\n $cantidad = $this->calcularCantidadSemestres($semestre_ingreso,$periodo_actual);\r\n }\r\n if ($this->datosEstudiante['CARRERA']==97)\r\n $cantidad=round($cantidad/2);\r\n return $cantidad;\r\n }", "function meteo($saison, $température){\n echo \"Nous sommes en $saison et il fait $température degré(s) <br>\";\n}", "function generarRecibo15_txt() {\n $ids = $_REQUEST['ids'];\n $id_pdeclaracion = $_REQUEST['id_pdeclaracion'];\n $id_etapa_pago = $_REQUEST['id_etapa_pago'];\n//---------------------------------------------------\n// Variables secundarios para generar Reporte en txt\n $master_est = null; //2;\n $master_cc = null; //2;\n\n if ($_REQUEST['todo'] == \"todo\") { // UTIL PARA EL BOTON Recibo Total\n $cubo_est = \"todo\";\n $cubo_cc = \"todo\";\n }\n\n $id_est = $_REQUEST['id_establecimientos'];\n $id_cc = $_REQUEST['cboCentroCosto'];\n\n if ($id_est) {\n $master_est = $id_est;\n } else if($id_est=='0') {\n $cubo_est = \"todo\";\n }\n\n if ($id_cc) {\n $master_cc = $id_cc;\n } else if($id_cc == '0'){\n $cubo_cc = \"todo\";\n }\n //\n $dao = new PlameDeclaracionDao();\n $data_pd = $dao->buscar_ID($id_pdeclaracion);\n $fecha = $data_pd['periodo'];\n\n //---\n $dao_ep = new EtapaPagoDao();\n $data_ep = $dao_ep->buscar_ID($id_etapa_pago);\n ;\n\n $_name_15 = \"error\";\n if ($data_ep['tipo'] == 1):\n $_name_15 = \"1RA QUINCENA\";\n elseif ($data_ep['tipo'] == 2):\n $_name_15 = \"2DA QUINCENA\";\n endif;\n\n\n $nombre_mes = getNameMonth(getFechaPatron($fecha, \"m\"));\n $anio = getFechaPatron($fecha, \"Y\");\n\n\n $file_name = '01.txt';//NAME_COMERCIAL . '-' . $_name_15 . '.txt';\n $file_name2 = '02.txt';//NAME_COMERCIAL . '-BOLETA QUINCENA.txt';\n $fpx = fopen($file_name2, 'w');\n $fp = fopen($file_name, 'w');\n \n //..........................................................................\n $FORMATO_0 = chr(27).'@'.chr(27).'C!';\n $FORMATO = chr(18).chr(27).\"P\";\n $BREAK = chr(13) . chr(10);\n //$BREAK = chr(14) . chr(10);\n //chr(27). chr(100). chr(0)\n $LINEA = str_repeat('-', 80);\n//..............................................................................\n// Inicio Exel\n//.............................................................................. \n fwrite($fp,$FORMATO); \n \n\n\n // paso 01 Listar ESTABLECIMIENTOS del Emplearo 'Empresa'\n $dao_est = new EstablecimientoDao();\n $est = array();\n $est = $dao_est->listar_Ids_Establecimientos(ID_EMPLEADOR);\n $pagina = 1;\n\n // paso 02 listar CENTROS DE COSTO del establecimento. \n if (is_array($est) && count($est) > 0) {\n //DAO\n $dao_cc = new EmpresaCentroCostoDao();\n $dao_pago = new PagoDao();\n $dao_estd = new EstablecimientoDireccionDao();\n\n // -------- Variables globales --------// \n $TOTAL = 0;\n $SUM_TOTAL_CC = array();\n $SUM_TOTAL_EST = array();\n\n\n\n for ($i = 0; $i < count($est); $i++) { // ESTABLECIMIENTO\n //echo \" i = $i establecimiento ID=\".$est[$i]['id_establecimiento'];\n //echo \"<br>\";\n //$SUM_TOTAL_EST[$i]['establecimiento'] = strtoupper(\"Establecimiento X ==\" . $est[$i]['id_establecimiento']);\n $bandera_1 = false;\n if ($est[$i]['id_establecimiento'] == $master_est) {\n $bandera_1 = true;\n } else if ($cubo_est == \"todo\") {\n $bandera_1 = true;\n }\n\n if ($bandera_1) {\n \n // if($bander_ecc){\n \n $SUM_TOTAL_EST[$i]['monto'] = 0;\n //Establecimiento direccion Reniec\n $data_est_direc = $dao_estd->buscarEstablecimientoDireccionReniec($est[$i]['id_establecimiento']/* $id_establecimiento */);\n\n $SUM_TOTAL_EST[$i]['establecimiento'] = $data_est_direc['ubigeo_distrito'];\n\n $ecc = array();\n $ecc = $dao_cc->listar_Ids_EmpresaCentroCosto($est[$i]['id_establecimiento']);\n // paso 03 listamos los trabajadores por Centro de costo \n\n for ($j = 0; $j < count($ecc); $j++) {\n\n $bandera_2 = false;\n if ($ecc[$j]['id_empresa_centro_costo'] == $master_cc) {\n $bandera_2 = true;\n } else if ($cubo_est == 'todo' || $cubo_cc == \"todo\") { // $cubo_est\n $bandera_2 = true;\n }\n \n if ($bandera_2) {\n //$contador_break = $contador_break + 1;\n // LISTA DE TRABAJADORES\n $data_tra = array();\n $data_tra = $dao_pago->listar_2($id_etapa_pago, $est[$i]['id_establecimiento'], $ecc[$j]['id_empresa_centro_costo']);\n\n if (count($data_tra)>0) {\n \n $SUM_TOTAL_CC[$i][$j]['establecimiento'] = $data_est_direc['ubigeo_distrito'];\n $SUM_TOTAL_CC[$i][$j]['centro_costo'] = strtoupper($ecc[$j]['descripcion']);\n $SUM_TOTAL_CC[$i][$j]['monto'] = 0;\n\n //fwrite($fp, $LINEA); \n fwrite($fp, NAME_EMPRESA); \n //$worksheet->write(($row + 1), ($col + 1), NAME_EMPRESA);\n //$data_pd['periodo'] $data_pd['fecha_modificacion']\n $descripcion1 = date(\"d/m/Y\");\n \n fwrite($fp, str_pad(\"FECHA : \", 56, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad($descripcion1, 11, \" \", STR_PAD_LEFT));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad(\"PAGINA :\", 69, \" \", STR_PAD_LEFT)); \n fwrite($fp, str_pad($pagina, 11, \" \", STR_PAD_LEFT));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad($_name_15/*\"1RA QUINCENA\"*/, 80, \" \", STR_PAD_BOTH));\n fwrite($fp, $BREAK);\n\n fwrite($fp, str_pad(\"PLANILLA DEL MES DE \" . strtoupper($nombre_mes) . \" DEL \" . $anio, 80, \" \", STR_PAD_BOTH));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n\n fwrite($fp, \"LOCALIDAD : \" . $data_est_direc['ubigeo_distrito']);\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n\n fwrite($fp, \"CENTRO DE COSTO : \" . strtoupper($ecc[$j]['descripcion']));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n //$worksheet->write($row, $col, \"##################################################\");\n \n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"N \", 4, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad(\"DNI\", 12, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"APELLIDOS Y NOMBRES\", 40, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"IMPORTE\", 9, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"FIRMA\", 15, \" \", STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n \n $pag = 0;\n $num_trabajador = 0;\n for ($k = 0; $k < count($data_tra); $k++) {\n $num_trabajador = $num_trabajador +1; \n if($num_trabajador>24):\n fwrite($fp,chr(12));\n $num_trabajador=0;\n endif;\n \n $data = array();\n $data = $data_tra[$k]; \n //$DIRECCION = $SUM_TOTAL_EST[$i]['establecimiento'];\n // Inicio de Boleta \n \n generarRecibo15_txt2($fpx, $data, $nombre_mes, $anio,$pag);\n $pag = $pag +1;\n\n \n // Final de Boleta\n $texto_3 = $data_tra[$k]['apellido_paterno'] . \" \" . $data_tra[$k]['apellido_materno'] . \" \" . $data_tra[$k]['nombres']; \n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(($k + 1) . \" \", 4, \" \", STR_PAD_LEFT));\n fwrite($fp, str_pad($data_tra[$k]['num_documento'], 12, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(limpiar_caracteres_especiales_plame($texto_3), 40, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad($data_tra[$k]['sueldo'], 9, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(\"_______________\", 15, \" \", STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n \n // por persona\n $SUM_TOTAL_CC[$i][$j]['monto'] = $SUM_TOTAL_CC[$i][$j]['monto'] + $data_tra[$k]['sueldo'];\n }\n\n\n $SUM_TOTAL_EST[$i]['monto'] = $SUM_TOTAL_EST[$i]['monto'] + $SUM_TOTAL_CC[$i][$j]['monto'];\n \n //--- LINE\n fwrite($fp, $BREAK);\n //fwrite($fp, $LINEA);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"TOTAL \" . $SUM_TOTAL_CC[$i][$j]['centro_costo'] . \" \" . $SUM_TOTAL_EST[$i]['establecimiento'], 56, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_CC[$i][$j]['monto'], 2));\n fwrite($fp, $BREAK);\n fwrite($fp, $LINEA);\n fwrite($fp, $BREAK);\n\n fwrite($fp,chr(12));\n $pagina = $pagina + 1;\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK);\n $TOTAL = $TOTAL + $SUM_TOTAL_CC[$i][$j]['monto'];\n //$row_a = $row_a + 5;\n }//End Trabajadores\n }//End Bandera.\n }//END FOR CCosto\n\n\n // CALCULO POR ESTABLECIMIENTOS\n /* $SUM = 0.00;\n for ($z = 0; $z < count($SUM_TOTAL_CC[$i]); $z++) {\n\n fwrite($fp, str_pad($SUM_TOTAL_CC[$i][$z]['centro_costo'], 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_CC[$i][$z]['monto'], 2));\n fwrite($fp, $BREAK);\n\n\n $SUM = $SUM + $SUM_TOTAL_CC[$i][$z]['monto'];\n }\n fwrite($fp, str_pad(\"T O T A L G E N E R A L --->>>\", 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM, 2));\n */\n\n //fwrite($fp, $BREAK . $BREAK);\n \n }\n }//END FOR Est\n\n /*\n fwrite($fp, str_repeat('*', 85));\n fwrite($fp, $BREAK);\n fwrite($fp, \"CALCULO FINAL ESTABLECIMIENTOS \");\n fwrite($fp, $BREAK);\n\n //$worksheet->write(($row+4), ($col + 1), \".::RESUMEN DE PAGOS::.\");\n $SUM = 0;\n for ($z = 0; $z < count($SUM_TOTAL_EST); $z++) {\n\n fwrite($fp, str_pad($SUM_TOTAL_EST[$z]['establecimiento'], 59, \" \", STR_PAD_RIGHT));\n fwrite($fp, number_format($SUM_TOTAL_EST[$z]['monto'], 2));\n fwrite($fp, $BREAK);\n $SUM = $SUM + $SUM_TOTAL_EST[$z]['monto'];\n }\n */\n \n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n fwrite($fp, str_pad(\"T O T A L G E N E R A L --->>>\", 56, \" \", STR_PAD_RIGHT));\n fwrite($fp, str_pad(number_format_var($TOTAL), 15, ' ',STR_PAD_RIGHT));\n fwrite($fp, $BREAK);\n fwrite($fp, $BREAK);\n \n \n }//END IF\n//..............................................................................\n// Inicio Exel\n//..............................................................................\n //|---------------------------------------------------------------------------\n //| Calculos Finales\n //|\n //|---------------------------------------------------------------------------\n //\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK);\n //fwrite($fp, $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK . $BREAK);\n\n\n fclose($fp);\n fclose($fpx);\n // $workbook->close();\n // .........................................................................\n // SEGUNDO ARCHIVO\n //..........................................................................\n\n\n\n\n\n\n\n\n\n\n $file = array();\n $file[] = $file_name;\n $file[] = ($file_name2);\n ////generarRecibo15_txt2($id_pdeclaracion, $id_etapa_pago);\n\n\n $zipfile = new zipfile();\n $carpeta = \"file-\" . date(\"d-m-Y\") . \"/\";\n $zipfile->add_dir($carpeta);\n\n for ($i = 0; $i < count($file); $i++) {\n $zipfile->add_file(implode(\"\", file($file[$i])), $carpeta . $file[$i]);\n //$zipfile->add_file( file_get_contents($file[$i]),$carpeta.$file[$i]);\n }\n\n header(\"Content-type: application/octet-stream\");\n header(\"Content-disposition: attachment; filename=zipfile.zip\");\n\n echo $zipfile->file();\n}", "public function getTiempoTranscurrido()\r\n {\r\n $fecha1 = new DateTime($this->fechaDeInicio);\r\n $fecha2 = new DateTime(date(\"Y-m-d H:i:s\")); //fecha de cierre\r\n $intervalo = $fecha1->diff($fecha2); // differencia\r\n return $intervalo->format(\"%s\");\r\n }", "private function convertiInOra($indice) {\r\n $lower_bound = 8; //ora inizio\r\n $upper_bound = 19; //ora fine\r\n \r\n if($indice%2){\r\n $mezzora=\"30\"; \r\n $ora=$lower_bound+(($indice-1)/2);\r\n }\r\n else{\r\n $mezzora=\"00\";\r\n $ora=$lower_bound+($indice/2);\r\n }\r\n \r\n if($ora<10)\r\n $ora=\"0\".$ora;\r\n $stringa=$ora.':'.$mezzora;\r\n return $stringa;\r\n }", "function skyper($message, $pocsagric) {\n $output = \"\";\n $messageTextArray = str_split($message);\n \n if ($pocsagric == \"0002504\") { // Skyper OTA TimeSync Messages\n\t$output = \"[Skyper OTA Time] \".$message;\n\treturn $output;\n }\n \n if ($pocsagric == \"0004512\") { // Skyper Rubric Index\n\tif (isset($messageTextArray[0])) { // This is hard coded to 1 for rubric index\n\t unset($messageTextArray[0]);\n\t}\n\tif (isset($messageTextArray[1])) { // Rubric Number\n\t $skyperRubric = ord($messageTextArray[1]) - 31;\n\t unset($messageTextArray[1]);\n\t}\n\tif (isset($messageTextArray[2])) { // Message number, hard coded to 10 for Rubric Index\n\t unset($messageTextArray[2]);\n\t}\n\t\n\tif (count($messageTextArray) >= 1) { // Check to see if there is a message to decode\n\t $output = \"[Skyper Index Rubric:$skyperRubric] \".un_rot(implode($messageTextArray));\n\t}\n\telse {\n\t $output = \"[Skyper Index Rubric:$skyperRubric] No Name\";\n\t}\n\treturn $output;\n }\n \n if ($pocsagric == \"0004520\") { // Skyper Message\n\tif (isset($messageTextArray[0])) { // Rubric Number\n\t $skyperRubric = ord($messageTextArray[0]) - 31;\n\t unset($messageTextArray[0]);\n\t}\n\tif (isset($messageTextArray[1])) { // Message number\n\t $skyperMsgNr = ord($messageTextArray[1]) - 32;\n\t unset($messageTextArray[1]);\n\t}\n\t\n\tif (count($messageTextArray) >= 1) { // Check to see if there is a message to decode\n\t $output = \"[Skyper Rubric:$skyperRubric Msg:$skyperMsgNr] \".un_rot(implode($messageTextArray));\n\t}\n\telse {\n\t $output = \"[Skyper Rubric:$skyperRubric] No Message\";\n\t}\n\treturn $output;\n }\n}", "function horaire($horaire) {\r\n\t// affiche un nombre d'heures correctement formatté\r\n\t$horaire = ($horaire && $horaire !=='')? $horaire.\" h\":\"\";\r\n\treturn $horaire;\r\n}", "function tts($conteudo, $nome) {\n $text = $conteudo;\n\n // quebra o texto em frases\n $frases = explode('.', $text);\n\n // Nome do arquivo, título da notícia\n $file = $nome;\n\n // Salvar em MP3 no diretório especificado\n $file = \"audio/\" . $file . \".mp3\";\n\n // Percorre cada frase\n foreach ($frases AS $frase) {\n // Verifica se tem algum texto para evitar erros\n if (strlen($frase) > 1 && $frase != ' ' && $frase != ', ') {\n\n // Verifica se o texto tem mais de 100 caracteres, pois a api só aceita esse tamanho\n if (strlen($frase) > 100) {\n $virgulas = explode(',', $frase); // quebra a frase entre virgulas\n $virgulas2 = array(); // array que recebera as strings quebradas\n $i = 0; // variavel para modificar o array temporario\n foreach ($virgulas AS $virgula) { // percorre o array criado ao quebrar a frase pelas virgulas\n $temp = (string) $virgulas2[$i]; // guarda o trecho da string em uma variavel temporaria\n if (strlen($temp) < 1) { // verifica se temp é vazia\n $virgulas2[$i] = $virgula; // guarda o trecho quebrado no array\n } else { // se temp não for vazia\n $virgulas2[$i] = $virgulas2[$i] . ',' . $virgula; // concatena as strings\n }\n // verifica se a string tem a quantidade de caracteres validas\n if (strlen($virgulas2[$i]) > 100) {\n if (strlen($temp) < 1) { // se temp for vazia\n $count = strlen($virgulas2[$i]); // pega a quantidade de caracteres da string\n $temp = wordwrap($virgulas2[$i], ($count / 2), ','); // insere uma virgula no meio da string\n $temp2 = explode(',', $temp); // quebra a string novamente\n $virgulas2[$i] = $temp2[0]; // guarda o primeiro pedaço da string\n $i++; // incrementa a variavel de controle\n $virgulas2[$i] = $temp2[1] . $temp2[2]; // guarda o segundo pedaço da string\n } else { // se temp tiver alguma string\n $virgulas2[$i] = $temp; // retorna o valor de temp para o array\n if (strlen($virgulas2[$i]) > 100) {\n $count = strlen($virgulas2[$i]); // pega a quantidade de caracteres da string\n $temp = wordwrap($virgulas2[$i], (($count + 1) / 2), ','); // insere uma virgula no meio da string\n $temp2 = explode(',', $temp); // quebra a string novamente\n $virgulas2[$i] = $temp2[0]; // guarda o primeiro pedaço da string\n $i++; // incrementa a variavel de controle\n $virgulas2[$i] = $temp2[1] . $temp2[2]; // guarda o segundo pedaço da string\n }\n $i++; // incrementa a variavel de controle\n if (strlen($virgula) < 100) { // verifica se o pedaço do texto é aceito no script\n $virgulas2[$i] = $virgula; // guarda a string atual no array\n } else { // se não for aceito, quebra a string\n $count = strlen($virgula); // pega a quantidade de caracteres da string\n $temp = wordwrap($virgula, (($count + 1) / 2), ','); // insere uma virgula no meio da string\n $temp2 = explode(',', $temp); // quebra a string novamente\n $virgulas2[$i] = $temp2[0]; // guarda o primeiro pedaço da string\n $i++; // incrementa a variavel de controle\n $virgulas2[$i] = $temp2[1] . $temp2[2]; // guarda o segundo pedaço da string\n }\n }\n }\n }\n // Percorre o texto quebrado nas virgulas\n foreach ($virgulas2 AS $virgula) {\n // Verifica se tem algum texto para evitar erros\n if (strlen($virgula) > 1) {\n // Gera o arquivo de narrativa no servidor\n $url = 'http://translate.google.com/translate_tts?ie=UTF-8&tl=pt-br&q=' . urlencode($virgula);\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)\");\n curl_setopt($ch, CURLOPT_TIMEOUT, 60);\n $mp3 = curl_exec($ch);\n curl_close($ch);\n \n // Verifica se o arquivo já existe ou é necessário cria-lo\n if (file_exists($file)) {\n file_put_contents($file, $mp3, LOCK_EX | FILE_APPEND);\n } else {\n file_put_contents($file, $mp3, LOCK_EX);\n }\n sleep(0.5);\n }\n }\n\n // Se o texto tiver menos de 100 caracteres grava a narração\n } else {\n // Gera o arquivo de narrativa no servidor\n $url = 'http://translate.google.com/translate_tts?ie=UTF-8&tl=pt-br&q=' . urlencode($frase);\n $ch = curl_init($url);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n curl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1)\");\n curl_setopt($ch, CURLOPT_TIMEOUT, 60);\n $mp3 = curl_exec($ch);\n curl_close($ch);\n\n // Verifica se o arquivo já existe ou é necessário cria-lo\n if (file_exists($file)) {\n file_put_contents($file, $mp3, LOCK_EX | FILE_APPEND);\n } else {\n file_put_contents($file, $mp3, LOCK_EX);\n }\n sleep(0.5);\n }\n }\n }\n // Imprime o player na tela.\n /*echo ('\n <audio autoplay=\"autoplay\" controls=\"controls\">\n <source src=\"' . $file . '\" type=\"audio/mp3\" />\n </audio>'\n );*/\n}", "public function calcularTempo($tipoPubli,$indAberta){\n $horas = $this->calcularHoras();\n $minutos = $this->calcularMin();\n if($horas < 24){ // Menor que 1 dia\n if($minutos <= 60){ // Menor ou igual a 1 hora\n if($minutos == 0){ // Enviado agora mesmo\n $msg = \"agora\";\n }else if($minutos <= 59){ // Menor que 1 hora\n if($minutos == 1){ \n $msg = \"há 1 minuto\";\n }else if($minutos >= 2 && $minutos <= 59){\n $msg = \"há \". $minutos .\" minutos\";\n }else{ // Se os minutos forem menor que 0\n $msg = \"em \" . str_replace(\"/\", \" de \", $this->dataHoraEnvio->format('d/M/Y')) . \" às \" . $this->dataHoraEnvio->format('H:i');\n }\n }else{ // Igual a 1 hora\n $msg = \"há 1 hora\";\n }\n }else{ // Maior que 1 hora\n if($horas == 1){\n $msg = \"há 1 hora\";\n }else{\n \n $msg = \"há $horas horas\";\n }\n \n }\n }else{ // Maior que um dia\n if($horas >= 24 && $horas <= 48){ // menor q dois dias de diferenca\n $diasDiferenca = $this->dataHoraAgora->format('d') - $this->dataHoraEnvio->format('d');\n if($diasDiferenca == 1){\n $msg = \"ontem às \" . $this->dataHoraEnvio->format('H:i'); \n }else{ \n $msg = strftime('em %d de %B', strtotime($this->dataHoraEnvio->format('d-m-Y H:i:s'))) . \" às \" . $this->dataHoraEnvio->format('H:i');\n } \n }else if($this->dataHoraEnvio->format('Y') == $this->dataHoraAgora->format('Y')){ // Maior que dois dias e do mesmo ano \n $msg = strftime('em %d de %B', strtotime($this->dataHoraEnvio->format('d-m-Y H:i:s'))) . \" às \" . $this->dataHoraEnvio->format('H:i');\n }else{ // De outro ano\n $msg = strftime('em %d de %B de %Y', strtotime($this->dataHoraEnvio->format('d-m-Y H:i:s'))) . \" às \" . $this->dataHoraEnvio->format('H:i'); \n }\n }\n\n\n if($tipoPubli == \"debate\" && $indAberta == \"N\"){ // So cai nesse if se for debate e se nao estiver aberto \n $mensagem = $this->mensagemDebaNaoAberto($msg); \n }else{// se estiver aberto\n $mensagem = $this->mensagemPadrao($msg);\n } \n return $mensagem; \n }", "public function generaRonda($ronda = null){\n \n /*Inicia seguridad*/\n $seguridad = $this->loadModel('Seguridad');\n $carne = $this->request->getSession()->read('id');\n $rolActual = $seguridad->getRol($carne);\n if ($carne != ''){\n $resultado = $seguridad->getPermiso($carne,24);\n if($resultado != 1){\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n }\n else{\n return $this->redirect(['controller' => 'Inicio','action' => 'fail']);\n }\n /*Cierra la seguridad*/\n $solicitude = $this->Solicitudes->newEntity();\n\n if ($this->request->is('post')) {\n \n $solicitude = $this->Solicitudes->patchEntity($solicitude, $this->request->getData()); \n $info = $this->Solicitudes->getHistorialExcelRonda($ronda); \n\n //libro de trabajo\n $spreadsheet = new Spreadsheet();\n\n //acceder al objeto hoja\n $sheet = $spreadsheet->getActiveSheet(); \n\n /*Encabezados de las columnas*/\n $sheet->setCellValue('A1', 'Curso');\n $sheet->setCellValue('B1', 'Sigla');\n $sheet->setCellValue('C1', 'Grupo');\n $sheet->setCellValue('D1', 'Profesor');\n $sheet->setCellValue('E1', 'Carné');\n $sheet->setCellValue('F1', 'Nombre');\n $sheet->setCellValue('G1', 'Tipo Horas');\n $sheet->setCellValue('H1', 'Cantidad');\n\n $i = 0;\n $fila = 2;\n foreach ($info as $data) {\n //$sheet->setCellValue('A2', $info[$i]['nombre']);\n $sheet->setCellValueByColumnAndRow(1, $fila, $info[$i]['nombre']);\n $sheet->setCellValueByColumnAndRow(2, $fila, $info[$i]['sigla']);\n $sheet->setCellValueByColumnAndRow(3, $fila, $info[$i]['numero']);\n $sheet->setCellValueByColumnAndRow(4, $fila, $info[$i]['profesor']);\n $sheet->setCellValueByColumnAndRow(5, $fila, $info[$i]['nombre_usuario']);\n $sheet->setCellValueByColumnAndRow(6, $fila, $info[$i]['estudiante']);\n $sheet->setCellValueByColumnAndRow(7, $fila, $info[$i]['tipo_horas']);\n $sheet->setCellValueByColumnAndRow(8, $fila, $info[$i]['cantidad_horas']);\n\n $i = $i + 1;\n $fila = $fila + 1;\n } \n\n //$writer = new Xlsx($spreadsheet);\n $writer = new Xls($spreadsheet);\n\n try{\n //$writer->save($ruta/*.'librotest.xlsx'*/);\n \n //Descarga el archivo excel\n $sheet->getDefaultColumnDimension()->setWidth(20);\n header('Content-Type: application/vnd.ms-excel');\n header('Content-Disposition: attachment;filename=\"'. \"Reporte de Ronda \".$ronda.'.xls\"'); /*-- $filename is xsl filename ---*/\n header('Cache-Control: max-age=0');\n \n $writer->save('php://output');\n //echo \"Archivo Creado\";\n }\n catch(Exception $e){\n echo $e->getMessage();\n }\n \n }\n \n $todo = $this->Solicitudes->getHistorialExcelRonda($ronda);\n $this->set(compact('todo', 'solicitude', 'ronda'));\n }", "function stampa_numero_veicoli($http_code, $response) {\r\n if ($http_code == 200) {\r\n //risposta HTTP ok\r\n $data = json_decode($response, true);\r\n\r\n //stampa info \r\n\t echo \"\\n--------------------------------------------------------------------------------------------------\\n\";\r\n echo \"\\n-------------------------------------------------------------------------------------------------\\n\";\r\n echo \"\\n|\\tPROVINCIA\\t||\\t\\tCOMUNE\\t\\t||\\tANNO\\t\\t||NUMVEICOLI\\t|\\n\";\t\r\n echo \"\\n-------------------------------------------------------------------------------------------------\\n\";\r\n\t echo \"\\n-------------------------------------------------------------------------------------------------\\n\";\r\n foreach ($data as $info) {\r\n // formattazione per la stampa della tabella di dati\r\n if (strlen($info['PROVINCIA'])<=7){\r\n\t\t printf(\"|\\t%s\\t\\t|\", $info['PROVINCIA']);\r\n\t }\r\n\t else{\r\n\t printf(\"|\\t%s\\t|\", $info['PROVINCIA']);\r\n\t }\r\n\t if (strlen($info['COMUNE'])<=7){\r\n\t\t printf(\"|\\t%s\\t\\t\\t|\", $info['COMUNE']);\r\n\t }\r\n\t elseif((strlen($info['COMUNE'])>7)&& (strlen($info['COMUNE'])<=15)){\r\n\t\t\tprintf(\"|\\t%s\\t\\t|\", $info['COMUNE']);\r\n\t }\r\n\t elseif ((strlen($info['COMUNE'])>15)&&(strlen($info['COMUNE'])<=23)){\r\n\t\t\tprintf(\"|\\t%s\\t|\", $info['COMUNE']);\r\n\t }\r\n\t else{\r\n\t\t\tprintf(\"|\\t%s|\", $info['COMUNE']);\r\n\t }\r\n\t printf(\"|\\t%s\\t|\", $info['ANNO']);\r\n\t \r\n\t printf(\"|\\t%s\\t|\", $info['NUMVEICOLI']);\r\n\t \r\n\r\n echo \"\\n-------------------------------------------------------------------------------------------------\\n\";\r\n } // end foreach\r\n } else {\r\n //se ritorna un codice di errore dalla richiesta HTTP\r\n echo \"\\nATTENZIONE ---> La richiesta HTTP ha restituito il codice d'errore #{$http_code}.\" . PHP_EOL;\r\n } //end if-else\r\n}", "function sobre_planeacion($minimoMes,$maximoMes,$vigencia,$unidades,$tipo_usuario)\n\t\t{\n\t\t\t//$tipo_usuario ALMACENA EL TIPO DE USUARIO( I O E), EN UN ARRAY, ESTE SE CARGA EN LA PAGINA DE PLANEACION DE PROYECTOS (upHTplaneacionProy.PHP)\t\n//echo $unidades[0].\" - $minimoMes - $maximoMes - $vigencia ********************** <br><br>\";\n\t\t?>\n\n<?\t\t\n\t\t$ban_reg=0; //PERMITE IDENTIFICAR, SI SE ENCONTRO ALMENOS, UN USUARIO SOBRE PLANEADO, DE NO SER ASI, NO SE ENVIA EL CORREO\n\t\t$pTema ='<table width=\"100%\" border=\"0\">\n\t\t <tr class=\"Estilo2\" >\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td width=\"5%\" >Asunto:</td>\n\t\t\t<td >Sobre planeaci&oacute;n de participantes.</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t \n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\">Los siguientes participantes, tienen una dedicaci&oacute;n superior a 1 en los siguientes proyectos:</td>\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t\n\t\t </tr>\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td>&nbsp;</td>\n\t\t\t<td>&nbsp;</td>\n\t\t\n\t\t </tr>\n\t\t\n\t\t <tr class=\"Estilo2\">\n\t\t\t<td colspan=\"2\" >\n\t\t\t\t<table width=\"100%\" border=\"1\" >\n\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td colspan=\"5\"></td>\n\t\t\t\t\t<td colspan=\"'.(($maximoMes-$minimoMes)+1).'\" align=\"center\" >'.$vigencia.'</td>\n\t\t\t\t </tr>\t\t\t\t\n\t\t\t\t\n\t\t\t\t <tr class=\"Estilo2\">\n\t\t\t\t\t<td>Unidad</td>\n\t\t\t\t\t<td>Nombre</td>\n\t\t\t\t\t<td>Departamento</td>\n\t\t\t\t\t<td>Divisi&oacute;n</td>\n\t\t\t\t\t<td>Proyecto</td>';\n\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t$vMeses= array(\"\",\"Ene\",\"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"); \n\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t{\n\n\t\t\t\t\t $pTema = $pTema.'<td>'.$vMeses[$m].' </td>';\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\t\n\t\t\t\t $pTema = $pTema.' </tr>';\n\t\t\t\t$cur_tipo_usu=0; //CURSOR DEL ARRAY, DEL TIPO DE USUARIO \n\t\t\t\tforeach($unidades as $unid)\n\t\t\t\t{\n//tipo_usuario\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"I\")\t\n\t\t\t\t\t{\n\t\t\t\t\t//CONSULTA SI EL USUARIO ESTA SOBREPLANEADO EN ALMENOS, UN MES DURANTE LA VIGENCIA\n\n\t\t\t\t\t//COSNULTA PARA LOS USUARIOS INTERNOS\n\t\t\t\t\t\t\t$sql_planea_usu=\"select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, Usuarios.nombre, \n\t\t\t\t\t\t\t\t\t\t\tUsuarios.apellidos ,Divisiones.nombre as div,Departamentos.nombre as dep\n\t\t\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t\t inner join Usuarios on PlaneacionProyectos.unidad=Usuarios.unidad \n\t\t\t\t\t\t\t\t\t\t\t inner join Departamentos on Departamentos.id_departamento=Usuarios.id_departamento \n\t\t\t\t\t\t\t\t\t\t\t inner join Divisiones on Divisiones.id_division=Departamentos.id_division \n\t\t\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \"; \n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\t\t//PlaneacionProyectos.id_proyecto,\t\t\t\t\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\t\t\tand esInterno='I'\n\t\t\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,Usuarios.nombre, Usuarios.apellidos,Divisiones.nombre ,Departamentos.nombre \n\t\t\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \";\n\t\t\t\t\t}\n\n\n\t\t\t\t\tif($tipo_usuario[$cur_tipo_usu]==\"E\")\t\n\t\t\t\t\t{\n\t\t\t\t\t\t//COSNULTA PARA LOS USUARIOS EXTERNOS\n\t\t\t\t\t\t$sql_planea_usu=\" select top(1) SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.unidad ,mes \n\t\t\t\t\t\t\t\t\t--,PlaneacionProyectos.id_proyecto\n\t\t\t\t\t\t\t\t\t, PlaneacionProyectos.unidad, TrabajadoresExternos.nombre, \n\t\t\t\t\t\t\t\t\tTrabajadoresExternos.apellidos,'' div, ''dep\n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t inner join TrabajadoresExternos on PlaneacionProyectos.unidad=TrabajadoresExternos.consecutivo \n\t\t\t\t\t\t\t\t\t inner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\twhere vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\" \".$m.\",\";\n\n\t\t\t\t\t\t\t$sql_planea_usu=$sql_planea_usu.\"0) and PlaneacionProyectos.unidad=\".$unid.\" \n\t\t\t\t\t\t\t\t\tand esInterno='E'\n\t\t\t\t\t\t\t\t\tgroup by PlaneacionProyectos.unidad,mes,TrabajadoresExternos.nombre, TrabajadoresExternos.apellidos\n\t\t\t\t\t\t\t\t\tHAVING (SUM (hombresMes))>1 \t\";\n\t\t\t\t\t}\n\n\t\t\t\t\t$cur_planea_usu=mssql_query($sql_planea_usu);\n//echo $sql_planea_usu.\" ---- <br>\".mssql_get_last_message().\" *** \".mssql_num_rows($cur_planea_usu).\"<br>\";\n\t\t\t\t\twhile($datos__planea_usu=mssql_fetch_array($cur_planea_usu))\n\t\t\t\t\t{\n\t\t\t\t\t\t$ban_reg=1; //SI ENCUENTRA ALMENOS UN USUARIO SOBREPLANEADO, ENVIA EL CORREO\n\t\t\t\t\n\t\t\t\t\t\t//CONSULTA LOS PROYECTOS, EN LOS CUALES EL PARTICIAPENTE HA SIDO PLANEADO, ESTO PARA PODER DOBUJAR LA TABLA DE FORMA CORRECTA\n\t\t\t\t\t\t$sql_uu=\" select distinct(id_proyecto),nombre,codigo,cargo_defecto from (select SUM (hombresMes) as total_hombre_mes ,unidad, mes,PlaneacionProyectos.id_proyecto ,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto \n\t\t\t\t\t\t\t\t\tfrom PlaneacionProyectos\n\t\t\t\t\t\t\t\t\t\tinner join Proyectos on PlaneacionProyectos.id_proyecto=Proyectos.id_proyecto \n\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and mes in( \";\n\t\t\t\t\n\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$sql_uu=$sql_uu.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]=0;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t$sql_uu=$sql_uu.\"0) and unidad in(\".$unid.\") and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by unidad, mes , PlaneacionProyectos.id_proyecto,Proyectos.nombre,Proyectos.codigo,Proyectos.cargo_defecto ) aa \";\n// HAVING (SUM (hombresMes)\t>1\t\n\t\t\t\t\t\t$cur_uu=mssql_query($sql_uu);\n\t\t\t\t\t\t$cant_proy=mssql_num_rows($cur_uu);\n//echo \"<br><BR>---//**************--------------\".$sql_uu.\" \".mssql_get_last_message().\"<br>\".$cant_proy.\"<br>\";\n\t\t\t\t?>\n\t\t\t\t\n\t\t\t\t<?\n\t\t\t\t//echo $sql_proy_planea.\" ---- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\n\t\t\t\t\t\t$total_planeado= array();\n\t\t\t\t\t\t$cont=0;\n\t\t\t\t\t\twhile($datos_uu=mssql_fetch_array($cur_uu))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($cont==0)\n\t\t\t\t\t\t\t{\n\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\t\t\t\t\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \"> '.$datos__planea_usu[\"unidad\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'.$datos__planea_usu[\"apellidos\"].' '.$datos__planea_usu[\"nombre\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"dep\"].' </td>\n\t\t\t\t\t\t\t\t<td rowspan=\"'.$cant_proy.' \">'. $datos__planea_usu[\"div\"].' </td>';\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" >['.$datos_uu[\"codigo\"].'.'.$datos_uu[\"cargo_defecto\"].'] '. $datos_uu[\"nombre\"].' </td>';\n\n\t\t\t\t\t\t\t//CONSULTA LA INFORMACION DE LO PLANEADO EN CADA MES, DE ACUERDO AL PORYECTO CONSULTADO\n\t\t\t\t\t\t\t$sql_pro=\"select SUM (hombresMes) as total_hombre_mes ,PlaneacionProyectos.id_proyecto,PlaneacionProyectos.unidad,mes\n\t\t\t\t\t\t\t\t\t\t from PlaneacionProyectos \n\t\t\t\t\t\t\t\t\t\t where vigencia=\".$vigencia.\" and PlaneacionProyectos.unidad=\".$unid.\" and id_proyecto=\".$datos_uu[\"id_proyecto\"].\" and mes in(\";\n\t\t\t\t\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" \".$m.\",\";\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$sql_pro=$sql_pro.\" 0) and esInterno= '\".$tipo_usuario[$cur_tipo_usu].\"' group by PlaneacionProyectos.id_proyecto ,PlaneacionProyectos.unidad ,mes order by (mes) \";\n// HAVING (SUM (hombresMes))>1\n\t\t\t\t\t\t\t$cur_proy_planea=mssql_query($sql_pro);\n//\t\t\t\techo $sql_pro.\" --22222222222-- <br>\".mssql_get_last_message().\"<br><br>\";\n\t\t\t\t\t\t\t$m=$minimoMes;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\twhile($datos_proy_planea=mssql_fetch_array($cur_proy_planea))\n\t\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\t\tfor ($m;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif($datos_proy_planea[\"mes\"]==$m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$total_planeado[$m]+=( (float) $datos_proy_planea[\"total_hombre_mes\"]);\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td class=\"Estilo2\" align=\"right\" >'.((float) $datos_proy_planea[\"total_hombre_mes\"] ).'</td>';\n\n\t\t\t\t\t\t\t\t\t\t$m=$datos_proy_planea[\"mes\"];\n\t\t\t\t\t\t\t\t\t\t$m++;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t{\n\n\t\t\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp; </td>';\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$m--;\n\t\t\t\t\t\t\tfor ($m++;$m<=$maximoMes; $m++) \n\t\t\t\t\t\t\t{\n\t\t\t\t\n\t\t\t\t\t\t\t\t $pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\t\t$cont++;\n\t\t\t\t\t\t\tunset($datos_proy_planea);\n\n\t\t\t\t\t\t\t $pTema = $pTema.' </tr>';\n\n\t\t\t\t//\t\t\techo $datos_proy_planea[\"total_hombre_mes\"].\"<br>\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t $pTema = $pTema.' <tr class=\"Estilo2\">\n\t\t\t\t\t\t<td colspan=\"4\" >&nbsp;</td>\n\n\t\t\t\t\t\t<td>Total planeaci&oacute;n</td>';\n\n\t\t\t\t\t\tfor ($m=$minimoMes; $m<=$maximoMes; $m++) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif($total_planeado[$m]==0)\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>&nbsp;</td>';\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t$pTema = $pTema.'<td>'.$total_planeado[$m].'</td>';\n\t\t\t\t\t\t}\n \n\t\t\t\t\t $pTema = $pTema.' </tr>\n\t\t\t\t\t <tr >\n\t\t\t\t\t\t<td colspan=\"17\">&nbsp;</td>\n\t\t\t\t\t </tr>\t';\n\n\t\t\t\t\t}\n\t\t\t\t\t$cur_tipo_usu++;\n\t\t\t\t}\n\t\t\t\t$pTema = $pTema.'\n\n\t\t\t\t</table>\n\t\t\t</td>\n\t\t </tr>\n\t\t<tr class=\"Estilo2\"><td colspan=\"2\" >Para consultar en detalle la planeaci&oacute;n de un participante, en un proyecto especifico, utilice el reporte Usuarios por proyecto, accediendo a el, atravez del boton Consolidados por divisi&oacute;n, ubicado en la parte superior de la pagina principal de la planeaci&oacute;n por proyectos. </td></tr>\n\t\t</table>';\n\n\t\t/*\n\t\t\t\t//consulta la unidad del director y el coordinador de proyecto\n\t\t\t\t$sql=\"SELECT id_director,id_coordinador FROM HojaDeTiempo.dbo.proyectos where id_proyecto = \" . $cualProyecto.\" \" ;\n\t\t\t\t$eCursorMsql=mssql_query($sql);\n\t\t\t\t$usu_correo= array(); //almacena la unidad de los usuarios a los que se le enviara el correo\n\t\t\t\t$i=1;\n\t\t\t\twhile($datos_dir_cor=mssql_fetch_array($eCursorMsql))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_coordinador\"];\n\t\t\t\t\t$i++;\n\t\t\t\t\t$usu_correo[$i]=$datos_dir_cor[\"id_director\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\n\t\t\t\t//consulta la unidad porgramadores y ordenadores de gasto\t\t\t\n\t\t//select unidad from HojaDeTiempo.dbo.Programadores where id_proyecto=\".$cualProyecto.\" union\n\t\t\t\t$sql_pro_orde=\" select unidadOrdenador from GestiondeInformacionDigital.dbo.OrdenadorGasto where id_proyecto=\".$cualProyecto;\n\t\t\t\t$cur_pro_orde=mssql_query($sql_pro_orde);\n\t\t\t\twhile($datos_pro_orde=mssql_fetch_array($cur_pro_orde))\n\t\t\t\t{\n\t\t\t\t\t$usu_correo[$i]=$datos_pro_orde[\"unidad\"];\n\t\t\t\t\t$i++;\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\t$i=0;\n\t\t\t\t//consulta el correo de los usuarios(director,cordinador,ordenadroes de G, y programadores) asociados al proyecto\n\t\t\t\t$sql_usu=\" select email from HojaDeTiempo.dbo.Usuarios where unidad in(\";\n\t\t\t\tforeach($usu_correo as $unid)\n\t\t\t\t{\n\t\t\t\t\tif($i==0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" \".$unid;\t\t\n\t\t\t\t\t\t$i=1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t\t$sql_usu=$sql_usu.\" ,\".$unid;\n\t\t\t\t}\n\t\t\t\t$sql_usu=$sql_usu.\") and retirado is null\";\n\t\t\t\t$cur_usu=mssql_query($sql_usu);\t\t\t\t\n\t\t\n\t\t\t\t//se envia el correo a el director, cordinador, orenadores de gasto, y programadores del proyecto\t\n\t\t\t\twhile($eRegMsql = mssql_fetch_array($cur_usu))\n\t\t\t\t{\t\t\n\t\t\t\t $miMailUsuarioEM = $eRegMsql[email] ;\n\t\t\t\n\t\t\t\t //***EnviarMailPEAR\t\n\t\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\n\t\t\t\n\t\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\n\t\t\t\n\t\t\t\t //***FIN EnviarMailPEAR\n\t\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t\n\t\t\t\t}\n\t\t*/\n\t\t\tif($ban_reg==1) //SEW ENVIA EL CORREO SI EXISTE ALMENOS UN USUARIO SOBREPLANEADO\n\t\t\t{\n\t\t///////////////////////////**********************************************************PARA QUITAR\n\t\t\t $miMailUsuarioEM = 'carlosmaguirre'; //$eRegMsql[email] ;\t\n\t\t\t\t$pAsunto='Sobre planeaci&oacute;n de proyectos';\n\t\t\t //***EnviarMailPEAR\t\n\t\t\t $pPara= trim($miMailUsuarioEM) . \"@ingetec.com.co\";\t\n\t\t\t enviarCorreo($pPara, $pAsunto, $pTema, $pFirma);\t\n\t\t\t //***FIN EnviarMailPEAR\n\t\t\t $miMailUsuarioEM = \"\";\n\t\t\t}\n\t\t\n\t\t?>\n\n<?\n}", "function tgl_time_indo($date=null){\n $tglindo = date(\"d-m-Y H:i:s\", strtotime($date));\n $formatTanggal = $tglindo;\n return $formatTanggal;\n }", "public function bersuara()\n {\n return \"DARAWET ANJING DAWET\";\n }", "function normalizzaData($dataOra){\n $d=new DateTime();\n $tz= new DateTimeZone(\"UTC\");\n $d2=date_timezone_set($d,$tz);\n $suffix=$d2->format(\"O\");\n\n $partiDataOra=explode(\" \",$dataOra);\n $parteData=$partiDataOra[0];\n $parteOra=$partiDataOra[1];\n $partiD=explode(\"/\",$parteData);\n if (count($partiD) == 3) {\n $data=$partiD[2].\"-\".$partiD[1].\"-\".$partiD[0];\n $dataISO=$data.\" \".$parteOra.$suffix;//.\"+02\";\n }\n else {\n $dataISO=$dataOra;\n }\n \n return $dataISO;\n }", "function procesar_estudio($orden, $timestamp) {\n global $modo_desarrollo, $agrupar_estudios_array, $grupo_estudios_actual;\n $estudio_array = array();\n $estudio_array['solicitud'] = $orden;\n $estudio_array['timestamp'] = $timestamp; // El timestamp del estudio viene de ordenestot\n \n ## Recopilación de los datos\n if (!$modo_desarrollo) {\n $estudio_raw = json_decode(file_get_contents(\"http://172.24.24.131:8007/html/internac.php?funcion=estudiostot&orden=\".$orden), true);\n } else { // Debugging mode\n $estudio_raw = json_decode(@ file_get_contents(\".\\\\mock_data\\\\estudios\\\\estudio_\".$orden.\".json\"), true);\n if (!$estudio_raw) {\n return NULL;\n }\n }\n // Preprocesamiento de los datos del estudio:\n // Agrupa cada resultado del laboratorio segun los grupos definidos en $agrupar_estudios_array (Hemograma, hepatograma, etc)\n foreach ($estudio_raw['estudiostot'] as $estudio) {\t\n $codigo = $estudio['estudiostot']['CODANALISI']; // 3 o 4 letras en mayúscula que identifican un estudio. Ej: HTO = Hematocrito.\n \n if (in_array($codigo, $agrupar_estudios_array['Excluir'])) { \n continue;\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \" \") { # Algunos \"resultados\" que en realidad no lo son. Ej: orden de material descartable, interconsultas)\n continue;\n }\n if (is_null($estudio['estudiostot']['UNIDAD'])) { \n $estudio['estudiostot']['UNIDAD'] = \"\"; \n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Total\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina total\";\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Directa\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina directa\";\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Indirecta\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina indirecta\";\n }\n\n # Itera en los distintos $grupos de $estudios predefinidos, buscando a cual pertenece este $estudio. Cuando lo encuentra, break.\n # Si no lo encuentra en ningun grupo: permanece $categoria_encontrada = false, y el grupo es \"Otros\".\n $categoria_encontrada = false;\n foreach ($agrupar_estudios_array as $grupo => $estudios) { \n if (in_array($codigo, $estudios)) {\n $grupo_del_estudio = $grupo;\n $categoria_encontrada = true;\n break; \n }\n }\n if (!$categoria_encontrada) {\n $grupo_del_estudio = 'Otros';\n }\n \n // Comienza a crear el array que devuelve la función\n $estudio_array[$grupo_del_estudio][$codigo] = array(\n 'nombre_estudio' => $estudio['estudiostot']['NOMANALISIS'], \n 'resultado' => $estudio['estudiostot']['RESULTADO'],\n 'unidades' => $estudio['estudiostot']['UNIDAD'],\n 'color' => \"black\", // Color con el que se mostrará. Las alertas pueden modificar este parámetro más adelante\n 'info' => \"\" // Snippet que se muestra al poner el mouse sobre el valor. Las alertas pueden agregar info acá.\n );\n }\n \n // Postprocesamiento de los datos.\n # Ordena los resultados según el orden predefinido en agrupar_estudios_array: primero el orden de los grupos, luego orden de estudios.\n uksort($estudio_array, \"ordenar_grupos_de_estudios\");\n foreach ($estudio_array as $key => $value) {\n $grupo_estudios_actual = $key;\n if ($key == \"solicitud\" or $key == \"timestamp\") {\n continue;\n }\n uksort($value, \"ordenar_estudios\");\n $estudio_array[$key] = $value;\n }\n \n // Devuelve array('HC', 'Nombre', 'Cama', 'timestamp', 'solicitud', grupo de estudios => codigo => array(nombre_estudio, resultado, unidades, color, info)...)\n return $estudio_array; \n }", "public function otorgarPrestamo(){\n $fecha = date('d-m-y');\n $this->setFechaOtorgado($fecha);\n $cantidadCuotas = $this->getCantidadCuotas();\n $monto = $this->getMonto();\n $colObjCuota = array();\n for($i=0; $i<$cantidadCuotas; $i++){\n $montoCuota = $monto / $cantidadCuotas;\n $montoInteres = $this->calcularInteresPrestamo($i);\n $colObjCuota[$i] = new Cuota($i, $montoCuota, $montoInteres);\n }\n $this->setColObjCuota($colObjCuota);\n }", "function stampaNome($id_persona) {\n include 'configurazione.php';\n include 'connessione.php';\n $stmt = $conn->prepare(\"SELECT P.nome, P.cognome, P.alt_name AS nick, P.tipologia FROM Persona AS P WHERE P.id = ?\");\n $stmt->bind_param(\"i\", $id_persona);\n $stmt->execute();\n $stmt->bind_result($nome, $cognome, $alt_name, $tipologia);\n $stmt->fetch();\n\n if($alt_name != \"\" && $tipologia != 1){\n return $alt_name;\n }else{\n if($alt_name != \"\"){return $nome . \" \" . $cognome. \" (\".$alt_name.\")\";}\n return $nome . \" \" . $cognome;\n }\n }", "function agrega_emergencia_ctraslado (\n $_fecha,$_telefono,\n $_plan,$_horallam,\n $_socio,$_nombre,\n $_tiposocio,$_edad,$_sexo,\n $_identificacion,$_documento,\n $_calle,$_numero,\n $_piso,$_depto,\n $_casa,$_monoblok,\n $_barrio,$_entre1,\n $_entre2,$_localidad,\n $_referencia,$_zona,\n $_motivo1,\n $_color,\n $_observa1,$_observa2,\n $_opedesp ,\n\t\t\t\t\t\t\t$_nosocio1 , $_noedad1 , $_nosexo1, $_noiden1 , $_nodocum1 ,\n\t\t\t\t\t\t\t$_nosocio2 , $_noedad2 , $_nosexo2, $_noiden2 , $_nodocum2 ,\n\t\t\t\t\t\t\t$_nosocio3 , $_noedad3 , $_nosexo3, $_noiden3 , $_nodocum3 ,\n\t\t\t\t\t\t\t$_nosocio4 , $_noedad4 , $_nosexo4, $_noiden4 , $_nodocum4 ,\n\t\t\t\t\t\t\t$_nosocio5 , $_noedad5 , $_nosexo5, $_noiden5 , $_nodocum5 ,\n $_bandera_nosocio1 ,$_bandera_nosocio2 ,$_bandera_nosocio3 ,$_bandera_nosocio4 ,\n\t\t\t\t\t\t\t$_bandera_nosocio5 \n )\n{\n $moti_explode ['0'] = substr($_motivo1, 0, 1);\n $moti_explode ['1'] = substr($_motivo1, 1, 2);\n\n // CALCULO DE FECHA Y DIA EN QUE SE MUESTRA EL TRASLADO EN PANTALLA\n $fecha_aux = explode (\".\" ,$_fecha );\n $hora_aux = explode (\":\" ,$_horallam);\n\n $_dia_tr =$fecha_aux[2];\n $_mes_tr =$fecha_aux[1];\n $_anio_tr =$fecha_aux[0];\n $_hora_tr =$hora_aux[0];\n $_min_tr =$hora_aux[1];\n $_param_tr =12; // parametro para mostrar en pantalla\n \n $traslado_aux = restaTimestamp ($_dia_tr , $_mes_tr, $_anio_tr , $_hora_tr , $_min_tr , $_param_tr);\n //***********************************************************\n $_plan = $_plan + 0;\n $insert_atencion = '\n insert into atenciones_temp\n (fecha,telefono,plan,\n horallam,socio,\n nombre,tiposocio,\n edad,sexo,\n identificacion,documento,\n calle,numero,\n piso,depto,casa,\n monoblok,barrio,\n entre1,entre2,\n localidad,referencia,\n zona,motivo1,\n motivo2,\n color,observa1,\n observa2,operec,traslado_aux ,fechallam)\n\n values\n\n (\n \"'.$_fecha.'\" , \"'.$_telefono.'\" , \"'.$_plan.'\" ,\n \"'.$_horallam.'\",\"'.$_socio.'\",\n \"'.utf8_decode($_nombre).'\",\"'.$_tiposocio.'\",\n \"'.$_edad.'\",\"'.$_sexo.'\",\n \"'.utf8_decode($_identificacion).'\",\"'.$_documento.'\",\n \"'.utf8_decode($_calle).'\",\"'.utf8_decode($_numero).'\",\n \"'.utf8_decode($_piso).'\",\"'.utf8_decode($_depto).'\",\n \"'.utf8_decode($_casa).'\",\"'.utf8_decode($_monoblok).'\",\n \"'.utf8_decode($_barrio).'\",\"'.utf8_decode($_entre1).'\",\n \"'.utf8_decode($_entre2).'\",\"'.utf8_decode($_localidad).'\",\n \"'.utf8_decode($_referencia).'\",\"'.$_zona.'\",\n '.$moti_explode[0].',\n '.$moti_explode[1].','.$_color.',\n \"'.utf8_decode($_observa1).'\",\"'.utf8_decode($_observa2).'\",\n \"'.utf8_decode($_opedesp).'\", \"'.$traslado_aux.'\" , \"'.$_fecha.'\"\n )\n ';\n\n // insert de la emergencia en atenciones temp\n global $G_legajo , $parametros_js;\n $result = mysql_query($insert_atencion);\n if (!$result) {\n $boton = '<input type=\"button\" value=\"Error! modificar y presionar nuevamente\"\n\t\t\t onclick=\" check_emergencia(\n\t\t\t document.formulario.muestra_fecha.value,document.formulario.telefono.value,\n\t\t\t document.formulario.i_busca_plan.value,document.formulario.hora.value,\n\t\t\t document.formulario.td_padron_idpadron.value,document.formulario.td_padron_nombre.value,\n\t\t\t document.formulario.td_padron_tiposocio.value,document.formulario.td_padron_edad.value,\n\t\t\t document.formulario.td_padron_sexo.value,document.formulario.td_padron_identi.value,\n\t\t\t document.formulario.td_padron_docum.value,document.formulario.td_padron_calle.value,\n\t\t\t document.formulario.td_padron_nro.value,document.formulario.td_padron_piso.value,\n\t\t\t document.formulario.td_padron_depto.value,document.formulario.td_padron_casa.value,\n\t\t\t document.formulario.td_padron_mon.value,document.formulario.td_padron_barrio.value,\n\t\t\t document.formulario.td_padron_entre1.value,document.formulario.td_padron_entre2.value,\n\t\t\t document.formulario.td_padron_localidad.value,document.formulario.referencia.value,\n\t\t\t document.formulario.s_lista_zonas.value,document.formulario.i_busca_motivos.value,\n\t\t\t document.formulario.s_lista_colores.value,document.formulario.obs1.value,\n\t\t\t document.formulario.obs2.value,'.$G_legajo.' ,\n\t\t\t document.formulario.check_traslado.value , document.formulario.dia_traslado.value ,\n\t\t\t document.formulario.mes_traslado.value , document.formulario.anio_traslado.value ,\n\t\t\t document.formulario.hora_traslado.value , document.formulario.minuto_traslado.value ,\n\t\t\t\t\t '.$parametros_js.' \n \t );\"/> ';\n \n }else \n {\n $boton = '<input type=\"button\" value=\"CERRAR CON EXITO\" onclick=\"window.close();\"/>';\n \n\n\n\t // recupero id para hacer altas de clientes no apadronados\n\t $consulta_id = mysql_query ('select id from atenciones_temp\n\t where fecha = \"'.$_fecha.'\" and plan = \"'.$_plan.'\"\n\t and horallam = \"'.$_horallam.'\" and nombre = \"'.$_nombre.'\"\n\t and tiposocio = \"'.$_tiposocio.'\" and motivo1 = '.$moti_explode[0].'\n\t and motivo2 = '.$moti_explode[1]);\n\n\n\t $fetch_idatencion=mysql_fetch_array($consulta_id);\n\n\n\t\tif ($_bandera_nosocio1 == 1) { $insert_nosocio1 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio1.'\" , \"'.$_noedad1.'\" , \"'.$_nosexo1.'\" , \"'.$_noiden1.'\" , \"'.$_nodocum1.'\" ) '); }\n\t\tif ($_bandera_nosocio2 == 1) { $insert_nosocio2 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio2.'\" , \"'.$_noedad2.'\" , \"'.$_nosexo2.'\" , \"'.$_noiden2.'\" , \"'.$_nodocum2.'\" ) '); }\n\t\tif ($_bandera_nosocio3 == 1) { $insert_nosocio3 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio3.'\" , \"'.$_noedad3.'\" , \"'.$_nosexo3.'\" , \"'.$_noiden3.'\" , \"'.$_nodocum3.'\" ) '); }\n\t\tif ($_bandera_nosocio4 == 1) { $insert_nosocio4 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio4.'\" , \"'.$_noedad4.'\" , \"'.$_nosexo4.'\" , \"'.$_noiden4.'\" , \"'.$_nodocum4.'\" ) '); }\n\t\tif ($_bandera_nosocio5 == 1) { $insert_nosocio5 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio5.'\" , \"'.$_noedad5.'\" , \"'.$_nosexo5.'\" , \"'.$_noiden5.'\" , \"'.$_nodocum5.'\" ) '); }\n }\n // mysql_query($insert_atencion);\n $insert_atencion='';\n //$insert_atencion='';\n //instanciamos el objeto para generar la respuesta con ajax\n $respuesta = new xajaxResponse();\n //escribimos en la capa con id=\"respuesta\" el texto que aparece en $salida\n $respuesta->addAssign(\"mensaje_agrega\",\"innerHTML\",$boton);\n\n //tenemos que devolver la instanciaci�n del objeto xajaxResponse\n return $respuesta;\n}", "function ooffice_write_etablissement( $record ) {\r\n // initial string;\r\n\t\tglobal $odt;\r\n\t\tif ($record){\r\n\t\t\t$id = trim( $record->id );\r\n\t\t\t$num_etablissement = trim( $record->num_etablissement);\r\n\t\t\t$nom_etablissement = recode_utf8_vers_latin1(trim( $record->nom_etablissement));\r\n\t\t\t$adresse_etablissement = recode_utf8_vers_latin1(trim( $record->adresse_etablissement));\r\n\t\t\t$logo=$record->logo_etablissement;\r\n\t\t\t\r\n\t\t\t// $odt->SetFont('Arial','I',10);\r\n\t\t\t// $texte=get_string('etablissement','referentiel').' <b>'.$nom_etablissement.'</b><br />'.get_string('num_etablissement','referentiel').' : <i>'.$num_etablissement.'</i> <br />'.$adresse_etablissement;\r\n\t\t\t$texte='<b>'.$nom_etablissement.'</b><br />'.get_string('num_etablissement','referentiel').' : <i>'.$num_etablissement.'</i> <br />'.$adresse_etablissement;\r\n\t\t\t$texte=recode_utf8_vers_latin1($texte);\r\n\t\t\t$odt->WriteParagraphe(0,$texte);\r\n\t\t\treturn true;\r\n }\r\n\t\treturn false;\r\n}", "public static function traza() {\n global $config;\n \n if ( ! isset($config['debug_file'])) return;\n\t $texto = date(\"Ymd-H:i:s \") . $_SERVER['REMOTE_ADDR'];\n\t foreach (func_get_args() as $arg) {\n\t\t $texto .= ' - ' . var_export($arg, true);\n\t }\n\t file_put_contents($config['debug_file'], $texto . \"\\n\", FILE_APPEND);\n }", "function nbr_auteurs_enligne() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\t$aff = '';\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n// nombre d_auteurs depuis 15 mn ()\r\n# inc/auth.php update-set en_ligne => NOW() : \"moment\" de session !\r\n# voir ecrire/action:logout.php\r\n# spip update-set 'en_ligne' datetime -15 mn au logout de session !!??!!\r\n# aff' nbr corresp aux auteurs affiches par spip en bandeau sup !\r\n\r\n\t$q = sql_select(\"COUNT(DISTINCT id_auteur) AS nb, statut \" .\r\n\t\t\"FROM spip_auteurs \" .\r\n\t\t\"WHERE en_ligne > DATE_SUB( NOW(), INTERVAL 15 MINUTE) \" .\r\n\t\t\"AND statut IN ('0minirezo', '1comite', '6forum') \" . // limite statuts spip (autres!)\r\n\t\t\"AND id_auteur != $connect_id_auteur \" .\r\n\t\t\"GROUP BY statut\"\r\n\t);\r\n\r\n\tif (sql_count($q)) {\r\n\t\t$aff .= _T(\"actijour:auteurs_en_ligne\") . \"<br />\\n\";\r\n\t\tWhile ($r = sql_fetch($q)) {\r\n\t\t\tif ($r['statut'] == '0minirezo') {\r\n\t\t\t\t$stat = _T('actijour:abrv_administrateur');\r\n\t\t\t} elseif ($r['statut'] == '1comite') {\r\n\t\t\t\t$stat = _T('actijour:abrv_redacteur');\r\n\t\t\t} elseif ($r['statut'] == '6forum') {\r\n\t\t\t\t$stat = _T('actijour:abrv_visiteur');\r\n\t\t\t}\r\n\t\t\t$aff .= $r['nb'] . \" $stat<br />\\n\";\r\n\t\t}\r\n\r\n\t} else {\r\n\t\t$aff .= _T(\"actijour:aucun_auteur_en_ligne\") . \"\\n\";\r\n\t}\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function anioLectivoSiguiente(){\n $fecha= date('d/m/Y');\n $fecha=Carbon::createFromFormat('d/m/Y', date('d/m/Y'));\n $fecha->addYear();\n //$fecha->addYear();\n\n $fechaBuscar=substr($fecha, 0,-15);//$fecha_de_creacion.slice(0,-6);\n $fechaBuscar=(int)$fechaBuscar;\n $anio=Anio::where('año',$fechaBuscar)->select('id')->get()->toArray();\n\n if($anio!=null){\n $var=\"Existe\";\n return $var;\n }else{\n $var=\"NoExiste\";\n return $var;\n }\n }", "public function AggiungiaiPreferiti($idricetta){\n $session = Sessione::getInstance();\n if($session->isLoggedUtente()){\n $utente = $session->getUtente();\n $idutente = $utente->getId();\n $pm = FPersistentManager::getInstance();\n $ric = $pm->loadById(\"ricetta\",$idricetta);\n $ric->incrementasalvataggi();\n $n = $ric->getNsalvataggi();\n $pm->update(\"ricetta\",$idricetta,'nsalvataggi',$n); //aggiornamento ricetta db\n $esito = $pm->storeUtPrefRic($idricetta, $idutente); //aggiunta di una entry\n //devo aggiornare l'oggetto utente nei dati di sessione (ha un nuovo preferito)\n $utente = $pm->loadById(\"utente\", $idutente);\n $session->setUtenteLoggato($utente);\n if($esito){\n //inserimento corretto, redirect alla pagina corrente\n $referer = $_SERVER['HTTP_REFERER']; //indirizzo che stavo visitando quando ho aggiunto ai preferiti\n $loc = substr($referer, strpos($referer, \"/myRecipes\")); //recupero parte path\n header('Location: '.$loc); //reindirizzamento al referer\n }\n else {\n $viewerr = new VErrore();\n $viewerr->mostraErrore(\"Inserimento nei preferiti non corretto\");\n\n }\n } else { //utente non loggato\n //redirect alla form di login\n\n header('Location: /myRecipes/web/Utente/Login');\n }\n\n }", "public function AggiornaPrezzi(){\n\t}", "public static function getReceta(){\n return array(\"LENTEJA\"=>200, \"LONGANIZA VEGANA\"=>1);\n }", "function data_extenso()\r\n{\r\n\tglobal $semana;\r\n\tglobal $mes;\t\r\n\t$diasemana = date('w');\r\n\t$diames = date('j');\r\n\t$numeromes = date('n');\r\n\t$ano = date('Y');\t\r\n\treturn $semana[ $diasemana ] . ', ' .\r\n\t\t $diames . ' de ' . \r\n\t\t $mes[ $numeromes ] . ' de ' . \r\n\t\t $ano;\t\t \r\n}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function enviar_notificacion_tarea( $id_tarea, $updated = 0 )\r\n{\r\n\t$result_tarea = db_query( \"SELECT a.*, b.logon as login_usuariocreador, b.nombre_completo as nombre_usuariocreador, b.email as email_usuariocreador, \" .\r\n\t\t\t\t\t\t\t\t\" c.nombre_completo as nombre_usuarioasignado, c.email as email_usuarioasignado, \" .\r\n\t\t\t\t\t\t\t\t\" d.logon as logon_usuariomodifico, d.nombre_completo as nombre_usuariomodifico, d.email as email_usuariomodifico, \" . \r\n\t\t\t\t\t\t\t\t\" e.nombre as nombre_proyecto \" . \r\n\t\t\t\t\t\t\t\t\" FROM ges_tareas a \" . \r\n\t\t\t\t\t\t\t\t\" LEFT JOIN ges_usuarios b ON (b.id_usuario=a.usuario_creador) \" .\r\n\t\t\t\t\t\t\t\t\" LEFT JOIN ges_usuarios c ON (c.id_usuario=a.usuario_asignado) \" .\r\n\t\t\t\t\t\t\t\t\" LEFT JOIN ges_usuarios d ON (d.id_usuario=a.usuario_modifico) \" .\r\n\t\t\t\t\t\t\t\t\" LEFT JOIN ges_proys e ON (e.id_project=a.id_project) \" .\r\n\t\t\t\t\t\t\t\t\" WHERE a.id_tarea=$id_tarea\" );\r\n\t\t\t\t\t\t\t\t\r\n $cc = \"\";\r\n\t$nombre_proyecto = \"\";\r\n\t\r\n\tif( $reg_tarea = db_fetch_row( $result_tarea ) )\r\n\t{\r\n\t\t$enviado = $reg_tarea[\"enviadoxmail\"];\r\n\t\t\r\n\t\tif( $reg_tarea[\"id_project\"] != 0 )\r\n\t\t $nombre_proyecto = $reg_tarea[\"nombre_proyecto\"];\r\n\t\t\r\n\t\t$titulo = $reg_tarea[\"titulo\"];\r\n\t\t$descripcion = $reg_tarea[\"descripcion\"]; \r\n\t\t\r\n\t\t$fecha_desde = get_str_datetime( $reg_tarea[\"fecha_desde\"], 0, 0 ); \r\n\t\t$fecha_hasta = get_str_datetime( $reg_tarea[\"fecha_hasta\"], 0, 0 );\r\n\t\t\r\n\t\t$hora_desde = $reg_tarea[\"hora_desde\"]; \r\n\t\t$mins_desde = $reg_tarea[\"mins_desde\"]; \r\n\t\t$hora_hasta = $reg_tarea[\"hora_hasta\"]; \r\n\t\t$mins_hasta = $reg_tarea[\"mins_hasta\"]; \t\r\n\t\t\r\n\t\t$usuario_asignado = $reg_tarea[\"usuario_asignado\"];\r\n\t\t$grupo_asignado = $reg_tarea[\"grupo_asignado\"];\r\n\t\t\r\n\t\tif( $updated == 0 )\r\n\t\t{\r\n\t\t // enviar mail a quien crea\r\n\t\t $usuario_creador = $reg_tarea[\"login_usuariocreador\"];\r\n\t\t $email = $reg_tarea[\"email_usuariocreador\"];\r\n\t\t $nombredestinatario = $reg_tarea[\"nombre_usuariocreador\"];\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// enviar mail a quien modifica\r\n\t\t $usuario_creador = $reg_tarea[\"logon_usuariomodifico\"];\r\n\t\t $email = $reg_tarea[\"email_usuariomodifico\"];\r\n\t\t $nombredestinatario = $reg_tarea[\"nombre_usuariomodifico\"];\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif( $usuario_asignado != 0 )\r\n\t\t{\r\n\t\t\tif( $email != $reg_tarea[\"email_usuarioasignado\"] )\r\n\t\t\t\t$cc = $reg_tarea[\"email_usuarioasignado\"];\r\n\t\t}\r\n\t\t\r\n\t\t// cuando se notifica a un usuario o a un grupo de usuarios\r\n\t\t// cuando es un proyecto se pueden notificar a todos los del equipo de trabajo\r\n\t\tif( $grupo_asignado != 0 or ( $grupo_asignado == 0 and $nombre_proyecto != \"\" ))\r\n\t\t{\r\n\t\t\tif( $grupo_asignado == 0 and $nombre_proyecto != \"\" )\r\n\t\t\t{\r\n\t\t\t // notificar a todos los usuarios asignados al proyecto\r\n\t\t\t\t$result_users = db_query( \" SELECT a.*, b.logon as login_usuario, b.nombre_completo as nombre_usuario, b.email as email_usuario \" .\r\n\t\t\t\t\t\t\t\t\t\t \" FROM ges_proys_usuarios a LEFT JOIN ges_usuarios b ON (b.id_usuario=a.id_usuario) \" .\r\n\t\t\t\t\t\t\t\t\t\t \" WHERE (a.id_project=\" . $reg_tarea[\"id_project\"] . \") \" );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t // notificar a todos los usuarios de un grupo\r\n\t\t\t\t$result_users = db_query( \" SELECT a.*, b.logon as login_usuario, b.nombre_completo as nombre_usuario, b.email as email_usuario \" .\r\n\t\t\t\t\t\t\t\t\t\t \" FROM ges_grupos_usuarios a LEFT JOIN ges_usuarios b ON (b.id_usuario=a.id_usuario) \" .\r\n\t\t\t\t\t\t\t\t\t\t \" WHERE (a.id_grupo=$grupo_asignado) \" );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\twhile( $reg_users = db_fetch_row( $result_users ) )\r\n\t\t\t{\r\n\t\t\t if( $reg_users[\"email_usuario\"] != \"\" and $reg_users[\"email_usuario\"] != $email )\r\n\t\t\t\t{\r\n\t\t\t\t if( $cc != \"\" ) $cc .= \",\";\r\n\t\t\t\t\t$cc .= $reg_users[\"email_usuario\"];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdb_free_query( $result_users );\r\n\t\t}\r\n\t\t\r\n\t\tif( $updated == 1 and $reg_tarea[\"email_usuariomodifico\"] != $reg_tarea[\"email_usuariocreador\"] )\r\n\t\t{\r\n\t\t\t$cc = $reg_tarea[\"email_usuariocreador\"] . \";$cc\";\r\n\t\t}\r\n\t}\r\n\t\r\n\tdb_free_query( $result_tarea );\r\n\r\n\tif( $enviado == \"N\" )\r\n\t{\r\n\t\t if( $updated == 0 )\r\n\t\t\t$subj = \"Asignación de Tareas: NUEVO REGISTRO\"; \r\n\t\t else\r\n\t\t\t$subj = \"Seguimiento de Tareas: MODIFICACION\";\r\n\t\t\r\n\t\t $header = \"Return-Path: [email protected]\\r\\n\"; \r\n\t\t $header .= \"From: $usuario_creador $nombredestinatario <$email>\\r\\n\"; \r\n\t\t \r\n\t\t $header .= \"Cc: $cc\\r\\n\";\r\n\t\t $header .= \"Content-Type: text/html; charset=iso-8859-1;\"; \r\n\t\t $header .= \"Content-Transfer-Encoding: 7bit;\";\r\n\t\t\r\n\t\t $mesg = \"<html><body style='font-family:verdana,arial,helvetica; font-size:12px; font-color: black; \" .\r\n \t\t \"background: url(http://www.grupoges.com.mx/images/logoFondoGES.jpg) no-repeat right top;'> \";\r\n\t\t $mesg .= \"<h3><strong>GRUPO GES - SEGUIMIENTO DE TAREAS </strong></h3>\";\r\n\t\t\t\t \r\n\t\t if( $updated == 0 )\r\n\t\t\t$mesg .= \"<font size=3>El usuario $nombredestinatario ha asignado una nueva tarea: $id_tarea.</font><br><br>\";\r\n\t\t else\r\n\t\t\t$mesg .= \"<font size=3>El usuario $nombredestinatario ha modificado un tarea: $id_tarea.</font><br><br>\";\r\n\t\t\t\t \r\n\t\t if( $nombre_proyecto != \"\" )\r\n\t\t $mesg .= \"Proyecto: $nombre_proyecto <br>\";\r\n\t\t \r\n\t\t $mesg .= \"Título: $titulo <br>\";\r\n\t\t $mesg .= \"Descripción: $descripcion <br><br>\";\r\n\t\t \r\n\t\t if( $fecha_desde==$fecha_hasta ) \r\n\t\t\t$mesg .= \"Fecha: \" . $fecha_desde;\r\n\t\t else\r\n\t\t\t$mesg .= \"Fechas programadas: Del \" . $fecha_desde . \" al \" . $fecha_hasta;\r\n\t\t\t\r\n\t\t $mesg .= \"<br>\";\r\n\t\t\r\n\t\t if( $hora_desde <= 9 ) $hora_desde = \"0\" . $hora_desde;\r\n\t\t if( $mins_desde <= 9 ) $mins_desde = \"0\" . $mins_desde;\r\n\t\t if( $hora_hasta <= 9 ) $hora_hasta = \"0\" . $hora_hasta;\r\n\t\t if( $mins_hasta <= 9 ) $mins_hasta = \"0\" . $mins_hasta;\r\n\t\t\r\n\t\t if( ($hora_desde . $mins_desde) == ($hora_hasta . $mins_hasta) ) \r\n\t\t\t$mesg .= \"Hora: \" . $hora_desde . \":\" . $mins_desde . \" hrs.\" ;\r\n\t\t else\r\n\t\t\t$mesg .= \"Horario: Desde las \" . $hora_desde . \":\" . $mins_desde . \" a las \" . $hora_hasta . \":\" . $mins_hasta . \" hrs. \" ;\r\n\t\t \r\n\t\t $mesg .= \"<br><br>\";\r\n\t\t\t \r\n\t\t $mesg .= \"<a href='http://intranet.escolarges.com.mx/tarea_paso2.php?accion=consultar&id_tarea=$id_tarea&tab=datosprincipales'>\" . \r\n\t\t\t\t \"Clic aquí para consultar la actividad</a><br>\";\t\r\n\t\t\r\n\t\t $mesg .= \"</body></html>\"; \r\n\t\t \r\n\t\t// echo $header;\r\n\t\t \r\n\t\t if( mail ( $email, $subj, $mesg, $header ) )\r\n\t\t {\r\n\t\t\t//echo \"Se envío correo electrónico de notificación\";\r\n\t\t\t$query = \"UPDATE ges_tareas SET enviadoxmail = 'S' WHERE id_tarea = $id_tarea \";\r\n\t\t\tdb_query( $query );\r\n\t\t }\r\n\t}\r\n\r\n}", "public function nutriments() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$nutriments = array();\n\t\t\t\t$descri = $this->Constituantaliment->query(\"select name from constituantaliments join donneescompilees on constituantaliments_id = constituantaliments.id where aliments_id = 1000\");\n\t\t\t\tforeach ($descri as $desc) {\n\t\t\t\t\t$nutriments[]['nom'] = $desc['constituantaliments']['name'];\n\t\t\t\t}\n\t\t\t\tfor ($i = 0; $i < 57; $i++) $nutriments[$i]['valeur'] = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tfor ($i = 0; $i < 57; $i++) {\n\t\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($rep['Aliment']['Donneesaliment'][$i]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t\t$valresul = $valsplit[$i];\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('nutriments',$nutriments);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "function wruv_streamtitle($ts) {\n\t$onair = wruv_sched_slot($ts);\n\treturn wruv_streamtitle_str( $onair );\n\n}", "function commandes_trig_bank_reglement_en_attente($flux){\r\n\t// Si on est dans le bon cas d'un paiement de commande et qu'il y a un id_commande et que la commande existe toujours\r\n\tif ($id_transaction = $flux['args']['id_transaction']\r\n\t AND $transaction = sql_fetsel(\"*\",\"spip_transactions\",\"id_transaction=\".intval($id_transaction))\r\n\t\tAND $id_commande = $transaction['id_commande']\r\n\t\tAND $commande = sql_fetsel('id_commande, statut, id_auteur, mode', 'spip_commandes', 'id_commande='.intval($id_commande))){\r\n\r\n\t\t$statut_commande = $commande['statut'];\r\n\t\t$transaction_mode = $transaction['mode'];\r\n\t\t$commande_mode = $commande['mode'];\r\n\t\t$statut_nouveau = 'attente';\r\n\t\tif ($statut_nouveau !== $statut_commande OR $transaction_mode !==$commande_mode){\r\n\t\t\tspip_log(\"commandes_trig_bank_reglement_en_attente marquer la commande #$id_commande statut=$statut_nouveau mode=$transaction_mode\",'commandes');\r\n\t\t\t//on met a jour la commande\r\n\t\t\tinclude_spip(\"action/editer_commande\");\r\n\t\t\tcommande_modifier($id_commande,array('statut'=>$statut_nouveau,'mode'=>$transaction_mode));\r\n\t\t}\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "function d3jspie_generateur_autoriser(){}", "function crear_carpeta($ruta,$nombre_carpeta)\r\n\t{\r\n\t}", "private function addRetardRec($nbHeure, $nbMinute)\n {\n //init\n $volSuivant = null;\n self::init();\n\n\n //1 Etape : recuperation et test du prochain vol de l'avion utilisé\n $volSuivant = self::$_mapper->getNextVolByAvion($this);\n\n\n //Si le vol est en conflit\n if ($volSuivant instanceof ServPlaning_Model_Vol &&\n $this->get_heureAtterissage() > $volSuivant->get_heureDecollage()) {\n $arrayEnVol = ServPlaning_Model_EnVol::getEnVolByVol($volSuivant->get_noVol());\n //modification de la date Start / stop de chaque en Vol\n foreach ($arrayEnVol as $enVol) {\n $dateStart = new DateTime($enVol->get_heureStart());\n $dateStop = new DateTime($enVol->get_heureStop());\n $dateStart->modify(\"+\" . $nbHeure . \" hour +\" . $nbMinute . \" min\");\n $dateStop->modify(\"+\" . $nbHeure . \" hour +\" . $nbMinute . \" min\");\n $enVol->set_heureStart($dateStart->format(DATE_ATOM));\n $enVol->set_heureStop($dateStop->format(DATE_ATOM));\n $envol->save();\n }\n $volSuivant->addRetardDecollage($nbHeure, $nbMinute);\n }\n\n //2 Etape : recuperation et test des pilotes de l'avion utilisé\n $enVols = ServPlaning_Model_EnVol::getEnVolByVol($this->get_noVol());\n $compteur = 0; // afin de ses souvenir que vol a deja ete modifié\n foreach ($enVols as $enVol) {\n //Pour chaque EnVol Courant\n $enVolSuivant = ServPlaning_Model_EnVol::getNextEnVolByEnVol($enVol);\n if ($enVolSuivant instanceof ServPlaning_Model_EnVol &&\n $enVol->get_heureStop() > $enVolSuivant->get_heureStart()) {\n $VolMod = ServPlaning_Model_Vol::getVol($enVolSuivant->get_noVol());\n $VolMod->addRetardRec($nbHeure, $nbMinute);\n }\n }\n }", "public function prepararSopa(){\n\n echo(\"Revuelva los ingredientes y deje cocinar por 20 minutos\");\n\n}", "private function saveLog($traza) {\r\n $nombreFichero = \"trazas\" . date(\"dmY\") . \".log\";\r\n $fichero = fopen($nombreFichero, \"a\");\r\n fwrite($fichero, $traza);\r\n fclose($fichero);\r\n }", "function abc_special_event_microdata( $content ) {\n\tif ( 'special_event' === get_post_type() ) {\n\t\t$date = get_special_event_date_format();\n\t}\n\n\treturn $content . $date['microdata'];\n}", "function formatear_mes($parametro){\n\n\t\t/* Declaro variables personalizadas para que queden claros los datos */\n\t\t$mes = substr($parametro, 5, 2);\n\t\t$anno = substr($parametro, 0, 4);\n\t\t\n\t\t/* Generamos el formato */\n\t\t$temp = $mes.\"/\".$anno;\n\t\t\n\t\treturn $temp;\n\t}", "function toon($lijst, $mededeling=\"Geen bijzonderheden<br />\") {\n\tprint \"<b>$mededeling</b><br />\";\n\tprint \"<pre>\";\n\tprint_r($lijst);\n\tprint \"</pre>\";\n}", "private function customDate() {\n\t\tsetlocale(LC_ALL, 'swedish');\n\t\t// setlocale(LC_ALL, 'sv_SE.UTF-8');\n\n\t\treturn utf8_encode(ucfirst(strftime('%A, den %d %B %Y. '))) . strftime('Klockan är [%H:%M:%S].');\n\t\t// return ucfirst(strftime('%A, den %d %B %Y. ')) . strftime('Klockan är [%H:%M:%S].');\n\t}", "function insertarSolicitudMayor500000(){\n\t\t$this->procedimiento='mat.ft_solicitud_mayor_500000_ime';\n\t\t$this->transaccion='MAT_SMI_INS';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('nro_po','nro_po','varchar');\n\t\t$this->setParametro('fecha_solicitud','fecha_solicitud','date');\n\t\t$this->setParametro('funcionario','funcionario','text');\n\t\t$this->setParametro('estado_reg','estado_reg','varchar');\n\t\t$this->setParametro('fecha_po','fecha_po','date');\n\t\t$this->setParametro('monto_dolares','monto_dolares','numeric');\n\t\t$this->setParametro('nro_tramite','nro_tramite','varchar');\n\t\t$this->setParametro('proveedor','proveedor','varchar');\n\t\t$this->setParametro('monto_bolivianos','monto_bolivianos','numeric');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function zusatz_zeichnen($ZEbene_Bezeichnung,$Ebeneninhalt,$s,$X_min,$Y_max,$Stroke_width,$Color)\n{\n\treturn $ZE_Ausg = ' <g transform=\"matrix('.$s.' 0 0 '.$s.' '.$X_min.' '.$Y_max.')\" id=\"zusatz_'.$ZEbene_Bezeichnung.'\" fill=\"none\" pointer-events=\"none\" stroke-width=\"'.$Stroke_width.'\" stroke=\"'.$Color.'\">\n\t\t\t<desc>Zusatz-Inhalt '.utf8_encode($ZEbene_Bezeichnung).'</desc>'.\n\t\t\t$Ebeneninhalt\n\t.'</g>';\n}", "public function salvaStatoInsiemeVetrine()\n\t\t{\n\t\t\tif( $fp = fopen(STATOVETRINA, \"w\") )\n\t\t\t\tfwrite($fp, serialize(InsiemeVetrine::$istanza));\n\t\t\t\t\n\t\t\tfclose($fp);\n\t\t}", "function getEventosScreenshotElemento() {\n\t global $mdb2;\n\t global $log;\n\t global $current_usuario_id;\n\t global $data;\n\t global $marcado;\n\t global $usr;\n\t include 'utils/get_eventos.php';\n\t $event = new Event;\n\t $graficoSvg = new GraficoSVG();\n\n\t if($this->extra[\"imprimir\"]){\n\t \t$objetivo = new ConfigEspecial($this->objetivo_id);\n\n\t\t\t$nombre_objetivo = $objetivo->nombre;\n\t\t\t//echo $nombre_objetivo;\n\n\t \t$usuario = new Usuario($current_usuario_id);\n\t\t\t$usuario->__Usuario();\n\t \t$json = get_eventos($current_usuario_id, $this->objetivo_id, date(\"Y-m-d H:i\", strtotime($this->timestamp->getInicioPeriodo())), date(\"Y-m-d H:i\",strtotime($this->timestamp->getTerminoPeriodo())), $usuario->clave_md5);\n\t \t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t $T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t $T->setVar('__nombre_obj', $nombre_objetivo);\n\t\t $T->setVar('__contenido', $json);\n\t\t $T->setVar('__valid_contenido', true);\n\t\t $this->resultado = $T->parse('out', 'tpl_tabla');\n\t }else{\n\n\t\t /* TEMPLATE DEL GRAFICO */\n\t\t $T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t $T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t $T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\t\t $T->setVar('__valid_contenido', false);\n\t\t # Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t $timeZoneId = $usr->zona_horaria_id;\n\t\t $arrTime = Utiles::getNameZoneHor($timeZoneId);\n\t\t $timeZone = $arrTime[$timeZoneId];\n\t\t $arrayDateStart = array();\n\t\t $tieneEvento = 'false';\n\t\t $data = null;\n\t\t $ids = null;\n\n\t\t $sql1 = \"SELECT * FROM reporte._detalle_marcado(\".pg_escape_string($current_usuario_id).\",ARRAY[\".pg_escape_string($this->objetivo_id).\"],'\".pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t// \t \t print($sql1);\n\t\t \t$res1 =& $mdb2->query($sql1);\n\t\t \tif (MDB2::isError($res1)) {\n\t\t \t $log->setError($sql1, $res1->userinfo);\n\t\t \t exit();\n\t\t \t}\n\t\t \tif($row1= $res1->fetchRow()){\n\t\t \t $dom1 = new DomDocument();\n\t\t \t $dom1->preserveWhiteSpace = FALSE;\n\t\t \t $dom1->loadXML($row1['_detalle_marcado']);\n\t\t \t $xpath1 = new DOMXpath($dom1);\n\t\t \t unset($row1[\"_detalle_marcado\"]);\n\t\t \t}\n\t\t \t$tag_marcardo_mantenimientos = $xpath1->query(\"/detalles_marcado/detalle/marcado\");\n\t\t \t# Busca y guarda si existen marcados dentro del xml.\n\t\t \tforeach ($tag_marcardo_mantenimientos as $tag_marcado){\n\t\t \t $ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t \t $marcado = true;\n\t\t \t}\n\t\t \t# Verifica que existan marcados por el usuario.\n\t\t \tif ($marcado == true) {\n\t\t \t $dataMant =$event->getData(substr($ids, 1), $timeZone);\n\t\t \t $character = array(\"{\", \"}\");\n\t\t \t $objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t \t $tieneEvento = 'true';\n\t\t \t $data = json_encode($dataMant);\n\t\t \t}\n\t\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t if($this->extra[\"semaforo\"]==2){\n\t\t\t $semaforo=2;\n\t\t\t }else{\n\t\t\t $semaforo=1;\n\t\t\t }\n\t\t\t //$T->setVar('__contenido_id', 'even__'.$this->extra[\"monitor_id\"]);\n\t\t\t $T->setVar('__contenido_tabla', $this->getDetalleEventosScreenshotElementos($this->extra[\"monitor_id\"], $this->extra[\"pagina\"], $semaforo));\n\t\t\t $T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t $T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t return $this->resultado = $T->parse('out', 'tpl_tabla');\n\t\t\t}\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT foo.nodo_id FROM (\".\n\t\t\t\t \"SELECT DISTINCT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\",'\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')) AS foo, nodo n \".\n\t\t\t\t \"WHERE foo.nodo_id=n.nodo_id ORDER BY orden\";\n\t//\t\tprint($sql);\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\t\t\t$monitor_ids = array();\n\t\t\twhile($row = $res->fetchRow()) {\n\t\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t\t}\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif (count($monitor_ids) == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$orden = 1;\n\t\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t\t$T->setVar('__contenido_id', 'even_'.$monitor_id);\n\t\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleEventosScreenshotElementos($monitor_id, 1, 1, $orden));\n\t\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t\t$orden++;\n\t\t\t}\n\t\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t\t\tif ($data != null){\n\t\t\t\t$this->resultado.= $graficoSvg->getAccordion($data,'accordionEvento');\n\t\t\t}\n\t\t}\n\t}", "function hoje() {\n $data_hoje = date(\"Y-m-d H:i:s\");\n return $data_hoje;\n }", "function printAktivitetBoks($aktivitet)\n{\n if (eksistererAktivitet($aktivitet)) {\n $akt = hentAktivitet($aktivitet);\n $pris = $akt->Pris > 0 ? $akt->Pris . \"kr\" : \"Gratis!\";\n $dato = new Carbon\\Carbon($akt->Dato);\n $dato = $dato->diffForHumans();\n $prisFarge = $akt->Pris > 0 ? \"Pris Rod\" : \"Pris\";\n\n if ($akt->Statisk === 1)\n $dato = \"<img class='Ikoner' src='img/ikon_lock.png' alt='Statisk aktiviet'/>\";\n ?>\n <div class=\"AktivitetLitenBoks\">\n \n <a class=\"LinkBeskrivelse\" href=\"?side=aktivitet&id=<?= tryggPrint($aktivitet) ?>\">\n <img class=\"bildeBoks\" src=\"<?= tryggPrint($akt->Bilde) ?>\" onerror=\"this.src='img/default_aktivitet.png'\"/>\n \n <div class=\"bildeBoksLag\"></div>\n <div class=\"Beskrivelse\"><?= tryggPrint($akt->Beskrivelse) ?></div>\n </a>\n <div class=\"Tittel\"><b><?= tryggPrint($akt->Tittel) ?></b></div>\n <a class=\"link\" href=\"?side=bruker&id=<?= tryggPrint($akt->Bruker) ?>\">\n <div class=\"Utgiver\">\n <b><?= tryggPrint($akt->Bruker) ?></b>\n <img class=\"Ikoner\" src=\"<?= hentBrukerBildeEx($akt->Bruker) ?>\"</img>\n </div>\n </a>\n <div class=\"Dato\"><?= $dato ?></div>\n <div class=\"Likes\">\n <b><?= tryggPrint(antallStemmer($aktivitet)) ?></b>\n <img class=\"Ikoner\" src=\"img/ikon_hjerte.png\" alt=\"Antall likes\"</img>\n </div>\n \n <div class=\"<?=$prisFarge?>\"><?= $pris ?></div>\n </div>\n\n <?php\n } else {\n echo \"Fant ikke aktivtet: \" . $aktivitet;\n }\n}", "function get_car_trips_gps($vin, $ts_start, $ts_end)\n{\n global $cars_dt;\n \n // Lecture des trajets\n // -------------------\n // ouverture du fichier de log: trajets\n $fn_car = dirname(__FILE__).CARS_FILES_DIR.$vin.'/trips.log';\n $fcar = fopen($fn_car, \"r\");\n\n // lecture des donnees\n $line = 0;\n $cars_dt[\"trips\"] = [];\n $first_ts = time();\n $last_ts = 0;\n if ($fcar) {\n while (($buffer = fgets($fcar, 4096)) !== false) {\n // extrait les timestamps debut et fin du trajet\n list($tr_tss, $tr_tse, $tr_ds, $tr_batt) = explode(\",\", $buffer);\n $tsi_s = intval($tr_tss);\n $tsi_e = intval($tr_tse);\n // selectionne les trajets selon leur date depart&arrive\n if (($tsi_s>=$ts_start) && ($tsi_s<=$ts_end)) {\n $cars_dt[\"trips\"][$line] = $buffer;\n $line = $line + 1;\n // Recherche des ts mini et maxi pour les trajets retenus\n if ($tsi_s<$first_ts)\n $first_ts = $tsi_s;\n if ($tsi_e>$last_ts)\n $last_ts = $tsi_e;\n }\n }\n }\n fclose($fcar);\n\n // Lecture des points GPS pour ces trajets\n // ---------------------------------------\n // ouverture du fichier de log: points GPS\n $fn_car = dirname(__FILE__).CARS_FILES_DIR.$vin.'/gps.log';\n $fcar = fopen($fn_car, \"r\");\n\n // lecture des donnees\n $line = 0;\n $cars_dt[\"gps\"] = [];\n if ($fcar) {\n while (($buffer = fgets($fcar, 4096)) !== false) {\n // extrait les timestamps debut et fin du trajet\n list($pts_ts, $pts_lat, $pts_lon, $pts_head, $pts_batt, $pts_mlg, $pts_moving) = explode(\",\", $buffer);\n $pts_tsi = intval($pts_ts);\n // selectionne les trajets selon leur date depart&arrive\n if (($pts_tsi>=$first_ts) && ($pts_tsi<=$last_ts)) {\n $cars_dt[\"gps\"][$line] = $buffer;\n $line = $line + 1;\n }\n }\n }\n fclose($fcar);\n // Ajoute les coordonnées du domicile pour utilisation par javascript\n $latitute=config::byKey(\"info::latitude\");\n $longitude=config::byKey(\"info::longitude\");\n $cars_dt[\"home\"] = $latitute.\",\".$longitude;\n\n //log::add('peugeotcars', 'debug', 'Ajax:get_car_trips:nb_lines'.$line);\n return;\n}" ]
[ "0.5656171", "0.5452575", "0.5341386", "0.5280928", "0.5193228", "0.5169514", "0.51567364", "0.51548874", "0.51526016", "0.51040125", "0.50788385", "0.5072233", "0.50596774", "0.50309145", "0.501982", "0.49780238", "0.49744797", "0.49670902", "0.49512714", "0.49499494", "0.49410996", "0.49093667", "0.49000224", "0.48945665", "0.48920885", "0.48914889", "0.48804513", "0.48793736", "0.4867017", "0.48617017", "0.48608786", "0.48565006", "0.48565006", "0.48542607", "0.48525736", "0.48456526", "0.48447397", "0.48261267", "0.48228243", "0.48136044", "0.48121598", "0.48017263", "0.47986147", "0.4791368", "0.47902483", "0.4788111", "0.47870758", "0.47798672", "0.47784892", "0.47782785", "0.47760808", "0.47737172", "0.47731718", "0.4771469", "0.47676125", "0.4765581", "0.4764601", "0.47642568", "0.4762731", "0.47603124", "0.4759693", "0.47583175", "0.4757321", "0.47566676", "0.4756638", "0.47505903", "0.47391728", "0.47367722", "0.47299415", "0.4727712", "0.47219035", "0.47190252", "0.4714581", "0.47117078", "0.47112894", "0.47104925", "0.4709095", "0.47062528", "0.47062528", "0.47062528", "0.47035205", "0.47028166", "0.46970302", "0.4694108", "0.46940923", "0.4692945", "0.4691571", "0.46907714", "0.46867", "0.46846592", "0.4678153", "0.46764088", "0.467612", "0.46702144", "0.46687558", "0.46621767", "0.46560082", "0.46510813", "0.4650102", "0.46488565" ]
0.49804413
15
COLLABORA, REGIA, MUSICA, PRODOTTO DA, etc
function stampaPersona($numeroEvento, $conn) { $stmt = $conn->prepare("SELECT tep.nome, P.alt_name, P.nome, P.cognome, P.id FROM (((eventoPersona AS ep INNER JOIN tipologiaEventoPersona AS tep ON tep.id = ep.tipologia) INNER JOIN Evento AS E ON E.id = ep.id_evento) INNER JOIN Persona AS P ON P.id = ep.id_persona) WHERE E.id = ? ORDER BY ep.tipologia"); $stmt->bind_param("i", $numeroEvento); $stmt->execute(); $stmt->bind_result($nome_tipo_rapporto, $alt_name, $nome, $cognome, $id); $daRitornare=""; $ultimaTipologia = "babbi l'orsetto"; while($stmt->fetch()) { if( $nome_tipo_rapporto == $ultimaTipologia ){ $daRitornare.= ", ". stampaNome($id, $conn); }else{ if($ultimaTipologia != "babbi l'orsetto"){$daRitornare.= "<br>";} $daRitornare.= "<b class='cappato'>" . $nome_tipo_rapporto . ":</b> "; $daRitornare.= stampaNome($id); } $ultimaTipologia = $nome_tipo_rapporto; } return $daRitornare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPaises()\n{\n return array('ECUADOR', 'COLOMBIA', 'ESPAÑA', 'OTRO');\n}", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "function dividirPalabraEnLetras($palabra){\n \n /*>>> Completar para generar la estructura de datos b) indicada en el enunciado. \n recuerde que los string pueden ser recorridos como los arreglos. <<<*/\n \n}", "function get_clase_vista()\n {\n switch ($this->accion) {\n case 'index': \n case 'mostrar_clases': \n case 'filtrar': return 'vista_materias';\n case 'planilla': return 'vista_planilla';\n case 'resumen': return 'vista_resumen';\n case 'generar_pdf': return 'vista_planilla';\n default: return 'vista_edicion_asistencias';\n }\n }", "function nomi_sintomi($nome)\n{\n\tif ( ($nome == 'id') || ($nome == 'id_paziente') );\n\n\telse if ( $nome == 'data_inserimento') \t\n\t\treturn ('Insertion date');\n\telse if ( $nome == 'data_sintomi') \t\n\t\treturn ('Date of first clinical sign');\n\telse if ( $nome == 'crisi_epilettica') \t\n\t\treturn ('Epilepsy');\n\telse if ( $nome == 'disturbi_comportamento') \t\n\t\treturn ('Behavioral disorder');\n\telse if ( $nome == 'deficit_motorio') \t\n\t\treturn ('Motor deficit');\n\telse if ( $nome == 'deficit') \t\n\t\treturn ('Sensory deficit');\t\n\telse if ( $nome == 'cefalea') \t\n\t\treturn ('Headache');\t\t\n\telse if ( $nome == 'altro') \t\n\t\treturn ('Other');\t\n\t \n\telse\n\t\treturn ucfirst($nome);\n}", "protected function subjonctifImparfait(){\n $terminaisons=[];\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguèsses\";\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguessian\";\n $terminaisons[]= \"fuguessias\";\n $terminaisons[]= \"fuguèsson\";\n return $terminaisons;\n }", "function datos_censales($alumno)\n\t{\n $formulario_habilitado = $this->s__datos_config_reporte['formulario_habilitado'];\n\t\t//$habilitacion = $this->s__datos_config_reporte['habilitacion'];\n \n\t\t$formulario_terminado = toba::consulta_php('consultas_relevamiento_ingenierias')->get_formulario_terminado($formulario_habilitado, $alumno['encuestado']);\n\t\t\n\t\tif (!empty($formulario_terminado)) {\n\t\t\t$formulario_habilitado = $formulario_terminado[0]['formulario_habilitado'];\n\t\t\t$this->respuestas = toba::consulta_php('consultas_relevamiento_ingenierias')->get_respuestas_completas_formulario_habilitado_encuestado($formulario_habilitado, $alumno['encuestado']);\n\t\t\t\n\t\t\t//Respuestas Datos Censales Principales\n\t\t\t$rta_estado_civil \t= $this->get_respuestas(247);\n\t\t\t$rta_cant_hijos \t= $this->get_respuestas(248);\n\t\t\t$rta_cant_fliares \t= $this->get_respuestas(249);\n\t\t\t$rta_calle\t\t\t= $this->get_respuestas(251);\n\t\t\t$rta_numero\t\t\t= $this->get_respuestas(252);\n\t\t\t$rta_piso\t\t\t= $this->get_respuestas(253);\n\t\t\t$rta_depto\t\t\t= $this->get_respuestas(254);\n\t\t\t$rta_unidad\t\t\t= $this->get_respuestas(255);\n\t\t\t$rta_localidad\t\t= $this->get_respuestas(256);\n\t\t\t$rta_calle_proc\t\t= $this->get_respuestas(258);\n\t\t\t$rta_numero_proc\t= $this->get_respuestas(259);\n\t\t\t$rta_piso_proc\t\t= $this->get_respuestas(260);\n\t\t\t$rta_depto_proc\t\t= $this->get_respuestas(261);\n\t\t\t$rta_unidad_proc\t= $this->get_respuestas(262);\n\t\t\t$rta_localidad_proc\t= $this->get_respuestas(263);\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$rtas_fuente = $this->get_respuestas(265, true);\n\t\t\t$rtas_beca\t = $this->get_respuestas(266, true);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$rta_cond_activ\t\t = $this->get_respuestas(268);\n\t\t\t$rta_es_usted\t\t = $this->get_respuestas(269);\n\t\t\t$rta_ocupacion_es\t = $this->get_respuestas(270);\n\t\t\t$rta_horas_semanales = $this->get_respuestas(271);\n\t\t\t$rta_rel_trab_carrera = $this->get_respuestas(272);\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$rta_nivel_est_padre\t = $this->get_respuestas(274);\n\t\t\t$rta_vive_padre\t\t\t = $this->get_respuestas(275);\n\t\t\t$rta_cond_activ_padre\t = $this->get_respuestas(276);\n\t\t\t$rta_es_usted_padre\t\t = $this->get_respuestas(277);\n\t\t\t$rta_ocupacion_es_padre\t = $this->get_respuestas(278);\n\t\t\t$rta_si_no_trabaja_padre = $this->get_respuestas(279);\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$rta_nivel_est_madre\t = $this->get_respuestas(281);\n\t\t\t$rta_vive_madre\t\t\t = $this->get_respuestas(282);\n\t\t\t$rta_cond_activ_madre\t = $this->get_respuestas(283);\n\t\t\t$rta_es_usted_madre\t\t = $this->get_respuestas(284);\n\t\t\t$rta_ocupacion_es_madre\t = $this->get_respuestas(285);\n\t\t\t$rta_si_no_trabaja_madre = $this->get_respuestas(286);\n\t\t\t\n\t\t\t//Se arma la linea con las respuestas - Datos Censales Principales\n\t\t\t$linea = '|'.$rta_estado_civil['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_hijos['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_fliares['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle['respuesta_valor'].'|'.$rta_numero['respuesta_valor'].'|'.$rta_piso['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto['respuesta_valor'].'|'.$rta_unidad['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad) ? '' : $rta_localidad['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle_proc['respuesta_valor'].'|'.$rta_numero_proc['respuesta_valor'].'|'.$rta_piso_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto_proc['respuesta_valor'].'|'.$rta_unidad_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad_proc) ? '' : $rta_localidad_proc['respuesta_valor'];\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$linea .= '|'.$this->get_lista_array_fuente($rtas_fuente).'|'.$this->get_lista_array_beca($rtas_beca);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$linea .= '|'.$rta_cond_activ['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted) \t\t ? '' : $rta_es_usted['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es) \t ? '' : $rta_ocupacion_es['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_horas_semanales) ? '' : $rta_horas_semanales['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_rel_trab_carrera) ? '' : $rta_rel_trab_carrera['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$linea .= '|'.$rta_nivel_est_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_padre) \t\t ? '' : $rta_vive_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_padre) \t ? '' : $rta_cond_activ_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_padre) \t ? '' : $rta_es_usted_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_padre) ? '' : $rta_ocupacion_es_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_padre) ? '' : $rta_si_no_trabaja_padre['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$linea .= '|'.$rta_nivel_est_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_madre) \t\t ? '' : $rta_vive_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_madre)\t ? '' : $rta_cond_activ_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_madre) \t ? '' : $rta_es_usted_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_madre) ? '' : $rta_ocupacion_es_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_madre) ? '' : $rta_si_no_trabaja_madre['respuesta_valor'];\n\t\t\t\n\t\t\t//Fecha de terminación del formulario\n\t\t\t$linea .= '|'.$formulario_terminado[0]['fecha_terminado'];\n\t\t} else {\n\t\t\t$linea = '|||||||||||||||||||||||||||||||';\n\t\t}\n\t\t\n\t\t//Se retornan las respuestas del alumno\n\t\treturn $linea;\n\t}", "function dia_letras($dia){\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tswitch($dia)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t $dia_letras=\"Lunes\";\n\t\t\t break;\n\t\t\tcase 2:\n\t\t\t $dia_letras=\"Martes\";\n\t\t\t break;\n\t\t\tcase 3:\n\t\t\t $dia_letras=\"Miercoles\";\n\t\t\t break;\n\t\t\tcase 4:\n\t\t\t $dia_letras=\"Jueves\";\n\t\t\t break;\n\t\t\tcase 5:\n\t\t\t $dia_letras=\"Viernes\";\n\t\t\t break;\n\t\t\t case 6:\n\t\t\t $dia_letras=\"Sabado\";\n\t\t\t break;\n\t\t\tcase 0:\n\t\t\t $dia_letras=\"Domingo\";\t\t \n\t\t\t break;\n\t\t\tcase 10:\n\t\t\t $dia_letras=\"Festivo\";\n\t\t\t break;\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $dia_letras;\n\t\t\t\n\t\t}", "public function getMataPelajaran();", "function NombreCurso($varcurso)\n{\n\tif ($varcurso == 1) return \"Nybörjare\";\n\tif ($varcurso == 2) return \"Steg 2\";\n\tif ($varcurso == 3) return \"Steg 3\";\n\tif ($varcurso == 4) return \"Steg 4\";\n\tif ($varcurso == 5) return \"Open level\";\n\tif ($varcurso == 6) return \"\";\n\tif ($varcurso == 7) return \"Private class\";\n\tif ($varcurso == 8) return \"Nybörjare/Open level\";\n}", "public function getChapeau();", "function getNombreGenericoPrestacion($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $descr = \"INMUNIZACION\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $descr = \"CONTROL PEDIATRICO\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $descr = \"CONTROL ADOLESCENTE\";\r\n break;\r\n case 'PARTO':\r\n $descr = \"CONTROL DEL PARTO\";\r\n break;\r\n case 'EMB':\r\n $descr = \"CONTROL DE EMBARAZO\";\r\n break;\r\n case 'ADULTO':\r\n $descr = \"CONTROL DE ADULTO\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $descr = \"SEGUIMIENTO\";\r\n break;\r\n case 'TAL':\r\n $descr = \"TAL\";\r\n break;\r\n }\r\n return $descr;\r\n}", "public function intensidad(){\n if($this->PP03F < 35 && $this->PP03G == 1 && $this->PP03H == 1)\n {\n return 1;\n }\n if($this->caracteristicas->CH06 >= 10 && $this->PP03G == 1 && $this->PP01E == 5)\n {\n return 2;\n }\n if( $this->PP03F > 40)\n {\n return 3;\n }\n if($this->PP01E == 5)\n {\n return 4;\n }\n}", "function tipoDeLlamada($codInternacional, $codArea)\n{\n if ($codInternacional == 54)\n {\n if ($codArea == 299)\n {\n return \"corta\";\n }\n\n return \"larga\";\n }\n return \"internacional\";\n}", "public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }", "function fct_titre_page ($mescriteres) {\n\t$titre_page = \"\";\n\tforeach ($mescriteres as $ref => $infoscritere) {\n\t\tif (($infoscritere['code'] >= 0) && ($infoscritere['libelle'] != \"\")) {\n\t\t\tif ($titre_page != \"\") $titre_page .= \", \";\n\t\t\t$titre_page .= $infoscritere['libelle'];\n\t\t}\n\t}\n\tif ($titre_page == \"\") $titre_page = \"Un expert vous aide Ó identifier un arbre\";\n\telse $titre_page = \"Fleurs correspondant Ó : \".$titre_page;\n\treturn $titre_page;\n}", "public function stringTipoCargo($parametro)\n{\n\n switch ($parametro) {\n case 1:\n # code...\n return \"Vendedor\";\n break;\n\n\n case 2:\n # code...\n return \"Vendedor Externo\";\n break;\n\n\n case 3:\n # code...\n return \"Administrativo\";\n break;\n\n case 4:\n # code...\n return \"Otro\";\n break;\n \n default:\n # code...\n return \"No definido\";\n break;\n }\n\n}", "function getAlc(){\r\n return array(\"saki\", \"vodka\", \"rum\", \"whiskey\", \"tequila\", \"gin\");\r\n }", "public static function getReceta(){\n return array(\"LENTEJA\"=>200, \"LONGANIZA VEGANA\"=>1);\n }", "function getTipoParqueo()\n{\n return array(\n array('codigo' => 'MTO', 'valor' => 'Moto'),\n array('codigo' => 'CAR', 'valor' => 'Carro'),\n array('codigo' => 'TRK', 'valor' => 'Camion'),\n );\n}", "public function accion(){\n \t$accion = $this->accion;\n \tif ($accion == 'CREAR') {\n \t\t$accion = \"CREACION\";\n \t}else{\n \t\t$accion = \"EDICION\";\n \t}\n \treturn $accion;\n }", "function define_forma_pagamento($pgto){\n \n switch($pgto){\n case (strpos($pgto, 'Crédito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Débito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Dinheiro') !== false) :\n return 1;\n break;\n default:\n return 1002;\n break;\n }\n \n}", "function cuentabancos(){\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,c.description,c.manual_code\n\t\t\tfrom cont_movimientos m,cont_polizas p,cont_accounts c,cont_config conf\n\t\t\twhere m.cuenta=c.account_id and c.currency_id=2 \n\t\t\tand c.`main_father`=conf.CuentaBancos and p.idtipopoliza!=3 and m.TipoMovto not like '%M.E%'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 group by m.Cuenta\n\t\t\t\");\n\t\t\treturn $sql;\n\t\t}", "public function linea_colectivo();", "function niveles($area){\n\t\tif ($area->cveentidad2=='0') return 1;\n\t\tif ($area->cveentidad3=='0') return 2;\n\t\tif ($area->cveentidad4=='0') return 3;\n\t\tif ($area->cveentidad5=='0') return 4;\n\t\tif ($area->cveentidad6=='0') return 5;\n\t\tif ($area->cveentidad7=='0') return 6;\n\t}", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function getDirectriz()\n {\n $dir = false;\n if (self::getCod() === '110000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '120000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '210000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '220000') $dir='Ciencias Experimentales';\n if (self::getCod() === '230000') $dir='Ciencias Experimentales';\n if (self::getCod() === '240000') $dir='Ciencias de la Salud';\n if (self::getCod() === '250000') $dir='Ciencias Experimentales';\n if (self::getCod() === '310000') $dir='Ciencias Experimentales';\n if (self::getCod() === '320000') $dir='Ciencias de la Salud';\n if (self::getCod() === '330000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '510000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '520000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '530000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '540000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '550000') $dir='Humanidades';\n if (self::getCod() === '560000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '570000') $dir='Humanidades';\n if (self::getCod() === '580000') $dir='Humanidades';\n if (self::getCod() === '590000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '610000') $dir='Ciencias de la Salud';\n if (self::getCod() === '620000') $dir='Humanidades';\n if (self::getCod() === '630000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '710000') $dir='Humanidades';\n if (self::getCod() === '720000') $dir='Humanidades';\n return $dir;\n }", "public function obterCor($nome){\n $cores = Mage::getModel('cores/cores')->getCollection();\n $cor = $cores->addFieldToFilter('nome', $nome)->getFirstItem();\n\n if($cor->getImagem()){\n return $cor->getImagem();\n }else{\n return $cor->getCor();\n }\n }", "public function getSacadoCidadeUF();", "function get_mecanismos_carga()\n\t{\n\t\t$param = $this->get_definicion_parametros(true);\t\t\n\t\t$tipos = array();\n\t\tif (in_array('carga_metodo', $param, true)) {\n\t\t\t$tipos[] = array('carga_metodo', 'Método de consulta PHP');\n\t\t}\n\t\tif (in_array('carga_lista', $param, true)) {\n\t\t\t$tipos[] = array('carga_lista', 'Lista fija de Opciones');\n\t\t}\t\t\n\t\tif (in_array('carga_sql', $param, true)) {\t\t\n\t\t\t$tipos[] = array('carga_sql', 'Consulta SQL');\n\t\t}\n\t\treturn $tipos;\n\t}", "function difundir() {\n\n // La funcion obtener_frase esta heredado del pariente Orador\n $frase = $this->obtener_frase();\n\n // Convirtir a mayusculos\n $frase_mayusculas = strtoupper($frase);\n\n echo $frase_mayusculas;\n\n }", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}", "static public function nombreLocalidadXPais($idPais, $localidad)\n {\n if ($localidad == 'estado') {\n switch ($idPais) {\n case 8:\n return 'Distrito';\n break;\n case 11:\n return 'Zona Geográfica';\n break;\n case 14:\n return 'Región';\n break;\n case 9:\n return 'Provincia';\n case 19:\n case 20:\n case 21:\n case 23:\n return 'Departamento';\n break;\n case 15:\n case 16:\n case 17:\n case 18:\n return 'Provincia';\n break;\n case 22:\n return 'Zona';\n break;\n case 13:\n return 'Estado';\n break;\n default:\n return 'Estado';\n break;\n }\n }\n if ($localidad == 'ciudad') {\n switch ($idPais) {\n case 8:\n return 'Concelho';\n break;\n case 11:\n return 'Barrio / Partido';\n break;\n case 14:\n return 'Comuna';\n break;\n case 16:\n return 'Distrito';\n break;\n case 15:\n case 17:\n return 'Cantón';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipio';\n break;\n case 21:\n return 'Municipalidad';\n break;\n case 13:\n return 'Cidade';\n break;\n default:\n return 'Ciudad';\n break;\n }\n }\n if ($localidad == 'ciudades') {\n switch ($idPais) {\n case 8:\n return 'Concelhos';\n break;\n case 11:\n case 13:\n return 'Cidade';\n break;\n case 14:\n return 'Comunas';\n break;\n case 16:\n return 'Distritos';\n break;\n case 15:\n case 17:\n return 'Cantónes';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipios';\n break;\n case 21:\n return 'Municipalidades';\n break;\n default:\n return 'Ciudades';\n break;\n }\n }\n if ($localidad == 'urbanizacion') {\n switch ($idPais) {\n case 8:\n return 'Freguesia';\n break;\n case 9:\n case 13:\n return 'Barrio';\n break;\n case 11:\n return 'Localidad';\n break;\n case 17:\n return 'Urbanización o Sector';\n break;\n case 19:\n return 'Zona';\n break;\n default:\n return 'Urbanización';\n break;\n }\n }\n }", "private function trovaRegione($provincia) {\r\n switch ($provincia) {\r\n case 'CHIETI':\r\n case 'PESCARA':\r\n case \"L'AQUILA\":\r\n case 'TERAMO':\r\n $regione = 'ABRUZZO';\r\n break;\r\n case 'MATERA':\r\n case 'POTENZA':\r\n $regione = 'BASILICATA';\r\n break;\r\n case 'CATANZARO':\r\n case 'COSENZA':\r\n case 'CROTONE':\r\n case 'REGGIO DI CALABRIA':\r\n case 'VIBO VALENTIA':\r\n $regione = 'CALABRIA';\r\n break;\r\n case 'AVELLINO':\r\n case 'BENEVENTO':\r\n case 'CASERTA':\r\n case 'NAPOLI':\r\n case 'SALERNO':\r\n $regione = 'CAMPANIA';\r\n break;\r\n case 'BOLOGNA':\r\n case 'FERRARA':\r\n case 'FORLI’-CESENA':\r\n case 'MODENA':\r\n case 'PARMA':\r\n case 'PIACENZA':\r\n case 'RAVENNA':\r\n case \"REGGIO NELL'EMILIA\":\r\n case 'RIMINI':\r\n $regione = 'EMILIA ROMAGNA';\r\n break;\r\n case 'GORIZIA':\r\n case 'PORDENONE':\r\n case 'TRIESTE':\r\n case 'UDINE':\r\n $regione = 'FRIULI VENEZIA GIULIA';\r\n break;\r\n case 'FROSINONE':\r\n case 'LATINA':\r\n case 'RIETI':\r\n case 'ROMA':\r\n case 'VITERBO':\r\n $regione = 'LAZIO';\r\n break;\r\n case 'GENOVA':\r\n case 'IMPERIA':\r\n case 'LA SPEZIA':\r\n case 'SAVONA':\r\n $regione = 'LIGURIA';\r\n break;\r\n case 'BERGAMO':\r\n case 'BRESCIA':\r\n case 'COMO':\r\n case 'CREMONA':\r\n case 'LECCO':\r\n case 'LODI':\r\n case 'MANTOVA':\r\n case 'MILANO':\r\n case 'MONZA E DELLA BRIANZA':\r\n case 'PAVIA':\r\n case 'SONDRIO':\r\n case 'VARESE':\r\n $regione = 'LOMBARDIA';\r\n break;\r\n case 'ANCONA':\r\n case 'ASCOLI PICENO':\r\n case 'FERMO':\r\n case 'MACERATA':\r\n case 'PESARO E URBINO':\r\n $regione = 'MARCHE';\r\n break;\r\n case 'CAMPOBASSO':\r\n case 'ISERNIA':\r\n $regione = 'MOLISE';\r\n break;\r\n case 'ALESSANDRIA':\r\n case 'ASTI':\r\n case 'BIELLA':\r\n case 'CUNEO':\r\n case 'NOVARA':\r\n case 'TORINO':\r\n case 'VERBANO-CUSIO-OSSOLA':\r\n case 'VERCELLI':\r\n $regione = 'PIEMONTE';\r\n break;\r\n case 'BARI':\r\n case 'BARLETTA-ANDRIA-TRANI':\r\n case 'BRINDISI':\r\n case 'FOGGIA':\r\n case 'LECCE':\r\n case 'TARANTO':\r\n $regione = 'PUGLIA';\r\n break;\r\n case 'CAGLIARI':\r\n case 'CARBONIA-IGLESIAS':\r\n case 'MEDIO CAMPIDANO':\r\n case 'NUORO':\r\n case 'OGLIASTRA':\r\n case 'OLBIA-TEMPIO':\r\n case 'ORISTANO':\r\n case 'SASSARI':\r\n $regione = 'SARDEGNA';\r\n break;\r\n case 'AGRIGENTO':\r\n case 'CALTANISSETTA':\r\n case 'CATANIA':\r\n case 'ENNA':\r\n case 'MESSINA':\r\n case 'PALERMO':\r\n case 'RAGUSA':\r\n case 'SIRACUSA':\r\n case 'TRAPANI':\r\n $regione = 'SICILIA';\r\n break;\r\n case 'AREZZO':\r\n case 'FIRENZE':\r\n case 'GROSSETO':\r\n case 'LIVORNO':\r\n case 'LUCCA':\r\n case 'MASSA-CARRARA':\r\n case 'PISA':\r\n case 'PISTOIA':\r\n case 'PRATO':\r\n case 'SIENA':\r\n $regione = 'TOSCANA';\r\n break;\r\n case 'BOLZANO':\r\n case 'TRENTO':\r\n $regione = 'TRENTINO ALTO ADIGE';\r\n break;\r\n case 'PERUGIA':\r\n case 'TERNI':\r\n $regione = 'UMBRIA';\r\n break;\r\n case 'AOSTA':\r\n $regione = \"VALLE D'AOSTA\";\r\n break;\r\n case 'BELLUNO':\r\n case 'PADOVA':\r\n case 'ROVIGO':\r\n case 'TREVISO':\r\n case 'VENEZIA':\r\n case 'VERONA':\r\n case 'VICENZA':\r\n $regione = 'VENETO';\r\n break;\r\n }\r\n return $regione;\r\n }", "protected function mapeoTprop() {\n $clave = '';\n $tipo = $this->propiedad->getId_tipo_prop();\n $subtipo = $this->propiedad->getSubtipo_prop();\n // Country - Barrio Cerrado\n $tipoUbi = $this->tipoUbicacion();\n if ($tipoUbi == 'COUNTRY' || $tipoUbi == strtoupper('Barrio Cerrado')) {\n $clave = 'Countries y Barrios cerrados_';\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas';\n break;\n case 1: // Depto\n $clave.='Departamentos';\n break;\n case 7: // Lote\n $clave.='Terrenos';\n break;\n }\n } else {\n $finder = 0;\n foreach ($this->arrayMapeoTprop as $registro) {\n if (trim($registro['id_tipo_prop']) == (trim($tipo))) {\n if (trim($registro['subtipo_prop']) == (trim($subtipo))) {\n $clave = $registro['clave'];\n $finder = 1;\n break;\n }\n }\n }\n if ($finder == 0) {\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas_Casa';\n break;\n case 1: // Depto\n $clave.='Departamentos_Departamento';\n break;\n\t\t\t\t\tcase 17: //Quinta\n\t\t\t\t\t\t$clave.='Quintas';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6: //Campos y chacras\n\t\t\t\t\tcase 16: //Campos y chacras\n\t\t\t\t\t\t$clave.='Campos y chacras';\n\t\t\t\t\t\tbreak;\n case 19: // Industriales\n $clave.='Galpones, depósitos y edificios industriales';\n break;\n }\n }\n }\n return $clave;\n }", "function get_nombre_dia($dia)\n{\n $nombre = '';\n\n switch ($dia) {\n case '0':\n $nombre = 'Domingo';\n break;\n case '1':\n $nombre = 'Lunes';\n break;\n case '2':\n $nombre = 'Martes';\n break;\n case '3':\n $nombre = 'Miércoles';\n break;\n case '4':\n $nombre = 'Jueves';\n break;\n case '5':\n $nombre = 'Viernes';\n break;\n case '6':\n $nombre = 'Sábado';\n break; \n default:\n $nombre = 'Día no existe';\n break;\n }\n\n return $nombre;\n}", "function getDatosNombre_region()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nombre_region'));\n $oDatosCampo->setEtiqueta(_(\"nombre de la región\"));\n $oDatosCampo->setTipo('texto');\n $oDatosCampo->setArgument(30);\n return $oDatosCampo;\n }", "function getTiposDocumento(){\r\n\t$tipos_documento[\"I\"]\t= \"Investigaci&oacute;n\";\r\n\t$tipos_documento[\"AV\"]\t= \"Archivo vertical\";\r\n\t$tipos_documento[\"AR\"]\t= \"Art&iacute;culo de revisa\";\r\n\t$tipos_documento[\"L\"]\t= \"Libro\";\r\n\t$tipos_documento[\"R\"]\t= \"Revista\";\r\n\t$tipos_documento[\"T\"]\t= \"Tesis\";\r\n\t$tipos_documento[\"D\"]\t= \"Documento\";\t\r\n\t\r\n\treturn $tipos_documento;\r\n}", "function getCanChi($lunar) {\n\t\t$dayName = Qss_Lib_Const::$CAN[($lunar->jd + 9) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->jd+1)%12];\n\t\t$monthName = Qss_Lib_Const::$CAN[($lunar->year*12+$lunar->month+3) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->month+1)%12];\n\t\tif ($lunar->leap == 1) {\n\t\t\t$monthName .= \" (nhuận)\";\n\t\t}\n\t\t$yearName = $this->getYearCanChi($lunar->year);\n\t\treturn array($dayName, $monthName, $yearName);\n\t}", "function CONCEPTO($_ARGS, $_CONCEPTO) {\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodTipoNom = '\".$_ARGS['NOMINA'].\"' AND\r\n\t\t\t\tPeriodo = '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tCodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND\r\n\t\t\t\tCodTipoProceso = '\".$_ARGS['PROCESO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function a_mayusculas($cadena)\n{\n $cadena = strtr(strtoupper($cadena), 'àèìòùáéíóúçñäëïöü', 'ÀÈÌÒÙÁÉÍÓÚÇÑÄËÏÖÜ');\n\n return $cadena;\n}", "function DIA_DE_LA_SEMANA($_FECHA) {\r\n\t// primero creo un array para saber los días de la semana\r\n\t$dias = array(0, 1, 2, 3, 4, 5, 6);\r\n\t$dia = substr($_FECHA, 0, 2);\r\n\t$mes = substr($_FECHA, 3, 2);\r\n\t$anio = substr($_FECHA, 6, 4);\r\n\t\r\n\t// en la siguiente instrucción $pru toma el día de la semana, lunes, martes,\r\n\t$pru = strtoupper($dias[intval((date(\"w\",mktime(0,0,0,$mes,$dia,$anio))))]);\r\n\treturn $pru;\r\n}", "function ULTIMO_CONCEPTO($_CONCEPTO) {\r\n\tglobal $_ARGS;\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tPeriodo < '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\r\n\t\t\tORDER BY Periodo DESC\r\n\t\t\tLIMIT 0, 1\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\techo str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\techo \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\techo \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t}", "function mes_letra($mes){\n\t$mesletra=\"\";\n\tswitch ($mes) {\n\t\tcase '01':\n\t\t\t$mesletra='Enero';\n\t\t\tbreak;\n\t\tcase '02':\n\t\t\t$mesletra='Febrero';\n\t\t\tbreak;\n\t\tcase '03':\n\t\t\t$mesletra='Marzo';\n\t\t\tbreak;\n\t\tcase '04':\n\t\t\t$mesletra='Abril';\n\t\t\tbreak;\n\t\tcase '05':\n\t\t\t$mesletra='Mayo';\n\t\t\tbreak;\n\t\tcase '06':\n\t\t\t$mesletra='Junio';\n\t\t\tbreak;\n\t\tcase '07':\n\t\t\t$mesletra='Julio';\n\t\t\tbreak;\n\t\tcase '08':\n\t\t\t$mesletra='Agosto';\n\t\t\tbreak;\n\t\tcase '09':\n\t\t\t$mesletra='Septimbre';\n\t\t\tbreak;\n\t\tcase '10':\n\t\t\t$mesletra='Octubre';\n\t\t\tbreak;\n\t\tcase '11':\n\t\t\t$mesletra='Noviembre';\n\t\t\tbreak;\n\t\tcase '12':\n\t\t\t$mesletra='Diciembre';\n\t\t\tbreak;\n\t\t}\n\treturn $mesletra;\n}", "function getNombreTablaTrazadora($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $tabla = \"inmunizacion.prestaciones_inmu\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $tabla = \"trazadoras.nino_new\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $tabla = \"trazadoras.adolecentes\";\r\n break;\r\n case 'PARTO':\r\n $tabla = \"trazadoras.partos\";\r\n break;\r\n case 'EMB':\r\n $tabla = \"trazadoras.embarazadas\";\r\n break;\r\n case 'ADULTO':\r\n $tabla = \"trazadoras.adultos\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $tabla = \"trazadoras.seguimiento_remediar\";\r\n break;\r\n case 'CLASIFICACION':\r\n $tabla = \"trazadoras.clasificacion_remediar2\";\r\n break;\r\n case 'TAL':\r\n $tabla = \"trazadoras.tal\";\r\n break;\r\n }\r\n return $tabla;\r\n}", "function get_dias_lectura($dias)\n{\n $vector = explode(';', $dias);\n\n for ($i=0; $i < count($vector); $i++) { \n $vector[$i] = get_nombre_dia($vector[$i]);\n }\n\n return implode(', ', $vector);\n \n}", "public function obtener_colectivo();", "public function\tnomegiorno($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"w\",$data);\n\t\t$giorni = array( \"Domenica\", \"Luned&igrave;\", \"Marted&igrave;\", \"Mercoled&igrave;\", \"Gioved&igrave;\", \"Venerd&igrave;\", \"Sabato\" );\n\t\treturn $giorni[$data];\n\t}", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "public function categoriaInactivos(){\n if($this->nolaboral->V21_M >= 1)\n {\n return 1;\n }\n if($this->nolaboral->V8_M == 1 && $this->nolaboral->V9_M == 1 && $this->nolaboral->V10_M == 1)\n {\n return 2;\n }\n if($this->caracteristicas->CH10 == 1 && $this->PP01E == 2)\n {\n return 3;\n }\n if($this->PP01E == 2)\n {\n return 4;\n }\n if($this->caracteristicas->CH06 < 6)\n {\n return 5;\n }\n if($this->discapacidad())\n {\n return 6;\n }\n\n}", "Function traduz_mes($english_mes)\n{\n switch($english_mes)\n {\n case \"Jan\":\n $portuguese_mes = \"Janeiro\";\n break;\n case \"Feb\":\n $portuguese_mes = \"Fevereiro\";\n break;\n case \"Mar\":\n $portuguese_mes = \"Marco\";\n break;\n case \"Apr\":\n $portuguese_mes = \"Abril\";\n break;\n case \"May\":\n $portuguese_mes = \"Maio\";\n break;\n case \"Jun\":\n $portuguese_mes = \"Junho\";\n break;\n case \"Jul\":\n $portuguese_mes = \"Julho\";\n break;\n case \"Aug\":\n $portuguese_mes = \"Agosto\";\n break;\n case \"Sep\":\n $portuguese_mes = \"Setembro\";\n break;\n case \"Oct\":\n $portuguese_mes = \"Outubro\";\n break;\n case \"Nov\":\n $portuguese_mes = \"Novembro\";\n break; \n case \"Dec\":\n $portuguese_mes = \"Dezembro\";\n break;\n }\n return ($portuguese_mes);\n}", "function cita_biblica($objeto)\n{\n return $objeto->libro->nombre . ' ' . $objeto->numero_capitulo . ': ' . $objeto->numero_versiculo;\n}", "public function select($perifericos);", "function tep_get_torihiki_houhou()\n{\n $types = $return = array();\n //DS_TORIHIKI_HOUHOU\n $types = explode(\"\\n\", DS_TORIHIKI_HOUHOU);\n if ($types) {\n foreach($types as $type){\n $atype = explode('//', $type);\n if (isset($atype[0]) && strlen($atype[0]) && isset($atype[1]) && strlen($atype[1])) {\n $return[$atype[0]] = explode('||', $atype[1]);\n }\n }\n }\n return $return;\n}", "function ambil_soal() { \n $tampil = $this->db->query(\"SELECT * FROM IKD.IKD_D_SOAL_QUISIONER ORDER BY KD_SOAL ASC\")->result_array();\n\t\treturn $tampil;\n }", "function titulo_janela() {\n\n\t$sql_comando = \"SELECT * FROM ce_config WHERE Comando='Titulo_Janela'\";\n\t$result_comando = mysql_query($sql_comando);\n\t$linha_comando = mysql_fetch_assoc($result_comando);\n\treturn $linha_comando[\"exec\"];\n}", "function limpiar($cadena){\n\t\t$cadena=str_replace(\"_\",\" \",$cadena);//alt + 15\n\t\t$cadena=str_replace(\"|\",\"=\",$cadena);//alt + 10\n\t\treturn $cadena=str_replace(\"*\",\"'\",$cadena);//alt + 16\n\t}", "public function abono();", "function data_extenso()\r\n{\r\n\tglobal $semana;\r\n\tglobal $mes;\t\r\n\t$diasemana = date('w');\r\n\t$diames = date('j');\r\n\t$numeromes = date('n');\r\n\t$ano = date('Y');\t\r\n\treturn $semana[ $diasemana ] . ', ' .\r\n\t\t $diames . ' de ' . \r\n\t\t $mes[ $numeromes ] . ' de ' . \r\n\t\t $ano;\t\t \r\n}", "function dia ($hra){\r\t\tif ($hra==1 || $hra==7 || $hra==13 || $hra==19 || $hra==25 || $hra==31 || $hra==37 || $hra==43 || $hra==49)\r\t\t{\r\t\treturn 'Lunes';\t\r\t\t}else {\r\t\t\tif ($hra==2 || $hra==8 || $hra==14 || $hra==20 || $hra==26 || $hra==32 || $hra==38 || $hra==44 || $hra==50)\r\t\t{\r\t\treturn 'Martes';\t\r\t\t}else {\r\t\t\tif ($hra==3 || $hra==9 || $hra==15 || $hra==21 || $hra==27 || $hra==33 || $hra==39 || $hra==45 || $hra==51)\r\t\t{\r\t\treturn 'Miercoles';\t\r\t\t}else {\r\t\t\tif ($hra==4 || $hra==10 || $hra==16 || $hra==22 || $hra==28 || $hra==34 || $hra==340 || $hra==46 || $hra==52)\r\t\t{\r\t\treturn 'Jueves';\t\r\t\t}else {\r\t\t\tif ($hra==5 || $hra==11 || $hra==17 || $hra==23 || $hra==29 || $hra==35 || $hra==41 || $hra==47 || $hra==53)\r\t\t{\r\t\treturn 'Viernes';\t\r\t\t}else {\r\t\t\tif ($hra==6 || $hra==12 || $hra==18 || $hra==24 || $hra==30 || $hra==36 || $hra==42 || $hra==48 || $hra==54)\r\t\t{\r\t\treturn 'Sabado';\t\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return $v[$i];\r\n\t\t$i++;\r\n\t}\r\n}", "function ricercaOrdinamento($frasi)\n {\n $parole = array();\n\n foreach ($frasi as $frase)\n {\n $frase = preg_replace(\"/[^a-zA-Z\\ ]/\", \"\", $frase);\n\n $parole = array_merge($parole, explode(\" \", $frase));\n }\n\n $parole = array_count_values(array_map(\"strtolower\", $parole));\n arsort($parole);\n\n return rimozioneNonParole($parole);\n }", "function getChambrehospi(){\n return $this->chambre;\n }", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\t\t\t$label;\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\t$label = str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\t$label .= \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\t$label .= \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $label;\n\t\t}", "function fncValidaDI_26($IdEstado, $GestorErr, $NumReg, $Campo)\n{\n\t \n\t$Bandera = CERO;\n\n\t$DI_26 = \"(26)Municipio\";\n\t$DI_26_ErrTam = \"Tamaño de campo Municipio debe ser a 3 Dígitos\";\n\t$DI_26_Mpio \t = \"El Municipio no es parte del catalogo de DGRH\";\n\t\n\t// agregar catalogo de Municpios\n\nif($IdEstado == \"01\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"01\")\n\nif($IdEstado == \"02\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\");\n} //fin de if($IdEstado == \"02\")\n\nif($IdEstado == \"03\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"008\",\"009\");\n} //fin de if($IdEstado == \"03\")\n\nif($IdEstado == \"04\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"04\")\n\nif($IdEstado == \"05\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\");\n} //fin de if($IdEstado == \"05\")\n\nif($IdEstado == \"06\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"06\")\n\nif($IdEstado == \"07\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\");\n} //fin de if($IdEstado == \"07\")\n\nif($IdEstado == \"08\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\");\n} //fin de if($IdEstado == \"08\")\n\nif($IdEstado == \"09\"){\n\t$Mpio = array(\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"09\")\n\nif($IdEstado == \"10\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\");\n} //fin de if($IdEstado == \"10\")\n\nif($IdEstado == \"11\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\");\n} //fin de if($IdEstado == \"11\")\n\nif($IdEstado == \"12\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\");\n} //fin de if($IdEstado == \"12\")\n\nif($IdEstado == \"13\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\");\n} //fin de if($IdEstado == \"13\")\n\nif($IdEstado == \"14\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"14\")\n\nif($IdEstado == \"15\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"15\")\n\nif($IdEstado == \"16\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\");\n} //fin de if($IdEstado == \"16\")\n\nif($IdEstado == \"17\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\");\n} //fin de if($IdEstado == \"17\")\n\nif($IdEstado == \"18\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\");\n} //fin de if($IdEstado == \"18\")\n\nif($IdEstado == \"19\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\");\n} //fin de if($IdEstado == \"19\")\n\nif($IdEstado == \"20\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\",\"218\",\"219\",\"220\",\"221\",\"222\",\"223\",\"224\",\"225\",\"226\",\"227\",\"228\",\"229\",\"230\",\"231\",\"232\",\"233\",\"234\",\"235\",\"236\",\"237\",\"238\",\"239\",\"240\",\"241\",\"242\",\"243\",\"244\",\"245\",\"246\",\"247\",\"248\",\"249\",\"250\",\"251\",\"252\",\"253\",\"254\",\"255\",\"256\",\"257\",\"258\",\"259\",\"260\",\"261\",\"262\",\"263\",\"264\",\"265\",\"266\",\"267\",\"268\",\"269\",\"270\",\"271\",\"272\",\"273\",\"274\",\"275\",\"276\",\"277\",\"278\",\"279\",\"280\",\"281\",\"282\",\"283\",\"284\",\"285\",\"286\",\"287\",\"288\",\"289\",\"290\",\"291\",\"292\",\"293\",\"294\",\"295\",\"296\",\"297\",\"298\",\"299\",\"300\",\"301\",\"302\",\"303\",\"304\",\"305\",\"306\",\"307\",\"308\",\"309\",\"310\",\"311\",\"312\",\"313\",\"314\",\"315\",\"316\",\"317\",\"318\",\"319\",\"320\",\"321\",\"322\",\"323\",\"324\",\"325\",\"326\",\"327\",\"328\",\"329\",\"330\",\"331\",\"332\",\"333\",\"334\",\"335\",\"336\",\"337\",\"338\",\"339\",\"340\",\"341\",\"342\",\"343\",\"344\",\"345\",\"346\",\"347\",\"348\",\"349\",\"350\",\"351\",\"352\",\"353\",\"354\",\"355\",\"356\",\"357\",\"358\",\"359\",\"360\",\"361\",\"362\",\"363\",\"364\",\"365\",\"366\",\"367\",\"368\",\"369\",\"370\",\"371\",\"372\",\"373\",\"374\",\"375\",\"376\",\"377\",\"378\",\"379\",\"380\",\"381\",\"382\",\"383\",\"384\",\"385\",\"386\",\"387\",\"388\",\"389\",\"390\",\"391\",\"392\",\"393\",\"394\",\"395\",\"396\",\"397\",\"398\",\"399\",\"400\",\"401\",\"402\",\"403\",\"404\",\"405\",\"406\",\"407\",\"408\",\"409\",\"410\",\"411\",\"412\",\"413\",\"414\",\"415\",\"416\",\"417\",\"418\",\"419\",\"420\",\"421\",\"422\",\"423\",\"424\",\"425\",\"426\",\"427\",\"428\",\"429\",\"430\",\"431\",\"432\",\"433\",\"434\",\"435\",\"436\",\"437\",\"438\",\"439\",\"440\",\"441\",\"442\",\"443\",\"444\",\"445\",\"446\",\"447\",\"448\",\"449\",\"450\",\"451\",\"452\",\"453\",\"454\",\"455\",\"456\",\"457\",\"458\",\"459\",\"460\",\"461\",\"462\",\"463\",\"464\",\"465\",\"466\",\"467\",\"468\",\"469\",\"470\",\"471\",\"472\",\"473\",\"474\",\"475\",\"476\",\"477\",\"478\",\"479\",\"480\",\"481\",\"482\",\"483\",\"484\",\"485\",\"486\",\"487\",\"488\",\"489\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"499\",\"500\",\"501\",\"502\",\"503\",\"504\",\"505\",\"506\",\"507\",\"508\",\"509\",\"510\",\"511\",\"512\",\"513\",\"514\",\"515\",\"516\",\"517\",\"518\",\"519\",\"520\",\"521\",\"522\",\"523\",\"524\",\"525\",\"526\",\"527\",\"528\",\"529\",\"530\",\"531\",\"532\",\"533\",\"534\",\"535\",\"536\",\"537\",\"538\",\"539\",\"540\",\"541\",\"542\",\"543\",\"544\",\"545\",\"546\",\"547\",\"548\",\"549\",\"550\",\"551\",\"552\",\"553\",\"554\",\"555\",\"556\",\"557\",\"558\",\"559\",\"560\",\"561\",\"562\",\"563\",\"564\",\"565\",\"566\",\"567\",\"568\",\"569\",\"570\");\n} //fin de if($IdEstado == \"20\")\n\nif($IdEstado == \"21\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\");\n} //fin de if($IdEstado == \"21\")\n\nif($IdEstado == \"22\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"22\")\n\nif($IdEstado == \"23\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"23\")\n\nif($IdEstado == \"24\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"24\")\n\nif($IdEstado == \"25\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"25\")\n\nif($IdEstado == \"26\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\");\n} //fin de if($IdEstado == \"26\")\n\nif($IdEstado == \"27\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"27\")\n\nif($IdEstado == \"28\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\");\n} //fin de if($IdEstado == \"28\")\n\nif($IdEstado == \"29\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\");\n} //fin de if($IdEstado == \"29\")\n\nif($IdEstado == \"30\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\");\n} //fin de if($IdEstado == \"30\")\n\nif($IdEstado == \"31\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\");\n} //fin de if($IdEstado == \"31\")\n\nif($IdEstado == \"32\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"32\")\n\n\n\n\n\t$LocCampo =$Campo;\n\tif (strlen($LocCampo) == TRES)\n\t{\n\t\tif(!in_array($LocCampo,$Mpio))\n\t\t{\n\t\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_Mpio.\"|\\n\";\n\t\t\tfwrite($GestorErr, $Error);\n\t\t\t$Bandera = UNO;\n\t\t}\t\n\t}\n\telse\n\t{\n\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_ErrTam.\"|\\n\";\n\t\tfwrite($GestorErr, $Error);\n\t\t$Bandera = UNO;\n\t}\n\treturn $Bandera;\n}", "function palabraDescubierta($coleccionLetras){\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n}", "function localidadConsultarNombreTec($criterio) {\n\n\t$query = \"SELECT localidad FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad'];\n}", "function stringLetrasDescubiertas($coleccionLetras){\n $pal = \"\";\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n \n return $pal;\n}", "function get_guias_nominadas(){\n\t\t$conect=ms_conect_server();\t\t\n\t\t$sQuery=\"SELECT * FROM nomina_detalle WHERE 1=1 ORDER BY id_guia\";\n\t\t\n\t\t//echo($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value; \n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\t\n}", "function obtenerCadenaCodigos($estudiantes){\n $cadena_codigos='';\n foreach ($estudiantes as $key => $row) {\n if(!$cadena_codigos){\n $cadena_codigos = $row['COD_ESTUDIANTE'];\n }else{\n $cadena_codigos .= \",\".$row['COD_ESTUDIANTE'];\n }\n }\n return $cadena_codigos;\n }", "function __($cadena) {\n return idioma::traducir($cadena);\n}", "function tipo_viajes($t = 0){\n\t\t$tipo_viajes = array(\"<span class=\\\"texto-claro\\\">No Capturado</span>\", \"Técnico\", \"Alto Nivel\");\n\t\treturn $tipo_viajes[$t];\n\t}", "function todas($suscriptor, $orden) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * FROM `facturacion_lecturas` WHERE `suscriptor` ='\" . $suscriptor . \"' ORDER BY `fecha` \" . strtoupper($orden) . \";\";\n $consulta = $db->sql_query($sql);\n $filas = array();\n while ($fila = $db->sql_fetchrow($consulta)) {\n array_push($filas, $fila);\n }\n return($filas);\n }", "function geef_kolommen($categorie) {\n\t\tglobal $pdo;\n\t\t\n\t\t$tmp = array();\n\t\t\n\t\t$stmt = $pdo->prepare(\"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'auto_mate' AND `TABLE_NAME` = ?\");\n\t\t$stmt->execute(array($categorie));\n\t\t\n\t\t$rij = $stmt->fetchAll();\n\t\t\n\t\tforeach($rij as $kolom) {\n\t\t\t$tmp[] = $kolom[\"COLUMN_NAME\"];\n\t\t}\n\t\n\t\treturn $tmp;\n\t}", "public function\tnomemese($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"n\",$data)-1;\n\t\t$mesi = array( \"Gennaio\", \"Febbraio\", \"Marzo\", \"Aprile\", \"Maggio\", \"Giugno\", \"Luglio\", \"Agosto\", \"Settembre\", \"Ottobre\", \"Novembre\", \"Dicembre\" );\n\t\treturn $mesi[$data];\n\t}", "function grafico_1_2( $desde, $hasta, $ua ){\n\t// aclarar al cliente que debe setear campos bien definidos y NO PERMITIR AMBIGUEDADES\n\t\n\t$query = \"select actor.nombre, actor.apellido, actor.id_campo, count(noticiasactor.id_actor) as cantidad from noticiascliente \"\n\t\t. \"inner join noticiasactor on noticiascliente.id_noticia = noticiasactor.id_noticia \"\n\t\t. \"inner join noticias on noticiasactor.id_noticia = noticias.id \"\n\t\t. \"inner join actor on noticiasactor.id_actor = actor.id \"\n\t\t. \"where \"\n\t\t\t. \"noticiascliente.id_cliente = \" . $ua . \" and \"\n\t\t\t. \"noticiascliente.elim = 0 and \"\n\t\t\t. \"noticias.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59' \"\n\t\t\t// SOLO QUIENES TIENEN 3 Y 4 COMO CAMPO\n\t\t\t. \" and ( actor.id_campo like '%3%' or actor.id_campo like '%4%' ) \"\n\t\t. \"group by noticiasactor.id_actor order by cantidad desc\";\n\t$main = R::getAll($query);\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\n\t// var_dump($main);\n\t$tabla = [];\n\t// unidad de analisis, campo, actor, cantidad de menciones\n\t$i = -1;\n\tforeach($main as $k=>$v){\n\t\t// por ahora solo considero los dos posibles campos\n\t\t$tabla[ ++$i ] = [\n\t\t\t'ua' => $ua_nombre,\n\t\t\t'campo' => ( strpos( $v['id_campo'], '3' ) !== false ) ? 'oposicion' : 'oficialismo',\n\t\t\t'actor' => $v['apellido'] . ' ' . $v['nombre'],\n\t\t\t'cantidad' => $v['cantidad']\n\t\t\t];\n\t}\n\t// var_dump($tabla);\n\t\n\t// grafico\n\t$oficialismo = new StdClass(); // objeto vacio\n\t$oficialismo->name = 'Oficialismo';\n\t$oficialismo->rank = 0;\n\t$oficialismo->weight = 'Yellow';\n\t$oficialismo->id = 1;\n\t$oficialismo->children = [];\n\t\n\t$oposicion = new StdClass(); // objeto vacio\n\t$oposicion->name = 'Oposicion';\n\t$oposicion->rank = 0;\n\t$oposicion->weight = 'LightBlue';\n\t$oposicion->id = 1;\n\t$oposicion->children = [];\n\t\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Campos';\n\t$objeto->rank = 0;\n\t$objeto->weight = 'Gray';\n\t$objeto->id = 1;\n\t$objeto->children = [ $oficialismo, $oposicion ];\n\t\n\t$i_of = 0;\n\t$i_op = 0;\n\t\n\tforeach($tabla as $v){\n\t\t$sub = new StdClass(); // objeto vacio\n\t\t$sub->name = $v['actor'] . ' (' . $v['cantidad'] . ')';\n\t\t$sub->rank = $v['cantidad'];\n\t\t// $sub->weight = 0;\n\t\t$sub->cantidad = $v['cantidad'];\n\t\t$sub->id = 1;\n\t\t$sub->children = [ ];\n\t\tif($v['campo'] == 'oposicion'){\n\t\t\t$i_op += 1;\n\t\t\t$sub->weight = 'Blue';\n\t\t\t$oposicion->children[] = $sub;\n\t\t}\n\t\telse{ \n\t\t\t$i_of += 1;\n\t\t\t$sub->weight = 'White';\n\t\t\t$oficialismo->children[] = $sub;\n\t\t}\n\t}\n\t\n\t$oposicion->rank = $i_op;\n\t$oficialismo->rank = $i_of;\n\t\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto\n\t\t// ,'temas' => $temas\n\t\t];\n\t\n}", "public function obtenerViajesplusAbonados();", "function defineCategoriaCompetidor(string $nome, string $idade) : ?string\n{\n $categorias = ['infantil', 'adulto', 'adolescente' ];\n\n if (validaNome($nome) && validaIdade($idade))\n {\n removerMensagemErro();\n if ($idade >= 0 && $idade <= 12)\n {\n foreach ($categorias as $keys => $value)\n {\n if($value == 'infantil')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n elseif ($idade >= 13 && $idade <= 17)\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adolescente')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n else\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adulto')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n\n }\n removerMensagemSucesso();\n return obterMensagemErro();\n}", "function Mesabreviado($varmesabrev)\n{\n\tif ($varmesabrev == 1) return \"JAN\";\n\tif ($varmesabrev == 2) return \"FEB\";\n\tif ($varmesabrev == 3) return \"MAR\";\n\tif ($varmesabrev == 4) return \"APR\";\n\tif ($varmesabrev == 5) return \"MAJ\";\n\tif ($varmesabrev == 6) return \"JUN\";\n\tif ($varmesabrev == 7) return \"JUL\";\n\tif ($varmesabrev == 8) return \"AUG\";\n\tif ($varmesabrev == 9) return \"SEP\";\n\tif ($varmesabrev == 10) return \"OCT\";\n\tif ($varmesabrev == 11) return \"NOV\";\n\tif ($varmesabrev == 12) return \"DEC\";\n}", "function NUMERO_LUNES($_ARGS) {\r\n\tlist($ap, $mp)=SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t$dias_del_mes = DIAS_DEL_MES($periodo_inicio);\r\n\t\r\n\tif (($primer_dia_semana == 0 || $primer_dia_semana == 6) && $dias_del_mes == 31) $lunes = 5;\r\n\telseif ($primer_dia_semana == 1 && ($dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telseif ($primer_dia_semana == 2 && ($dias_del_mes == 29 || $dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telse $lunes = 4;\r\n\t\r\n\treturn $lunes;\r\n}", "function pegaEstados()\n {\n $lista_estados = array(\n 'ac' => 'Acre',\n 'al' => 'Alagoas',\n 'ap' => 'Amapá',\n 'am' => 'Amazonas',\n 'ba' => 'Bahia',\n 'ce' => 'Ceará',\n 'df' => 'Distrito Federal',\n 'es' => 'Espirito Santo',\n 'go' => 'Goiás',\n 'ma' => 'Maranhão',\n 'ms' => 'Mato Grosso do Sul',\n 'mt' => 'Mato Grosso',\n 'mg' => 'Minas Gerais',\n 'pa' => 'Pará',\n 'pb' => 'Paraíba',\n 'pr' => 'Paraná',\n 'pe' => 'Pernanbuco',\n 'pi' => 'Piauí',\n 'rj' => 'Rio de Janeiro',\n 'rn' => 'Rio Grande do Norte',\n 'rs' => 'Rio Grande do Sul',\n 'ro' => 'Rondônia',\n 'rr' => 'Roraima',\n 'sc' => 'Santa Catarina',\n 'sp' => 'São Paulo',\n 'se' => 'Sergipe',\n 'to' => 'Tocantis'\n );\n\n\n return $lista_estados;\n }", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return ($v[$i]);\r\n\t\t$i++;\r\n\t}\r\n}", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "function get_centro_costo($codigo,$nombre = '',$situacion = '',$habiles = '') {\n\t\t$nombre = trim($nombre);\n\t\t\n $sql= \"SELECT * \";\n\t\t$sql.= \" FROM sis_centro_costo\";\n\t\t$sql.= \" WHERE 1 = 1\";\n\t\tif(strlen($codigo)>0) { \n\t\t\t$sql.= \" AND cc_codigo = $codigo\"; \n\t\t}\n\t\tif(strlen($nombre)>0) { \n\t\t\t$sql.= \" AND cc_nombre like '%$nombre%'\"; \n\t\t}\n\t\tif(strlen($situacion)>0) { \n\t\t\t$sql.= \" AND cc_situacion = $situacion\"; \n\t\t}\n if(strlen($habiles)>0) { \n\t\t\t$sql.= \" AND cc_codigo != 0\"; \n\t\t}\n\t\t$sql.= \" ORDER BY cc_codigo ASC, cc_situacion DESC\";\n\t\t\n\t\t$result = $this->exec_query($sql);\n\t\t//echo $sql;\n\t\treturn $result;\n\n\t}", "public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}", "function CampoEnum($tabla,$campo,$Comentario,$valor=\"\"){\n\t\t$sql = \"DESCRIBE $tabla $campo\";\n\t\t$result = mysql_query($sql);\n\t\techo \"\\t<tr><td>$Comentario</td>\\n\";\n\t\twhile ($ligne = mysql_fetch_array($result)) {\n\t\t\textract($ligne, EXTR_PREFIX_ALL, \"IN\");\n\t\t\tif (substr($IN_Type,0,4)=='enum'){\n\t\t\t\t$liste = substr($IN_Type,5,strlen($IN_Type));\n\t\t\t\t$liste = substr($liste,0,(strlen($liste)-2));\n\t\t\t\t$enums = explode(',',$liste);\n\t\t\t\tif (sizeof($enums)>0){\n\t\t\t\t\t\n\t\t\t\t\techo \"\\t<td><select name='$campo' >\\n\";\n\t\t\t\t\tfor ($i=0; $i<sizeof($enums);$i++){\n\t\t\t\t\t\t$elem = trim(strtr($enums[$i],\"'\",\" \"));\n\t\t\t\t\t\tif(trim($elem)==trim($valor))$seleccionar=\"selected\";\n\t\t\t\t\t \telse $seleccionar=\"\";\n\t\t\t\t\t\techo \"\\t\\t<option $seleccionar value='\".$elem.\"'>\".$elem.\"</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"\\t</select>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"\\t</td></tr>\\n\";\n\t}", "function NUMERO_LUNES_FECHA($_ARGS) {\r\n\t$_FECHA_EGRESO = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif (ESTADO($_ARGS) == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['HASTA']) list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\telse list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']);\r\n\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t} else {\r\n\t\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mi-$ai\";\t$diai = (int) $di;\r\n\t\t\t\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_FECHA_EGRESO);\r\n\t\t\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t} else {\t\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mp-$ap\";\t$diai = (int) $di;\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$lunes = 0;\r\n\tfor ($dia=$dia_inicio; $dia<=$dia_fin; $dia++) {\r\n\t\tif ($dia_semana == 7) $dia_semana = 0;\r\n\t\tif ($dia_semana == 1) $lunes++;\r\n\t\t$dia_semana++;\r\n\t}\r\n\treturn $lunes;\r\n}", "private function obtenerIdioma($idioma){\n\t\tif (strpos($idioma, \"Español Latino\") !== false) {\n\t\t\treturn \"ESPL\";\n\t\t} else if(strpos($idioma, \"Español Castellano\") !== false){\n\t\t\treturn \"ESP\";\n\t\t} else if(strpos($idioma, \"Ingles\") !== false){\n\t\t\treturn \"ENG\";\n\t\t} else if(strpos($idioma, \"VOSE\") !== false) {\n\t\t\treturn \"VOSE\";\t\n\t\t}\n\t\t\n\t\treturn \"-\";\n\t}", "function Geral() {\r\n extract($GLOBALS);\r\n if ($P1==1 && $O=='I' &&f($RS_Menu,'envio_inclusao')=='S') {\r\n // Recupera a chave do trâmite de cadastramento\r\n $sql = new db_getTramiteList; $RS = $sql->getInstanceOf($dbms,$w_menu,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc');\r\n foreach($RS as $row) { \r\n $w_tramite = f($row,'sq_siw_tramite'); \r\n break; \r\n }\r\n \r\n $w_envio_inclusao = 'S';\r\n } else {\r\n $w_envio_inclusao = 'N';\r\n }\r\n if ($SG=='SRTRANSP') {\r\n include_once('transporte_gerais.php');\r\n } elseif ($SG=='SRSOLCEL') {\r\n include_once('celular_gerais.php');\r\n } else {\r\n include_once('geral_gerais.php');\r\n }\r\n}", "function str_oracion($cadena)\n{\n $palabras = explode('_', $cadena);\n $oracion = '';\n for($i=0; $i < count($palabras) ; $i++){\n if($i == 0){\n $palabras[$i] = ucfirst($palabras[$i]);\n }\n $oracion = $oracion.' '.$palabras[$i];\n }\n return $oracion;\n}", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "function tipo_locazione($id_tipo_locazione=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\tif ($id_tipo_locazione==\"all\") {\n\t\treturn \"Tutti gli Immobili\";\n\t}\n\t$q=\"select * from tipo_locazione where id_tipo_locazione = $id_tipo_locazione\";\n\t$r=$db->query($q);\n\tif (!$r) {\n\t\treturn \"Dato Assente\";\n\t}else{\n\t\t$ro= mysql_fetch_array($r);\n\t\treturn $ro['nome'];\n\t}\n}", "public function getLinha();", "protected function campos($coluna, $itens)\r\n {\r\n return $itens[$coluna];\r\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "protected function getColunas() \r\n\t{\r\n\t\treturn $this->aColunas;\r\n\t}", "function listar_areas_curriculares() {\n\t\t$query = \"SELECT material_area_curricular.*\n\t\tFROM material_area_curricular\n\t\tORDER BY orden_ac asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function localidadConsultarNombre($criterio) {\n\n\t$query = \"SELECT localidad_nombre FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad_nombre'];\n}", "function string_mes ($mes) {\n\t\n\tswitch ($mes) {\n case 1:\n return \"janeiro\";\n break;\n case 2:\n return \"fevereiro\";\n break;\n case 3:\n return \"mar&ccedil;o\";\n break;\n case 4:\n return \"abril\";\n break;\n case 5:\n return \"maio\";\n break;\n case 6:\n return \"junho\";\n break;\n case 7:\n return \"julho\";\n break;\n case 8:\n return \"agosto\";\n break;\n case 9:\n return \"setembro\";\n break;\n case 10:\n return \"outubro\";\n break;\n case 11:\n return \"novembro\";\n break;\n case 12:\n return \"dezembro\";\n break;\n\t} //End IF switch\n}", "function agrega_emergencia_ctraslado (\n $_fecha,$_telefono,\n $_plan,$_horallam,\n $_socio,$_nombre,\n $_tiposocio,$_edad,$_sexo,\n $_identificacion,$_documento,\n $_calle,$_numero,\n $_piso,$_depto,\n $_casa,$_monoblok,\n $_barrio,$_entre1,\n $_entre2,$_localidad,\n $_referencia,$_zona,\n $_motivo1,\n $_color,\n $_observa1,$_observa2,\n $_opedesp ,\n\t\t\t\t\t\t\t$_nosocio1 , $_noedad1 , $_nosexo1, $_noiden1 , $_nodocum1 ,\n\t\t\t\t\t\t\t$_nosocio2 , $_noedad2 , $_nosexo2, $_noiden2 , $_nodocum2 ,\n\t\t\t\t\t\t\t$_nosocio3 , $_noedad3 , $_nosexo3, $_noiden3 , $_nodocum3 ,\n\t\t\t\t\t\t\t$_nosocio4 , $_noedad4 , $_nosexo4, $_noiden4 , $_nodocum4 ,\n\t\t\t\t\t\t\t$_nosocio5 , $_noedad5 , $_nosexo5, $_noiden5 , $_nodocum5 ,\n $_bandera_nosocio1 ,$_bandera_nosocio2 ,$_bandera_nosocio3 ,$_bandera_nosocio4 ,\n\t\t\t\t\t\t\t$_bandera_nosocio5 \n )\n{\n $moti_explode ['0'] = substr($_motivo1, 0, 1);\n $moti_explode ['1'] = substr($_motivo1, 1, 2);\n\n // CALCULO DE FECHA Y DIA EN QUE SE MUESTRA EL TRASLADO EN PANTALLA\n $fecha_aux = explode (\".\" ,$_fecha );\n $hora_aux = explode (\":\" ,$_horallam);\n\n $_dia_tr =$fecha_aux[2];\n $_mes_tr =$fecha_aux[1];\n $_anio_tr =$fecha_aux[0];\n $_hora_tr =$hora_aux[0];\n $_min_tr =$hora_aux[1];\n $_param_tr =12; // parametro para mostrar en pantalla\n \n $traslado_aux = restaTimestamp ($_dia_tr , $_mes_tr, $_anio_tr , $_hora_tr , $_min_tr , $_param_tr);\n //***********************************************************\n $_plan = $_plan + 0;\n $insert_atencion = '\n insert into atenciones_temp\n (fecha,telefono,plan,\n horallam,socio,\n nombre,tiposocio,\n edad,sexo,\n identificacion,documento,\n calle,numero,\n piso,depto,casa,\n monoblok,barrio,\n entre1,entre2,\n localidad,referencia,\n zona,motivo1,\n motivo2,\n color,observa1,\n observa2,operec,traslado_aux ,fechallam)\n\n values\n\n (\n \"'.$_fecha.'\" , \"'.$_telefono.'\" , \"'.$_plan.'\" ,\n \"'.$_horallam.'\",\"'.$_socio.'\",\n \"'.utf8_decode($_nombre).'\",\"'.$_tiposocio.'\",\n \"'.$_edad.'\",\"'.$_sexo.'\",\n \"'.utf8_decode($_identificacion).'\",\"'.$_documento.'\",\n \"'.utf8_decode($_calle).'\",\"'.utf8_decode($_numero).'\",\n \"'.utf8_decode($_piso).'\",\"'.utf8_decode($_depto).'\",\n \"'.utf8_decode($_casa).'\",\"'.utf8_decode($_monoblok).'\",\n \"'.utf8_decode($_barrio).'\",\"'.utf8_decode($_entre1).'\",\n \"'.utf8_decode($_entre2).'\",\"'.utf8_decode($_localidad).'\",\n \"'.utf8_decode($_referencia).'\",\"'.$_zona.'\",\n '.$moti_explode[0].',\n '.$moti_explode[1].','.$_color.',\n \"'.utf8_decode($_observa1).'\",\"'.utf8_decode($_observa2).'\",\n \"'.utf8_decode($_opedesp).'\", \"'.$traslado_aux.'\" , \"'.$_fecha.'\"\n )\n ';\n\n // insert de la emergencia en atenciones temp\n global $G_legajo , $parametros_js;\n $result = mysql_query($insert_atencion);\n if (!$result) {\n $boton = '<input type=\"button\" value=\"Error! modificar y presionar nuevamente\"\n\t\t\t onclick=\" check_emergencia(\n\t\t\t document.formulario.muestra_fecha.value,document.formulario.telefono.value,\n\t\t\t document.formulario.i_busca_plan.value,document.formulario.hora.value,\n\t\t\t document.formulario.td_padron_idpadron.value,document.formulario.td_padron_nombre.value,\n\t\t\t document.formulario.td_padron_tiposocio.value,document.formulario.td_padron_edad.value,\n\t\t\t document.formulario.td_padron_sexo.value,document.formulario.td_padron_identi.value,\n\t\t\t document.formulario.td_padron_docum.value,document.formulario.td_padron_calle.value,\n\t\t\t document.formulario.td_padron_nro.value,document.formulario.td_padron_piso.value,\n\t\t\t document.formulario.td_padron_depto.value,document.formulario.td_padron_casa.value,\n\t\t\t document.formulario.td_padron_mon.value,document.formulario.td_padron_barrio.value,\n\t\t\t document.formulario.td_padron_entre1.value,document.formulario.td_padron_entre2.value,\n\t\t\t document.formulario.td_padron_localidad.value,document.formulario.referencia.value,\n\t\t\t document.formulario.s_lista_zonas.value,document.formulario.i_busca_motivos.value,\n\t\t\t document.formulario.s_lista_colores.value,document.formulario.obs1.value,\n\t\t\t document.formulario.obs2.value,'.$G_legajo.' ,\n\t\t\t document.formulario.check_traslado.value , document.formulario.dia_traslado.value ,\n\t\t\t document.formulario.mes_traslado.value , document.formulario.anio_traslado.value ,\n\t\t\t document.formulario.hora_traslado.value , document.formulario.minuto_traslado.value ,\n\t\t\t\t\t '.$parametros_js.' \n \t );\"/> ';\n \n }else \n {\n $boton = '<input type=\"button\" value=\"CERRAR CON EXITO\" onclick=\"window.close();\"/>';\n \n\n\n\t // recupero id para hacer altas de clientes no apadronados\n\t $consulta_id = mysql_query ('select id from atenciones_temp\n\t where fecha = \"'.$_fecha.'\" and plan = \"'.$_plan.'\"\n\t and horallam = \"'.$_horallam.'\" and nombre = \"'.$_nombre.'\"\n\t and tiposocio = \"'.$_tiposocio.'\" and motivo1 = '.$moti_explode[0].'\n\t and motivo2 = '.$moti_explode[1]);\n\n\n\t $fetch_idatencion=mysql_fetch_array($consulta_id);\n\n\n\t\tif ($_bandera_nosocio1 == 1) { $insert_nosocio1 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio1.'\" , \"'.$_noedad1.'\" , \"'.$_nosexo1.'\" , \"'.$_noiden1.'\" , \"'.$_nodocum1.'\" ) '); }\n\t\tif ($_bandera_nosocio2 == 1) { $insert_nosocio2 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio2.'\" , \"'.$_noedad2.'\" , \"'.$_nosexo2.'\" , \"'.$_noiden2.'\" , \"'.$_nodocum2.'\" ) '); }\n\t\tif ($_bandera_nosocio3 == 1) { $insert_nosocio3 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio3.'\" , \"'.$_noedad3.'\" , \"'.$_nosexo3.'\" , \"'.$_noiden3.'\" , \"'.$_nodocum3.'\" ) '); }\n\t\tif ($_bandera_nosocio4 == 1) { $insert_nosocio4 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio4.'\" , \"'.$_noedad4.'\" , \"'.$_nosexo4.'\" , \"'.$_noiden4.'\" , \"'.$_nodocum4.'\" ) '); }\n\t\tif ($_bandera_nosocio5 == 1) { $insert_nosocio5 = mysql_query ('insert into clientes_nopadron (idatencion , nombre , edad , sexo , os , dni) values (\"'.$fetch_idatencion['id'].'\" , \"'.$_nosocio5.'\" , \"'.$_noedad5.'\" , \"'.$_nosexo5.'\" , \"'.$_noiden5.'\" , \"'.$_nodocum5.'\" ) '); }\n }\n // mysql_query($insert_atencion);\n $insert_atencion='';\n //$insert_atencion='';\n //instanciamos el objeto para generar la respuesta con ajax\n $respuesta = new xajaxResponse();\n //escribimos en la capa con id=\"respuesta\" el texto que aparece en $salida\n $respuesta->addAssign(\"mensaje_agrega\",\"innerHTML\",$boton);\n\n //tenemos que devolver la instanciaci�n del objeto xajaxResponse\n return $respuesta;\n}" ]
[ "0.6438537", "0.5934463", "0.592353", "0.5917392", "0.59124047", "0.5819625", "0.58166444", "0.5784876", "0.57820266", "0.5759106", "0.57584107", "0.5718089", "0.5693607", "0.5669758", "0.56576306", "0.56486446", "0.5636877", "0.56346256", "0.56277627", "0.5623136", "0.56148773", "0.5602992", "0.5600912", "0.5594337", "0.5586841", "0.55861956", "0.55811316", "0.55773085", "0.55715513", "0.55587786", "0.5556596", "0.5549482", "0.5541471", "0.55269843", "0.55214834", "0.55158013", "0.54798037", "0.54569405", "0.5454488", "0.5448206", "0.54477644", "0.54429466", "0.5441794", "0.54404616", "0.54398894", "0.54330003", "0.5428011", "0.54241127", "0.54198676", "0.54177177", "0.54173386", "0.54120255", "0.5407616", "0.5399753", "0.53994364", "0.5396365", "0.53946996", "0.5391325", "0.5380373", "0.5370859", "0.5368207", "0.5367254", "0.5365168", "0.53621495", "0.53613", "0.5355415", "0.53450114", "0.5341871", "0.5340048", "0.5336762", "0.53338593", "0.5322019", "0.53213996", "0.53178084", "0.5313519", "0.53100497", "0.53090787", "0.53081924", "0.53029317", "0.5299776", "0.5294762", "0.5293702", "0.52873904", "0.5286825", "0.5283375", "0.52785736", "0.52748734", "0.5271105", "0.52697515", "0.52688247", "0.52662426", "0.52641785", "0.5263684", "0.5261381", "0.5255908", "0.5255746", "0.52553606", "0.5245517", "0.52454495", "0.52445346", "0.5240823" ]
0.0
-1
COLLABORA, REGIA, MUSICA, PRODOTTO DA, etc
function stampaNome($id_persona) { include 'configurazione.php'; include 'connessione.php'; $stmt = $conn->prepare("SELECT P.nome, P.cognome, P.alt_name AS nick, P.tipologia FROM Persona AS P WHERE P.id = ?"); $stmt->bind_param("i", $id_persona); $stmt->execute(); $stmt->bind_result($nome, $cognome, $alt_name, $tipologia); $stmt->fetch(); if($alt_name != "" && $tipologia != 1){ return $alt_name; }else{ if($alt_name != ""){return $nome . " " . $cognome. " (".$alt_name.")";} return $nome . " " . $cognome; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPaises()\n{\n return array('ECUADOR', 'COLOMBIA', 'ESPAÑA', 'OTRO');\n}", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "function dividirPalabraEnLetras($palabra){\n \n /*>>> Completar para generar la estructura de datos b) indicada en el enunciado. \n recuerde que los string pueden ser recorridos como los arreglos. <<<*/\n \n}", "function get_clase_vista()\n {\n switch ($this->accion) {\n case 'index': \n case 'mostrar_clases': \n case 'filtrar': return 'vista_materias';\n case 'planilla': return 'vista_planilla';\n case 'resumen': return 'vista_resumen';\n case 'generar_pdf': return 'vista_planilla';\n default: return 'vista_edicion_asistencias';\n }\n }", "function nomi_sintomi($nome)\n{\n\tif ( ($nome == 'id') || ($nome == 'id_paziente') );\n\n\telse if ( $nome == 'data_inserimento') \t\n\t\treturn ('Insertion date');\n\telse if ( $nome == 'data_sintomi') \t\n\t\treturn ('Date of first clinical sign');\n\telse if ( $nome == 'crisi_epilettica') \t\n\t\treturn ('Epilepsy');\n\telse if ( $nome == 'disturbi_comportamento') \t\n\t\treturn ('Behavioral disorder');\n\telse if ( $nome == 'deficit_motorio') \t\n\t\treturn ('Motor deficit');\n\telse if ( $nome == 'deficit') \t\n\t\treturn ('Sensory deficit');\t\n\telse if ( $nome == 'cefalea') \t\n\t\treturn ('Headache');\t\t\n\telse if ( $nome == 'altro') \t\n\t\treturn ('Other');\t\n\t \n\telse\n\t\treturn ucfirst($nome);\n}", "protected function subjonctifImparfait(){\n $terminaisons=[];\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguèsses\";\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguessian\";\n $terminaisons[]= \"fuguessias\";\n $terminaisons[]= \"fuguèsson\";\n return $terminaisons;\n }", "function datos_censales($alumno)\n\t{\n $formulario_habilitado = $this->s__datos_config_reporte['formulario_habilitado'];\n\t\t//$habilitacion = $this->s__datos_config_reporte['habilitacion'];\n \n\t\t$formulario_terminado = toba::consulta_php('consultas_relevamiento_ingenierias')->get_formulario_terminado($formulario_habilitado, $alumno['encuestado']);\n\t\t\n\t\tif (!empty($formulario_terminado)) {\n\t\t\t$formulario_habilitado = $formulario_terminado[0]['formulario_habilitado'];\n\t\t\t$this->respuestas = toba::consulta_php('consultas_relevamiento_ingenierias')->get_respuestas_completas_formulario_habilitado_encuestado($formulario_habilitado, $alumno['encuestado']);\n\t\t\t\n\t\t\t//Respuestas Datos Censales Principales\n\t\t\t$rta_estado_civil \t= $this->get_respuestas(247);\n\t\t\t$rta_cant_hijos \t= $this->get_respuestas(248);\n\t\t\t$rta_cant_fliares \t= $this->get_respuestas(249);\n\t\t\t$rta_calle\t\t\t= $this->get_respuestas(251);\n\t\t\t$rta_numero\t\t\t= $this->get_respuestas(252);\n\t\t\t$rta_piso\t\t\t= $this->get_respuestas(253);\n\t\t\t$rta_depto\t\t\t= $this->get_respuestas(254);\n\t\t\t$rta_unidad\t\t\t= $this->get_respuestas(255);\n\t\t\t$rta_localidad\t\t= $this->get_respuestas(256);\n\t\t\t$rta_calle_proc\t\t= $this->get_respuestas(258);\n\t\t\t$rta_numero_proc\t= $this->get_respuestas(259);\n\t\t\t$rta_piso_proc\t\t= $this->get_respuestas(260);\n\t\t\t$rta_depto_proc\t\t= $this->get_respuestas(261);\n\t\t\t$rta_unidad_proc\t= $this->get_respuestas(262);\n\t\t\t$rta_localidad_proc\t= $this->get_respuestas(263);\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$rtas_fuente = $this->get_respuestas(265, true);\n\t\t\t$rtas_beca\t = $this->get_respuestas(266, true);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$rta_cond_activ\t\t = $this->get_respuestas(268);\n\t\t\t$rta_es_usted\t\t = $this->get_respuestas(269);\n\t\t\t$rta_ocupacion_es\t = $this->get_respuestas(270);\n\t\t\t$rta_horas_semanales = $this->get_respuestas(271);\n\t\t\t$rta_rel_trab_carrera = $this->get_respuestas(272);\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$rta_nivel_est_padre\t = $this->get_respuestas(274);\n\t\t\t$rta_vive_padre\t\t\t = $this->get_respuestas(275);\n\t\t\t$rta_cond_activ_padre\t = $this->get_respuestas(276);\n\t\t\t$rta_es_usted_padre\t\t = $this->get_respuestas(277);\n\t\t\t$rta_ocupacion_es_padre\t = $this->get_respuestas(278);\n\t\t\t$rta_si_no_trabaja_padre = $this->get_respuestas(279);\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$rta_nivel_est_madre\t = $this->get_respuestas(281);\n\t\t\t$rta_vive_madre\t\t\t = $this->get_respuestas(282);\n\t\t\t$rta_cond_activ_madre\t = $this->get_respuestas(283);\n\t\t\t$rta_es_usted_madre\t\t = $this->get_respuestas(284);\n\t\t\t$rta_ocupacion_es_madre\t = $this->get_respuestas(285);\n\t\t\t$rta_si_no_trabaja_madre = $this->get_respuestas(286);\n\t\t\t\n\t\t\t//Se arma la linea con las respuestas - Datos Censales Principales\n\t\t\t$linea = '|'.$rta_estado_civil['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_hijos['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_fliares['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle['respuesta_valor'].'|'.$rta_numero['respuesta_valor'].'|'.$rta_piso['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto['respuesta_valor'].'|'.$rta_unidad['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad) ? '' : $rta_localidad['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle_proc['respuesta_valor'].'|'.$rta_numero_proc['respuesta_valor'].'|'.$rta_piso_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto_proc['respuesta_valor'].'|'.$rta_unidad_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad_proc) ? '' : $rta_localidad_proc['respuesta_valor'];\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$linea .= '|'.$this->get_lista_array_fuente($rtas_fuente).'|'.$this->get_lista_array_beca($rtas_beca);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$linea .= '|'.$rta_cond_activ['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted) \t\t ? '' : $rta_es_usted['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es) \t ? '' : $rta_ocupacion_es['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_horas_semanales) ? '' : $rta_horas_semanales['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_rel_trab_carrera) ? '' : $rta_rel_trab_carrera['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$linea .= '|'.$rta_nivel_est_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_padre) \t\t ? '' : $rta_vive_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_padre) \t ? '' : $rta_cond_activ_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_padre) \t ? '' : $rta_es_usted_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_padre) ? '' : $rta_ocupacion_es_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_padre) ? '' : $rta_si_no_trabaja_padre['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$linea .= '|'.$rta_nivel_est_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_madre) \t\t ? '' : $rta_vive_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_madre)\t ? '' : $rta_cond_activ_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_madre) \t ? '' : $rta_es_usted_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_madre) ? '' : $rta_ocupacion_es_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_madre) ? '' : $rta_si_no_trabaja_madre['respuesta_valor'];\n\t\t\t\n\t\t\t//Fecha de terminación del formulario\n\t\t\t$linea .= '|'.$formulario_terminado[0]['fecha_terminado'];\n\t\t} else {\n\t\t\t$linea = '|||||||||||||||||||||||||||||||';\n\t\t}\n\t\t\n\t\t//Se retornan las respuestas del alumno\n\t\treturn $linea;\n\t}", "function dia_letras($dia){\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tswitch($dia)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t $dia_letras=\"Lunes\";\n\t\t\t break;\n\t\t\tcase 2:\n\t\t\t $dia_letras=\"Martes\";\n\t\t\t break;\n\t\t\tcase 3:\n\t\t\t $dia_letras=\"Miercoles\";\n\t\t\t break;\n\t\t\tcase 4:\n\t\t\t $dia_letras=\"Jueves\";\n\t\t\t break;\n\t\t\tcase 5:\n\t\t\t $dia_letras=\"Viernes\";\n\t\t\t break;\n\t\t\t case 6:\n\t\t\t $dia_letras=\"Sabado\";\n\t\t\t break;\n\t\t\tcase 0:\n\t\t\t $dia_letras=\"Domingo\";\t\t \n\t\t\t break;\n\t\t\tcase 10:\n\t\t\t $dia_letras=\"Festivo\";\n\t\t\t break;\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $dia_letras;\n\t\t\t\n\t\t}", "public function getMataPelajaran();", "public function getChapeau();", "function NombreCurso($varcurso)\n{\n\tif ($varcurso == 1) return \"Nybörjare\";\n\tif ($varcurso == 2) return \"Steg 2\";\n\tif ($varcurso == 3) return \"Steg 3\";\n\tif ($varcurso == 4) return \"Steg 4\";\n\tif ($varcurso == 5) return \"Open level\";\n\tif ($varcurso == 6) return \"\";\n\tif ($varcurso == 7) return \"Private class\";\n\tif ($varcurso == 8) return \"Nybörjare/Open level\";\n}", "function getNombreGenericoPrestacion($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $descr = \"INMUNIZACION\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $descr = \"CONTROL PEDIATRICO\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $descr = \"CONTROL ADOLESCENTE\";\r\n break;\r\n case 'PARTO':\r\n $descr = \"CONTROL DEL PARTO\";\r\n break;\r\n case 'EMB':\r\n $descr = \"CONTROL DE EMBARAZO\";\r\n break;\r\n case 'ADULTO':\r\n $descr = \"CONTROL DE ADULTO\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $descr = \"SEGUIMIENTO\";\r\n break;\r\n case 'TAL':\r\n $descr = \"TAL\";\r\n break;\r\n }\r\n return $descr;\r\n}", "public function intensidad(){\n if($this->PP03F < 35 && $this->PP03G == 1 && $this->PP03H == 1)\n {\n return 1;\n }\n if($this->caracteristicas->CH06 >= 10 && $this->PP03G == 1 && $this->PP01E == 5)\n {\n return 2;\n }\n if( $this->PP03F > 40)\n {\n return 3;\n }\n if($this->PP01E == 5)\n {\n return 4;\n }\n}", "function tipoDeLlamada($codInternacional, $codArea)\n{\n if ($codInternacional == 54)\n {\n if ($codArea == 299)\n {\n return \"corta\";\n }\n\n return \"larga\";\n }\n return \"internacional\";\n}", "public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }", "function fct_titre_page ($mescriteres) {\n\t$titre_page = \"\";\n\tforeach ($mescriteres as $ref => $infoscritere) {\n\t\tif (($infoscritere['code'] >= 0) && ($infoscritere['libelle'] != \"\")) {\n\t\t\tif ($titre_page != \"\") $titre_page .= \", \";\n\t\t\t$titre_page .= $infoscritere['libelle'];\n\t\t}\n\t}\n\tif ($titre_page == \"\") $titre_page = \"Un expert vous aide Ó identifier un arbre\";\n\telse $titre_page = \"Fleurs correspondant Ó : \".$titre_page;\n\treturn $titre_page;\n}", "public function stringTipoCargo($parametro)\n{\n\n switch ($parametro) {\n case 1:\n # code...\n return \"Vendedor\";\n break;\n\n\n case 2:\n # code...\n return \"Vendedor Externo\";\n break;\n\n\n case 3:\n # code...\n return \"Administrativo\";\n break;\n\n case 4:\n # code...\n return \"Otro\";\n break;\n \n default:\n # code...\n return \"No definido\";\n break;\n }\n\n}", "function getAlc(){\r\n return array(\"saki\", \"vodka\", \"rum\", \"whiskey\", \"tequila\", \"gin\");\r\n }", "public static function getReceta(){\n return array(\"LENTEJA\"=>200, \"LONGANIZA VEGANA\"=>1);\n }", "function getTipoParqueo()\n{\n return array(\n array('codigo' => 'MTO', 'valor' => 'Moto'),\n array('codigo' => 'CAR', 'valor' => 'Carro'),\n array('codigo' => 'TRK', 'valor' => 'Camion'),\n );\n}", "public function accion(){\n \t$accion = $this->accion;\n \tif ($accion == 'CREAR') {\n \t\t$accion = \"CREACION\";\n \t}else{\n \t\t$accion = \"EDICION\";\n \t}\n \treturn $accion;\n }", "function define_forma_pagamento($pgto){\n \n switch($pgto){\n case (strpos($pgto, 'Crédito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Débito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Dinheiro') !== false) :\n return 1;\n break;\n default:\n return 1002;\n break;\n }\n \n}", "function cuentabancos(){\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,c.description,c.manual_code\n\t\t\tfrom cont_movimientos m,cont_polizas p,cont_accounts c,cont_config conf\n\t\t\twhere m.cuenta=c.account_id and c.currency_id=2 \n\t\t\tand c.`main_father`=conf.CuentaBancos and p.idtipopoliza!=3 and m.TipoMovto not like '%M.E%'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 group by m.Cuenta\n\t\t\t\");\n\t\t\treturn $sql;\n\t\t}", "public function linea_colectivo();", "function niveles($area){\n\t\tif ($area->cveentidad2=='0') return 1;\n\t\tif ($area->cveentidad3=='0') return 2;\n\t\tif ($area->cveentidad4=='0') return 3;\n\t\tif ($area->cveentidad5=='0') return 4;\n\t\tif ($area->cveentidad6=='0') return 5;\n\t\tif ($area->cveentidad7=='0') return 6;\n\t}", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function getDirectriz()\n {\n $dir = false;\n if (self::getCod() === '110000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '120000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '210000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '220000') $dir='Ciencias Experimentales';\n if (self::getCod() === '230000') $dir='Ciencias Experimentales';\n if (self::getCod() === '240000') $dir='Ciencias de la Salud';\n if (self::getCod() === '250000') $dir='Ciencias Experimentales';\n if (self::getCod() === '310000') $dir='Ciencias Experimentales';\n if (self::getCod() === '320000') $dir='Ciencias de la Salud';\n if (self::getCod() === '330000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '510000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '520000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '530000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '540000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '550000') $dir='Humanidades';\n if (self::getCod() === '560000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '570000') $dir='Humanidades';\n if (self::getCod() === '580000') $dir='Humanidades';\n if (self::getCod() === '590000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '610000') $dir='Ciencias de la Salud';\n if (self::getCod() === '620000') $dir='Humanidades';\n if (self::getCod() === '630000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '710000') $dir='Humanidades';\n if (self::getCod() === '720000') $dir='Humanidades';\n return $dir;\n }", "public function obterCor($nome){\n $cores = Mage::getModel('cores/cores')->getCollection();\n $cor = $cores->addFieldToFilter('nome', $nome)->getFirstItem();\n\n if($cor->getImagem()){\n return $cor->getImagem();\n }else{\n return $cor->getCor();\n }\n }", "public function getSacadoCidadeUF();", "function get_mecanismos_carga()\n\t{\n\t\t$param = $this->get_definicion_parametros(true);\t\t\n\t\t$tipos = array();\n\t\tif (in_array('carga_metodo', $param, true)) {\n\t\t\t$tipos[] = array('carga_metodo', 'Método de consulta PHP');\n\t\t}\n\t\tif (in_array('carga_lista', $param, true)) {\n\t\t\t$tipos[] = array('carga_lista', 'Lista fija de Opciones');\n\t\t}\t\t\n\t\tif (in_array('carga_sql', $param, true)) {\t\t\n\t\t\t$tipos[] = array('carga_sql', 'Consulta SQL');\n\t\t}\n\t\treturn $tipos;\n\t}", "function difundir() {\n\n // La funcion obtener_frase esta heredado del pariente Orador\n $frase = $this->obtener_frase();\n\n // Convirtir a mayusculos\n $frase_mayusculas = strtoupper($frase);\n\n echo $frase_mayusculas;\n\n }", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}", "static public function nombreLocalidadXPais($idPais, $localidad)\n {\n if ($localidad == 'estado') {\n switch ($idPais) {\n case 8:\n return 'Distrito';\n break;\n case 11:\n return 'Zona Geográfica';\n break;\n case 14:\n return 'Región';\n break;\n case 9:\n return 'Provincia';\n case 19:\n case 20:\n case 21:\n case 23:\n return 'Departamento';\n break;\n case 15:\n case 16:\n case 17:\n case 18:\n return 'Provincia';\n break;\n case 22:\n return 'Zona';\n break;\n case 13:\n return 'Estado';\n break;\n default:\n return 'Estado';\n break;\n }\n }\n if ($localidad == 'ciudad') {\n switch ($idPais) {\n case 8:\n return 'Concelho';\n break;\n case 11:\n return 'Barrio / Partido';\n break;\n case 14:\n return 'Comuna';\n break;\n case 16:\n return 'Distrito';\n break;\n case 15:\n case 17:\n return 'Cantón';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipio';\n break;\n case 21:\n return 'Municipalidad';\n break;\n case 13:\n return 'Cidade';\n break;\n default:\n return 'Ciudad';\n break;\n }\n }\n if ($localidad == 'ciudades') {\n switch ($idPais) {\n case 8:\n return 'Concelhos';\n break;\n case 11:\n case 13:\n return 'Cidade';\n break;\n case 14:\n return 'Comunas';\n break;\n case 16:\n return 'Distritos';\n break;\n case 15:\n case 17:\n return 'Cantónes';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipios';\n break;\n case 21:\n return 'Municipalidades';\n break;\n default:\n return 'Ciudades';\n break;\n }\n }\n if ($localidad == 'urbanizacion') {\n switch ($idPais) {\n case 8:\n return 'Freguesia';\n break;\n case 9:\n case 13:\n return 'Barrio';\n break;\n case 11:\n return 'Localidad';\n break;\n case 17:\n return 'Urbanización o Sector';\n break;\n case 19:\n return 'Zona';\n break;\n default:\n return 'Urbanización';\n break;\n }\n }\n }", "private function trovaRegione($provincia) {\r\n switch ($provincia) {\r\n case 'CHIETI':\r\n case 'PESCARA':\r\n case \"L'AQUILA\":\r\n case 'TERAMO':\r\n $regione = 'ABRUZZO';\r\n break;\r\n case 'MATERA':\r\n case 'POTENZA':\r\n $regione = 'BASILICATA';\r\n break;\r\n case 'CATANZARO':\r\n case 'COSENZA':\r\n case 'CROTONE':\r\n case 'REGGIO DI CALABRIA':\r\n case 'VIBO VALENTIA':\r\n $regione = 'CALABRIA';\r\n break;\r\n case 'AVELLINO':\r\n case 'BENEVENTO':\r\n case 'CASERTA':\r\n case 'NAPOLI':\r\n case 'SALERNO':\r\n $regione = 'CAMPANIA';\r\n break;\r\n case 'BOLOGNA':\r\n case 'FERRARA':\r\n case 'FORLI’-CESENA':\r\n case 'MODENA':\r\n case 'PARMA':\r\n case 'PIACENZA':\r\n case 'RAVENNA':\r\n case \"REGGIO NELL'EMILIA\":\r\n case 'RIMINI':\r\n $regione = 'EMILIA ROMAGNA';\r\n break;\r\n case 'GORIZIA':\r\n case 'PORDENONE':\r\n case 'TRIESTE':\r\n case 'UDINE':\r\n $regione = 'FRIULI VENEZIA GIULIA';\r\n break;\r\n case 'FROSINONE':\r\n case 'LATINA':\r\n case 'RIETI':\r\n case 'ROMA':\r\n case 'VITERBO':\r\n $regione = 'LAZIO';\r\n break;\r\n case 'GENOVA':\r\n case 'IMPERIA':\r\n case 'LA SPEZIA':\r\n case 'SAVONA':\r\n $regione = 'LIGURIA';\r\n break;\r\n case 'BERGAMO':\r\n case 'BRESCIA':\r\n case 'COMO':\r\n case 'CREMONA':\r\n case 'LECCO':\r\n case 'LODI':\r\n case 'MANTOVA':\r\n case 'MILANO':\r\n case 'MONZA E DELLA BRIANZA':\r\n case 'PAVIA':\r\n case 'SONDRIO':\r\n case 'VARESE':\r\n $regione = 'LOMBARDIA';\r\n break;\r\n case 'ANCONA':\r\n case 'ASCOLI PICENO':\r\n case 'FERMO':\r\n case 'MACERATA':\r\n case 'PESARO E URBINO':\r\n $regione = 'MARCHE';\r\n break;\r\n case 'CAMPOBASSO':\r\n case 'ISERNIA':\r\n $regione = 'MOLISE';\r\n break;\r\n case 'ALESSANDRIA':\r\n case 'ASTI':\r\n case 'BIELLA':\r\n case 'CUNEO':\r\n case 'NOVARA':\r\n case 'TORINO':\r\n case 'VERBANO-CUSIO-OSSOLA':\r\n case 'VERCELLI':\r\n $regione = 'PIEMONTE';\r\n break;\r\n case 'BARI':\r\n case 'BARLETTA-ANDRIA-TRANI':\r\n case 'BRINDISI':\r\n case 'FOGGIA':\r\n case 'LECCE':\r\n case 'TARANTO':\r\n $regione = 'PUGLIA';\r\n break;\r\n case 'CAGLIARI':\r\n case 'CARBONIA-IGLESIAS':\r\n case 'MEDIO CAMPIDANO':\r\n case 'NUORO':\r\n case 'OGLIASTRA':\r\n case 'OLBIA-TEMPIO':\r\n case 'ORISTANO':\r\n case 'SASSARI':\r\n $regione = 'SARDEGNA';\r\n break;\r\n case 'AGRIGENTO':\r\n case 'CALTANISSETTA':\r\n case 'CATANIA':\r\n case 'ENNA':\r\n case 'MESSINA':\r\n case 'PALERMO':\r\n case 'RAGUSA':\r\n case 'SIRACUSA':\r\n case 'TRAPANI':\r\n $regione = 'SICILIA';\r\n break;\r\n case 'AREZZO':\r\n case 'FIRENZE':\r\n case 'GROSSETO':\r\n case 'LIVORNO':\r\n case 'LUCCA':\r\n case 'MASSA-CARRARA':\r\n case 'PISA':\r\n case 'PISTOIA':\r\n case 'PRATO':\r\n case 'SIENA':\r\n $regione = 'TOSCANA';\r\n break;\r\n case 'BOLZANO':\r\n case 'TRENTO':\r\n $regione = 'TRENTINO ALTO ADIGE';\r\n break;\r\n case 'PERUGIA':\r\n case 'TERNI':\r\n $regione = 'UMBRIA';\r\n break;\r\n case 'AOSTA':\r\n $regione = \"VALLE D'AOSTA\";\r\n break;\r\n case 'BELLUNO':\r\n case 'PADOVA':\r\n case 'ROVIGO':\r\n case 'TREVISO':\r\n case 'VENEZIA':\r\n case 'VERONA':\r\n case 'VICENZA':\r\n $regione = 'VENETO';\r\n break;\r\n }\r\n return $regione;\r\n }", "protected function mapeoTprop() {\n $clave = '';\n $tipo = $this->propiedad->getId_tipo_prop();\n $subtipo = $this->propiedad->getSubtipo_prop();\n // Country - Barrio Cerrado\n $tipoUbi = $this->tipoUbicacion();\n if ($tipoUbi == 'COUNTRY' || $tipoUbi == strtoupper('Barrio Cerrado')) {\n $clave = 'Countries y Barrios cerrados_';\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas';\n break;\n case 1: // Depto\n $clave.='Departamentos';\n break;\n case 7: // Lote\n $clave.='Terrenos';\n break;\n }\n } else {\n $finder = 0;\n foreach ($this->arrayMapeoTprop as $registro) {\n if (trim($registro['id_tipo_prop']) == (trim($tipo))) {\n if (trim($registro['subtipo_prop']) == (trim($subtipo))) {\n $clave = $registro['clave'];\n $finder = 1;\n break;\n }\n }\n }\n if ($finder == 0) {\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas_Casa';\n break;\n case 1: // Depto\n $clave.='Departamentos_Departamento';\n break;\n\t\t\t\t\tcase 17: //Quinta\n\t\t\t\t\t\t$clave.='Quintas';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6: //Campos y chacras\n\t\t\t\t\tcase 16: //Campos y chacras\n\t\t\t\t\t\t$clave.='Campos y chacras';\n\t\t\t\t\t\tbreak;\n case 19: // Industriales\n $clave.='Galpones, depósitos y edificios industriales';\n break;\n }\n }\n }\n return $clave;\n }", "function get_nombre_dia($dia)\n{\n $nombre = '';\n\n switch ($dia) {\n case '0':\n $nombre = 'Domingo';\n break;\n case '1':\n $nombre = 'Lunes';\n break;\n case '2':\n $nombre = 'Martes';\n break;\n case '3':\n $nombre = 'Miércoles';\n break;\n case '4':\n $nombre = 'Jueves';\n break;\n case '5':\n $nombre = 'Viernes';\n break;\n case '6':\n $nombre = 'Sábado';\n break; \n default:\n $nombre = 'Día no existe';\n break;\n }\n\n return $nombre;\n}", "function getDatosNombre_region()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nombre_region'));\n $oDatosCampo->setEtiqueta(_(\"nombre de la región\"));\n $oDatosCampo->setTipo('texto');\n $oDatosCampo->setArgument(30);\n return $oDatosCampo;\n }", "function getTiposDocumento(){\r\n\t$tipos_documento[\"I\"]\t= \"Investigaci&oacute;n\";\r\n\t$tipos_documento[\"AV\"]\t= \"Archivo vertical\";\r\n\t$tipos_documento[\"AR\"]\t= \"Art&iacute;culo de revisa\";\r\n\t$tipos_documento[\"L\"]\t= \"Libro\";\r\n\t$tipos_documento[\"R\"]\t= \"Revista\";\r\n\t$tipos_documento[\"T\"]\t= \"Tesis\";\r\n\t$tipos_documento[\"D\"]\t= \"Documento\";\t\r\n\t\r\n\treturn $tipos_documento;\r\n}", "function getCanChi($lunar) {\n\t\t$dayName = Qss_Lib_Const::$CAN[($lunar->jd + 9) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->jd+1)%12];\n\t\t$monthName = Qss_Lib_Const::$CAN[($lunar->year*12+$lunar->month+3) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->month+1)%12];\n\t\tif ($lunar->leap == 1) {\n\t\t\t$monthName .= \" (nhuận)\";\n\t\t}\n\t\t$yearName = $this->getYearCanChi($lunar->year);\n\t\treturn array($dayName, $monthName, $yearName);\n\t}", "function CONCEPTO($_ARGS, $_CONCEPTO) {\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodTipoNom = '\".$_ARGS['NOMINA'].\"' AND\r\n\t\t\t\tPeriodo = '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tCodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND\r\n\t\t\t\tCodTipoProceso = '\".$_ARGS['PROCESO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function a_mayusculas($cadena)\n{\n $cadena = strtr(strtoupper($cadena), 'àèìòùáéíóúçñäëïöü', 'ÀÈÌÒÙÁÉÍÓÚÇÑÄËÏÖÜ');\n\n return $cadena;\n}", "function DIA_DE_LA_SEMANA($_FECHA) {\r\n\t// primero creo un array para saber los días de la semana\r\n\t$dias = array(0, 1, 2, 3, 4, 5, 6);\r\n\t$dia = substr($_FECHA, 0, 2);\r\n\t$mes = substr($_FECHA, 3, 2);\r\n\t$anio = substr($_FECHA, 6, 4);\r\n\t\r\n\t// en la siguiente instrucción $pru toma el día de la semana, lunes, martes,\r\n\t$pru = strtoupper($dias[intval((date(\"w\",mktime(0,0,0,$mes,$dia,$anio))))]);\r\n\treturn $pru;\r\n}", "function ULTIMO_CONCEPTO($_CONCEPTO) {\r\n\tglobal $_ARGS;\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tPeriodo < '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\r\n\t\t\tORDER BY Periodo DESC\r\n\t\t\tLIMIT 0, 1\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\techo str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\techo \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\techo \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t}", "function mes_letra($mes){\n\t$mesletra=\"\";\n\tswitch ($mes) {\n\t\tcase '01':\n\t\t\t$mesletra='Enero';\n\t\t\tbreak;\n\t\tcase '02':\n\t\t\t$mesletra='Febrero';\n\t\t\tbreak;\n\t\tcase '03':\n\t\t\t$mesletra='Marzo';\n\t\t\tbreak;\n\t\tcase '04':\n\t\t\t$mesletra='Abril';\n\t\t\tbreak;\n\t\tcase '05':\n\t\t\t$mesletra='Mayo';\n\t\t\tbreak;\n\t\tcase '06':\n\t\t\t$mesletra='Junio';\n\t\t\tbreak;\n\t\tcase '07':\n\t\t\t$mesletra='Julio';\n\t\t\tbreak;\n\t\tcase '08':\n\t\t\t$mesletra='Agosto';\n\t\t\tbreak;\n\t\tcase '09':\n\t\t\t$mesletra='Septimbre';\n\t\t\tbreak;\n\t\tcase '10':\n\t\t\t$mesletra='Octubre';\n\t\t\tbreak;\n\t\tcase '11':\n\t\t\t$mesletra='Noviembre';\n\t\t\tbreak;\n\t\tcase '12':\n\t\t\t$mesletra='Diciembre';\n\t\t\tbreak;\n\t\t}\n\treturn $mesletra;\n}", "function getNombreTablaTrazadora($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $tabla = \"inmunizacion.prestaciones_inmu\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $tabla = \"trazadoras.nino_new\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $tabla = \"trazadoras.adolecentes\";\r\n break;\r\n case 'PARTO':\r\n $tabla = \"trazadoras.partos\";\r\n break;\r\n case 'EMB':\r\n $tabla = \"trazadoras.embarazadas\";\r\n break;\r\n case 'ADULTO':\r\n $tabla = \"trazadoras.adultos\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $tabla = \"trazadoras.seguimiento_remediar\";\r\n break;\r\n case 'CLASIFICACION':\r\n $tabla = \"trazadoras.clasificacion_remediar2\";\r\n break;\r\n case 'TAL':\r\n $tabla = \"trazadoras.tal\";\r\n break;\r\n }\r\n return $tabla;\r\n}", "function get_dias_lectura($dias)\n{\n $vector = explode(';', $dias);\n\n for ($i=0; $i < count($vector); $i++) { \n $vector[$i] = get_nombre_dia($vector[$i]);\n }\n\n return implode(', ', $vector);\n \n}", "public function obtener_colectivo();", "public function\tnomegiorno($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"w\",$data);\n\t\t$giorni = array( \"Domenica\", \"Luned&igrave;\", \"Marted&igrave;\", \"Mercoled&igrave;\", \"Gioved&igrave;\", \"Venerd&igrave;\", \"Sabato\" );\n\t\treturn $giorni[$data];\n\t}", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "public function categoriaInactivos(){\n if($this->nolaboral->V21_M >= 1)\n {\n return 1;\n }\n if($this->nolaboral->V8_M == 1 && $this->nolaboral->V9_M == 1 && $this->nolaboral->V10_M == 1)\n {\n return 2;\n }\n if($this->caracteristicas->CH10 == 1 && $this->PP01E == 2)\n {\n return 3;\n }\n if($this->PP01E == 2)\n {\n return 4;\n }\n if($this->caracteristicas->CH06 < 6)\n {\n return 5;\n }\n if($this->discapacidad())\n {\n return 6;\n }\n\n}", "Function traduz_mes($english_mes)\n{\n switch($english_mes)\n {\n case \"Jan\":\n $portuguese_mes = \"Janeiro\";\n break;\n case \"Feb\":\n $portuguese_mes = \"Fevereiro\";\n break;\n case \"Mar\":\n $portuguese_mes = \"Marco\";\n break;\n case \"Apr\":\n $portuguese_mes = \"Abril\";\n break;\n case \"May\":\n $portuguese_mes = \"Maio\";\n break;\n case \"Jun\":\n $portuguese_mes = \"Junho\";\n break;\n case \"Jul\":\n $portuguese_mes = \"Julho\";\n break;\n case \"Aug\":\n $portuguese_mes = \"Agosto\";\n break;\n case \"Sep\":\n $portuguese_mes = \"Setembro\";\n break;\n case \"Oct\":\n $portuguese_mes = \"Outubro\";\n break;\n case \"Nov\":\n $portuguese_mes = \"Novembro\";\n break; \n case \"Dec\":\n $portuguese_mes = \"Dezembro\";\n break;\n }\n return ($portuguese_mes);\n}", "function cita_biblica($objeto)\n{\n return $objeto->libro->nombre . ' ' . $objeto->numero_capitulo . ': ' . $objeto->numero_versiculo;\n}", "function tep_get_torihiki_houhou()\n{\n $types = $return = array();\n //DS_TORIHIKI_HOUHOU\n $types = explode(\"\\n\", DS_TORIHIKI_HOUHOU);\n if ($types) {\n foreach($types as $type){\n $atype = explode('//', $type);\n if (isset($atype[0]) && strlen($atype[0]) && isset($atype[1]) && strlen($atype[1])) {\n $return[$atype[0]] = explode('||', $atype[1]);\n }\n }\n }\n return $return;\n}", "public function select($perifericos);", "function ambil_soal() { \n $tampil = $this->db->query(\"SELECT * FROM IKD.IKD_D_SOAL_QUISIONER ORDER BY KD_SOAL ASC\")->result_array();\n\t\treturn $tampil;\n }", "function titulo_janela() {\n\n\t$sql_comando = \"SELECT * FROM ce_config WHERE Comando='Titulo_Janela'\";\n\t$result_comando = mysql_query($sql_comando);\n\t$linha_comando = mysql_fetch_assoc($result_comando);\n\treturn $linha_comando[\"exec\"];\n}", "function limpiar($cadena){\n\t\t$cadena=str_replace(\"_\",\" \",$cadena);//alt + 15\n\t\t$cadena=str_replace(\"|\",\"=\",$cadena);//alt + 10\n\t\treturn $cadena=str_replace(\"*\",\"'\",$cadena);//alt + 16\n\t}", "public function abono();", "function data_extenso()\r\n{\r\n\tglobal $semana;\r\n\tglobal $mes;\t\r\n\t$diasemana = date('w');\r\n\t$diames = date('j');\r\n\t$numeromes = date('n');\r\n\t$ano = date('Y');\t\r\n\treturn $semana[ $diasemana ] . ', ' .\r\n\t\t $diames . ' de ' . \r\n\t\t $mes[ $numeromes ] . ' de ' . \r\n\t\t $ano;\t\t \r\n}", "function dia ($hra){\r\t\tif ($hra==1 || $hra==7 || $hra==13 || $hra==19 || $hra==25 || $hra==31 || $hra==37 || $hra==43 || $hra==49)\r\t\t{\r\t\treturn 'Lunes';\t\r\t\t}else {\r\t\t\tif ($hra==2 || $hra==8 || $hra==14 || $hra==20 || $hra==26 || $hra==32 || $hra==38 || $hra==44 || $hra==50)\r\t\t{\r\t\treturn 'Martes';\t\r\t\t}else {\r\t\t\tif ($hra==3 || $hra==9 || $hra==15 || $hra==21 || $hra==27 || $hra==33 || $hra==39 || $hra==45 || $hra==51)\r\t\t{\r\t\treturn 'Miercoles';\t\r\t\t}else {\r\t\t\tif ($hra==4 || $hra==10 || $hra==16 || $hra==22 || $hra==28 || $hra==34 || $hra==340 || $hra==46 || $hra==52)\r\t\t{\r\t\treturn 'Jueves';\t\r\t\t}else {\r\t\t\tif ($hra==5 || $hra==11 || $hra==17 || $hra==23 || $hra==29 || $hra==35 || $hra==41 || $hra==47 || $hra==53)\r\t\t{\r\t\treturn 'Viernes';\t\r\t\t}else {\r\t\t\tif ($hra==6 || $hra==12 || $hra==18 || $hra==24 || $hra==30 || $hra==36 || $hra==42 || $hra==48 || $hra==54)\r\t\t{\r\t\treturn 'Sabado';\t\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return $v[$i];\r\n\t\t$i++;\r\n\t}\r\n}", "function ricercaOrdinamento($frasi)\n {\n $parole = array();\n\n foreach ($frasi as $frase)\n {\n $frase = preg_replace(\"/[^a-zA-Z\\ ]/\", \"\", $frase);\n\n $parole = array_merge($parole, explode(\" \", $frase));\n }\n\n $parole = array_count_values(array_map(\"strtolower\", $parole));\n arsort($parole);\n\n return rimozioneNonParole($parole);\n }", "function getChambrehospi(){\n return $this->chambre;\n }", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\t\t\t$label;\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\t$label = str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\t$label .= \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\t$label .= \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $label;\n\t\t}", "function fncValidaDI_26($IdEstado, $GestorErr, $NumReg, $Campo)\n{\n\t \n\t$Bandera = CERO;\n\n\t$DI_26 = \"(26)Municipio\";\n\t$DI_26_ErrTam = \"Tamaño de campo Municipio debe ser a 3 Dígitos\";\n\t$DI_26_Mpio \t = \"El Municipio no es parte del catalogo de DGRH\";\n\t\n\t// agregar catalogo de Municpios\n\nif($IdEstado == \"01\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"01\")\n\nif($IdEstado == \"02\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\");\n} //fin de if($IdEstado == \"02\")\n\nif($IdEstado == \"03\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"008\",\"009\");\n} //fin de if($IdEstado == \"03\")\n\nif($IdEstado == \"04\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"04\")\n\nif($IdEstado == \"05\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\");\n} //fin de if($IdEstado == \"05\")\n\nif($IdEstado == \"06\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"06\")\n\nif($IdEstado == \"07\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\");\n} //fin de if($IdEstado == \"07\")\n\nif($IdEstado == \"08\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\");\n} //fin de if($IdEstado == \"08\")\n\nif($IdEstado == \"09\"){\n\t$Mpio = array(\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"09\")\n\nif($IdEstado == \"10\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\");\n} //fin de if($IdEstado == \"10\")\n\nif($IdEstado == \"11\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\");\n} //fin de if($IdEstado == \"11\")\n\nif($IdEstado == \"12\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\");\n} //fin de if($IdEstado == \"12\")\n\nif($IdEstado == \"13\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\");\n} //fin de if($IdEstado == \"13\")\n\nif($IdEstado == \"14\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"14\")\n\nif($IdEstado == \"15\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"15\")\n\nif($IdEstado == \"16\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\");\n} //fin de if($IdEstado == \"16\")\n\nif($IdEstado == \"17\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\");\n} //fin de if($IdEstado == \"17\")\n\nif($IdEstado == \"18\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\");\n} //fin de if($IdEstado == \"18\")\n\nif($IdEstado == \"19\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\");\n} //fin de if($IdEstado == \"19\")\n\nif($IdEstado == \"20\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\",\"218\",\"219\",\"220\",\"221\",\"222\",\"223\",\"224\",\"225\",\"226\",\"227\",\"228\",\"229\",\"230\",\"231\",\"232\",\"233\",\"234\",\"235\",\"236\",\"237\",\"238\",\"239\",\"240\",\"241\",\"242\",\"243\",\"244\",\"245\",\"246\",\"247\",\"248\",\"249\",\"250\",\"251\",\"252\",\"253\",\"254\",\"255\",\"256\",\"257\",\"258\",\"259\",\"260\",\"261\",\"262\",\"263\",\"264\",\"265\",\"266\",\"267\",\"268\",\"269\",\"270\",\"271\",\"272\",\"273\",\"274\",\"275\",\"276\",\"277\",\"278\",\"279\",\"280\",\"281\",\"282\",\"283\",\"284\",\"285\",\"286\",\"287\",\"288\",\"289\",\"290\",\"291\",\"292\",\"293\",\"294\",\"295\",\"296\",\"297\",\"298\",\"299\",\"300\",\"301\",\"302\",\"303\",\"304\",\"305\",\"306\",\"307\",\"308\",\"309\",\"310\",\"311\",\"312\",\"313\",\"314\",\"315\",\"316\",\"317\",\"318\",\"319\",\"320\",\"321\",\"322\",\"323\",\"324\",\"325\",\"326\",\"327\",\"328\",\"329\",\"330\",\"331\",\"332\",\"333\",\"334\",\"335\",\"336\",\"337\",\"338\",\"339\",\"340\",\"341\",\"342\",\"343\",\"344\",\"345\",\"346\",\"347\",\"348\",\"349\",\"350\",\"351\",\"352\",\"353\",\"354\",\"355\",\"356\",\"357\",\"358\",\"359\",\"360\",\"361\",\"362\",\"363\",\"364\",\"365\",\"366\",\"367\",\"368\",\"369\",\"370\",\"371\",\"372\",\"373\",\"374\",\"375\",\"376\",\"377\",\"378\",\"379\",\"380\",\"381\",\"382\",\"383\",\"384\",\"385\",\"386\",\"387\",\"388\",\"389\",\"390\",\"391\",\"392\",\"393\",\"394\",\"395\",\"396\",\"397\",\"398\",\"399\",\"400\",\"401\",\"402\",\"403\",\"404\",\"405\",\"406\",\"407\",\"408\",\"409\",\"410\",\"411\",\"412\",\"413\",\"414\",\"415\",\"416\",\"417\",\"418\",\"419\",\"420\",\"421\",\"422\",\"423\",\"424\",\"425\",\"426\",\"427\",\"428\",\"429\",\"430\",\"431\",\"432\",\"433\",\"434\",\"435\",\"436\",\"437\",\"438\",\"439\",\"440\",\"441\",\"442\",\"443\",\"444\",\"445\",\"446\",\"447\",\"448\",\"449\",\"450\",\"451\",\"452\",\"453\",\"454\",\"455\",\"456\",\"457\",\"458\",\"459\",\"460\",\"461\",\"462\",\"463\",\"464\",\"465\",\"466\",\"467\",\"468\",\"469\",\"470\",\"471\",\"472\",\"473\",\"474\",\"475\",\"476\",\"477\",\"478\",\"479\",\"480\",\"481\",\"482\",\"483\",\"484\",\"485\",\"486\",\"487\",\"488\",\"489\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"499\",\"500\",\"501\",\"502\",\"503\",\"504\",\"505\",\"506\",\"507\",\"508\",\"509\",\"510\",\"511\",\"512\",\"513\",\"514\",\"515\",\"516\",\"517\",\"518\",\"519\",\"520\",\"521\",\"522\",\"523\",\"524\",\"525\",\"526\",\"527\",\"528\",\"529\",\"530\",\"531\",\"532\",\"533\",\"534\",\"535\",\"536\",\"537\",\"538\",\"539\",\"540\",\"541\",\"542\",\"543\",\"544\",\"545\",\"546\",\"547\",\"548\",\"549\",\"550\",\"551\",\"552\",\"553\",\"554\",\"555\",\"556\",\"557\",\"558\",\"559\",\"560\",\"561\",\"562\",\"563\",\"564\",\"565\",\"566\",\"567\",\"568\",\"569\",\"570\");\n} //fin de if($IdEstado == \"20\")\n\nif($IdEstado == \"21\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\");\n} //fin de if($IdEstado == \"21\")\n\nif($IdEstado == \"22\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"22\")\n\nif($IdEstado == \"23\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"23\")\n\nif($IdEstado == \"24\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"24\")\n\nif($IdEstado == \"25\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"25\")\n\nif($IdEstado == \"26\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\");\n} //fin de if($IdEstado == \"26\")\n\nif($IdEstado == \"27\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"27\")\n\nif($IdEstado == \"28\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\");\n} //fin de if($IdEstado == \"28\")\n\nif($IdEstado == \"29\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\");\n} //fin de if($IdEstado == \"29\")\n\nif($IdEstado == \"30\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\");\n} //fin de if($IdEstado == \"30\")\n\nif($IdEstado == \"31\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\");\n} //fin de if($IdEstado == \"31\")\n\nif($IdEstado == \"32\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"32\")\n\n\n\n\n\t$LocCampo =$Campo;\n\tif (strlen($LocCampo) == TRES)\n\t{\n\t\tif(!in_array($LocCampo,$Mpio))\n\t\t{\n\t\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_Mpio.\"|\\n\";\n\t\t\tfwrite($GestorErr, $Error);\n\t\t\t$Bandera = UNO;\n\t\t}\t\n\t}\n\telse\n\t{\n\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_ErrTam.\"|\\n\";\n\t\tfwrite($GestorErr, $Error);\n\t\t$Bandera = UNO;\n\t}\n\treturn $Bandera;\n}", "function palabraDescubierta($coleccionLetras){\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n}", "function localidadConsultarNombreTec($criterio) {\n\n\t$query = \"SELECT localidad FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad'];\n}", "function stringLetrasDescubiertas($coleccionLetras){\n $pal = \"\";\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n \n return $pal;\n}", "function get_guias_nominadas(){\n\t\t$conect=ms_conect_server();\t\t\n\t\t$sQuery=\"SELECT * FROM nomina_detalle WHERE 1=1 ORDER BY id_guia\";\n\t\t\n\t\t//echo($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value; \n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\t\n}", "function obtenerCadenaCodigos($estudiantes){\n $cadena_codigos='';\n foreach ($estudiantes as $key => $row) {\n if(!$cadena_codigos){\n $cadena_codigos = $row['COD_ESTUDIANTE'];\n }else{\n $cadena_codigos .= \",\".$row['COD_ESTUDIANTE'];\n }\n }\n return $cadena_codigos;\n }", "function __($cadena) {\n return idioma::traducir($cadena);\n}", "function tipo_viajes($t = 0){\n\t\t$tipo_viajes = array(\"<span class=\\\"texto-claro\\\">No Capturado</span>\", \"Técnico\", \"Alto Nivel\");\n\t\treturn $tipo_viajes[$t];\n\t}", "function todas($suscriptor, $orden) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * FROM `facturacion_lecturas` WHERE `suscriptor` ='\" . $suscriptor . \"' ORDER BY `fecha` \" . strtoupper($orden) . \";\";\n $consulta = $db->sql_query($sql);\n $filas = array();\n while ($fila = $db->sql_fetchrow($consulta)) {\n array_push($filas, $fila);\n }\n return($filas);\n }", "function geef_kolommen($categorie) {\n\t\tglobal $pdo;\n\t\t\n\t\t$tmp = array();\n\t\t\n\t\t$stmt = $pdo->prepare(\"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'auto_mate' AND `TABLE_NAME` = ?\");\n\t\t$stmt->execute(array($categorie));\n\t\t\n\t\t$rij = $stmt->fetchAll();\n\t\t\n\t\tforeach($rij as $kolom) {\n\t\t\t$tmp[] = $kolom[\"COLUMN_NAME\"];\n\t\t}\n\t\n\t\treturn $tmp;\n\t}", "function grafico_1_2( $desde, $hasta, $ua ){\n\t// aclarar al cliente que debe setear campos bien definidos y NO PERMITIR AMBIGUEDADES\n\t\n\t$query = \"select actor.nombre, actor.apellido, actor.id_campo, count(noticiasactor.id_actor) as cantidad from noticiascliente \"\n\t\t. \"inner join noticiasactor on noticiascliente.id_noticia = noticiasactor.id_noticia \"\n\t\t. \"inner join noticias on noticiasactor.id_noticia = noticias.id \"\n\t\t. \"inner join actor on noticiasactor.id_actor = actor.id \"\n\t\t. \"where \"\n\t\t\t. \"noticiascliente.id_cliente = \" . $ua . \" and \"\n\t\t\t. \"noticiascliente.elim = 0 and \"\n\t\t\t. \"noticias.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59' \"\n\t\t\t// SOLO QUIENES TIENEN 3 Y 4 COMO CAMPO\n\t\t\t. \" and ( actor.id_campo like '%3%' or actor.id_campo like '%4%' ) \"\n\t\t. \"group by noticiasactor.id_actor order by cantidad desc\";\n\t$main = R::getAll($query);\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\n\t// var_dump($main);\n\t$tabla = [];\n\t// unidad de analisis, campo, actor, cantidad de menciones\n\t$i = -1;\n\tforeach($main as $k=>$v){\n\t\t// por ahora solo considero los dos posibles campos\n\t\t$tabla[ ++$i ] = [\n\t\t\t'ua' => $ua_nombre,\n\t\t\t'campo' => ( strpos( $v['id_campo'], '3' ) !== false ) ? 'oposicion' : 'oficialismo',\n\t\t\t'actor' => $v['apellido'] . ' ' . $v['nombre'],\n\t\t\t'cantidad' => $v['cantidad']\n\t\t\t];\n\t}\n\t// var_dump($tabla);\n\t\n\t// grafico\n\t$oficialismo = new StdClass(); // objeto vacio\n\t$oficialismo->name = 'Oficialismo';\n\t$oficialismo->rank = 0;\n\t$oficialismo->weight = 'Yellow';\n\t$oficialismo->id = 1;\n\t$oficialismo->children = [];\n\t\n\t$oposicion = new StdClass(); // objeto vacio\n\t$oposicion->name = 'Oposicion';\n\t$oposicion->rank = 0;\n\t$oposicion->weight = 'LightBlue';\n\t$oposicion->id = 1;\n\t$oposicion->children = [];\n\t\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Campos';\n\t$objeto->rank = 0;\n\t$objeto->weight = 'Gray';\n\t$objeto->id = 1;\n\t$objeto->children = [ $oficialismo, $oposicion ];\n\t\n\t$i_of = 0;\n\t$i_op = 0;\n\t\n\tforeach($tabla as $v){\n\t\t$sub = new StdClass(); // objeto vacio\n\t\t$sub->name = $v['actor'] . ' (' . $v['cantidad'] . ')';\n\t\t$sub->rank = $v['cantidad'];\n\t\t// $sub->weight = 0;\n\t\t$sub->cantidad = $v['cantidad'];\n\t\t$sub->id = 1;\n\t\t$sub->children = [ ];\n\t\tif($v['campo'] == 'oposicion'){\n\t\t\t$i_op += 1;\n\t\t\t$sub->weight = 'Blue';\n\t\t\t$oposicion->children[] = $sub;\n\t\t}\n\t\telse{ \n\t\t\t$i_of += 1;\n\t\t\t$sub->weight = 'White';\n\t\t\t$oficialismo->children[] = $sub;\n\t\t}\n\t}\n\t\n\t$oposicion->rank = $i_op;\n\t$oficialismo->rank = $i_of;\n\t\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto\n\t\t// ,'temas' => $temas\n\t\t];\n\t\n}", "public function\tnomemese($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"n\",$data)-1;\n\t\t$mesi = array( \"Gennaio\", \"Febbraio\", \"Marzo\", \"Aprile\", \"Maggio\", \"Giugno\", \"Luglio\", \"Agosto\", \"Settembre\", \"Ottobre\", \"Novembre\", \"Dicembre\" );\n\t\treturn $mesi[$data];\n\t}", "public function obtenerViajesplusAbonados();", "function defineCategoriaCompetidor(string $nome, string $idade) : ?string\n{\n $categorias = ['infantil', 'adulto', 'adolescente' ];\n\n if (validaNome($nome) && validaIdade($idade))\n {\n removerMensagemErro();\n if ($idade >= 0 && $idade <= 12)\n {\n foreach ($categorias as $keys => $value)\n {\n if($value == 'infantil')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n elseif ($idade >= 13 && $idade <= 17)\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adolescente')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n else\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adulto')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n\n }\n removerMensagemSucesso();\n return obterMensagemErro();\n}", "function Mesabreviado($varmesabrev)\n{\n\tif ($varmesabrev == 1) return \"JAN\";\n\tif ($varmesabrev == 2) return \"FEB\";\n\tif ($varmesabrev == 3) return \"MAR\";\n\tif ($varmesabrev == 4) return \"APR\";\n\tif ($varmesabrev == 5) return \"MAJ\";\n\tif ($varmesabrev == 6) return \"JUN\";\n\tif ($varmesabrev == 7) return \"JUL\";\n\tif ($varmesabrev == 8) return \"AUG\";\n\tif ($varmesabrev == 9) return \"SEP\";\n\tif ($varmesabrev == 10) return \"OCT\";\n\tif ($varmesabrev == 11) return \"NOV\";\n\tif ($varmesabrev == 12) return \"DEC\";\n}", "function pegaEstados()\n {\n $lista_estados = array(\n 'ac' => 'Acre',\n 'al' => 'Alagoas',\n 'ap' => 'Amapá',\n 'am' => 'Amazonas',\n 'ba' => 'Bahia',\n 'ce' => 'Ceará',\n 'df' => 'Distrito Federal',\n 'es' => 'Espirito Santo',\n 'go' => 'Goiás',\n 'ma' => 'Maranhão',\n 'ms' => 'Mato Grosso do Sul',\n 'mt' => 'Mato Grosso',\n 'mg' => 'Minas Gerais',\n 'pa' => 'Pará',\n 'pb' => 'Paraíba',\n 'pr' => 'Paraná',\n 'pe' => 'Pernanbuco',\n 'pi' => 'Piauí',\n 'rj' => 'Rio de Janeiro',\n 'rn' => 'Rio Grande do Norte',\n 'rs' => 'Rio Grande do Sul',\n 'ro' => 'Rondônia',\n 'rr' => 'Roraima',\n 'sc' => 'Santa Catarina',\n 'sp' => 'São Paulo',\n 'se' => 'Sergipe',\n 'to' => 'Tocantis'\n );\n\n\n return $lista_estados;\n }", "function NUMERO_LUNES($_ARGS) {\r\n\tlist($ap, $mp)=SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t$dias_del_mes = DIAS_DEL_MES($periodo_inicio);\r\n\t\r\n\tif (($primer_dia_semana == 0 || $primer_dia_semana == 6) && $dias_del_mes == 31) $lunes = 5;\r\n\telseif ($primer_dia_semana == 1 && ($dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telseif ($primer_dia_semana == 2 && ($dias_del_mes == 29 || $dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telse $lunes = 4;\r\n\t\r\n\treturn $lunes;\r\n}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return ($v[$i]);\r\n\t\t$i++;\r\n\t}\r\n}", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "function get_centro_costo($codigo,$nombre = '',$situacion = '',$habiles = '') {\n\t\t$nombre = trim($nombre);\n\t\t\n $sql= \"SELECT * \";\n\t\t$sql.= \" FROM sis_centro_costo\";\n\t\t$sql.= \" WHERE 1 = 1\";\n\t\tif(strlen($codigo)>0) { \n\t\t\t$sql.= \" AND cc_codigo = $codigo\"; \n\t\t}\n\t\tif(strlen($nombre)>0) { \n\t\t\t$sql.= \" AND cc_nombre like '%$nombre%'\"; \n\t\t}\n\t\tif(strlen($situacion)>0) { \n\t\t\t$sql.= \" AND cc_situacion = $situacion\"; \n\t\t}\n if(strlen($habiles)>0) { \n\t\t\t$sql.= \" AND cc_codigo != 0\"; \n\t\t}\n\t\t$sql.= \" ORDER BY cc_codigo ASC, cc_situacion DESC\";\n\t\t\n\t\t$result = $this->exec_query($sql);\n\t\t//echo $sql;\n\t\treturn $result;\n\n\t}", "public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}", "function CampoEnum($tabla,$campo,$Comentario,$valor=\"\"){\n\t\t$sql = \"DESCRIBE $tabla $campo\";\n\t\t$result = mysql_query($sql);\n\t\techo \"\\t<tr><td>$Comentario</td>\\n\";\n\t\twhile ($ligne = mysql_fetch_array($result)) {\n\t\t\textract($ligne, EXTR_PREFIX_ALL, \"IN\");\n\t\t\tif (substr($IN_Type,0,4)=='enum'){\n\t\t\t\t$liste = substr($IN_Type,5,strlen($IN_Type));\n\t\t\t\t$liste = substr($liste,0,(strlen($liste)-2));\n\t\t\t\t$enums = explode(',',$liste);\n\t\t\t\tif (sizeof($enums)>0){\n\t\t\t\t\t\n\t\t\t\t\techo \"\\t<td><select name='$campo' >\\n\";\n\t\t\t\t\tfor ($i=0; $i<sizeof($enums);$i++){\n\t\t\t\t\t\t$elem = trim(strtr($enums[$i],\"'\",\" \"));\n\t\t\t\t\t\tif(trim($elem)==trim($valor))$seleccionar=\"selected\";\n\t\t\t\t\t \telse $seleccionar=\"\";\n\t\t\t\t\t\techo \"\\t\\t<option $seleccionar value='\".$elem.\"'>\".$elem.\"</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"\\t</select>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"\\t</td></tr>\\n\";\n\t}", "function NUMERO_LUNES_FECHA($_ARGS) {\r\n\t$_FECHA_EGRESO = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif (ESTADO($_ARGS) == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['HASTA']) list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\telse list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']);\r\n\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t} else {\r\n\t\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mi-$ai\";\t$diai = (int) $di;\r\n\t\t\t\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_FECHA_EGRESO);\r\n\t\t\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t} else {\t\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mp-$ap\";\t$diai = (int) $di;\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$lunes = 0;\r\n\tfor ($dia=$dia_inicio; $dia<=$dia_fin; $dia++) {\r\n\t\tif ($dia_semana == 7) $dia_semana = 0;\r\n\t\tif ($dia_semana == 1) $lunes++;\r\n\t\t$dia_semana++;\r\n\t}\r\n\treturn $lunes;\r\n}", "private function obtenerIdioma($idioma){\n\t\tif (strpos($idioma, \"Español Latino\") !== false) {\n\t\t\treturn \"ESPL\";\n\t\t} else if(strpos($idioma, \"Español Castellano\") !== false){\n\t\t\treturn \"ESP\";\n\t\t} else if(strpos($idioma, \"Ingles\") !== false){\n\t\t\treturn \"ENG\";\n\t\t} else if(strpos($idioma, \"VOSE\") !== false) {\n\t\t\treturn \"VOSE\";\t\n\t\t}\n\t\t\n\t\treturn \"-\";\n\t}", "function Geral() {\r\n extract($GLOBALS);\r\n if ($P1==1 && $O=='I' &&f($RS_Menu,'envio_inclusao')=='S') {\r\n // Recupera a chave do trâmite de cadastramento\r\n $sql = new db_getTramiteList; $RS = $sql->getInstanceOf($dbms,$w_menu,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc');\r\n foreach($RS as $row) { \r\n $w_tramite = f($row,'sq_siw_tramite'); \r\n break; \r\n }\r\n \r\n $w_envio_inclusao = 'S';\r\n } else {\r\n $w_envio_inclusao = 'N';\r\n }\r\n if ($SG=='SRTRANSP') {\r\n include_once('transporte_gerais.php');\r\n } elseif ($SG=='SRSOLCEL') {\r\n include_once('celular_gerais.php');\r\n } else {\r\n include_once('geral_gerais.php');\r\n }\r\n}", "function str_oracion($cadena)\n{\n $palabras = explode('_', $cadena);\n $oracion = '';\n for($i=0; $i < count($palabras) ; $i++){\n if($i == 0){\n $palabras[$i] = ucfirst($palabras[$i]);\n }\n $oracion = $oracion.' '.$palabras[$i];\n }\n return $oracion;\n}", "function tipo_locazione($id_tipo_locazione=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\tif ($id_tipo_locazione==\"all\") {\n\t\treturn \"Tutti gli Immobili\";\n\t}\n\t$q=\"select * from tipo_locazione where id_tipo_locazione = $id_tipo_locazione\";\n\t$r=$db->query($q);\n\tif (!$r) {\n\t\treturn \"Dato Assente\";\n\t}else{\n\t\t$ro= mysql_fetch_array($r);\n\t\treturn $ro['nome'];\n\t}\n}", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "public function getLinha();", "protected function getColunas() \r\n\t{\r\n\t\treturn $this->aColunas;\r\n\t}", "protected function campos($coluna, $itens)\r\n {\r\n return $itens[$coluna];\r\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function listar_areas_curriculares() {\n\t\t$query = \"SELECT material_area_curricular.*\n\t\tFROM material_area_curricular\n\t\tORDER BY orden_ac asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function localidadConsultarNombre($criterio) {\n\n\t$query = \"SELECT localidad_nombre FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad_nombre'];\n}", "function string_mes ($mes) {\n\t\n\tswitch ($mes) {\n case 1:\n return \"janeiro\";\n break;\n case 2:\n return \"fevereiro\";\n break;\n case 3:\n return \"mar&ccedil;o\";\n break;\n case 4:\n return \"abril\";\n break;\n case 5:\n return \"maio\";\n break;\n case 6:\n return \"junho\";\n break;\n case 7:\n return \"julho\";\n break;\n case 8:\n return \"agosto\";\n break;\n case 9:\n return \"setembro\";\n break;\n case 10:\n return \"outubro\";\n break;\n case 11:\n return \"novembro\";\n break;\n case 12:\n return \"dezembro\";\n break;\n\t} //End IF switch\n}", "public function accueil()\n {\n }" ]
[ "0.64376986", "0.59332156", "0.59222746", "0.59177816", "0.59115803", "0.5819328", "0.5817711", "0.578492", "0.5781687", "0.5758593", "0.57579345", "0.5716883", "0.56922805", "0.5668861", "0.5657238", "0.5647925", "0.56365913", "0.5633974", "0.5627795", "0.56224394", "0.5615496", "0.5601943", "0.5601732", "0.5594949", "0.55862224", "0.55858177", "0.5580312", "0.557687", "0.5571913", "0.5558918", "0.55561614", "0.55484504", "0.5540485", "0.5525947", "0.5521693", "0.5514847", "0.5480977", "0.54569995", "0.54542935", "0.5448426", "0.54467607", "0.544181", "0.54414165", "0.54397464", "0.543923", "0.54335797", "0.5427571", "0.5423938", "0.5419241", "0.54168445", "0.5416208", "0.54115033", "0.5407352", "0.54002887", "0.53998774", "0.53953564", "0.53952", "0.53901964", "0.5380582", "0.53714216", "0.53678715", "0.5367293", "0.53642005", "0.5361854", "0.5360346", "0.535542", "0.5345295", "0.53422457", "0.5339626", "0.53366715", "0.5334334", "0.5321817", "0.5321151", "0.53174293", "0.5314841", "0.5309491", "0.53092074", "0.5308305", "0.530252", "0.5298897", "0.52940816", "0.5293983", "0.5287572", "0.52868783", "0.5283373", "0.527847", "0.5274897", "0.52709067", "0.52683103", "0.5268269", "0.5265205", "0.526421", "0.5263965", "0.52626467", "0.5257247", "0.5256602", "0.5255522", "0.5246096", "0.5245659", "0.5243378", "0.52419186" ]
0.0
-1
LUOGO E DATE EVENTO(i)
function stampaDove($numeroEvento, $conn) { $stmt = $conn->prepare("SELECT L.nome AS dove FROM ((Evento AS E INNER JOIN eventoLuogoData AS eld ON E.id = eld.id_evento) INNER JOIN Luogo AS L ON L.id = eld.id_luogo) WHERE E.id = ?"); $stmt->bind_param("i", $numeroEvento); $stmt->execute(); $stmt->bind_result($dove); $stmt->fetch(); return "<div class='w3-row'>" ."<div class='w3-col s9'>" ."<h2> Luogo: " . $dove . "<h2>" ."</div>" ."<div class='w3-col s3 '>" ."<h3><button class='w3-button w3-block w3-ripple w3-dark-grey w3-hover-grey w3-round-large mostraMappa'>Mostra Mappa</button></h3>" ."</div>" ."</div>"; $stmt->close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDate($i);", "public function getDateDebut();", "function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }", "function getEvents($date, $groupe){\n\t/*La date nous est donnée au format JJ-MM-AAAA*/\n\t$ex_date = explode('-', $date);\n\t$dateCherchee = new DateTime($ex_date[2].'-'.$ex_date[1].'-'.$ex_date[0]);\n\t\n try{\n\t\t$bdd = new PDO('mysql:host=localhost;dbname=trip_manager;charset=utf8', 'root', '');\n\t}catch (Exception $e){\n\t\tdie('Erreur : ' . $e->getMessage());\n\t}\n\t\n $eventListHTML = '';\n\n $result = $bdd->query(\"SELECT * FROM events WHERE groupe = '\".$groupe.\"' AND status = 1\");\n \n while($donnees = $result->fetch()){\n\t\tif($donnees['date'] !== ''){\n\t\t\t$ranges = explode('+', $donnees['date']);\n\t\t\tfor($i=0; $i<count($ranges); $i++){\n\t\t\t\t$dates = explode(';', $ranges[$i]);\n\t\t\t\t$date_debut = $dates[0];\n\t\t\t\t$date_fin = $dates[1];\n\t\t\t\t\n\t\t\t\t$start_date = new DateTime($date_debut);\n\t\t\t\t\n\t\t\t\t$end_date = new DateTime($date_fin);\n\t\t\t\t\n\t\t\t\tif(($start_date<=$dateCherchee) && ($end_date>= $dateCherchee)){\n\t\t\t\t\t$membre_id = str_replace(\"Disponibilité de \", \"\", $donnees['title']);\n\t\t\t\t\t\n\t\t\t\t\t$couleur = getColorS($groupe,$membre_id);\n\t\t\t\t\t\n\t\t\t\t\t$eventListHTML .= '<span class=\"color\" style=\"background-color: '.$couleur.';\"></span>';\n\t\t\t\t\tbreak 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n \n return $eventListHTML;\n}", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function liste_evenements($id_agenda, $T_debut_periode, $T_fin_periode, $journee_order_by=true, $type_sortie=\"lecture\")\r\n{\r\n\t////\tPériode simple : début dans la période || fin dans la période || debut < periode < fin\r\n\t$date_debut\t\t= strftime(\"%Y-%m-%d %H:%M:00\", $T_debut_periode);\r\n\t$date_fin\t\t= strftime(\"%Y-%m-%d %H:%M:59\", $T_fin_periode);\r\n\t$sql_periode\t= \"((T1.date_debut between '\".$date_debut.\"' and '\".$date_fin.\"') OR (T1.date_fin between '\".$date_debut.\"' and '\".$date_fin.\"') OR (T1.date_debut < '\".$date_debut.\"' and T1.date_fin > '\".$date_fin.\"'))\";\r\n\t////\tPériodicité des événements : type périodicité spécifié && debut déjà commencé && fin pas spécifié/arrivé && date pas dans les exceptions && périodicité jour/semaine/mois/annee\r\n\t$period_date_fin = strftime(\"%Y-%m-%d\", $T_fin_periode);\r\n\t$date_ymd\t\t= strftime(\"%Y-%m-%d\", $T_debut_periode);\r\n\t$jour_semaine\t= str_replace(\"0\",\"7\",strftime(\"%w\",$T_debut_periode)); // de 1 à 7 (lundi à dimanche)\r\n\t$mois\t\t\t= strftime(\"%m\",$T_debut_periode); // mois de l'annee en numérique => 01 à 12\r\n\t$jour_mois\t\t= strftime(\"%d\",$T_debut_periode); // jour du mois en numérique => 01 à 31\r\n\t$jour_annee\t\t= strftime(\"%m-%d\", $T_debut_periode);\r\n\t$periodicite\t= \"(T1.periodicite_type is not null AND T1.date_debut<'\".$date_debut.\"' AND (T1.period_date_fin is null or '\".$period_date_fin.\"'<=T1.period_date_fin) AND (T1.period_date_exception is null or period_date_exception not like '%\".$date_ymd.\"%') AND ((T1.periodicite_type='jour_semaine' and T1.periodicite_valeurs like '%\".$jour_semaine.\"%') OR (T1.periodicite_type='jour_mois' and T1.periodicite_valeurs like '%\".$jour_mois.\"%') OR (T1.periodicite_type='mois' and T1.periodicite_valeurs like '%\".$mois.\"%' and DATE_FORMAT(T1.date_debut,'%d')='\".$jour_mois.\"') OR (T1.periodicite_type='annee' and DATE_FORMAT(T1.date_debut,'%m-%d')='\".$jour_annee.\"')))\";\r\n\t////\tRécupère la liste des evenements ($order_by_sql==\"heure_debut\" si on récup les évenements d'1 jour, pour pouvoir bien intégrer les evenements récurents)\r\n\t$order_by_sql = ($journee_order_by==true) ? \"DATE_FORMAT(T1.date_debut,'%H')\" : \"T1.date_debut\";\r\n\t$liste_evenements_tmp = db_tableau(\"SELECT T1.* FROM gt_agenda_evenement T1, gt_agenda_jointure_evenement T2 WHERE T1.id_evenement=T2.id_evenement AND T2.id_agenda='\".intval($id_agenda).\")' AND T2.confirme='1' AND (\".$sql_periode.\" OR \".$periodicite.\") ORDER BY \".$order_by_sql.\" asc\");\r\n\r\n\t////\tCree le tableau de sortie (en ajoutant le droit d'accès, masquant les libellés si besoin, etc.)\r\n\tglobal $objet;\r\n\t$liste_evenements = array();\r\n\tforeach($liste_evenements_tmp as $key_evt => $evt_tmp)\r\n\t{\r\n\t\t$droit_acces = droit_acces($objet[\"evenement\"], $evt_tmp, false);\r\n\t\tif($type_sortie==\"tout\" || ($type_sortie==\"lecture\" && $droit_acces>0))\r\n\t\t{\r\n\t\t\t// Ajoute l'evenement au tableau de sortie avec son droit d'accès\r\n\t\t\t$liste_evenements[$key_evt] = $evt_tmp;\r\n\t\t\t$liste_evenements[$key_evt][\"droit_acces\"] = $droit_acces;\r\n\t\t\t// masque les détails si besoin : \"evt public mais détails masqués\"\r\n\t\t\tif($type_sortie==\"lecture\") $liste_evenements[$key_evt] = masque_details_evt($liste_evenements[$key_evt]);\r\n\t\t}\r\n\t}\r\n\treturn $liste_evenements;\r\n}", "public function groupes_ali_et_cal() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$cal = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t$cal = $cal + ($rep['Aliment']['Donneesaliment'][1]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t$valresul = $valsplit[1];\n\t\t\t\t\t\t$cal = $cal + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('cal',$cal);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}", "private function eventDateOcuppied(Event $event) {\n $select = new Select();\n $select->from( $this->_events );\n // Create betweens\n $betweenStartAt = new Expression(\"BETWEEN ({$event->getStartAt()}+1) AND ({$event->getFinishAt()}-1) \"); \n $betweenNewStartAt = new Expression(\"BETWEEN start_at AND finish_at \");\n $select->where( [\n 'id != ?' => (integer)$event->getId(),\n 'room_id = ?' => (integer)$event->getRoomId(),\n '(start_at ? ' => $betweenStartAt, // Notice! open parenthesis \n ]);\n // Build date range \n $select->where( [ \"finish_at ? \" => $betweenStartAt, ], Predicate::OP_OR );\n $select->where( [ \"(\".$event->getStartAt().\"+1) ? )\" => $betweenNewStartAt, ], Predicate::OP_OR );// Notice! closing parenthesis\n \n $exists = new RecordExists( $select );\n// DEBUG ONLY\n //$sql = new Sql( $this->db );\n //$statement = $sql->prepareStatementForSqlObject($select); \n //echo $sql->buildSqlString( $select ); die();\n// DEBUG ONLY\n \n // We still need to set our database adapter\n $exists->setAdapter( $this->db );\n return $exists->isValid( $event->getId() ); \n }", "function dia_en_entero($anio,$i,$mes){\t\n\t\t\n\t\t\t$fecha= \"$anio/$mes/$i\";\n\t\t\t$l = strtotime($fecha);\n\t\t\t$validar=jddayofweek(cal_to_jd(CAL_GREGORIAN, date(\"m\",$l),date(\"d\",$l), date(\"Y\",$l)) , 0 );\n\t\t\t\t\t\t\t\n\t\t\treturn $validar;\n\t\t}", "function LoadWeek($WeekNumber)\n {\n //Construction du tableau\n $days = array('lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi','samedi','dimanche');\n\n //Semaine en cours\n $week = ($WeekNumber == 'current')? date('W') : $WeekNumber;\n $year = date('Y');\n echo $StartDate = Date::GetFirstDay($week, $year);\n\n //Affichage de la semaine et des controles de selection\n $html = $this->GetTool($week);\n\n $html .= \"<div class='content-panel'>\";\n //Tableau de la semaine\n $html .= \"<table id='taAgenda' class='calendar'>\";\n\n //Entete\n $html .= '<tr>';\n $html .= '<td class=\"subTitle\"></td>';\n\n //\n $dateDay = array();\n foreach($days as $day)\n {\n //Creation de la date actuelle\n $dateDay[] = $StartDate;\n\n $html .=\t'<th class=\"subTitle\">'.$this->Core->GetCode($day);\n $html .= '<span class=\"calendar date\">'.$StartDate.'</span>';\n $html .= '</th>';\n\n $StartDate = Date::AddDay($StartDate, 1);\n }\n\n //Creation des lignes\n $html .= '</tr>';\n\n //recuperation des evenements de l'utilisateur\n echo \"DateStart : \" . $DateStart = Date::AddDay($dateDay[0],-1, true);\n echo \"Date End :\" . $DateEnd = Date::AddDay($dateDay[0],7, true);\n\n $AgendaEvent = new AgendaEvent($this->Core);\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"UserId\", EQUAL, $this->Core->User->IdEntite));\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"DateStart\", MORE, $DateStart));\n $AgendaEvent->AddArgument(new Argument(\"Apps\\Agenda\\Entity\\AgendaEvent\", \"DateEnd\", LESS, $DateEnd));\n $EventsUser = $AgendaEvent->GetByArg();\n\n //Recuperation Des évenement ou l'utilisateur est invités\n $EventInvits = AgendaEvent::GetInvitation($this->Core, $this->Core->User->IdEntite, $DateStart, $DateEnd);\n\n for($hours=0; $hours < 24; $hours++)\n {\n $html .= '<tr>';\n\n if($hours < 10)\n {\n $hours = \"0\".$hours;\n }\n\n $html .= '<td>'.$hours.':00</td>';\n\n //Parcourt des jours\n //foreach($dateDay as $day)\n for($d = 0; $d < count($dateDay) ; $d++ )\n {\n //Charge un tableau avec touts les rendez-vous\n $drawCell = true;\n\n //Parcourt des rendez-vous de l'utilisateur\n if(count($EventsUser) > 0)\n {\n foreach($EventsUser as $event)\n {\n echo \"DATE :\" . $event->DateStart->Value . \"\" . $dateDay[$d].' '.$hours.':00:00';\n \n //Evenement qui commence dans la cellule\n if($event->DateStart->Value == $dateDay[$d].' '.$hours.':00:00' )\n {\n //Dimension de l'evenement\n $rowSpan = DateHelper::GetDiffHour($event->DateStart->Value, $event->DateEnd->Value);\n $colSpan = DateHelper::GetDiffDay($event->DateStart->Value, $event->DateEnd->Value);\n\n\n //Affichage de la cellule\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\" >';\n $html .= $this->GetEvent($event, $colSpan, $rowSpan);\n $html.='</td>';\n\n $drawCell = false;\n }\n }\n }\n\n //Evenements invités\n if(count($EventInvits) > 0)\n {\n foreach($EventInvits as $event)\n {\n //Evenement qui commence dans la cellule\n if($event->Event->Value->DateStart->Value == $dateDay[$d].' '.$hours.':00:00' )\n {\n //Dimension de l'evenement\n $rowSpan = DateHelper::GetDiffHour($event->Event->Value->DateStart->Value, $event->Event->Value->DateEnd->Value);\n $colSpan = DateHelper::GetDiffDay($event->Event->Value->DateStart->Value, $event->Event->Value->DateEnd->Value);\n\n //Affichage de la cellule\n //$html .=\t '<td id=\"'.$day.'!'.$hours.'\" colspan=\"'.$colSpan.'\" rowspan=\"'.$rowSpan.'\" >';\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\" >';\n\n $html .=\t$this->GetInvit($event, $colSpan, $rowSpan);\n $html.='</td>';\n\n $drawCell = false;\n }\n }\n }\n\n //La cellule n'a pas d'évenement\n if($drawCell)\n {\n $html .=\t '<td id=\"'.$dateDay[$d].'!'.$hours.'\"></td>';\n }\n }\n\n $html .= '</tr>';\n }\n $html .= \"</table'>\";\n\n $html .= \"</div>\";\n\n echo $html;\n }", "function get_timestamp_jour_suivant($timestamp_today) {\n\tglobal $mysqli;\n\t$demain=false;\n\n\t$tab_nom_jour=array('dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi');\n\t$sql=\"SELECT * from horaires_etablissement WHERE ouverture_horaire_etablissement!=fermeture_horaire_etablissement AND ouvert_horaire_etablissement!='0' ORDER BY id_horaire_etablissement;\";\n\t$res_jours_ouverts=mysqli_query($mysqli, $sql);\n\tif($res_jours_ouverts->num_rows > 0) {\n\t\t$tab_jours_ouverture=array();\n\t\twhile($lig_j = $res_jours_ouverts->fetch_object()) {\n\t\t\t$tab_jours_ouverture[]=$lig_j->jour_horaire_etablissement;\n\t\t\t//echo \"\\$tab_jours_ouverture[]=\".$lig_j->jour_horaire_etablissement.\"<br />\";\n\t\t}\n\t\t$res_jours_ouverts->close();\n\n\t\t$compteur=0;\n\t\t$j_prec = $timestamp_today - 3600*24;\n\t\twhile((isset($tab_nom_jour[strftime(\"%w\",$j_prec)]))&&(!in_array($tab_nom_jour[strftime(\"%w\",$j_prec)],$tab_jours_ouverture))&&($compteur<8)) {\n\t\t\t$j_prec -= 3600*24;\n\t\t\t$compteur++;\n\t\t}\n\t\tif($compteur<7) {\n\t\t\t$hier=$j_prec;\n\t\t}\n\n\t\t$compteur=0;\n\t\t$j_suiv = $timestamp_today + 3600*24;\n\t\twhile((isset($tab_nom_jour[strftime(\"%w\",$j_suiv)]))&&(!in_array($tab_nom_jour[strftime(\"%w\",$j_suiv)],$tab_jours_ouverture))&&($compteur<8)) {\n\t\t\t$j_suiv += 3600*24;\n\t\t\t$compteur++;\n\t\t}\n\t\tif($compteur<7) {\n\t\t\t$demain=$j_suiv;\n\t\t}\n\t}\n\n\treturn $demain;\n}", "public function aggiornaEvento($date,$place,$description,$imm) {\n $this->data=$date;\n $this->luogo=$place;\n $this->descrizione=$description;\n $this->idimg=$imm;\n}", "private function getArrayFromAulario($date) {\r\n if (self::sanitizeDate($date)) {\r\n $orario = explode(\"-\", $date);\r\n $year = $orario[0];\r\n $mounth = $orario[1];\r\n $day = $orario[2];\r\n $html = file_get_contents(\"https://aulario.dmsa.unipd.it/mrbs/day.php?year=\" . $year . \"&month=\" . $mounth . \"&day=\" . $day);\r\n //serializzo\r\n $parsifiedHTML = str_get_html($html);\r\n $prenotazione = array();\r\n $aule = array(\"LU3\", \"LU4\", \"P1\", \"P2\", \"P3\", \"P300\", \"P4\", \"P5\");\r\n $cont = 0;\r\n foreach ($parsifiedHTML->find('table') as $tables) {\r\n $cont++;\r\n if ($cont == 8) { //ci sono 2 tabelle, la prima è il calendarietto e la seconda la vista agenda \r\n $indice = 0;\r\n for ($i = 1; $i < 9; $i++) {\r\n $thSaver = 0;\r\n foreach ($tables->find('tr') as $riga) {\r\n if ($thSaver == 0) {\r\n $thSaver++;\r\n } else {\r\n $celle = $riga->find('td');\r\n $ore = $celle[0]->find('a');\r\n $ora = $ore[0]->text();\r\n $script = $celle[$i]->find('script');\r\n if ($script == null) { // se l'aula è prenotata (se la cella è vuota, dentro a td c'è una table con uno script)\r\n $link = $celle[$i]->find('a');\r\n if (!isset($link) || $link == null || $ora==\"19:00\") { // continuazione della prenotazione\r\n $prenotazione[$indice - 1][3] = $ora; // aggiorno ora fine e non incremento $indice\r\n } else { // nuova prenotazione\r\n $prenotazione[$indice][0] = $aule[$i - 1]; // AULA\r\n $prenotazione[$indice][1] = $date; // DATA\r\n $prenotazione[$indice][2] = $ora; // ORA INIZIO\r\n // ORA FINE viene aggiornata al ciclo successivo\r\n $prenotazione[$indice][4] = $link[0]->text(); // CORSO\r\n $prenotazione[$indice][5] = substr($link[0]->title, 14); // COGNOME PROF\r\n $prenotazione[$indice][6] = 0; // NOME PROF\r\n // non è la prima prenotazione dell'aula -> aggiorno ora fine prenotazione prec\r\n if ($indice > 0 && $prenotazione[$indice - 1][0]==$prenotazione[$indice][0] ) { \r\n $prenotazione[$indice - 1][3] = $ora;\r\n }\r\n $indice++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n $prenotazione[$indice][0] = \"P6\"; // AULA\r\n $prenotazione[$indice][1] = $date; // DATA\r\n $prenotazione[$indice][2] = \"07:00\"; // ORA INIZIO\r\n $prenotazione[$indice][3] = \"19:00\"; // ORA FINE \r\n $prenotazione[$indice][4] = \"Servizio Organizzazione/Formazione\"; // CORSO\r\n $prenotazione[$indice][5] = \"Aula gestita dalla Segreteria Delegato Spazi Didattici\"; // COGNOME PROF\r\n $prenotazione[$indice][6] = 0; // NOME PROF\r\n return $prenotazione;\r\n }\r\n }\r\n } else {\r\n echo \"<p>Errore sull'input</p>\";\r\n return;\r\n }\r\n }", "public function get_exception_dates();", "function agenda_date_debut_liste($date, $affichage_debut = 'date_jour') {\n\tswitch ($affichage_debut) {\n\t\tcase 'date_jour':\n\t\t\tbreak;\n\t\tcase 'date_veille':\n\t\t\t$date = agenda_jourdecal($date, -1);\n\t\t\tbreak;\n\t\tcase 'debut_semaine':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_semaine_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1+7));\n\t\t\tbreak;\n\t\tcase 'debut_mois':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_mois_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -1); // precedent\n\t\t\tbreak;\n\t\tcase 'debut_mois_1':\n\t\tcase 'debut_mois_2':\n\t\tcase 'debut_mois_3':\n\t\tcase 'debut_mois_4':\n\t\tcase 'debut_mois_5':\n\t\tcase 'debut_mois_6':\n\t\tcase 'debut_mois_7':\n\t\tcase 'debut_mois_8':\n\t\tcase 'debut_mois_9':\n\t\tcase 'debut_mois_10':\n\t\tcase 'debut_mois_11':\n\t\tcase 'debut_mois_12':\n\t\t\t$t = strtotime($date);\n\t\t\t$mdebut = intval(substr($affichage_debut, strlen('debut_mois_')));\n\t\t\t$mcourant = date('n', $t);\n\t\t\t$offset = ($mcourant-$mdebut+12)%12;\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -$offset);\n\t\t\tbreak;\n\t}\n\treturn $date;\n}", "function qtdDiasUteis($hoje, $vencto) {\r\n $proxDia = proximoDiaUtil($vencto);\r\n $proxDia = retornaData($proxDia, 2);\r\n //$inicio = new DateTime($vencto);\r\n $inicio = new DateTime($proxDia);\r\n $fim = new DateTime($hoje);\r\n $fim->modify('+1 day');\r\n $diasUt = 0;\r\n\r\n $interval = new DateInterval('P1D');\r\n $periodo = new DatePeriod($inicio, $interval, $fim);\r\n\r\n foreach ($periodo as $data) {\r\n $tdy = strtotime($data->format(\"d-m-Y\"));\r\n //if (date('N', $tdy) <= 5) {\r\n $diasUt++;\r\n //}\r\n }\r\n return $diasUt;\r\n }", "function NUMERO_DE_HIJOS_MAYORES_ESTUDIANDO($_ARGS) {\r\n\t$_PARAMETROS = PARAMETROS();\r\n\t\r\n\tlist($a, $m)=SPLIT( '[/.-]', $_ARGS[\"PERIODO\"]); \r\n\r\n $anio = $a - 18;\r\n\t$fecha18 = \"$anio-$m-01\";\r\n\t\r\n\t $anio = $a - 25;\r\n\t$fecha25 = \"$anio-$m-01\";\r\n\r\n\t$sql = \"SELECT\r\n\t\t\t\t*\r\n\t\t\tFROM\r\n\t\t\t\trh_cargafamiliar\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tParentesco = 'HI' \r\n\t\t\t\tAND\tFechaNacimiento <= '\".$fecha18.\"'\r\n\t\t\t\tAND\tFechaNacimiento >= '\".$fecha25.\"'\r\n\t\t\t\tAND rh_cargafamiliar.Parentesco = 'HI' \r\n\t\t\t\tAND rh_cargafamiliar.FlagEstudia = 'S'\t\r\n\t\t\t\t\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\treturn intval(mysql_num_rows($query));\r\n}", "public function getDayEvents($date){\n\t\t$object = $this->events_ob;\n\t\t$event = new $object();\n\t\t$events = array();\n\t\t\n\t\t# Get Non-Reoccurring events\n\t\t$query = \"WHERE `start_date` = '\".$date.\"' AND `repeating` = '0' AND `active` = '1'\";\n\t\t$events = array_merge($events, $event->fetchQuery($query));\n\t\t\n\t\t# Get Reoccurring events\n\t\t# Get Events that Reoccur on a daily basis\n\t\t$query = \"WHERE `repeating` = '1' AND `start_date` <= '\".$date.\"' AND (`repeat_end` >= '\".$date.\"' OR `repeat_end` = '0000-00-00') AND `repeat_type` = 'daily' AND `repeat_every` <> 0 AND MOD(TIMESTAMPDIFF(DAY, `start_date`, '\".$date.\"'), `repeat_every`) = 0 AND `active` = '1'\";\n\t\t$events = array_merge($events, $event->fetchQuery($query));\n\t\t\n\t\t# Get Events that Reoccur on a weekly basis\n\t\t$query = \"WHERE `repeating` = '1' AND `start_date` <= '\".$date.\"' AND (`repeat_end` >= '\".$date.\"' OR `repeat_end` = '0000-00-00') AND `repeat_type` = 'weekly' AND `repeat_wednesday` = '1' AND `repeat_every` <> 0 AND MOD(TIMESTAMPDIFF(WEEK, `start_date`, '\".$date.\"'), `repeat_every`) = 0 AND `active` = '1'\";\n\t\t$events = array_merge($events, $event->fetchQuery($query));\n\t\t\n\t\t# Get Events that Reoccur on a monthly basis\n\t\t$query = \"WHERE `repeating` = '1' AND `start_date` <= '\".$date.\"' AND (`repeat_end` >= '\".$date.\"' OR `repeat_end` = '0000-00-00') AND `repeat_type` = 'monthly' AND ((`repeat_by` = 'day_of_month' AND DAY(`start_date`) = '16') OR (`repeat_by` = 'day_of_week' AND DAYOFWEEK(`start_date`) = '4' AND MOD((TIMESTAMPDIFF(WEEK, '2017-08-01', '\".$date.\"')+1), `repeat_every`) = 0)) AND `repeat_every` <> 0 AND `active` = '1'\";\n\t\t$events = array_merge($events, $event->fetchQuery($query));\n\t\t\n\t\t# Get Events that Reoccur on a yearly basis\n\t\t$query = \"WHERE `repeating` = '1' AND `start_date` <= '\".$date.\"' AND (`repeat_end` >= '\".$date.\"' OR `repeat_end` = '0000-00-00') AND `repeat_type` = 'yearly' AND DAY(`start_date`) = '16' AND MONTH(`start_date`) = '8' AND `repeat_every` <> 0 AND MOD(TIMESTAMPDIFF(YEAR, `start_date`, '\".$date.\"'), `repeat_every`) = 0 AND `active` = '1'\";\n\t\t$events = array_merge($events, $event->fetchQuery($query));\n\t\t\n\t\treturn $events;\n\t}", "function agenda_debug_evenement($id_agenda=0, $liste_choisie='liste_evt') {\n\n\tif ($liste_choisie == 'liste_evt') {\n\t\t$evenements = agenda_recenser_evenement(0);\n\t\t$count_evt = count($evenements);\n\n\t\tfor ($i=1;$i<=$count_evt;$i++) {\n\t\t\techo '<br /><strong>EVT Num'.$i.'</strong><br />';\n\t\t\techo '<strong>Titre</strong>: '.$evenements[$i]['titre'].'<br />';\n\t\t\techo '<strong>Id</strong>: '.$evenements[$i]['id'].'<br />';\n\t\t\techo '<strong>Date Redac</strong>: '.$evenements[$i]['date_redac'].'<br />';\n\t\t\techo '<strong>Date</strong>: '.$evenements[$i]['date'].'<br />';\n\t\t\techo '<strong>Heure</strong>: '.$evenements[$i]['heure'].'<br />';\n\t\t\techo '<strong>Jour</strong>: '.$evenements[$i]['jour'].'<br />';\n\t\t\techo '<strong>Mois</strong>: '.$evenements[$i]['mois'].' | '.$evenements[$i]['nom_mois'].'<br />';\n\t\t\techo '<strong>Annee</strong>: '.$evenements[$i]['annee'].'<br />';\n\t\t\techo '<strong>Saison</strong>: '.$evenements[$i]['saison'].'<br />';\n\t\t\techo '<strong>Lien page</strong>: '.$evenements[$i]['lien_page'].'<br />';\n\t\t\techo '<strong>Categorie</strong>: '.$evenements[$i]['categorie'].'<br />';\n\t\t}\n\t}\n\telse {\n\t\t$evenements = agenda_recenser_evenement(-1);\n\n\t\tforeach ($evenements as $jour => $liste) {\n\t\t\techo '<br /><strong>JOUR: </strong>'.$jour.' ('.count($liste).')<br />';\n\t\t\tforeach ($liste as $num_evt)\n\t\t\t\techo $num_evt.', ';\n\t\t\techo '<br />';\n\t\t}\n\t}\n}", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "function primer_dia_periodo_anio($anio) {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where anio=\".$anio;\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n }", "function fichier_ical($liste_evenements)\r\n{\r\n\t////\tINIT\r\n\tglobal $tab_timezones, $AGENDAS_AFFECTATIONS;\r\n\r\n\t////\tDEBUT DU ICAL\r\n\t$sortie = \"BEGIN:VCALENDAR\\n\";\r\n\t$sortie .= \"PRODID:-//Agora-Project//\".$_SESSION[\"agora\"][\"nom\"].\"//EN\\n\";\r\n\t$sortie .= \"VERSION:2.0\\n\";\r\n\t$sortie .= \"CALSCALE:GREGORIAN\\n\";\r\n\t$sortie .= \"METHOD:PUBLISH\\n\";\r\n\r\n\t////\tTIMEZONE\r\n\t$current_timezone = current_timezone();\r\n\t$heure_time_zone = $tab_timezones[$current_timezone];\r\n\t$sortie .= \"BEGIN:VTIMEZONE\\n\";\r\n\t$sortie .= \"TZID:\".$current_timezone.\"\\n\";\r\n\t$sortie .= \"X-LIC-LOCATION:\".$current_timezone.\"\\n\";\r\n\t//Daylight\r\n\t$sortie .= \"BEGIN:DAYLIGHT\\n\";\r\n\t$sortie .= \"TZOFFSETFROM:\".heure_ical($heure_time_zone).\"\\n\";\r\n\t$sortie .= \"TZOFFSETTO:\".heure_ical($heure_time_zone,1).\"\\n\";\r\n\t$sortie .= \"TZNAME:CEST\\n\";\r\n\t$sortie .= \"DTSTART:19700329T020000\\n\";\r\n\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3\\n\";\r\n\t$sortie .= \"END:DAYLIGHT\\n\";\r\n\t//Standard\r\n\t$sortie .= \"BEGIN:STANDARD\\n\";\r\n\t$sortie .= \"TZOFFSETFROM:\".heure_ical($heure_time_zone,1).\"\\n\";\r\n\t$sortie .= \"TZOFFSETTO:\".heure_ical($heure_time_zone).\"\\n\";\r\n\t$sortie .= \"TZNAME:CET\\n\";\r\n\t$sortie .= \"DTSTART:19701025T030000\\n\";\r\n\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10\\n\";\r\n\t$sortie .= \"END:STANDARD\\n\";\r\n\t$sortie .= \"END:VTIMEZONE\\n\";\r\n\r\n\t////\tAJOUT DE CHAQUE EVENEMENT\r\n\tforeach($liste_evenements as $evt)\r\n\t{\r\n\t\t////\tDescription & agendas où est affecté l'événement\r\n\t\t$evt[\"description\"] = strip_tags(str_replace(\"<br />\",\" \",$evt[\"description\"]));\r\n\t\t$agendas = agendas_evts($evt[\"id_evenement\"],\"1\");\r\n\t\tif(count($agendas)>1){\r\n\t\t\t$agendas_txt = \"\";\r\n\t\t\tforeach($agendas as $id_agenda) { $agendas_txt .= $AGENDAS_AFFECTATIONS[$id_agenda][\"titre\"].\", \"; }\r\n\t\t\t$evt[\"description\"] .= \" [\".substr(text_reduit($agendas_txt),0,-2).\"]\";\r\n\t\t}\r\n\t\t////\tAffichage\r\n\t\t$sortie .= \"BEGIN:VEVENT\\n\";\r\n\t\t$sortie .= \"CREATED:\".date_ical($evt[\"date_crea\"],false).\"\\n\";\r\n\t\t$sortie .= \"LAST-MODIFIED:\".date_ical($evt[\"date_crea\"],false).\"\\n\";\r\n\t\t$sortie .= \"DTSTAMP:\".date_ical(db_insert_date(),false).\"\\n\";\r\n\t\t$sortie .= \"UID:\".ical_uid_evt($evt).\"\\n\";\r\n\t\t$sortie .= \"SUMMARY:\".$evt[\"titre\"].\"\\n\";\r\n\t\t$sortie .= \"DTSTART;TZID=\".date_ical($evt[\"date_debut\"]).\"\\n\"; //exple : \"19970714T170000Z\" pour 14 juillet 1997 à 17h00\r\n\t\t$sortie .= \"DTEND;TZID=\".date_ical($evt[\"date_fin\"]).\"\\n\";\r\n\t\tif($evt[\"id_categorie\"]>0)\t\t$sortie .= \"CATEGORIES:\".db_valeur(\"SELECT titre FROM gt_agenda_categorie WHERE id_categorie='\".$evt[\"id_categorie\"].\"'\").\"\\n\";\r\n\t\tif($evt[\"description\"]!=\"\")\t\t$sortie .= \"DESCRIPTION:\".preg_replace(\"/\\r\\n/\",\" \",html_entity_decode(strip_tags($evt[\"description\"]))).\"\\n\";\r\n\t\t// Périodicité\r\n\t\t$period_date_fin = ($evt[\"period_date_fin\"]) ? \";UNTIL=\".date_ical($evt[\"period_date_fin\"],false) : \"\";\r\n\t\tif($evt[\"periodicite_type\"]==\"annee\")\t\t\t\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1\".$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"mois\")\t\t\t$sortie .= \"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=\".trim(strftime(\"%e\",strtotime($evt[\"date_debut\"]))).$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"jour_mois\")\t\t$sortie .= \"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=\".implode(\",\",array_map(\"abs\",explode(\",\",$evt[\"periodicite_valeurs\"]))).$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"jour_semaine\")\t$sortie .= \"RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=\".implode(\",\",array_map(\"jour_ical\",explode(\",\",$evt[\"periodicite_valeurs\"]))).$period_date_fin.\"\\n\";\r\n\t\t$sortie .= \"END:VEVENT\\n\";\r\n\t}\r\n\r\n\t////\tFIN DU ICAL\r\n\t$sortie .= \"END:VCALENDAR\\n\";\r\n\treturn $sortie;\r\n}", "function calendar1($date){ //get \"from\" date\r\n\t\t\t$myCalendar = new tc_calendar(\"date1\", true, false);\r\n\t\t\t$myCalendar->setIcon(\"calendar/images/iconCalendar.gif\");\r\n\t\t\t$myCalendar->setPath(\"calendar/\");\r\n\t\t\t$myCalendar->setYearInterval(1970, 2020);\r\n\t\t\t$myCalendar->setAlignment('left', 'bottom');\r\n\t\t\tif($date!=\"\"){\r\n\t\t\t\t$myCalendar->setDate(Date(\"d\",strtotime($date)),Date(\"m\",strtotime($date)),Date(\"Y\",strtotime($date)));\r\n\t\t\t}\r\n\t\t\t$myCalendar->setOnChange(\"calculate()\");\t\r\n\t\t\t$myCalendar->writeScript();\r\n\t}", "function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}", "function age($naiss){\n list($y,$m,$d) = explode('-',$naiss);// list créer un tableau\n $diff = date('m') - $m;\n if( $diff < 0 ){\n //le mois de naissance de la personne n'est pas encore le bon, par rapport au mois en cours, donc elle \"perd\" 1an (y++)\n $y++;\n }elseif($diff == 0 && (date('d') - $d < 0)){\n $y++;\n }\n return date('Y') - $y;\n }", "function agenda_jourdecal($date, $decalage, $format = 'Y-m-d H:i:s') {\n\tinclude_spip('inc/filtres');\n\t$date_array = recup_date($date);\n\tif ($date_array) {\n\t\tlist($annee, $mois, $jour) = $date_array;\n\t}\n\tif (!$jour) {\n\t\t$jour = 1;\n\t}\n\tif (!$mois) {\n\t\t$mois = 1;\n\t}\n\t$jour2 = $jour + $decalage;\n\t$date2 = mktime(1, 1, 1, $mois, $jour2, $annee);\n\treturn date($format, $date2);\n}", "function getEyes_showDate() {\n # === Deutsche Wochentage \n $a_days[0] = 'Sonntag';\n $a_days[1] = 'Montag';\n $a_days[2] = 'Dienstag';\n $a_days[3] = 'Mittwoch';\n $a_days[4] = 'Donnerstag';\n $a_days[5] = 'Freitag';\n $a_days[6] = 'Samstag';\n $s_day = $a_days[date('w')];\n \n # === Aktueller Zeitstempel \n $s_date = date('j.n.Y');\n $s_time = date('G:i');\n \n # === Ausgabe des Datums \n echo \"Heute ist $s_day, der $s_date, es ist $s_time Uhr.\";\n}", "function getActivityDates(){\n\t\t\treturn $this->articleEvents->getDates();\n\t\t}", "function intervalo($inicio, $fim){\n\t $dataInicio = strtotime($inicio);\n\t $dataFim = strtotime($fim);\n\t $intervalo = ($dataFim-$dataInicio) - 86400;\n\t return date('d', $intervalo);\n\t }", "function get_stattovday($dt){\n\t\t$dt1=$dt+24*60*60;\n\t\t$cnt='<table align=\"center\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" class=\"selstr\"><tbody><tr><th class=\"news_header lft\">Код</th><th class=\"news_header lft\">Наименование</th><th class=\"news_header cen\">Кол-во</th><th class=\"news_header rgt\">Сумма</th></tr>';\n\t\tglobal $db;\n\t\t$qy = $db->get_rows(\"select sum((o.summa-o.summa*o.skidka/100) * o.count ) as sm, sum(o.count) as cnt,p.title, p.param_kodtovara,o.prd_id from chudo_ishop_order_idet o ,chudo_ishop_products p, chudo_ishop_order_i c where c.data>=\".$dt.\" and c.data<\".$dt1.\" and o.order_id=c.id and p.id=o.prd_id group by o.prd_id order by p.param_kodtovara\");\n\t\tforeach($qy as $id=>$row){\n\t\t\t$cnt.='<tr><td class=\"news_td lft\">'.$row['param_kodtovara'].'</td><td class=\"news_td lft cli\" onclick=\"view_statdt(this,'.$dt.','.$row['prd_id'].')\">'.$row['title'].'</td><td class=\"news_td cen\">'.$row['cnt'].'</td><td class=\"news_td rgt\">'.number_format($row['sm'],2,'.',\"\").'</td></tr>';\n\t\t}\n\t\t$cnt.='</tbody></table><!--'.$dt.'-->';\n\t\treturn $cnt;\n\t}", "function DateToIndo($date) {\n\t // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\n\t\t$BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\n\t \"April\", \"Mei\", \"Juni\",\n\t \"Juli\", \"Agustus\", \"September\",\n\t \"Oktober\", \"November\", \"Desember\");\n\t\t$tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\n\t\t$bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\n\t\t$tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\n\t\t$result = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\n\t\treturn($result);\n\t}", "function DateToIndo($date) {\r\n // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\r\n $BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\r\n \"April\", \"Mei\", \"Juni\",\r\n \"Juli\", \"Agustus\", \"September\",\r\n \"Oktober\", \"November\", \"Desember\");\r\n $tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\r\n $bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\r\n $tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\r\n $zzesult = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\r\n return($zzesult);\r\n }", "function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }", "function day($ask,$da,$mo,$ye,$next,$prev){\nglobal $maand,$week,$language,$m,$d,$y,$viewdayok,$searchdayok,$popupevent,$popupeventwidth,$popupeventheight;\n\nif (!isset($yda))\n $yda = '';\n\nif ($viewdayok == 1){\n// als er geen dag is, dan is het vandaag\nif (!$da){\n $da = $d;\n $mo = $m;\n $ye = $y;\n}\n\n$we = mktime(0,0,0,$mo,$da,$ye);\n$we = strftime(\"%w\",$we);\n$we++;\necho \"<h3>\".translate(\"askedday\").\": \".$week[$we].\" \".$da.\" \".$maand[$mo].\" \".$ye.\"</h3>\";\n\n// eerst alle items zoeken (anders serieuze mix-up van vars)\n$query = \"select id,title,description,url,cat_name,day,month,year from events left join calendar_cat on events.cat=calendar_cat.cat_id where day='$da' and month='$mo' and year='$ye' and approved='1' order by title ASC\";\n$result = mysql_query($query);\n\n// als ask = volgende dag...\nif (!$ask || $ask == \"nd\"){\n // bepaal maand en jaar voor previous (moet nu al, anders mix up !)\n $ymo = $mo;\n $yy = $ye;\n // als next is, optellen\n if ($next){\n $ok = 86400*$next;\n $da = date(\"j\",time()+ $ok);\n $next++;\n }\n // geen next, dag is vandag, dus maar 1 keer vermenigvuldigen\n else {\n $da = date(\"j\",time()+86400);\n $next = '2';\n }\n\n // vars voor volgende dag\n // nieuwe dag = 1, maand stijgt\n if ($da == \"1\")\n $mo++;\n // nieuwe maand = dertien, jaar stijgt\n if ($mo == \"13\"){\n $mo = '1';\n $ye += 1;\n }\n // vars voor vorige dag (als die er is natuurlijk)\n // dag\n if ($prev){\n if ($prev != \"O\"){\n $ok = 86400*$prev;\n $yda = date(\"j\",time()+$ok);\n $prev++;\n }\n else {\n $yda = date(\"j\");\n $prev = '1';\n }\n }\n else {\n $prev = 'O';\n }\n // nieuwe dag = 2, maand stijgt\n if ($da == \"2\")\n $ymo--;\n if ($ymo == \"0\")\n $ymo = '12';\n //als nieuwe dag gelijk aan 2 en nieuwe maand gelijk aan 1: jaar +1 pd-vars +1\n if ($da == \"2\" && $ymo == \"1\"){\n $yy -= 1;\n }\n // dag 31 & maand 12 = jaar beneden\n if ($yda == \"31\" && $ymo == \"12\")\n $yy -= 1;\n\n // vorige dag link, als next 2 is = vandaag op scherm, dus geen vorige dag (what's the use eh :)\n if ($next != \"2\")\n echo \"<a href=\\\"calendar.php?op=day&ask=pd&da=$yda&mo=$ymo&ye=$yy&next=$next&prev=$prev\\\"><== \".translate(\"prevday\").\"</a> - \";\n // link naar volgende dag\n echo \"<a href=\\\"calendar.php?op=day&ask=nd&da=$da&mo=$mo&ye=$ye&next=$next&prev=$prev\\\">\".translate(\"nextday\").\" ==></a><br><br>\";\n\n}\n\n// als ask = vorige dag ...\nif ($ask == \"pd\"){\n\n // bepaal maand en jaar voor previous (moet nu al, anders mix up !)\n $ymo = $mo;\n $yy = $ye;\n // next -> optellen\n $next -= 2;\n $ok = 86400*$next;\n $da = date(\"j\",time()+ $ok);\n $next++;\n // vars voor volgende dag\n // nieuwe dag = 1, maand daalt\n if ($da == \"2\")\n $mo--;\n // nieuwe maand = dertien, jaar daalt\n if ($mo == \"0\"){\n $mo = '12';\n $ye -= 1;\n }\n if ($da == \"2\" && $mo == \"13\")\n $mo = \"1\";\n // vars voor vorige dag (als die er is natuurlijk)\n // dag\n $prev -=2;\n if ($prev == \"0\")\n $prev == \"1\";\n $ok = 86400*$prev;\n $yda = date(\"j\",time()+$ok);\n $prev++;\n // nieuwe dag = 2, maand daalt\n if ($da == \"2\"){\n $ymo--;\n $mo++;\n }\n if ($da == \"1\")\n $mo++;\n if ($ymo == \"13\"){\n $ymo = '1';\n $yy -= 1;\n }\n if ($ymo == \"0\")\n $ymo = '12';\n // nieuwe maand = twaalf, jaar daalt\n if ($yda == \"31\" && $ymo == \"12\"){\n $yy -= 1;\n $mo = '1';\n $ye += 1;\n }\n if ($yda == \"30\" && $ymo == \"12\"){\n $mo = '1';\n $ye += 1;\n }\n // als next gelijk is aan twee, dan is prev = O\n if ($next == \"2\")\n $prev ='O';\n\n // vorige dag link, als next 2 is = vandaag op scherm, dus geen vorige dag (what's the use eh :)\n if ($next != \"2\")\n echo \"<a href=\\\"calendar.php?op=day&ask=pd&da=$yda&mo=$ymo&ye=$yy&next=$next&prev=$prev\\\"><== \".translate(\"prevday\").\"</a> - \";\n\t\t// link naar volgende dag\n\t\techo \"<a href=\\\"calendar.php?op=day&ask=nd&da=$da&mo=$mo&ye=$ye&next=$next&prev=$prev\\\">\".translate(\"nextday\").\" ==></a><br><br>\";\n\n}\n// beeld de zaken af van de gevraagde dag\n while ($row = mysql_fetch_object($result)){\n echo \"<li><b><U>\".$row->title.\"</u></b><br>\";\n echo translate(\"cat\").\" : \".$row->cat_name.\"<br>\";\n $de = str_replace(\"<br>\",\"\",$row->description);\n $de = str_replace(\"<br />\",\"\",$row->description);\n echo substr(stripslashes($de),0,100).\" ...\";\n echo \"<br>\";\n if ($popupevent == 1)\n echo \"<a href=\\\"#\\\" onclick=\\\"MM_openBrWindow('cal_popup.php?op=view&id=\".$row->id.\"','Calendar','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=\".$popupeventwidth.\",height=\".$popupeventheight.\"')\\\">\";\n else\n echo \"<a href=calendar.php?op=view&id=\".$row->id.\">\";\n echo translate(\"readmore\").\"</a>\";\n echo \"<br><br>\";\n }\nif ($searchdayok == 1)\n\tsearch();\n}\nelse{\n echo translate(\"disabled\");\n}\n}", "function dbToUIdate() {\r\n\t\t\r\n\t\t$year = substr($this->event_date_time, -19, 4);\r\n\t\t$month = substr($this->event_date_time, -14, 2);\r\n\t\t$day = substr($this->event_date_time, -11, 2);\r\n\r\n\t\t$this->date = $month . \"/\" . $day . \"/\" . $year;\r\n\t\r\n\t}", "function periodicite_evt($evt_tmp)\r\n{\r\n\tglobal $trad;\r\n\t////\tJours de la semaine\r\n\tif($evt_tmp[\"periodicite_type\"]==\"jour_semaine\"){\r\n\t\tforeach(explode(\",\",$evt_tmp[\"periodicite_valeurs\"]) as $jour)\t{ @$txt_jours .= $trad[\"jour_\".$jour].\", \"; }\r\n\t\treturn $trad[\"AGENDA_period_jour_semaine\"].\" : \".trim($txt_jours,\", \");\r\n\t}\r\n\t////\tJours du mois\r\n\tif($evt_tmp[\"periodicite_type\"]==\"jour_mois\"){\r\n\t\treturn $trad[\"AGENDA_period_jour_mois\"].\" : \".str_replace(\",\", \", \", $evt_tmp[\"periodicite_valeurs\"]);\r\n\t}\r\n\t////\tMois\r\n\tif($evt_tmp[\"periodicite_type\"]==\"mois\"){\r\n\t\tforeach(explode(\",\",$evt_tmp[\"periodicite_valeurs\"]) as $mois)\t\t{ @$txt_mois .= $trad[\"mois_\".round($mois)].\", \"; }\r\n\t\treturn $trad[\"AGENDA_period_mois\"].\" : \".$trad[\"le\"].\" \".strftime(\"%d\",strtotime($evt_tmp[\"date_debut\"])).\" \".trim($txt_mois,\", \");\r\n\t}\r\n\t////\tAnnée\r\n\tif($evt_tmp[\"periodicite_type\"]==\"annee\"){\r\n\t\treturn $trad[\"AGENDA_period_annee\"].\", \".$trad[\"le\"].\" \".strftime(\"%d %B\",strtotime($evt_tmp[\"date_debut\"]));\r\n\t}\r\n}", "function provjeri_oglase(){\n\t\tglobal $db;\n\t\t$oglasi = $db->query(\"SELECT * FROM jf_oglasi WHERE status=1\");\n\t\twhile($podatak = $oglasi->fetch_assoc()){\n\t\t\tif (date(\"d-m-Y\", strtotime($podatak['konkurs_end'])) < date(\"d-m-Y\")){\n\t\t\t\t$db->query(\"UPDATE jf_oglasi SET status=0 WHERE id={$podatak['id']}\");\n\t\t\t}\n\t\t}\n\t}", "public function getDateI(){\n return $this->dateI;\n }", "function get_timestamp_jour_precedent($timestamp_today) {\n\tglobal $mysqli;\n\t$hier=false;\n\n\t$tab_nom_jour=array('dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi');\n\t$sql=\"select * from horaires_etablissement WHERE ouverture_horaire_etablissement!=fermeture_horaire_etablissement AND ouvert_horaire_etablissement!='0' ORDER BY id_horaire_etablissement;\";\n\t$res_jours_ouverts=mysqli_query($mysqli, $sql);\n\tif($res_jours_ouverts->num_rows>0) {\n\t\t$tab_jours_ouverture=array();\n\t\twhile($lig_j=$res_jours_ouverts->fetch_object()) {\n\t\t\t$tab_jours_ouverture[]=$lig_j->jour_horaire_etablissement;\n\t\t\t//echo \"\\$tab_jours_ouverture[]=\".$lig_j->jour_horaire_etablissement.\"<br />\";\n\t\t}\n\n\t\t$compteur=0;\n\t\t$j_prec = $timestamp_today - 3600*24;\n\t\twhile((isset($tab_nom_jour[strftime(\"%w\",$j_prec)]))&&(!in_array($tab_nom_jour[strftime(\"%w\",$j_prec)],$tab_jours_ouverture))&&($compteur<8)) {\n\t\t\t$j_prec -= 3600*24;\n\t\t\t$compteur++;\n\t\t}\n\t\tif($compteur<7) {\n\t\t\t$hier=$j_prec;\n\t\t}\n\t\t$res_jours_ouverts->close();\n\t}\n\n\treturn $hier;\n}", "function list_day_work($date)\n{\n Database::getInstance()->getConnection()->real_escape_string($date);\n // Scoate id_urile din zilele lucrate dupa data\n $row = [];\n $query = \"SELECT wd.id, angajati.surname, angajati.name, loc_activitate.locatie, wd.comment FROM cozagro_db.work_days wd\n INNER JOIN cozagro_db.angajati angajati ON wd.id_angajat=angajati.id \n INNER JOIN cozagro_db.loc_activitate loc_activitate ON wd.id_loc_activitate=loc_activitate.id \n WHERE DATE_FORMAT(submission_date, '%d - %c - %Y') = '$date' AND wd.deleted='0'\n ORDER BY angajati.surname ASC \";\n $result = Database::getInstance()->getConnection()->query($query);\n if (!$result) {\n die(\"Errore la extragere pentru zilele de lucru in function.php\" . Database::getInstance()->getConnection()->error);\n };\n\n $i = 0;\n while ($dates = $result->fetch_assoc()) {\n\n $row[$i] = [\"id_work_days\" => $dates['id'],\n \"nume\" => $dates['surname'] . \" \" . $dates['name'],\n \"loc_activitate\" => $dates['locatie'],\n \"comment\" => $dates['comment']];\n\n //Identifica numele angajatului dupa ID\n\n $i++;\n }\n $result->free_result();\n return $row;\n}", "function moisActuel()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t//$annee--;\n\t$moisActuel = $mois;\n\treturn $annee . $moisActuel;\n}", "function DateToIndo($date) {\n // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\n\t\t$BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\n\t\t\t\t\t\t \"April\", \"Mei\", \"Juni\",\n\t\t\t\t\t\t \"Juli\", \"Agustus\", \"September\",\n\t\t\t\t\t\t \"Oktober\", \"November\", \"Desember\");\n\t\n\t\t$tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\n\t\t$bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\n\t\t$tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\n\t\t\n\t\t$result = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\n\t\treturn($result);\n}", "public function day_to_condition($date){\r\n\r\n }", "public function getDate();", "public function getDate();", "function leerlafecha($fechaentrada, $idioma) {\n\t\t//devuelve variables en el idioma dado por la variable $idioma que puede valer 'cas' o 'cat'\n\t\t//Así podremos leer la fecha en formato humanoide.\n\t\t\n\t\tdate_default_timezone_set('Europe/Madrid');\t//Esta definicion de la zona horaria me la pide el php del hosting en freehostia.com para dejarme usar strtotime en el script\n\t\t\n\t\t//Dependiendo del idioma definimos los nombres de los meses del año y los dias de la semana\n\t\tif ($idioma == 'cat' or empty($idioma)) {$anno = array (\"gener\", \"febrer\", \"març\", \"abril\", \"maig\", \"juny\", \"juliol\", \"agost\", \"setembre\", \"octubre\", \"novembre\", \" desembre \"); $dias = array ('', 'Dilluns', 'Dimarts', 'Dimecres', 'Jueves', 'Divendres', 'Dissabte', 'Diumenge');}\n\t\telse if ($idioma == 'cas') {$anno = array(\"enero\", \"febrero\", \"marzo\", \"abril\",\"mayo\",\"junio\",\"julio\",\"agosto\",\"septiembre\",\"octubre\",\"noviembre\",\"diciembre\"); $dias = array('','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado','Domingo');}\n\t\t\n\t\tif (empty($fechaentrada)==false){\n\t\t\t$dia = substr ($fechaentrada, 8 , 2 ); //número del dia\n\t\t\t$mesnumerico = substr($fechaentrada,5,2); //número del mes\n\t\t\t$ano = substr ($fechaentrada,0,4); //número del año\n\t\t\t$indicemes = intval($mesnumerico) - 1;\n\t\t\t$nombremes = $anno[$indicemes]; //nombre del mes en el idioma escojido\n\t\t\t$nombredia = $dias[date('N', strtotime($fechaentrada))]; //nombre del dia en el idioma elejido\n\t\t}\n\t\t\n\t\t return array ($dia,$mesnumerico,$ano,$nombremes,$nombredia);\n\t\t\n\t}", "function dias_transcurridos($fecha_i,$fecha_f)\n{\n\t$dias\t= (strtotime($fecha_i)-strtotime($fecha_f))/86400;\n\t$dias \t= abs($dias); $dias = floor($dias);\t\t\n\treturn $dias;\n}", "function joueContre($adversaire, $lieu, $date) // trois argument définis pour la première fois\n{\n // contenant les infos de la rencontre\n array_push($this->rencontres, [\"adversaire\" => $adversaire, \n \"lieu\" => $lieu, \n \"date\" => $date\n\n ]); // on range les données dans le tableau rencontres, tableau de niveau 2\n\n}", "public function cadastrar() \n{\n //DEFINIR A DATA\n $this->data = date(\"Y:m:d H:i:s\");\n \n //INSERIR A VAGA NO BANCO\n\n //ATRIBUIR O ID NA VAGA DA INSTANCIA\n\n //RETORNAR SUCESSO\n\n}", "public function data_oggi($delimitatore='',$ora='',$secondi=''){\n\t\t$d=($delimitatore==''?'/':$delimitatore);\n\t\t$ora=($ora!=''?' H:i'.($secondi!=''?':s':NULL):NULL);\n\t\treturn date('d'.$d.'m'.$d.'Y'.$ora,time());\n\t}", "public function getDateFin();", "function restar_dias_a_una_fecha($dia,$mes,$anio,$numdias){\r\nif (!checkdate($mes,$dia,$anio)) die(\"error en restar_dias_a_una_fecha() - Se le ha mandado a la función una fecha incorrecta\");\r\n$fecha=mktime ( 0,0,0, $mes,$dia-$numdias,$anio);\r\nreturn date( \"Y-m-d\", $fecha);\r\n}", "function calendar($date, $jour)\n{\n\n for ($previous = date(\"N\", $date) - 1; $previous > 0; $previous--) {\n echo(\"<li><span class='noactive'>\");\n echo(date(\"t\", $date - 1) - ($previous - 1));\n echo(\"</span></li>\");\n }\n\n for ($i = 1; $i < date(\"t\", $date) + 1; $i++) {\n if ($i == $jour && date(\"m Y\") == date(\"m Y\", $date)) {\n echo \"<li><span class=\\\"active\\\">$i</span></li>\";\n } else {\n echo \"<li>$i</li>\";\n }\n }\n\n $after = 7 * 6 - date(\"t\", $date) - date(\"N\", $date) + 2;\n\n if ($after > 7) {\n $after = $after - 7;\n }\n for ($i = 1; $i != $after; $i++) {\n echo(\"<li><span class='noactive'>$i</span></li>\");\n }\n}", "public function selectIndEventos(string $fechaInicio,string $fechaFin){\n\n \n $this->intIdUser = $_SESSION['idUser'];\n $this->fechaInicio =$fechaInicio;\n $this->fechaFin =$fechaFin;\n\n $noAdmin=\"\";\n $dateRange=\"\";\n\n if($fechaInicio !=\"\" AND $fechaFin !=\"\")\n {\n $dateRange = \" AND l.fecha BETWEEN '$this->fechaInicio' AND '$this->fechaFin'\";\n }\n\n if($_SESSION['idUser']>2)\n {\n $noAdmin=\" AND l.personaid = $this->intIdUser\";\n }\n\n\n $sql=\"SELECT p.idcolaborador,\n CONCAT(p.nombre, ' ', p.apellido) as nombreCompleto,s.empresa,\n COUNT(case when l.tipoevento = 1 then 1 end) as pos,\n COUNT(case when l.tipoevento = 2 then 1 end) as neg,\n COUNT(case when l.tipoevento = 1 or l.tipoevento = 2 then 1 end) as total\n FROM libretalider l\n INNER JOIN colaborador p ON l.colaboradorid = p.idcolaborador\n INNER JOIN persona s ON l.personaid = s.idpersona\n WHERE l.status !=0 $dateRange $noAdmin \n GROUP BY l.colaboradorid\";\n\n $request = $this->select_all($sql);\n return $request;\n\n }", "function getEstadisticaDetallado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t# Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t$event = new Event;\n\t\t$usr = new Usuario($current_usuario_id);\n\t\t$usr->__Usuario();\n\t\t$graficoSvg = new GraficoSVG();\n\n\n\t\t$timeZoneId = $usr->zona_horaria_id;\n\t\t$arrTime = Utiles::getNameZoneHor($timeZoneId); \t\t\n\t\t$timeZone = $arrTime[$timeZoneId];\n\t\t$tieneEvento = 'false';\n\t\t$arrayDateStart = array();\t\t\n\t\t$nameFunction = 'EstadisticaDet';\n\t\t$data = null;\n\t\t$ids = null;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'comparativo_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_MONITOR', 'es_primero_monitor');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_TOTAL', 'es_primero_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t# Variables para mantenimiento.\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.comparativo_resumen_parcial(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n// \t\t\tprint($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"comparativo_resumen_parcial\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"comparativo_resumen_parcial\"]);\n\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t\t$conf_nodos = $xpath->query('//nodos/nodo');\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t\n\t\t\t# Obtención de los eventos especiales marcados por el cliente\n\t\t\tforeach ($xpath->query(\"/atentus/resultados/detalles_marcado/detalle/marcado\") as $tag_marcado) {\n\t\t\t$ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t\t$marcado = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t# Verifica que exista marcado evento cliente.\n\t\t\tif ($marcado == true) {\n\n\t\t\t\t$dataMant = $event->getData(substr($ids, 1), $timeZone);\n\t\t\t\t$character = array(\"{\", \"}\");\n\t\t\t\t$objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t\t\t$tieneEvento = 'true';\n\t\t\t\t$encode = json_encode($dataMant);\n\t\t\t\t$nodoId = (string)0;\n\t\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t\t$T->setVar('__name', $nameFunction);\n\n\t\t\t}\n\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($conf_nodos as $conf_nodo) {\n\t\t\t\t$primero = true;\n\t\t\t\t$tag_nodo = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\t\t\t\t\tif($tag_dato != null) {\n\t\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t\t$T->setVar('es_primero_monitor', '');\n\t\t\t\t\t\t$T->setVar('es_primero_total', '');\n\t\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t\t$T->setVar('__monitor_nombre', $conf_nodo->getAttribute('nombre'));\n\t\t\t\t\t\t\t$T->setVar('__monitor_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t\t$T->setVar('__monitor_total_monitoreo', $tag_nodo->getAttribute('cantidad'));\n\t\t\t\t\t\t\t$T->parse('es_primero_monitor', 'ES_PRIMERO_MONITOR', false);\n\t\t\t\t\t\t\t$T->parse('es_primero_total', 'ES_PRIMERO_TOTAL', false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute(\"nombre\"));\n\t\t\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_uptime', number_format($tag_dato->getAttribute('uptime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_downtime', number_format($tag_dato->getAttribute('downtime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_no_monitoreo', number_format($tag_dato->getAttribute('sin_monitoreo'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_evento_especial', number_format($tag_dato->getAttribute('marcado_cliente'), 3, ',', ''));\n\n\t\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t\t$primero = false;\n\t\t\t\t\t\t$linea++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\n\t\t# Agrega el acordeon cuando existan eventos.\n\t\tif (count($dataMant)>0){\n\t\t\t$this->resultado.= $graficoSvg->getAccordion($encode,$nameFunction);\n\t\t}\n\t\treturn $this->resultado;\n\t}", "public function trie_par_date($date_ajout){\n $marque_page = [];\n if($date_ajout==0){\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 ORDER BY date_a DESC');\n }else{\n $query = $this->db->prepare('SELECT date_a, date_m, description, id_utilisateur, note, somme, logo_choisi, id_marque_page, titre, url, createur FROM ajoute_modifie, marque_page WHERE id_marque_page = id AND createur=1 AND date_a >= ( CURDATE() - INTERVAL '.$date_ajout.' DAY ) ORDER BY date_a DESC');\n }\n $query->execute();\n\n while ($donnees = $query->fetch(PDO::FETCH_ASSOC)){\n $marque_page[] = $donnees;\n }\n return $marque_page;\n }", "public function fechaVigencia() // funcion que suma fecha usada para años biciestos\n\t{\n\n\t\t$fecha = $_GET['fecha'];\n\t\t$nuevafecha = strtotime('+365 day', strtotime($fecha));\n\t\t$nuevafecha = date('Y-m-d', $nuevafecha);\n\t\treturn $nuevafecha;\n\t}", "function datos_ocupacion($despacho,$fecha)\n{\n\t$dias_co=array(\"\",\"L\",\"M\",\"X\",\"J\",\"V\",\"S\",\"D\");\n\t\n\tglobal $con;\n\t$stamp = cambiaf($fecha);\n\t$tokeao = explode(\"-\",$stamp);\n\t$paso_el=date(\"w\",mktime(0, 0, 0, $tokeao[1], $tokeao[2], $tokeao[0]));\n\t\n\t$sql = \"Select * from agenda where datediff(finc,'$stamp') <=0 and datediff(ffin,'$stamp')>=0 and despacho like $despacho or repeticion like '%$dias_co[$paso_el];%' and despacho like $despacho and datediff(finc,'$stamp') <=0 order by hinc asc\";\n\t\t$consulta = @mysql_query($sql,$con);\n\t\tif(@mysql_numrows($consulta)!=0)\n\t\t{\n\t\t\twhile( true == ( $resultado = mysql_fetch_array( $consulta ) ) )\n\t\t\t{\n\t\t\t\t$cadena.=\"<div id='ocupacion_\".$resultado[0].\"' class='despacho_ocupado'>\";\n\t\t\t\t$hinc = quita_segundos($resultado[hinc]);\n\t\t\t\t$hfin = quita_segundos($resultado[hfin]);\n\t\t\t//!!CASO RESERVAS A NO CLIENTES\n\t\t\t\tif($resultado[id_cliente]!=\"\")\n\t\t\t\t{\n\t\t\t\t\t$cadena.=\"<div class='las_horas'>\".$hinc.\"-\".$hfin.\"</div>\".nombre_cliente($resultado[1]);\n\t\t\t\t\t$cadena.=\"<br/><span class='mini_boton' onclick='informacion_cliente($resultado[1],0,$resultado[0])'>&nbsp;Observaciones&nbsp;</span><input type='hidden' id='cliente_despacho_$resultado[1]' value='$resultado[1]' /><p/>\";\n\t\t\t\t\t$cadena.=confirmado($resultado[conformidad]);\n\t\t\t\t\t$cadena.=\"<p/>\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$cadena.=\"<div class='las_horas'>\".$hinc.\"-\".$hfin.\"</div>\".$resultado[otro];\n\t\t\t\t\t$cadena.=\"<br/><span class='mini_boton' onclick='informacion_cliente($resultado[0],1)'>&nbsp;Observaciones&nbsp;</span><input type='hidden' id='cliente_despacho_$resultado[1]' value='$resultado[1]' /><p/>\";\n\t\t\t\t\t$cadena.=confirmado($resultado[conformidad]);\n\t\t\t\t\t$cadena.=\"<p/>\";\n\t\t\t\t}\n\t\t\t\t$cadena.=\"</div>&nbsp;\";\n\t\t\t}\n\t\t}\n\t\telse $cadena.=\"&nbsp;\";\n\treturn $cadena;\n}", "function somarDatas($data,$dias){\n\t$data_final = date('Y-m-d', strtotime(\"$dias days\",strtotime($data)));\t\n\treturn $data_final;\n\t\n}", "function main()\n{\n\t$stdin = fopen('listeEvt.txt', 'r');\n\t$stdout = fopen('php://stdout', 'w');\n \n $nbEvt = 0;\n $evtTab = array();\n\t \n if ($stdin) {\n $line = 0;\n while (!feof($stdin)) {\n $buffer = fgets($stdin, 4096);\n // La première ligne contient le nombre total d'évènements\n if ($line == 0) {\n $nbEvt = $buffer;\n\n } else {\n // On vérifie qu'on ne dépasse pas le nombre d'évènements définit au début\n if ($line <= $nbEvt) {\n // On récupère la date de début et la durée de l'évènement\n $evt = explode(\";\", $buffer);\n if (sizeof($evt) > 1) {\n // Récupère les valeurs Année Mois Jour pour la date de début\n $dateDebutExplode = explode(\"-\", $evt[0]);\n $dateDebutTab[0] = intval($dateDebutExplode[0]);\n $dateDebutTab[1] = intval($dateDebutExplode[1]);\n $dateDebutTab[2] = intval($dateDebutExplode[2]);\n $dateDebutEvt= $evt[0];\n // Calcul la date de fin\n $endDate = calcEndDate($dateDebutTab, intval($evt[1]));\n // On rajoute des zéros devant pour faciliter le tri par date de début\n $keyMonth = ($dateDebutTab[1] < 10) ? \"0\".$dateDebutTab[1] : $dateDebutTab[1];\n $keyDay = ($dateDebutTab[2] < 10) ? \"0\".$dateDebutTab[2] : $dateDebutTab[2];\n $evtTab[] = array(\"startDate\" => $dateDebutTab[0].\"\".$keyMonth.\"\".$keyDay, \"endDate\" => $endDate, \"nbDay\" => $evt[1]);\n }\n // Tri du tableau par date de début puis par durée\n usort($evtTab, \"evtComparator\");\n }\n }\n $line++;\n }\n // Evt count\n $nbEvt = 0;\n $currentDate = \"\";\n if (sizeof($evtTab) > 0) {\n\n // Retire les évènements chevauchant sur plus d'un autre évènement\n $evtTab = evtFilter($evtTab);\n\n // Compte le nombre d'évènements non chevauchant \n foreach ($evtTab as $key => $evt) {\n if ($currentDate == \"\") {\n $currentDate = $evt[\"endDate\"];\n $nbEvt++;\n } else {\n // Si la date de fin du premier ne chevauche pas la date de début du deuxième\n if ($currentDate < $evt['startDate']) {\n $currentDate = $evt['endDate'];\n $nbEvt += 1;\n }\n }\n }\n }\n }\n\n var_dump($nbEvt);\n\t\n fwrite($stdout, $nbEvt);\n \n\tfclose($stdout);\n\tfclose($stdin);\n}", "private function ano()\n {\n\n $ano = date('Y');\n return $ano + 1;\n }", "function liste_articles_jour($date_jour, $nb_art_visites_jour, $date_maj_art, $prev_visites = '') {\r\n\tglobal $couleur_foncee, $couleur_claire;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_art'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\r\n\t//\r\n\t// requete liste article du jour\r\n\t$q = sql_select(\"sva.id_article, sva.date, sva.visites as visites_j, \r\n\t\t\tsa.titre, sa.visites, sa.popularite, sa.statut \r\n\t\t\tFROM spip_visites_articles sva \r\n\t\t\tLEFT JOIN spip_articles sa ON sva.id_article = sa.id_article \r\n\t\t\tWHERE sva.date='$date_jour' \r\n\t\t\tORDER BY visites_j DESC LIMIT $dl,$fl\");\r\n\r\n\t$nbart = sql_count($q);\r\n\r\n\r\n\t$aff = debut_cadre_relief(\"cal-jour.gif\", true);\r\n\r\n\t// bouton relance brut de la page\r\n\t// en attendant de passer a jquery !\r\n\tif ($date_jour == date('Y-m-d', mktime(0, 0, 0, date(\"m\"), date(\"d\"), date(\"Y\")))) {\r\n\t\t$aff .= \"<div class='bouton_maj'>\\n\"\r\n\t\t\t. \"<a href='\" . generer_url_ecrire(\"actijour_pg\") . \"'>\"\r\n\t\t\t. http_img_pack('puce-blanche.gif', 'ico', '', _T('actijour:mise_a_jour')) . \"</a>\\n\"\r\n\t\t\t. \"</div>\\n\";\r\n\t}\r\n\r\n\t// texte entete\r\n\tif (empty($date_maj_art)) {\r\n\t\t# La date du jour passé en 1er arg (jour, hier ...)\r\n\t\t$tbdate = recup_date($date_jour);\r\n\t\t$date_maj_art = date('d/m/y', mktime(0, 0, 0, $tbdate[1], $tbdate[2], $tbdate[0]));\r\n\t}\r\n\t$aff .= \"<div class='verdana3'>\"\r\n\t\t. _T('actijour:entete_tableau_art_jour', array(\r\n\t\t\t'nb_art_visites_jour' => $nb_art_visites_jour,\r\n\t\t\t'aff_date_now' => ' - ' . $date_maj_art\r\n\t\t))\r\n\t\t. \"</div>\\n\";\r\n\r\n\t// affichage tableau\r\n\tif (sql_count($q)) {\r\n\t\t// valeur de tranche affichꥉ\r\n\t\t$nba1 = $dl + 1;\r\n\t\t//\t\r\n\t\t$ifond = 0;\r\n\r\n\t\t// Presenter valeurs de la tranche de la requete\r\n\t\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t\t. tranches_liste_art($nba1, $nb_art_visites_jour, $fl)\r\n\t\t\t. \"\\n</div>\\n\";\r\n\r\n\t\t// tableau\r\n\t\t$aff .= \"<table align='center' border='0' cellpadding='1' cellspacing='1' width='100%'>\\n\"\r\n\t\t\t. \"<tr bgcolor='$couleur_foncee' class='head_tbl'>\\n\"\r\n\t\t\t. \"<td width='7%'>\" . _T('actijour:numero_court') . \"</td>\\n\"\r\n\t\t\t. \"<td width='65%'>\" . _T('actijour:titre_article') . \"</td>\\n\"\r\n\t\t\t. \"<td width=9%>\" . _T('actijour:visites_jour') . \"</td>\\n\"\r\n\t\t\t. \"<td width=11%>\" . _T('actijour:total_visites') . \"</td>\\n\"\r\n\t\t\t. \"<td width=8%>\" . _T('actijour:popularite') . \"</td>\\n\"\r\n\t\t\t. \"</tr>\\n\";\r\n\r\n\t\t// corps du tableau\r\n\t\twhile ($row = sql_fetch($q)) {\r\n\t\t\t$visites_a = $row['visites'];\r\n\t\t\t$visites_j = $row['visites_j'];\r\n\t\t\t$id_art = $row['id_article'];\r\n\t\t\t$titre = $row['titre'];\r\n\t\t\t$etat = $row['statut'];\r\n\t\t\t// round sur popularit鍊\t\t\t$pop = round($row['popularite']);\r\n\t\t\t// Le total-visites de l'article\r\n\t\t\t#$tt_visit = $visit + $ipv;\r\n\r\n\t\t\t$ifond = $ifond ^ 1;\r\n\t\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t\t$aff .= \"<tr bgcolor='$couleur'><td width='7%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana2'>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat, 'spip')\r\n\t\t\t\t. \"</div>\\n</td>\"\r\n\t\t\t\t. \"<td width='65%'>\\n\"\r\n\t\t\t\t. \"<div align='left' class='verdana1' style='margin-left:5px;'><b>\"\r\n\t\t\t\t. affiche_lien_graph($id_art, $titre, $etat)\r\n\t\t\t\t. \"</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='9%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana2'><b>$visites_j</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='11%'>\\n\"\r\n\t\t\t\t. \"<div align='right' class='verdana1' style='margin-right:3px;'><b>$visites_a</b></div></td>\\n\"\r\n\t\t\t\t. \"<td width='8%'>\\n\"\r\n\t\t\t\t. \"<div align='center' class='verdana1'>$pop</div>\\n\"\r\n\t\t\t\t. \"</td></tr>\\n\";\r\n\t\t}\r\n\t\t$aff .= \"</table>\";\r\n\t} // aucun articles\r\n\telse {\r\n\t\t$aff .= \"<div align='center' class='iconeoff bold' style='clear:both;'>\"\r\n\t\t\t. _T('actijour:aucun_article_visite') . \"</div><br />\\n\";\r\n\t}\r\n\t$aff .= visites_pre_traitement($prev_visites);\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "function DIAS_FECHA($_DESDE, $_HASTA) {\r\n/*\t$sql = \"SELECT DATEDIFF('$_HASTA', '$_DESDE') as dias;\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\t$field = mysql_fetch_array($query);\r\n\t\r\n\t$dias = ++$field[0];\r\n\tif (substr($_HASTA, 5, 5) == \"02-28\") {\r\n\t\t$dias+=2;\r\n\t}\r\n\telseif (substr($_HASTA, 5, 5) == \"02-29\") {\r\n\t\t$dias+=1;\r\n\t}\r\n\t\r\n $dias= $field['dias'];\r\n\t\r\n\treturn $dias;*/\r\n\t\r\n\t\t$sql = \"SELECT DATEDIFF('$_HASTA', '$_DESDE');\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\t$field = mysql_fetch_array($query);\r\n\t$dias = ++$field[0];\r\n\tif (substr($_HASTA, 5, 5) == \"02-28\") {\r\n\t\t$dias+=2;\r\n\t}\r\n\telseif (substr($_HASTA, 5, 5) == \"02-29\") {\r\n\t\t$dias+=1;\r\n\t}\r\n\t\r\n\treturn $dias;\r\n\t\r\n\t\r\n}", "public function fecha();", "public function getAllDate($datoDesde,$datoHasta){\n $sql = \"SELECT Id, Proveedor, Concepto, FORMAT(Monto, 2) AS Monto, Revisado, DATE_FORMAT(FechaSolicitud,'%d/%m/%Y') AS FechaSolicitud, AutorizadoPago, DATE_FORMAT(FechaAutorizado,'%d/%m/%Y') AS FechaAutorizado, estado, Comentario, ComentarioCapt, DATE_FORMAT(FechaPago,'%d/%m/%Y') AS FechaPago From \" .self::$tablename. \" WHERE FechaSolicitud BETWEEN '{$datoDesde}' AND '{$datoHasta}' ORDER BY Id DESC\";\n return Executor::doit($sql);\n }", "public function date();", "public function date();", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}", "function buscar_menor_fecha () {\n global $DB;\n $fecha = $DB->get_record('report_user_statistics', array('id' => '1'), 'date');\n return $fecha;\n}", "function generar_dias ($dia_inicio, $dia_fin, $mes_inicio, $mes_fin, $i, $dias_seleccionados, $meses_intermedios){\n //guardamos los dias del periodo\n $dias=array();\n $anio=date('Y');\n switch($i){\n case 'mm' : while($dia_inicio <= $dia_fin){\n $fecha= date('d-m-Y', strtotime(\"$dia_inicio-$mes_inicio-$anio\"));\n //print_r(\"<br>\");\n //print_r($fecha);\n //print_r(\"<br>\");\n if($this->es_dia_valido(date('N', strtotime($fecha)), $dias_seleccionados)){\n $dias[]=$fecha;\n }\n\n $dia_inicio += 1;\n }\n\n break;\n\n case 'mc' : $this->obtener_dias($dia_inicio, $mes_inicio, $this->_meses[intval($mes_inicio)], $dias_seleccionados, &$dias);\n $this->obtener_dias(1, $mes_fin, $dia_fin, $dias_seleccionados, &$dias);\n\n break;\n\n case 'mnc': //obtenemos los dias para dia_inicio y mes_inicio\n $this->obtener_dias($dia_inicio, $mes_inicio, $this->_meses[intval($mes_inicio)], $dias_seleccionados, &$dias);\n \n //para los meses intermedios podemos obtener los dias sin problemas, avanzamos desde 1 \n //hasta el ultimo dia del mes y realizamos el descarte adecuado.\n foreach ($meses_intermedios as $clave=>$mes_i){ //mes_i contiene un valor entero\n $this->obtener_dias(1, $mes_i, $this->_meses[$mes_i], $dias_seleccionados, &$dias);\n }\n\n //obtenemos los dias para dia_fin y mes_fin\n $this->obtener_dias(1, $mes_fin, $dia_fin, $dias_seleccionados, &$dias);\n\n break;\n }\n\n return $dias;\n }", "public function retosSemana(){\n\n\n //$s = explode(\"-\",$fecha);\n\n\t\t//$actualDate = Carbon::create(intval($s[2]),intval($s[1]),intval($s[0]));\n\t\t\n\t\t$actualDate= Carbon::now();\n\n \n\n $date1 = Carbon::now();\n $date2 = Carbon::now();\n $date3 = Carbon::now();\n $date4 = Carbon::now();\n $date5 = Carbon::now();\n $date6 = Carbon::now();\n $date7 = Carbon::now();\n\n \n \n \n $nD = $date1->dayOfWeekIso;\n\n \n if($nD==1){\n //Lunes\n\n $monday = $date1;\n $tuesday = $date2->addDay();\n $wednesday = $date3->addDays(2);\n $thursday= $date4->addDays(3);\n $friday= $date5->addDays(4);\n $saturday= $date6->addDays(5);\n $sunday= $date7->addDays(6);\n\n }elseif(intval($nD==2)){\n //Martes\n $monday = $date1->subDay();\n $tuesday = $date2;\n $wednesday = $date3->addDay();\n $thursday= $date4->addDays(2);\n $friday= $date5->addDays(3);\n $saturday= $date6->addDays(4);\n $sunday= $date7->addDays(5);\n\n }\n elseif(intval($nD==3)){\n //Miercoles\n \n $monday = $date1->subDays(2);\n $tuesday = $date2->subDay();\n $wednesday = $date3;\n $thursday= $date4->addDay();\n $friday= $date5->addDays(2);\n $saturday= $date6->addDays(3);\n $sunday= $date7->addDays(4);\n\n \n\n }elseif($nD==4){\n //Jueves\n $monday = $date1->subDays(3);\n $tuesday = $date2->subDays(2);\n $wednesday = $date3->subDay();\n $thursday= $date4;\n $friday= $date5->addDay();\n $saturday= $date6->addDays(2);\n $sunday= $date7->addDays(3);\n }elseif($nD==5){\n //Viernes\n $monday = $date1->subDays(4);\n $tuesday = $date2->subDays(3);\n $wednesday = $date3->subDays(2);\n $thursday= $date4->subDay();\n $friday= $date5;\n $saturday= $date6->addDay();\n $sunday= $date7->addDays(2);\n }elseif($nD==6){\n //Sabado\n $monday = $date1->subDays(5);\n $tuesday = $date2->subDays(4);\n $wednesday = $date3->subDays(3);\n $thursday= $date4->subDays(2);\n $friday= $date5->subDay();\n $saturday= $date6;\n $sunday= $date7->addDay();\n }else{\n //Domingo\n $monday = $date1->subDays(6);\n $tuesday = $date2->subDays(5);\n $wednesday = $date3->subDays(4);\n $thursday= $date4->subDays(3);\n $friday= $date5->subDays(2);\n $saturday= $date6->subDay();\n $sunday= $date7;\n\t\t}\n\n\n\t\t$company_id = auth()->user()->company_id;\n\t\t\n\n\t\t$sumaLunes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$monday->toDateString())->get());\n\t\t$sumaMartes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$tuesday->toDateString())->get());\n\t\t$sumaMiercoles = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$wednesday->toDateString())->get());\n\t\t$sumaJueves = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$thursday->toDateString())->get());\n\t\t$sumaViernes = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$friday->toDateString())->get());\n\t\t$sumaSabado = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$saturday->toDateString())->get());\n\t\t$sumaDomingo = count(DB::table('innovations')->where(function ($query) {\n\t\t\t$query->where('innovations.type', '=', 'solucion')\n\t\t\t\t->orWhere('innovations.type', '=', 'idea');\n\n\t\t})->where('company_id',$company_id)->whereDate('created_at',$sunday->toDateString())->get());\n\n\t\t\n\n\n\n\t\t$sumaSemanal = array(\n\n\t\t\t'Lunes ' =>$sumaLunes,\n\t\t\t'Martes'=>$sumaMartes,\n\t\t\t'Miércoles'=>$sumaMiercoles,\n\t\t\t'Jueves'=>$sumaJueves,\n\t\t\t'Viernes'=>$sumaViernes,\n\t\t\t'Sábado'=>$sumaSabado,\n\t\t\t'Domingo ' =>$sumaDomingo,\n\t\t);\n\n\t\treturn $sumaSemanal;\n\t}", "public function graficDate(Registro $registro)\n {\n //\n }", "function proximoDiaUtil($data, $saida = 'd/m/Y') {\r\n\r\n $timestamp = strtotime($data);\r\n $dia = date('N', $timestamp);\r\n if ($dia >= 6) {\r\n $timestamp_final = $timestamp + ((8 - $dia) * 3600 * 24);\r\n } else {\r\n $timestamp_final = $timestamp;\r\n }\r\n return date($saida, $timestamp_final);\r\n }", "public function getDayname($date) {\n $sStartDate = gmdate(\"Y-m-d\", strtotime($date));\n echo $startday = date('l', strtotime($sStartDate)); die;\n }", "function eo_the_start($format='d-m-Y',$id='',$occurrence=0){\n\techo eo_get_the_start($format,$id,$occurrence);\n}", "function ver_dia($k,$hoy_es,$hoy)\n{\n\t$fdia = explode(\"-\",$hoy);\n\tif($k==$hoy_es)\n\t\t$fecha=$hoy;\n\telse\n\t\tif($k<$hoy_es)\n\t\t{\n\t\t\t$diferencia = $hoy_es - $k;\n\t\t\t$fecha = date(\"d-m-Y\",mktime(0, 0, 0, $fdia[1] , $fdia[0]-$diferencia, $fdia[2]));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$diferencia = $k - $hoy_es;\n\t\t \t$fecha = date(\"d-m-Y\",mktime(0, 0, 0, $fdia[1] , $fdia[0]+$diferencia, $fdia[2]));\n\t\t}\n\treturn $fecha;\n}", "public function calculeDureVie($date1,$date2){\n //$datenow=strtotime(date(\"Y-m-d\"));\n // $date=selectDateStartCampagne();\n\n $diff = abs($date1 - $date2); // abs pour avoir la valeur absolute, ainsi éviter d'avoir une différence négative\n $retour = array();\n\n $tmp = $diff;\n $retour['second'] = $tmp % 60;\n\n $tmp = floor( ($tmp - $retour['second']) /60 );\n $retour['minute'] = $tmp % 60;\n\n $tmp = floor( ($tmp - $retour['minute'])/60 );\n $retour['hour'] = $tmp % 24;\n\n $tmp = floor( ($tmp - $retour['hour']) /24 );\n $retour['day'] = $tmp;\n\n return $retour['day'] ;\n }", "function DateToIndo($date) {\n // variabel BulanIndo merupakan variabel array yang menyimpan nama-nama bulan\n $BulanIndo = array(\"Januari\", \"Februari\", \"Maret\",\n \"April\", \"Mei\", \"Juni\",\n \"Juli\", \"Agustus\", \"September\",\n \"Oktober\", \"November\", \"Desember\");\n $tahun = substr($date, 0, 4); // memisahkan format tahun menggunakan substring\n $bulan = substr($date, 5, 2); // memisahkan format bulan menggunakan substring\n $tgl = substr($date, 8, 2); // memisahkan format tanggal menggunakan substring\n $result = $tgl . \" \" . $BulanIndo[(int)$bulan-1] . \" \". $tahun;\n return($result);\n \n}", "function processEvent($from, $till, $eStart, $eEnd, &$row) {\n\tglobal $evtList, $privs, $ucats, $set;\n\t\n\t$sTs = mktime(12,0,0,substr($from,5,2),substr($from,8,2),substr($from,0,4));\n\t$eTs = mktime(14,0,0,substr($till,5,2),substr($till,8,2),substr($till,0,4));\n\tfor($i=$sTs;$i<=$eTs;$i+=86400) { //increment 1 day\n\t\t$evt = array();\n\t\t$curD = date('Y-m-d', $i);\n\t\tif (strpos($row['xda'], $curD) === false) { //no exceptions\n\t\t\t$curdm = substr($curD,5);\n\t\t\tif ($row['eda'][0] != '9' and $row['sda'] < $row['eda']) { //multi-day event; mde -> 1:first, 2:in between ,3:last day\n\t\t\t\t$evt['mde'] = ($curdm == substr($eStart,5)) ? 1 : (($curdm == substr($eEnd,5)) ? 3 : 2);\n\t\t\t} else { //single day event\n\t\t\t\t$evt['mde'] = 0;\n\t\t\t}\n\t\t\t$evt['sda'] = $row['sda'];\n\t\t\t$evt['eda'] = $row['eda'];\n\t\t\tif (($row['sti'] == '00:00') and ($row['eti'] == '23:59')) {\n\t\t\t\t$evt['ald'] = true;\n\t\t\t\t$evt['sti'] = $evt['eti'] = ''; //all day: start/end time = ''\n\t\t\t} else {\n\t\t\t\t$evt['ald'] = false;\n\t\t\t\t$evt['sti'] = $row['sti'];\n\t\t\t\t$evt['eti'] = $row['eti'][0] != '9' ? $row['eti'] : ''; //no end time = ''\n\t\t\t}\n\t\t\t$evt['r_t'] = $row['r_t'];\n\t\t\t$evt['r_i'] = $row['r_i'];\n\t\t\t$evt['r_p'] = $row['r_p'];\n\t\t\t$evt['r_m'] = $row['r_m'];\n\t\t\t$evt['r_u'] = $row['r_u'];\n\t\t\t$evt['rem'] = $row['rem'];\n\t\t\t$evt['rml'] = $row['rml'];\n\t\t\t$evt['adt'] = ($row['adt'][0] != '9') ? $row['adt'] : '';\n\t\t\t$evt['mdt'] = ($row['mdt'][0] != '9') ? $row['mdt'] : '';\n\t\t\t$evt['eid'] = $row['eid'];\n\t\t\t$evt['typ'] = $row['typ'];\n\t\t\t$evt['tit'] = $row['tit'];\n\t\t\t$evt['cid'] = $row['cid'];\n\t\t\t$evt['ven'] = $row['ven'];\n\t\t\t$evt['des'] = $row['des'];\n\t\t\t$evt['xf1'] = $row['xf1'];\n\t\t\t$evt['xf2'] = $row['xf2'];\n\t\t\t$evt['att'] = $row['att'];\n\t\t\t$evt['uid'] = $row['uid'];\n\t\t\t$evt['edr'] = $row['edr'];\n\t\t\t$evt['apd'] = $row['apd'];\n\t\t\t$evt['pri'] = $row['pri'];\n\t\t\t$evt['chd'] = $row['chd'];\n\t\t\t$evt['cnm'] = $row['cnm'];\n\t\t\t$evt['app'] = $row['app'];\n\t\t\t$evt['seq'] = str_pad($row['seq'],2,\"0\",STR_PAD_LEFT);\n\t\t\t$evt['uco'] = $row['uco'];\n\t\t\t$evt['dbg'] = $row['dbg'];\n\t\t\t$evt['cco'] = $row['cco'];\n\t\t\t$evt['cbg'] = $row['cbg'];\n\t\t\t$evt['cbx'] = $row['cbx'];\n\t\t\t$evt['clb'] = $row['clb'];\n\t\t\t$evt['cmk'] = $row['cmk'];\n\t\t\t$evt['una'] = $row['una'];\n\t\t\t$evt['tix'] = $set['ownerTitle'] ? \"{$evt['una']}: {$evt['tit']}\" : $evt['tit'];\n\t\t\t$evt['mayE'] = (($ucats == '0' or strpos($ucats,strval($evt['cid'])) !== false) and ($privs > 2 or ($privs == 2 and $row['uid'] == $_SESSION['uid']))); //edit rights\n\t\t\t$evtList[$curD][] = $evt;\n\t\t}\n\t}\n}", "public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}", "public function mes(){\n\n\t\t$date = $this->dia;\n $date = DateTime::createFromFormat('Y-m-d', $date);\n \t \n\t\treturn $date->format('m') - 1;\n\t}", "function ultimoDiaMes($x_fecha_f){\r\n\techo \"entra a ultimo dia mes con fecha \".$x_fecha_f.\"<br>\";\r\n\t\t\t\t\t$temptime_f = strtotime($x_fecha_f);\t\r\n\t\t\t\t\t$x_numero_dia_f = strftime('%d', $temptime_f);\r\n\t\t\t\t\t$x_numero_mes_f = strftime('%m', $temptime_f);\r\n\t\t\t\t\techo \"numero mes\".$x_numero_mes_f.\"<br>\";\r\n\t\t\t\t\t$x_numero_anio_f = strftime('%Y', $temptime_f);\r\n\t\t\t\t\t$x_ultimo_dia_mes_f = strftime(\"%d\", mktime(0, 0, 0, $x_numero_mes_f+2, 0, $x_numero_anio_f));\r\n\techo \"el ultimo dia de mes es\".\t$x_ultimo_dia_mes_f .\"<br>\";\t\t\t\r\n\treturn $x_ultimo_dia_mes_f;\r\n}", "function getDay()\r\n {\r\n return $this->dia;\r\n }", "public function additionDate()\n {\n global $dbh;\n $sql = $dbh->prepare\n (\"INSERT INTO `daten` (`idu`, `kindd`, `idair`, `ida`, `idr`, `idc`, `idy`, `idcr`, `idv`, `idm`, `idx`, `idi`, `idmark`, `ido`, `idn`, `idserv`, `idp`, `ids`)\n VALUES \n ('$this->idu', '$this->kindd', '$this->idair', '$this->ida', '$this->idr', '$this->idc', '$this->idy',\n '$this->idcr', '$this->idv', '$this->idm', '$this->idx', '$this->idi', '$this->idmark', '$this->ido', '$this->idn', '$this->idserv', '$this->idp', '$this->ids');\");\n $result = $sql->execute();\n return $result;\n }", "function agenda_moisdecal($date, $decalage, $format = 'Y-m-d H:i:s') {\n\tinclude_spip('inc/filtres');\n\t$date_array = recup_date($date);\n\tif ($date_array) {\n\t\tlist($annee, $mois, $jour) = $date_array;\n\t}\n\tif (!$jour) {\n\t\t$jour = 1;\n\t}\n\tif (!$mois) {\n\t\t$mois = 1;\n\t}\n\t$mois2 = $mois + $decalage;\n\t$date2 = mktime(1, 1, 1, $mois2, $jour, $annee);\n\t// mois normalement attendu\n\t$mois3 = date('m', mktime(1, 1, 1, $mois2, 1, $annee));\n\t// et si le mois de la nouvelle date a moins de jours...\n\t$mois2 = date('m', $date2);\n\tif ($mois2 - $mois3) {\n\t\t$date2 = mktime(1, 1, 1, $mois2, 0, $annee);\n\t}\n\treturn date($format, $date2);\n}", "function errorFecha($valor){\n\tswitch($valor){\n\t\tcase 1: //Date of begininig is bigger than the date of end\n\t\techo \"La fecha de Inicio es mayor que la de fin </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 2: //Date of beginning is less of the date of now\n\t\techo \"La fecha de inicio es menor que la de ahora </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 3://Date of end is less of the date of now\n\t\techo \"La fecha de fin es menor que la actual </br>\";\n\t\tbreak;\n\t\t\n\t\tcase 4://Date of beginning is not enough to create dates of class\n\t\techo \"La fecha de inicio es corta para crear los dias de clase que pidio </br>\";\n\t\tbreak;\n\t\n\t}\n}", "function __construct(vevent $event, $from_date, $to_date)\r\n {\r\n //$this_day = date('d', $from_date);\r\n //$this_month = date('m', $from_date);\r\n //$this_year = date('Y', $from_date);\r\n\r\n //For the list view\r\n $date = getdate();\r\n $date_unixtime = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']);\r\n // TODO: List view needs to start today, not on the last selected date.\r\n// \t$from_date = ($date_unixtime + $to_date) / 2;\r\n \t$this_day = date('d', $from_date);\r\n $this_month = date('m', $from_date);\r\n $this_year = date('Y', $from_date);\r\n// \t$this_day = $date['mday'];\r\n// \t$this_month = $date['mon'];\r\n// \t$this_year = $date['year'];\r\n\r\n $start_month = $date['mon'] - 1;\r\n $start_year = $date['year'];\r\n $end_month = $this_month + 1;\r\n $end_year = $this_year;\r\n\r\n\r\n if ($this_month == 1)\r\n {\r\n $start_month = 12;\r\n $start_year --;\r\n }\r\n if ($this_month == 12)\r\n {\r\n $end_month = 1;\r\n $end_year ++;\r\n }\r\n\r\n $this->event = $event;\r\n $this->view_start = mktime(0, 0, 0, $start_month, 1, $start_year);\r\n $this->view_end = mktime(0, 0, 0, $end_month, 31, $end_year);\r\n\r\n if ($this->debug)\r\n {\r\n echo '<hr />';\r\n echo '<b>ICAL RECURRENCE</b>';\r\n echo '<hr />';\r\n echo '<table class=\"data_table\">';\r\n echo '<thead>';\r\n echo '<tr><th>Variable</td><th>Value</td>';\r\n echo '</thead>';\r\n echo '<tbody>';\r\n echo '<tr><td>Title</td><td>' . $this->event->summary['value'] . '</td>';\r\n echo '<tr><td>View begin</td><td>' . $this->view_start . ' (' . date('r', $this->view_start) . ')</td>';\r\n echo '<tr><td>View end</td><td>' . $this->view_end . ' (' . date('r', $this->view_end) . ')</td>';\r\n // echo '<tr><td>Event</td><td>';\r\n // echo '<pre>';\r\n // echo print_r($this->event, true);\r\n // echo '</pre>';\r\n // echo '</td>';\r\n // echo '</tr>';\r\n echo '</tbody>';\r\n echo '</table>';\r\n }\r\n }", "function verifDate($idEvenement, $idAgenda)\n{\n $connection = new mysqli($_SESSION['db_host'], $_SESSION['db_user'], $_SESSION['db_password'], $_SESSION['db_dbname']);\n $req = \"SELECT * from evenement where idEvenement = \" . $idEvenement;\n $res = mysqli_query($connection, $req);\n $ligne = mysqli_fetch_object($res);\n $debEvent = $ligne->HeureDebut;\n $finEvent = $ligne->HeureFin;\n\n\n $timestamp = date_create_from_format('Y-m-d H:i:s', $debEvent);\n $debEvent = date_format($timestamp, 'YmdHi');\n $timestamp = date_create_from_format('Y-m-d H:i:s', $finEvent);\n $finEvent = date_format($timestamp, 'YmdHi');\n\n $req = \"SELECT * from evenement where idEvenement = \" . $idAgenda;\n $res = mysqli_query($connection, $req);\n $ligne = mysqli_fetch_object($res);\n $debAge = $ligne->HeureDebut;\n $finAge = $ligne->HeureFin;\n\n $timestamp = date_create_from_format('Y-m-d H:i:s', $debAge);\n $debAge = date_format($timestamp, 'YmdHi');\n $timestamp = date_create_from_format('Y-m-d H:i:s', $finAge);\n $finAge = date_format($timestamp, 'YmdHi');\n\n\n if ($debEvent <= $debAge) {\n if ($debAge <= $finEvent)\n return false;\n return true;\n\n }\n\n\n if ($debEvent <= $finAge) {\n if ($finEvent >= $finAge)\n return false;\n return true;\n\n }\n return true;\n}", "function GetEvent($date, $id_country = 0, $id_region = 0, $id_city = 0, $type = 0, $my_events = false){\n\tglobal $lang, $config, $config_index, $smarty, $dbconn, $user;\n\n\t$filter = $table = \"\";\n\tif ($id_country)$filter .= \" AND a.id_country = \".$id_country;\n\tif ($id_region)\t$filter .= \" AND a.id_region = \".$id_region;\n\tif ($id_city)\t$filter .= \" AND a.id_city = \".$id_city;\n\tif ($type)\t\t$filter .= \" AND a.type = \".$type;\n\n\tif ($my_events) {\n\t\t$table = \", \".EVENT_USERS_TABLE.\" b \";\n\t\t$filter .= \" AND a.id = b.id_event AND b.id_user = \".$user[ AUTH_ID_USER ];\n\t}\n\n\t$strSQL = \"SELECT a.id, a.event_name, a.id_creator FROM \".EVENT_DESCR_TABLE.\" a\".$table.\"\n\t\tWHERE (\t(a.periodicity = 'none' AND DATE_FORMAT(a.start_date,'%Y-%m-%d') = DATE_FORMAT('\".$date.\"','%Y-%m-%d'))\n\t\t\tOR (a.periodicity = 'daily' AND (DATE_FORMAT('\".$date.\"','%Y-%m-%d') <= a.die_date OR a.die_date = '0000-00-00') AND DATE_FORMAT(a.start_date,'%Y-%m-%d') <= DATE_FORMAT('\".$date.\"','%Y-%m-%d'))\n\t\t\tOR (a.periodicity = 'weekly' AND DAYOFWEEK(a.start_date) = DAYOFWEEK('\".$date.\"') AND (DATE_FORMAT('\".$date.\"','%Y-%m-%d') <= a.die_date OR a.die_date = '0000-00-00') AND DATE_FORMAT(a.start_date,'%Y-%m-%d') <= DATE_FORMAT('\".$date.\"','%Y-%m-%d'))\n\t\t\tOR (a.periodicity = 'monthly' AND DAYOFMONTH(a.start_date) = DAYOFMONTH('\".$date.\"') AND (DATE_FORMAT('\".$date.\"','%Y-%m-%d') <= a.die_date OR a.die_date = '0000-00-00') AND DATE_FORMAT(a.start_date,'%Y-%m-%d') <= DATE_FORMAT('\".$date.\"','%Y-%m-%d'))\n\t\t\tOR (a.periodicity = 'yearly' AND MONTH(a.start_date) = MONTH('\".$date.\"') AND DAYOFMONTH(a.start_date) = DAYOFMONTH('\".$date.\"') AND (DATE_FORMAT('\".$date.\"','%Y-%m-%d') <= a.die_date OR a.die_date = '0000-00-00') AND DATE_FORMAT(a.start_date,'%Y-%m-%d') <= DATE_FORMAT('\".$date.\"','%Y-%m-%d'))\t)\".$filter;\n\t$rs = $dbconn->Execute($strSQL);\n\t$num_records = $rs->RowCount();\n\tif($num_records>0){\n\t\t$event[\"event_count\"] = $num_records;\n\t\t$i = 0;\n\t\twhile(!$rs->EOF){\n\t\t\t$row = $rs->GetRowAssoc(false);\n\t\t\t$event[\"event\"][$i][\"id_event\"] = $row[\"id\"];\n\t\t\tif (strlen($row[\"event_name\"])<10) {\n\t\t\t\t$event[\"event\"][$i][\"name\"] = stripslashes($row[\"event_name\"]);\n\t\t\t} else {\n\t\t\t\t$event[\"event\"][$i][\"name\"] = stripslashes(substr($row[\"event_name\"],0,10).\"...\");\n\t\t\t}\n\t\t\t$event[\"event\"][$i][\"full_name\"] = stripslashes($row[\"event_name\"]);\n\t\t\t$i++;\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\treturn $event;\n\t} else {\n\t\treturn '';\n\t}\n}", "function getDay(){\r\n return date('l',$this->timestamp);\r\n }", "function hoje() {\n $data_hoje = date(\"Y-m-d H:i:s\");\n return $data_hoje;\n }", "public function buildDayList($date){\n\t\t$events = $this->getDayEvents($date);\n\t\t$count = 0;\n\t\t\n\t\tob_start();\n\t\tif(count($events) > 0){\n\t\t\tforeach($events as $key => $event){\t\t\t\n\t\t\t\t$recurringDays = $event->getRecurringDays();\n\t\t\t\t\t\t\n\t\t\t\t$dayOfWeek = date_create($date);\n\t\t\t\t$dayOfWeek = strtolower(date_format($dayOfWeek, \"l\"));\n\t\t\t\t//echo $dayOfWeek;\n\n\t\t\t\tif(count($recurringDays)){\n\t\t\t\t\tif(in_array($dayOfWeek, $recurringDays)){\n\t\t\t\t\t\techo '<h4>Events for ' . $this->getDate($date) . '</h4>';\n\t\t\t\t\t\techo $event->toHtml('listing');\n\t\t\t\t\t\techo '<hr />';\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\techo '<h4>Events for ' . $this->getDate($date) . '</h4>';\n\t\t\t\t\techo $event->toHtml('listing');\n\t\t\t\t\techo '<hr />';\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t$count++;\n\t\t\t}\n\t\t}\n\t\treturn ob_get_clean();\n\t}", "function buscaData($data_agend){\n # ($calendario)\";\n # $data_agend = \"SELECT data_agend FROM Agendamento\";\n\n $dia = substr($data_agend, 0, 2);\n $mes = substr($data_agend, 3, 2);\n $ano = substr($data_agend, 6, 4);\n\n $result = $ano . \"-\" . $mes . \"-\" . $dia;\n return $result;\n}", "public function index()\n {\n $pegawais = Pegawai::all();\n $absens = Absen::where('absensi', '=', 0)->orderBy('pegawai_id', 'asc')->orderBy('tanggal', 'asc')->get();\n /*\n $events = array();\n foreach($absens as $absen)\n {\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = $absen->tanggal;\n $events[] = $event; \n }\n $events = json_encode($events);\n */\n \n $absenCounter = count($absens);\n $count = 0;\n $events = array();\n\n if ($absenCounter > 0)\n { \n $prev = strtotime($absens[0]->tanggal);\n $tempevent = null;\n $prevId = $absens[0]->pegawai_id;\n foreach ($absens as $absen)\n {\n $idP = $absen->pegawai_id;\n $now = strtotime($absen->tanggal);\n if ($idP == $prevId)\n {\n if ($now - $prev == 86400)\n $tempevent['end'] = date('Y-m-d', $now + 86400);\n else\n {\n if (isset($tempevent))\n $events[] = $tempevent;\n\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = explode(' ',$absen->tanggal)[0];\n $tempevent = $event;\n }\n }\n else\n {\n if (isset($tempevent))\n $events[] = $tempevent;\n\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = explode(' ',$absen->tanggal)[0];\n $tempevent = $event;\n }\n $count++;\n if ($count < $absenCounter)\n $prev = $now;\n $prevId = $idP;\n }\n\n\n if ($now - $prev == 86400)\n $tempevent['end'] = date('Y-m-d', $now + 86400);\n $events[] = $tempevent;\n }\n $events = json_encode($events); \n\n return view('home', compact('pegawais', 'events'));\n>>>>>>> 89b1f447d154be4b9e1c19744a84d468801d0ac7\n }", "function ritorna_data_attuale() {\n\t$tz = 'Europe/Rome';\n\t$format='d/m/Y H:i:s'; // Formato Italiano\n $retData='';\n//\n// DO NOT EDIT ANYTHING BELOW THIS LINE!\n//\n\tdate_default_timezone_set($tz);\n\t$retData = date($format);\n\treturn($retData);\n}", "function datum_nu2() {\n //\n\t\t\t$datestring \t\t\t\t= \"%Y-%m-%d\" ; \n\t\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\treturn mdate($datestring, $time);\n\t}", "public function cal_indexAction()\n {\n $startDate = date(\"Y-m-d\") ;\n $endDate = date(\"Y-m-d\", mktime(0,0,0,date(\"m\"),date(\"d\"),date(\"Y\")+1));\n $em = $this->getDoctrine()->getManager();\n $dql1 = \"SELECT c.title,c.date,c.time,c.description FROM EnglishCalendarBundle:Calendar c WHERE c.date >= ?1 and c.date < ?2 ORDER BY c.date ASC\";\n $calendar = $em->createQuery($dql1)->setParameter('1',$startDate)->setParameter('2',$endDate)->getResult();\n return $this->render('EnglishHomeBundle:Default:cal_index.html.twig', array('calendar' => $calendar,));\n\n }", "function generar_calendario_precios($year,$month,$id){\n\tinclude('../includes/conexion_nueva.php');\n\t$tabla = 'sys_pricerange';\n\t$sql = 'SELECT precio,fecha,tipo FROM '.$tabla.' WHERE id_propiedad = '.$id.' AND fecha >= \"'.$year.'-'.$month.'-1\" AND fecha<= \"'.$year.'-'.$month.'-31\"';\n\tmysqli_set_charset($connection, \"utf8\");\n\t$periodos = $connection->query($sql);\n\t$precios = array();\n\twhile ($res = $periodos->fetch_assoc()) {\n\t\t$fe = strtotime($res['fecha']);\n\t\t$precios[$fe] = $res['precio'];\n\t\t$tipos[$fe] = $res['tipo'];\n\t}\n\n\t# Obtenemos el dia de la semana del primer dia\n\t# Devuelve 0 para domingo, 6 para sabado\n\t$diaSemana=date(\"w\",mktime(0,0,0,$month,1,$year))+7;\n\t# Obtenemos el ultimo dia del mes\n\t$ultimoDiaMes=date(\"d\",(mktime(0,0,0,$month+1,1,$year)-1));\n\t$meses=array(1=>\"Enero\", \"Febrero\", \"Marzo\", \"Abril\", \"Mayo\", \"Junio\", \"Julio\", \"Agosto\", \"Septiembre\", \"Octubre\", \"Noviembre\", \"Diciembre\");\n\n\t$calendar = '';\n\t$calendar .= '<table class=\"calendario\" width=\"250\" style=\"text-align:center;margin:0px 5px 0px 5px\">';\n\t//$calendar .= '<table class=\"calendario\" style=\"text-align:center;width:300px;display:block; oveflow:hidden; float:left\">';\n\t\t$calendar .= '<caption>'.$meses[$month].\" \".$year.'</caption>';\n\t\t$calendar .= '<tr><th>Lun</th><th>Mar</th><th>Mie</th><th>Jue</th><th>Vie</th><th>Sab</th><th>Dom</th></tr>';\n\t\t$calendar .= '<tr>';\n\t\t\t# definimos los valores iniciales para nuestro calendario\n\t\t\t$last_cell = $diaSemana + $ultimoDiaMes;\n\t\t\t// hacemos un bucle hasta 42, que es el máximo de valores que puede\n\t\t\t// haber... 6 columnas de 7 dias\n\t\t\tfor($i=1;$i<=49;$i++){\n\t\t\t\tif($i==$diaSemana){\n\t\t\t\t\t// determinamos en que dia empieza\n\t\t\t\t\t$day=1;\n\t\t\t\t}\n\t\t\t\tif($i<$diaSemana || $i>=$last_cell){\n\t\t\t\t\t// celca vacia\n\t\t\t\t\t$calendar .= \"<td>&nbsp;</td>\";\n\t\t\t\t}else{\n\t\t\t\t\t$precio = '';\n\t\t\t\t\t$fe = strtotime($year.'-'.$month.'-'.$day);\n\t\t\t\t\tif(isset($precios[$fe])){\n\t\t\t\t\t\t$precio = $precios[$fe];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$precio = '0';\n\t\t\t\t\t}\n\t\t\t\t\tif(isset($tipos[$fe])){\n\t\t\t\t\t\t$tipo = 'T= '.$tipos[$fe];\n\t\t\t\t\t}else{\n\t\t\t\t\t\t$tipo = '--';\n\t\t\t\t\t}\n\t\t\t\t\t$calendar .= \"<td style='background:#75BB7D;'><span>$day</span><br />\".$precio.\"€<br /><span>\".$tipo.\"</span></td>\";\n\t\t\t\t\t$day++;\n\t\t\t\t}\n\t\t\t\t// cuando llega al final de la semana, iniciamos una columna nueva\n\t\t\t\tif($i%7==0){\n\t\t\t\t\t$calendar .= \"</tr><tr>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t$calendar .= '</tr>';\n\t$calendar .= '</table>';\n\n\treturn $calendar;\n}", "function day_name($date,$session_nik,$datacuti,$dataliburbersama,$datalibur,$datasakittanpasuratdokter,$datasakitdengansuratdokter){\n\n $tanggal = date('Y-m-d', strtotime($date));\n\n $query = mysql_query(\"SELECT * FROM tbl_holiday WHERE Tanggal='$tanggal'\");\n $total = mysql_num_rows($query);\n $data = mysql_fetch_array($query);\n \n $cutiid = \"\";\n \n\n $countdatacuti = sizeof($datacuti); //untuk mengecek data di dalam array\n $countdataliburbersama = sizeof($dataliburbersama); //untuk mengecek data di dalam array\n $countsakittanpasuratdokter = sizeof($datasakittanpasuratdokter); //untuk mengecek data di dalam array\n $countsakitdengansuratdokter = sizeof($datasakitdengansuratdokter); //untuk mengecek data di dalam array\n \n \n $N = date('N', strtotime($date));\n\n if ($N==1){\n $kyou = 'Senin';\n }\n elseif ($N==2){\n $kyou = 'Selasa';\n }\n elseif ($N==3){\n $kyou = 'Rabu';\n }\n elseif ($N==4){\n $kyou = 'Kamis';\n }\n elseif ($N==5){\n $kyou = 'Jumat';\n }\n elseif ($N==6){\n $kyou = 'Sabtu';\n }\n elseif ($N==7){\n $kyou = 'Minggu';\n }\n else{\n $kyou = '';\n }\n\n\n if ($total>0 || $kyou=='Minggu' || $kyou=='Sabtu' || $countdataliburbersama>0){\n return '<font color=\"red\"><strong>'.$kyou.'</strong></font>';\n }elseif($countdatacuti>0 || $countsakittanpasuratdokter || $countsakitdengansuratdokter) {\n return '<font color=\"blue\"><strong>'.$kyou.'</strong></font>';\n }else{\n return $kyou;\n }\n\n \n\n}" ]
[ "0.68117815", "0.620337", "0.60852766", "0.60821587", "0.6076718", "0.60514265", "0.60250807", "0.5987618", "0.59728", "0.5966744", "0.593795", "0.58834743", "0.5882177", "0.5866306", "0.5864924", "0.58588666", "0.58096373", "0.576062", "0.57598454", "0.57590926", "0.57581097", "0.5755582", "0.5716766", "0.57108164", "0.5706487", "0.5704396", "0.56937426", "0.5689152", "0.5685091", "0.56825495", "0.56787336", "0.5669149", "0.5668131", "0.5667104", "0.566673", "0.5660153", "0.56600153", "0.5659684", "0.5654732", "0.56490165", "0.56337667", "0.5625295", "0.5619091", "0.56037855", "0.56037855", "0.56031764", "0.56024444", "0.56001145", "0.5596811", "0.55740964", "0.5569231", "0.556611", "0.55646586", "0.55640453", "0.55482113", "0.5547843", "0.5547264", "0.5546084", "0.5541822", "0.55312747", "0.5529076", "0.5522706", "0.55205303", "0.5516281", "0.55156046", "0.5508658", "0.5508658", "0.55051833", "0.55051833", "0.55051833", "0.54993033", "0.5491535", "0.54754066", "0.54723513", "0.5471058", "0.5469958", "0.54697704", "0.54614675", "0.5459146", "0.5451138", "0.5443037", "0.54383695", "0.54295206", "0.5419104", "0.54174", "0.5416123", "0.54149115", "0.54120964", "0.54106665", "0.54077536", "0.54066896", "0.54047066", "0.5397057", "0.539543", "0.5391362", "0.5388592", "0.5385926", "0.538531", "0.5381156", "0.53772986", "0.5375588" ]
0.0
-1
COLLABORA, REGIA, MUSICA, PRODOTTO DA, etc
function stampaQuando($numeroEvento, $conn) { $stmt = $conn->prepare("SELECT eld.data, eld.orario FROM eventoLuogoData AS eld WHERE eld.id_evento = ?"); $stmt->bind_param("i", $numeroEvento); $stmt->execute(); $stmt->bind_result($data, $orario); $daRitornare=""; $daRitornare.= "<div class='l12 w3-deep-orange'>"; $daRitornare.= "<p> Date evento: </p>"; while($stmt->fetch()) { $daRitornare.= "<div class='w3-center'><b>" . dataIta($data) . " - " . tagliaSec($orario) . "</b></div>"; } $daRitornare.= "</div>"; return $daRitornare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPaises()\n{\n return array('ECUADOR', 'COLOMBIA', 'ESPAÑA', 'OTRO');\n}", "function nombremescorto($idmes){\n\t$nombremescorto = \"\";\n\tswitch ($idmes) {\n\t\tcase 1:\n\t\t\t$nombremescorto = \"ENE\";\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t$nombremescorto = \"FEB\";\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\t$nombremescorto = \"MAR\";\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\t$nombremescorto = \"ABR\";\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\t$nombremescorto = \"MAY\";\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\t$nombremescorto = \"JUN\";\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\t$nombremescorto = \"JUL\";\n\t\t\tbreak;\n\t\tcase 8:\n\t\t\t$nombremescorto = \"AGO\";\n\t\t\tbreak;\n\t\tcase 9:\n\t\t\t$nombremescorto = \"SEP\";\n\t\t\tbreak;\n\t\tcase 10:\n\t\t\t$nombremescorto = \"OCT\";\n\t\t\tbreak;\n\t\tcase 11:\n\t\t\t$nombremescorto = \"NOV\";\n\t\t\tbreak;\n\t\tcase 12:\n\t\t\t$nombremescorto = \"DIC\";\n\t\t\tbreak;\n\n\t}\n\treturn $nombremescorto;\n}", "function dividirPalabraEnLetras($palabra){\n \n /*>>> Completar para generar la estructura de datos b) indicada en el enunciado. \n recuerde que los string pueden ser recorridos como los arreglos. <<<*/\n \n}", "function get_clase_vista()\n {\n switch ($this->accion) {\n case 'index': \n case 'mostrar_clases': \n case 'filtrar': return 'vista_materias';\n case 'planilla': return 'vista_planilla';\n case 'resumen': return 'vista_resumen';\n case 'generar_pdf': return 'vista_planilla';\n default: return 'vista_edicion_asistencias';\n }\n }", "function nomi_sintomi($nome)\n{\n\tif ( ($nome == 'id') || ($nome == 'id_paziente') );\n\n\telse if ( $nome == 'data_inserimento') \t\n\t\treturn ('Insertion date');\n\telse if ( $nome == 'data_sintomi') \t\n\t\treturn ('Date of first clinical sign');\n\telse if ( $nome == 'crisi_epilettica') \t\n\t\treturn ('Epilepsy');\n\telse if ( $nome == 'disturbi_comportamento') \t\n\t\treturn ('Behavioral disorder');\n\telse if ( $nome == 'deficit_motorio') \t\n\t\treturn ('Motor deficit');\n\telse if ( $nome == 'deficit') \t\n\t\treturn ('Sensory deficit');\t\n\telse if ( $nome == 'cefalea') \t\n\t\treturn ('Headache');\t\t\n\telse if ( $nome == 'altro') \t\n\t\treturn ('Other');\t\n\t \n\telse\n\t\treturn ucfirst($nome);\n}", "protected function subjonctifImparfait(){\n $terminaisons=[];\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguèsses\";\n $terminaisons[]= \"fuguèsse\";\n $terminaisons[]= \"fuguessian\";\n $terminaisons[]= \"fuguessias\";\n $terminaisons[]= \"fuguèsson\";\n return $terminaisons;\n }", "function datos_censales($alumno)\n\t{\n $formulario_habilitado = $this->s__datos_config_reporte['formulario_habilitado'];\n\t\t//$habilitacion = $this->s__datos_config_reporte['habilitacion'];\n \n\t\t$formulario_terminado = toba::consulta_php('consultas_relevamiento_ingenierias')->get_formulario_terminado($formulario_habilitado, $alumno['encuestado']);\n\t\t\n\t\tif (!empty($formulario_terminado)) {\n\t\t\t$formulario_habilitado = $formulario_terminado[0]['formulario_habilitado'];\n\t\t\t$this->respuestas = toba::consulta_php('consultas_relevamiento_ingenierias')->get_respuestas_completas_formulario_habilitado_encuestado($formulario_habilitado, $alumno['encuestado']);\n\t\t\t\n\t\t\t//Respuestas Datos Censales Principales\n\t\t\t$rta_estado_civil \t= $this->get_respuestas(247);\n\t\t\t$rta_cant_hijos \t= $this->get_respuestas(248);\n\t\t\t$rta_cant_fliares \t= $this->get_respuestas(249);\n\t\t\t$rta_calle\t\t\t= $this->get_respuestas(251);\n\t\t\t$rta_numero\t\t\t= $this->get_respuestas(252);\n\t\t\t$rta_piso\t\t\t= $this->get_respuestas(253);\n\t\t\t$rta_depto\t\t\t= $this->get_respuestas(254);\n\t\t\t$rta_unidad\t\t\t= $this->get_respuestas(255);\n\t\t\t$rta_localidad\t\t= $this->get_respuestas(256);\n\t\t\t$rta_calle_proc\t\t= $this->get_respuestas(258);\n\t\t\t$rta_numero_proc\t= $this->get_respuestas(259);\n\t\t\t$rta_piso_proc\t\t= $this->get_respuestas(260);\n\t\t\t$rta_depto_proc\t\t= $this->get_respuestas(261);\n\t\t\t$rta_unidad_proc\t= $this->get_respuestas(262);\n\t\t\t$rta_localidad_proc\t= $this->get_respuestas(263);\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$rtas_fuente = $this->get_respuestas(265, true);\n\t\t\t$rtas_beca\t = $this->get_respuestas(266, true);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$rta_cond_activ\t\t = $this->get_respuestas(268);\n\t\t\t$rta_es_usted\t\t = $this->get_respuestas(269);\n\t\t\t$rta_ocupacion_es\t = $this->get_respuestas(270);\n\t\t\t$rta_horas_semanales = $this->get_respuestas(271);\n\t\t\t$rta_rel_trab_carrera = $this->get_respuestas(272);\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$rta_nivel_est_padre\t = $this->get_respuestas(274);\n\t\t\t$rta_vive_padre\t\t\t = $this->get_respuestas(275);\n\t\t\t$rta_cond_activ_padre\t = $this->get_respuestas(276);\n\t\t\t$rta_es_usted_padre\t\t = $this->get_respuestas(277);\n\t\t\t$rta_ocupacion_es_padre\t = $this->get_respuestas(278);\n\t\t\t$rta_si_no_trabaja_padre = $this->get_respuestas(279);\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$rta_nivel_est_madre\t = $this->get_respuestas(281);\n\t\t\t$rta_vive_madre\t\t\t = $this->get_respuestas(282);\n\t\t\t$rta_cond_activ_madre\t = $this->get_respuestas(283);\n\t\t\t$rta_es_usted_madre\t\t = $this->get_respuestas(284);\n\t\t\t$rta_ocupacion_es_madre\t = $this->get_respuestas(285);\n\t\t\t$rta_si_no_trabaja_madre = $this->get_respuestas(286);\n\t\t\t\n\t\t\t//Se arma la linea con las respuestas - Datos Censales Principales\n\t\t\t$linea = '|'.$rta_estado_civil['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_hijos['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_cant_fliares['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle['respuesta_valor'].'|'.$rta_numero['respuesta_valor'].'|'.$rta_piso['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto['respuesta_valor'].'|'.$rta_unidad['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad) ? '' : $rta_localidad['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_calle_proc['respuesta_valor'].'|'.$rta_numero_proc['respuesta_valor'].'|'.$rta_piso_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.$rta_depto_proc['respuesta_valor'].'|'.$rta_unidad_proc['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_localidad_proc) ? '' : $rta_localidad_proc['respuesta_valor'];\n\t\t\t\n\t\t\t//Respuestas Datos Económicos - Financiamiento estudios\n\t\t\t$linea .= '|'.$this->get_lista_array_fuente($rtas_fuente).'|'.$this->get_lista_array_beca($rtas_beca);\n\t\t\t\n\t\t\t//Situación laboral\n\t\t\t$linea .= '|'.$rta_cond_activ['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted) \t\t ? '' : $rta_es_usted['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es) \t ? '' : $rta_ocupacion_es['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_horas_semanales) ? '' : $rta_horas_semanales['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_rel_trab_carrera) ? '' : $rta_rel_trab_carrera['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación del padre\n\t\t\t$linea .= '|'.$rta_nivel_est_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_padre) \t\t ? '' : $rta_vive_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_padre) \t ? '' : $rta_cond_activ_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_padre) \t ? '' : $rta_es_usted_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_padre) ? '' : $rta_ocupacion_es_padre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_padre) ? '' : $rta_si_no_trabaja_padre['respuesta_valor'];\n\t\t\t\n\t\t\t//Situación de la madre\n\t\t\t$linea .= '|'.$rta_nivel_est_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_vive_madre) \t\t ? '' : $rta_vive_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_cond_activ_madre)\t ? '' : $rta_cond_activ_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_es_usted_madre) \t ? '' : $rta_es_usted_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_ocupacion_es_madre) ? '' : $rta_ocupacion_es_madre['respuesta_valor'];\n\t\t\t$linea .= '|'.empty($rta_si_no_trabaja_madre) ? '' : $rta_si_no_trabaja_madre['respuesta_valor'];\n\t\t\t\n\t\t\t//Fecha de terminación del formulario\n\t\t\t$linea .= '|'.$formulario_terminado[0]['fecha_terminado'];\n\t\t} else {\n\t\t\t$linea = '|||||||||||||||||||||||||||||||';\n\t\t}\n\t\t\n\t\t//Se retornan las respuestas del alumno\n\t\treturn $linea;\n\t}", "function dia_letras($dia){\t\n\t\t\t\t\t\t\t\t\t\n\t\t\tswitch($dia)\n\t\t\t{\n\t\t\tcase 1:\n\t\t\t $dia_letras=\"Lunes\";\n\t\t\t break;\n\t\t\tcase 2:\n\t\t\t $dia_letras=\"Martes\";\n\t\t\t break;\n\t\t\tcase 3:\n\t\t\t $dia_letras=\"Miercoles\";\n\t\t\t break;\n\t\t\tcase 4:\n\t\t\t $dia_letras=\"Jueves\";\n\t\t\t break;\n\t\t\tcase 5:\n\t\t\t $dia_letras=\"Viernes\";\n\t\t\t break;\n\t\t\t case 6:\n\t\t\t $dia_letras=\"Sabado\";\n\t\t\t break;\n\t\t\tcase 0:\n\t\t\t $dia_letras=\"Domingo\";\t\t \n\t\t\t break;\n\t\t\tcase 10:\n\t\t\t $dia_letras=\"Festivo\";\n\t\t\t break;\t\n\t\t\t}\n\t\t\t\n\t\t\treturn $dia_letras;\n\t\t\t\n\t\t}", "public function getMataPelajaran();", "public function getChapeau();", "function NombreCurso($varcurso)\n{\n\tif ($varcurso == 1) return \"Nybörjare\";\n\tif ($varcurso == 2) return \"Steg 2\";\n\tif ($varcurso == 3) return \"Steg 3\";\n\tif ($varcurso == 4) return \"Steg 4\";\n\tif ($varcurso == 5) return \"Open level\";\n\tif ($varcurso == 6) return \"\";\n\tif ($varcurso == 7) return \"Private class\";\n\tif ($varcurso == 8) return \"Nybörjare/Open level\";\n}", "function getNombreGenericoPrestacion($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $descr = \"INMUNIZACION\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $descr = \"CONTROL PEDIATRICO\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $descr = \"CONTROL ADOLESCENTE\";\r\n break;\r\n case 'PARTO':\r\n $descr = \"CONTROL DEL PARTO\";\r\n break;\r\n case 'EMB':\r\n $descr = \"CONTROL DE EMBARAZO\";\r\n break;\r\n case 'ADULTO':\r\n $descr = \"CONTROL DE ADULTO\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $descr = \"SEGUIMIENTO\";\r\n break;\r\n case 'TAL':\r\n $descr = \"TAL\";\r\n break;\r\n }\r\n return $descr;\r\n}", "public function intensidad(){\n if($this->PP03F < 35 && $this->PP03G == 1 && $this->PP03H == 1)\n {\n return 1;\n }\n if($this->caracteristicas->CH06 >= 10 && $this->PP03G == 1 && $this->PP01E == 5)\n {\n return 2;\n }\n if( $this->PP03F > 40)\n {\n return 3;\n }\n if($this->PP01E == 5)\n {\n return 4;\n }\n}", "function tipoDeLlamada($codInternacional, $codArea)\n{\n if ($codInternacional == 54)\n {\n if ($codArea == 299)\n {\n return \"corta\";\n }\n\n return \"larga\";\n }\n return \"internacional\";\n}", "public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }", "function fct_titre_page ($mescriteres) {\n\t$titre_page = \"\";\n\tforeach ($mescriteres as $ref => $infoscritere) {\n\t\tif (($infoscritere['code'] >= 0) && ($infoscritere['libelle'] != \"\")) {\n\t\t\tif ($titre_page != \"\") $titre_page .= \", \";\n\t\t\t$titre_page .= $infoscritere['libelle'];\n\t\t}\n\t}\n\tif ($titre_page == \"\") $titre_page = \"Un expert vous aide Ó identifier un arbre\";\n\telse $titre_page = \"Fleurs correspondant Ó : \".$titre_page;\n\treturn $titre_page;\n}", "public function stringTipoCargo($parametro)\n{\n\n switch ($parametro) {\n case 1:\n # code...\n return \"Vendedor\";\n break;\n\n\n case 2:\n # code...\n return \"Vendedor Externo\";\n break;\n\n\n case 3:\n # code...\n return \"Administrativo\";\n break;\n\n case 4:\n # code...\n return \"Otro\";\n break;\n \n default:\n # code...\n return \"No definido\";\n break;\n }\n\n}", "function getAlc(){\r\n return array(\"saki\", \"vodka\", \"rum\", \"whiskey\", \"tequila\", \"gin\");\r\n }", "public static function getReceta(){\n return array(\"LENTEJA\"=>200, \"LONGANIZA VEGANA\"=>1);\n }", "function getTipoParqueo()\n{\n return array(\n array('codigo' => 'MTO', 'valor' => 'Moto'),\n array('codigo' => 'CAR', 'valor' => 'Carro'),\n array('codigo' => 'TRK', 'valor' => 'Camion'),\n );\n}", "public function accion(){\n \t$accion = $this->accion;\n \tif ($accion == 'CREAR') {\n \t\t$accion = \"CREACION\";\n \t}else{\n \t\t$accion = \"EDICION\";\n \t}\n \treturn $accion;\n }", "function define_forma_pagamento($pgto){\n \n switch($pgto){\n case (strpos($pgto, 'Crédito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Débito') !== false) :\n return 2;\n break;\n case (strpos($pgto, 'Dinheiro') !== false) :\n return 1;\n break;\n default:\n return 1002;\n break;\n }\n \n}", "function cuentabancos(){\n\t\t\t$sql=$this->query(\"select m.IdPoliza,m.Cuenta,c.description,c.manual_code\n\t\t\tfrom cont_movimientos m,cont_polizas p,cont_accounts c,cont_config conf\n\t\t\twhere m.cuenta=c.account_id and c.currency_id=2 \n\t\t\tand c.`main_father`=conf.CuentaBancos and p.idtipopoliza!=3 and m.TipoMovto not like '%M.E%'\n\t\t\tand m.IdPoliza=p.id and p.activo=1 and m.Activo=1 group by m.Cuenta\n\t\t\t\");\n\t\t\treturn $sql;\n\t\t}", "public function linea_colectivo();", "function niveles($area){\n\t\tif ($area->cveentidad2=='0') return 1;\n\t\tif ($area->cveentidad3=='0') return 2;\n\t\tif ($area->cveentidad4=='0') return 3;\n\t\tif ($area->cveentidad5=='0') return 4;\n\t\tif ($area->cveentidad6=='0') return 5;\n\t\tif ($area->cveentidad7=='0') return 6;\n\t}", "protected function convertirMayuscula(){\n $cadena=strtoupper($this->tipo);\n $this->tipo=$cadena;\n }", "public function getDirectriz()\n {\n $dir = false;\n if (self::getCod() === '110000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '120000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '210000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '220000') $dir='Ciencias Experimentales';\n if (self::getCod() === '230000') $dir='Ciencias Experimentales';\n if (self::getCod() === '240000') $dir='Ciencias de la Salud';\n if (self::getCod() === '250000') $dir='Ciencias Experimentales';\n if (self::getCod() === '310000') $dir='Ciencias Experimentales';\n if (self::getCod() === '320000') $dir='Ciencias de la Salud';\n if (self::getCod() === '330000') $dir='Enseñanzas Técnicas';\n if (self::getCod() === '510000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '520000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '530000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '540000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '550000') $dir='Humanidades';\n if (self::getCod() === '560000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '570000') $dir='Humanidades';\n if (self::getCod() === '580000') $dir='Humanidades';\n if (self::getCod() === '590000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '610000') $dir='Ciencias de la Salud';\n if (self::getCod() === '620000') $dir='Humanidades';\n if (self::getCod() === '630000') $dir='Ciencias Sociales y Jurídicas';\n if (self::getCod() === '710000') $dir='Humanidades';\n if (self::getCod() === '720000') $dir='Humanidades';\n return $dir;\n }", "public function obterCor($nome){\n $cores = Mage::getModel('cores/cores')->getCollection();\n $cor = $cores->addFieldToFilter('nome', $nome)->getFirstItem();\n\n if($cor->getImagem()){\n return $cor->getImagem();\n }else{\n return $cor->getCor();\n }\n }", "public function getSacadoCidadeUF();", "function get_mecanismos_carga()\n\t{\n\t\t$param = $this->get_definicion_parametros(true);\t\t\n\t\t$tipos = array();\n\t\tif (in_array('carga_metodo', $param, true)) {\n\t\t\t$tipos[] = array('carga_metodo', 'Método de consulta PHP');\n\t\t}\n\t\tif (in_array('carga_lista', $param, true)) {\n\t\t\t$tipos[] = array('carga_lista', 'Lista fija de Opciones');\n\t\t}\t\t\n\t\tif (in_array('carga_sql', $param, true)) {\t\t\n\t\t\t$tipos[] = array('carga_sql', 'Consulta SQL');\n\t\t}\n\t\treturn $tipos;\n\t}", "function difundir() {\n\n // La funcion obtener_frase esta heredado del pariente Orador\n $frase = $this->obtener_frase();\n\n // Convirtir a mayusculos\n $frase_mayusculas = strtoupper($frase);\n\n echo $frase_mayusculas;\n\n }", "function get_title_lectura($lectura)\n{\n $cadena = $lectura->libro_nombre . ' ' . $lectura->capitulo . ': ' . $lectura->inicio\n . '-' . $lectura->final;\n\n return $cadena;\n}", "static public function nombreLocalidadXPais($idPais, $localidad)\n {\n if ($localidad == 'estado') {\n switch ($idPais) {\n case 8:\n return 'Distrito';\n break;\n case 11:\n return 'Zona Geográfica';\n break;\n case 14:\n return 'Región';\n break;\n case 9:\n return 'Provincia';\n case 19:\n case 20:\n case 21:\n case 23:\n return 'Departamento';\n break;\n case 15:\n case 16:\n case 17:\n case 18:\n return 'Provincia';\n break;\n case 22:\n return 'Zona';\n break;\n case 13:\n return 'Estado';\n break;\n default:\n return 'Estado';\n break;\n }\n }\n if ($localidad == 'ciudad') {\n switch ($idPais) {\n case 8:\n return 'Concelho';\n break;\n case 11:\n return 'Barrio / Partido';\n break;\n case 14:\n return 'Comuna';\n break;\n case 16:\n return 'Distrito';\n break;\n case 15:\n case 17:\n return 'Cantón';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipio';\n break;\n case 21:\n return 'Municipalidad';\n break;\n case 13:\n return 'Cidade';\n break;\n default:\n return 'Ciudad';\n break;\n }\n }\n if ($localidad == 'ciudades') {\n switch ($idPais) {\n case 8:\n return 'Concelhos';\n break;\n case 11:\n case 13:\n return 'Cidade';\n break;\n case 14:\n return 'Comunas';\n break;\n case 16:\n return 'Distritos';\n break;\n case 15:\n case 17:\n return 'Cantónes';\n break;\n case 10:\n case 19:\n case 22:\n case 23:\n return 'Municipios';\n break;\n case 21:\n return 'Municipalidades';\n break;\n default:\n return 'Ciudades';\n break;\n }\n }\n if ($localidad == 'urbanizacion') {\n switch ($idPais) {\n case 8:\n return 'Freguesia';\n break;\n case 9:\n case 13:\n return 'Barrio';\n break;\n case 11:\n return 'Localidad';\n break;\n case 17:\n return 'Urbanización o Sector';\n break;\n case 19:\n return 'Zona';\n break;\n default:\n return 'Urbanización';\n break;\n }\n }\n }", "private function trovaRegione($provincia) {\r\n switch ($provincia) {\r\n case 'CHIETI':\r\n case 'PESCARA':\r\n case \"L'AQUILA\":\r\n case 'TERAMO':\r\n $regione = 'ABRUZZO';\r\n break;\r\n case 'MATERA':\r\n case 'POTENZA':\r\n $regione = 'BASILICATA';\r\n break;\r\n case 'CATANZARO':\r\n case 'COSENZA':\r\n case 'CROTONE':\r\n case 'REGGIO DI CALABRIA':\r\n case 'VIBO VALENTIA':\r\n $regione = 'CALABRIA';\r\n break;\r\n case 'AVELLINO':\r\n case 'BENEVENTO':\r\n case 'CASERTA':\r\n case 'NAPOLI':\r\n case 'SALERNO':\r\n $regione = 'CAMPANIA';\r\n break;\r\n case 'BOLOGNA':\r\n case 'FERRARA':\r\n case 'FORLI’-CESENA':\r\n case 'MODENA':\r\n case 'PARMA':\r\n case 'PIACENZA':\r\n case 'RAVENNA':\r\n case \"REGGIO NELL'EMILIA\":\r\n case 'RIMINI':\r\n $regione = 'EMILIA ROMAGNA';\r\n break;\r\n case 'GORIZIA':\r\n case 'PORDENONE':\r\n case 'TRIESTE':\r\n case 'UDINE':\r\n $regione = 'FRIULI VENEZIA GIULIA';\r\n break;\r\n case 'FROSINONE':\r\n case 'LATINA':\r\n case 'RIETI':\r\n case 'ROMA':\r\n case 'VITERBO':\r\n $regione = 'LAZIO';\r\n break;\r\n case 'GENOVA':\r\n case 'IMPERIA':\r\n case 'LA SPEZIA':\r\n case 'SAVONA':\r\n $regione = 'LIGURIA';\r\n break;\r\n case 'BERGAMO':\r\n case 'BRESCIA':\r\n case 'COMO':\r\n case 'CREMONA':\r\n case 'LECCO':\r\n case 'LODI':\r\n case 'MANTOVA':\r\n case 'MILANO':\r\n case 'MONZA E DELLA BRIANZA':\r\n case 'PAVIA':\r\n case 'SONDRIO':\r\n case 'VARESE':\r\n $regione = 'LOMBARDIA';\r\n break;\r\n case 'ANCONA':\r\n case 'ASCOLI PICENO':\r\n case 'FERMO':\r\n case 'MACERATA':\r\n case 'PESARO E URBINO':\r\n $regione = 'MARCHE';\r\n break;\r\n case 'CAMPOBASSO':\r\n case 'ISERNIA':\r\n $regione = 'MOLISE';\r\n break;\r\n case 'ALESSANDRIA':\r\n case 'ASTI':\r\n case 'BIELLA':\r\n case 'CUNEO':\r\n case 'NOVARA':\r\n case 'TORINO':\r\n case 'VERBANO-CUSIO-OSSOLA':\r\n case 'VERCELLI':\r\n $regione = 'PIEMONTE';\r\n break;\r\n case 'BARI':\r\n case 'BARLETTA-ANDRIA-TRANI':\r\n case 'BRINDISI':\r\n case 'FOGGIA':\r\n case 'LECCE':\r\n case 'TARANTO':\r\n $regione = 'PUGLIA';\r\n break;\r\n case 'CAGLIARI':\r\n case 'CARBONIA-IGLESIAS':\r\n case 'MEDIO CAMPIDANO':\r\n case 'NUORO':\r\n case 'OGLIASTRA':\r\n case 'OLBIA-TEMPIO':\r\n case 'ORISTANO':\r\n case 'SASSARI':\r\n $regione = 'SARDEGNA';\r\n break;\r\n case 'AGRIGENTO':\r\n case 'CALTANISSETTA':\r\n case 'CATANIA':\r\n case 'ENNA':\r\n case 'MESSINA':\r\n case 'PALERMO':\r\n case 'RAGUSA':\r\n case 'SIRACUSA':\r\n case 'TRAPANI':\r\n $regione = 'SICILIA';\r\n break;\r\n case 'AREZZO':\r\n case 'FIRENZE':\r\n case 'GROSSETO':\r\n case 'LIVORNO':\r\n case 'LUCCA':\r\n case 'MASSA-CARRARA':\r\n case 'PISA':\r\n case 'PISTOIA':\r\n case 'PRATO':\r\n case 'SIENA':\r\n $regione = 'TOSCANA';\r\n break;\r\n case 'BOLZANO':\r\n case 'TRENTO':\r\n $regione = 'TRENTINO ALTO ADIGE';\r\n break;\r\n case 'PERUGIA':\r\n case 'TERNI':\r\n $regione = 'UMBRIA';\r\n break;\r\n case 'AOSTA':\r\n $regione = \"VALLE D'AOSTA\";\r\n break;\r\n case 'BELLUNO':\r\n case 'PADOVA':\r\n case 'ROVIGO':\r\n case 'TREVISO':\r\n case 'VENEZIA':\r\n case 'VERONA':\r\n case 'VICENZA':\r\n $regione = 'VENETO';\r\n break;\r\n }\r\n return $regione;\r\n }", "protected function mapeoTprop() {\n $clave = '';\n $tipo = $this->propiedad->getId_tipo_prop();\n $subtipo = $this->propiedad->getSubtipo_prop();\n // Country - Barrio Cerrado\n $tipoUbi = $this->tipoUbicacion();\n if ($tipoUbi == 'COUNTRY' || $tipoUbi == strtoupper('Barrio Cerrado')) {\n $clave = 'Countries y Barrios cerrados_';\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas';\n break;\n case 1: // Depto\n $clave.='Departamentos';\n break;\n case 7: // Lote\n $clave.='Terrenos';\n break;\n }\n } else {\n $finder = 0;\n foreach ($this->arrayMapeoTprop as $registro) {\n if (trim($registro['id_tipo_prop']) == (trim($tipo))) {\n if (trim($registro['subtipo_prop']) == (trim($subtipo))) {\n $clave = $registro['clave'];\n $finder = 1;\n break;\n }\n }\n }\n if ($finder == 0) {\n switch ($tipo) {\n case 9: // Casa\n $clave.='Casas_Casa';\n break;\n case 1: // Depto\n $clave.='Departamentos_Departamento';\n break;\n\t\t\t\t\tcase 17: //Quinta\n\t\t\t\t\t\t$clave.='Quintas';\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 6: //Campos y chacras\n\t\t\t\t\tcase 16: //Campos y chacras\n\t\t\t\t\t\t$clave.='Campos y chacras';\n\t\t\t\t\t\tbreak;\n case 19: // Industriales\n $clave.='Galpones, depósitos y edificios industriales';\n break;\n }\n }\n }\n return $clave;\n }", "function get_nombre_dia($dia)\n{\n $nombre = '';\n\n switch ($dia) {\n case '0':\n $nombre = 'Domingo';\n break;\n case '1':\n $nombre = 'Lunes';\n break;\n case '2':\n $nombre = 'Martes';\n break;\n case '3':\n $nombre = 'Miércoles';\n break;\n case '4':\n $nombre = 'Jueves';\n break;\n case '5':\n $nombre = 'Viernes';\n break;\n case '6':\n $nombre = 'Sábado';\n break; \n default:\n $nombre = 'Día no existe';\n break;\n }\n\n return $nombre;\n}", "function getDatosNombre_region()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nombre_region'));\n $oDatosCampo->setEtiqueta(_(\"nombre de la región\"));\n $oDatosCampo->setTipo('texto');\n $oDatosCampo->setArgument(30);\n return $oDatosCampo;\n }", "function getTiposDocumento(){\r\n\t$tipos_documento[\"I\"]\t= \"Investigaci&oacute;n\";\r\n\t$tipos_documento[\"AV\"]\t= \"Archivo vertical\";\r\n\t$tipos_documento[\"AR\"]\t= \"Art&iacute;culo de revisa\";\r\n\t$tipos_documento[\"L\"]\t= \"Libro\";\r\n\t$tipos_documento[\"R\"]\t= \"Revista\";\r\n\t$tipos_documento[\"T\"]\t= \"Tesis\";\r\n\t$tipos_documento[\"D\"]\t= \"Documento\";\t\r\n\t\r\n\treturn $tipos_documento;\r\n}", "function getCanChi($lunar) {\n\t\t$dayName = Qss_Lib_Const::$CAN[($lunar->jd + 9) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->jd+1)%12];\n\t\t$monthName = Qss_Lib_Const::$CAN[($lunar->year*12+$lunar->month+3) % 10] . \" \" . Qss_Lib_Const::$CHI[($lunar->month+1)%12];\n\t\tif ($lunar->leap == 1) {\n\t\t\t$monthName .= \" (nhuận)\";\n\t\t}\n\t\t$yearName = $this->getYearCanChi($lunar->year);\n\t\treturn array($dayName, $monthName, $yearName);\n\t}", "function CONCEPTO($_ARGS, $_CONCEPTO) {\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodTipoNom = '\".$_ARGS['NOMINA'].\"' AND\r\n\t\t\t\tPeriodo = '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tCodOrganismo = '\".$_ARGS['ORGANISMO'].\"' AND\r\n\t\t\t\tCodTipoProceso = '\".$_ARGS['PROCESO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function a_mayusculas($cadena)\n{\n $cadena = strtr(strtoupper($cadena), 'àèìòùáéíóúçñäëïöü', 'ÀÈÌÒÙÁÉÍÓÚÇÑÄËÏÖÜ');\n\n return $cadena;\n}", "function DIA_DE_LA_SEMANA($_FECHA) {\r\n\t// primero creo un array para saber los días de la semana\r\n\t$dias = array(0, 1, 2, 3, 4, 5, 6);\r\n\t$dia = substr($_FECHA, 0, 2);\r\n\t$mes = substr($_FECHA, 3, 2);\r\n\t$anio = substr($_FECHA, 6, 4);\r\n\t\r\n\t// en la siguiente instrucción $pru toma el día de la semana, lunes, martes,\r\n\t$pru = strtoupper($dias[intval((date(\"w\",mktime(0,0,0,$mes,$dia,$anio))))]);\r\n\treturn $pru;\r\n}", "function ULTIMO_CONCEPTO($_CONCEPTO) {\r\n\tglobal $_ARGS;\r\n\t$sql = \"SELECT Monto\r\n\t\t\tFROM pr_tiponominaempleadoconcepto\r\n\t\t\tWHERE\r\n\t\t\t\tCodPersona = '\".$_ARGS['TRABAJADOR'].\"' AND\r\n\t\t\t\tPeriodo < '\".$_ARGS['PERIODO'].\"' AND\r\n\t\t\t\tCodConcepto = '\".$_CONCEPTO.\"'\r\n\t\t\tORDER BY Periodo DESC\r\n\t\t\tLIMIT 0, 1\";\r\n\t$query = mysql_query($sql) or die ($sql.mysql_error());\r\n\tif (mysql_num_rows($query) != 0) $field = mysql_fetch_array($query);\r\n\treturn $field['Monto'];\r\n}", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\techo str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\techo \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\techo \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t}", "function mes_letra($mes){\n\t$mesletra=\"\";\n\tswitch ($mes) {\n\t\tcase '01':\n\t\t\t$mesletra='Enero';\n\t\t\tbreak;\n\t\tcase '02':\n\t\t\t$mesletra='Febrero';\n\t\t\tbreak;\n\t\tcase '03':\n\t\t\t$mesletra='Marzo';\n\t\t\tbreak;\n\t\tcase '04':\n\t\t\t$mesletra='Abril';\n\t\t\tbreak;\n\t\tcase '05':\n\t\t\t$mesletra='Mayo';\n\t\t\tbreak;\n\t\tcase '06':\n\t\t\t$mesletra='Junio';\n\t\t\tbreak;\n\t\tcase '07':\n\t\t\t$mesletra='Julio';\n\t\t\tbreak;\n\t\tcase '08':\n\t\t\t$mesletra='Agosto';\n\t\t\tbreak;\n\t\tcase '09':\n\t\t\t$mesletra='Septimbre';\n\t\t\tbreak;\n\t\tcase '10':\n\t\t\t$mesletra='Octubre';\n\t\t\tbreak;\n\t\tcase '11':\n\t\t\t$mesletra='Noviembre';\n\t\t\tbreak;\n\t\tcase '12':\n\t\t\t$mesletra='Diciembre';\n\t\t\tbreak;\n\t\t}\n\treturn $mesletra;\n}", "function getNombreTablaTrazadora($nombre) {\r\n switch ($nombre) {\r\n case 'INMU':\r\n $tabla = \"inmunizacion.prestaciones_inmu\";\r\n break;\r\n case 'NINO':\r\n case 'NINO_PESO':\r\n $tabla = \"trazadoras.nino_new\";\r\n break;\r\n case 'ADOLESCENTE':\r\n $tabla = \"trazadoras.adolecentes\";\r\n break;\r\n case 'PARTO':\r\n $tabla = \"trazadoras.partos\";\r\n break;\r\n case 'EMB':\r\n $tabla = \"trazadoras.embarazadas\";\r\n break;\r\n case 'ADULTO':\r\n $tabla = \"trazadoras.adultos\";\r\n break;\r\n case 'SEGUIMIENTO':\r\n $tabla = \"trazadoras.seguimiento_remediar\";\r\n break;\r\n case 'CLASIFICACION':\r\n $tabla = \"trazadoras.clasificacion_remediar2\";\r\n break;\r\n case 'TAL':\r\n $tabla = \"trazadoras.tal\";\r\n break;\r\n }\r\n return $tabla;\r\n}", "function get_dias_lectura($dias)\n{\n $vector = explode(';', $dias);\n\n for ($i=0; $i < count($vector); $i++) { \n $vector[$i] = get_nombre_dia($vector[$i]);\n }\n\n return implode(', ', $vector);\n \n}", "public function obtener_colectivo();", "public function\tnomegiorno($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"w\",$data);\n\t\t$giorni = array( \"Domenica\", \"Luned&igrave;\", \"Marted&igrave;\", \"Mercoled&igrave;\", \"Gioved&igrave;\", \"Venerd&igrave;\", \"Sabato\" );\n\t\treturn $giorni[$data];\n\t}", "function darLetras($solucion){ \r\n $azar = rand(0,strlen($solucion)-1);\r\n $dLetra = $solucion[$azar];\r\n $posicionLetra = $azar.strtoupper($dLetra);\r\n return $posicionLetra;\r\n }", "public function categoriaInactivos(){\n if($this->nolaboral->V21_M >= 1)\n {\n return 1;\n }\n if($this->nolaboral->V8_M == 1 && $this->nolaboral->V9_M == 1 && $this->nolaboral->V10_M == 1)\n {\n return 2;\n }\n if($this->caracteristicas->CH10 == 1 && $this->PP01E == 2)\n {\n return 3;\n }\n if($this->PP01E == 2)\n {\n return 4;\n }\n if($this->caracteristicas->CH06 < 6)\n {\n return 5;\n }\n if($this->discapacidad())\n {\n return 6;\n }\n\n}", "Function traduz_mes($english_mes)\n{\n switch($english_mes)\n {\n case \"Jan\":\n $portuguese_mes = \"Janeiro\";\n break;\n case \"Feb\":\n $portuguese_mes = \"Fevereiro\";\n break;\n case \"Mar\":\n $portuguese_mes = \"Marco\";\n break;\n case \"Apr\":\n $portuguese_mes = \"Abril\";\n break;\n case \"May\":\n $portuguese_mes = \"Maio\";\n break;\n case \"Jun\":\n $portuguese_mes = \"Junho\";\n break;\n case \"Jul\":\n $portuguese_mes = \"Julho\";\n break;\n case \"Aug\":\n $portuguese_mes = \"Agosto\";\n break;\n case \"Sep\":\n $portuguese_mes = \"Setembro\";\n break;\n case \"Oct\":\n $portuguese_mes = \"Outubro\";\n break;\n case \"Nov\":\n $portuguese_mes = \"Novembro\";\n break; \n case \"Dec\":\n $portuguese_mes = \"Dezembro\";\n break;\n }\n return ($portuguese_mes);\n}", "function cita_biblica($objeto)\n{\n return $objeto->libro->nombre . ' ' . $objeto->numero_capitulo . ': ' . $objeto->numero_versiculo;\n}", "function tep_get_torihiki_houhou()\n{\n $types = $return = array();\n //DS_TORIHIKI_HOUHOU\n $types = explode(\"\\n\", DS_TORIHIKI_HOUHOU);\n if ($types) {\n foreach($types as $type){\n $atype = explode('//', $type);\n if (isset($atype[0]) && strlen($atype[0]) && isset($atype[1]) && strlen($atype[1])) {\n $return[$atype[0]] = explode('||', $atype[1]);\n }\n }\n }\n return $return;\n}", "public function select($perifericos);", "function ambil_soal() { \n $tampil = $this->db->query(\"SELECT * FROM IKD.IKD_D_SOAL_QUISIONER ORDER BY KD_SOAL ASC\")->result_array();\n\t\treturn $tampil;\n }", "function titulo_janela() {\n\n\t$sql_comando = \"SELECT * FROM ce_config WHERE Comando='Titulo_Janela'\";\n\t$result_comando = mysql_query($sql_comando);\n\t$linha_comando = mysql_fetch_assoc($result_comando);\n\treturn $linha_comando[\"exec\"];\n}", "function limpiar($cadena){\n\t\t$cadena=str_replace(\"_\",\" \",$cadena);//alt + 15\n\t\t$cadena=str_replace(\"|\",\"=\",$cadena);//alt + 10\n\t\treturn $cadena=str_replace(\"*\",\"'\",$cadena);//alt + 16\n\t}", "public function abono();", "function data_extenso()\r\n{\r\n\tglobal $semana;\r\n\tglobal $mes;\t\r\n\t$diasemana = date('w');\r\n\t$diames = date('j');\r\n\t$numeromes = date('n');\r\n\t$ano = date('Y');\t\r\n\treturn $semana[ $diasemana ] . ', ' .\r\n\t\t $diames . ' de ' . \r\n\t\t $mes[ $numeromes ] . ' de ' . \r\n\t\t $ano;\t\t \r\n}", "function dia ($hra){\r\t\tif ($hra==1 || $hra==7 || $hra==13 || $hra==19 || $hra==25 || $hra==31 || $hra==37 || $hra==43 || $hra==49)\r\t\t{\r\t\treturn 'Lunes';\t\r\t\t}else {\r\t\t\tif ($hra==2 || $hra==8 || $hra==14 || $hra==20 || $hra==26 || $hra==32 || $hra==38 || $hra==44 || $hra==50)\r\t\t{\r\t\treturn 'Martes';\t\r\t\t}else {\r\t\t\tif ($hra==3 || $hra==9 || $hra==15 || $hra==21 || $hra==27 || $hra==33 || $hra==39 || $hra==45 || $hra==51)\r\t\t{\r\t\treturn 'Miercoles';\t\r\t\t}else {\r\t\t\tif ($hra==4 || $hra==10 || $hra==16 || $hra==22 || $hra==28 || $hra==34 || $hra==340 || $hra==46 || $hra==52)\r\t\t{\r\t\treturn 'Jueves';\t\r\t\t}else {\r\t\t\tif ($hra==5 || $hra==11 || $hra==17 || $hra==23 || $hra==29 || $hra==35 || $hra==41 || $hra==47 || $hra==53)\r\t\t{\r\t\treturn 'Viernes';\t\r\t\t}else {\r\t\t\tif ($hra==6 || $hra==12 || $hra==18 || $hra==24 || $hra==30 || $hra==36 || $hra==42 || $hra==48 || $hra==54)\r\t\t{\r\t\treturn 'Sabado';\t\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t\t}\r\t}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO-ACTUACION-DETALLE\":\r\n\t\t\t$c[0] = \"PE\"; $v[0] = \"Pendiente\";\r\n\t\t\t$c[1] = \"EJ\"; $v[1] = \"En Ejecución\";\r\n\t\t\t$c[2] = \"AN\"; $v[2] = \"Anulada\";\r\n\t\t\t$c[3] = \"TE\"; $v[3] = \"Terminada\";\r\n\t\t\t$c[4] = \"CE\"; $v[4] = \"Cerrada\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-ACTUACION-PRORROGA\":\r\n\t\t\t$c[0] = \"PR\"; $v[0] = \"En Preparación\";\r\n\t\t\t$c[1] = \"RV\"; $v[1] = \"Revisada\";\r\n\t\t\t$c[2] = \"AP\"; $v[2] = \"Aprobada\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulada\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return $v[$i];\r\n\t\t$i++;\r\n\t}\r\n}", "function ricercaOrdinamento($frasi)\n {\n $parole = array();\n\n foreach ($frasi as $frase)\n {\n $frase = preg_replace(\"/[^a-zA-Z\\ ]/\", \"\", $frase);\n\n $parole = array_merge($parole, explode(\" \", $frase));\n }\n\n $parole = array_count_values(array_map(\"strtolower\", $parole));\n arsort($parole);\n\n return rimozioneNonParole($parole);\n }", "function getChambrehospi(){\n return $this->chambre;\n }", "function get_label($ccaattmm){\n\t\t\t$lst_ampor = getListAA(substr($ccaattmm,0,2));\n\t\t\t$lst_tumbon = getListTT(substr($ccaattmm,0,4));\n\t\t\t$lst_mooban = getListMM(substr($ccaattmm,0,6));\n\t\t\t$arr_aa = explode(\"|\", $lst_ampor);\n\t\t\t$arr_tt = explode(\"|\", $lst_tumbon);\n\t\t\t$arr_mm = explode(\"|\", $lst_mooban);\n\t\t\t$label;\n\n\t\t\t/// sel ampor\n\t\t\tfor($i=0; $i<(count($arr_aa)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_aa[$i+2],2,2)==substr($ccaattmm,2,2)){\n\t\t\t\t\t$label = str_replace('ท้องถิ่น','',$arr_aa[$i+3]).\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel tumbon\n\t\t\tfor($i=0; $i<(count($arr_tt)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_tt[$i+2],4,2)==substr($ccaattmm,4,2)){\n\t\t\t\t\t$label .= \" ตำบล\".$arr_tt[$i+3].\" \";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/// sel mooban\n\t\t\tfor($i=0; $i<(count($arr_mm)-3) ;$i+=2){\n\t\t\t\tif(substr($arr_mm[$i+2],6,2)==substr($ccaattmm,6,2)){\n\t\t\t\t\t$label .= \" หมู่\".$arr_mm[$i+3];\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn $label;\n\t\t}", "function fncValidaDI_26($IdEstado, $GestorErr, $NumReg, $Campo)\n{\n\t \n\t$Bandera = CERO;\n\n\t$DI_26 = \"(26)Municipio\";\n\t$DI_26_ErrTam = \"Tamaño de campo Municipio debe ser a 3 Dígitos\";\n\t$DI_26_Mpio \t = \"El Municipio no es parte del catalogo de DGRH\";\n\t\n\t// agregar catalogo de Municpios\n\nif($IdEstado == \"01\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"01\")\n\nif($IdEstado == \"02\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\");\n} //fin de if($IdEstado == \"02\")\n\nif($IdEstado == \"03\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"008\",\"009\");\n} //fin de if($IdEstado == \"03\")\n\nif($IdEstado == \"04\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\");\n} //fin de if($IdEstado == \"04\")\n\nif($IdEstado == \"05\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\");\n} //fin de if($IdEstado == \"05\")\n\nif($IdEstado == \"06\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"06\")\n\nif($IdEstado == \"07\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\");\n} //fin de if($IdEstado == \"07\")\n\nif($IdEstado == \"08\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\");\n} //fin de if($IdEstado == \"08\")\n\nif($IdEstado == \"09\"){\n\t$Mpio = array(\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"09\")\n\nif($IdEstado == \"10\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\");\n} //fin de if($IdEstado == \"10\")\n\nif($IdEstado == \"11\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\");\n} //fin de if($IdEstado == \"11\")\n\nif($IdEstado == \"12\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\");\n} //fin de if($IdEstado == \"12\")\n\nif($IdEstado == \"13\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\");\n} //fin de if($IdEstado == \"13\")\n\nif($IdEstado == \"14\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"14\")\n\nif($IdEstado == \"15\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\");\n} //fin de if($IdEstado == \"15\")\n\nif($IdEstado == \"16\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\");\n} //fin de if($IdEstado == \"16\")\n\nif($IdEstado == \"17\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\");\n} //fin de if($IdEstado == \"17\")\n\nif($IdEstado == \"18\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\");\n} //fin de if($IdEstado == \"18\")\n\nif($IdEstado == \"19\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\");\n} //fin de if($IdEstado == \"19\")\n\nif($IdEstado == \"20\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\",\"218\",\"219\",\"220\",\"221\",\"222\",\"223\",\"224\",\"225\",\"226\",\"227\",\"228\",\"229\",\"230\",\"231\",\"232\",\"233\",\"234\",\"235\",\"236\",\"237\",\"238\",\"239\",\"240\",\"241\",\"242\",\"243\",\"244\",\"245\",\"246\",\"247\",\"248\",\"249\",\"250\",\"251\",\"252\",\"253\",\"254\",\"255\",\"256\",\"257\",\"258\",\"259\",\"260\",\"261\",\"262\",\"263\",\"264\",\"265\",\"266\",\"267\",\"268\",\"269\",\"270\",\"271\",\"272\",\"273\",\"274\",\"275\",\"276\",\"277\",\"278\",\"279\",\"280\",\"281\",\"282\",\"283\",\"284\",\"285\",\"286\",\"287\",\"288\",\"289\",\"290\",\"291\",\"292\",\"293\",\"294\",\"295\",\"296\",\"297\",\"298\",\"299\",\"300\",\"301\",\"302\",\"303\",\"304\",\"305\",\"306\",\"307\",\"308\",\"309\",\"310\",\"311\",\"312\",\"313\",\"314\",\"315\",\"316\",\"317\",\"318\",\"319\",\"320\",\"321\",\"322\",\"323\",\"324\",\"325\",\"326\",\"327\",\"328\",\"329\",\"330\",\"331\",\"332\",\"333\",\"334\",\"335\",\"336\",\"337\",\"338\",\"339\",\"340\",\"341\",\"342\",\"343\",\"344\",\"345\",\"346\",\"347\",\"348\",\"349\",\"350\",\"351\",\"352\",\"353\",\"354\",\"355\",\"356\",\"357\",\"358\",\"359\",\"360\",\"361\",\"362\",\"363\",\"364\",\"365\",\"366\",\"367\",\"368\",\"369\",\"370\",\"371\",\"372\",\"373\",\"374\",\"375\",\"376\",\"377\",\"378\",\"379\",\"380\",\"381\",\"382\",\"383\",\"384\",\"385\",\"386\",\"387\",\"388\",\"389\",\"390\",\"391\",\"392\",\"393\",\"394\",\"395\",\"396\",\"397\",\"398\",\"399\",\"400\",\"401\",\"402\",\"403\",\"404\",\"405\",\"406\",\"407\",\"408\",\"409\",\"410\",\"411\",\"412\",\"413\",\"414\",\"415\",\"416\",\"417\",\"418\",\"419\",\"420\",\"421\",\"422\",\"423\",\"424\",\"425\",\"426\",\"427\",\"428\",\"429\",\"430\",\"431\",\"432\",\"433\",\"434\",\"435\",\"436\",\"437\",\"438\",\"439\",\"440\",\"441\",\"442\",\"443\",\"444\",\"445\",\"446\",\"447\",\"448\",\"449\",\"450\",\"451\",\"452\",\"453\",\"454\",\"455\",\"456\",\"457\",\"458\",\"459\",\"460\",\"461\",\"462\",\"463\",\"464\",\"465\",\"466\",\"467\",\"468\",\"469\",\"470\",\"471\",\"472\",\"473\",\"474\",\"475\",\"476\",\"477\",\"478\",\"479\",\"480\",\"481\",\"482\",\"483\",\"484\",\"485\",\"486\",\"487\",\"488\",\"489\",\"490\",\"491\",\"492\",\"493\",\"494\",\"495\",\"496\",\"497\",\"498\",\"499\",\"500\",\"501\",\"502\",\"503\",\"504\",\"505\",\"506\",\"507\",\"508\",\"509\",\"510\",\"511\",\"512\",\"513\",\"514\",\"515\",\"516\",\"517\",\"518\",\"519\",\"520\",\"521\",\"522\",\"523\",\"524\",\"525\",\"526\",\"527\",\"528\",\"529\",\"530\",\"531\",\"532\",\"533\",\"534\",\"535\",\"536\",\"537\",\"538\",\"539\",\"540\",\"541\",\"542\",\"543\",\"544\",\"545\",\"546\",\"547\",\"548\",\"549\",\"550\",\"551\",\"552\",\"553\",\"554\",\"555\",\"556\",\"557\",\"558\",\"559\",\"560\",\"561\",\"562\",\"563\",\"564\",\"565\",\"566\",\"567\",\"568\",\"569\",\"570\");\n} //fin de if($IdEstado == \"20\")\n\nif($IdEstado == \"21\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\",\"213\",\"214\",\"215\",\"216\",\"217\");\n} //fin de if($IdEstado == \"21\")\n\nif($IdEstado == \"22\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"22\")\n\nif($IdEstado == \"23\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\");\n} //fin de if($IdEstado == \"23\")\n\nif($IdEstado == \"24\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"24\")\n\nif($IdEstado == \"25\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\");\n} //fin de if($IdEstado == \"25\")\n\nif($IdEstado == \"26\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\");\n} //fin de if($IdEstado == \"26\")\n\nif($IdEstado == \"27\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\");\n} //fin de if($IdEstado == \"27\")\n\nif($IdEstado == \"28\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\");\n} //fin de if($IdEstado == \"28\")\n\nif($IdEstado == \"29\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\");\n} //fin de if($IdEstado == \"29\")\n\nif($IdEstado == \"30\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\",\"107\",\"108\",\"109\",\"110\",\"111\",\"112\",\"113\",\"114\",\"115\",\"116\",\"117\",\"118\",\"119\",\"120\",\"121\",\"122\",\"123\",\"124\",\"125\",\"126\",\"127\",\"128\",\"129\",\"130\",\"131\",\"132\",\"133\",\"134\",\"135\",\"136\",\"137\",\"138\",\"139\",\"140\",\"141\",\"142\",\"143\",\"144\",\"145\",\"146\",\"147\",\"148\",\"149\",\"150\",\"151\",\"152\",\"153\",\"154\",\"155\",\"156\",\"157\",\"158\",\"159\",\"160\",\"161\",\"162\",\"163\",\"164\",\"165\",\"166\",\"167\",\"168\",\"169\",\"170\",\"171\",\"172\",\"173\",\"174\",\"175\",\"176\",\"177\",\"178\",\"179\",\"180\",\"181\",\"182\",\"183\",\"184\",\"185\",\"186\",\"187\",\"188\",\"189\",\"190\",\"191\",\"192\",\"193\",\"194\",\"195\",\"196\",\"197\",\"198\",\"199\",\"200\",\"201\",\"202\",\"203\",\"204\",\"205\",\"206\",\"207\",\"208\",\"209\",\"210\",\"211\",\"212\");\n} //fin de if($IdEstado == \"30\")\n\nif($IdEstado == \"31\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\",\"059\",\"060\",\"061\",\"062\",\"063\",\"064\",\"065\",\"066\",\"067\",\"068\",\"069\",\"070\",\"071\",\"072\",\"073\",\"074\",\"075\",\"076\",\"077\",\"078\",\"079\",\"080\",\"081\",\"082\",\"083\",\"084\",\"085\",\"086\",\"087\",\"088\",\"089\",\"090\",\"091\",\"092\",\"093\",\"094\",\"095\",\"096\",\"097\",\"098\",\"099\",\"100\",\"101\",\"102\",\"103\",\"104\",\"105\",\"106\");\n} //fin de if($IdEstado == \"31\")\n\nif($IdEstado == \"32\"){\n\t$Mpio = array(\"001\",\"002\",\"003\",\"004\",\"005\",\"006\",\"007\",\"008\",\"009\",\"010\",\"011\",\"012\",\"013\",\"014\",\"015\",\"016\",\"017\",\"018\",\"019\",\"020\",\"021\",\"022\",\"023\",\"024\",\"025\",\"026\",\"027\",\"028\",\"029\",\"030\",\"031\",\"032\",\"033\",\"034\",\"035\",\"036\",\"037\",\"038\",\"039\",\"040\",\"041\",\"042\",\"043\",\"044\",\"045\",\"046\",\"047\",\"048\",\"049\",\"050\",\"051\",\"052\",\"053\",\"054\",\"055\",\"056\",\"057\",\"058\");\n} //fin de if($IdEstado == \"32\")\n\n\n\n\n\t$LocCampo =$Campo;\n\tif (strlen($LocCampo) == TRES)\n\t{\n\t\tif(!in_array($LocCampo,$Mpio))\n\t\t{\n\t\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_Mpio.\"|\\n\";\n\t\t\tfwrite($GestorErr, $Error);\n\t\t\t$Bandera = UNO;\n\t\t}\t\n\t}\n\telse\n\t{\n\t\t$Error = $NumReg .\"|\".$DI_26.\"|\".$LocCampo.\"|\" . $DI_26_ErrTam.\"|\\n\";\n\t\tfwrite($GestorErr, $Error);\n\t\t$Bandera = UNO;\n\t}\n\treturn $Bandera;\n}", "function palabraDescubierta($coleccionLetras){\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n}", "function localidadConsultarNombreTec($criterio) {\n\n\t$query = \"SELECT localidad FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad'];\n}", "function stringLetrasDescubiertas($coleccionLetras){\n $pal = \"\";\n \n /*>>> Completar el cuerpo de la función, respetando lo indicado en la documentacion <<<*/\n \n return $pal;\n}", "function get_guias_nominadas(){\n\t\t$conect=ms_conect_server();\t\t\n\t\t$sQuery=\"SELECT * FROM nomina_detalle WHERE 1=1 ORDER BY id_guia\";\n\t\t\n\t\t//echo($sQuery);\n\t\t$result=mssql_query($sQuery) or die(mssql_min_error_severity());\n\t\t$i=0;\n\t\twhile($row=mssql_fetch_array($result)){\n\t\t\tforeach($row as $key=>$value){\n\t\t\t\t$res_array[$i][$key]=$value; \n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\t\treturn($res_array);\t\n}", "function obtenerCadenaCodigos($estudiantes){\n $cadena_codigos='';\n foreach ($estudiantes as $key => $row) {\n if(!$cadena_codigos){\n $cadena_codigos = $row['COD_ESTUDIANTE'];\n }else{\n $cadena_codigos .= \",\".$row['COD_ESTUDIANTE'];\n }\n }\n return $cadena_codigos;\n }", "function __($cadena) {\n return idioma::traducir($cadena);\n}", "function tipo_viajes($t = 0){\n\t\t$tipo_viajes = array(\"<span class=\\\"texto-claro\\\">No Capturado</span>\", \"Técnico\", \"Alto Nivel\");\n\t\treturn $tipo_viajes[$t];\n\t}", "function todas($suscriptor, $orden) {\n $db = new MySQL(Sesion::getConexion());\n $sql = \"SELECT * FROM `facturacion_lecturas` WHERE `suscriptor` ='\" . $suscriptor . \"' ORDER BY `fecha` \" . strtoupper($orden) . \";\";\n $consulta = $db->sql_query($sql);\n $filas = array();\n while ($fila = $db->sql_fetchrow($consulta)) {\n array_push($filas, $fila);\n }\n return($filas);\n }", "function geef_kolommen($categorie) {\n\t\tglobal $pdo;\n\t\t\n\t\t$tmp = array();\n\t\t\n\t\t$stmt = $pdo->prepare(\"SELECT * FROM `INFORMATION_SCHEMA`.`COLUMNS` WHERE `TABLE_SCHEMA` = 'auto_mate' AND `TABLE_NAME` = ?\");\n\t\t$stmt->execute(array($categorie));\n\t\t\n\t\t$rij = $stmt->fetchAll();\n\t\t\n\t\tforeach($rij as $kolom) {\n\t\t\t$tmp[] = $kolom[\"COLUMN_NAME\"];\n\t\t}\n\t\n\t\treturn $tmp;\n\t}", "function grafico_1_2( $desde, $hasta, $ua ){\n\t// aclarar al cliente que debe setear campos bien definidos y NO PERMITIR AMBIGUEDADES\n\t\n\t$query = \"select actor.nombre, actor.apellido, actor.id_campo, count(noticiasactor.id_actor) as cantidad from noticiascliente \"\n\t\t. \"inner join noticiasactor on noticiascliente.id_noticia = noticiasactor.id_noticia \"\n\t\t. \"inner join noticias on noticiasactor.id_noticia = noticias.id \"\n\t\t. \"inner join actor on noticiasactor.id_actor = actor.id \"\n\t\t. \"where \"\n\t\t\t. \"noticiascliente.id_cliente = \" . $ua . \" and \"\n\t\t\t. \"noticiascliente.elim = 0 and \"\n\t\t\t. \"noticias.fecha between '\" . $desde . \" 00:00:01' and '\" . $hasta . \" 23:59:59' \"\n\t\t\t// SOLO QUIENES TIENEN 3 Y 4 COMO CAMPO\n\t\t\t. \" and ( actor.id_campo like '%3%' or actor.id_campo like '%4%' ) \"\n\t\t. \"group by noticiasactor.id_actor order by cantidad desc\";\n\t$main = R::getAll($query);\n\t$ua_nombre = R::findOne(\"cliente\",\"id LIKE ?\",[$ua])['nombre'];\n\n\t// var_dump($main);\n\t$tabla = [];\n\t// unidad de analisis, campo, actor, cantidad de menciones\n\t$i = -1;\n\tforeach($main as $k=>$v){\n\t\t// por ahora solo considero los dos posibles campos\n\t\t$tabla[ ++$i ] = [\n\t\t\t'ua' => $ua_nombre,\n\t\t\t'campo' => ( strpos( $v['id_campo'], '3' ) !== false ) ? 'oposicion' : 'oficialismo',\n\t\t\t'actor' => $v['apellido'] . ' ' . $v['nombre'],\n\t\t\t'cantidad' => $v['cantidad']\n\t\t\t];\n\t}\n\t// var_dump($tabla);\n\t\n\t// grafico\n\t$oficialismo = new StdClass(); // objeto vacio\n\t$oficialismo->name = 'Oficialismo';\n\t$oficialismo->rank = 0;\n\t$oficialismo->weight = 'Yellow';\n\t$oficialismo->id = 1;\n\t$oficialismo->children = [];\n\t\n\t$oposicion = new StdClass(); // objeto vacio\n\t$oposicion->name = 'Oposicion';\n\t$oposicion->rank = 0;\n\t$oposicion->weight = 'LightBlue';\n\t$oposicion->id = 1;\n\t$oposicion->children = [];\n\t\n\t$objeto = new StdClass(); // objeto vacio\n\t$objeto->name = 'Campos';\n\t$objeto->rank = 0;\n\t$objeto->weight = 'Gray';\n\t$objeto->id = 1;\n\t$objeto->children = [ $oficialismo, $oposicion ];\n\t\n\t$i_of = 0;\n\t$i_op = 0;\n\t\n\tforeach($tabla as $v){\n\t\t$sub = new StdClass(); // objeto vacio\n\t\t$sub->name = $v['actor'] . ' (' . $v['cantidad'] . ')';\n\t\t$sub->rank = $v['cantidad'];\n\t\t// $sub->weight = 0;\n\t\t$sub->cantidad = $v['cantidad'];\n\t\t$sub->id = 1;\n\t\t$sub->children = [ ];\n\t\tif($v['campo'] == 'oposicion'){\n\t\t\t$i_op += 1;\n\t\t\t$sub->weight = 'Blue';\n\t\t\t$oposicion->children[] = $sub;\n\t\t}\n\t\telse{ \n\t\t\t$i_of += 1;\n\t\t\t$sub->weight = 'White';\n\t\t\t$oficialismo->children[] = $sub;\n\t\t}\n\t}\n\t\n\t$oposicion->rank = $i_op;\n\t$oficialismo->rank = $i_of;\n\t\n\treturn [\n\t\t'tabla' => $tabla,\n\t\t'grafico' => $objeto\n\t\t// ,'temas' => $temas\n\t\t];\n\t\n}", "public function\tnomemese($data=\"\"){\n\t\tif($data==\"\")$data=time();\n\t\t$data=$this->date_to_time($data);\n\t\t$data = date(\"n\",$data)-1;\n\t\t$mesi = array( \"Gennaio\", \"Febbraio\", \"Marzo\", \"Aprile\", \"Maggio\", \"Giugno\", \"Luglio\", \"Agosto\", \"Settembre\", \"Ottobre\", \"Novembre\", \"Dicembre\" );\n\t\treturn $mesi[$data];\n\t}", "public function obtenerViajesplusAbonados();", "function defineCategoriaCompetidor(string $nome, string $idade) : ?string\n{\n $categorias = ['infantil', 'adulto', 'adolescente' ];\n\n if (validaNome($nome) && validaIdade($idade))\n {\n removerMensagemErro();\n if ($idade >= 0 && $idade <= 12)\n {\n foreach ($categorias as $keys => $value)\n {\n if($value == 'infantil')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n elseif ($idade >= 13 && $idade <= 17)\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adolescente')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n else\n {\n foreach ($categorias as $keys => $value)\n {\n if ($value == 'adulto')\n {\n setarMensagemSucesso('O nadador '.$nome.' pertence a categoria '.$value);\n return null;\n }\n }\n }\n\n }\n removerMensagemSucesso();\n return obterMensagemErro();\n}", "function Mesabreviado($varmesabrev)\n{\n\tif ($varmesabrev == 1) return \"JAN\";\n\tif ($varmesabrev == 2) return \"FEB\";\n\tif ($varmesabrev == 3) return \"MAR\";\n\tif ($varmesabrev == 4) return \"APR\";\n\tif ($varmesabrev == 5) return \"MAJ\";\n\tif ($varmesabrev == 6) return \"JUN\";\n\tif ($varmesabrev == 7) return \"JUL\";\n\tif ($varmesabrev == 8) return \"AUG\";\n\tif ($varmesabrev == 9) return \"SEP\";\n\tif ($varmesabrev == 10) return \"OCT\";\n\tif ($varmesabrev == 11) return \"NOV\";\n\tif ($varmesabrev == 12) return \"DEC\";\n}", "function pegaEstados()\n {\n $lista_estados = array(\n 'ac' => 'Acre',\n 'al' => 'Alagoas',\n 'ap' => 'Amapá',\n 'am' => 'Amazonas',\n 'ba' => 'Bahia',\n 'ce' => 'Ceará',\n 'df' => 'Distrito Federal',\n 'es' => 'Espirito Santo',\n 'go' => 'Goiás',\n 'ma' => 'Maranhão',\n 'ms' => 'Mato Grosso do Sul',\n 'mt' => 'Mato Grosso',\n 'mg' => 'Minas Gerais',\n 'pa' => 'Pará',\n 'pb' => 'Paraíba',\n 'pr' => 'Paraná',\n 'pe' => 'Pernanbuco',\n 'pi' => 'Piauí',\n 'rj' => 'Rio de Janeiro',\n 'rn' => 'Rio Grande do Norte',\n 'rs' => 'Rio Grande do Sul',\n 'ro' => 'Rondônia',\n 'rr' => 'Roraima',\n 'sc' => 'Santa Catarina',\n 'sp' => 'São Paulo',\n 'se' => 'Sergipe',\n 'to' => 'Tocantis'\n );\n\n\n return $lista_estados;\n }", "function NUMERO_LUNES($_ARGS) {\r\n\tlist($ap, $mp)=SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t$dias_del_mes = DIAS_DEL_MES($periodo_inicio);\r\n\t\r\n\tif (($primer_dia_semana == 0 || $primer_dia_semana == 6) && $dias_del_mes == 31) $lunes = 5;\r\n\telseif ($primer_dia_semana == 1 && ($dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telseif ($primer_dia_semana == 2 && ($dias_del_mes == 29 || $dias_del_mes == 30 || $dias_del_mes == 31)) $lunes = 5;\r\n\telse $lunes = 4;\r\n\t\r\n\treturn $lunes;\r\n}", "function printValores($tabla, $codigo) {\r\n\tswitch ($tabla) {\r\n\t\tcase \"ESTADO\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Activo\";\r\n\t\t\t$c[1] = \"I\"; $v[1] = \"Inactivo\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-CONTROL-CIERRE\":\r\n\t\t\t$c[0] = \"A\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"C\"; $v[1] = \"Cerrado\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"TIPO-REGISTRO\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Periodo Abierto\";\r\n\t\t\t$c[1] = \"AC\"; $v[1] = \"Periodo Actual\";\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase \"ESTADO-VOUCHER\":\r\n\t\t\t$c[0] = \"AB\"; $v[0] = \"Abierto\";\r\n\t\t\t$c[1] = \"AP\"; $v[1] = \"Aprobado\";\r\n\t\t\t$c[2] = \"MA\"; $v[2] = \"Mayorizado\";\r\n\t\t\t$c[3] = \"AN\"; $v[3] = \"Anulado\";\r\n\t\t\t$c[4] = \"RE\"; $v[4] = \"Rechazado\";\r\n\t\t\tbreak;\r\n\t}\r\n\t\r\n\t$i=0;\r\n\tforeach ($c as $cod) {\r\n\t\tif ($cod == $codigo) return ($v[$i]);\r\n\t\t$i++;\r\n\t}\r\n}", "public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }", "function get_centro_costo($codigo,$nombre = '',$situacion = '',$habiles = '') {\n\t\t$nombre = trim($nombre);\n\t\t\n $sql= \"SELECT * \";\n\t\t$sql.= \" FROM sis_centro_costo\";\n\t\t$sql.= \" WHERE 1 = 1\";\n\t\tif(strlen($codigo)>0) { \n\t\t\t$sql.= \" AND cc_codigo = $codigo\"; \n\t\t}\n\t\tif(strlen($nombre)>0) { \n\t\t\t$sql.= \" AND cc_nombre like '%$nombre%'\"; \n\t\t}\n\t\tif(strlen($situacion)>0) { \n\t\t\t$sql.= \" AND cc_situacion = $situacion\"; \n\t\t}\n if(strlen($habiles)>0) { \n\t\t\t$sql.= \" AND cc_codigo != 0\"; \n\t\t}\n\t\t$sql.= \" ORDER BY cc_codigo ASC, cc_situacion DESC\";\n\t\t\n\t\t$result = $this->exec_query($sql);\n\t\t//echo $sql;\n\t\treturn $result;\n\n\t}", "public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}", "function CampoEnum($tabla,$campo,$Comentario,$valor=\"\"){\n\t\t$sql = \"DESCRIBE $tabla $campo\";\n\t\t$result = mysql_query($sql);\n\t\techo \"\\t<tr><td>$Comentario</td>\\n\";\n\t\twhile ($ligne = mysql_fetch_array($result)) {\n\t\t\textract($ligne, EXTR_PREFIX_ALL, \"IN\");\n\t\t\tif (substr($IN_Type,0,4)=='enum'){\n\t\t\t\t$liste = substr($IN_Type,5,strlen($IN_Type));\n\t\t\t\t$liste = substr($liste,0,(strlen($liste)-2));\n\t\t\t\t$enums = explode(',',$liste);\n\t\t\t\tif (sizeof($enums)>0){\n\t\t\t\t\t\n\t\t\t\t\techo \"\\t<td><select name='$campo' >\\n\";\n\t\t\t\t\tfor ($i=0; $i<sizeof($enums);$i++){\n\t\t\t\t\t\t$elem = trim(strtr($enums[$i],\"'\",\" \"));\n\t\t\t\t\t\tif(trim($elem)==trim($valor))$seleccionar=\"selected\";\n\t\t\t\t\t \telse $seleccionar=\"\";\n\t\t\t\t\t\techo \"\\t\\t<option $seleccionar value='\".$elem.\"'>\".$elem.\"</option>\\n\";\n\t\t\t\t\t}\n\t\t\t\t\techo \"\\t</select>\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\techo \"\\t</td></tr>\\n\";\n\t}", "function NUMERO_LUNES_FECHA($_ARGS) {\r\n\t$_FECHA_EGRESO = FECHA_EGRESO($_ARGS);\r\n\t\r\n\tif (ESTADO($_ARGS) == \"A\") {\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tif ($_ARGS['FECHA_INGRESO'] < $_ARGS['HASTA']) list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\telse list($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']);\r\n\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t} else {\r\n\t\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_ARGS['HASTA']);\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mi-$ai\";\t$diai = (int) $di;\r\n\t\t\t\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = DIAS_DEL_MES(\"$de-$me-$ae\");\r\n\t\t}\r\n\t}\r\n\telse {\r\n\t\tlist($ae, $me, $de) = SPLIT('[/.-]', $_FECHA_EGRESO);\r\n\t\t\r\n\t\tif ($_ARGS['FECHA_INGRESO'] <= $_ARGS['DESDE']) {\r\n\t\t\tlist($ap, $mp) = SPLIT('[/.-]', $_ARGS['PERIODO']); $periodo_inicio = \"01-$mp-$ap\";\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t$dia_inicio = 1;\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t} else {\t\r\n\t\t\tlist($ai, $mi, $di) = SPLIT('[/.-]', $_ARGS['FECHA_INGRESO']); $periodo_inicio = \"$di-$mp-$ap\";\t$diai = (int) $di;\r\n\t\t\t$primer_dia_semana = DIA_DE_LA_SEMANA($periodo_inicio);\r\n\t\t\t$dia_semana = $primer_dia_semana;\r\n\t\t\t\r\n\t\t\tif ($dia_semana == 1) {\r\n\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t} else {\r\n\t\t\t\tif ($dia_semana == 0) $restar_dia_semana = $diai - 7;\r\n\t\t\t\telse $restar_dia_semana = $diai - $dia_semana;\r\n\t\t\t\t\r\n\t\t\t\tif ($restar_dia_semana < 1) $dia_inicio = (int) $di;\r\n\t\t\t\telse {\r\n\t\t\t\t\t$diferencia_dias = $dia_semana - 1;\r\n\t\t\t\t\t$dia_inicio = (int) $di;\r\n\t\t\t\t\t$dia_inicio -= $diferencia_dias;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$dia_fin = (int) $de;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$lunes = 0;\r\n\tfor ($dia=$dia_inicio; $dia<=$dia_fin; $dia++) {\r\n\t\tif ($dia_semana == 7) $dia_semana = 0;\r\n\t\tif ($dia_semana == 1) $lunes++;\r\n\t\t$dia_semana++;\r\n\t}\r\n\treturn $lunes;\r\n}", "private function obtenerIdioma($idioma){\n\t\tif (strpos($idioma, \"Español Latino\") !== false) {\n\t\t\treturn \"ESPL\";\n\t\t} else if(strpos($idioma, \"Español Castellano\") !== false){\n\t\t\treturn \"ESP\";\n\t\t} else if(strpos($idioma, \"Ingles\") !== false){\n\t\t\treturn \"ENG\";\n\t\t} else if(strpos($idioma, \"VOSE\") !== false) {\n\t\t\treturn \"VOSE\";\t\n\t\t}\n\t\t\n\t\treturn \"-\";\n\t}", "function Geral() {\r\n extract($GLOBALS);\r\n if ($P1==1 && $O=='I' &&f($RS_Menu,'envio_inclusao')=='S') {\r\n // Recupera a chave do trâmite de cadastramento\r\n $sql = new db_getTramiteList; $RS = $sql->getInstanceOf($dbms,$w_menu,null,null,null);\r\n $RS = SortArray($RS,'ordem','asc');\r\n foreach($RS as $row) { \r\n $w_tramite = f($row,'sq_siw_tramite'); \r\n break; \r\n }\r\n \r\n $w_envio_inclusao = 'S';\r\n } else {\r\n $w_envio_inclusao = 'N';\r\n }\r\n if ($SG=='SRTRANSP') {\r\n include_once('transporte_gerais.php');\r\n } elseif ($SG=='SRSOLCEL') {\r\n include_once('celular_gerais.php');\r\n } else {\r\n include_once('geral_gerais.php');\r\n }\r\n}", "function str_oracion($cadena)\n{\n $palabras = explode('_', $cadena);\n $oracion = '';\n for($i=0; $i < count($palabras) ; $i++){\n if($i == 0){\n $palabras[$i] = ucfirst($palabras[$i]);\n }\n $oracion = $oracion.' '.$palabras[$i];\n }\n return $oracion;\n}", "function tipo_locazione($id_tipo_locazione=\"\"){\n\t$db = new db(DB_USER,DB_PASSWORD,DB_NAME,DB_HOST);\n\tif ($id_tipo_locazione==\"all\") {\n\t\treturn \"Tutti gli Immobili\";\n\t}\n\t$q=\"select * from tipo_locazione where id_tipo_locazione = $id_tipo_locazione\";\n\t$r=$db->query($q);\n\tif (!$r) {\n\t\treturn \"Dato Assente\";\n\t}else{\n\t\t$ro= mysql_fetch_array($r);\n\t\treturn $ro['nome'];\n\t}\n}", "function get_ubicacion()\n {\n $usuario = consultas::get_pf();\n $dep = consultas::get_dep_habilitada();\n if($usuario == 'acor_mesa')\n {\n if($dep['id_dep'] == 3)\n { //-- 3:Mesa de EyS --//\n $datos['motivo'] = 'and m1.id_motivo = 10'; //-- 10: Salida de Mesa de EyS --//\n $datos['ubicacion'] = 'DPTO. MESA DE EyS';\n $datos['ubi'] = 5;\n $datos['id_motivo'] = '10';\n }\n }elseif($usuario == 'acor_carga')\n {\n if($dep['id_dep'] == 1)\n { //-- 1:Gestion de deudas --//\n $datos['motivo'] = 'and m1.id_motivo = 11'; //-- 10: Salida de Gestion de deudas --//\n $datos['ubicacion'] = 'DIR. GESTION DE DEUDAS';\n $datos['ubi'] = 6;\n $datos['id_motivo'] = '11';\n }\n elseif($dep['id_dep'] == 2)\n { //-- 2:Procuracion y legales --//\n $datos['motivo'] = 'and m1.id_motivo = 12'; //-- 10: Salida de Procuracion y legales --//\n $datos['ubicacion'] = 'DIR. PROCURACION Y LEGALES';\n $datos['ubi'] = 7;\n $datos['id_motivo'] = '12';\n }\n }\n return $datos;\n }", "public function getLinha();", "protected function getColunas() \r\n\t{\r\n\t\treturn $this->aColunas;\r\n\t}", "protected function campos($coluna, $itens)\r\n {\r\n return $itens[$coluna];\r\n }", "function getAllFromProizvod(){\n\t\treturn $this->ime . \"&nbsp\" . $this->imeProizvođača . \"&nbsp\" \n\t\t. $this->prezimeProizvođača . \"&nbsp\" . $this->cijena;\n\t}", "function listar_areas_curriculares() {\n\t\t$query = \"SELECT material_area_curricular.*\n\t\tFROM material_area_curricular\n\t\tORDER BY orden_ac asc\";\n\n $connection = mysql_connect($this->HOST, $this->USERNAME, $this->PASSWORD);\n\t\t\n\t\t$SelectedDB = mysql_select_db($this->DBNAME);\n\t\t$result = mysql_query($query); \n\t\t\n\t\t$numrows = mysql_num_rows($result);\n\t\tmysql_close($connection);\n\t\t// COMPROBAMOS QUE HAYA RESULTADOS\n\t\t// SI EL NUMERO DE RESULTADOS ES 0 SIGNIFICA QUE NO HAY REGISTROS CON ESOS DATOS\n\t\tif ($numrows == 0) {\n\t\t\treturn $result;\n\t\t}\n\t\telse {\n\t\t\treturn $result;\n\t\t}\n\t}", "function localidadConsultarNombre($criterio) {\n\n\t$query = \"SELECT localidad_nombre FROM localidades WHERE id=\".$criterio;\t\n\t$res = ejecutarQuerySQL($query);\n\t$actual = getFila($res);\n\t\t\t\nreturn $actual['localidad_nombre'];\n}", "function string_mes ($mes) {\n\t\n\tswitch ($mes) {\n case 1:\n return \"janeiro\";\n break;\n case 2:\n return \"fevereiro\";\n break;\n case 3:\n return \"mar&ccedil;o\";\n break;\n case 4:\n return \"abril\";\n break;\n case 5:\n return \"maio\";\n break;\n case 6:\n return \"junho\";\n break;\n case 7:\n return \"julho\";\n break;\n case 8:\n return \"agosto\";\n break;\n case 9:\n return \"setembro\";\n break;\n case 10:\n return \"outubro\";\n break;\n case 11:\n return \"novembro\";\n break;\n case 12:\n return \"dezembro\";\n break;\n\t} //End IF switch\n}", "public function accueil()\n {\n }" ]
[ "0.64376986", "0.59332156", "0.59222746", "0.59177816", "0.59115803", "0.5819328", "0.5817711", "0.578492", "0.5781687", "0.5758593", "0.57579345", "0.5716883", "0.56922805", "0.5668861", "0.5657238", "0.5647925", "0.56365913", "0.5633974", "0.5627795", "0.56224394", "0.5615496", "0.5601943", "0.5601732", "0.5594949", "0.55862224", "0.55858177", "0.5580312", "0.557687", "0.5571913", "0.5558918", "0.55561614", "0.55484504", "0.5540485", "0.5525947", "0.5521693", "0.5514847", "0.5480977", "0.54569995", "0.54542935", "0.5448426", "0.54467607", "0.544181", "0.54414165", "0.54397464", "0.543923", "0.54335797", "0.5427571", "0.5423938", "0.5419241", "0.54168445", "0.5416208", "0.54115033", "0.5407352", "0.54002887", "0.53998774", "0.53953564", "0.53952", "0.53901964", "0.5380582", "0.53714216", "0.53678715", "0.5367293", "0.53642005", "0.5361854", "0.5360346", "0.535542", "0.5345295", "0.53422457", "0.5339626", "0.53366715", "0.5334334", "0.5321817", "0.5321151", "0.53174293", "0.5314841", "0.5309491", "0.53092074", "0.5308305", "0.530252", "0.5298897", "0.52940816", "0.5293983", "0.5287572", "0.52868783", "0.5283373", "0.527847", "0.5274897", "0.52709067", "0.52683103", "0.5268269", "0.5265205", "0.526421", "0.5263965", "0.52626467", "0.5257247", "0.5256602", "0.5255522", "0.5246096", "0.5245659", "0.5243378", "0.52419186" ]
0.0
-1
STAMPA LISTA EVENTI stampa completa
function stampaListaIstanzeEvento() { include 'configurazione.php'; include 'connessione.php'; $sql = "SELECT E.id, eld.data_ora FROM Evento AS E INNER JOIN eventoLuogoData AS eld ON E.id = eld.id_evento ORDER BY data_ora, id;"; $stmt = $conn->prepare($sql); $stmt->execute(); $stmt->bind_result($id, $data_ora); $daRitornare=""; $ultimaData = "pagliaccio baraldi"; while($stmt->fetch()) { if($ultimaData != dataIta($data_ora)) { $daRitornare.= "". "<h2 class='w3-orange w3-center cappato'>" . dataIta($data_ora) . "</h2>" ; } $daRitornare.= stampaIstanzaEvento($id) . "<br>"; $ultimaData = dataIta($data_ora); } return $daRitornare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function stampaFormEvento($utenti = null,$festivo = null){\n $mesi = array(1=>'Gennaio', 'Febbraio', 'Marzo', 'Aprile','Maggio', 'Giugno', 'Luglio', 'Agosto','Settembre', 'Ottobre', 'Novembre','Dicembre');\n $giorni = array(1=>'Luned&igrave','Marted&igrave','Mercoled&igrave','Gioved&igrave','Venerd&igrave','Sabato','Domenica');\n $data = Utilita::getDataHome();\n $evt = new Evento();\n\n if(isset($_GET['id_evento']) && !isset($_POST['action'])){\n $evt->getValoriDB($_GET['id_evento']);\n }\n else{\n $evt->getValoriPost();\n }\n ?>\n <div class=\"aggiungiEventoContainer\" id=\"sel\">\n <?php\n if(Autorizzazione::gruppoAmministrazione($_SESSION[\"username\"]) || ($_SESSION[\"id_utente\"] == $evt->getDipendente() && $evt->getStato() == 1) || !$evt->getID())\n stampaEvento::stampaFormAggiungiEvento($mesi, $giorni, $data, $evt,$festivo);\n else {\n foreach ($utenti as $val) {\n if ($val == $evt->getDipendente()) {\n stampaEvento::stampaVisualizzaEvento($mesi, $giorni, $data, $evt); \n break;\n }\n\n }\n \n }\n \n ?>\n </div>\n <?php\n }", "function agenda_liste_avertir($id_agenda, $annee_choisie, $mois_choisi) {\n\n\t$message = NULL;\n\n\t$contexte_aff = agenda_definir_contexte(0);\n\t$debut_saison = $contexte_aff['debut_saison'];\n\t$type_saison = $contexte_aff['type_saison'];\t\t\n\n\tif (intval($debut_saison) != 1) \n\t\t$annee_choisie = (intval($mois_choisi) < intval($debut_saison)) ? $annee_choisie : strval(intval($annee_choisie)+1);\n\n\t$count_evt = count(agenda_recenser_evenement(0));\n\t$count_evt_filtre = agenda_liste_afficher(0);\n\n\tif ($count_evt == 0)\n\t\t$message = _T('sarkaspip:msg_0_evt_agenda');\n\telse\n\t\tif ($count_evt_filtre == 0)\n\t\t\tif (intval($debut_saison) == 1)\n\t\t\t\t$message = _T('sarkaspip:msg_0_evt_annee').'&nbsp;'.$annee_choisie;\n\t\t\telse\n\t\t\t\tif ($type_saison == 'annee')\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.$annee_choisie;\n\t\t\t\telseif ($type_saison == 'periode')\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.strval(intval($annee_choisie)-1).'-'.$annee_choisie;\n\t\t\t\telse // $type_saison == 'periode_abregee'\n\t\t\t\t\t$message = _T('sarkaspip:msg_0_evt_saison').'&nbsp;'.substr(strval(intval($annee_choisie)-1),2,2).'-'.substr($annee_choisie,2,2);\n\n\treturn $message;\n}", "static function stampaReportEventi($utenti = null){\n $dataGiorno = Utilita::getDataHome();\n $visualizza = 6;\n $prio = Utilita::getValoreFiltro($_GET['prio']);\n $utente = Utilita::getValoreFiltro($_GET['utn']);\n $filiale = Utilita::getValoreFiltro($_GET['filiale']);\n $tipo = Utilita::getValoreFiltro($_GET['tipo']);\n $da = mktime(23, 59, 59, date(\"n\",$dataGiorno), date(\"j\",$dataGiorno), date(\"Y\",$dataGiorno));\n $a = mktime(0, 0, 0, date(\"n\",$dataGiorno), date(\"j\",$dataGiorno), date(\"Y\",$dataGiorno));\n $sql = \"SELECT count(*) as totEventi FROM eventi e,causali c,dipendenti d,filiali f WHERE DATA_DA <= ? and DATA_A >= ? and c.id_motivo = e.fk_causale and d.fk_filiale = f.id_filiale and d.id_dipendente = e.fk_dipendente and (e.fk_causale = ? or ? = 0 ) and (e.priorita = ? or ? = 0 ) and (e.fk_dipendente = ? or ? = 0 ) and (d.fk_filiale = ? or ? = 0 )\";\n $rs = Database::getInstance()->eseguiQuery($sql,array($da,$a,$tipo,$tipo,$prio,$prio,$utente,$utente,$filiale,$filiale));\n $minRiga = Utilita::getNewMinRiga($_POST['codPag'],$_POST['minRiga'],$rs->fields[\"totEventi\"],$visualizza);\n\n $editTxt = '<a alt=\"edit\" href=\"'.Utilita::getHomeUrlFiltri().'&data='.$dataGiorno.'&id_evento=';\n $editTxt2 = '&minrg='.$minRiga.'\"><img border=\"0\" src=\"./img/';\n $prioTxt = '<img src=\"./img/prio'; $prioTxt2 = '.png\" />';\n if(!Autorizzazione::gruppoAmministrazione($_SESSION[\"username\"])){\n $listaUtenti = implode(\",\", $utenti);\n foreach ($utenti as $key => $value) {\n if($value == $utente) {\n $listaUtenti = $utente;\n break;\n }\n }\n $sql = \"SELECT e.id_evento as id, CONCAT(?,e.priorita,?) as ' ', CONCAT(?,e.id_evento,?,CASE WHEN (e.fk_dipendente = ? AND e.stato = 1)THEN 'modifica' ELSE 'dett' END,'.png\\\" /></a>') as Edit, c.nome as Causale,d.username as Utente,date_format(FROM_UNIXTIME(e.data_da),'%d.%m.%y') as Dal,date_format(FROM_UNIXTIME(e.data_a),'%d.%m.%y') as Al,f.nome as Filiale,CASE WHEN e.stato = 1 THEN 'Richiesto' WHEN e.stato = 2 THEN 'Accettato' ELSE 'Segnalato' END as Stato,CASE WHEN e.durata = 'G' THEN 'Giorno' WHEN e.durata = 'M' THEN 'Mattino' ELSE 'Pomeriggio' END as Periodo\n FROM eventi e,causali c,dipendenti d,filiali f\n WHERE DATA_DA <= ? AND DATA_A >= ? AND c.id_motivo = e.fk_causale\n AND d.fk_filiale = f.id_filiale\n AND d.id_dipendente = e.fk_dipendente\n AND (e.fk_causale = ? or ? = 0 )\n AND (e.priorita = ? or ? = 0 )\n AND (e.fk_dipendente in (\".$listaUtenti.\")) ORDER BY e.priorita DESC,e.data_da,c.nome,d.username\";\n\n\n $rs = Database::getInstance()->eseguiQuery($sql,array($prioTxt,$prioTxt2,$editTxt,$editTxt2,$_SESSION[\"id_utente\"],$da,$a,$tipo,$tipo,$prio,$prio));\n }\n else {\n $cnfTxt = '<a alt=\"conferma\" href=\"?pagina=amministrazione&tab=gestione_segnalazioni&azione=visualizza&id_evento=';\n $cnfTxt2 = '\">Conferma</a>';\n $sql = \"SELECT e.id_evento as id, CONCAT(?,e.priorita,?) as ' ', CONCAT(?,e.id_evento,?,'modifica.png\\\"/></a>') as Edit, c.nome as Causale,d.username as Utente,date_format(FROM_UNIXTIME(e.data_da),'%d.%m.%y') as Dal,date_format(FROM_UNIXTIME(e.data_a),'%d.%m.%y') as Al,f.nome as Filiale,CASE WHEN e.stato = 1 THEN 'Richiesto' WHEN e.stato = 2 THEN 'Accettato' ELSE CONCAT(?,e.id_evento,?) END as Stato,CASE WHEN e.durata = 'G' THEN 'Giorno' WHEN e.durata = 'M' THEN 'Mattino' ELSE 'Pomeriggio' END as Periodo FROM eventi e,causali c,dipendenti d,filiali f WHERE DATA_DA <= ? and DATA_A >= ? and c.id_motivo = e.fk_causale and d.fk_filiale = f.id_filiale and d.id_dipendente = e.fk_dipendente and (e.fk_causale = ? or ? = 0 ) and (e.priorita = ? or ? = 0 ) and (e.fk_dipendente = ? or ? = 0 ) and (d.fk_filiale = ? or ? = 0 ) ORDER BY e.priorita DESC,e.data_da,c.nome,d.username\";\n $rs = Database::getInstance()->eseguiQuery($sql,array($prioTxt,$prioTxt2,$editTxt,$editTxt2,$cnfTxt,$cnfTxt2,$da,$a,$tipo,$tipo,$prio,$prio,$utente,$utente,$filiale,$filiale));\n }\n if($rs->fields){\n echo '<p class=\"cellaTitoloTask\">'.stampaEvento::getTitoloReport($dataGiorno).'</p>';\n Utilita::stampaTabella($rs, $_GET[\"id_evento\"],$visualizza);\n }\n \n }", "function main()\n{\n\t$stdin = fopen('listeEvt.txt', 'r');\n\t$stdout = fopen('php://stdout', 'w');\n \n $nbEvt = 0;\n $evtTab = array();\n\t \n if ($stdin) {\n $line = 0;\n while (!feof($stdin)) {\n $buffer = fgets($stdin, 4096);\n // La première ligne contient le nombre total d'évènements\n if ($line == 0) {\n $nbEvt = $buffer;\n\n } else {\n // On vérifie qu'on ne dépasse pas le nombre d'évènements définit au début\n if ($line <= $nbEvt) {\n // On récupère la date de début et la durée de l'évènement\n $evt = explode(\";\", $buffer);\n if (sizeof($evt) > 1) {\n // Récupère les valeurs Année Mois Jour pour la date de début\n $dateDebutExplode = explode(\"-\", $evt[0]);\n $dateDebutTab[0] = intval($dateDebutExplode[0]);\n $dateDebutTab[1] = intval($dateDebutExplode[1]);\n $dateDebutTab[2] = intval($dateDebutExplode[2]);\n $dateDebutEvt= $evt[0];\n // Calcul la date de fin\n $endDate = calcEndDate($dateDebutTab, intval($evt[1]));\n // On rajoute des zéros devant pour faciliter le tri par date de début\n $keyMonth = ($dateDebutTab[1] < 10) ? \"0\".$dateDebutTab[1] : $dateDebutTab[1];\n $keyDay = ($dateDebutTab[2] < 10) ? \"0\".$dateDebutTab[2] : $dateDebutTab[2];\n $evtTab[] = array(\"startDate\" => $dateDebutTab[0].\"\".$keyMonth.\"\".$keyDay, \"endDate\" => $endDate, \"nbDay\" => $evt[1]);\n }\n // Tri du tableau par date de début puis par durée\n usort($evtTab, \"evtComparator\");\n }\n }\n $line++;\n }\n // Evt count\n $nbEvt = 0;\n $currentDate = \"\";\n if (sizeof($evtTab) > 0) {\n\n // Retire les évènements chevauchant sur plus d'un autre évènement\n $evtTab = evtFilter($evtTab);\n\n // Compte le nombre d'évènements non chevauchant \n foreach ($evtTab as $key => $evt) {\n if ($currentDate == \"\") {\n $currentDate = $evt[\"endDate\"];\n $nbEvt++;\n } else {\n // Si la date de fin du premier ne chevauche pas la date de début du deuxième\n if ($currentDate < $evt['startDate']) {\n $currentDate = $evt['endDate'];\n $nbEvt += 1;\n }\n }\n }\n }\n }\n\n var_dump($nbEvt);\n\t\n fwrite($stdout, $nbEvt);\n \n\tfclose($stdout);\n\tfclose($stdin);\n}", "public function eventfeedAction()\n {\n $this->disableView();\n $this->setCustomHeader('json');\n //get params\n $startTime = $this->_getParam('start');\n $endTime = $this->_getParam('end');\n $idJabatan = $this->_getParam('id_jabatan');\n $idSkenario = $this->_getParam('id_skenario');\n //get list of events\n $listEvent = $this->getEventFeed($startTime, $endTime, $idJabatan, $idJabatan);\n //initialize empty array\n $arrayEvent = array();\n //loop through the list of the events\n if(count($listEvent))\n {\n foreach($listEvent as $event)\n {\n //converting date time format\n $asumsiDayStart = date('d', strtotime($event['asumsi_start']));\n $asumsiDayEnd = date('d', strtotime($event['asumsi_end']));\n $asumsiDateStart = date('d/F/Y', strtotime($event['asumsi_start']));\n $asumsiDateEnd = date('d/F/Y', strtotime($event['asumsi_end']));\n $asumsiTimeStart = date('H:i:s', strtotime($event['asumsi_start']));\n $asumsiTimeEnd = date('H:i:s', strtotime($event['asumsi_end']));\n //if a one day events only\n if( $asumsiDayStart == $asumsiDayEnd )\n {\n //print the date only once\n $title = $event['nama_kegiatan'] . ' waktu asumsi ' . $asumsiDateStart . ', ';\n }else{\n //print only the start and end date\n $title = $event['nama_kegiatan'] . ' waktu asumsi ' . $asumsiDateStart . ' - ' . $asumsiDateEnd . ', ';\n }\n //print the timeline\n $title .= $asumsiTimeStart . ' - ' . $asumsiTimeEnd;\n //print assumption time\n $title .= ' Perbandingan Sebenarnya : Asumsi = ' . $event['asumsi_perbandingan'];\n //add edit links only if user can access the edit forms: latihan-rol-edit\n if (Zend_Auth::getInstance()->hasIdentity()) {\n $identity = Zend_Auth::getInstance()->getStorage()->read();\n $tablePrivileges = new Latihan_Model_DbTable_Privileges();\n if($tablePrivileges->checkRolesPrivileges('latihan', 'rol', 'edit', $identity->role_id) >= 1)\n {\n $tempArray = array(\n 'id' => $event['id_rol'],\n 'start' => $event['realtime_start'],\n 'end' => $event['realtime_end'],\n 'url' => $this->view->baseUrl('latihan/rol/edit/id/') . $event['id_rol'] ,\n 'title' => $title,\n 'allDay' => false\n );\n }else{\n $tempArray = array(\n 'id' => $event['id_rol'],\n 'start' => $event['realtime_start'],\n 'end' => $event['realtime_end'],\n 'title' => $title,\n 'allDay' => false\n );\n }\n }\n //form into fullcalendar json object format\n array_push($arrayEvent, $tempArray);\n }\n echo json_encode($arrayEvent);\n }\n }", "function getEventosScreenshotElemento() {\n\t global $mdb2;\n\t global $log;\n\t global $current_usuario_id;\n\t global $data;\n\t global $marcado;\n\t global $usr;\n\t include 'utils/get_eventos.php';\n\t $event = new Event;\n\t $graficoSvg = new GraficoSVG();\n\n\t if($this->extra[\"imprimir\"]){\n\t \t$objetivo = new ConfigEspecial($this->objetivo_id);\n\n\t\t\t$nombre_objetivo = $objetivo->nombre;\n\t\t\t//echo $nombre_objetivo;\n\n\t \t$usuario = new Usuario($current_usuario_id);\n\t\t\t$usuario->__Usuario();\n\t \t$json = get_eventos($current_usuario_id, $this->objetivo_id, date(\"Y-m-d H:i\", strtotime($this->timestamp->getInicioPeriodo())), date(\"Y-m-d H:i\",strtotime($this->timestamp->getTerminoPeriodo())), $usuario->clave_md5);\n\t \t$T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t $T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t $T->setVar('__nombre_obj', $nombre_objetivo);\n\t\t $T->setVar('__contenido', $json);\n\t\t $T->setVar('__valid_contenido', true);\n\t\t $this->resultado = $T->parse('out', 'tpl_tabla');\n\t }else{\n\n\t\t /* TEMPLATE DEL GRAFICO */\n\t\t $T =& new Template_PHPLIB(REP_PATH_TABLETEMPLATES);\n\t\t $T->setFile('tpl_tabla', 'contenedor_tabla.tpl');\n\t\t $T->setBlock('tpl_tabla', 'LISTA_CONTENEDORES', 'lista_contenedores');\n\t\t $T->setVar('__valid_contenido', false);\n\t\t # Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t $timeZoneId = $usr->zona_horaria_id;\n\t\t $arrTime = Utiles::getNameZoneHor($timeZoneId);\n\t\t $timeZone = $arrTime[$timeZoneId];\n\t\t $arrayDateStart = array();\n\t\t $tieneEvento = 'false';\n\t\t $data = null;\n\t\t $ids = null;\n\n\t\t $sql1 = \"SELECT * FROM reporte._detalle_marcado(\".pg_escape_string($current_usuario_id).\",ARRAY[\".pg_escape_string($this->objetivo_id).\"],'\".pg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".pg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t// \t \t print($sql1);\n\t\t \t$res1 =& $mdb2->query($sql1);\n\t\t \tif (MDB2::isError($res1)) {\n\t\t \t $log->setError($sql1, $res1->userinfo);\n\t\t \t exit();\n\t\t \t}\n\t\t \tif($row1= $res1->fetchRow()){\n\t\t \t $dom1 = new DomDocument();\n\t\t \t $dom1->preserveWhiteSpace = FALSE;\n\t\t \t $dom1->loadXML($row1['_detalle_marcado']);\n\t\t \t $xpath1 = new DOMXpath($dom1);\n\t\t \t unset($row1[\"_detalle_marcado\"]);\n\t\t \t}\n\t\t \t$tag_marcardo_mantenimientos = $xpath1->query(\"/detalles_marcado/detalle/marcado\");\n\t\t \t# Busca y guarda si existen marcados dentro del xml.\n\t\t \tforeach ($tag_marcardo_mantenimientos as $tag_marcado){\n\t\t \t $ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t \t $marcado = true;\n\t\t \t}\n\t\t \t# Verifica que existan marcados por el usuario.\n\t\t \tif ($marcado == true) {\n\t\t \t $dataMant =$event->getData(substr($ids, 1), $timeZone);\n\t\t \t $character = array(\"{\", \"}\");\n\t\t \t $objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t \t $tieneEvento = 'true';\n\t\t \t $data = json_encode($dataMant);\n\t\t \t}\n\t\t\tif (isset($this->extra[\"monitor_id\"]) and isset($this->extra[\"pagina\"])) {\n\t\t\t if($this->extra[\"semaforo\"]==2){\n\t\t\t $semaforo=2;\n\t\t\t }else{\n\t\t\t $semaforo=1;\n\t\t\t }\n\t\t\t //$T->setVar('__contenido_id', 'even__'.$this->extra[\"monitor_id\"]);\n\t\t\t $T->setVar('__contenido_tabla', $this->getDetalleEventosScreenshotElementos($this->extra[\"monitor_id\"], $this->extra[\"pagina\"], $semaforo));\n\t\t\t $T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t $T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t return $this->resultado = $T->parse('out', 'tpl_tabla');\n\t\t\t}\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT foo.nodo_id FROM (\".\n\t\t\t\t \"SELECT DISTINCT unnest(_nodos_id) AS nodo_id FROM _nodos_id(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\",'\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"','\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')) AS foo, nodo n \".\n\t\t\t\t \"WHERE foo.nodo_id=n.nodo_id ORDER BY orden\";\n\t//\t\tprint($sql);\n\t\t\t$res =& $mdb2->query($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\t\t\t$monitor_ids = array();\n\t\t\twhile($row = $res->fetchRow()) {\n\t\t\t\t$monitor_ids[] = $row[\"nodo_id\"];\n\t\t\t}\n\t\t\t/* SI NO HAY DATOS MOSTRAR MENSAJE */\n\t\t\tif (count($monitor_ids) == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$orden = 1;\n\t\t\tforeach ($monitor_ids as $monitor_id) {\n\t\t\t\t$T->setVar('__contenido_id', 'even_'.$monitor_id);\n\t\t\t\t$T->setVar('__contenido_tabla', $this->getDetalleEventosScreenshotElementos($monitor_id, 1, 1, $orden));\n\t\t\t\t$T->parse('lista_contenedores', 'LISTA_CONTENEDORES', true);\n\t\t\t\t$orden++;\n\t\t\t}\n\t\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\t\t\tif ($data != null){\n\t\t\t\t$this->resultado.= $graficoSvg->getAccordion($data,'accordionEvento');\n\t\t\t}\n\t\t}\n\t}", "function stampaPersona($numeroEvento, $conn) {\n \n $stmt = $conn->prepare(\"SELECT tep.nome, P.alt_name, P.nome, P.cognome, P.id FROM (((eventoPersona AS ep INNER JOIN tipologiaEventoPersona AS tep ON tep.id = ep.tipologia) INNER JOIN Evento AS E ON E.id = ep.id_evento) INNER JOIN Persona AS P ON P.id = ep.id_persona) WHERE E.id = ? ORDER BY ep.tipologia\");\n $stmt->bind_param(\"i\", $numeroEvento);\n $stmt->execute();\n $stmt->bind_result($nome_tipo_rapporto, $alt_name, $nome, $cognome, $id);\n \n $daRitornare=\"\";\n \n $ultimaTipologia = \"babbi l'orsetto\";\n while($stmt->fetch()) {\n \n \n if( $nome_tipo_rapporto == $ultimaTipologia ){\n $daRitornare.= \", \". stampaNome($id, $conn);\n }else{\n if($ultimaTipologia != \"babbi l'orsetto\"){$daRitornare.= \"<br>\";}\n $daRitornare.= \"<b class='cappato'>\" . $nome_tipo_rapporto . \":</b> \";\n $daRitornare.= stampaNome($id);\n }\n \n $ultimaTipologia = $nome_tipo_rapporto; \n }\n return $daRitornare;\n }", "function periodicite_evt($evt_tmp)\r\n{\r\n\tglobal $trad;\r\n\t////\tJours de la semaine\r\n\tif($evt_tmp[\"periodicite_type\"]==\"jour_semaine\"){\r\n\t\tforeach(explode(\",\",$evt_tmp[\"periodicite_valeurs\"]) as $jour)\t{ @$txt_jours .= $trad[\"jour_\".$jour].\", \"; }\r\n\t\treturn $trad[\"AGENDA_period_jour_semaine\"].\" : \".trim($txt_jours,\", \");\r\n\t}\r\n\t////\tJours du mois\r\n\tif($evt_tmp[\"periodicite_type\"]==\"jour_mois\"){\r\n\t\treturn $trad[\"AGENDA_period_jour_mois\"].\" : \".str_replace(\",\", \", \", $evt_tmp[\"periodicite_valeurs\"]);\r\n\t}\r\n\t////\tMois\r\n\tif($evt_tmp[\"periodicite_type\"]==\"mois\"){\r\n\t\tforeach(explode(\",\",$evt_tmp[\"periodicite_valeurs\"]) as $mois)\t\t{ @$txt_mois .= $trad[\"mois_\".round($mois)].\", \"; }\r\n\t\treturn $trad[\"AGENDA_period_mois\"].\" : \".$trad[\"le\"].\" \".strftime(\"%d\",strtotime($evt_tmp[\"date_debut\"])).\" \".trim($txt_mois,\", \");\r\n\t}\r\n\t////\tAnnée\r\n\tif($evt_tmp[\"periodicite_type\"]==\"annee\"){\r\n\t\treturn $trad[\"AGENDA_period_annee\"].\", \".$trad[\"le\"].\" \".strftime(\"%d %B\",strtotime($evt_tmp[\"date_debut\"]));\r\n\t}\r\n}", "function liste_evenements($id_agenda, $T_debut_periode, $T_fin_periode, $journee_order_by=true, $type_sortie=\"lecture\")\r\n{\r\n\t////\tPériode simple : début dans la période || fin dans la période || debut < periode < fin\r\n\t$date_debut\t\t= strftime(\"%Y-%m-%d %H:%M:00\", $T_debut_periode);\r\n\t$date_fin\t\t= strftime(\"%Y-%m-%d %H:%M:59\", $T_fin_periode);\r\n\t$sql_periode\t= \"((T1.date_debut between '\".$date_debut.\"' and '\".$date_fin.\"') OR (T1.date_fin between '\".$date_debut.\"' and '\".$date_fin.\"') OR (T1.date_debut < '\".$date_debut.\"' and T1.date_fin > '\".$date_fin.\"'))\";\r\n\t////\tPériodicité des événements : type périodicité spécifié && debut déjà commencé && fin pas spécifié/arrivé && date pas dans les exceptions && périodicité jour/semaine/mois/annee\r\n\t$period_date_fin = strftime(\"%Y-%m-%d\", $T_fin_periode);\r\n\t$date_ymd\t\t= strftime(\"%Y-%m-%d\", $T_debut_periode);\r\n\t$jour_semaine\t= str_replace(\"0\",\"7\",strftime(\"%w\",$T_debut_periode)); // de 1 à 7 (lundi à dimanche)\r\n\t$mois\t\t\t= strftime(\"%m\",$T_debut_periode); // mois de l'annee en numérique => 01 à 12\r\n\t$jour_mois\t\t= strftime(\"%d\",$T_debut_periode); // jour du mois en numérique => 01 à 31\r\n\t$jour_annee\t\t= strftime(\"%m-%d\", $T_debut_periode);\r\n\t$periodicite\t= \"(T1.periodicite_type is not null AND T1.date_debut<'\".$date_debut.\"' AND (T1.period_date_fin is null or '\".$period_date_fin.\"'<=T1.period_date_fin) AND (T1.period_date_exception is null or period_date_exception not like '%\".$date_ymd.\"%') AND ((T1.periodicite_type='jour_semaine' and T1.periodicite_valeurs like '%\".$jour_semaine.\"%') OR (T1.periodicite_type='jour_mois' and T1.periodicite_valeurs like '%\".$jour_mois.\"%') OR (T1.periodicite_type='mois' and T1.periodicite_valeurs like '%\".$mois.\"%' and DATE_FORMAT(T1.date_debut,'%d')='\".$jour_mois.\"') OR (T1.periodicite_type='annee' and DATE_FORMAT(T1.date_debut,'%m-%d')='\".$jour_annee.\"')))\";\r\n\t////\tRécupère la liste des evenements ($order_by_sql==\"heure_debut\" si on récup les évenements d'1 jour, pour pouvoir bien intégrer les evenements récurents)\r\n\t$order_by_sql = ($journee_order_by==true) ? \"DATE_FORMAT(T1.date_debut,'%H')\" : \"T1.date_debut\";\r\n\t$liste_evenements_tmp = db_tableau(\"SELECT T1.* FROM gt_agenda_evenement T1, gt_agenda_jointure_evenement T2 WHERE T1.id_evenement=T2.id_evenement AND T2.id_agenda='\".intval($id_agenda).\")' AND T2.confirme='1' AND (\".$sql_periode.\" OR \".$periodicite.\") ORDER BY \".$order_by_sql.\" asc\");\r\n\r\n\t////\tCree le tableau de sortie (en ajoutant le droit d'accès, masquant les libellés si besoin, etc.)\r\n\tglobal $objet;\r\n\t$liste_evenements = array();\r\n\tforeach($liste_evenements_tmp as $key_evt => $evt_tmp)\r\n\t{\r\n\t\t$droit_acces = droit_acces($objet[\"evenement\"], $evt_tmp, false);\r\n\t\tif($type_sortie==\"tout\" || ($type_sortie==\"lecture\" && $droit_acces>0))\r\n\t\t{\r\n\t\t\t// Ajoute l'evenement au tableau de sortie avec son droit d'accès\r\n\t\t\t$liste_evenements[$key_evt] = $evt_tmp;\r\n\t\t\t$liste_evenements[$key_evt][\"droit_acces\"] = $droit_acces;\r\n\t\t\t// masque les détails si besoin : \"evt public mais détails masqués\"\r\n\t\t\tif($type_sortie==\"lecture\") $liste_evenements[$key_evt] = masque_details_evt($liste_evenements[$key_evt]);\r\n\t\t}\r\n\t}\r\n\treturn $liste_evenements;\r\n}", "public function index()\n {\n $pegawais = Pegawai::all();\n $absens = Absen::where('absensi', '=', 0)->orderBy('pegawai_id', 'asc')->orderBy('tanggal', 'asc')->get();\n /*\n $events = array();\n foreach($absens as $absen)\n {\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = $absen->tanggal;\n $events[] = $event; \n }\n $events = json_encode($events);\n */\n \n $absenCounter = count($absens);\n $count = 0;\n $events = array();\n\n if ($absenCounter > 0)\n { \n $prev = strtotime($absens[0]->tanggal);\n $tempevent = null;\n $prevId = $absens[0]->pegawai_id;\n foreach ($absens as $absen)\n {\n $idP = $absen->pegawai_id;\n $now = strtotime($absen->tanggal);\n if ($idP == $prevId)\n {\n if ($now - $prev == 86400)\n $tempevent['end'] = date('Y-m-d', $now + 86400);\n else\n {\n if (isset($tempevent))\n $events[] = $tempevent;\n\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = explode(' ',$absen->tanggal)[0];\n $tempevent = $event;\n }\n }\n else\n {\n if (isset($tempevent))\n $events[] = $tempevent;\n\n $event = array();\n $event['title'] = $absen->pegawai->user->name;\n $event['start'] = explode(' ',$absen->tanggal)[0];\n $tempevent = $event;\n }\n $count++;\n if ($count < $absenCounter)\n $prev = $now;\n $prevId = $idP;\n }\n\n\n if ($now - $prev == 86400)\n $tempevent['end'] = date('Y-m-d', $now + 86400);\n $events[] = $tempevent;\n }\n $events = json_encode($events); \n\n return view('home', compact('pegawais', 'events'));\n>>>>>>> 89b1f447d154be4b9e1c19744a84d468801d0ac7\n }", "function tous_auteurs_date_passage() {\r\n\tglobal $couleur_claire, $connect_id_auteur;\r\n\r\n\t// fixer le nombre de ligne du tableau (tranche)\r\n\t$fl = $GLOBALS['actijour']['nbl_aut'];\r\n\r\n\t// recup $vl dans URL\r\n\t$dl = intval(_request('vl'));\r\n\t$dl = ($dl + 0);\r\n\t// valeur de tranche affichꥍ\r\n\t$nba1 = $dl + 1;\r\n\r\n\t$p_st = _request('st');\r\n\tif (!$p_st) {\r\n\t\t$where_st = \"statut IN ('0minirezo','1comite','6forum')\";\r\n\t\t$p_st = 'tous';\r\n\t} else {\r\n\t\t$where_st = \"statut = \" . _q($p_st);\r\n\t}\r\n\r\n\t$q = sql_select(\"SQL_CALC_FOUND_ROWS id_auteur, statut, nom,\r\n\t\t\t\t\t\tDATE_FORMAT(en_ligne,'%d/%m/%y %H:%i') AS vu \"\r\n\t\t. \"FROM spip_auteurs \"\r\n\t\t. \"WHERE $where_st \"\r\n\t\t. \"ORDER BY en_ligne DESC,nom \"\r\n\t\t. \"LIMIT $dl,$fl\"\r\n\t);\r\n\r\n\t// recup nombre total d'entrees\r\n\t$nl = sql_select(\"FOUND_ROWS()\");\r\n\t$found = @sql_fetch($nl);\r\n\t$nb_auteurs = $found['FOUND_ROWS()'];\r\n\r\n\t$ifond = 0;\r\n\r\n\t$aff = '';\r\n\r\n\t# onglet select statut\r\n\t$lst_statut = array('tous', '0minirezo', '1comite', '6forum');\r\n\t$script = _request('exec');\r\n\r\n\t$aff .= debut_onglet();\r\n\tforeach ($lst_statut as $statut) {\r\n\t\t$aff .= onglet(_T('actijour:onglet_connect_' . $statut),\r\n\t\t\tgenerer_url_ecrire($script, 'st=' . ($statut == 'tous' ? '' : $statut)),\r\n\t\t\t$statut,\r\n\t\t\t($p_st == $statut ? $statut : ''), '');\r\n\t}\r\n\t$aff .= fin_onglet();\r\n\r\n\r\n\t# tableau\r\n\t#\r\n\t$aff .= debut_cadre_relief(\"annonce.gif\", true);\r\n\r\n\t$aff .= \"<table align='center' border='0' cellpadding='2' cellspacing='0' width='100%'>\\n\"\r\n\t\t. \"<tr><td colspan='3' class='verdana3 bold'>\" . _T('actijour:tous_date_connections')\r\n\t\t. \"</td></tr>\";\r\n\t# Tranches\r\n\t$aff .= \"<tr><td colspan='3' class='verdana3 bold'>\";\r\n\t$aff .= \"<div align='center' class='iconeoff verdana2 bold' style='clear:both;'>\\n\"\r\n\t\t. tranches_liste_art($nba1, $nb_auteurs, $fl)\r\n\t\t. \"\\n</div>\\n\";\r\n\t$aff .= \"</td></tr>\";\r\n\r\n\twhile ($row = sql_fetch($q)) {\r\n\t\t$ifond = $ifond ^ 1;\r\n\t\t$couleur = ($ifond) ? '#FFFFFF' : $couleur_claire;\r\n\r\n\t\t$aff .= \"<tr bgcolor='$couleur'>\"\r\n\t\t\t. \"<td width='5%'>\\n\"\r\n\t\t\t. bonhomme_statut($row) . \"</td>\\n\"\r\n\t\t\t. \"<td width='75%'>\"\r\n\t\t\t. \"<a class='verdana2 bold' href='\" . generer_url_ecrire(\"auteur_infos\", \"id_auteur=\" . $row['id_auteur']) . \"'>\"\r\n\t\t\t. entites_html($row['nom']) . \"</a>\\n\"\r\n\t\t\t. \"<td width='20%'>\\n\"\r\n\t\t\t. \"<div align='right' class='verdana1'>\" . $row['vu'] . \"</div>\\n\"\r\n\t\t\t. \"</td></tr>\\n\";\r\n\r\n\t}\r\n\t$aff .= \"</table>\\n\\n\";\r\n\r\n\t$aff .= fin_cadre_relief(true);\r\n\r\n\treturn $aff;\r\n}", "public function index(): array\n {\n// Co::create(function () {\n// echo date('Y-m-d H:i:s');\n// Co::sleep(5);\n// Log::info('swoft go');\n// });\n \\Swoft::trigger('event.demosss');\n return ['item0', 'item1'];\n }", "function afficherevent(){\r\n\t\t$sql=\"SElECT * From eventt\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t\t$liste=$db->query($sql);\r\n\t\t\treturn $liste;\r\n\t\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '. $e->getMessage());\r\n \t\t\t\t\t}\t\r\n\t}", "function agenda_debug_evenement($id_agenda=0, $liste_choisie='liste_evt') {\n\n\tif ($liste_choisie == 'liste_evt') {\n\t\t$evenements = agenda_recenser_evenement(0);\n\t\t$count_evt = count($evenements);\n\n\t\tfor ($i=1;$i<=$count_evt;$i++) {\n\t\t\techo '<br /><strong>EVT Num'.$i.'</strong><br />';\n\t\t\techo '<strong>Titre</strong>: '.$evenements[$i]['titre'].'<br />';\n\t\t\techo '<strong>Id</strong>: '.$evenements[$i]['id'].'<br />';\n\t\t\techo '<strong>Date Redac</strong>: '.$evenements[$i]['date_redac'].'<br />';\n\t\t\techo '<strong>Date</strong>: '.$evenements[$i]['date'].'<br />';\n\t\t\techo '<strong>Heure</strong>: '.$evenements[$i]['heure'].'<br />';\n\t\t\techo '<strong>Jour</strong>: '.$evenements[$i]['jour'].'<br />';\n\t\t\techo '<strong>Mois</strong>: '.$evenements[$i]['mois'].' | '.$evenements[$i]['nom_mois'].'<br />';\n\t\t\techo '<strong>Annee</strong>: '.$evenements[$i]['annee'].'<br />';\n\t\t\techo '<strong>Saison</strong>: '.$evenements[$i]['saison'].'<br />';\n\t\t\techo '<strong>Lien page</strong>: '.$evenements[$i]['lien_page'].'<br />';\n\t\t\techo '<strong>Categorie</strong>: '.$evenements[$i]['categorie'].'<br />';\n\t\t}\n\t}\n\telse {\n\t\t$evenements = agenda_recenser_evenement(-1);\n\n\t\tforeach ($evenements as $jour => $liste) {\n\t\t\techo '<br /><strong>JOUR: </strong>'.$jour.' ('.count($liste).')<br />';\n\t\t\tforeach ($liste as $num_evt)\n\t\t\t\techo $num_evt.', ';\n\t\t\techo '<br />';\n\t\t}\n\t}\n}", "public function lastSpoolAction()\n {\n $arraySpool = array();\n\n try {\n\n // last spool SF3\n $lquery = new Query($this->container->getParameter(\"lavoisier01\"), 'OPSCORE_portal_spoolMail', 'lavoisier');\n $xml = simplexml_load_string($lquery->execute(), 'SimpleXMLElement', LIBXML_NOCDATA);\n\n $tabSpoolSF3 = json_decode(json_encode($xml), TRUE);\n\n\n $arraySpool[\"sf3 lavoisier01\"] = array(\n \"GenerationDate\" => trim(str_replace(\"[\", \"\", explode(\"]\", $tabSpoolSF3[\"entry\"])[0])),\n \"Sent\" => trim(explode(\"...\", $tabSpoolSF3[\"entry\"])[1])\n );\n\n $lquery = new Query($this->container->getParameter(\"lavoisierfr\"), 'OPSCORE_portal_spoolMail', 'lavoisier');\n $xml = simplexml_load_string($lquery->execute(), 'SimpleXMLElement', LIBXML_NOCDATA);\n\n $tabSpoolSF3 = json_decode(json_encode($xml), TRUE);\n\n\n $arraySpool[\"sf3 lavoisierfr\"] = array(\n \"GenerationDate\" => trim(str_replace(\"[\", \"\", explode(\"]\", $tabSpoolSF3[\"entry\"])[0])),\n \"Sent\" => trim(explode(\"...\", $tabSpoolSF3[\"entry\"])[1])\n );\n\n\n //last spool SF1\n $lquery = new Query($this->container->getParameter(\"lavoisier01\"), 'OPSCORE_portal_cron_sendMail', 'lavoisier');\n $xml = simplexml_load_string($lquery->execute(), 'SimpleXMLElement', LIBXML_NOCDATA);\n\n $tabSpoolSF1 = json_decode(json_encode($xml), TRUE);\n\n $arraySpool[\"sf1 lavoisier01\"] = array(\n \"GenerationDate\" => $tabSpoolSF1[\"GenerationDate\"],\n \"Sent\" => $tabSpoolSF1[\"Sent\"] . \" emails sent\"\n );\n\n $lquery = new Query($this->container->getParameter(\"lavoisierfr\"), 'OPSCORE_portal_cron_sendMail', 'lavoisier');\n $xml = simplexml_load_string($lquery->execute(), 'SimpleXMLElement', LIBXML_NOCDATA);\n\n $tabSpoolSF1 = json_decode(json_encode($xml), TRUE);\n\n $arraySpool[\"sf1 lavoisierfr\"] = array(\n \"GenerationDate\" => $tabSpoolSF1[\"GenerationDate\"],\n \"Sent\" => $tabSpoolSF1[\"Sent\"] . \" emails sent\"\n );\n\n\n return $this->render(\":backend/Home:lastSpool.html.twig\", array(\"tabSpool\" => $arraySpool));\n\n } catch (\\Exception $e) {\n return $this->render(\":backend/Home:lastSpool.html.twig\", array(\"error\" => $e->getMessage()));\n }\n\n }", "private function add_events()\r\n {\r\n $events = $this->events;\r\n foreach ($events as $time => $items)\r\n {\r\n $column = date('H', $time) / $this->hour_step + 1;\r\n foreach ($items as $item)\r\n {\r\n $content = $item['content'];\r\n $row = $item['index'] + 1;\r\n \r\n $cell_content = $this->getCellContents($row, $column);\r\n $cell_content .= $content;\r\n $this->setCellContents($row, $column, $cell_content);\r\n }\r\n }\r\n \r\n }", "function posponer(){\n $inicio_mt = $this->_formatear($_REQUEST['from']);\n $fin_mt = $this->_formatear($_REQUEST['to']);\n $id = $_REQUEST['id'];\n $data['inicio_normal']=$_REQUEST['from'];\n $data['final_normal']=$_REQUEST['to'];\n $data['start']=$inicio_mt;\n $data['end']=$fin_mt;\n // $data['motivo']\n $data['id'] = $id;\n\n $this->model_cal->posponer($data);\n\n header('Location: index.php?controller=calendario');\n }", "function post_eventos()\n\t{\n\t\tif ($this->disparar_importacion_efs ) {\n\t\t\tif (isset($this->s__importacion_efs['datos_tabla'])) {\n\t\t\t\t$clave = array('proyecto' => toba_editor::get_proyecto_cargado(),\n\t\t\t\t\t\t\t\t\t\t\t'componente' => $this->s__importacion_efs['datos_tabla']);\n\t\t\t\t$dt = toba_constructor::get_info($clave, 'toba_datos_tabla');\n\t\t\t\t$this->s__importacion_efs = $dt->exportar_datos_efs($this->s__importacion_efs['pk']);\n\t\t\t\tforeach ($this->s__importacion_efs as $ef) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (! $this->get_tabla()->existe_fila_condicion(array($this->campo_clave => $ef[$this->campo_clave]))) {\n\t\t\t\t\t\t\t$this->get_tabla()->nueva_fila($ef);\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch(toba_error $e) {\n\t\t\t\t\t\ttoba::notificacion()->agregar(\"Error agregando el EF '{$ef[$this->campo_clave]}'. \" . $e->getMessage());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->disparar_importacion_efs = false;\n\t\t}\n\t}", "function masque_details_evt($evt_tmp)\r\n{\r\n\tif($evt_tmp[\"droit_acces\"]<1){\r\n\t\tglobal $trad;\r\n\t\t$evt_tmp[\"titre\"] = \"<i>\".$trad[\"AGENDA_evt_prive\"].\"</i>\";\r\n\t\t$evt_tmp[\"description\"] = \"\";\r\n\t}\r\n\treturn $evt_tmp;\r\n}", "function menu_proposition_evt()\r\n{\r\n\t// Init\r\n\tglobal $trad, $AGENDAS_AFFECTATIONS;\r\n\t$menu_proposition_evt = \"\";\r\n\t////\tAGENDAS ACCESSIBLE EN ECRITURE (de ressource OU mon agendas perso)\r\n\tforeach($AGENDAS_AFFECTATIONS as $agenda_tmp)\r\n\t{\r\n\t\tif(($agenda_tmp[\"type\"]==\"ressource\" && $agenda_tmp[\"droit\"]>=2) || ($agenda_tmp[\"type\"]==\"utilisateur\" && is_auteur($agenda_tmp[\"id_utilisateur\"])))\r\n\t\t{\r\n\t\t\t// Evenements de l'agenda : non confirmé et dont on est pas l'auteur !\r\n\t\t\t$evts_confirmer = db_tableau(\"SELECT T1.* FROM gt_agenda_evenement T1, gt_agenda_jointure_evenement T2 WHERE T1.id_evenement=T2.id_evenement AND T2.id_agenda='\".$agenda_tmp[\"id_agenda\"].\"' AND T2.confirme='0' AND T1.id_utilisateur!='\".$_SESSION[\"user\"][\"id_utilisateur\"].\"'\");\r\n\t\t\tif(count($evts_confirmer)>0)\r\n\t\t\t{\r\n\t\t\t\t// Libelle de l'agenda\r\n\t\t\t\t$menu_proposition_evt .= \"<div id='alerte_proposition\".$agenda_tmp[\"id_agenda\"].\"' style='margin-top:10px;'>\";\r\n\t\t\t\t\t$libelle_tmp = ($agenda_tmp[\"type\"]==\"utilisateur\" && is_auteur($agenda_tmp[\"id_utilisateur\"])) ? $trad[\"AGENDA_evenements_proposes_mon_agenda\"] : $trad[\"AGENDA_evenements_proposes_pour_agenda\"].\" <i>\".$agenda_tmp[\"titre\"].\"</i>\";\r\n\t\t\t\t\t$menu_proposition_evt .= \"<img src=\\\"\".PATH_TPL.\"divers/important_small.png\\\" style='height:15px;vertical-align:middle;' /> <b>\".$libelle_tmp.\"</b>\";\r\n\t\t\t\t\t$menu_proposition_evt .= \"<script type='text/javascript'> $(window).load(function(){ $('#alerte_proposition\".$agenda_tmp[\"id_agenda\"].\"').effect('pulsate',{times:2},1000); }); </script>\";\r\n\t\t\t\t$menu_proposition_evt .= \"</div>\";\r\n\t\t\t\t// Evénements à confirmer sur l'agenda\r\n\t\t\t\t$menu_proposition_evt .= \"<ul style='margin:0px;margin-bottom:10px;padding:0px;'>\";\r\n\t\t\t\tforeach($evts_confirmer as $evt_tmp){\r\n\t\t\t\t\t$libelle_infobulle = temps($evt_tmp[\"date_debut\"],\"complet\",$evt_tmp[\"date_fin\"]).\"<br />\".$trad[\"AGENDA_evenement_propose_par\"].\" \".auteur(user_infos($evt_tmp[\"id_utilisateur\"]),$evt_tmp[\"invite\"]).\"<div style=margin-top:5px;>\".$evt_tmp[\"description\"].\"</div>\";\r\n\t\t\t\t\t$menu_proposition_evt .= \"<li onClick=\\\"confirmer_propostion_evt('\".$evt_tmp[\"id_evenement\"].\"','\".$agenda_tmp[\"id_agenda\"].\"');\\\" \".infobulle($libelle_infobulle).\" class='lien' style='margin-left:30px;margin-top:5px;'>\".$evt_tmp[\"titre\"].\"</li>\";\r\n\t\t\t\t}\r\n\t\t\t\t$menu_proposition_evt .= \"</ul>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\t////\tJAVASCRIPT : CONFIRMER OU PAS UNE PROPOSITION D'EVENEMENT\r\n\tif($menu_proposition_evt!=\"\")\r\n\t{\r\n\t\t$menu_proposition_evt .=\r\n\t\t\t\"<script type='text/javascript'>\r\n\t\t\tfunction confirmer_propostion_evt(id_evt, id_agenda)\r\n\t\t\t{\r\n\t\t\t\tpage_redir = \\\"\".ROOT_PATH.\"module_agenda/index.php?id_agenda=\\\"+id_agenda;\r\n\t\t\t\tif(confirm(\\\"\".$trad[\"AGENDA_evenement_integrer\"].\"\\\"))\t\t\t\tredir(page_redir+'&id_evt_confirm='+id_evt);\r\n\t\t\t\telse if(confirm(\\\"\".$trad[\"AGENDA_evenement_pas_integrer\"].\"\\\"))\tredir(page_redir+'&id_evt_noconfirm='+id_evt);\r\n\t\t\t}\r\n\t\t\t</script>\";\r\n\t}\r\n\r\n\t////\tRETOUR\r\n\treturn $menu_proposition_evt;\r\n}", "public function run()\n {\n ListEvent::insert([\n 'nama_event' => 'Jakarta Marathon',\n 'mulai_acara' => '2020-06-24',\n 'akhir_acara' => '2020-06-26',\n 'lokasi' => 'Gelora Senayan',\n 'status' => 'Sedang Berlangsung',\n ]);\n }", "function getEstadisticaDetallado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t# Variables para eventos especiales marcados por el cliente codigo 9.\n\t\t$event = new Event;\n\t\t$usr = new Usuario($current_usuario_id);\n\t\t$usr->__Usuario();\n\t\t$graficoSvg = new GraficoSVG();\n\n\n\t\t$timeZoneId = $usr->zona_horaria_id;\n\t\t$arrTime = Utiles::getNameZoneHor($timeZoneId); \t\t\n\t\t$timeZone = $arrTime[$timeZoneId];\n\t\t$tieneEvento = 'false';\n\t\t$arrayDateStart = array();\t\t\n\t\t$nameFunction = 'EstadisticaDet';\n\t\t$data = null;\n\t\t$ids = null;\n\n\t\t/* TEMPLATE DEL GRAFICO */\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'comparativo_resumen.tpl');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TITULO_HORARIOS', 'bloque_titulo_horarios');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_MONITOR', 'es_primero_monitor');\n\t\t$T->setBlock('tpl_tabla', 'ES_PRIMERO_TOTAL', 'es_primero_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_TABLA', 'bloque_tabla');\n\n\t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t# Variables para mantenimiento.\n\t\t$T->setVar('__path_jquery_ui', REP_PATH_JQUERY_UI);\n\t\n\t\t$horarios = array($usr->getHorario($this->horario_id));\n\t\tif ($this->horario_id != 0) {\n\t\t\t$horarios[] = $usr->getHorario(0);\n\t\t}\n\n\t\t$orden = 1;\n\t\t$T->setVar('bloque_titulo_horarios', '');\n\t\tforeach ($horarios as $horario) {\n\n\t\t\t/* OBTENER LOS DATOS Y PARSEARLO */\n\t\t\t$sql = \"SELECT * FROM reporte.comparativo_resumen_parcial(\".\n\t\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\t\tpg_escape_string($horario->horario_id).\",' \".\n\t\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\t\t\t$res =& $mdb2->query($sql);\n// \t\t\tprint($sql);\n\t\t\tif (MDB2::isError($res)) {\n\t\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\t\texit();\n\t\t\t}\n\n\t\t\t$row = $res->fetchRow();\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = false;\n\t\t\t$dom->loadXML($row[\"comparativo_resumen_parcial\"]);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"comparativo_resumen_parcial\"]);\n\n\t\t\tif ($xpath->query('//detalle[@paso_orden]/estadisticas/estadistica')->length == 0) {\n\t\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$conf_objetivo = $xpath->query('/atentus/resultados/propiedades/objetivos/objetivo')->item(0);\n\t\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t\t$conf_nodos = $xpath->query('//nodos/nodo');\n\n\t\t\tif(count($horarios) > 1) {\n\t\t\t\t$T->setVar('__item_horario', $this->extra[\"item_orden\"]);\n\t\t\t\t$T->setVar('__horario_orden', $orden);\n\t\t\t\t$T->setVar('__horario_nombre',$horario->nombre);\n\t\t\t\t$T->parse('bloque_titulo_horarios', 'BLOQUE_TITULO_HORARIOS', false);\n\t\t\t}\n\n\t\t\t\n\t\t\t# Obtención de los eventos especiales marcados por el cliente\n\t\t\tforeach ($xpath->query(\"/atentus/resultados/detalles_marcado/detalle/marcado\") as $tag_marcado) {\n\t\t\t$ids = $ids.','.$tag_marcado->getAttribute('mantenimiento_id');\n\t\t\t$marcado = true;\n\t\t\t}\t\t\n\t\t\t\n\t\t\t# Verifica que exista marcado evento cliente.\n\t\t\tif ($marcado == true) {\n\n\t\t\t\t$dataMant = $event->getData(substr($ids, 1), $timeZone);\n\t\t\t\t$character = array(\"{\", \"}\");\n\t\t\t\t$objetives = explode(',',str_replace($character,\"\",($dataMant[0]['objetivo_id'])));\n\t\t\t\t$tieneEvento = 'true';\n\t\t\t\t$encode = json_encode($dataMant);\n\t\t\t\t$nodoId = (string)0;\n\t\t\t\t$T->setVar('__tiene_evento', $tieneEvento);\n\t\t\t\t$T->setVar('__name', $nameFunction);\n\n\t\t\t}\n\n\t\t\t/* LISTA DE MONITORES */\n\t\t\t$linea = 1;\n\t\t\t$T->setVar('lista_pasos', '');\n\t\t\tforeach($conf_nodos as $conf_nodo) {\n\t\t\t\t$primero = true;\n\t\t\t\t$tag_nodo = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/estadisticas/estadistica')->item(0);\n\n\t\t\t\t/* LISTA DE PASOS */\n\t\t\t\tforeach($conf_pasos as $conf_paso) {\n\t\t\t\t\t$tag_dato = $xpath->query('//detalle[@nodo_id='.$conf_nodo->getAttribute('nodo_id').']/detalles/detalle[@paso_orden='.$conf_paso->getAttribute('paso_orden').']/estadisticas/estadistica')->item(0);\n\t\t\t\t\tif($tag_dato != null) {\n\t\t\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\n\t\t\t\t\t\t$T->setVar('es_primero_monitor', '');\n\t\t\t\t\t\t$T->setVar('es_primero_total', '');\n\t\t\t\t\t\tif ($primero) {\n\t\t\t\t\t\t\t$T->setVar('__monitor_nombre', $conf_nodo->getAttribute('nombre'));\n\t\t\t\t\t\t\t$T->setVar('__monitor_rowspan', $conf_pasos->length);\n\t\t\t\t\t\t\t$T->setVar('__monitor_total_monitoreo', $tag_nodo->getAttribute('cantidad'));\n\t\t\t\t\t\t\t$T->parse('es_primero_monitor', 'ES_PRIMERO_MONITOR', false);\n\t\t\t\t\t\t\t$T->parse('es_primero_total', 'ES_PRIMERO_TOTAL', false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute(\"nombre\"));\n\t\t\t\t\t\t$T->setVar('__paso_minimo', number_format($tag_dato->getAttribute('tiempo_min'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_maximo', number_format($tag_dato->getAttribute('tiempo_max'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_promedio', number_format($tag_dato->getAttribute('tiempo_prom'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_uptime', number_format($tag_dato->getAttribute('uptime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_downtime', number_format($tag_dato->getAttribute('downtime'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_no_monitoreo', number_format($tag_dato->getAttribute('sin_monitoreo'), 3, ',', ''));\n\t\t\t\t\t\t$T->setVar('__paso_evento_especial', number_format($tag_dato->getAttribute('marcado_cliente'), 3, ',', ''));\n\n\t\t\t\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t\t\t\t$primero = false;\n\t\t\t\t\t\t$linea++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$T->parse('bloque_tabla', 'BLOQUE_TABLA', true);\n\t\t\t$orden++;\n\t\t}\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado = $T->parse('out', 'tpl_tabla');\n\n\t\t# Agrega el acordeon cuando existan eventos.\n\t\tif (count($dataMant)>0){\n\t\t\t$this->resultado.= $graficoSvg->getAccordion($encode,$nameFunction);\n\t\t}\n\t\treturn $this->resultado;\n\t}", "function agenda_liste_afficher($id_agenda=0, $annee_choisie=0, $mois_choisi=0, $filtre='-1', $tri='normal') {\n\tstatic $count_evt_filtre = 0;\n\n\tif ($id_agenda == 0)\n\t\treturn $count_evt_filtre;\n\n\t$evenements = agenda_recenser_evenement(0);\n\t$count_evt = count($evenements);\n\t$count_page = agenda_liste_paginer(0);\n\n\t$liste = NULL;\n\tif (($count_evt == 0) || ($count_page == 0))\n\t\treturn $liste;\n\t\t\n\t// Determination de l'annee choisie si l'agenda est saisonnier\t\n\t$contexte_aff = agenda_definir_contexte(0);\n\t$debut_saison = $contexte_aff['debut_saison'];\n\tif (intval($debut_saison) != 1) \n\t\t$annee_choisie = (intval($mois_choisi) < intval($debut_saison)) ? $annee_choisie : strval(intval($annee_choisie)+1);\n\n\t$mois_courant = NULL;\n\t$nouveau_mois = FALSE;\n\t$count_evt_filtre = 0;\n\n\tfor ($i=1;$i<=$count_evt;$i++) {\n\t\t$j = ($tri == 'inverse') ? $count_evt - $i + 1 : $i;\n\t\tif ($evenements[$j]['saison'] == $annee_choisie) {\n\t\t\tif (($filtre == '-1') || \n\t\t\t\t(($filtre == '0') && (!$evenements[$j]['categorie'])) ||\n\t\t\t\t(($filtre != '-1') && ($filtre != 0) && (preg_match(\"/<$filtre>/\",$evenements[$j]['categorie']) > 0))) {\n\n\n\t\t\t\t$count_evt_filtre += 1;\n\t\t\t\t$mois_redac = $evenements[$j]['nom_mois'];\n\t\t\t\tif ($mois_redac != $mois_courant) {\n\t\t\t\t\t$nouveau_mois = TRUE;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$nouveau_mois = FALSE;\n\t\t\t\t}\n\n\t\t\t\tif ($nouveau_mois) {\n\t\t\t\t\tif ($mois_courant) {\n\t\t\t\t\t\t$liste .= '</ul></li>';\n\t\t\t\t\t}\n\t\t\t\t\t$liste .= '<li><a class=\"noeud\" href=\"#\">'.ucfirst($evenements[$j]['nom_mois']).'&nbsp;'.$evenements[$j]['annee'].'</a>';\n\t\t\t\t\t$liste .= '<ul>';\n\t\t\t\t}\n\t\t\t\t$mois_courant = $mois_redac;\n\t\t\t\t$liste .= '<li><a class=\"feuille\" href=\"spip.php?page=evenement&amp;id_article='.$evenements[$j]['id'].'\" title=\"'._T('sarkaspip:navigation_bulle_vers_evenement').'\">\n\t\t\t\t<span class=\"date\">['.$evenements[$j]['date'].']&nbsp;</span>&nbsp;'.$evenements[$j]['titre'].'</a></li>';\n\t\t\t}\n\t\t}\n\t}\n\n\tif ($count_evt_filtre > 0)\n\t\t$liste = '<ul>'.$liste.'</ul></li></ul>';\n\n\treturn $liste;\n}", "function event_proveerCampos($sNombreReporte, $tuplaSQL)\n {\n global $config;\n $oACL=getACL();\n $input=$apellido=$nombre=$email=\"\";\n\n //echo \"<pre>\";print_r($tuplaSQL);echo \"</pre>\";\n\n switch ($sNombreReporte) {\n case \"CALIFICAR_CALIFICABLES\":\n $apellido=$tuplaSQL['APELLIDO'];\n $nombre=$tuplaSQL['NOMBRE'];\n $fecha_realizacion=$tuplaSQL['FECHA_REALIZACION'];\n $email=$tuplaSQL['EMAIL'];\n $estatus=$tuplaSQL['ESTATUS'];\n\n if($estatus=='T' || $estatus=='V')\n $alumno= \"<a href='\".$this->sBaseURL.\n \"&calificar_calificable=Calificar&id_calificable=\".$tuplaSQL['ID_CALIFICABLE'].\n \"&id_alumno_calificable=\".$tuplaSQL['ID_ALUMNO_CALIFICABLE'].\"'>\".$tuplaSQL['ALUMNO'].\"</a>\";\n else\n $alumno=$tuplaSQL['ALUMNO'];\n\n $puntuacion=$tuplaSQL['PUNTUACION'];\n $sQuery = \" SELECT SUM(puntuacion) \".\n \" FROM ul_alumno_pregunta \".\n \" WHERE id_alumno_calificable='\".$tuplaSQL['ID_ALUMNO_CALIFICABLE'].\"' \".\n \" AND puntuacion IS NOT NULL\";\n $result = $this->oDB->getFirstRowQuery($sQuery);\n if(is_array($result)){\n if(count($result)>0)\n $puntuacion=$result[0];\n }else{\n }\n\n switch($estatus){\n case 'N':\n $estatus='No Realizado';\n break;\n case 'V':\n $estatus=\"<div style='color:#aa5500'>Visto</div>\";\n break;\n case 'T':\n $estatus=\"<div style='color:green;'>Terminado\";\n break;\n case 'A':\n $estatus='Anulado';\n break;\n default:\n $estatus=\"<div style='color:red;'>No Asignado</div>\";\n }\n\n return array(//\"INPUT\" => $input,\n \"ALUMNO\" => $alumno,\n \"APELLIDO\" => $apellido,\n \"NOMBRE\" => $nombre,\n \"EMAIL\" => $email,\n \"FECHA_REALIZACION\" => $fecha_realizacion,\n \"ESTATUS\" => $estatus,\n \"PUNTUACION\" => sprintf(\"%.2f\",$puntuacion),\n \"TOTAL\" => sprintf(\"%.2f\",$puntuacion*$tuplaSQL['PONDERACION']),\n\n );\n default:\n }\n\n return array(//\"INPUT\" => $input,\n \"APELLIDO\" => $apellido,\n \"NOMBRE\" => $nombre,\n \"EMAIL\" => $email,\n );\n }", "public function onGetEvents()\n {\n $start = input('start');\n $end = input('end');\n // dd($start, $end);\n // trace_log($start, $end);\n $systemTZ = config(\"app.timezone\");\n $isConvertToFrontEndTimeZone = config(\"yfktn.eventgubernur::convertToFrontEndTimeZone\");\n // karena di tanggal yang diberikan waktu fullcalendar melakukan permintaan\n // events, pada string yang diberikan sudah ada informasi timezone nya\n // sehingga kita tidak perlu lagi melakukan proses setting manual timezone\n $startTZ = Carbon::parse($start);\n $endTZ = Carbon::parse($end);\n $frontEndTimeZone = $startTZ->timezone;\n // trace_log($startTZ, $endTZ);\n // trace_sql();\n // dapatkan dari db\n $events = EventsModel::whereBetween('tgl_mulai', [\n $startTZ->copy()->timezone($systemTZ), \n $endTZ->copy()->timezone($systemTZ)])\n ->get();\n trace_log($events->toArray(), ($isConvertToFrontEndTimeZone? \"TRUE\":\"FALSE\"));\n // loop untuk melakukan render ke JSON nya\n $data = [];\n $i = 0;\n foreach ($events as $e) {\n $satuHari = false;\n $data[$i]['id'] = $e->id;\n $data[$i]['title'] = $e->judul;\n $data[$i]['slug'] = $e->slug;\n $theStart = Carbon::parse(\"{$e->tgl_mulai} {$e->jam_mulai}\");\n if ($e->tgl_selesai == null) {\n // satu hari\n if ($e->jam_selesai == null) {\n // satu hari?\n $theEnd = $theStart->copy();\n $satuHari = true;\n } else {\n $theEnd = $theStart->copy()->setTimeFromTimeString($e->jam_selesai);\n }\n } else {\n if ($e->jam_selesai == null) {\n $theEnd = Carbon::parse(\"{$e->tgl_selesai}\");\n } else {\n $theEnd = Carbon::parse(\"{$e->tgl_selesai} {$e->jam_selesai}\", $systemTZ);\n }\n }\n trace_log($theStart->format(\"Y-m-d H:i\"), $theEnd->format(\"Y-m-d H:i\"));\n // kalau di set satu hari, maka set pada waktu time telah dirubah timezone nya!\n if($satuHari) {\n // $theEnd->setTime(\n // 23, 59, 59\n // );\n $data[$i]['start'] = $isConvertToFrontEndTimeZone ? \n $theStart->timezone($frontEndTimeZone)->format(\"Y-m-d\") :\n $theStart->shiftTimezone($frontEndTimeZone)->format(\"Y-m-d\");\n // untuk satu hari nilai end tidak perlu ditambahkan!\n // $data[$i]['end'] = null;\n } else {\n // dapatkan, convert ke timezone si front end dan set formatnya\n $data[$i]['start'] = $isConvertToFrontEndTimeZone?\n $theStart->timezone($frontEndTimeZone)->toIso8601String():\n $theStart->shiftTimezone($frontEndTimeZone)->toIso8601String();\n if($isConvertToFrontEndTimeZone) {\n $theEnd->timezone($frontEndTimeZone);\n } else {\n $theEnd->shiftTimezone($frontEndTimeZone);\n }\n if($e->jam_selesai == null) {\n // set di sini supaya menunjukkan sampai akhir hari itu / full satu hari!\n $theEnd->endOfDay();\n }\n $data[$i]['end'] = $theEnd->toIso8601String();\n }\n trace_log($data[$i]);\n $i = $i + 1;\n }\n return $data;\n }", "function evt__1__entrada()\r\n\t{\r\n\t\t$this->pasadas_por_solapa[1]++;\r\n\t}", "function conf__pantallas_evt(toba_ei_formulario $form)\n\t{\n\t\t$datos = array();\n\t\t//Meto los eventos asociados actuales por si agregaron alguno.\n\t\tforeach ($this->s__pantalla_evt_asoc as $dep) {\n\t\t\t$datos[$dep] = array('evento' => $dep, 'asociar' => 0);\n\t\t}\n\t\t//Busco la asociacion hecha\n\t\t$busqueda = $this->get_entidad()->tabla('eventos_pantalla')->nueva_busqueda();\n\t\t$busqueda->set_padre('pantallas', $this->get_pant_actual());\n\t\t$ids = $busqueda->buscar_ids();\n\t\tforeach ($ids as $id) {\n\t\t\t$id_evt_padre = $this->get_entidad()->tabla('eventos_pantalla')->get_id_padres(array($id), 'eventos');\n\t\t\t$evt_involucrado = $this->get_entidad()->tabla('eventos')->get_fila_columna(current($id_evt_padre), 'identificador');\n\t\t\t$datos[$evt_involucrado] = array('evento' => $evt_involucrado, 'asociar' => 1);\n\t\t}\n\t\t$form->set_datos(array_values($datos));\n\t}", "function spiplistes_texte_inventaire_abos ($id_abonne, $type_abo, $nom_site_spip) {\n\t\n\t// fait l'inventaire des abos\n\t$listes_abonnements = spiplistes_abonnements_listes_auteur ($id_abonne, true);\n\t$nb = count($listes_abonnements);\n\t$message_list = \n\t\t($nb)\n\t\t? \"\\n- \" . implode(\"\\n- \", $listes_abonnements) . \".\\n\"\n\t\t: ''\n\t\t;\n\n\t$m1 = ($nb > 1) ? 'inscription_reponses_s' : 'inscription_reponse_s';\n\tif($nb > 1) {\n\t\t$m2 = _T('spiplistes:inscription_listes_f', array('f' => $type_abo));\n\t} else if($nb == 1) {\n\t\t$m2 = _T('spiplistes:inscription_liste_f', array('f' => $type_abo));\n\t} else {\n\t\t$m2 = _T('spiplistes:vous_abonne_aucune_liste');\n\t}\n\t$texte = ''\n\t\t. \"\\n\"._T('spiplistes:'.$m1, array('s' => htmlentities($nom_site_spip)))\n\t\t. \".\\n\"\n\t\t. $m2.$message_list\n\t\t;\n\treturn($texte);\n}", "public function loadprossimi()\n {\n $sql=\"SELECT * FROM \".static::getTables().\" ORDER BY data_e ;\";\n $result = parent::loadMultiple($sql);\n $eventi = array();\n if(($result!=null) && (count($eventi)<=5)){\n foreach($result as $i) {\n $datluogo = FLuogo::getInstance();\n $luogo = $datluogo->loadById($i['id_luogo']);\n $datcategoria = FCategoria::getInstance();\n $categoria = $datcategoria->loadById($i['id_categoria']);\n $evento = new EEvento_p($i['nome'], new DateTime( $i['data_e'] ) ,\n $luogo, $categoria, $i['descrizione'],$i['prezzo'],$i['posti_disponibili'],$i['posti_totali']);\n $evento->setId($i['id']);\n echo $evento->getF();\n array_push($eventi, $evento);\n }\n return $eventi;\n }\n else return null;\n }", "function agendas_evts($id_evenement, $evt_confirme)\r\n{\r\n\t////\tListe des agendas ou est affecté l'événement\r\n\tglobal $AGENDAS_AFFECTATIONS;\r\n\t$tab_agenda = array();\r\n\tforeach(db_colonne(\"SELECT id_agenda FROM gt_agenda_jointure_evenement WHERE id_evenement=\".$id_evenement.\" AND confirme='\".$evt_confirme.\"'\") as $id_agenda){\r\n\t\tif(isset($AGENDAS_AFFECTATIONS[$id_agenda])) $tab_agenda[] = $id_agenda;\r\n\t}\r\n\treturn $tab_agenda;\r\n}", "function conf_evt__seleccion($evento, $fila)\n\t{\n\t\tif (!($this->datos[$fila]['solicitudes'] > 0)) {\n\t\t\t$evento->anular();\t\n\t\t}\n\t}", "public function start()\n {\n $params = Input::all();\n $api = new ApiConsume(null,'/api/public/');\n $api->get(\"inscripcion/lista\",$params);\n\n if($api->hasError()) { return $api->getError(); }\n $lista = $api->response();\n\n // Transforma los datos a collection para realizar un mapeo\n $data = collect($lista['data']);\n\n $formatted = $data->map(function($item){\n $inscripcion = $item['inscripcion'];\n $curso = $item['curso'];\n\n $ciclo = $inscripcion['ciclo'];\n $centro = $inscripcion['centro'];\n $persona = $inscripcion['alumno']['persona'];\n\n return [\n 'documento_tipo' => $persona['documento_tipo'],\n 'inscripcion_id' => $inscripcion['id'],\n 'dni' => $persona['documento_nro'],\n 'nombres' => $persona['nombres'],\n 'apellidos' => $persona['apellidos'],\n 'nombre_completo' => $persona['nombre_completo'],\n 'sexo' => $persona['sexo'],\n 'edad' => $persona['edad'],\n 'ciclo' => $ciclo['nombre'],\n 'centro' => $centro['nombre'],\n 'nivel_servicio' => $centro['nivel_servicio'],\n 'año' => $curso['anio'],\n 'division' => $curso['division'],\n 'turno' => $curso['turno'],\n 'fecha_alta' => $inscripcion['fecha_alta'],\n 'fecha_baja' => $inscripcion['fecha_baja'],\n 'fecha_egreso' => $inscripcion['fecha_egreso'],\n 'calle_nombre' =>$persona['calle_nombre'],\n 'calle_nro' =>$persona['calle_nro'],\n 'pcia_nac' =>$persona['pcia_nac'],\n 'email' =>$persona['email'],\n 'telefono_nro' =>$persona['telefono_nro'],\n 'observaciones' =>$persona['observaciones'],\n 'fecha_nac' => $persona['fecha_nac']\n ];\n });\n\n $lista['data'] = $formatted;\n\n // Exportacion a Excel si es solicitado\n $this->exportar($formatted);\n\n return $lista;\n }", "function joueContre($adversaire, $lieu, $date) // trois argument définis pour la première fois\n{\n // contenant les infos de la rencontre\n array_push($this->rencontres, [\"adversaire\" => $adversaire, \n \"lieu\" => $lieu, \n \"date\" => $date\n\n ]); // on range les données dans le tableau rencontres, tableau de niveau 2\n\n}", "public function listTO(){\n\t\t$data['files'] = array(\n\t\t\tAPPPATH . 'modules/toback/views/v-list-to.php',\n\t\t);\n\t\t$data['judul_halaman'] = \"List Try Out\";\n\t\t$hakAkses=$this->session->userdata['HAKAKSES'];\n\t\tif ($hakAkses=='admin') {\n \t\t \t// jika admin\n\t\t\t$this->parser->parse('admin/v-index-admin', $data);\n\t\t} elseif($hakAkses=='guru'){\n\t\t\t\n\t\t\t$data['konsultasi'] = $this->mkonsultasi->get_pertanyaan_blm_direspon();\n \t\t \t// jika guru\n \t\t// notification\n\t\t\t$data['datKomen']=$this->datKomen();\n\t\t\t$id_guru = $this->session->userdata['id_guru'];\n \t\t// get jumlah komen yg belum di baca\n\t\t\t$data['count_komen']=$this->mkomen->get_count_komen_guru($id_guru);\n\n\t\t\t$this->load->view('templating/index-b-guru', $data); \n\t\t} else{\n \t\t// jika siswa redirect ke welcome\n\t\t\tredirect(site_url('welcome'));\n\t\t}\n\t}", "function salva($vls){\n//sleep(2)tempo de espera de enivio da requisição;\n$mensagens = [];\n$contem_erros = false;\nif ($vls['descri'] == '') {\n\t$contem_erros = true;\n\t$mensagens['descri'] = 'A descrição está em branco';\n}\n\nif ($vls['marca'] == '') {\n\t$contem_erros = true;\n\t$mensagens['marca'] = 'A marca está em branco';\n}\nif ($vls['modelo'] == '') {\n $erros = true;\n $mensagens['modelo'] = \"O modelo esta em branco\";\n}\nif ($vls['tipov'] == '') {\n\t$contem_erros = true;\n\t$mensagens['tipov'] = 'O tipo de veículo está em branco';\n}\n\nif ($vls['quantp'] == '') {\n\t$contem_erros = true;\n\t$mensagens['quantp'] = 'A quantidade de passageiros está em branco';\n}\nif ($vls['vlvenda'] == '') {\n $erros = true;\n $mensagens['vlvenda'] = \"O valor de venda está em branco\";\n}\nif ($vls['vlcompra'] == '') {\n\t$contem_erros = true;\n\t$mensagens['vlcompra'] = 'O valor de compra está em branco';\n}\n\nif ($vls['dtcompra'] == '') {\n\t$contem_erros = true;\n\t$mensagens['dtcompra'] = 'A data de compra está em branco';\n}\nif ($vls['estato'] == '') {\n $erros = true;\n $mensagens['estato'] = \"O status do veículo esta em branco\";\n}\n if (! $contem_erros) {//se não conter erros executara o inserir\n $id = null;\n $campos = \"`id_car`, `descricao`, `marca`, `modelo`, `tipov`, `qntpass`, `vlvenda`, `vlcompra`, `datcompra`, `estato`\";\n $sql = \"INSERT INTO `carro` ($campos) VALUES (:id, :descri, :marca, :modelo, :tipov, :quantp, :vlvenda, :vlcompra, :dtcompra, :estato)\";\n $rs = $this->db->prepare($sql);\n$rs->bindParam(':id', $id , PDO::PARAM_INT);\n$rs->bindParam(':descri', $vls['descri'] , PDO::PARAM_STR);\n$rs->bindParam(':marca', $vls['marca'] , PDO::PARAM_STR);\n$rs->bindParam(':modelo', $vls['modelo'] , PDO::PARAM_STR);\n$rs->bindParam(':tipov', $vls['tipov'] , PDO::PARAM_STR);\n$rs->bindParam(':quantp', $vls['quantp'] , PDO::PARAM_STR);\n$rs->bindParam(':vlvenda', $vls['vlvenda'] , PDO::PARAM_STR);\n$rs->bindParam(':vlcompra', $vls['vlcompra'] , PDO::PARAM_STR);\n$rs->bindParam(':dtcompra', $vls['dtcompra'] , PDO::PARAM_STR);\n$rs->bindParam(':estato', $vls['estato'] , PDO::PARAM_STR);\n\n$result = $rs->execute();\n\n\nif ($result) {\n //passando vetor em forma de json\n $mensagens['sv'] = \"salvo com sucesso!\";\n \t echo json_encode([\n \t 'mensagens' => $mensagens,\n \t 'contem_erros' => false\n \t ]);//chama a funçaõ inserir na pagina acao.php\n\n }\n }else {\n\t// temos erros a corrigir\n\techo json_encode([\n\t\t'contem_erros' => true,\n\t\t'mensagens' => $mensagens\n\t]);\n}\n}", "private function creaEvento() {\n $fevento = USingleton::getInstance('FEvento');\n $dati = $this->dati;\n $classe = $this->classe;\n \n //----------------sezione di controllo delle operazioni-----------------\n \n if ($this->operazione == 'inserimento') {\n if ($this->tabella == 'evento') {\n $id = 1 + $fevento->loadultimoevento()[0];\n }\n if ($this->tabella == 'evento_spec') {\n $id = $dati['code'];\n }\n if ($this->tabella == 'partecipazione') {\n $feventosp = USingleton::getInstance('FEventoSPecifico');\n $tipo = $feventosp->loadTipo($dati['code'])['tipo'];\n $classe = \"E\" . $tipo;\n $id = $dati['code'];\n }\n if ($this->tabella == 'biglietti') {\n $feventosp = USingleton::getInstance('FEventoSPecifico');\n $tipo = $feventosp->loadTipo($dati['code'])['tipo'];\n $classe = \"E\" . $tipo;\n $id = $dati['code'];\n }\n }\n if ($this->operazione == 'cancellazione') {\n if ($this->tabella == 'evento') {\n $feventosp = USingleton::getInstance('FEventoSPecifico');\n $tipo = $feventosp->loadTipo($dati['code'])['tipo'];\n $classe = \"E\" . $tipo;\n $id = $dati['code'];\n }\n if ($this->tabella == 'evento_spec') {\n $feventosp = USingleton::getInstance('FEventoSPecifico');\n $tipo = $feventosp->loadTipo($dati['code'])['tipo'];\n $classe = \"E\" . $tipo;\n $id = $dati['code'];\n }\n if ($this->tabella == 'partecipazione') {\n $feventosp = USingleton::getInstance('FEventoSPecifico');\n $tipo = $feventosp->loadTipo($dati['code'])['tipo'];\n $classe = \"E\" . $tipo;\n $id = $dati['code'];\n }\n }\n//---------------------------------------------------------------------------------------------------------\n\n $zona = [new EZona($dati['zona'], $dati['capacita'])];\n $luogo = new ELuogo($dati['citta'], $dati['struttura'], $zona);\n $partecipazioni = [new EPartecipazione($zona[0], $dati['prezzo'])];\n\n if ($classe == 'EPartita') {\n $eventoSpecifico = [new EPartita($luogo, $dati['data'], $partecipazioni, $dati['casa'], $dati['ospite'])];\n }\n if ($classe == 'ESpettacolo') {\n $eventoSpecifico = [new ESpettacolo($luogo, $dati['data'], $partecipazioni, $dati['compagnia'])];\n }\n if ($classe == 'EConcerto') {\n $eventoSpecifico = [new EConcerto($luogo, $dati['data'], $partecipazioni, $dati['artista'])];\n }\n\n $evento = new EEvento($id, $dati['immagine'], $dati['nome_evento'], $eventoSpecifico);\n\n return $evento;\n }", "function getEvents($date, $groupe){\n\t/*La date nous est donnée au format JJ-MM-AAAA*/\n\t$ex_date = explode('-', $date);\n\t$dateCherchee = new DateTime($ex_date[2].'-'.$ex_date[1].'-'.$ex_date[0]);\n\t\n try{\n\t\t$bdd = new PDO('mysql:host=localhost;dbname=trip_manager;charset=utf8', 'root', '');\n\t}catch (Exception $e){\n\t\tdie('Erreur : ' . $e->getMessage());\n\t}\n\t\n $eventListHTML = '';\n\n $result = $bdd->query(\"SELECT * FROM events WHERE groupe = '\".$groupe.\"' AND status = 1\");\n \n while($donnees = $result->fetch()){\n\t\tif($donnees['date'] !== ''){\n\t\t\t$ranges = explode('+', $donnees['date']);\n\t\t\tfor($i=0; $i<count($ranges); $i++){\n\t\t\t\t$dates = explode(';', $ranges[$i]);\n\t\t\t\t$date_debut = $dates[0];\n\t\t\t\t$date_fin = $dates[1];\n\t\t\t\t\n\t\t\t\t$start_date = new DateTime($date_debut);\n\t\t\t\t\n\t\t\t\t$end_date = new DateTime($date_fin);\n\t\t\t\t\n\t\t\t\tif(($start_date<=$dateCherchee) && ($end_date>= $dateCherchee)){\n\t\t\t\t\t$membre_id = str_replace(\"Disponibilité de \", \"\", $donnees['title']);\n\t\t\t\t\t\n\t\t\t\t\t$couleur = getColorS($groupe,$membre_id);\n\t\t\t\t\t\n\t\t\t\t\t$eventListHTML .= '<span class=\"color\" style=\"background-color: '.$couleur.';\"></span>';\n\t\t\t\t\tbreak 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n \n return $eventListHTML;\n}", "function evt__3__salida()\n\t{\n\t\t$this->dependencia('eventos')->limpiar_seleccion();\n\t}", "public function listEvents()\n\t{\n\n\t\t$table=CaseItemModel::getInstance()->getTable();\n $pTable=ProcessModel::getInstance()->getTable();\n $piTable=ProcessItemModel::getInstance()->getTable();\n \n\t\t$status =\"status not in ('Complete','Terminated') \";\n \n\t\t$sql=\"select 'Case Item' as source,id,null as processName, processNodeId,caseId,type,subType,label,timer,timerDue,message,signalName \"\n . \" from $table \"\n . \" where $status\"\n .\" and subType in('timer','message','signal')\";\n\t\t$arr1= $this->db->select($sql);\n\n\t\t$sql=\"select 'Process Item' as source ,p.processName as processName, pi.id as id,pi.processNodeId,null as caseId,pi.type,subType,label,timer,timerDue,message,signalName \"\n . \" from $piTable pi\n join $pTable p on p.processId=pi.processId\n where subType in('timer','message','signal')\";\n \n \n\t\t$arr2= $this->db->select($sql);\n\t\t$results= array_merge($arr1,$arr2);\n\n\t\treturn $results;\n\t}", "public function contarInventario(){\n\t}", "public function listdataTAPAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('TATA PERSURATAN');\n }", "function listarTodos2(){\n\tglobal $ruta_archivo;\n\t$array_result=array();\n\t$contenido_verificacion = file_get_contents($ruta_archivo);\n\t$lineas = explode(\"\\n\", $contenido_verificacion);\n return $lineas;\n\n\n//------USO---------\n /*\n\t$lineas_count = count($lineas);\n\n//---recorremos desde la segunda linea\n\tfor($i = 1; $i < $lineas_count; $i++) {\n\n\t\tif(empty($lineas[$i]) || $lineas[$i]==\"\"){\n\t\t\tcontinue;\n\t\t//echo $i.\"-\".$lineas[$i].\"-\";\n\t\t}\n\n\t\t$array_fila = explode('|', $lineas[$i]);\n\n\t\techo $array_fila[1].\"<br>\";\n\t\t\n\t}\n\t\n*/\n}", "public function lista(): array\n {\n return $this->eventos;\n }", "public function onDevolucion() {\n try {\n if ($this->input->post('Venta') !== '' && $this->input->post('Venta') > 0) {\n $Datos = $this->ventas_model->onCrearFolio($this->input->post('TP'));\n $vta = $this->dvm->getVentabyID($this->input->post('Venta'));\n /* GENERAR VENTA */\n $Folio = $Datos[0]->FolioTienda;\n if (empty($Folio)) {\n $Folio = 1;\n } else {\n $Folio = $Folio + 1;\n }\n $diff = $this->input->post('DiferenciaACobrar');\n $supago = str_replace(\",\", \"\", $this->input->post('SuPago'));\n $data = array(\n 'TipoDoc' => $vta[0]->TipoDoc,\n 'Tienda' => $this->session->userdata('TIENDA'),\n 'FolioTienda' => $Folio,\n 'Cliente' => $vta[0]->Cliente,\n 'Vendedor' => $this->session->userdata('ID'),\n 'FechaCreacion' => Date('d/m/Y h:i:s a'),\n 'FechaMov' => Date('d/m/Y h:i:s a'),\n 'MetodoPago' => $this->input->post('MetodoDePago'),\n 'Estatus' => 'CERRADA',\n 'Importe' => ($diff > 0) ? $diff : 0,\n 'Usuario' => $this->session->userdata('ID'),\n 'SuPago' => $supago,\n 'ImporteEnLetra' => $this->input->post('ImporteEnLetra'),\n 'Tipo' => 'D'\n );\n $ID = $this->dvm->onAgregar($data);\n print '{ \"ID\":' . $ID . '}'; /* ID REQUERIDO PARA EL TICKET */\n $data = array(\n 'Venta' => $this->input->post('Venta'),\n 'TipoDoc' => $vta[0]->TipoDoc,\n 'Tienda' => $this->session->userdata('TIENDA'),\n 'FolioTienda' => $Folio,\n 'Cliente' => $vta[0]->Cliente,\n 'Vendedor' => $this->session->userdata('ID'),\n 'FechaCreacion' => Date('d/m/Y h:i:s a'),\n 'FechaMov' => Date('d/m/Y h:i:s a'),\n 'MetodoPago' => $this->input->post('MetodoDePago'),\n 'Estatus' => 'CERRADA',\n 'Importe' => ($diff > 0) ? $diff : 0,\n 'Usuario' => $this->session->userdata('ID'),\n 'SuPago' => $this->input->post('SuPago'),\n 'ImporteEnLetra' => $this->input->post('ImporteEnLetra'),\n 'Tipo' => 'D'\n );\n $IDD = $this->dvm->onAgregarDevolucion($data);\n\n /* DETALLE DE LA VENTA DEVUELTO */\n $DetalleDevuelto = json_decode($this->input->post(\"DetalleDevuelto\"));\n foreach ($DetalleDevuelto as $key => $v) {\n /* AGREGAR LOS PRODUCTOS DEVUELTOS (SUMAR) */\n\n /* OBTENER SERIE X ESTILO */\n $serie = $this->dvm->getSerieXEstilo($v->Estilo);\n\n /* ACTUALIZA LAS EXISTENCIAS DE LA TIENDA DESTINO */\n $existencia = 0;\n for ($index = 1; $index <= 22; $index++) {\n /* CONSULTAR EXISTENCIAS DE LA TIENDA DESTINO */\n $existencias = $this->dvm->getExistenciasXTiendaXEstiloXColor($this->session->userdata('TIENDA'), $v->Estilo, $v->Color);\n /* COMPROBAR EXISTENCIAS EN LA TIENDA ORIGEN TENGA DISPONIBLES DE LA TALLA SOLICITADA */\n $existencias_disponibles = $this->dvm->getExistenciasXTiendaXEstiloXColor($this->session->userdata('TIENDA'), $v->Estilo, $v->Color);\n // print \"Talla : \" . $v->Talla . \"-\" . $v->Cantidad . \", EXDES: \" . $existencias_disponibles[0]->{\"Ex$index\"} . \"\\n\";\n if ($serie[0]->{\"T$index\"} == $v->Talla) {\n /* SUMAR LA CANTIDAD EN LA TALLA DE LA TIENDA DESTINO */\n $existencia = ($existencias[0]->{\"Ex$index\"} + $v->Cantidad);\n /* AGREGAR EXISTENCIAS DE LA TIENDA DESTINO */\n $this->dvm->onModificarExistencias($this->session->userdata('TIENDA'), $v->Estilo, $v->Color, $existencia, $index);\n $data = array(\n 'Devolucion' => $IDD,\n 'Estilo' => $v->Estilo,\n 'Color' => $v->Color,\n 'Talla' => $v->Talla,\n 'Cantidad' => $v->Cantidad,\n 'Subtotal' => $v->SubTotal,\n 'Descuento' => 0,\n 'Precio' => $v->Precio,\n 'PorcentajeDesc' => 0,\n 'Registro' => Date('d/m/Y h:i:s a')\n );\n $this->dvm->onAgregarDevolucionDetalle($data);\n }\n }/* FIN AGREGAR LOS PRODUCTOS DEVUELTOS */\n }\n\n /* DETALLE DE LA VENTA (DEVOLUCION) */\n $Detalle = json_decode($this->input->post(\"Detalle\"));\n foreach ($Detalle as $key => $v) {\n /* ENTREGAR LOS PRODUCTOS SELECCIONADOS (RESTAR) */\n /* OBTENER SERIE X ESTILO */\n $serie = $this->dvm->getSerieXEstilo($v->Estilo);\n\n /* ACTUALIZA LAS EXISTENCIAS DE LA TIENDA DESTINO */\n $existencia = 0;\n for ($index = 1; $index <= 22; $index++) {\n /* CONSULTAR EXISTENCIAS DE LA TIENDA DESTINO */\n $existencias = $this->dvm->getExistenciasXTiendaXEstiloXColor($this->session->userdata('TIENDA'), $v->Estilo, $v->Color);\n /* COMPROBAR EXISTENCIAS EN LA TIENDA ORIGEN TENGA DISPONIBLES DE LA TALLA SOLICITADA */\n $existencias_disponibles = $this->dvm->getExistenciasXTiendaXEstiloXColor($this->session->userdata('TIENDA'), $v->Estilo, $v->Color);\n\n if ($serie[0]->{\"T$index\"} > 0 && $serie[0]->{\"T$index\"} == $v->Talla && $existencias_disponibles[0]->{\"Ex$index\"} > 0) {\n /* RESTAR LA CANTIDAD EN LA TALLA DE LA TIENDA ORIGEN */\n $existencia = ($existencias_disponibles[0]->{\"Ex$index\"} - $v->Cantidad);\n /* REMOVER EXISTENCIAS DE LA TIENDA ACTUAL/ORIGEN */\n $this->dvm->onModificarExistencias($this->session->userdata('TIENDA'), $v->Estilo, $v->Color, $existencia, $index);\n /* FIN RESTAR LA CANTIDAD EN LA TALLA DE LA TIENDA ORIGEN */\n /* AGREGAR UN REGISTRO EN EL DETALLE DE LA DEVOLUCIÓN */\n $data = array(\n 'Venta' => $ID,\n 'Estilo' => $v->Estilo,\n 'Color' => $v->Color,\n 'Talla' => $v->Talla,\n 'Cantidad' => $v->Cantidad,\n 'Subtotal' => $v->SubTotal,\n 'Descuento' => 0,\n 'Precio' => $v->Precio,\n 'PorcentajeDesc' => 0\n );\n $this->dvm->onAgregarDetalle($data);\n break;\n }\n }\n /* FIN ENTREGAR LOS PRODUCTOS SELECCIONADOS */\n }\n }\n } catch (Exception $exc) {\n echo $exc->getTraceAsString();\n }\n }", "private static function obtenerEventos()\n {\n try {\n \n $consulta = \"SELECT * FROM \" . self::NOMBRE_TABLA_EVENTO . \" E JOIN \" . self::NOMBRE_TABLA_USUARIO . \" U ON U.id_usuario=E.id_usuario\";\n\n // Preparar sentencia\n $sentencia = ConexionBD::obtenerInstancia()->obtenerBD()->prepare($consulta);\n\n\n // Ejecutar sentencia preparada\n if ($sentencia->execute()) {\n http_response_code(200);\n return\n [\n \"estado\" => self::EXITO,\n \"datos\" => $sentencia->fetchAll(PDO::FETCH_ASSOC)\n ];\n } else\n throw new ExcepcionApi(self::ERROR_BDD, \"Se ha producido un error\");\n\n } catch (PDOException $e) {\n throw new ExcepcionApi(self::ERROR_BDD, $e->getMessage());\n }\n }", "public function progresoventaAction(){\r\n //$fecha= $request->get('fecha');\r\n //$empleados=$this->verificarComision(null,$fecha);\r\n return array(\r\n //'empleados' => $empleados,\r\n //'fecha' => $fecha,\r\n );\r\n }", "function showEvents($date) {\n\tglobal $privs, $evtList, $set, $xx;\n\n\t$thsM = ($set['dwStartHour'] * 60); //threshold start of day in mins\n\t$theM = ($set['dwEndHour'] * 60); //threshold end of day in mins\n\t$offset = $set['dwStartHour'] ? 2 * $set['dwTimeSlot'] : $set['dwTimeSlot']; //\"earlier\" row\n\t//hereafter: M = in nbr of mins\n\tforeach ($evtList[$date] as $eIx => $evt) {\n\t\tif ($evt['mde']) { //multi-day-event\n\t\t\tif ($evt['mde'] != 1) { $evt['sti'] = '00:00'; }\n\t\t\tif ($evt['mde'] != 3) { $evt['eti'] = '23:59'; }\n\t\t}\n\t\tif (($evt['sti'] == '' and $evt['eti'] == '') or $evt['ald']) { //all day (takes up 1 slot at the top)\n\t\t\t$st[] = 0; //start time\n\t\t\t$et[] = $set['dwTimeSlot']; //end time\n\t\t} else {\n\t\t\t$stM = substr($evt['sti'],0,2) * 60 + intval(substr($evt['sti'],3,2)); //start time\n\t\t\tif ($stM < $thsM) {\n\t\t\t\t$st[] = $set['dwTimeSlot']; //start time < threshold start of day in mins\n\t\t\t} elseif ($stM < $theM) {\n\t\t\t\t$st[] = $stM - $thsM + $offset; //start time < threshold end of day in mins\n\t\t\t} else {\n\t\t\t\t$st[] = $theM - $thsM + $offset; //start time >= threshold end of day in mins\n\t\t\t}\n\t\t\tif ($evt['eti'] == \"\" or $evt['eti'] == $evt['sti']) {\n\t\t\t\t$et[] = end($st) + $set['dwTimeSlot'];\n\t\t\t} else {\n\t\t\t\t$etM = substr($evt['eti'],0,2) * 60 + intval(substr($evt['eti'],3,2)); //end time\n\t\t\t\tif ($etM <= $thsM) {\n\t\t\t\t\t$et[] = $offset; //end time <= threshold start of day in mins\n\t\t\t\t} elseif ($etM <= $theM) {\n\t\t\t\t\t$et[] = $etM - $thsM + $offset; //end time < threshold end of day in mins\n\t\t\t\t} else {\n\t\t\t\t\t$et[] = $theM - $thsM + $offset + $set['dwTimeSlot']; //end time > threshold end of day in mins\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t//for day $date we now have :\n\t//$st: array with start time in mins for each event\n\t//$et: array with end time in mins for each event\n\t//the indexes in these arrays correspond to the indexes in $evtList\n\t$sEmpty[0][0] = 0;\n\t$eEmpty[0][0] = 1440; //24 x 60 mins\n\t$indent = 0;\n\t$column = array(); //array with column numbers of each event\n\tforeach ($st as $i => $stM) { //i: index in $evtList, stM: start time in mins\n\t\t$found = false;\n\t\tforeach ($sEmpty as $k => $v) {\n\t\t\tforeach ($v as $kk => $sEtM) {\n\t\t\t\tif ($stM >= $sEtM and $et[$i] <= $eEmpty[$k][$kk]) {\n\t\t\t\t\t$sEmpty[$k][] = $et[$i]; //end time in mins\n\t\t\t\t\t$eEmpty[$k][] = $eEmpty[$k][$kk];\n\t\t\t\t\t$eEmpty[$k][$kk] = $stM; //start in mins\n\t\t\t\t\t$sFill[$k][] = $stM;\n\t\t\t\t\t$evIx[$k][] = $i;\n\t\t\t\t\t$column[$i] = $k;\n\t\t\t\t\t$found = true;\n\t\t\t\t\tbreak 2;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!$found) {\n\t\t\t$indent++;\n\t\t\t$sEmpty[$indent][0] = 0;\n\t\t\t$eEmpty[$indent][0] = $stM;\n\t\t\t$sEmpty[$indent][1] = $et[$i];\n\t\t\t$eEmpty[$indent][1] = 1440; //24 x 60\n\t\t\t$sFill[$indent][0] = $stM;\n\t\t\t$evIx[$indent][0] = $i;\n\t\t\t$column[$i] = $indent;\n\t\t}\n\t}\n\t$cWidth = round(90 / ($indent+1),1); //width of smallest column\n\t$showDetails = ($set['details4All'] == 1 or ($set['details4All'] == 2 and $_SESSION['uid'] > 1));\n\tforeach ($sFill as $k => $v) { //1 min = 1px\n\t\t$eLeft = ($cWidth + 0.5) * $k; //event left side in %\n\t\t$eWidth = $cWidth - 0.5; //event width in %\n\t\tforeach ($v as $kk => $stM) { //event start time in mins\n\t\t\t$etM = $sEmpty[$k][$kk + 1]; //event end time in mins\n\t\t\t$eHeight = $etM - $stM; //event height in mins\n\t\t\t$stM = round($stM * $set['dwTsHeight'] / $set['dwTimeSlot']) - 1; //scale start time in px\n\t\t\t$eHeight = round($eHeight * $set['dwTsHeight'] / $set['dwTimeSlot']) - 1; //scale height in px\n\t\t\t$i = $evIx[$k][$kk];\n\t\t\t$evt = &$evtList[$date][$i];\n\t\t\t$sti = ($evt['sti']) ? ITtoDT($evt['sti']) : '';\n\t\t\t$stiPrefix = (substr($evt['sti'],0,2) < $set['dwStartHour'] or substr($evt['sti'],0,2) >= $set['dwEndHour']) ? $sti.' ' : '';\n\t\t\t$time = makeHovT($evt);\n\t\t\t$chBox = '';\n\t\t\tif ($evt['cbx']) {\n\t\t\t\t$mayCheck = ($privs > 3 or ($privs > 1 and $evt['uid'] == $_SESSION['uid'])); //boolean\n\t\t\t\t$chBox .= strpos($evt['chd'], $date) ? $evt['cmk'] : '&#x2610;';\n\t\t\t\t$cBoxAtt = $mayCheck ? \"class='chkBox floatL point' onclick=\\\"checkE(this,{$evt['eid']},'{$date}');\\\"\" : \"class='chkBox floatL arrow'\";\n\t\t\t\t$chBox = \"<span title='{$evt['clb']}' {$cBoxAtt}>{$chBox}</span>\";\n\t\t\t}\n\t\t\tif ($set['popBoxWkDay'] and $set['evtTemplPop']) {\n\t\t\t\t$popText = \"<b>{$time} {$evt['tix']}</b><br>\";\n\t\t\t\tif ($showDetails or $evt['mayE']) {\n\t\t\t\t\t$popText .= makeE($evt,$set['evtTemplPop'],'br','<br>');\n\t\t\t\t}\n\t\t\t\t$popText = htmlspecialchars(addslashes($popText));\n\t\t\t\t$popClass = ($evt['pri'] ? 'private' : 'normal').(($evt['mde'] or $evt['r_t']) ? ' repeat' : '');\n\t\t\t\t$popAttr = \" onmouseover=\\\"pop(this,'{$popText}','{$popClass}')\\\"\";\n\t\t\t} else {\n\t\t\t\t$popAttr = '';\n\t\t\t}\n\t\t\tif ($set['eventColor']) { //use event color\n\t\t\t\t$eStyle = ($evt['cco'] ? \"color:{$evt['cco']};\" : '').' background-color:'.($evt['cbg'] ? $evt['cbg'] : '#FFFFFF').';';\n\t\t\t} else { //use user color\n\t\t\t\t$eStyle = ' background-color:'.($evt['uco'] ? $evt['uco'] : '#FFFFFF').';';\n\t\t\t}\n\t\t\tif ($evt['app'] and !$evt['apd']) { $eStyle .= 'border-left:2px solid #ff0000;'; }\n\t\t\t$class = $eHeight < 21 ? 'dwEventNw' : 'dwEvent';\n\t\t\t// enlarge box if possible \n\t\t\t// 1. find next column of overlapping event starting before\n\t\t\t$ovlColumn = $indent+1; \n\t\t\tfor ($iTest=0;$iTest<$i;$iTest++) {\n\t\t\t\t$evtBefore = &$evtList[$date][$iTest];\n\t\t\t\tif ($evtBefore['eti'] > $evt['sti'] && $column[$iTest] > $column[$i] && $column[$iTest] < $ovlColumn) {\n\t\t\t\t\t$ovlColumn = $column[$iTest];\n\t\t\t\t}\n\t\t\t}\n\t\t\t// 2. find next column of overlapping event starting later\n\t\t\tfor ($iTest=$i+1;$iTest<count($st);$iTest++) {\n\t\t\t\t$evtAfter = &$evtList[$date][$iTest];\n\t\t\t\tif ($evtAfter['sti'] < $evt['eti'] && $column[$iTest] > $column[$i] && $column[$iTest] < $ovlColumn) {\n\t\t\t\t\t$ovlColumn = $column[$iTest];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$eWidthAdjusted = ($ovlColumn-$k) * $cWidth - 0.5;\n//\t\t\techo \"<div class='evtBox' style='top:{$stM}px; left:{$eLeft}%; height:{$eHeight}px; width:{$eWidth}%;{$eStyle}'>\\n\";\n\t\t\techo \"<div class='evtBox' style='top:{$stM}px; left:{$eLeft}%; height:{$eHeight}px; width:{$eWidthAdjusted}%;{$eStyle}'>\\n\";\n\n\t\t\tif (!$_SESSION['mobile']) {\n\t\t\t\techo \"<div class='{$class}'>{$chBox}\".(($showDetails or $evt['mayE']) ? \"<span class='point' onclick=\\\"editE({$evt['eid']},'{$date}');\\\"\" : \"<span class='arrow'\").\"{$popAttr}>{$stiPrefix}{$evt['tix']}</span></div></div>\\n\";\n\t\t\t} else {\n\t\t\t\techo \"<div class='{$class}'>{$chBox}\".(($showDetails or $evt['mayE']) ? \"<span class='point' \" : \"<span class='arrow'\").\"{$popAttr}>{$stiPrefix}{$evt['tix']}</span></div></div>\\n\";\n\t\t\t}\n\t\t}\n\t}\n}", "public function actionIndex()\n {\n if(\\Yii::$app->user->can('verMarcacaoConsulta')) {\n $tempVariable = Medicos::dataByUser(Yii::$app->user->id);\n $times = MarcacaoConsulta::dataByUserBack($tempVariable['id']);\n\n $events = [];\n foreach ($times as $time) {\n\n $temp = Especialidade::dataByEspecialidade($time['id_especialidade']);\n\n\n $Event = new Event();\n $Event->id = $time['id'];\n $Event->backgroundColor = $this->chooseColor($time['status']);\n $Event->title = $temp['tipo'];\n $Event->start = date(($time['date']));\n $Event->url = 'index.php?r=marcacao-consulta/view&id=' . $time['id'];\n $events[] = $Event;\n\n }\n\n return $this->render('index', [\n 'events' => $events,\n ]);\n }\n }", "public function listarEventoDocente() {\n $login = $_SESSION['login'];\n $busca = array();\n $cont = 0;\n try {\n parent::setCampos('idEvento, idSala');\n parent::setTabela('evento');\n parent::setValorPesquisa('idDocente = (:idDocente) ORDER BY idEvento DESC');\n $selecionaMaisCampos0 = parent::selecionaMaisCampos();\n $selecionaMaisCampos0 ->bindParam(':idDocente', $login->idUser, PDO::PARAM_INT);\n $selecionaMaisCampos0 ->execute();\n\n parent::setTabela('utilizador, evento, sala');\n parent::setValorPesquisa('utilizador.idUser=(:idUser) AND evento.idSala=(:idSala) AND sala.idSala =(:idSala) ORDER BY idEvento DESC');\n $selecionaTudo_ComCondicao = parent::selecionaTudo_ComCondicao();\n\n while ($item = $selecionaMaisCampos0 ->fetch(PDO::FETCH_OBJ)) {\n\n $selecionaTudo_ComCondicao->bindParam(':idUser', $login->idUser, PDO::PARAM_INT);\n $selecionaTudo_ComCondicao->bindParam(':idSala', $item->idSala, PDO::PARAM_INT);\n $selecionaTudo_ComCondicao->bindParam(':idSala', $item->idSala, PDO::PARAM_INT);\n $selecionaTudo_ComCondicao->execute();\n\n $cont +=1;\n $busca[$cont] = $selecionaTudo_ComCondicao->fetch(PDO::FETCH_OBJ);\n\n }\n\n $selecionaTudo_ComCondicao = NULL;\n $selecionaMaisCampos0 = NULL;\n } catch (Exception $exc) {\n\n return $exc->getMessage();\n }\n\n return $busca;\n }", "public function send_events()\n {\n }", "function insert_events( $events ){\n\t// Informationen zu den Events holen\n\t$results = eventoni_fetch('',false,$events);\n\n\t// Falls keine Informationen zu Events gefunden, aus Methode rausspringen\n\tif( $results['total'] <= 0 )\n\t{\n\t\treturn;\n\t}\n\n\t// HTML Code erstellen\n\t$result = '';\n\t$result.= '<div class=\"events-container\">';\n\t$result.= '<img src=\"'.get_bloginfo('wpurl').'/wp-content/plugins/eventoni-events/img/logo.png\" />';\n\n\t// Jedes Event durchlaufen\n\tforeach($results['xml'] as $event)\n\t{\n\t\t// Berechnung der Zeitangabe und Tageszeit als Wort\n\t\t$datetime = strtotime($event->start_date.' '.$event->start_time);\n\t\t$hours = getdate($datetime);\n\t\t$hour = $hours['hours'];\n\t\t$tageszeit = '';\n\t\tif( $hour < 6 ){\n\t\t\t$tageszeit = 'nachts';\n\t\t} else if( $hour < 12 ){\n\t\t\t$tageszeit = 'morgens';\n\t\t} else if( $hour < 14 ){\n\t\t\t$tageszeit = 'mittags';\n\t\t} else if( $hour < 18 ){\n\t\t\t$tageszeit = 'nachmittags';\n\t\t} else if( $hour < 22 ){\n\t\t\t$tageszeit = 'abends';\n\t\t} else {\n\t\t\t$tageszeit = 'nachts';\n\t\t}\n\t\t$result.= ' <div class=\"event-item\">';\n\t\t$result.= '<a class=\"event-item-link\" href=\"'.$event->permalink.'\">';\n\n\t\t// Falls kein Vorschaubild vorhanden, nehme Standardbild\n\t\tif(isset($event->media_list->media->thumbnail_url)) {\n\t\t\t$result.= '<img width=\"60px\" height\"60px\" align=\"left\" src=\"'.$event->media_list->media->thumbnail_url.'\"/>';\n\t\t} else {\n\t\t\t$result.= '<img width=\"60px\" height\"60px\" align=\"left\" src=\"http://static.eventoni.com/images/image-blank.png\"/>';\n\t\t}\n\t\t$result.= '</a>';\n\t\t$result.= '\t <div class=\"event-item-content\">';\n\t\t$result.= '\t\t<div class=\"event-item-content-date\">'.date( \"d.m.Y\", $datetime ).', '.date( \"H:i \\U\\h\\\\r\", $datetime ).'</div>';\n\t\t$result.= '\t\t<div class=\"event-item-content-city\"><img src=\"'.get_bloginfo('wpurl').'/wp-content/plugins/eventoni-events/img/my_location.png\"/> '.$event->location->city.'</div>';\n\t\t$result.= '\t </div>';\n\t\t$result.= '\t <div class=\"event-item-content-name\"><b><a class=\"event-item-link\" href=\"'.$event->permalink.'\">'.$event->title.'</a></b></div>';\n\t\t$result.= '<div style=\"float:right\"><a class=\"facebook_link\" href=\"http://www.facebook.com/sharer.php?u='.$event->permalink.'&t=Dieses Event musst Du gesehen haben: \" target=\"_blank\"><img src=\"'.get_bloginfo('wpurl').'/wp-content/plugins/eventoni-events/img/facebook.png\" /></a></div>';\n\t\t$result.= '<div style=\"float:right\"><a class=\"twitter_link\" href=\"http://twitter.com/home?status=Dieses Event musst Du gesehen haben: '.$event->permalink.'\" target=\"_blank\"><img src=\"'.get_bloginfo('wpurl').'/wp-content/plugins/eventoni-events/img/twitter.png\" /></a></div>';\n\t\t$result.= ' </div>';\n\n\t}\n\t$result.= '</div>';\n\n\t// HTML code zurückgeben\n\treturn $result;\n}", "public function getTimeEventsList(){\n return $this->_get(8);\n }", "function eventclass_offeraride()\n\t{\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\n//\tonscreen events\n\n\t}", "function processEvent($from, $till, $eStart, $eEnd, &$row) {\n\tglobal $evtList, $privs, $ucats, $set;\n\t\n\t$sTs = mktime(12,0,0,substr($from,5,2),substr($from,8,2),substr($from,0,4));\n\t$eTs = mktime(14,0,0,substr($till,5,2),substr($till,8,2),substr($till,0,4));\n\tfor($i=$sTs;$i<=$eTs;$i+=86400) { //increment 1 day\n\t\t$evt = array();\n\t\t$curD = date('Y-m-d', $i);\n\t\tif (strpos($row['xda'], $curD) === false) { //no exceptions\n\t\t\t$curdm = substr($curD,5);\n\t\t\tif ($row['eda'][0] != '9' and $row['sda'] < $row['eda']) { //multi-day event; mde -> 1:first, 2:in between ,3:last day\n\t\t\t\t$evt['mde'] = ($curdm == substr($eStart,5)) ? 1 : (($curdm == substr($eEnd,5)) ? 3 : 2);\n\t\t\t} else { //single day event\n\t\t\t\t$evt['mde'] = 0;\n\t\t\t}\n\t\t\t$evt['sda'] = $row['sda'];\n\t\t\t$evt['eda'] = $row['eda'];\n\t\t\tif (($row['sti'] == '00:00') and ($row['eti'] == '23:59')) {\n\t\t\t\t$evt['ald'] = true;\n\t\t\t\t$evt['sti'] = $evt['eti'] = ''; //all day: start/end time = ''\n\t\t\t} else {\n\t\t\t\t$evt['ald'] = false;\n\t\t\t\t$evt['sti'] = $row['sti'];\n\t\t\t\t$evt['eti'] = $row['eti'][0] != '9' ? $row['eti'] : ''; //no end time = ''\n\t\t\t}\n\t\t\t$evt['r_t'] = $row['r_t'];\n\t\t\t$evt['r_i'] = $row['r_i'];\n\t\t\t$evt['r_p'] = $row['r_p'];\n\t\t\t$evt['r_m'] = $row['r_m'];\n\t\t\t$evt['r_u'] = $row['r_u'];\n\t\t\t$evt['rem'] = $row['rem'];\n\t\t\t$evt['rml'] = $row['rml'];\n\t\t\t$evt['adt'] = ($row['adt'][0] != '9') ? $row['adt'] : '';\n\t\t\t$evt['mdt'] = ($row['mdt'][0] != '9') ? $row['mdt'] : '';\n\t\t\t$evt['eid'] = $row['eid'];\n\t\t\t$evt['typ'] = $row['typ'];\n\t\t\t$evt['tit'] = $row['tit'];\n\t\t\t$evt['cid'] = $row['cid'];\n\t\t\t$evt['ven'] = $row['ven'];\n\t\t\t$evt['des'] = $row['des'];\n\t\t\t$evt['xf1'] = $row['xf1'];\n\t\t\t$evt['xf2'] = $row['xf2'];\n\t\t\t$evt['att'] = $row['att'];\n\t\t\t$evt['uid'] = $row['uid'];\n\t\t\t$evt['edr'] = $row['edr'];\n\t\t\t$evt['apd'] = $row['apd'];\n\t\t\t$evt['pri'] = $row['pri'];\n\t\t\t$evt['chd'] = $row['chd'];\n\t\t\t$evt['cnm'] = $row['cnm'];\n\t\t\t$evt['app'] = $row['app'];\n\t\t\t$evt['seq'] = str_pad($row['seq'],2,\"0\",STR_PAD_LEFT);\n\t\t\t$evt['uco'] = $row['uco'];\n\t\t\t$evt['dbg'] = $row['dbg'];\n\t\t\t$evt['cco'] = $row['cco'];\n\t\t\t$evt['cbg'] = $row['cbg'];\n\t\t\t$evt['cbx'] = $row['cbx'];\n\t\t\t$evt['clb'] = $row['clb'];\n\t\t\t$evt['cmk'] = $row['cmk'];\n\t\t\t$evt['una'] = $row['una'];\n\t\t\t$evt['tix'] = $set['ownerTitle'] ? \"{$evt['una']}: {$evt['tit']}\" : $evt['tit'];\n\t\t\t$evt['mayE'] = (($ucats == '0' or strpos($ucats,strval($evt['cid'])) !== false) and ($privs > 2 or ($privs == 2 and $row['uid'] == $_SESSION['uid']))); //edit rights\n\t\t\t$evtList[$curD][] = $evt;\n\t\t}\n\t}\n}", "public function run()\n {\n $events = [\n [\n 'title' => 'Reuniao 01',\n 'start' => '2021-07-01',\n 'end' => '2021-07-03',\n ],\n [\n 'title' => 'Reuniao 02',\n 'start' => '2021-07-07',\n 'end' => '2021-07-010',\n ]\n ];\n }", "public function etatListerTous()\n\t{\n\t\t// votre code ici\n\t\treturn Gestion::lister(\"Etat\");//type array\n\t}", "static function listaStilova(){\n\t\t$stilovi=\"\";\n\t\treturn $stilovi;\n\t}", "function listarTramitesAjustables(){\n\t\t$this->procedimiento='pre.ft_partida_ejecucion_sel';\n\t\t$this->transaccion='PRE_LISTRAPE_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\n\t\t$this->setParametro('fecha_ajuste','fecha_ajuste','date');\n\t\t$this->captura('id_gestion','int4');\n $this->captura('nro_tramite','varchar');\n $this->captura('codigo','varchar');\n\t\t$this->captura('id_moneda','int4');\n\t\t$this->captura('desc_moneda','varchar');\n\t\t\n\t\t\n\t\t//Ejecuta la instruccion\n\t\t$this->armarConsulta();\n\t\t$this->ejecutarConsulta();\n\t\t\n\t\t//Devuelve la respuesta\n\t\treturn $this->respuesta;\n\t}", "function listEventInfo() {\n\t\t$query = \"SELECT e_description, c_name, tag_name, start_datetime, end_datetime, capacity, v.name AS vname, address,o.name AS oname, v.address, v.city, v.state, v.postal_code \n\t\tFROM yam14.F_event e, yam14.F_venue v, yam14.F_category c, yam14.F_topic t, yam14.F_organizer o\n\t\tWHERE e.venue_id = v.v_id \n\t\tAND c.c_id = e.c_id \n\t\tAND t.tag_id = e.tag_id \n\t\tAND o.o_id = e.organizer_id\n\t\tAND e.e_id = $this->eid ;\";\n\t\t\n\t\t$result = mysql_query($query);\n\t\tif (!$result) {\n\t\t\t$message='Invalid Query' .mysql_errno().\" \\n\";\n\t\t $message .= 'Whole Query' . $query;\n\t\t die($message);\n\t\t}//end if\n\t\t\n\t\twhile($row = mysql_fetch_assoc($result)){\n\t\t\t$this->category = $row['c_name'];\n\t\t\t$this->tag = $row['tag_name'];\n\t\t\t$this->description = $row['e_description'];\n\t\t\t$this->startdate = date('l, M d, Y',strtotime($row['start_datetime']));\n\t\t\t$this->starttime = date('H:i A',strtotime($row['start_datetime']));\n\t\t\t$this->enddate = date('l, M d, Y',strtotime($row['end_datetime']));\n\t\t\t$this->endtime =date('H:i A',strtotime($row['end_datetime']));\n\t\t\t$this->capacity = $row['capacity'];\n\t\t\t$this->venue = $row['vname'];\n\t\t\t$this->address = $row['address'] . \", \" . $row['city'] . \", \" . $row['state'] . \" \" . $row['postal_code'];\n\t\t\t$this->organizer = $row['oname'];\n\t\t\techo \"<hr />\";\n\t\t\techo \"<div class=\\\"panel panel-default\\\">\";\n\t\t\techo \t\"<div class=\\\"panel-heading\\\">\";\n\t\t\techo \t\"<h3 class=\\\"panel-title\\\">Event Information</h3>\";\n\t\t\techo \t\"</div>\";\n\t\t\techo \t\"<div class=\\\"panel-body\\\">\";\n\t\t\techo \"<p><b>Description: </b>$this->description</p>\";\n\t\t\techo \t\"<p><b>Category: </b>$this->category</p>\";\n\t\t\techo \t\"<p><b>Topic: </b>$this->tag</p>\";\n\t\t\techo \t\"<p><b>Start Date: </b>$this->startdate</p>\";\n\t\t\techo \t\"<p><b>Start Time: </b>$this->starttime</p>\";\n\t\t\techo \t\"<p><b>End Date: </b>$this->enddate</p>\";\n\t\t\techo \t\"<p><b>End Time: </b>$this->endtime</p>\";\n\t\t\techo \t\"<p><b>Capacity: </b>$this->capacity</p>\";\n\t\t\techo \t\"<p><b>Organizer: </b>$this->organizer</p>\";\n\t\t\techo \t\"<p><b>Location: </b>$this->venue</p>\";\n\t\t\techo \t\"<p><b>Address: </b>$this->address</p>\";\n\t\t\t\n\t\t\techo \t\"</div>\";\n\t\t\techo \t\"</div>\";\n\t\t\t\t\n\t\t\t\n\t\t\t\t\t\t\n\t\t}\t\n\t\t\n\t\tmysql_free_result($result);\n\t}", "function get_car_trips_gps($vin, $ts_start, $ts_end)\n{\n global $cars_dt;\n \n // Lecture des trajets\n // -------------------\n // ouverture du fichier de log: trajets\n $fn_car = dirname(__FILE__).CARS_FILES_DIR.$vin.'/trips.log';\n $fcar = fopen($fn_car, \"r\");\n\n // lecture des donnees\n $line = 0;\n $cars_dt[\"trips\"] = [];\n $first_ts = time();\n $last_ts = 0;\n if ($fcar) {\n while (($buffer = fgets($fcar, 4096)) !== false) {\n // extrait les timestamps debut et fin du trajet\n list($tr_tss, $tr_tse, $tr_ds, $tr_batt) = explode(\",\", $buffer);\n $tsi_s = intval($tr_tss);\n $tsi_e = intval($tr_tse);\n // selectionne les trajets selon leur date depart&arrive\n if (($tsi_s>=$ts_start) && ($tsi_s<=$ts_end)) {\n $cars_dt[\"trips\"][$line] = $buffer;\n $line = $line + 1;\n // Recherche des ts mini et maxi pour les trajets retenus\n if ($tsi_s<$first_ts)\n $first_ts = $tsi_s;\n if ($tsi_e>$last_ts)\n $last_ts = $tsi_e;\n }\n }\n }\n fclose($fcar);\n\n // Lecture des points GPS pour ces trajets\n // ---------------------------------------\n // ouverture du fichier de log: points GPS\n $fn_car = dirname(__FILE__).CARS_FILES_DIR.$vin.'/gps.log';\n $fcar = fopen($fn_car, \"r\");\n\n // lecture des donnees\n $line = 0;\n $cars_dt[\"gps\"] = [];\n if ($fcar) {\n while (($buffer = fgets($fcar, 4096)) !== false) {\n // extrait les timestamps debut et fin du trajet\n list($pts_ts, $pts_lat, $pts_lon, $pts_head, $pts_batt, $pts_mlg, $pts_moving) = explode(\",\", $buffer);\n $pts_tsi = intval($pts_ts);\n // selectionne les trajets selon leur date depart&arrive\n if (($pts_tsi>=$first_ts) && ($pts_tsi<=$last_ts)) {\n $cars_dt[\"gps\"][$line] = $buffer;\n $line = $line + 1;\n }\n }\n }\n fclose($fcar);\n // Ajoute les coordonnées du domicile pour utilisation par javascript\n $latitute=config::byKey(\"info::latitude\");\n $longitude=config::byKey(\"info::longitude\");\n $cars_dt[\"home\"] = $latitute.\",\".$longitude;\n\n //log::add('peugeotcars', 'debug', 'Ajax:get_car_trips:nb_lines'.$line);\n return;\n}", "public function getPunto_venta()\r\n {\r\n $criteria= new CDbCriteria();\r\n $criteria->condition='activo=0'; //Cargo de preventista\r\n //$criteria->condition='t.id not in (SELECT empleado_id FROM tbl_user WHERE 1 )';\r\n \r\n $lista= $this->model()->findAll($criteria); \r\n $resultados = array();\r\n foreach ($lista as $list){\r\n $resultados[] = array(\r\n 'id'=>$list->id,\r\n 'text'=> $list->punto_venta .' ('.$this->_tipo[$list->tipo].')' \r\n ); \r\n \r\n }\r\n return $resultados;\r\n }", "public function crearEvento()\n {\n $listaSeccion = Seccion::where('activo', 'A')->pluck('nombre', 'id');\n $listaSedes = Sede::where('activo', 'A')->pluck('nombre', 'id');\n //Formulario de Creación\n return view('frontend.eventos.nuevo')\n ->with('lista_secciones', $listaSeccion)\n ->with('lista_sedes', $listaSedes);\n }", "function mostraPagina()\n\t\t{\n\t\t$this->aggiungiElemento(\"Scheda argomento\", \"titolo\");\n\t\t$this->aggiungiElemento($this->modulo);\n\t\t$this->mostra();\n\t\t\t\n\t\t}", "public function news_and_events(){\n\n\t\t$this->data['nae'] = $this->file_maintenance_model->newsAndEventsList();\n\n\t\t$this->load->view('app/administrator/file_maintenance/news_and_events',$this->data);\n\n\t}", "public function actionIndexMahasiswa()\n {\n $events = IzinRuangan::find()->all();\n\n $task = [];\n foreach ($events as $eve) {\n if ($eve->status_request_id == 2) {\n $event = new \\yii2fullcalendar\\models\\Event();\n $event->id = $eve->izin_ruangan_id;\n $event->title = $eve->lokasi['name'].' - '.$eve->desc;\n $event->url = '/cis-lite/backend/web/index.php/askm/izin-ruangan/izin-by-mahasiswa-view?id='.$eve->izin_ruangan_id.'';\n $event->start = $eve->rencana_mulai;\n $event->end = $eve->rencana_berakhir;\n $task[] = $event;\n }\n }\n\n return $this->render('IndexMahasiswa', [\n 'events' => $task,\n ]);\n }", "function evt__pantallas_evt__modificacion($datos)\n\t{\n\t\t$busqueda = $this->get_entidad()->tabla('eventos_pantalla')->nueva_busqueda();\n\t\t$busqueda->set_padre('pantallas', $this->get_pant_actual());\n\t\t$ids = $busqueda->buscar_ids();\n\t\tforeach ($ids as $id) {\n\t\t\t$evt_involucrado = $this->get_entidad()->tabla('eventos_pantalla')->eliminar_fila($id);\n\t\t}\n\n\t\t//Ahora meto las filas nuevas\n\t\t$this->get_entidad()->tabla('pantallas')->set_cursor($this->get_pant_actual());\n\t\tforeach ($datos as $evt) {\n\t\t\tif ($evt['asociar'] == '1') {\n\t\t\t\t$id_ev = $this->get_entidad()->tabla('eventos')->get_id_fila_condicion(array('identificador' => $evt['evento']));\n\t\t\t\t$this->get_entidad()->tabla('eventos')->set_cursor(current($id_ev));\n\t\t\t\t$this->get_entidad()->tabla('eventos_pantalla')->nueva_fila(array('identificador' => $evt['evento']));\n\t\t\t}\n\t\t}\n\t\t$this->get_entidad()->tabla('eventos')->resetear_cursor();\n\t}", "public function getPunto_venta_almacen()\r\n {\r\n $criteria= new CDbCriteria();\r\n $criteria->condition='activo=0 and t.id not in (SELECT punto_venta_id FROM tbl_almacen WHERE 1 )';\r\n \r\n $lista= $this->model()->findAll($criteria); \r\n $resultados = array();\r\n foreach ($lista as $list){\r\n $resultados[] = array(\r\n 'id'=>$list->id,\r\n 'text'=> $list->punto_venta .' ('.$this->_tipo[$list->tipo].')' \r\n ); \r\n \r\n }\r\n return $resultados;\r\n }", "function jornadas_entity_insert($entity, $type) {\n if($type=='data_jornadas'){\n if (!isset($entity->production_time )) return ;\n foreach ($entity->production_time as $lid => $element) {\n foreach ($element as $fid => $time) {\n db_insert('jormada_tiempo_produccion')->fields(array('jid'=>$entity,'lid'=>$lid,'fid'=>$fid,'time'=>$time))->execute();\n }\n }\n }\n \n\n}", "function autorizar_venta_directa($id_movimiento_material) {\r\n global $_ses_user,$db; \r\n\r\n \r\n $titulo_pagina = \"Movimiento de Material\";\r\n $fecha_hoy = date(\"Y-m-d H:i:s\",mktime());\r\n \r\n \r\n $sql = \"select deposito_origen from movimiento_material \r\n where id_movimiento_material = $id_movimiento_material\";\r\n $res = sql($sql) or fin_pagina();\r\n $deposito_origen = $res->fields[\"deposito_origen\"];\r\n \r\n \r\n $sql = \"select id_factura from movimiento_factura where id_movimiento_material = $id_movimiento_material\";\r\n $fact = sql($sql) or fin_pagina(); \r\n $id_factura = $fact->fields[\"id_factura\"];\r\n \r\n $sql = \" select id_detalle_movimiento,cantidad,id_prod_esp from detalle_movimiento \r\n where id_movimiento_material = $id_movimiento_material\";\r\n $detalle_mov = sql($sql) or fin_pagina();\r\n \r\n for($i=0; $i < $detalle_mov->recordcount(); $i++) { \t \r\n \t\r\n \t $id_detalle_movimiento = $detalle_mov->fields[\"id_detalle_movimiento\"];\t\r\n \t $cantidad = $detalle_mov->fields[\"cantidad\"];\r\n \t $id_prod_esp = $detalle_mov->fields[\"id_prod_esp\"];\r\n $sql = \"select id_recibidos_mov,cantidad\r\n from recibidos_mov where id_detalle_movimiento=$id_detalle_movimiento \r\n and ent_rec=0\";\r\n $detalle_rec = sql($sql) or fin_pagina();\r\n $id_recibido_mov = $detalle_rec->fields[\"id_recibidos_mov\"];\r\n\r\n if($id_recibido_mov==\"\") {\r\n\t \t //insert\r\n\t\t $sql = \"select nextval('recibidos_mov_id_recibidos_mov_seq') as id_recibido_mov\";\r\n\t\t $res_1 = sql($sql) or fin_pagina();\r\n\t\t $id_recibido_mov = $res_1->fields[\"id_recibido_mov\"];\r\n\t\t $sql=\"insert into recibidos_mov(id_recibidos_mov,id_detalle_movimiento,cantidad,ent_rec)\r\n\t\t values($id_recibido_mov,$id_detalle_movimiento,$cantidad,0)\";\r\n }else {\r\n\t //update\r\n\t $sql=\"update recibidos_mov set cantidad=cantidad+$cantidad\r\n\t where id_recibidos_mov=$id_recibido_mov\";\r\n }//del else\r\n sql($sql) or fin_pagina();\r\n $sql =\"insert into log_recibidos_mov(id_recibidos_mov,usuario,fecha,cantidad_recibida,tipo)\r\n values($id_recibido_mov,'\".$_ses_user[\"name\"].\"','$fecha_hoy',$cantidad,'entrega')\";\r\n sql($sql) or fin_pagina();\r\n //eliminamos las reservas hechas para este movimiento\r\n $comentario_stock=\"Utilización de los productos reservados por el $titulo_pagina Nº $id_movimiento\";\r\n $id_tipo_movimiento=7;\r\n \r\n \r\n //tengo que eliminar del stock los productos correspondientes \r\n descontar_reserva($id_prod_esp,$cantidad,$deposito_origen,$comentario_stock,$id_tipo_movimiento,$id_fila=\"\",$id_detalle_movimiento);\r\n //pongo las banderas de la factura en cuenta asi se produce\r\n //el movimiento correcto en el balance\r\n $detalle_mov->movenext(); \r\n }//del for \r\n \r\n if ($id_factura) {\r\n \r\n $sql = \"update licitaciones.cobranzas \r\n set renglones_entregados=1, licitacion_entregada=1\r\n where cobranzas.id_factura=$id_factura\";\r\n sql($sql) or fin_pagina();\r\n } \r\n \r\n \r\n \r\n\r\n}", "public function onGenerate()\n {\n try\n {\n $this->onSearch();\n // open a transaction with database 'eventtus'\n TTransaction::open(self::$database);\n $param = [];\n // creates a repository for AvaliacaoEvento\n $repository = new TRepository(self::$activeRecord);\n // creates a criteria\n $criteria = new TCriteria;\n\n if ($filters = TSession::getValue(__CLASS__.'_filters'))\n {\n foreach ($filters as $filter) \n {\n $criteria->add($filter); \n }\n }\n\n // load the objects according to criteria\n $objects = $repository->load($criteria, FALSE);\n\n if ($objects)\n {\n\n $dataTotals = [];\n $groups = [];\n $data = [];\n foreach ($objects as $obj)\n {\n $group1 = $obj->estrelas;\n\n $groups[$group1] = true;\n $numericField = $obj->estrelas;\n\n $dataTotals[$group1]['count'] = isset($dataTotals[$group1]['count']) ? $dataTotals[$group1]['count'] + 1 : 1;\n $dataTotals[$group1]['sum'] = isset($dataTotals[$group1]['sum']) ? $dataTotals[$group1]['sum'] + $numericField : $numericField;\n\n }\n\n ksort($dataTotals);\n ksort($groups);\n\n $groups = ['x'=>true]+$groups;\n\n foreach ($dataTotals as $group1 => $totals) \n { \n\n array_push($data, [$group1, $totals['sum']/$totals['count']]);\n }\n\n $chart = new THtmlRenderer('app/resources/c3_pizza_chart.html');\n $chart->enableSection('main', [\n 'data'=> json_encode($data),\n 'height' => 500,\n 'precision' => 0,\n 'decimalSeparator' => ',',\n 'thousandSeparator' => '.',\n 'prefix' => '',\n 'sufix' => ' Estrela',\n 'width' => 100,\n 'widthType' => '%',\n 'title' => 'Média',\n 'showLegend' => 'false',\n 'showPercentage' => 'false',\n 'barDirection' => 'false'\n ]);\n\n parent::add($chart);\n }\n else\n {\n new TMessage('error', _t('No records found'));\n }\n\n // close the transaction\n TTransaction::close();\n }\n catch (Exception $e) // in case of exception\n {\n // shows the exception error message\n new TMessage('error', $e->getMessage());\n // undo all pending operations\n TTransaction::rollback();\n }\n }", "function txt_affections_evt($evt_tmp)\r\n{\r\n\tif($_SESSION[\"user\"][\"id_utilisateur\"] > 0)\r\n\t{\r\n\t\t////\tInitialisation\r\n\t\tglobal $trad, $AGENDAS_AFFECTATIONS;\r\n\t\t$txt_confirme = $txt_pas_confirme = \"\";\r\n\t\t////\tAgendas confirmés (+ \"d'autres agendas non visibles\" ?)\r\n\t\t$agendas_confirmes = agendas_evts($evt_tmp[\"id_evenement\"],\"1\");\r\n\t\tif(count($agendas_confirmes)>0){\r\n\t\t\tforeach($agendas_confirmes as $id_agenda)\t{ $txt_confirme .= $AGENDAS_AFFECTATIONS[$id_agenda][\"titre\"].\", \"; }\r\n\t\t\t$txt_confirme = \"<div>\".$trad[\"AGENDA_affectations_evt\"].\"<br />\".substr($txt_confirme,0,-2).\"</div>\";\r\n\t\t\tif(count($agendas_confirmes) < db_valeur(\"select count(*) from gt_agenda_jointure_evenement where id_evenement=\".$evt_tmp[\"id_evenement\"].\" and confirme='1'\"))\t\t$txt_confirme .= $trad[\"AGENDA_affectations_evt_autres\"];\r\n\t\t}\r\n\t\t////\tAgendas pas encore confirmés\r\n\t\t$agendas_pas_confirmes = agendas_evts($evt_tmp[\"id_evenement\"],\"0\");\r\n\t\tif(count($agendas_pas_confirmes)>0){\r\n\t\t\tforeach($agendas_pas_confirmes as $id_agenda)\t{ $txt_pas_confirme .= $AGENDAS_AFFECTATIONS[$id_agenda][\"titre\"].\", \"; }\r\n\t\t\t$txt_pas_confirme = \"<hr /><div> \".$trad[\"AGENDA_affectations_evt_non_confirme\"].\"<br />\".substr($txt_pas_confirme,0,-2).\"</div>\";\r\n\t\t}\r\n\t\t////\tRetourne le résultat\r\n\t\treturn $txt_confirme.$txt_pas_confirme;\r\n\t}\r\n}", "function set_pantallas_evento($pant_presentes, $evento)\n\t{\n\t\t$pant_disponibles = $this->get_entidad()->tabla('pantallas')->get_id_filas();\n\t\t$busqueda = $this->get_entidad()->tabla('eventos_pantalla')->nueva_busqueda();\n\t\tforeach ($pant_disponibles as $pantalla_id) {\n\t\t\t//Busco el evento en la pantalla para ver si ya esta.\n\t\t\t$busqueda->set_padre('pantallas', $pantalla_id);\n\t\t\t$busqueda->set_condicion('identificador', '==', $evento);\n\t\t\t$id_evt = $busqueda->buscar_ids();\n\t\t\t$evento_esta = (! empty($id_evt));\n\n\t\t\t//Miro si la pantalla esta entre las presentes\n\t\t\t$pantalla = $this->get_entidad()->tabla('pantallas')->get_fila_columna($pantalla_id, 'identificador');\n\t\t\t$evento_debe_estar = (is_null($pant_presentes) || in_array($pantalla, $pant_presentes, true));\n\n\n\t\t\tif ($evento_debe_estar && !$evento_esta) {\n\t\t\t\t//Hay que agregarlo\n\t\t\t\t$this->get_entidad()->tabla('pantallas')->set_cursor($pantalla_id);\n\t\t\t\t$id_evt = $this->get_entidad()->tabla('eventos')->get_id_fila_condicion(array('identificador' => $evento));\n\t\t\t\t$this->get_entidad()->tabla('eventos')->set_cursor(current($id_evt));\n\t\t\t\t$this->get_entidad()->tabla('eventos_pantalla')->nueva_fila(array('identificador' => $evento));\n\t\t\t} elseif (!$evento_debe_estar && $evento_esta) {\n\t\t\t\t//Hay que eliminarlo de la pantalla\n\t\t\t\t$this->get_entidad()->tabla('eventos_pantalla')->eliminar_fila(current($id_evt));\n\t\t\t}\n\t\t}\n\t\t$this->get_entidad()->tabla('eventos')->resetear_cursor();\n\t}", "function get_listado_estactual($filtro=array())\n\t{ \n $concat='';\n if (isset($filtro['anio']['valor'])) {\n \t$udia=dt_mocovi_periodo_presupuestario::ultimo_dia_periodo_anio($filtro['anio']['valor']);\n $pdia=dt_mocovi_periodo_presupuestario::primer_dia_periodo_anio($filtro['anio']['valor']);\n\t\t} \n //que sea una designacion correspondiente al periodo seleccionado o anulada dentro del periodo \n $where=\" WHERE ((a.desde <= '\".$udia.\"' and (a.hasta >= '\".$pdia.\"' or a.hasta is null)) or (a.desde='\".$pdia.\"' and a.hasta is not null and a.hasta<a.desde))\";\n $where2=\" WHERE 1=1 \";//es para filtrar por estado. Lo hago al final de todo\n if (isset($filtro['uni_acad'])) {\n $concat=quote($filtro['uni_acad']['valor']);\n switch ($filtro['uni_acad']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.uni_acad = \".quote($filtro['uni_acad']['valor']);break;\n case 'es_distinto_de': $where.= \" AND a.uni_acad <> \".quote($filtro['uni_acad']['valor']);break;\n }\n }\n //si el usuario esta asociado a un perfil de datos le aplica igual a su UA\n $con=\"select sigla from unidad_acad \";\n $con = toba::perfil_de_datos()->filtrar($con);\n $resul=toba::db('designa')->consultar($con);\n if(count($resul)<=1){//es usuario de una unidad academica\n $where.=\" and a.uni_acad = \".quote($resul[0]['sigla']);\n $concat=quote($resul[0]['sigla']);//para hacer el update de baja\n }\n if (isset($filtro['iddepto'])) {\n switch ($filtro['iddepto']['condicion']) {\n case 'es_igual_a': $where.= \" AND iddepto =\" .$filtro['iddepto']['valor'];break;\n case 'es_distinto_de': $where.= \" AND iddepto <>\" .$filtro['iddepto']['valor'];break;\n }\n }\n if (isset($filtro['por_permuta'])) {\n switch ($filtro['por_permuta']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.por_permuta =\" .$filtro['por_permuta']['valor'];break;\n case 'es_distinto_de': $where.= \" AND a.por_permuta <>\" .$filtro['por_permuta']['valor'];break;\n }\n }\n if (isset($filtro['carac']['valor'])) {\n switch ($filtro['carac']['valor']) {\n case 'R':$c=\"'Regular'\";break;\n case 'O':$c=\"'Otro'\";break;\n case 'I':$c=\"'Interino'\";break;\n case 'S':$c=\"'Suplente'\";break;\n default:\n break;\n }\n switch ($filtro['carac']['condicion']) {\n case 'es_igual_a': $where.= \" AND a.carac=\".$c;break;\n case 'es_distinto_de': $where.= \" AND a.carac<>\".$c;break;\n }\t\n }\n if (isset($filtro['estado'])) {\n switch ($filtro['estado']['condicion']) {\n case 'es_igual_a': $where2.= \" and est like '\".$filtro['estado']['valor'].\"%'\";break;\n case 'es_distinto_de': $where2.= \" and est not like '\".$filtro['estado']['valor'].\"%'\";break;\n }\n }\n if (isset($filtro['legajo'])) {\n switch ($filtro['legajo']['condicion']) {\n case 'es_igual_a': $where.= \" and legajo = \".$filtro['legajo']['valor'];break;\n case 'es_mayor_que': $where.= \" and legajo > \".$filtro['legajo']['valor'];break;\n case 'es_mayor_igual_que': $where.= \" and legajo >= \".$filtro['legajo']['valor'];break;\n case 'es_menor_que': $where.= \" and legajo < \".$filtro['legajo']['valor'];break;\n case 'es_menor_igual_que': $where.= \" and legajo <= \".$filtro['legajo']['valor'];break;\n case 'es_distinto_de': $where.= \" and legajo <> \".$filtro['legajo']['valor'];break;\n case 'entre': $where.= \" and legajo >= \".$filtro['legajo']['valor']['desde'].\" and legajo <=\".$filtro['legajo']['valor']['hasta'];break;\n }\n } \n if (isset($filtro['docente_nombre'])) {\n switch ($filtro['docente_nombre']['condicion']) {\n case 'contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'no_contiene': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) not like LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'comienza_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('\".$filtro['docente_nombre']['valor'].\"%')\";break;\n case 'termina_con': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) like LOWER('%\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_igual': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) == LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n case 'es_distinto': $where.= \" and LOWER(translate(docente_nombre,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜ','aeiouAEIOUaeiouAEIOU')) <> LOWER('\".$filtro['docente_nombre']['valor'].\"')\";break;\n }\n } \n if (isset($filtro['programa'])) {\n $sql=\"select * from mocovi_programa where id_programa=\".$filtro['programa']['valor'];\n $resul=toba::db('designa')->consultar($sql);\n switch ($filtro['programa']['condicion']) {\n case 'es_igual_a': $where.= \" AND programa =\".quote($resul[0]['nombre']);break;\n case 'es_distinto_de': $where.= \" AND programa <>\".quote($resul[0]['nombre']);break;\n }\n } \n if (isset($filtro['tipo_desig'])) {\n switch ($filtro['tipo_desig']['condicion']) {\n case 'es_igual_a': $where.=\" AND a.tipo_desig=\".$filtro['tipo_desig']['valor'];break;\n case 'es_distinto_de': $where.=\" AND a.tipo_desig <>\".$filtro['tipo_desig']['valor'];break;\n }\n }\n if (isset($filtro['anulada'])) {\n switch ($filtro['anulada']['valor']) {\n case '0': $where.=\" AND not (a.hasta is not null and a.hasta<a.desde)\";break;\n case '1': $where.=\" AND a.hasta is not null and a.hasta<a.desde \";break;\n }\n } \n if (isset($filtro['cat_estat'])) {\n switch ($filtro['cat_estat']['condicion']) {\n case 'es_igual_a': $where2.= \" and cat_estat=\".quote($filtro['cat_estat']['valor']);break;\n case 'es_distinto_de': $where2.= \" and cat_estat <>\".quote($filtro['cat_estat']['valor']);break;\n }\n }\n if (isset($filtro['dedic'])) {\n switch ($filtro['dedic']['condicion']) {\n case 'es_igual_a': $where2.= \" and dedic=\".$filtro['dedic']['valor'];break;\n case 'es_distinto_de': $where2.= \" and dedic<>\".$filtro['dedic']['valor'];break;\n }\n } \n //me aseguro de colocar en estado B todas las designaciones que tienen baja\n if($concat!=''){ \n $sql2=\" update designacion a set estado ='B' \"\n . \" where estado<>'B' and a.uni_acad=\".$concat\n .\" and exists (select * from novedad b\n where a.id_designacion=b.id_designacion \n and (b.tipo_nov=1 or b.tipo_nov=4))\";\n }\n \n //designaciones sin licencia UNION designaciones c/licencia sin norma UNION designaciones c/licencia c norma UNION reservas\n $sql=$this->armar_consulta($pdia,$udia,$filtro['anio']['valor']);\n\t\t//si el estado de la designacion es B entonces le pone estado B, si es <>B se fija si tiene licencia sin goce o cese\n// $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n// . \"select sub2.*,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n// . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n// . \"from (\"\n// .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n// .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n// .\" from (\"\n// .\" select a.id_designacion,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,b.a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,check_presup,licencia,a.dias_des,a.dias_lic\".\n// \" from (\".$sql.\") a\"\n// .$where \n// .\") b \"\n// . \" )sub\"\n// . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n// . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n// . \")sub2\"//obtengo el id_novedad maximo\n// . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n// .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n// .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n// .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n// . \")sub3\"\n// .$where2\n// . \" order by docente_nombre,desde\"; \n $sql= \"select id_designacion,docente_nombre,legajo,nro_cargo,anio_acad,desde,hasta,cat_mapuche,cat_mapuche_nombre,cat_estat,dedic,carac,check_presup,id_departamento,id_area,id_orientacion,uni_acad,emite_norma,nro_norma,tipo_norma,nro_540,tkd,observaciones,estado,porc,dias_lic,programa,costo_vale as costo,est,expediente,nro from(\"\n . \"select sub2.*,sub2.nro_540||'/'||t_i.anio as tkd,case when t_no.tipo_nov in (1,4) then 'B('||coalesce(t_no.tipo_norma,'')||':'||coalesce(t_no.norma_legal,'')||')' else case when t_no.tipo_nov in (2,5) then 'L('||t_no.tipo_norma||':'||t_no.norma_legal||')' else sub2.estado end end as est,t_i.expediente,case when d.tipo_desig=2 then costo_reserva(d.id_designacion,costo,\".$filtro['anio']['valor'].\") else costo end as costo_vale \"\n . \" ,case when t_nor.id_norma is null then '' else case when t_nor.link is not null or t_nor.link <>'' then '<a href='||chr(39)||t_nor.link||chr(39)|| ' target='||chr(39)||'_blank'||chr(39)||'>'||t_nor.nro_norma||'</a>' else cast(t_nor.nro_norma as text) end end as nro \"\n . \"from (\"\n .\"select sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde, sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo,max(t_no.id_novedad) as id_novedad from (\"\n .\"select distinct b.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, b.desde, b.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,emite_norma, b.nro_norma,b.tipo_norma,nro_540,b.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,case when (dias_des-dias_lic)>=0 then ((dias_des-dias_lic)*costo_diario*porc/100) else 0 end as costo\"\n .\" from (\"\n .\" select a.id_designacion,a.por_permuta,a.docente_nombre,a.legajo,a.nro_cargo,a.anio_acad, a.desde, a.hasta,a.cat_mapuche, a.cat_mapuche_nombre,a.cat_estat,a.dedic,a.carac,t.iddepto,a.id_departamento, a.id_area,a.id_orientacion, a.uni_acad, a.emite_norma, a.nro_norma,a.tipo_norma,a.nro_540,a.observaciones,a.estado,programa,porc,a.costo_diario,a.check_presup,licencia,a.dias_des,a.dias_lic\".\n \" from (\".$sql.\") a\"\n . \" INNER JOIN designacion d ON (a.id_designacion=d.id_designacion)\"\n . \" LEFT OUTER JOIN departamento t ON (t.iddepto=d.id_departamento)\"\n .$where \n .\") b \"\n . \" )sub\"\n . \" LEFT OUTER JOIN novedad t_no ON (sub.id_designacion=t_no.id_designacion and t_no.desde<='\".$udia.\"' and (t_no.hasta is null or t_no.hasta>='\".$pdia.\"' ))\"\n . \" GROUP BY sub.id_designacion,docente_nombre,legajo,nro_cargo,anio_acad, sub.desde,sub.hasta,cat_mapuche, cat_mapuche_nombre,cat_estat,dedic,carac,id_departamento, id_area,id_orientacion, uni_acad,sub.emite_norma, sub.nro_norma,sub.tipo_norma,nro_540,sub.observaciones,estado,programa,porc,costo_diario,check_presup,licencia,dias_des,dias_lic,costo\" \n . \")sub2\"//obtengo el id_novedad maximo\n . \" LEFT OUTER JOIN novedad t_no on (t_no.id_novedad=sub2.id_novedad)\"//con el id_novedad maximo obtengo la novedad que predomina\n .\" LEFT JOIN impresion_540 t_i ON (nro_540=t_i.id)\"//para agregar el expediente \n .\" LEFT OUTER JOIN designacion d ON (sub2.id_designacion=d.id_designacion)\"//como no tengo el id de la norma tengo que volver a hacer join\n .\" LEFT OUTER JOIN norma t_nor ON (d.id_norma=t_nor.id_norma)\"\n . \")sub3\"\n .$where2\n . \" order by docente_nombre,desde\"; \n return toba::db('designa')->consultar($sql);\n\t}", "public function __construct($venta)\n {\n $this->venta = $venta;\n }", "public function run()\n {\n Event::insert([\n [\n 'title' => 'Giáng sinh tưng bừng',\n 'content' => '',\n 'image' => '',\n 'start_date' => new Carbon('2016-01-23 11:53:20'),\n 'expiry_date' => new Carbon('2016-01-23 11:53:20'),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ],\n [\n 'title' => 'Giao thừa hạnh phúc',\n 'content' => '',\n 'image' => '',\n 'start_date' => new Carbon('2016-01-23 11:53:20'),\n 'expiry_date' => new Carbon('2016-01-23 11:53:20'),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ],\n [\n 'title' => 'Mừng năm mới với nhiều ưu đãi',\n 'content' => '',\n 'image' => '',\n 'start_date' => new Carbon('2016-01-23 11:53:20'),\n 'expiry_date' => new Carbon('2016-01-23 11:53:20'),\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]\n ]);\n }", "public function cambioEstado($servicios) {\n $hoy = getdate();\n $fecha = $hoy['year'] . '-' . $hoy['mon'] . '-' . $hoy['mday'] . ' ' . $hoy['hours'] . ':' . $hoy['minutes'] . ':' . $hoy['seconds'];\n $fecha = strtotime($fecha);\n $servicios_por_recoger = collect([]);\n if (count($servicios) > 0) {\n foreach ($servicios as $item) {\n $fecha_servicio = strtotime($item->fechafin);\n if ($fecha >= $fecha_servicio) {\n if ($item->estado == 'ENTREGADO') {\n $item->estado = \"RECOGER\";\n $item->save();\n }\n\n $horas = abs(($fecha - strtotime($item->fechafin)) / 3600);\n $operacion = $horas / 24;\n $dia = floor($operacion);\n $operacion = ($operacion - $dia) * 24;\n $horas = floor($operacion);\n $operacion = ($operacion - $horas) * 60;\n $minutos = floor($operacion);\n $str = '';\n if ($dia > 0) {\n $str = '<strong>' . $dia . '</strong> Dia(s) </br>';\n }\n\n if ($horas > 0) {\n $str .= '<strong>' . $horas . '</strong> Hora(s)</br>';\n }\n if ($minutos > 0) {\n $str .= '<strong>' . $minutos . '</strong> Minuto(s)</br>';\n }\n\n $item->tiempo = $str;\n\n $servicios_por_recoger[] = $item;\n } elseif ($item->estado == \"RECOGER\") {\n// $horas = abs(($fecha - strtotime($item->fechafin)) / 3600);\n// $minutos = '0.' . explode(\".\", $horas)[1];\n// $horas = floor($horas);\n// $minutos = floor($minutos * 60);\n $item->tiempo = \"Tiene permiso para recoger antes de tiempo\";\n $servicios_por_recoger[] = $item;\n }\n }\n }\n return $servicios_por_recoger;\n }", "function procesar_estudio($orden, $timestamp) {\n global $modo_desarrollo, $agrupar_estudios_array, $grupo_estudios_actual;\n $estudio_array = array();\n $estudio_array['solicitud'] = $orden;\n $estudio_array['timestamp'] = $timestamp; // El timestamp del estudio viene de ordenestot\n \n ## Recopilación de los datos\n if (!$modo_desarrollo) {\n $estudio_raw = json_decode(file_get_contents(\"http://172.24.24.131:8007/html/internac.php?funcion=estudiostot&orden=\".$orden), true);\n } else { // Debugging mode\n $estudio_raw = json_decode(@ file_get_contents(\".\\\\mock_data\\\\estudios\\\\estudio_\".$orden.\".json\"), true);\n if (!$estudio_raw) {\n return NULL;\n }\n }\n // Preprocesamiento de los datos del estudio:\n // Agrupa cada resultado del laboratorio segun los grupos definidos en $agrupar_estudios_array (Hemograma, hepatograma, etc)\n foreach ($estudio_raw['estudiostot'] as $estudio) {\t\n $codigo = $estudio['estudiostot']['CODANALISI']; // 3 o 4 letras en mayúscula que identifican un estudio. Ej: HTO = Hematocrito.\n \n if (in_array($codigo, $agrupar_estudios_array['Excluir'])) { \n continue;\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \" \") { # Algunos \"resultados\" que en realidad no lo son. Ej: orden de material descartable, interconsultas)\n continue;\n }\n if (is_null($estudio['estudiostot']['UNIDAD'])) { \n $estudio['estudiostot']['UNIDAD'] = \"\"; \n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Total\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina total\";\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Directa\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina directa\";\n }\n if ($estudio['estudiostot']['NOMANALISIS'] == \"Indirecta\") { \n $estudio['estudiostot']['NOMANALISIS'] = \"Bilirrubina indirecta\";\n }\n\n # Itera en los distintos $grupos de $estudios predefinidos, buscando a cual pertenece este $estudio. Cuando lo encuentra, break.\n # Si no lo encuentra en ningun grupo: permanece $categoria_encontrada = false, y el grupo es \"Otros\".\n $categoria_encontrada = false;\n foreach ($agrupar_estudios_array as $grupo => $estudios) { \n if (in_array($codigo, $estudios)) {\n $grupo_del_estudio = $grupo;\n $categoria_encontrada = true;\n break; \n }\n }\n if (!$categoria_encontrada) {\n $grupo_del_estudio = 'Otros';\n }\n \n // Comienza a crear el array que devuelve la función\n $estudio_array[$grupo_del_estudio][$codigo] = array(\n 'nombre_estudio' => $estudio['estudiostot']['NOMANALISIS'], \n 'resultado' => $estudio['estudiostot']['RESULTADO'],\n 'unidades' => $estudio['estudiostot']['UNIDAD'],\n 'color' => \"black\", // Color con el que se mostrará. Las alertas pueden modificar este parámetro más adelante\n 'info' => \"\" // Snippet que se muestra al poner el mouse sobre el valor. Las alertas pueden agregar info acá.\n );\n }\n \n // Postprocesamiento de los datos.\n # Ordena los resultados según el orden predefinido en agrupar_estudios_array: primero el orden de los grupos, luego orden de estudios.\n uksort($estudio_array, \"ordenar_grupos_de_estudios\");\n foreach ($estudio_array as $key => $value) {\n $grupo_estudios_actual = $key;\n if ($key == \"solicitud\" or $key == \"timestamp\") {\n continue;\n }\n uksort($value, \"ordenar_estudios\");\n $estudio_array[$key] = $value;\n }\n \n // Devuelve array('HC', 'Nombre', 'Cama', 'timestamp', 'solicitud', grupo de estudios => codigo => array(nombre_estudio, resultado, unidades, color, info)...)\n return $estudio_array; \n }", "function __construct(vevent $event, $from_date, $to_date)\r\n {\r\n //$this_day = date('d', $from_date);\r\n //$this_month = date('m', $from_date);\r\n //$this_year = date('Y', $from_date);\r\n\r\n //For the list view\r\n $date = getdate();\r\n $date_unixtime = mktime(0, 0, 0, $date['mon'], $date['mday'], $date['year']);\r\n // TODO: List view needs to start today, not on the last selected date.\r\n// \t$from_date = ($date_unixtime + $to_date) / 2;\r\n \t$this_day = date('d', $from_date);\r\n $this_month = date('m', $from_date);\r\n $this_year = date('Y', $from_date);\r\n// \t$this_day = $date['mday'];\r\n// \t$this_month = $date['mon'];\r\n// \t$this_year = $date['year'];\r\n\r\n $start_month = $date['mon'] - 1;\r\n $start_year = $date['year'];\r\n $end_month = $this_month + 1;\r\n $end_year = $this_year;\r\n\r\n\r\n if ($this_month == 1)\r\n {\r\n $start_month = 12;\r\n $start_year --;\r\n }\r\n if ($this_month == 12)\r\n {\r\n $end_month = 1;\r\n $end_year ++;\r\n }\r\n\r\n $this->event = $event;\r\n $this->view_start = mktime(0, 0, 0, $start_month, 1, $start_year);\r\n $this->view_end = mktime(0, 0, 0, $end_month, 31, $end_year);\r\n\r\n if ($this->debug)\r\n {\r\n echo '<hr />';\r\n echo '<b>ICAL RECURRENCE</b>';\r\n echo '<hr />';\r\n echo '<table class=\"data_table\">';\r\n echo '<thead>';\r\n echo '<tr><th>Variable</td><th>Value</td>';\r\n echo '</thead>';\r\n echo '<tbody>';\r\n echo '<tr><td>Title</td><td>' . $this->event->summary['value'] . '</td>';\r\n echo '<tr><td>View begin</td><td>' . $this->view_start . ' (' . date('r', $this->view_start) . ')</td>';\r\n echo '<tr><td>View end</td><td>' . $this->view_end . ' (' . date('r', $this->view_end) . ')</td>';\r\n // echo '<tr><td>Event</td><td>';\r\n // echo '<pre>';\r\n // echo print_r($this->event, true);\r\n // echo '</pre>';\r\n // echo '</td>';\r\n // echo '</tr>';\r\n echo '</tbody>';\r\n echo '</table>';\r\n }\r\n }", "public function actionIndexBaak()\n {\n $events = IzinRuangan::find()->all();\n\n $task = [];\n foreach ($events as $eve) {\n if ($eve->status_request_id == 2) {\n $event = new \\yii2fullcalendar\\models\\Event();\n $event->id = $eve->izin_ruangan_id;\n $event->title = $eve->lokasi['name'].' - '.$eve->desc;\n $event->url = '/cis-lite/backend/web/index.php/askm/izin-ruangan/izin-by-baak-view?id='.$eve->izin_ruangan_id.'';\n $event->start = $eve->rencana_mulai;\n $event->end = $eve->rencana_berakhir;\n $task[] = $event;\n }\n }\n\n return $this->render('IndexBaak', [\n 'events' => $task,\n ]);\n }", "function evt__enviar(){\n if($this->dep('datos')->tabla('mesa')->esta_cargada()){\n $m = $this->dep('datos')->tabla('mesa')->get();\n // print_r($m);\n $m['estado'] = 2;//Cambia el estado de la mesa a Enviado\n $this->dep('datos')->tabla('mesa')->set($m);\n // print_r($m['id_mesa']);\n $this->dep('datos')->tabla('mesa')->sincronizar();\n // $this->dep('datos')->tabla('mesa')->resetear();\n \n $m = $this->dep('datos')->tabla('mesa')->get_listado($m['id_mesa']);\n if($m[0]['estado'] == 2){//Obtengo de la BD y verifico que hizo cambios en la BD\n //Se enviaron correctamente los datos\n toba::notificacion()->agregar(utf8_decode(\"Los datos fueron enviados con éxito\"),\"info\");\n }\n else{\n //Se generó algún error al guardar en la BD\n toba::notificacion()->agregar(utf8_decode(\"Error al enviar la información, verifique su conexión a internet\"),\"info\");\n }\n }\n \n }", "function evt__agregar()\n\t{\n\t\t$this->set_pantalla('pant_edicion');\n\t}", "static function salva(){\n if(!CUtente::verificalogin())header('Location: /Progetto/Utente/homepagedef');\n else{\n session_start();\n if($_SERVER['REQUEST_METHOD'] == \"POST\"){\n $nome=$_POST['nome'];\n $descrizione=$_POST['descrizione'];\n if($_POST['accessibilità']=='Privato')$pubblico=false;\n else $pubblico=true;\n $w=new EWatchlist($nome,$descrizione,$pubblico,$_SESSION['utente']->getUsername());\n if(isset($_POST['serie'])){\n if(!empty($_POST['serie'])){\n foreach ($_POST['serie'] as $serie){\n $s=FPersistentManager::load('id',$serie,'FSerieTv');\n $w->AggiungiSerie(clone ($s[0]));\n }\n }\n }\n\n\n\n FPersistentManager::store($w);\n $u=FPersistentManager::load('username',$_SESSION['utente']->getUsername(),'FUtente');\n $_SESSION['utente']=clone($u[0]);\n $_SESSION['watchlist']= $_SESSION['utente']->getWatchlist();\n\n\n header('Location: /Progetto/Utente/user?id='.$_SESSION['utente']->getUsername());\n\n }\n else header('Location: /Progetto/Utente/homepagedef');\n }\n }", "function listarDetallePeriodoAgencia(){\n $this->procedimiento='obingresos.ft_periodo_venta_sel';\n $this->transaccion='OBING_PERDETAG_SEL';\n $this->tipo_procedimiento='SEL';//tipo de transaccion\n\n $this->setCount(false);\n\n $this->setParametro('id_periodo_venta','id_periodo_venta','int4');\n $this->setParametro('id_agencia','id_agencia','int4');\n $this->setParametro('tipo','tipo','varchar');\n\n\n //Definicion de la lista del resultado del query\n $this->captura('id_periodo_venta','int4');\n $this->captura('tipo','varchar');\n $this->captura('fecha','text');\n $this->captura('pnr','varchar');\n $this->captura('apellido','varchar');\n $this->captura('moneda','varchar');\n $this->captura('monto_boleto','numeric');\n $this->captura('comision','numeric');\n $this->captura('monto_credito_debito','numeric');\n $this->captura('ajuste','varchar');\n $this->captura('garantia','varchar');\n $this->captura('autorizacion_deposito','varchar');\n $this->captura('monto_credito_debito_mb','numeric');\n $this->captura('tipo_cambio','numeric');\n $this->captura('cierre_periodo','varchar');\n\n //Ejecuta la instruccion\n $this->armarConsulta();\n\n $this->ejecutarConsulta();\n\n //Devuelve la respuesta\n return $this->respuesta;\n }", "function Agenda_action_update_liste_mots($id_evenement,$liste_mots){\r\n\t$cond_in = \"\";\r\n\tif (count($liste_mots))\r\n\t\t$cond_in = \"AND \" . calcul_mysql_in('id_mot', implode(\",\",$liste_mots), 'NOT');\r\n\tspip_query(\"DELETE FROM spip_mots_evenements WHERE id_evenement=\".spip_abstract_quote($id_evenement).\" \".$cond_in);\r\n\t// ajout/maj des nouveaux mots\r\n\tforeach($liste_mots as $id_mot){\r\n\t\tif (!spip_fetch_array(spip_query(\"SELECT * FROM spip_mots_evenements WHERE id_evenement=\".spip_abstract_quote($id_evenement).\" AND id_mot=\".spip_abstract_quote($id_mot))))\r\n\t\t\tspip_query(\"INSERT INTO spip_mots_evenements (id_mot,id_evenement) VALUES (\".spip_abstract_quote($id_mot).\",\".spip_abstract_quote($id_evenement).\")\");\r\n\t}\r\n}", "function evt__procesar(){\n $m = $this->dep('datos')->tabla('mesa')->get();\n $p = array_search('junta_electoral', $this->s__perfil);\n if($p !== false){//Ingreso con perfil junta_electoral\n $m['estado'] = 3;//Cambia el estado de la mesa a Confirmado\n }\n else{\n $p = array_search('secretaria', $this->s__perfil);\n if($p !== false){//Ingreso con perfil secretaria\n $m['estado'] = 4;//Cambia el estado de la mesa a Definitivo\n }\n else{\n $p = array_search('autoridad_mesa', $this->s__perfil); \n if($p !== false){//Ingreso con perfil autoridad de mesa\n $m['estado'] = 1;//Cambia el estado de la mesa a Cargado\n }\n }\n }\n $this->dep('datos')->tabla('mesa')->set($m);\n// print_r($m['id_mesa']);\n $this->dep('datos')->tabla('mesa')->sincronizar();\n $this->dep('datos')->tabla('mesa')->resetear();\n \n \n if(isset($this->s__retorno)){//debe retornar a confirmar\n if($this->s__retorno_estado=='')\n $dato = true;\n else\n $dato['f'] = $this->s__retorno_estado;\n toba::vinculador()->navegar_a(\"\",$this->s__retorno,$dato); \n $this->s__retorno = null; \n $this->s__id_mesa = null;\n $this->s__retorno_estado = null;\n }\n }", "function stampaQuando($numeroEvento, $conn) {\n \n $stmt = $conn->prepare(\"SELECT eld.data, eld.orario FROM eventoLuogoData AS eld WHERE eld.id_evento = ?\");\n $stmt->bind_param(\"i\", $numeroEvento);\n $stmt->execute();\n $stmt->bind_result($data, $orario);\n \n $daRitornare=\"\";\n $daRitornare.= \"<div class='l12 w3-deep-orange'>\";\n $daRitornare.= \"<p> Date evento: </p>\";\n while($stmt->fetch()) {\n $daRitornare.= \"<div class='w3-center'><b>\" . dataIta($data) . \" - \" . tagliaSec($orario) . \"</b></div>\";\n }\n \n $daRitornare.= \"</div>\";\n return $daRitornare;\n }", "public function listaVentas()\n {\n $conexion = conexion::conectar();\n $sql = \"SELECT * FROM movimientos WHERE compra_venta ='v' order by id_producto asc;\";\n $stmt = $conexion->prepare($sql);\n $stmt->execute();\n $array = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt = null;\n return $array;\n }", "function fichier_ical($liste_evenements)\r\n{\r\n\t////\tINIT\r\n\tglobal $tab_timezones, $AGENDAS_AFFECTATIONS;\r\n\r\n\t////\tDEBUT DU ICAL\r\n\t$sortie = \"BEGIN:VCALENDAR\\n\";\r\n\t$sortie .= \"PRODID:-//Agora-Project//\".$_SESSION[\"agora\"][\"nom\"].\"//EN\\n\";\r\n\t$sortie .= \"VERSION:2.0\\n\";\r\n\t$sortie .= \"CALSCALE:GREGORIAN\\n\";\r\n\t$sortie .= \"METHOD:PUBLISH\\n\";\r\n\r\n\t////\tTIMEZONE\r\n\t$current_timezone = current_timezone();\r\n\t$heure_time_zone = $tab_timezones[$current_timezone];\r\n\t$sortie .= \"BEGIN:VTIMEZONE\\n\";\r\n\t$sortie .= \"TZID:\".$current_timezone.\"\\n\";\r\n\t$sortie .= \"X-LIC-LOCATION:\".$current_timezone.\"\\n\";\r\n\t//Daylight\r\n\t$sortie .= \"BEGIN:DAYLIGHT\\n\";\r\n\t$sortie .= \"TZOFFSETFROM:\".heure_ical($heure_time_zone).\"\\n\";\r\n\t$sortie .= \"TZOFFSETTO:\".heure_ical($heure_time_zone,1).\"\\n\";\r\n\t$sortie .= \"TZNAME:CEST\\n\";\r\n\t$sortie .= \"DTSTART:19700329T020000\\n\";\r\n\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=3\\n\";\r\n\t$sortie .= \"END:DAYLIGHT\\n\";\r\n\t//Standard\r\n\t$sortie .= \"BEGIN:STANDARD\\n\";\r\n\t$sortie .= \"TZOFFSETFROM:\".heure_ical($heure_time_zone,1).\"\\n\";\r\n\t$sortie .= \"TZOFFSETTO:\".heure_ical($heure_time_zone).\"\\n\";\r\n\t$sortie .= \"TZNAME:CET\\n\";\r\n\t$sortie .= \"DTSTART:19701025T030000\\n\";\r\n\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1;BYDAY=-1SU;BYMONTH=10\\n\";\r\n\t$sortie .= \"END:STANDARD\\n\";\r\n\t$sortie .= \"END:VTIMEZONE\\n\";\r\n\r\n\t////\tAJOUT DE CHAQUE EVENEMENT\r\n\tforeach($liste_evenements as $evt)\r\n\t{\r\n\t\t////\tDescription & agendas où est affecté l'événement\r\n\t\t$evt[\"description\"] = strip_tags(str_replace(\"<br />\",\" \",$evt[\"description\"]));\r\n\t\t$agendas = agendas_evts($evt[\"id_evenement\"],\"1\");\r\n\t\tif(count($agendas)>1){\r\n\t\t\t$agendas_txt = \"\";\r\n\t\t\tforeach($agendas as $id_agenda) { $agendas_txt .= $AGENDAS_AFFECTATIONS[$id_agenda][\"titre\"].\", \"; }\r\n\t\t\t$evt[\"description\"] .= \" [\".substr(text_reduit($agendas_txt),0,-2).\"]\";\r\n\t\t}\r\n\t\t////\tAffichage\r\n\t\t$sortie .= \"BEGIN:VEVENT\\n\";\r\n\t\t$sortie .= \"CREATED:\".date_ical($evt[\"date_crea\"],false).\"\\n\";\r\n\t\t$sortie .= \"LAST-MODIFIED:\".date_ical($evt[\"date_crea\"],false).\"\\n\";\r\n\t\t$sortie .= \"DTSTAMP:\".date_ical(db_insert_date(),false).\"\\n\";\r\n\t\t$sortie .= \"UID:\".ical_uid_evt($evt).\"\\n\";\r\n\t\t$sortie .= \"SUMMARY:\".$evt[\"titre\"].\"\\n\";\r\n\t\t$sortie .= \"DTSTART;TZID=\".date_ical($evt[\"date_debut\"]).\"\\n\"; //exple : \"19970714T170000Z\" pour 14 juillet 1997 à 17h00\r\n\t\t$sortie .= \"DTEND;TZID=\".date_ical($evt[\"date_fin\"]).\"\\n\";\r\n\t\tif($evt[\"id_categorie\"]>0)\t\t$sortie .= \"CATEGORIES:\".db_valeur(\"SELECT titre FROM gt_agenda_categorie WHERE id_categorie='\".$evt[\"id_categorie\"].\"'\").\"\\n\";\r\n\t\tif($evt[\"description\"]!=\"\")\t\t$sortie .= \"DESCRIPTION:\".preg_replace(\"/\\r\\n/\",\" \",html_entity_decode(strip_tags($evt[\"description\"]))).\"\\n\";\r\n\t\t// Périodicité\r\n\t\t$period_date_fin = ($evt[\"period_date_fin\"]) ? \";UNTIL=\".date_ical($evt[\"period_date_fin\"],false) : \"\";\r\n\t\tif($evt[\"periodicite_type\"]==\"annee\")\t\t\t\t$sortie .= \"RRULE:FREQ=YEARLY;INTERVAL=1\".$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"mois\")\t\t\t$sortie .= \"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=\".trim(strftime(\"%e\",strtotime($evt[\"date_debut\"]))).$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"jour_mois\")\t\t$sortie .= \"RRULE:FREQ=MONTHLY;INTERVAL=1;BYMONTHDAY=\".implode(\",\",array_map(\"abs\",explode(\",\",$evt[\"periodicite_valeurs\"]))).$period_date_fin.\"\\n\";\r\n\t\telseif($evt[\"periodicite_type\"]==\"jour_semaine\")\t$sortie .= \"RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=\".implode(\",\",array_map(\"jour_ical\",explode(\",\",$evt[\"periodicite_valeurs\"]))).$period_date_fin.\"\\n\";\r\n\t\t$sortie .= \"END:VEVENT\\n\";\r\n\t}\r\n\r\n\t////\tFIN DU ICAL\r\n\t$sortie .= \"END:VCALENDAR\\n\";\r\n\treturn $sortie;\r\n}", "public function londontec_event(){\n\t \n\t\t$id = $this->uri->segment(3);\n\t\t$headerData = null;\n\t\t$sidebarData = null;\n\t\t$page = 'admin/add_londontec_event';\n\t\t$mainData = array(\n\t\t\t'pagetitle' => 'Create londotec event',\n\t\t);\n\t\t$footerData = null;\n\n\t\t$this->template($headerData, $sidebarData, $page, $mainData, $footerData);\n \n\t}", "function set_eventos_fe($SCTECIAA,$SCTEPDC,$SCTETDOC,$SCTFECEM,$SCTESERI,$SCTECORR,$responseCode,$responseContent,$SCTESUCA){\n\t\t\t\tinclude(\"application/config/conexdb_db2.php\");\n\t\t\t\t$codcia=$this->session->userdata('codcia'); \n\t\t\t\t$f= gmdate(\"d-m-Y\", time() - 18000);\n\t\t\t\t$dd=substr($f, 0,2);\n\t\t\t\t$dm=substr($f, 3,2);\n\t\t\t\t$da=substr($f, 6,4);\n\t\t\t\t$fecha=$da.$dm.$dd;\n\t\t\t\t$hh= gmdate(\"H-i-s\", time() - 18000);\n\t\t\t\t$h=substr($hh, 0,2);\n\t\t\t\t$m=substr($hh, 3,2);\n\t\t\t\t$s=substr($hh, 6,2);\n\t\t\t\t$hora=$h.$m.$s;\n\t\t\t\t$sql = \"insert into LIBPRDDAT.SNT_ANEXO (SACODCIA,SACODSUC,SANROINT,SANROSER,SANROCOR,SATIPDOC,SACODRPT,SAMSGRPT,SASTS,SAUSR,SAFECREG,SAHORREG)values('\".$SCTECIAA.\"','\".$SCTESUCA.\"','\".$SCTEPDC.\"','\".$SCTESERI.\"','\".$SCTECORR.\"','\".$SCTETDOC.\"','\".$responseCode.\"','\".$responseContent.\"','A','MMUSRSCD','\".$fecha.\"','\".$hora.\"')\";\t\n\t\t\t\t$res = odbc_exec($dbconect, $sql) or die(\"<p>\" . odbc_errormsg());\n\t\t\t\tif (!$res):$res = 0;\n\t\t\t\t\telse: $res = 1;\n\t\t\t\t\tendif;\t\t\t\t\n\t\t\t\t\treturn $res;\t\t\t\n\t\t\t\t}", "function addtoTranscript()\r\n {\r\n \r\n }", "function subscribe($data){\r\ntry{\r\n$bdd = new PDO('mysql:host=localhost;dbname=ma_base;charset=utf8', 'root', 'addafbaplm');\r\n//$bdd = new PDO('mysql:host=localhost;dbname=pornckys_tes;charset=utf8', 'pornckys_moi', 'test123');\r\n//91.216.107.248\r\n}\r\ncatch (Exception $e)\r\n{\r\n die('Erreur : ' . $e->getMessage());\r\n}\r\n\r\n\r\n$nom=$data['FNAME'];\r\n$prenom=$data['LNAME'];\r\n$mail=$data['EMAIL'];\r\n$password=$data['MMERGE4'];\r\n$fired_at= $_POST['fired_at'];\r\n\r\n//creer dossier et fichier\r\n$dossier = \"users/\".$mail;\r\nif(!is_dir($dossier)){\r\n mkdir($dossier);\r\n $fp = fopen(\"users/\".$mail.\"/avis.txt\",\"w\");\r\n}\r\n\r\n\r\n//Mettre ses valeur récupérés à la $ligne de video_\r\n\r\n\r\n$req = $bdd->prepare(\"INSERT INTO `ma_base`.`user` (`nom`, `prenom`, `mail`, `password`) VALUES (:nom, :prenom, :mail, :password)\");\r\n $req->execute(array(\r\n \"nom\" => $nom, \r\n \"prenom\" => $prenom,\r\n \"mail\" => $mail,\r\n \"password\" => $password,\r\n \r\n ));\r\n\r\n // $req = $bdd->prepare(\"INSERT INTO `ma_base`.`user` (`nom`, `prenom`, `mail`, `password`,, `date`) VALUES (:nom, :prenom, :mail, :password, :mdate)\");\r\n // $req->execute(array(\r\n // \"nom\" => $nom, \r\n // \"prenom\" => $prenom,\r\n // \"mail\" => $mail,\r\n // \"password\" => $password,\r\n // \"mdate\" => $fired_at,\r\n \r\n // ));\r\n\r\n\r\n// try{\r\n// $bdd = new PDO('mysql:host=localhost;dbname=ma_base;charset=utf8', 'root', 'addafbaplm');\r\n// //$bdd = new PDO('mysql:host=localhost;dbname=pornckys_tes;charset=utf8', 'pornckys_moi', 'test123');\r\n// //91.216.107.248\r\n// }\r\n// catch (Exception $e)\r\n// {\r\n// die('Erreur : ' . $e->getMessage());\r\n// }\r\n\r\n\r\n// $nom=$data['FNAME'];\r\n// $prenom=$data['LNAME'];\r\n// $mail=$data['email'];\r\n// $password=$data['MMERGE4'];\r\n\r\n// //Mettre ses valeur récupérés à la $ligne de video_\r\n\r\n\r\n// $req = $bdd->prepare(\"INSERT INTO `ma_base`.`user` (`nom`, `prenom`, `mail`, `password`) VALUES (:nom, :prenom, :mail, :password)\");\r\n// $req->execute(array(\r\n// \"nom\" => $nom, \r\n// \"prenom\" => $prenom,\r\n// \"mail\" => $mail,\r\n// \"password\" => $password,\r\n \r\n// ));\r\n\r\n\r\n\r\n $req->closeCursor(); \r\n// ;\r\n\r\n\r\n\r\n\r\n\r\n \r\n}", "public function run()\n {\n DB::table('events')->insert([\n [\n 'name' => 'Поездка в Лиетлахти',\n 'place' => 'Карелия',\n 'description' => 'Скальные сектора в окрестностях Треугольного озера и национального парка Лиетлахти',\n 'user_id' => 1,\n ],\n [\n 'name' => 'День рождения (личные расходы)',\n 'place' => 'Ресторан «Какой-нибудь»',\n 'description' => 'Если в событии только один покупатель, событие нужно считать личным и как-то выделить его на фоне остальных',\n 'user_id' => 1,\n ],\n [\n 'name' => 'Событие второго пользователя',\n 'place' => '',\n 'description' => 'Для тестирования безопасности',\n 'user_id' => 2,\n ],\n ]);\n }", "function leerMisEventos($entrada1) {\n $usuario = trim(filter_var($entrada1, FILTER_SANITIZE_STRING));\n $eventos = [];\n\n $con = crearConexion();\n\n $query = \"SELECT id, propietario, usuario, evento, nombre, fecha_hora, descripcion, imagen FROM usuario_evento, evento WHERE usuario = '$usuario' AND usuario_evento.evento = evento.id\";\n\n $result = mysqli_query($con, $query);\n\n if (mysqli_num_rows($result) < 1) {\n return FALSE;\n } else {\n while ($row = mysqli_fetch_array($result)) {\n $fila = [];\n\n $fila['propietario'] = $row['propietario'];\n $fila['id'] = $row['id'];\n $fila['usuario'] = $row['usuario'];\n $fila['evento'] = $row['evento'];\n $fila['nombre'] = $row['nombre'];\n $fila['fecha_hora'] = $row['fecha_hora'];\n $fila['imagen'] = $row['imagen'];\n $fila['descripcion'] = $row['descripcion'];\n\n $eventos[] = $fila;\n }\n\n cerrarConexion($con);\n return $eventos;\n }\n}", "public function calendario(){\n\t\t// Preparo l'array da restituire Json\n\t\t$jsondata=array();\n\t\t// Recupero i parametri _POST\n\t\t$azione=$_POST['azione']; // default: elenca\n\t\t$stato=$_POST['stato']; // ANNULATO, CHIUSO, NULL\n\t\t// Preparo l'array per l'estrazione dei tasks\n\t\t$parametri=array(\n 'stato' => $stato,\n\t\t\t'categoria' => '',\n\t\t\t'reparto'=>''\n\t\t);\n\t\t$this->data['tasks']=$this->mod_tasks->elencaTasks($parametri);\n\t\t/** TODO: creare trasposizione da task a fullcalendar **/\n\t\t/***** demo\n\t\techo \"START<br/>\";\n\t\tforeach ($this->data['tasks'] as $righe => $value) {\n\t\t\t// Ciclo le righe contenenti i task\n\t\t\techo \"Debug: analizzo l'indice :\".$righe.\"<br/>\";\n\t\t\tforeach ($this->data['tasks'][$righe] as $indice => $valore) {\n\t\t\t\techo \"Debug: il valore di :\".$indice.\" è :\".$valore.\"<br/>\";\n\t\t\t\t$jsondata[$righe][$indice]=$valore;\n\t\t\t}\n\t\t\techo \"<br/>\";\n\t\t}\n\t\techo \"<br/>END<br/>\";\n\t\t****** fine demo **/\n\t\tforeach ($this->data['tasks'] as $righe => $value) {\n\t\t\t$jsondata[$righe]['id']=$value['id_task'];\n\t\t\t$jsondata[$righe]['title']=$value['categoria'];\n\t\t\t$jsondata[$righe]['start']=$value['scadenza'];\n\t\t\t$jsondata[$righe]['color']=$value['colore'];\n\t\t}\n\t\t//print_r($jsondata);\n\t\techo json_encode($jsondata);\n\t\t/*\n\t\tid=tasks.id_task\n\t\ttitle=categoria\n\t\tstart=scadenza\n\t\turl=\"\"\n\t\ttasks\t\t*/\n\t}", "public function getStoriaAssegnazioniTrasportatori()\n {\n $con = DBUtils::getConnection();\n $sql =\"SELECT id FROM history_trasportatori WHERE id_preventivo=$this->id_preventivo\";\n //echo \"\\nSQL1: \".$sql.\"\\n\";\n $res = mysql_query($sql);\n $found = 0;\n $result = array();\n\n while ($row=mysql_fetch_object($res))\n {\n //crea l'oggetto Arredo\n\n $obj = new AssegnazioneTrasportatore();\n $obj->load($row->id);\n\n $result[] = $obj;\n }\n\n DBUtils::closeConnection($con);\n return $result;\n\n }", "public static function TipiDiEventi(){\r\n $query = 'SELECT nome FROM tipoevento ORDER BY nome ASC';\r\n\t\t$result = self::$conn->query($query);\r\n $tipi = array();\r\n if($result){\r\n while ($row = $result->fetch_assoc()) \r\n $tipi[] = $row['nome'];\r\n $result->free();\r\n }\r\n return $tipi; \r\n }", "public function fullCaAction(){\n \t$logger = new Frogg_Log('/home2/bleachse/public_html/seriando/log/calendar_CA.log');\n \t$xml = new XMLReader();\n \tif(!$xml->open('http://services.tvrage.com/feeds/fullschedule.php?country=CA')){\n \t\t$logger->err('Failed to open input file');\n \t\t$logger->close();\n \t\tdie;\n \t}\n \t$logger->info('Starting to index full schedule');\n \t$series = new Application_Model_Series();\n \twhile ($xml->read()){\n \t\twhile($xml->read() && $xml->name != 'DAY');//Goes to next <DAY>\n \t\t$timestamp = new Frogg_Time_Time($xml->getAttribute('attr'));\n \t\t$timestamp = $timestamp->getUnixTstamp();\n \t\twhile($xml->read()){ //Daily shows reading\n \t\t\tif($xml->nodeType == XMLReader::ELEMENT && $xml->name == 'show'){ //Found new show\n \t\t\t\t$episode_name = $xml->getAttribute('name');\n \t\t\t\t$show_id = '';\n \t\t\t\twhile($xml->read() && $xml->name != 'sid'); //Found show id\n \t\t\t\tif($xml->nodeType == XMLReader::ELEMENT && $xml->name == 'sid'){\n \t\t\t\t\t$show_id = $xml->readString();\n \t\t\t\t}\n \t\t\t\twhile($xml->read() && $xml->name != 'ep'); //Found episode air order\n \t\t\t\tif($xml->nodeType == XMLReader::ELEMENT && $xml->name == 'ep'){\n \t\t\t\t\t$episode_num = $xml->readString();\n \t\t\t\t\t$scheduled = new Application_Model_Scheduled($show_id,'http://services.tvrage.com/tools/quickinfo.php?show='.urlencode($episode_name).'&ep='.$episode_num,Application_Model_Scheduled::UNREAD,$timestamp);\n \t\t\t\t\t$scheduled->save();\n \t\t\t\t\t$logger->ok('Saved : '.$scheduled->link);\n \t\t\t\t}\n \t\t\t$xml->next('show');\n \t\t\t} else if($xml->nodeType == XMLReader::END_ELEMENT && $xml->name == 'DAY'){ //Found </DAY>\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}//END - Daily shows reading\n \t}\n \t$logger->close();\n \tdie;\n }", "public function listar_ventas_abono_table($idGenAbono) {\n $dato = [];\n\n //--- Datos del Logeado ---//\n $userdata = $this->session->all_userdata();\n //--- datos ---//\n $ingresos = $this->app_model->get_ingreso_by_idGenAbono($idGenAbono);\n $estados = $this->app_model->get_estados();\n\n if ($ingresos) {\n foreach ($ingresos as $key => $value) {\n $texto = \"\";\n $class = \"\";\n if ($value['idEstado'] == 1) :\n $class = \"btn-success\";\n $texto = \"Cobrado\";\n elseif ($value['idEstado'] == 2):\n $class = \"btn-info\";\n $texto = \"A Cobrar\";\n elseif ($value['idEstado'] == 3):\n $class = \"btn-danger\";\n $texto = \"Vencido\";\n else:\n $class = \"btn-warning\";\n $texto = \"Sin Estado\";\n endif;\n\n $facturaIdIngreso = $this->app_model->get_factura_idGenIngreso($value['idGenIngreso']);\n if ($userdata['idUsuario'] != 28 && $userdata['idUsuario'] != 29 && $facturaIdIngreso == false) {\n $bloque1 = '<li><a href=\"' . base_url() . 'ventas/editar_venta/' . $value['idIngreso'] . '\"><i class=\"icon-cogs\"></i> Editar</a></li>' .\n '<li><a href=\"#modal-delete\" class=\"tip deleteIngreso\" data-id=\"' . $value['idIngreso'] . '\" data-toggle=\"modal\" ><i class=\"icon-close\"></i> Eliminar</a></li>' .\n '<li class=\"divider\"></li>';\n } else {\n $bloque1 = '';\n }\n\n $idGenIngreso = \"'\" . $value['idGenIngreso'] . \"'\";\n if ($userdata['idUsuario'] != 28 && $userdata['idUsuario'] != 29) {\n $bloque2 = '<li><a href=\"#\"><i class=\"icon-notebook\"></i> Crear NC/ND</a></li>' .\n '<li><a href=\"#\"><i class=\"icon-newspaper\"></i> Crear remito</a></li>' .\n '<li><a href=\"#\"><i class=\"icon-clipboard\"></i> Cta Cte</a></li>' .\n '<li class=\"divider\"></li>' .\n '<li><a href=\"#\" onclick=\"generarPdfDetalleVenta(' . $idGenIngreso . ')\"><i class=\"icon-binoculars\"></i> Ver detalle</a></li>' .\n '<li><a href=\"#\"><i class=\"icon-attachment\"></i> Enviar detalle</a></li>';\n }\n\n $opcion = ' <div class=\"btn-group\">' .\n '<button class=\"btn ' . $class . '\" style=\"padding: 3px;font-size: 0.8em;\">' . $texto . '</button>' .\n '<button class=\"btn btn-dark dropdown-toggle\" data-toggle=\"dropdown\" style=\"padding: 3px;font-size: 0.8em;\"><span class=\"caret caret-split\"></span></button>' .\n '<ul class=\"dropdown-menu icons-right\">' .\n $bloque1 .\n '<li><a href=\"#modal-agregar-cobro\" class=\"tip agregarCobro\" data-id=\"' . $value['idGenIngreso'] . '\" data-toggle=\"modal\" ><i class=\"icon-tag5\"></i> Agregar cobranza</a></li>' .\n $bloque2 .\n '</ul>' .\n '</div>';\n\n $dato[] = array(\n $opcion,\n $value['idTipoIngreso'],\n $value['fechaEmision'],\n $value['fechaVtoCobro'],\n $value['nombEmpresa'],\n $value['categoria'],\n \"$\" . number_format($value['total'] + $value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['descuentoTotal'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'], 2, \",\", \".\"),\n \"$\" . number_format($value['aCobrar'], 2, \",\", \".\"),\n \"$\" . number_format($value['total'] - $value['aCobrar'], 2, \",\", \".\"),\n $value['nombreVend'],\n \"DT_RowId\" => $value['idIngreso']\n );\n }\n }\n\n $aa = array(\n 'sEcho' => 1,\n 'iTotalRecords' => count($dato),\n 'iTotalDisplayRecords' => 10,\n 'aaData' => $dato\n );\n echo json_encode($aa);\n }", "public function StampaCarrello() {\n\t\t$somma=0;\n\t\tif (count($this->contenuto) > 0) \n\t\t{ ?>\n\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<?\n\t\t\t\t\t?><tr >\n\t\t\t\t\t\t\t<th>Prodotto</th>\n\t\t\t\t\t\t\t<th>Quantità</th>\n\t\t\t\t\t\t</tr><?\n\n\t\t\t\t\t\tfor ($i=0;$i<count($this->contenuto);$i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t<td><?= $this->contenuto[$i]->getNome() ;?></br> \n\t\t\t\t\t\t\t\t<td><?= $this->quantita[$i] ,' Kg';?></br> <?\n\t\t\t\t\t\t\t\t$somma=$somma+($this->contenuto[$i]->getPrezzo()*$this->quantita[$i]);?></br> \n\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t?>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t\t<p> Totale:<?=$somma, ' Euro' ?></p>\n\t\t\t<form method=\"post\" action=\"index.php?page=utente&subpage=home&somma=<?= $somma ?>\">\n\t\t\t\t\t\t<input type=\"hidden\" name=\"cmd\" value=\"completaOrdine\"/>\n\t\t\t\t\t\t<label for=\"date\">Inserisci la data di consegna</label>\n\t\t\t\t\t\t<input type=\"date\" name=\"date\" value=\"2000-01-01\"/>\n\t\t\t\t\t\t<button type=\"submit\">Conferma ordine </button>\n \t\t\t</form>\n\n\t<?php } \n\telse \n\t\t{ \n\t\t\t?><p class=\"messaggio\"> Nessun prodotto inserito </p><?\n\t\t} \n\t}" ]
[ "0.60498244", "0.596113", "0.59256804", "0.5898964", "0.5740722", "0.56273973", "0.5611975", "0.5604795", "0.55432713", "0.54307115", "0.54034775", "0.5382218", "0.5366023", "0.53400666", "0.53398347", "0.5309393", "0.5307571", "0.5303097", "0.5298649", "0.52714634", "0.5251615", "0.5239088", "0.5235278", "0.5196015", "0.5194685", "0.5160097", "0.51600075", "0.51575506", "0.51570666", "0.51437604", "0.5119603", "0.5113906", "0.5112783", "0.51095164", "0.5106543", "0.50955886", "0.5092286", "0.50860137", "0.5054289", "0.50311595", "0.5014588", "0.501148", "0.50043964", "0.49944726", "0.49907255", "0.4984577", "0.49841273", "0.49816704", "0.49780643", "0.49675992", "0.4956496", "0.49554864", "0.49472988", "0.49395403", "0.49352664", "0.49311605", "0.49309802", "0.49270517", "0.49227315", "0.490933", "0.4907657", "0.49041438", "0.4902315", "0.49006134", "0.4890656", "0.48857647", "0.48835275", "0.48835015", "0.48833537", "0.4882929", "0.48819715", "0.4860603", "0.48600328", "0.48489752", "0.48488158", "0.48460367", "0.4844787", "0.48091415", "0.48063415", "0.48061898", "0.47962585", "0.47764152", "0.47712612", "0.47671387", "0.4765757", "0.475996", "0.4757096", "0.47447464", "0.47371763", "0.4733375", "0.4719647", "0.47121036", "0.4711102", "0.4707234", "0.47051772", "0.4702765", "0.47012535", "0.46946707", "0.4694586", "0.46940294" ]
0.64649004
0
stampa singolo componente di un ITEM
function specialeRagazziItemBadge($numeroEvento) { include 'configurazione.php'; include 'connessione.php'; $sql = "SELECT E.speciale_ragazzi AS spec FROM Evento AS E WHERE E.id = ?"; $stmt = $conn->prepare($sql); $stmt->bind_param("i", $numeroEvento); $stmt->execute(); $stmt->bind_result($speciale_ragazzi); $stmt->fetch(); if($speciale_ragazzi){return "<div class='unQuarto'>" ."<div class='w3-purple inclinata' style='width:80%;'> <b>T</b> </div> " ."</div>";} return ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function nuevo_item($sender,$param)\n {\n $item=$param->Item;\n\n\n if($item->ItemType==='Item' || $item->ItemType==='AlternatingItem')\n {\n /*$item->fecha_ini->Text = cambiaf_a_normal($item->fecha_ini->Text);\n\n if ($item->fecha_fin->Text==\"0000-00-00\") $item->fecha_fin->Text= \"-\";\n else $item->fecha_fin->Text = cambiaf_a_normal($item->fecha_fin->Text);*/\n }\n\n /* if ($item->tipo->Text==\"CREDITO\"){\n $item->monto->ForeColor=\"green\";\n }elseif ($item->tipo->Text==\"DEBITO\"){\n $item->monto->ForeColor=\"red\";\n }*/\n\n\n }", "public function nuevo_item2($sender,$param)\n {\n $item=$param->Item;\n if ($item->observacion->Text != \"Observacion\")\n {\n $result = esta_justificado($this->justificaciones,$item->cedula2->Text,$this->txt_fecha_desde->Text,$this->horario_vigente[0]['hora_entrada'],$sender);\n $result2 = esta_justificado($this->justificaciones,$item->cedula2->Text,$this->txt_fecha_desde->Text,$this->horario_vigente[0]['hora_salida'],$sender);\n if (($result != false) && ($result2 != false))\n {\n $item->observacion->ForeColor = \"Green\";\n $item->observacion->Text = $result['descripcion_tipo_justificacion'].\", C&oacute;d: \".$result['codigo'];\n $this->ind_inasistentes_si_just++;\n \n }\n else\n {\n $item->observacion->ForeColor = \"Red\";\n $item->observacion->Text = \"I N A S I S T E N T E\";\n }\n $item->observacion->Font->Bold = \"true\";\n }\n }", "public function nuevo_item($sender,$param)\r\n {\r\n $item=$param->Item;\r\n if($item->ItemType==='Item' || $item->ItemType==='AlternatingItem')\r\n {\r\n $item->fecha->Text = cambiaf_a_normal($item->fecha->Text);\r\n $item->haber->Text = \"Bs. \".number_format('0', 2, ',', '.');\r\n $item->debe->Text = \"Bs. \".number_format('0', 2, ',', '.');\r\n\r\n if($item->monto->Text<0)\r\n $item->debe->Text = \"Bs. \".number_format(abs($item->monto->Text), 2, ',', '.');\r\n else\r\n $item->haber->Text = \"Bs. \".number_format($item->monto->Text, 2, ',', '.');\r\n \r\n $id=$item->id->Text;\r\n \r\n }\r\n }", "public function nuevo_item($sender,$param)\n {\n $item=$param->Item;\n if ($item->entrada->Text != \"Entrada\")\n {\n if (strtotime($item->entrada->Text)>= (strtotime($this->horario_vigente[0]['hora_entrada'].\" + \".\n\t\t\t $this->horario_vigente[0]['holgura_entrada'].\" minutes\")))\n {\n if (esta_justificado( $this->justificaciones,$item->cedula->Text,$this->txt_fecha_desde->Text,$item->entrada->Text,$sender) != false)\n {$item->entrada->ForeColor = \"Green\";$this->ind_asistentes_tarde_si_just++;}\n else\n {$item->entrada->ForeColor = \"Red\";$this->ind_asistentes_tarde_no_just++;}\n $item->entrada->Font->Bold = \"true\";\n }\n $item->entrada->Text = date(\"h:i:s a\",strtotime($item->entrada->Text));\n }\n if ($item->salida->Text != \"Salida\")\n {\n if (strtotime($item->salida->Text) < strtotime($this->horario_vigente[0]['hora_salida']))\n {\n if (esta_justificado($this->justificaciones,$item->cedula->Text,$this->txt_fecha_desde->Text,$item->salida->Text,$sender) != false)\n {$item->salida->ForeColor = \"Green\";}\n else\n {$item->salida->ForeColor = \"Red\";}\n $item->salida->Font->Bold = \"true\";\n }\n $item->salida->Text = date(\"h:i:s a\",strtotime($item->salida->Text));\n if ($item->entrada->Text == $item->salida->Text)\n {\n $item->salida->Text = \"\";\n }\n\n }\n }", "function ativaEtiquetas($item)\n\t{\n\t\tif(!$this->layer){return \"erro\";}\n\t\t$this->layer->setmetadata(\"IDENTIFICA\",\"\");\n\t\t$this->layer->setmetadata(\"TIP\",$item);\n\t\treturn(\"ok\");\n\t}", "public function nuevo_itemfh($sender,$param)\n {\n $item=$param->Item;\n\n if ($item->salida3->Text != \"Ultima Entrada Registrada\")\n {\n\n $item->salida3->Text = date(\"h:i:s a\",strtotime($item->salida3->Text));\n if ($item->entrada3->Text == $item->salida3->Text)\n {\n $item->salida3->Text = \"\";\n }\n\n }\n }", "public function shop_item()\n {\n $this->el = new XTemplate($this->temp, $this->path);\n\n // for element that have wrapper and comment\n $this->el->assign('WRAPPER', $this->wrapper);\n $this->el->assign('LINK', $this->link);\n\n // scan all variables when using\n foreach ($this->shop_item as $key => $value) {\n\n // customize if need when more vars in html template *\n $this->el->assign('IMG', $value);\n\n // fixed loop\n $this->el->parse('shop_item');\n }\n\n // fixed out results\n echo $this->el->text('shop_item');\n\n }", "private function affichageItemCreateur() : string{\n $i = $this->tab[0][0];\n $l = $this->tab[1][0];\n $m = $this->tab[2][0];\n $testType = explode(\"/\",$i['img']);\n if (count($testType) > 1){\n $image = $i['img'];\n }else{\n $image = \"../../img/\" . $i['img'];\n }\n // item réservé (par défaut)\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-secondary\\\">RÉSERVÉ</span></h5>\";\n $modification = \"<a class=\\\"btn btn-warning btn-lg disabled\\\" href=\\\"#\\\" role=\\\"button\\\" aria-disabled=\\\"true\\\"><span class=\\\"fa fa-pencil\\\" ></span> Modifier l'item</a>\";\n $url_creerCagnotte = $this->container->router->pathFor(\"creerCagnotte\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $supprimer = \"<button type=\\\"button\\\" class=\\\"btn btn-lg btn-danger disabled\\\" data-toggle=\\\"modal\\\" data-target=\\\"#confirmationSupp_{$i['nom']}\\\"><span class=\\\"fa fa-trash fa-lg\\\"></span> Supprimer</button>\";\n $cagnotte = \"<a class=\\\"btn btn-success btn-lg disabled\\\" href=\\\"$url_creerCagnotte\\\" role=\\\"button\\\" aria-disabled=\\\"true\\\"><i class=\\\"fa fa-usd\\\" aria-hidden=\\\"true\\\"></i> Créer une cagnotte</a>\";\n // on verifie si l'item n'est pas reservé\n if ($i['reserve'] == \"false\"){\n $url_modification = $this->container->router->pathFor(\"modifierItem\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $url_creerCagnotte = $this->container->router->pathFor(\"creerCagnotte\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $modification = \"<a class=\\\"btn btn-warning btn-lg\\\" href=\\\"$url_modification\\\" role=\\\"button\\\"><span class=\\\"fa fa-pencil\\\" ></span> Modifier l'item</a>\";\n if ($i['cagnotteActive'] == \"false\") {\n $cagnotte = \"<a class=\\\"btn btn-success btn-lg\\\" href=\\\"$url_creerCagnotte\\\" role=\\\"button\\\" aria-disabled=\\\"true\\\"><i class=\\\"fa fa-usd\\\" aria-hidden=\\\"true\\\"></i> Créer une cagnotte</a>\";\n }\n else {\n $cagnotte = \"<a class=\\\"btn btn-success btn-lg disabled\\\" href=\\\"$url_creerCagnotte\\\" role=\\\"button\\\" aria-disabled=\\\"true\\\"><i class=\\\"fa fa-usd\\\" aria-hidden=\\\"true\\\"></i> Créer une cagnotte</a>\";\n }\n\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-secondary\\\">PAS ENCORE RÉSERVÉ</span></h5>\";\n $supprimer = \"<button type=\\\"button\\\" class=\\\"btn btn-lg btn-danger\\\" data-toggle=\\\"modal\\\" data-target=\\\"#confirmationSupp_{$i['nom']}\\\"><span class=\\\"fa fa-trash fa-lg\\\"></span> Supprimer</button>\";\n }\n $url_supprimerImage = $this->container->router->pathFor(\"supprimerImage\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $supprimerImage = \"<a class=\\\"btn btn-danger btn-lg\\\" href=\\\"$url_supprimerImage\\\" role=\\\"button\\\"><span class=\\\"fa fa-trash fa-lg\\\" ></span> Supprimer Image</a>\";\n // on verifie si l'item possède un url pour l'acheter sur un site externe\n if ($i['url'] != \"\") {\n $url =$i['url'];\n } else {\n $url = \"Aucun URL disponible\";\n }\n $message = \"\";\n $date = date('Y-m-d',strtotime($l['expiration']));\n if ($date < $this->today) {\n if (isset($m['auteur']) ) {\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-secondary\\\">RÉSERVÉ par {$m['auteur']}</span></h5>\";\n $message .= <<<FIN\n <div class=\"card card_form\">\n <div class=\"card-header\">\n Message de réservation de {$m['auteur']} :\n </div>\n <div class=\"card-body\">\n <blockquote class=\"blockquote mb-0\">\n <footer class=\"blockquote-footer\">{$m['message']}</footer>\n </blockquote>\n </div>\n </div>\n FIN;\n }\n }\n $tarif = \"<span class=\\\"badge badge-info\\\">{$i['tarif']}€</span>\";\n $url_supprimer = $this->container->router->pathFor(\"supprimerItem\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $html = <<<FIN\n <div class=\"box_item\">\n \n <div class=\"card flex-row\">\n <div class=\"card-header bg-transparent border-0\">\n <img src=\"$image\" onError=\"this.onerror=null;this.src='../../img/default.png';\" >\n </div>\n <div class=\"card-body info_item px-5\">\n <h4 class=\"card-title\">$isReserved</h4>\n <p class=\"card-text\">{$i['descr']}</p>\n <h2 class=\"card-text\">$tarif</h2>\n <br>\n <label for=\"url\" >Ou trouver mon article ?</label>\n <div class=\"input-group mb-3\">\n <div class=\"input-group-prepend\"> \n <span class=\"input-group-text\">URL</span>\n </div>\n <input readonly type=\"text\" class=\"form-control\" aria-label=\"url\" value=\"{$url}\" id=\"myInput\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary\" type=\"button\" onclick=\"copyClipboard()\">Copier</button>\n </div>\n </div>\n $modification\n $cagnotte\n $supprimerImage\n $supprimer\n \n <!-- Modal pour demander si on veut supprimer -->\n <div class=\"modal fade\" id=\"confirmationSupp_{$i['nom']}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"confirmation\" aria-hidden=\"true\">\n <div class=\"modal-dialog\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\" id=\"confirmation\">Etes-vous sûr de vouloir supprimer cet item ?</h5>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body text-center\">\n {$i['nom']}\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Annuler</button>\n <a type=\"button\" href=\"$url_supprimer\" class=\"btn btn-danger\">Supprimer</a>\n </div>\n </div>\n </div>\n </div> \n </div>\n </div>\n </div>\n $message \n <br>\n FIN;\n\n return $html;\n }", "private function affichageItemParticipant() : string {\n $i = $this->tab[0][0];\n $i = $this->tab[0][0];\n $l = $this->tab[1][0];\n $message = Message::where('id_parent', '=', $i['id'])->where('type_parent', '=', 'item')->first();\n $testType = explode(\"/\",$i['img']);\n if (count($testType) > 1){\n $image = $i['img'];\n }else{\n $image = \"../../img/\" . $i['img'];\n }\n $reservation = \"\";\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-danger\\\">RÉSERVÉ par {$i['reserve']}</span></h5>\";\n $html_message = \"\";\n $cagnotte = \"\";\n $url_cagnotte = $this->container->router->pathFor(\"formCagnotte\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $montantCagnotte = \"\";\n if ($i['reserve'] != \"false\") {\n $html_message = \"<h3><i class=\\\"fa fa-comment-o\\\" aria-hidden=\\\"true\\\"></i>Message de la réservation :</h3><p>{$message['message']}</p>\";\n }\n if ($i['reserve'] == \"false\"){\n $url_reservationItem = $this->container->router->pathFor(\"reserve_item\", ['token' => $l['token'], 'id_item' => $i['id']]);\n $reservation = \"<a class=\\\"btn btn-primary btn-lg\\\" href=\\\"$url_reservationItem\\\" role=\\\"button\\\">Réserver l'item</a>\";\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-success\\\">PAS ENCORE RÉSERVÉ</span></h5>\";\n $html_message = \"\";\n }\n if ($i['cagnotteActive'] == \"true\") {\n $reservation = \"\";\n $cagnotte = \"<a class=\\\"btn btn-success btn-lg\\\" href=\\\"$url_cagnotte\\\" role=\\\"button\\\">Participer à la cagnotte</a>\";\n if ($i['cagnotte'] != $i['tarif']) {\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-warning\\\">CAGNOTTE EN COURS</span></h5>\";\n $montantCagnotte = \"Montant de la cagnotte : <span class=\\\"badge badge-warning\\\">{$i['cagnotte']}€</span>\";\n }\n else {\n $isReserved = \"<h5><span id='titre_item'>{$i['nom']}</span> <span class=\\\"badge badge-danger\\\">CAGNOTTE COMPLÈTE</span></h5>\";\n $cagnotte = \"<a class=\\\"btn btn-success btn-lg disabled\\\" href=\\\"$url_cagnotte\\\" role=\\\"button\\\">Participer à la cagnotte</a>\";\n }\n\n }\n if ($l['expiration']<$this->today) {\n $reservation = \"<a class=\\\"btn btn-primary btn-lg disabled\\\" href=\\\"$url_reservationItem\\\" role=\\\"button\\\">Réserver l'item</a>\";\n }\n\n if ($i['url'] != \"\") {\n $url =$i['url'];\n } else {\n $url = \"Aucun URL disponible\";\n }\n\n $tarif = \"<span class=\\\"badge badge-info\\\">{$i['tarif']}€</span>\";\n $html = <<<FIN\n <div class=\"box_item\">\n <div class=\"card flex-row\">\n <div class=\"card-header bg-transparent border-0\">\n <img src=\"$image\" onError=\"this.onerror=null;this.src='../../img/default.png';\">\n </div>\n <div class=\"card-body info_item px-5\">\n <h4 class=\"card-title\">$isReserved</h4>\n <p class=\"card-text\">{$i['descr']}</p>\n <p class=\"card-subtitle mb-2 text-muted\">Liste de référence : {$l['titre']}</p>\n <h2 class=\"card-text\">$tarif</h2>\n <h3 class=\"card-text\">$montantCagnotte</h3>\n <br>\n <label for=\"url\" >Ou trouver cet article ?</label>\n <div class=\"input-group mb-3\">\n <div class=\"input-group-prepend\"> \n <span class=\"input-group-text\">URL</span>\n </div>\n <input readonly type=\"text\" class=\"form-control\" aria-label=\"url\" value=\"{$url}\" id=\"myInput\">\n <div class=\"input-group-append\">\n <button class=\"btn btn-outline-secondary\" type=\"button\" onclick=\"copyClipboard()\">Copier</button>\n </div>\n </div>\n $reservation\n $cagnotte\n $html_message\n </div>\n \n </div>\n </div>\n FIN;\n return $html;\n }", "public function created(Item $item)\n {\n //\n }", "function ooffice_write_item( $item ) {\r\n global $odt;\r\n if ($item){\r\n $code = $item->code_item;\r\n $description_item = $item->description_item;\r\n $ref_referentiel = $item->ref_referentiel;\r\n $ref_competence = $item->ref_competence;\r\n\t\t\t$type_item = $item->type_item;\r\n\t\t\t$poids_item = $item->poids_item;\r\n\t\t\t$empreinte_item = $item->empreinte_item;\r\n\t\t\t$num_item = $item->num_item;\r\n $odt->SetFont('Arial','B',9); \r\n \t $odt->Write(0, recode_utf8_vers_latin1(trim(stripslashes($code))));\r\n \t \t$odt->Ln(1);\r\n \t \t$odt->SetFont('Arial','I',9);\r\n \t $odt->Write(0, recode_utf8_vers_latin1(trim(stripslashes($description_item))));\r\n \t $odt->Ln(1);\r\n \t $odt->SetFont('Arial','',9);\r\n $odt->Write(0, recode_utf8_vers_latin1(trim(get_string('t_item','referentiel').\" : \".$type_item.\", \".get_string('p_item','referentiel').\" : \".$poids_item.\", \".get_string('e_item','referentiel').\" : \".$empreinte_item)));\r\n $odt->Ln(1);\r\n } \r\n }", "public function insertItem($item){\n\t\t$hour = date ( 'H', strtotime ( $item->list_time ) );\n\t\t$this->hours[$hour][DayShelfStrategy::HOUR_FIELD_ITEMLIST][] = $item;\n\t}", "function addItemAtBeginOfTodos($item){\n\t\t\t\t$arTmp = array();\n\n\t\t\t\t//corro los indices en uno asi puedo insertar el item\n\t\t\t\tif (count($this->Todos())>0)\n\t\t\t\t{\n\t\t\t\t\tforeach($this->Todos() as $k => $r){\n\t\t\t\t\t\t$k++;\n\t\t\t\t\t\t$arTmp[$k] = $r;\n\t\t\t\t\t}\n\t\t\t\t}\n \n\t\t\t\t$this->todos = $arTmp;\n\t\t\t\t$arTmp = null;\n\t\t\t\t$this->addItemAtBeginOf($this->todos, $item);\n\t\t\t}", "abstract protected function onBeforeAdd($oItem);", "public function column_created_timestamp($item)\n {\n }", "public function ___added(Saveable $item) {\n\t\t$this->log(\"Added\", $item);\n\t}", "abstract public function add_item();", "public function decorateContents()\n {\n $decoratedItems = array();\n\n foreach ($this->app['publishing.items'] as $item) {\n $this->app['publishing.active_item'] = $item;\n\n // filter the original item content before decorating it\n $event = new BaseEvent($this->app);\n $this->app->dispatch(Events::PRE_DECORATE, $event);\n\n // Do nothing to decorate the item\n\n $event = new BaseEvent($this->app);\n $this->app->dispatch(Events::POST_DECORATE, $event);\n\n // get again 'item' object because POST_DECORATE event can modify it\n $decoratedItems[] = $this->app['publishing.active_item'];\n }\n\n $this->app['publishing.items'] = $decoratedItems;\n }", "function write_item( $item ) {\r\n global $CFG;\r\n // initial string;\r\n $expout = \"\";\r\n // add comment\r\n // $expout .= \"\\n\\n<!-- item: $item->id -->\\n\";\r\n\t\t//\r\n\t\tif ($item){\r\n\t\t\t// DEBUG\r\n\t\t\t// echo \"<br />\\n\";\r\n\t\t\t// print_r($item);\r\n\t\t\t$id = $this->writeraw( $item->id );\r\n $code = $this->writeraw( trim($item->code_item));\r\n $description_item = $this->writetext(trim($item->description_item));\r\n $ref_referentiel = $this->writeraw( $item->ref_referentiel);\r\n $ref_competence = $this->writeraw( $item->ref_competence);\r\n\t\t\t$type_item = $this->writeraw( trim($item->type_item));\r\n\t\t\t$poids_item = $this->writeraw( $item->poids_item);\r\n\t\t\t$empreinte_item = $this->writeraw( $item->empreinte_item);\r\n\t\t\t$num_item = $this->writeraw( $item->num_item);\r\n $expout .= \" <item>\\n\";\r\n\t\t\t// $expout .= \" <id>$id</id>\\n\";\r\n\t\t\t$expout .= \" <code>$code</code>\\n\";\r\n $expout .= \" <description_item>\\n$description_item</description_item>\\n\";\r\n // $expout .= \" <ref_referentiel>$ref_referentiel</ref_referentiel>\\n\";\r\n // $expout .= \" <ref_competence>$ref_competence</ref_competence>\\n\";\r\n $expout .= \" <type_item>$type_item</type_item>\\n\";\r\n $expout .= \" <poids_item>$poids_item</poids_item>\\n\";\r\n $expout .= \" <empreinte_item>$empreinte_item</empreinte_item>\\n\";\r\n $expout .= \" <num_item>$num_item</num_item>\\n\";\r\n\t\t\t$expout .= \" </item>\\n\\n\";\r\n }\r\n return $expout;\r\n }", "function exportar_componentes_item($item)\n\t{\n\t\tif (toba_info_editores::existe_item($item, $this->get_id())) {\n\t\t\t$arbol = toba_info_editores::get_arbol_componentes_item($this->get_id(), $item);\n\t\t\t$this->manejador_interface->mensaje(\"Exportando componentes\", false);\n\t\t\tforeach($arbol as $componente) {\n\t\t\t\t$this->exportar_componente($componente['tipo'], $componente);\n\t\t\t\t$this->manejador_interface->progreso_avanzar();\n\t\t\t}\n\t\t\t$this->manejador_interface->progreso_fin();\n\t\t} else {\n\t\t\ttoba_logger::instancia()->error(\"No existe el item $item\");\n\t\t\tthrow new toba_error_def('El item solicitado no existe o no se encuentra, revise el log');\n\t\t}\n\t}", "public function ITEM($itemid) { $this->__construct($itemid); }", "protected function push(Component $item)\n\t{\n\t\t$this->items[] = $item;\n\t}", "public function makeAction(): void\n {\n $sql = 'UPDATE #__enikeishik_ufmexample_items' . \n ' SET marked=1, marked_at=NOW()' . \n ' WHERE id=' . $this->params['itemId']->value;\n $this->db->query($sql);\n }", "abstract protected function saveItems();", "public function column_created($item)\n {\n }", "public function onReloadPedidoItemPedido( $param )\n {\n $items = TSession::getValue('item_pedido_items'); \n\n $this->item_pedido_list->clear(); \n\n if($items) \n { \n $cont = 1; \n foreach ($items as $key => $item) \n {\n $rowItem = new StdClass;\n\n $action_del = new TAction(array($this, 'onDeleteItemPedido')); \n $action_del->setParameter('item_pedido_id_row_id', $key); \n\n $action_edi = new TAction(array($this, 'onEditItemPedido')); \n $action_edi->setParameter('item_pedido_id_row_id', $key); \n\n $button_del = new TButton('delete_item_pedido'.$cont);\n $button_del->class = 'btn btn-default btn-sm';\n $button_del->setAction($action_del, '');\n $button_del->setImage('fa:trash-o'); \n $button_del->setFormName($this->form->getName());\n\n $button_edi = new TButton('edit_item_pedido'.$cont);\n $button_edi->class = 'btn btn-default btn-sm';\n $button_edi->setAction($action_edi, '');\n $button_edi->setImage('bs:edit');\n $button_edi->setFormName($this->form->getName());\n\n $rowItem->edit = $button_edi;\n $rowItem->delete = $button_del;\n \n $rowItem->item_pedido_produto_id = '';\n \n if (isset($item['item_pedido_produto_id']) && $item['item_pedido_produto_id'])\n {\n TTransaction::open('microerp');\n $produto = Produto::find($item['item_pedido_produto_id']);\n $rowItem->item_pedido_produto_id = $produto->render('{nome}');\n TTransaction::close();\n }\n \n $rowItem->item_pedido_quantidade = isset($item['item_pedido_quantidade']) ? $item['item_pedido_quantidade'] : '';\n $rowItem->item_pedido_valor = isset($item['item_pedido_valor']) ? $item['item_pedido_valor'] : '';\n\n $this->item_pedido_list->addItem($rowItem);\n $cont ++;\n } \n } \n }", "function save(List8D_Model_Item $item) {\n\t\t//$this->_db->setFetchMode(Zend_Db::FETCH_OBJ);\n\t\t\n\t\t$objectData = $this->getObjectDataArray($item);\n\t\t\n\t\tif($item->getId() === null){\n\t\t\t//insert\n\t\t\t$objectData['created'] = date('Y-m-d H:m:s');\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t$this->getDbTable()->insert($objectData);\n\t\t\t$item->setId($this->getDbTable()->getAdapter()->lastInsertId());\n\t\t\t\n\t\t\t// creating a new item, so add some data by default\n\t\t\t//$item->setPrivateNotes('');\n\t\t\t//$item->setCoreText(0);\n\t\t\t//$item->setRecommendedForPurchase(0);\n\t\t\t\n\t\t\t// log the insert/duplicate\n\t\t\tif ($item->getDuplicate()) {\n\t\t\t\t$item->log(array('action'=>'duplicate', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>'', 'value_from'=>$item->getDuplicate(), 'value_to'=>''));\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$item->log(array('action'=>'insert', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId()));\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\t//update\n\t\t\t$objectData['updated'] = date('Y-m-d H:m:s');\n\t\t\t\n\t\t\t// we have to do a select first to find out what the current values are for logging (see below)\n\t\t\t$existingData = $this->getDbTable()->fetchAll($this->getDbTable()->select()->where( 'id = ?', $item->getId()));\n\t\t\t\n\t\t\t$this->getDbTable()->update($objectData, \"id = \".$item->getId());\n\t\t\t\n\t\t\t// log changes\n\t\t\t// go through every piece of data for the object and if it's changed, make a separate log entry for it\n\t\t\tforeach ($objectData as $key=>$value) {\n\t\t\t\tif ($objectData[$key] != $existingData[0][$key]) {\n\t\t\t\t\t$item->log(array('action'=>'update', 'table'=>$this->getDbTable()->info('name'), 'id'=>$item->getId(), 'column'=>$key, 'value_from'=>$existingData[0][$key], 'value_to'=>$objectData[$key]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$this->saveData($item);\n\t}", "abstract protected function renderItems(): string;", "function getItemJs(&$transId, &$item) {\n return <<<HTML\nga('ecommerce:addItem', {\n 'id': '$transId',\n 'name': '{$item['nombreweleda']}',\n 'sku': '{$item['codigo']}',\n 'category': '{$item['familia_linea']}',\n 'price': '{$item['precio']}',\n 'quantity': '{$item['cantidad']}'\n});\nHTML;\n}", "function generate_do_post_meta_item($item)\n{\n if ('date' === $item) {\n $date = apply_filters('generate_post_date', true);\n\n $time_string = '';\n\n if (get_the_time('U') !== get_the_modified_time('U')) {\n $time_string = '<time class=\"updated\" datetime=\"%3$s\" itemprop=\"dateModified\">%4$s</time>' . $time_string;\n } else {\n $time_string = '<time class=\"entry-date published\" datetime=\"%1$s\" itemprop=\"datePublished\">%2$s</time>' . $time_string;\n }\n\n $time_string = sprintf($time_string,\n esc_attr(get_the_date('c')),\n esc_html(get_the_date()),\n esc_attr(get_the_modified_date('c')),\n esc_html(get_the_modified_date())\n );\n\n // If our date is enabled, show it.\n if ($date) {\n echo apply_filters('generate_post_date_output',\n sprintf( // WPCS: XSS ok, sanitization ok.\n '<span class=\"posted-on\">%1$s<a href=\"%2$s\" title=\"%3$s\" rel=\"bookmark\">%4$s</a></span>&nbsp;',\n apply_filters('generate_inside_post_meta_item_output', '', 'date'),\n esc_url(get_permalink()),\n esc_attr(get_the_time()),\n $time_string\n ),\n $time_string);\n }\n }\n\n if ('author' === $item) {\n $author = apply_filters('generate_post_author', true);\n\n if ($author) {\n echo apply_filters('generate_post_author_output',\n sprintf('<span class=\"byline\">%1$s<span class=\"author vcard\" %5$s><a class=\"url fn n\" href=\"%2$s\" title=\"%3$s\" rel=\"author\" itemprop=\"url\"><span class=\"author-name\" itemprop=\"name\">%4$s</span></a></span></span> ',\n apply_filters('generate_inside_post_meta_item_output', '', 'author'),\n esc_url(get_author_posts_url(get_the_author_meta('ID'))),\n /* translators: 1: Author name */\n\n esc_attr(sprintf(__('View all posts by %s', 'generatepress'), get_the_author())),\n\n esc_html(get_the_author()),\n generate_get_microdata('post-author')\n )\n );\n }\n }\n\n if ('categories' === $item) {\n $categories = apply_filters('generate_show_categories', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'categories');\n $categories_list = get_the_category_list($term_separator);\n\n if ($categories_list && $categories) {\n echo apply_filters('generate_category_list_output',\n sprintf('<span class=\"cat-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Categories', 'Used before category names.', 'generatepress'),\n $categories_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'categories')\n )\n );\n }\n }\n\n if ('tags' === $item) {\n $tags = apply_filters('generate_show_tags', true);\n\n $term_separator = apply_filters('generate_term_separator', _x(', ', 'Used between list items, there is a space after the comma.', 'generatepress'), 'tags');\n $tags_list = get_the_tag_list('', $term_separator);\n\n if ($tags_list && $tags) {\n echo apply_filters('generate_tag_list_output',\n sprintf('<span class=\"tags-links\">%3$s<span class=\"screen-reader-text\">%1$s </span>%2$s</span> ', // WPCS: XSS ok, sanitization ok.\n esc_html_x('Tags', 'Used before tag names.', 'generatepress'),\n $tags_list,\n apply_filters('generate_inside_post_meta_item_output', '', 'tags')\n )\n );\n }\n }\n\n if ('comments-link' === $item) {\n $comments = apply_filters('generate_show_comments', true);\n\n if ($comments && !post_password_required() && (comments_open() || get_comments_number())) {\n echo '<span class=\"comments-link\">';\n echo apply_filters('generate_inside_post_meta_item_output', '', 'comments-link');\n comments_popup_link(__('Leave a comment', 'generatepress'), __('1 Comment', 'generatepress'), __('% Comments', 'generatepress'));\n echo '</span> ';\n }\n }\n\n /**\n * generate_post_meta_items hook.\n *\n * @since 2.4\n */\n do_action('generate_post_meta_items', $item);\n}", "public function the_item() {\n\t\t$this->in_the_loop = true;\n\t\t$this->{$this->loop_vars['item_name']} = $this->next_item();\n\n\t\t// loop has just started\n\t\tif ( 0 === $this->{$this->loop_vars['current_item']} ) {\n\t\t\tdo_action( \"{$this->plugin_prefix}_{$this->item_name}_start\" );\n\t\t}\n\t}", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "function rec($log_item)\n\t{\n\t\t$this->items[] = $log_item;\n\t}", "public function tick()\n {\n // Is not in map: Return Generic Item\n $category = $this->categoryFactory->getCategoryInstance($this->name);\n $category->applyTick($this);\n }", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "function add($item);", "function setItemSystemFields($data, $item){\n if ($this->debug_mode)\n echo $this->ClassName . \"setItemSystemFields();\" . \"<HR>\";\n foreach ($item as $key => $value) {\n \tif($key == '_lastmodified'){\n \t\tcontinue;\n \t}\n if ((substr($key, 0, 1) == \"_\") && (! isset($data[$key]))) {\n $data[$key] = $value;\n }\n }\n if (isset($data['_lastmodified'])) {\n \tunset ($data['_lastmodified']);\n }\n }", "public function addItem($item) {\n\t\t$this->result .= '<li>' . $item . '</li>' . PHP_EOL;\n\t}", "private function makeItemPurchase() : void\n {\n $this->item->available = $this->item->available - 1;\n $this->coinService->setCoinCount(\n $this->coinService->getCurrenCoinCount() - $this->item->cost\n );\n $this->item->save();\n }", "private function endItem()\n {\n if ($this->version == self::Turbo) {\n echo '</item>' . PHP_EOL;\n }\n }", "private function startItem($about = false)\n { if ($this->version == self::Turbo) {\n echo '<item turbo=\"true\">' . PHP_EOL;\n }\n }", "protected function unshift(Component $item)\n\t{\n\t\tarray_unshift($this->items, $item);\n\t}", "public function createNewItem();", "function getItemJs(&$transId, &$item) {\r\n return <<<HTML\r\nga('ecommerce:addItem', {\r\n 'id': '$transId',\r\n 'name': '{$item['name']}',\r\n 'sku': '{$item['sku']}',\r\n 'category': '{$item['category']}',\r\n 'price': '{$item['price']}',\r\n 'quantity': '{$item['quantity']}'\r\n});\r\nHTML;\r\n }", "public function add_tentative($item)\n\t\t{\n\t\t\tparent::add_item($item,'tentative_items');\n\t\t}", "public function decorate()\n {\n\n $this->element->addItemButton\n ->addClass('btn-sm push-top')\n ->appendContent(' <i class=\"btr bt-plus btn-no-anim\"></i>')\n ;\n\n $this->element->removeItemButton->content->clear();\n $this->element->removeItemButton->content('<i class=\"btr bt-trash\" style=\"margin:0\"></i>');\n\n }", "private function print_item($item) {\n global $DB, $CFG;\n\n require_once($CFG->libdir . '/filelib.php');\n\n //is the item a template?\n if (!$item->feedback AND $item->template) {\n $template = $DB->get_record('feedback_template', array('id'=>$item->template));\n if ($template->ispublic) {\n $context = context_system::instance();\n } else {\n $context = context_course::instance($template->course);\n }\n $filearea = 'template';\n } else {\n $cm = get_coursemodule_from_instance('feedback', $item->feedback);\n $context = context_module::instance($cm->id);\n $filearea = 'item';\n }\n\n $item->presentationformat = FORMAT_HTML;\n $item->presentationtrust = 1;\n\n $output = file_rewrite_pluginfile_urls($item->presentation,\n 'pluginfile.php',\n $context->id,\n 'mod_feedback',\n $filearea,\n $item->id);\n\n $formatoptions = array('overflowdiv'=>true, 'trusted'=>$CFG->enabletrusttext);\n echo format_text($output, FORMAT_HTML, $formatoptions);\n }", "public function renderItems()\n {\n $list = [];\n if (($before = $this->renderBeforeItemList()) !== null) {\n $list[] = $before;\n }\n $list[] = parent::renderItems();\n\n if (($after = $this->renderAfterItemList()) !== null) {\n $list[] = $after;\n }\n\n return implode('', $list);\n }", "public function createItem( $preparedItem ) {\n\t}", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "public function prepare_items()\n {\n }", "function event_PreItem($data) {\n global $item;\n $item = &$data[\"item\"];\n $this->authorid = $item->authorid;\n if (strstr($item->body . \" \" . $item->more, \"<%Podcast(\")) {\n $item->body = preg_replace_callback(\"#<\\%Podcast\\((.*?)\\|(.*?)\\)%\\>#\", array(&$this, 'replaceCallback'), $item->body);\n $item->mmore = preg_replace_callback(\"#<\\%Podcast\\((.*?)\\|(.*?)\\)%\\>#\", array(&$this, 'replaceCallback'), $item->more);\n }\n }", "public function prepare_items()\n {\n }", "public function addLatest($item, $id){\n\n $storedItem = ['qty' => 0, 'productPrice' => $item->productPrice, 'item' => $item];\n if($this->items){\n if(array_key_exists($id, $this->items)){\n $storedItem = $this->items[$id];\n }\n }\n\n $storedItem['qty']++;\n $storedItem['productPrice'] = $item->productPrice * $storedItem['qty'];\n $this->items[$id] = $storedItem;\n $this->totalQty++;\n $this->totalPrice += $item->productPrice;\n }", "function _add_block_template_info($template_item)\n {\n }", "public function saveItem(Item $item) {\n\t\tif ($item->getId() == -1) {\n\t\t\t$q = $this->bdd->prepare('INSERT INTO items SET created = :created, expired = :expired, title = :title, link = :link, affiliate_link = :affiliate_link, content = :content, photo_link = :photo_link, code = :code, normal_price = :normal_price, promo_price = :promo_price, discount = :discount, quantity = :quantity, shop = :shop, status = :status');\n\t\t} else {\n\t\t\t$q = $this->bdd->prepare('UPDATE items SET created = :created, expired = :expired, title = :title, link = :link, affiliate_link = :affiliate_link, content = :content, photo_link = :photo_link, code = :code, normal_price = :normal_price, promo_price = :promo_price, discount = :discount, quantity = :quantity, shop = :shop, status = :status WHERE id = :id');\n\t\t\t$q->bindValue(':id', $item->getId(), PDO::PARAM_INT);\n\t\t}\n\t\t$q->bindValue(':created', $item->getCreated(), PDO::PARAM_STR);\n\t\t$q->bindValue(':expired', $item->getExpired(), PDO::PARAM_STR);\n\t\t$q->bindValue(':title', $item->getTitle(), PDO::PARAM_STR);\n\t\t$q->bindValue(':link', $item->getLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':affiliate_link', $item->getAffiliateLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':content', $item->getContent(), PDO::PARAM_STR);\n\t\t$q->bindValue(':photo_link', $item->getPhotoLink(), PDO::PARAM_STR);\n\t\t$q->bindValue(':code', $item->getCode(), PDO::PARAM_STR);\n\t\t$q->bindValue(':normal_price', $item->getNormalPrice(), PDO::PARAM_STR);\n\t\t$q->bindValue(':promo_price', $item->getPromoPrice(), PDO::PARAM_STR);\n\t\t$q->bindValue(':discount', $item->getDiscount(), PDO::PARAM_INT);\n\t\t$q->bindValue(':quantity', $item->getQuantity(), PDO::PARAM_INT);\n\t\t$q->bindValue(':shop', $item->getShop(), PDO::PARAM_STR);\n\t\t$q->bindValue(':status', $item->getStatus(), PDO::PARAM_STR);\n\n\n\t\t$q->execute();\n\t\tif ($item->getId() == -1) $item->setId($this->bdd->lastInsertId());\n\t}", "public function hookAfterSaveItem($args) {\n $item = $args['record'];\n if ($item->item_type_id != get_option('iiifitems_annotation_item_type')) {\n $json = IiifItems_Util_Canvas::buildCanvas($item);\n IiifApiBridge_Util_JsonTransform::transformCanvas($json, $item);\n if ($args['insert']) {\n IiifApiBridge_Queue_Canvas::create($item, $json);\n } else {\n IiifApiBridge_Queue_Canvas::update($item, $json);\n }\n if (!empty($item->collection_id)) {\n $this->hookAfterSaveCollection(array(\n 'record' => get_record_by_id('Collection', $item->collection_id),\n 'insert' => false,\n ));\n }\n } else {\n $annotatedItem = IiifItems_Util_Annotation::findAnnotatedItemFor($item);\n $json = IiifItems_Util_Annotation::buildAnnotation($item);\n IiifApiBridge_Util_JsonTransform::transformAnnotation($json, $item, $annotatedItem);\n if ($args['insert']) {\n IiifApiBridge_Queue_Annotation::create($item, $json);\n } else {\n IiifApiBridge_Queue_Annotation::update($item, $json);\n }\n if (!empty($annotatedItem->collection_id)) {\n $this->hookAfterSaveCollection(array(\n 'record' => get_record_by_id('Collection', $annotatedItem->collection_id),\n 'insert' => false,\n ));\n }\n }\n }", "function maquetacioItemsAgendaHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE , $CONFIG_URLUPLOADIM; \n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n \n $registre['ORIGEN'] = '<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . $registre['ID'] . '/' . $registre['URL_TITOL'] . '\" rel=\"external\" style=\"text-decoration:none;\">'.$registre['TITOL'].'</a></h4>';\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n \n return '<li id=\"ageh_reg' . $id_registre . '\" class=\"box removable stylable '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t ' . $imatge . '\n\t\t\t\t'.$registre['ORIGEN'].'\n\t\t\t\t'.$registre['RESUM'].'\n\t\t\t</div>\n\t\t</li>';\n}", "function maquetacioItemsNotHoudini($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $id_newsletter, $registre, $pathEditora)\n{\n global $CONFIG_URLBASE, $CONFIG_URLUPLOADIM, $CONFIG_estilsElement;\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMATGE1'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMATGE1'] . '\" style=\"width: 159px;\" class=\"left\"/>' : '';\n return '<li id=\"noth_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'. $imatge .'\n\t\t\t\t<h4><a href=\"'.$CONFIG_URLBASE . $pathEditora . '/' . $registre['ID'] . '/' . $registre['URL_TITOL'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "function tpl_item( $post, $include_date = true ) {\n\n\ttpl('item', 'default', array(\n\t\t'post' => $post\n\t) );\n\n}", "public function do_head_items()\n {\n }", "public function __construct($item) {\n\t\t$this->item = $item;\n\t}", "function additem()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $this->global['pageTitle'] = '新增轮播图';\n $this->global['pageName'] = 'carousel_add';\n $data = '';\n\n $this->loadViews(\"carousel_add\", $this->global, $data, NULL);\n }\n }", "function maquetacioItemsRSS($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n //ORIGEN RSS\n $registre['origen'] = ($registre['LINK1'] != '') ? '<a href=\"'.$registre['LINK1'].'\" rel=\"external\" style=\"color: '.$color_titol.'; text-decoration:none;\">'.$registre['TITOL'].'</a>' : '';\n\n\n return '<li id=\"rss_reg' . $id_registre . '\" class=\"box removable stylable '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t<h4>'.$registre['origen'].'</h4>\n\t\t\t\t'. $registre['RESUM'].'\n\t\t\t</div>\n\t\t</li>';\n}", "public function items ()\n {\n }", "function getfair_currency_menu_item( $item ) {\r\n if($item->title == 'Your Currency'){\r\n $item->title = 'from: '.edd_currency_get_stored_currency();\r\n }\r\n return $item;\r\n}", "function maquetacioItemsBlog($model, $columna, $nomCaixa, $tipusCaixa, $ordre, $estilCaixa, $estilLlistat, $estilElement, $id_registre, $registre)\n{\n\n $parametres = '<input type=\"hidden\" name=\"newsletter['.htmlspecialchars($model).']['.htmlspecialchars($columna).']['.htmlspecialchars($nomCaixa).']['.htmlspecialchars($tipusCaixa).'][]['.htmlspecialchars($estilCaixa).']['.htmlspecialchars($estilLlistat).']['.htmlspecialchars($estilElement).']\" value=\"'.htmlspecialchars($id_registre).'\" />';\n\n $imatge = $registre['IMG'] != '' ? '<img src=\"' . $CONFIG_URLUPLOADIM . $registre['IMG'] . '\" style=\"width:159px\" class=\"left\"/>' : '';\n\n return '<li id=\"bloc_reg' . $id_registre . '\" class=\"box removable stylable clearfix '.$estilElement.'\">\n\t\t\t'.$parametres.'\n\t\t\t<div class=\"spacer clearfix\">\n\t\t\t\t'.$imatge.'\n\t\t\t\t<p>'.$registre['DATA_POST'].'</p>\n\t\t\t\t<h4><a href=\"'.$info_registre['guid'].'\" rel=\"external\">'.$registre['TITOL'].'</a></h4>\n\t\t\t\t<p>'.$registre['RESUM_MOSTRAR'].'</p>\n\t\t\t</div>\n\t\t</li>';\n}", "public function updateItems()\n {\n if (count($this->items)) {\n foreach ($this->items as $item) {\n $item->setQuote($this);\n }\n }\n }", "public function drawSpecificItem($item){\r\n $result=\"\";\r\n if ($item=='projects') {\r\n $prj=new Project();\r\n $result .=\"<table><tr><td class='label' valign='top'><label>\" . i18n('projects') . \"&nbsp;:&nbsp;</label>\";\r\n $result .=\"</td><td>\";\r\n $result .= $prj->drawProjectsList(array('idRecipient'=>$this->id,'idle'=>'0'));\r\n $result .=\"</td></tr></table>\";\r\n return $result;\r\n } else if ($item=='contacts') {\r\n $con=new Contact();\r\n $result .=\"<table><tr><td class='label' valign='top'><label>\" . i18n('contacts') . \"&nbsp;:&nbsp;</label>\";\r\n $result .=\"</td><td>\";\r\n $result .= $con->drawContactsList(array('idRecipient'=>$this->id,'idle'=>'0'));\r\n $result .=\"</td></tr></table>\";\r\n return $result;\r\n }\r\n }", "abstract protected function setTemplate($item);", "public function testBurnCollectionItem()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->insertGbaseItem($this->getEntry());\n $this->setEntry($entry);\n $entryId = $this->getEntry()->getId();\n $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());\n $this->getItem()\n ->setGbaseItemId($entryId)\n ->setPublished($published);\n\n if ($expires = $this->_getAttributeValue('expiration_date')) {\n $expires = $this->gBaseDate2DateTime($expires);\n $this->getItem()->setExpires($expires);\n }\n }", "public static function nuevo($item) {\n }", "public function __construct($item)\n {\n $this->item = $item;\n }", "public function add_item($zajlib_feed_item){\n\t\t$this->items[] = $zajlib_feed_item; \n\t}", "public function ItemParams2( $observer )\n {\n $items=$observer->getItems();\n foreach($items as $item){\n ////Mage::log($item->getId());\n $quoteItems = $item->getQuote()->getAllVisibleItems();\n foreach ($quoteItems as $quoteItem) {\n ////Mage::log($quoteItem->getItemId());\n //Mage::log($quoteItem->getItemId());\n}\n}\n\n }", "abstract public function makeBlankItem();", "public static function delayedPush($timestamp, $item)\n\t{\n\t\t$timestamp = self::getTimestamp($timestamp);\n\t\t$redis = Resque::redis();\n\t\t$redis->zadd(self::SET_KEY, $timestamp, json_encode($item));\n\t}", "public function testGetItem()\n {\n\n // Create item.\n $item = $this->__item();\n\n // Create text.\n $text = $this->__text($item);\n\n // Check ids.\n $this->assertEquals($text->getItem()->id, $item->id);\n\n }", "public function createImportMessage($item)\n {\n if ($this->isMerged) {\n $message = $GLOBALS['TL_LANG']['tl_entity_import_config']['externalImportMerged'];\n $method = ImporterHelper::MESSAGE_METHOD_ADDINFO;\n } else {\n $message = $GLOBALS['TL_LANG']['tl_entity_import_config']['externalImport'];\n $method = ImporterHelper::MESSAGE_METHOD_ADDCONFIRMATION;\n }\n\n if ($this->dryRun) {\n $message = $GLOBALS['TL_LANG']['tl_entity_import_config']['externalDry'];\n }\n\n Message::$method(sprintf($message, $item->title));\n }", "public function addBed($item, $id){\n\n $storedItem = ['qty' => 0, 'productPrice' => $item->productPrice, 'item' => $item];\n if($this->items){\n if(array_key_exists($id, $this->items)){\n $storedItem = $this->items[$id];\n }\n }\n\n $storedItem['qty']++;\n $storedItem['productPrice'] = $item->productPrice * $storedItem['qty'];\n $this->items[$id] = $storedItem;\n $this->totalQty++;\n $this->totalPrice += $item->productPrice;\n }", "abstract public function print_item();", "public function __toString(){\t\t\n\t\t$string = '<div class=\"item_wrapper\" id=\"item-'.$this->itemid.'\">';\n\t\t$string .= '<img class=\"itemimage\" src='.HOME.'images/items/'.$this->image.' alt = '.$this->itemname.' />';\n\t\t$string .='<div class = \"item_info\">';\n\t\t// We want to prevent unregistered user from entering the order item page\n\t\tif(isUser()) \n\t\t\t$string .= '<h3><a href=\"'.HOME.'item/'.$this->itemid.'\" title=\"'. __('Order').'\">'.$this->itemname.'</a></h3>';\n\t\telse\n\t\t\t$string .= '<h3>'.$this->itemname.'</h3>';\n\t\t\n\t\t$string .= '<div class=\"item_price\"><table>';\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tswitch ($this->itemtype){\n\t\t\tcase 1:\t\t\t\t\n\t\t\t\tif($this->prices != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">330cc can</td><td> %s </td></tr>'),$this->prices);\n\t\t\t\tif($this->pricem != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">500cc bottle</td><td> %s </td></tr>'),$this->pricem);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">מחיר: </td><td> %s </td></tr>'),$this->prices);\t\n\t\t\t\tbreak;\n\t\t\tcase 3: \t\t\t\t\n\t\t\t\tif($this->prices != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Regular</td><td> %s </td></tr>'),$this->prices);\n\t\t\t\tif($this->pricem != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Double</td><td> %s </td></tr>'),$this->pricem);\t\t\t\t\n\t\t\t\tif($this->pricel != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Triple</td><td> %s </td></tr>'),$this->pricel);\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\tcase 5:\n\t\t\t//\t$string .= sprintf(__('<tr><td class=\"desc\">Small</td><td> %s </td></tr><tr><td class=\"price\">Medium</td><td> %s</td></tr><tr><td class=\"price\">Large</td><td> %s</td></tr>'),$this->prices, $this->pricem, $this->pricel);\t\t\t\n\t\t\t\tif($this->prices != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Small</td><td> %s </td></tr>'),$this->prices);\n\t\t\t\tif($this->pricem != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Medium</td><td> %s </td></tr>'),$this->pricem);\t\t\t\t\n\t\t\t\tif($this->pricel != \"0.00\")\n\t\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">Large</td><td> %s </td></tr>'),$this->pricel);\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\t$string .= sprintf(__('<tr><td class=\"desc\">For 3</td><td> %s </td></tr><tr><td class=\"price\">For 4</td><td> %s</td></tr>'), $this->pricem, $this->pricel);\t\t\t\n\t\t\t\tbreak;\t\t\t\n\t\t\t}\t\t\n\t\t$string .= '</table></div>';\n\t\t$string .= '</div>';\n\t\t// We want to prevent unregistered user from entering the order item page\n\t\tif(isUser()){\t\n\t\t\t$string .= '<a href=\"'.HOME.'item/'.$this->itemid.'\" title=\"'.__('Add this item to your cart').'\"><img class=\"addtoorder\" src=\"'.HOME.'images/addtocart.png\" alt=\"Add to order\"></a>';\n\t\t}\n\t\t$string .='</div>';\n\t\treturn $string;\t\t\n\t}", "public function insert($item): void;", "abstract protected function transformItem($item);", "private function getItemXml($item)\n {\n $qty = (int)$item->getQty() ? (int)$item->getQty() : 1;\n $product = Mage::getModel('catalog/product')->load( $item->getProductId() );\n\n\n\n //$this->_totalPrice += $product->getFinalPrice() * $qty;\n if($this->getConfig('product_cost') && $product->getCost() > 0)\n {\n $this->_totalPrice += $product->getCost() * $qty;\n }\n else\n {\n $this->log(\"p p \" . $product->getFinalPrice() . \" and i P \". $product->getPrice());\n $this->_totalPrice += $product->getFinalPrice() * $qty;\n }\n\n $height = $this->getConvertedMeasure($product->getHeight(), $product->getDimensionUnits());\n //$weight = $this->getConvertedWeight($product->getWeight(),$product->getWeightUnits())*$qty;\n $weight = $this->getConvertedWeight($product->getWeight(),$product->getWeightMeasure());\n $width = $this->getConvertedMeasure($product->getWidth(), $product->getDimensionUnits());\n $length = $this->getConvertedMeasure($product->getLength(), $product->getDimensionUnits());\n $title = substr($product->getSku().';'.preg_replace('/[^a-z0-9\\s\\'\\.\\_]/i','',substr($product->getName(),0,32).\" ...\"),0,32);\n $Readytoship = $product->getReadytoship();\n\n if(intval($length) < 1 || intval($width) < 1 || intval($height) < 1 )\n {\n $length = $width = $height = 1;\n }\n\n $Readytoship = \"\";\n if($product->getReadytoship() != 1)\n {\n $Readytoship = '';\n\t\t\t\n }\n\n if(ceil($weight) <= 0.0000)\n {\n $weight = .7; //default to 7.7 kg\n }\n\n if($height < 1 || !is_numeric($height))\n {\n $height = $this->_default_heightlow; // just a low default\n if($weight >= $this->_weight_low) // less than 1k no height (default 2)\n {\n $height = $this->_default_heighthigh;\n }\n\n }\n\n if($width < 1 || !is_numeric($width))\n {\n $width = $this->_default_widthlow; // just a low default\n if($weight >= $this->_weight_low)\n {\t\t\t // less than 1k no height (default 2)\n $width = $this->_default_widthhigh;\n }\n }\n\n // Create default value for length should value be missing\n if($length < 1 || !is_numeric($length))\n {\n $length = $this->_default_lengthlow; // just a low default\n if($weight >= $this->_weight_low) // less than 1k no height (default 2)\n {\n $length = $this->_default_lengthhigh;\n }\n }\n$aweight = $weight;\n/*$aheight = $height*$qty;*/\n\nif($product->getReadytoship() != 1)\n {\n \n\t\t$this->_package_height += $height; \n\t\tif($width > $this->_package_width) $this->_package_width = $width; \n\t\tif($length > $this->_package_length) $this->_package_length = $length;\n\t\t$this->shipping_weight += $aweight; \n\t\t \n\t\n\n\t\t\t\n\t\t\t $items_xml = \"\\n\n <parcel>\n <weight>{$this->shipping_weight}</weight>\n <length>{$this->_package_length}</length>\n <width>{$this->_package_width}</width>\n <height>{$this->_package_height}</height>\n</parcel>\n\";\n\t\t\t\n }\n\t\telse\n\t\t{\n\t\t\t $items_xml = \"\\n\n <parcel>\n <weight>{$aweight}</weight>\n <length>{$length}</length>\n <width>{$width}</width>\n <height>{$height}</height>\n</parcel>\n\";\n\t\t}\n\n\n \n return $items_xml;\n }", "public function items()\n {\n \n }", "function RenderItem( &$item, &$renderer, $isLast ) {\n\t\t$itemInfo['identifier'] = $item->getAttribute('identifier');\n\t\t\n\t\t$itemInfo['isLast'] = $isLast;\n\t\t\n\t\tif( $item->hasAttribute('identifierref') )\n\t\t\t$itemInfo['identifierref'] = $item->getAttribute('identifierref');\n\t\telse\n\t\t $itemInfo['identifierref'] = FALSE;\n\n\t\tif( $item->hasAttribute('isvisible') )\n\t\t $itemInfo['isvisible'] = ($item->getAttribute('isvisible')=='true')?TRUE:FALSE;\n\t\telse\n\t\t $itemInfo['isvisible'] = TRUE;\n\n\t\tif( $item->hasAttribute('parameters') )\n\t\t $itemInfo['parameters'] = $item->getAttribute('parameters');\n\t\telse\n\t\t $itemInfo['parameters'] = FALSE;\n\t\t\n\t\t$itemInfo['title'] = $this->getFirstElementValue($item, 'title');\n\t\t\n\t\t$itemInfo['adlcp_prerequisites'] = $this->getFirstElementValue($item, 'prerequisites', 'adlcp' );\n\t\t$itemInfo['adlcp_maxtimeallowed'] = $this->getFirstElementValue($item, 'maxtimeallowed', 'adlcp');\n\t\t$itemInfo['adlcp_timelimitaction'] = $this->getFirstElementValue($item, 'timelimitaction', 'adlcp');\n\t\t$itemInfo['adlcp_datafromlms'] = $this->getFirstElementValue($item, 'datafromlms', 'adlcp');\n\t\t$itemInfo['adlcp_masteryscore'] = $this->getFirstElementValue($item, 'masteryscore', 'adlcp');\n\t\t//$itemInfo['adlcp_completionthreshold'] = $this->getFirstElementValue($item, 'completionthreshold', 'adlcp');\n\t\t$threshold_elem = $this->getNodeElement($item, 'completionthreshold', 'adlcp');\n\t\tif( $threshold_elem && $threshold_elem->hasAttribute('minProgressMeasure') )\n\t\t $itemInfo['adlcp_completionthreshold'] = $threshold_elem->getAttribute('minProgressMeasure');\n\t\telse\n\t\t $itemInfo['adlcp_completionthreshold'] = '';\n\t\t\n $elem = $this->getFirstElementNode( $item, 'item');\n if( $elem )\n\t\t\t$itemInfo['isLeaf'] = FALSE;\n\t\telse\n\t\t $itemInfo['isLeaf'] = TRUE;\n\t\t \n\t\tif( $renderer == null ) {\n\t\t\tprint_r( $itemInfo );\n\t\t\t\n\t\t}\n\t\t$renderer->RenderStartItem(\t$this, $itemInfo );\n\t\t\n\t\twhile( $elem ) {\n\t\t\t$nextElem = $this->getNextElementNode( $elem );\n\t\t\t\n\t\t\t/* pass the info about the last element */\n\t\t\tif( $nextElem === NULL )\n\t\t\t $this->RenderItem( $elem, $renderer, true );\n\t\t\telse\n\t\t\t $this->RenderItem( $elem, $renderer, false );\n\t\t\t \n\t\t\t$elem = $nextElem;\n\t\t}\n\n $renderer->RenderStopItem( $this, $itemInfo );\n\n\t}", "function setOrderSend($object) { \n /* you can itentify the item with $object->Item->ShopId */ \n}", "function OnCopyItem(){\n if (! $this->error) {\n $data = array($this->item_id);\n if (strlen($this->host_library_ID)) {\n $this->library_ID = $this->host_library_ID;\n }\n if ($this->disabled_copy) {\n $this->OnAfterError();\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"&MESSAGE[]=LIBRARY_DISABLED_COPY\" . \"&\" . $this->restore);\n }\n\n if (! strlen($errors)) {\n $this->Copy($data);\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"&MESSAGE=MSG_ITEM_COPIED\" . \"&\" . $this->restore);\n }\n else {\n $this->OnAfterError();\n $this->AfterSubmitRedirect(\"?\".($this->Package!=\"\" ? \"package=\".$this->Package.\"&\" : \"\").\"page=\" . $this->listHandler . \"&\" . $this->library_ID . \"_start=\" . $this->start . \"&\" . $this->library_ID . \"_order_by=\" . $this->order_by . \"&library=\" . $this->library_ID . \"&\" . $this->library_ID . \"_parent_id=\" . $this->parent_id . \"\" . $errors . \"\" . \"&\" . $this->restore);\n }\n }\n }", "function getItems(){return $this->items;}", "static function GetItemType() { return \"\"; }", "private function endItem()\n\t{\n\t\tif($this->version == RSS2 || $this->version == RSS1)\n\t\t{\n\t\t\techo '</item>' . PHP_EOL; \n\t\t} \n\t\telse if($this->version == ATOM)\n\t\t{\n\t\t\techo \"</entry>\" . PHP_EOL;\n\t\t}\n\t}", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "public function getStamp()\n {\n return $this->_list->getStamp();\n }", "public function getStamp()\n {\n return $this->_list->getStamp();\n }", "public function getCreatedAt() {\n return $this->item->getCreatedAt();\n }", "function before_order_itemmeta($item_id, $item, $_product) {\r\r\n\t\r\r\n\t\tglobal $bookyourtravel_accommodation_helper, $bookyourtravel_tour_helper, $bookyourtravel_cruise_helper, $bookyourtravel_car_rental_helper;\r\r\n\t\t\r\r\n\t\t$product_id \t= $item['product_id'];\r\r\n\t\t$variation_id = $item['variation_id'];\r\r\n\t\t\r\r\n\t\t$variation = new WC_Product_Variation($variation_id);\r\r\n\t\t\r\r\n\t\t$accommodation_booking_id = wc_get_order_item_meta($item_id, BOOKYOURTRAVEL_WOOCOMMERCE_ACCOMMODATION_BOOKING_ID, true);\r\r\n\t\tif ($accommodation_booking_id) {\r\r\n\t\t\r\r\n\t\t\t$booking_entry = $bookyourtravel_accommodation_helper->get_accommodation_booking($accommodation_booking_id);\r\r\n\t\t\t\r\r\n\t\t\tif ($booking_entry != null && $variation != null) {\r\r\n\t\t\t\r\r\n\t\t\t\t$accommodation_id = $booking_entry->accommodation_id;\r\r\n\t\t\t\t$accommodation_obj = new BookYourTravel_Accommodation($accommodation_id);\r\r\n\t\t\t\t$room_type_obj = null;\r\r\n\t\t\t\t$room_type_id = $booking_entry->room_type_id;\r\r\n\t\t\t\tif ($room_type_id > 0) {\r\r\n\t\t\t\t\t$room_type_obj = new BookYourTravel_Room_Type($room_type_id);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$adults = $booking_entry->adults;\r\r\n\t\t\t\t$children = $booking_entry->children;\r\r\n\t\t\t\t$room_count = $booking_entry->room_count;\r\r\n\t\t\t\t$date_from = $booking_entry->date_from;\r\r\n\t\t\t\t$date_from = date($this->date_format, strtotime($date_from));\r\r\n\t\t\t\t$date_to = $booking_entry->date_to;\r\r\n\t\t\t\t$date_to = date($this->date_format, strtotime($date_to));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$extra_items_string = '';\t\t\t\t\r\r\n\t\t\t\t$extra_items_array = array();\r\r\n\t\t\t\tif (!empty($booking_entry->extra_items)) {\r\r\n\t\t\t\t\t$extra_items_array = unserialize($booking_entry->extra_items);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\tif ($extra_items_array != null) {\r\r\n\t\t\t\t\tforeach ($extra_items_array as $extra_item_id => $extra_item_quantity) {\r\r\n\t\t\t\t\t\t$extra_item_obj = new BookYourTravel_Extra_Item($extra_item_id);\r\r\n\t\t\t\t\t\t$extra_items_string .= $extra_item_quantity . ' x ' . $extra_item_obj->get_title() . ', ';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t\t$extra_items_string = trim(rtrim($extra_items_string, ', '));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$item_text = '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $accommodation_obj->get_title()) . '<br />';\r\r\n\t\t\t\tif ($room_type_obj) {\r\r\n\t\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $room_type_obj->get_title()) . '<br />';\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('Dates: %s to %s', 'bookyourtravel'), $date_from, $date_to) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('People: %d adults, %d children', 'bookyourtravel'), $adults, $children) . '<br />';\r\r\n\t\t\t\t\r\r\n\t\t\t\tif (!empty($extra_items_string)) {\r\r\n\t\t\t\t\t$item_text .= esc_html__('Extras: ', 'bookyourtravel') . $extra_items_string;\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\techo $item_text;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\r\r\n\t\t$tour_booking_id = wc_get_order_item_meta($item_id, BOOKYOURTRAVEL_WOOCOMMERCE_TOUR_BOOKING_ID, true);\r\r\n\t\tif ($tour_booking_id) {\r\r\n\t\t\r\r\n\t\t\t$booking_entry = $bookyourtravel_tour_helper->get_tour_booking($tour_booking_id);\r\r\n\t\t\t\r\r\n\t\t\tif ($booking_entry != null && $variation != null) {\r\r\n\t\t\t\r\r\n\t\t\t\t$tour_schedule = $bookyourtravel_tour_helper->get_tour_schedule($booking_entry->tour_schedule_id);\r\r\n\t\t\t\t$booking_entry->tour_id = $tour_schedule->tour_id;\r\r\n\r\r\n\t\t\t\t$tour_id = $booking_entry->tour_id;\r\r\n\t\t\t\t$tour_obj = new BookYourTravel_Tour($tour_id);\r\r\n\t\t\t\t$adults = $booking_entry->adults;\r\r\n\t\t\t\t$children = $booking_entry->children;\r\r\n\t\t\t\t$tour_date = $booking_entry->tour_date;\r\r\n\t\t\t\t$tour_date = date($this->date_format, strtotime($tour_date));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$extra_items_string = '';\t\t\t\t\r\r\n\t\t\t\t$extra_items_array = array();\r\r\n\t\t\t\tif (!empty($booking_entry->extra_items)) {\r\r\n\t\t\t\t\t$extra_items_array = unserialize($booking_entry->extra_items);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\tif ($extra_items_array != null) {\r\r\n\t\t\t\t\tforeach ($extra_items_array as $extra_item_id => $extra_item_quantity) {\r\r\n\t\t\t\t\t\t$extra_item_obj = new BookYourTravel_Extra_Item($extra_item_id);\r\r\n\t\t\t\t\t\t$extra_items_string .= $extra_item_quantity . ' x ' . $extra_item_obj->get_title() . ', ';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t\t$extra_items_string = trim(rtrim($extra_items_string, ', '));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$item_text = '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $tour_obj->get_title()) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('Tour date: %s', 'bookyourtravel'), $tour_date) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('People: %d adults, %d children', 'bookyourtravel'), $adults, $children) . '<br />';\r\r\n\t\t\t\t\r\r\n\t\t\t\tif (!empty($extra_items_string)) {\r\r\n\t\t\t\t\t$item_text .= esc_html__('Extras: ', 'bookyourtravel') . $extra_items_string;\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\techo $item_text;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\t$cruise_booking_id = wc_get_order_item_meta($item_id, BOOKYOURTRAVEL_WOOCOMMERCE_CRUISE_BOOKING_ID, true);\r\r\n\t\tif ($cruise_booking_id) {\r\r\n\t\t\r\r\n\t\t\t$booking_entry = $bookyourtravel_cruise_helper->get_cruise_booking($cruise_booking_id);\r\r\n\t\t\t\r\r\n\t\t\tif ($booking_entry != null && $variation != null) {\r\r\n\t\t\t\r\r\n\t\t\t\t$cruise_schedule = $bookyourtravel_cruise_helper->get_cruise_schedule($booking_entry->cruise_schedule_id);\r\r\n\t\t\t\t$booking_entry->tour_id = $cruise_schedule->cruise_id;\r\r\n\t\t\t\t$booking_entry->cabin_type_id = $cruise_schedule->cabin_type_id;\r\r\n\t\t\t\t\r\r\n\t\t\t\t$cruise_id = $booking_entry->cruise_id;\r\r\n\t\t\t\t$cruise_obj = new BookYourTravel_Cruise($cruise_id);\r\r\n\t\t\t\t$cabin_type_obj = null;\r\r\n\t\t\t\t$cabin_type_id = $booking_entry->cabin_type_id;\r\r\n\t\t\t\tif ($cabin_type_id > 0) {\r\r\n\t\t\t\t\t$cabin_type_obj = new BookYourTravel_Cabin_Type($cabin_type_id);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$adults = $booking_entry->adults;\r\r\n\t\t\t\t$children = $booking_entry->children;\r\r\n\t\t\t\t$cruise_date = $booking_entry->cruise_date;\r\r\n\t\t\t\t$cruise_date = date($this->date_format, strtotime($cruise_date));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$extra_items_string = '';\t\t\t\t\r\r\n\t\t\t\t$extra_items_array = array();\r\r\n\t\t\t\tif (!empty($booking_entry->extra_items)) {\r\r\n\t\t\t\t\t$extra_items_array = unserialize($booking_entry->extra_items);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\tif ($extra_items_array != null) {\r\r\n\t\t\t\t\tforeach ($extra_items_array as $extra_item_id => $extra_item_quantity) {\r\r\n\t\t\t\t\t\t$extra_item_obj = new BookYourTravel_Extra_Item($extra_item_id);\r\r\n\t\t\t\t\t\t$extra_items_string .= $extra_item_quantity . ' x ' . $extra_item_obj->get_title() . ', ';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t\t$extra_items_string = trim(rtrim($extra_items_string, ', '));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$item_text = '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $cruise_obj->get_title()) . '<br />';\r\r\n\t\t\t\tif ($cabin_type_obj) {\r\r\n\t\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $cabin_type_obj->get_title()) . '<br />';\r\r\n\t\t\t\t}\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('Cruise date: %s', 'bookyourtravel'), $cruise_date) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('People: %d adults, %d children', 'bookyourtravel'), $adults, $children) . '<br />';\r\r\n\t\t\t\t\r\r\n\t\t\t\tif (!empty($extra_items_string)) {\r\r\n\t\t\t\t\t$item_text .= esc_html__('Extras: ', 'bookyourtravel') . $extra_items_string;\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\techo $item_text;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t\t\r\r\n\t\t$car_rental_booking_id = wc_get_order_item_meta($item_id, BOOKYOURTRAVEL_WOOCOMMERCE_CAR_RENTAL_BOOKING_ID, true);\r\r\n\t\tif ($car_rental_booking_id) {\r\r\n\t\t\r\r\n\t\t\t$booking_entry = $bookyourtravel_car_rental_helper->get_car_rental_booking($car_rental_booking_id);\r\r\n\t\t\t\r\r\n\t\t\tif ($booking_entry != null && $variation != null) {\r\r\n\t\t\t\r\r\n\t\t\t\t$car_rental_id = $booking_entry->car_rental_id;\r\r\n\t\t\t\t$car_rental_obj = new BookYourTravel_Car_Rental($car_rental_id);\r\r\n\r\r\n\t\t\t\t$start_date = $booking_entry->from_day;\r\r\n\t\t\t\t$start_date = date($this->date_format, strtotime($start_date));\r\r\n\t\t\t\t$end_date = $booking_entry->to_day;\r\r\n\t\t\t\t$end_date = date($this->date_format, strtotime($end_date));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$extra_items_string = '';\t\t\t\t\r\r\n\t\t\t\t$extra_items_array = array();\r\r\n\t\t\t\tif (!empty($booking_entry->extra_items)) {\r\r\n\t\t\t\t\t$extra_items_array = unserialize($booking_entry->extra_items);\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\tif ($extra_items_array != null) {\r\r\n\t\t\t\t\tforeach ($extra_items_array as $extra_item_id => $extra_item_quantity) {\r\r\n\t\t\t\t\t\t$extra_item_obj = new BookYourTravel_Extra_Item($extra_item_id);\r\r\n\t\t\t\t\t\t$extra_items_string .= $extra_item_quantity . ' x ' . $extra_item_obj->get_title() . ', ';\r\r\n\t\t\t\t\t}\r\r\n\t\t\t\t}\r\r\n\t\t\t\r\r\n\t\t\t\t$extra_items_string = trim(rtrim($extra_items_string, ', '));\r\r\n\t\t\t\t\r\r\n\t\t\t\t$item_text = '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('%s', 'bookyourtravel'), $car_rental_obj->get_title()) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('From date: %s', 'bookyourtravel'), $start_date) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('To date: %s', 'bookyourtravel'), $end_date) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('Pick up: %s', 'bookyourtravel'), $booking_entry->pick_up_title) . '<br />';\r\r\n\t\t\t\t$item_text .= sprintf(esc_html__('Drop off: %s', 'bookyourtravel'), $booking_entry->drop_off_title) . '<br />';\r\r\n\t\t\t\t\r\r\n\t\t\t\tif (!empty($extra_items_string)) {\r\r\n\t\t\t\t\t$item_text .= esc_html__('Extras: ', 'bookyourtravel') . $extra_items_string;\r\r\n\t\t\t\t}\r\r\n\t\t\t\t\r\r\n\t\t\t\techo $item_text;\r\r\n\t\t\t}\r\r\n\t\t}\r\r\n\t}", "public function add()\n {\n $item = new stdClass();\n $item->item_id = null;\n $item->barcode = null;\n $item->price = null;\n $item->stock = null;\n $item->name = null;\n $item->category_id = null;\n $query_category = $this->categorys_m->get();\n $query_unit = $this->units_m->get();\n $unit[null] = '-Pilih-';\n foreach ($query_unit->result() as $u) {\n\n $unit[$u->unit_id] = $u->name;\n };\n $data = [\n 'page' => 'add',\n 'row' => $item,\n 'category' => $query_category,\n 'unit' => $unit,\n 'selectedunit' => null\n ];\n $this->template->load('template', 'product/item/item_add', $data);\n }" ]
[ "0.6360233", "0.6333774", "0.6244288", "0.624334", "0.61648977", "0.5885725", "0.57601684", "0.5687569", "0.5629862", "0.556922", "0.55655444", "0.55537677", "0.5514554", "0.54887843", "0.537733", "0.5323055", "0.5313808", "0.53024954", "0.5279817", "0.52695835", "0.5250323", "0.52043736", "0.51812303", "0.5169371", "0.51490635", "0.5144986", "0.5116466", "0.510464", "0.5092121", "0.50880396", "0.50454235", "0.5033374", "0.50241524", "0.5021205", "0.5013696", "0.5010078", "0.50072414", "0.50057054", "0.49999908", "0.49963576", "0.49877048", "0.49829936", "0.49781132", "0.49735212", "0.49716356", "0.49713966", "0.49683842", "0.49654263", "0.496244", "0.49623036", "0.49623036", "0.49623036", "0.4962215", "0.49618387", "0.4961631", "0.49591434", "0.49589586", "0.4958449", "0.49568617", "0.49415845", "0.49301463", "0.49285132", "0.49275264", "0.49259487", "0.4922963", "0.49156106", "0.49142396", "0.49129066", "0.4911007", "0.49070674", "0.49054503", "0.49006295", "0.48971504", "0.48957175", "0.4881521", "0.48778456", "0.48755467", "0.48699963", "0.48574182", "0.48549008", "0.48527044", "0.4848286", "0.48455554", "0.4837662", "0.4836679", "0.48311055", "0.48254725", "0.48172045", "0.48086205", "0.4805506", "0.48050153", "0.4803872", "0.48002306", "0.4789065", "0.47858086", "0.4781463", "0.47799242", "0.47799242", "0.47767502", "0.4766643", "0.47653317" ]
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $model_name = $this->qualifyClass($this->getNameInput());\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:controller', [\n 'name' => \"{$controller}Controller\",\n '--model' => $model_name,\n ]);\n\n $path = base_path() . \"/app/Http/Controllers/{$controller}Controller.php\";\n $this->cleanupDummy($path, $name);\n }", "private function makeInitiatedController()\n\t{\n\t\t$controller = new TestEntityCRUDController();\n\n\t\t$controller->setLoggerWrapper(Logger::create());\n\n\t\treturn $controller;\n\t}", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }", "protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }", "protected function createController()\n {\n $params = [\n 'name' => $this->argument('name'),\n ];\n\n if ($this->option('api')) {\n $params['--api'] = true;\n }\n\n $this->call('wizard:controller', $params);\n }", "public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }", "public static function newController($controller)\n\t{\n\t\t$objController = \"App\\\\Controllers\\\\\".$controller;\n\t\treturn new $objController;\n\t}", "public function createController()\n\t{\n\t\tif(class_exists($this->controller))\n\t\t{\n\t\t\t// get the parent class he extends\n\t\t\t$parents = class_parents($this->controller);\n\n\t\t\t// $parents = class_implements($this->controller); used if our Controller was just an interface not a class\n\n\t\t\t// check if the class implements our Controller Class\n\t\t\tif(in_array(\"Controller\", $parents))\n\t\t\t{\n\t\t\t\t// check if the action in the request exists in that class\n\t\t\t\tif(method_exists($this->controller, $this->action))\n\t\t\t\t{\n\t\t\t\t\treturn new $this->controller($this->action, $this->request);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Action is not exist\n\t\t\t\t\techo 'Method '. $this->action .' doesn\\'t exist in '. $this->controller;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// The controller doesn't extends our Controller Class\n\t\t\t\techo $this->controller.' doesn\\'t extends our Controller Class';\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Controller Doesn't exist\n\t\t\techo $this->controller.' doesn\\'t exist';\n\t\t}\n\t}", "public function createController( ezcMvcRequest $request );", "public function createController() {\n //check our requested controller's class file exists and require it if so\n /*if (file_exists(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\")) {\n require(__DIR__ . \"/../Controllers/\" . $this->controllerName . \".php\");\n } else {\n throw new Exception('Route does not exist');\n }*/\n\n try {\n require_once __DIR__ . '/../Controllers/' . $this->controllerName . '.php';\n } catch (Exception $e) {\n return $e;\n }\n \n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n \n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\",$parents)) { \n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->endpoint)) {\n return new $this->controllerClass($this->args, $this->endpoint, $this->domain);\n } else {\n throw new Exception('Action does not exist');\n }\n } else {\n throw new Exception('Class does not inherit correctly.');\n }\n } else {\n throw new Exception('Controller does not exist.');\n }\n }", "public static function create()\n\t{\n\t\t//check, if a JobController instance already exists\n\t\tif(JobController::$jobController == null)\n\t\t{\n\t\t\tJobController::$jobController = new JobController();\n\t\t}\n\n\t\treturn JobController::$jobController;\n\t}", "private function controller()\n {\n $location = $this->args[\"location\"] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n $relative_location = $this->args['application_folder'] . DIRECTORY_SEPARATOR . 'controllers' . DIRECTORY_SEPARATOR;\n\n if (!empty($this->args['subdirectories']))\n {\n $location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n $relative_location .= $this->args['subdirectories'] . DIRECTORY_SEPARATOR;\n }\n\n if (!is_dir($location))\n {\n mkdir($location, 0755, TRUE);\n }\n\n $relative_location .= $this->args['filename'];\n $filename = $location . $this->args['filename'];\n\n $args = array(\n \"class_name\" => ApplicationHelpers::camelize($this->args['name']),\n \"filename\" => $this->args['filename'],\n \"application_folder\" => $this->args['application_folder'],\n \"parent_class\" => (isset($this->args['parent'])) ? $this->args['parent'] : $this->args['parent_controller'],\n \"extra\" => $this->extra,\n 'relative_location' => $relative_location,\n 'helper_name' => strtolower($this->args['name']) . '_helper',\n );\n\n $template = new TemplateScanner(\"controller\", $args);\n $controller = $template->parse();\n\n $message = \"\\t\";\n if (file_exists($filename))\n {\n $message .= 'Controller already exists : ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'light_blue');\n }\n $message .= $relative_location;\n }\n elseif (file_put_contents($filename, $controller))\n {\n $message .= 'Created controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'green');\n }\n $message .= $relative_location;\n }\n else\n {\n $message .= 'Unable to create controller: ';\n if (php_uname(\"s\") !== \"Windows NT\")\n {\n $message = ApplicationHelpers::colorize($message, 'red');\n }\n $message .= $relative_location;\n }\n\n // The controller has been generated, output the confirmation message\n fwrite(STDOUT, $message . PHP_EOL);\n\n // Create the helper files.\n $this->helpers();\n\n $this->assets();\n\n // Create the view files.\n $this->views();\n\n return;\n }", "public function createController( $controllerName ) {\r\n\t\t$refController \t\t= $this->instanceOfController( $controllerName );\r\n\t\t$refConstructor \t= $refController->getConstructor();\r\n\t\tif ( ! $refConstructor ) return $refController->newInstance();\r\n\t\t$initParameter \t\t= $this->setParameter( $refConstructor );\r\n\t\treturn $refController->newInstanceArgs( $initParameter ); \r\n\t}", "public function create($controllerName) {\r\n\t\tif (!$controllerName)\r\n\t\t\t$controllerName = $this->defaultController;\r\n\r\n\t\t$controllerName = ucfirst(strtolower($controllerName)).'Controller';\r\n\t\t$controllerFilename = $this->searchDir.'/'.$controllerName.'.php';\r\n\r\n\t\tif (preg_match('/[^a-zA-Z0-9]/', $controllerName))\r\n\t\t\tthrow new Exception('Invalid controller name', 404);\r\n\r\n\t\tif (!file_exists($controllerFilename)) {\r\n\t\t\tthrow new Exception('Controller not found \"'.$controllerName.'\"', 404);\r\n\t\t}\r\n\r\n\t\trequire_once $controllerFilename;\r\n\r\n\t\tif (!class_exists($controllerName) || !is_subclass_of($controllerName, 'Controller'))\r\n\t\t\tthrow new Exception('Unknown controller \"'.$controllerName.'\"', 404);\r\n\r\n\t\t$this->controller = new $controllerName();\r\n\t\treturn $this;\r\n\t}", "private function createController($controllerName)\n {\n $className = ucfirst($controllerName) . 'Controller';\n ${$this->lcf($controllerName) . 'Controller'} = new $className();\n return ${$this->lcf($controllerName) . 'Controller'};\n }", "public function createControllerObject(string $controller)\n {\n $this->checkControllerExists($controller);\n $controller = $this->ctlrStrSrc.$controller;\n $controller = new $controller();\n return $controller;\n }", "public function create_controller($controller, $action){\n\t $creado = false;\n\t\t$controllers_dir = Kumbia::$active_controllers_dir;\n\t\t$file = strtolower($controller).\"_controller.php\";\n\t\tif(file_exists(\"$controllers_dir/$file\")){\n\t\t\tFlash::error(\"Error: El controlador '$controller' ya existe\\n\");\n\t\t} else {\n\t\t\tif($this->post(\"kind\")==\"applicationcontroller\"){\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends ApplicationController {\\n\\n\\t\\tfunction $action(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tif(@file_put_contents(\"$controllers_dir/$file\", $filec)){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$filec = \"<?php\\n\t\t\t\\n\tclass \".ucfirst($controller).\"Controller extends StandardForm {\\n\\n\\t\\tpublic \\$scaffold = true;\\n\\n\\t\\tpublic function __construct(){\\n\\n\\t\\t}\\n\\n\t}\\n\t\\n?>\\n\";\n\t\t\t\tfile_put_contents(\"$controllers_dir/$file\", $filec);\n\t\t\t\tif($this->create_model($controller, $controller, \"index\")){\n\t\t\t\t $creado = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($creado){\n\t\t\t Flash::success(\"Se cre&oacute; correctamente el controlador '$controller' en '$controllers_dir/$file'\");\n\t\t\t}else {\n\t\t\t Flash::error(\"Error: No se pudo escribir en el directorio, verifique los permisos sobre el directorio\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t$this->route_to(\"controller: $controller\", \"action: $action\");\n\t}", "private function instanceController( string $controller_class ): Controller {\n\t\treturn new $controller_class( $this->request, $this->site );\n\t}", "public function makeController($controller_name)\n\t{\n\t\t$model\t= $this->_makeModel($controller_name, $this->_storage_type);\n\t\t$view\t= $this->_makeView($controller_name);\n\t\t\n\t\treturn new $controller_name($model, $view);\n\t}", "public function create()\n {\n $output = new \\Symfony\\Component\\Console\\Output\\ConsoleOutput();\n $output->writeln(\"<info>Controller Create</info>\");\n }", "protected function createDefaultController() {\n Octopus::requireOnce($this->app->getOption('OCTOPUS_DIR') . 'controllers/Default.php');\n return new DefaultController();\n }", "private function createControllerDefinition()\n {\n $id = $this->getServiceId('controller');\n if (!$this->container->has($id)) {\n $definition = new Definition($this->getServiceClass('controller'));\n $definition\n ->addMethodCall('setConfiguration', [new Reference($this->getServiceId('configuration'))])\n ->addMethodCall('setContainer', [new Reference('service_container')])\n ;\n $this->container->setDefinition($id, $definition);\n }\n }", "public function createController( $ctrlName, $action ) {\n $args['action'] = $action;\n $args['path'] = $this->path . '/modules/' . $ctrlName;\n $ctrlFile = $args['path'] . '/Controller.php';\n // $args['moduleName'] = $ctrlName;\n if ( file_exists( $ctrlFile ) ) {\n $ctrlPath = str_replace( CITRUS_PATH, '', $args['path'] );\n $ctrlPath = str_replace( '/', '\\\\', $ctrlPath ) . '\\Controller';\n try { \n $r = new \\ReflectionClass( $ctrlPath ); \n $inst = $r->newInstanceArgs( $args ? $args : array() );\n\n $this->controller = Citrus::apply( $inst, Array( \n 'name' => $ctrlName, \n ) );\n if ( $this->controller->is_protected == null ) {\n $this->controller->is_protected = $this->is_protected;\n }\n return $this->controller;\n } catch ( \\Exception $e ) {\n prr($e, true);\n }\n } else {\n return false;\n }\n }", "protected function createTestController() {\n\t\t$controller = new CController('test');\n\n\t\t$action = $this->getMock('CAction', array('run'), array($controller, 'test'));\n\t\t$controller->action = $action;\n\n\t\tYii::app()->controller = $controller;\n\t\treturn $controller;\n\t}", "public static function newController($controllerName, $params = [], $request = null) {\n\n\t\t$controller = \"App\\\\Controllers\\\\\".$controllerName;\n\n\t\treturn new $controller($params, $request);\n\n\t}", "private function loadController() : void\n\t{\n\t\t$this->controller = new $this->controllerName($this->request);\n\t}", "public function createController($pi, array $params)\n {\n $class = $pi . '_Controller_' . ucfirst($params['page']);\n\n return new $class();\n }", "public function createController() {\n //check our requested controller's class file exists and require it if so\n \n if (file_exists(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\" ) && $this->controllerName != 'error') {\n require(\"modules/\" . $this->controllerName . \"/controllers/\" . $this->controllerName .\".php\");\n \n } else {\n \n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n\n //does the class exist?\n if (class_exists($this->controllerClass)) {\n $parents = class_parents($this->controllerClass);\n //does the class inherit from the BaseController class?\n if (in_array(\"BaseController\", $parents)) {\n //does the requested class contain the requested action as a method?\n if (method_exists($this->controllerClass, $this->action)) { \n return new $this->controllerClass($this->action, $this->urlValues);\n \n } else {\n //bad action/method error\n $this->urlValues['controller'] = \"error\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badview\", $this->urlValues);\n }\n } else {\n $this->urlValues['controller'] = \"error\";\n //bad controller error\n echo \"hjh\";\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"b\", $this->urlValues);\n }\n } else {\n \n //bad controller error\n require(\"modules/error/controllers/error.php\");\n return new ErrorController(\"badurl\", $this->urlValues);\n }\n }", "protected static function createController($name) {\n $result = null;\n\n $name = self::$_namespace . ($name ? $name : self::$defaultController) . 'Controller';\n if(class_exists($name)) {\n $controllerClass = new \\ReflectionClass($name);\n if($controllerClass->hasMethod('run')) {\n $result = new $name();\n }\n }\n\n return $result;\n }", "public function createController(): void\n {\n $minimum_buffer_min = 3;\n $token_ok = $this->routerService->ds_token_ok($minimum_buffer_min);\n if ($token_ok) {\n # 2. Call the worker method\n # More data validation would be a good idea here\n # Strip anything other than characters listed\n $results = $this->worker($this->args);\n\n if ($results) {\n # Redirect the user to the NDSE view\n # Don't use an iFrame!\n # State can be stored/recovered using the framework's session or a\n # query parameter on the returnUrl\n header('Location: ' . $results[\"redirect_url\"]);\n exit;\n }\n } else {\n $this->clientService->needToReAuth($this->eg);\n }\n }", "protected function createController($controllerClass)\n {\n $cls = new ReflectionClass($controllerClass);\n return $cls->newInstance($this->environment);\n }", "protected function createController($name)\n {\n $controllerClass = 'controller\\\\'.ucfirst($name).'Controller';\n\n if(!class_exists($controllerClass)) {\n throw new \\Exception('Controller class '.$controllerClass.' not exists!');\n }\n\n return new $controllerClass();\n }", "protected function initController() {\n\t\tif (!isset($_GET['controller'])) {\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$controllerClass = $_GET['controller'].\"Controller\";\n\t\tif (!class_exists($controllerClass)) {\n\t\t\t//Console::error(@$_GET['controller'].\" doesn't exist\");\n\t\t\t$this->initDefaultController();\n\t\t\treturn;\n\t\t}\n\t\t$this->controller = new $controllerClass();\n\t}", "public function makeTestController(TestController $controller)\r\n\t{\r\n\t}", "static function factory($GET=array(), $POST=array(), $FILES=array()) {\n $type = (isset($GET['type'])) ? $GET['type'] : '';\n $objectController = $type.'_Controller';\n $addLocation = $type.'/'.$objectController.'.php';\n foreach ($_ENV['locations'] as $location) {\n if (is_file($location.$addLocation)) {\n return new $objectController($GET, $POST, $FILES);\n } \n }\n throw new Exception('The controller \"'.$type.'\" does not exist.');\n }", "public function create()\n {\n $general = new ModeloController();\n\n return $general->create();\n }", "public function makeController($controllerNamespace, $controllerName, Log $log, $session, Request $request, Response $response)\r\n\t{\r\n\t\t$fullControllerName = '\\\\Application\\\\Controller\\\\' . (!empty($controllerNamespace) ? $controllerNamespace . '\\\\' : '') . $controllerName;\r\n\t\t$controller = new $fullControllerName();\r\n\t\t$controller->setConfig($this->config);\r\n\t\t$controller->setRequest($request);\r\n\t\t$controller->setResponse($response);\r\n\t\t$controller->setLog($log);\r\n\t\tif (isset($session))\r\n\t\t{\r\n\t\t\t$controller->setSession($session);\r\n\t\t}\r\n\r\n\t\t// Execute additional factory method, if available (exists in \\Application\\Controller\\Factory)\r\n\t\t$method = 'make' . $controllerName;\r\n\t\tif (is_callable(array($this, $method)))\r\n\t\t{\r\n\t\t\t$this->$method($controller);\r\n\t\t}\r\n\r\n\t\t// If the controller has an init() method, call it now\r\n\t\tif (is_callable(array($controller, 'init')))\r\n\t\t{\r\n\t\t\t$controller->init();\r\n\t\t}\r\n\r\n\t\treturn $controller;\r\n\t}", "public static function create()\n\t{\n\t\t//check, if an AccessGroupController instance already exists\n\t\tif(AccessGroupController::$accessGroupController == null)\n\t\t{\n\t\t\tAccessGroupController::$accessGroupController = new AccessGroupController();\n\t\t}\n\n\t\treturn AccessGroupController::$accessGroupController;\n\t}", "public static function buildController()\n\t{\n\t\t$file = CONTROLLER_PATH . 'indexController.class.php';\n\n\t\tif(!file_exists($file))\n\t\t{\n\t\t\tif(\\RCPHP\\Util\\Check::isClient())\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \"Welcome RcPHP!\\n\";\n }\n}';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$controller = '<?php\nclass indexController extends \\RCPHP\\Controller {\n public function index(){\n echo \\'<style type=\"text/css\">*{ padding: 0; margin: 0; } div{ padding: 4px 48px;} body{ background: #fff; font-family: \"微软雅黑\"; color: #333;} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.8em; font-size: 36px }</style><div style=\"padding: 24px 48px;\"> <h1>:)</h1><p>Welcome <b>RcPHP</b>!</p></div>\\';\n }\n}';\n\t\t\t}\n\t\t\tfile_put_contents($file, $controller);\n\t\t}\n\t}", "public function getController( );", "public static function getInstance() : Controller {\n if ( null === self::$instance ) {\n self::$instance = new self();\n self::$instance->options = new Options(\n self::OPTIONS_KEY\n );\n }\n\n return self::$instance;\n }", "static function appCreateController($entityName, $prefijo = '') {\n\n $controller = ControllerBuilder::getController($entityName, $prefijo);\n $entityFile = ucfirst(str_replace($prefijo, \"\", $entityName));\n $fileController = \"../../modules/{$entityFile}/{$entityFile}Controller.class.php\";\n\n $result = array();\n $ok = self::createArchive($fileController, $controller);\n ($ok) ? array_push($result, \"Ok, {$fileController} created\") : array_push($result, \"ERROR creating {$fileController}\");\n\n return $result;\n }", "public static function newInstance($path = \\simpleChat\\Utility\\ROOT_PATH)\n {\n $request = new Request();\n \n \n if ($request->isAjax())\n {\n return new AjaxController();\n }\n else if ($request->jsCode())\n {\n return new JsController();\n }\n else\n {\n return new StandardController($path);\n }\n }", "private function createInstance()\n {\n $objectManager = new \\Magento\\Framework\\TestFramework\\Unit\\Helper\\ObjectManager($this);\n $this->controller = $objectManager->getObject(\n \\Magento\\NegotiableQuote\\Controller\\Adminhtml\\Quote\\RemoveFailedSku::class,\n [\n 'context' => $this->context,\n 'logger' => $this->logger,\n 'messageManager' => $this->messageManager,\n 'cart' => $this->cart,\n 'resultRawFactory' => $this->resultRawFactory\n ]\n );\n }", "function loadController(){\n $name = ucfirst($this->request->controller).'Controller' ;\n $file = ROOT.DS.'Controller'.DS.$name.'.php' ;\n /*if(!file_exists($file)){\n $this->error(\"Le controleur \".$this->request->controller.\" n'existe pas\") ;\n }*/\n require_once $file;\n $controller = new $name($this->request);\n return $controller ;\n }", "public function __construct(){\r\n $app = Application::getInstance();\r\n $this->_controller = $app->getController();\r\n }", "public static function & instance()\n {\n if (self::$instance === null) {\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Include the Controller file\n require Router::$controller_path;\n\n try {\n // Start validation of the controller\n $class = new ReflectionClass(ucfirst(Router::$controller).'_Controller');\n } catch (ReflectionException $e) {\n // Controller does not exist\n Event::run('system.404');\n }\n\n if ($class->isAbstract() or (IN_PRODUCTION and $class->getConstant('ALLOW_PRODUCTION') == false)) {\n // Controller is not allowed to run in production\n Event::run('system.404');\n }\n\n // Run system.pre_controller\n Event::run('system.pre_controller');\n\n // Create a new controller instance\n $controller = $class->newInstance();\n\n // Controller constructor has been executed\n Event::run('system.post_controller_constructor');\n\n try {\n // Load the controller method\n $method = $class->getMethod(Router::$method);\n\n // Method exists\n if (Router::$method[0] === '_') {\n // Do not allow access to hidden methods\n Event::run('system.404');\n }\n\n if ($method->isProtected() or $method->isPrivate()) {\n // Do not attempt to invoke protected methods\n throw new ReflectionException('protected controller method');\n }\n\n // Default arguments\n $arguments = Router::$arguments;\n } catch (ReflectionException $e) {\n // Use __call instead\n $method = $class->getMethod('__call');\n\n // Use arguments in __call format\n $arguments = array(Router::$method, Router::$arguments);\n }\n\n // Stop the controller setup benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_setup');\n\n // Start the controller execution benchmark\n Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution');\n\n // Execute the controller method\n $method->invokeArgs($controller, $arguments);\n\n // Controller method has been executed\n Event::run('system.post_controller');\n\n // Stop the controller execution benchmark\n Benchmark::stop(SYSTEM_BENCHMARK.'_controller_execution');\n }\n\n return self::$instance;\n }", "protected function instantiateController($class)\n {\n $controller = new $class();\n\n if ($controller instanceof Controller) {\n $controller->setContainer($this->container);\n }\n\n return $controller;\n }", "public function __construct (){\n $this->AdminController = new AdminController();\n $this->ArticleController = new ArticleController();\n $this->AuditoriaController = new AuditoriaController();\n $this->CommentController = new CommentController();\n $this->CourseController = new CourseController();\n $this->InscriptionsController = new InscriptionsController();\n $this->ModuleController = new ModuleController();\n $this->PlanController = new PlanController();\n $this->ProfileController = new ProfileController();\n $this->SpecialtyController = new SpecialtyController();\n $this->SubscriptionController = new SubscriptionController();\n $this->TeacherController = new TeacherController();\n $this->UserController = new UserController();\n $this->WebinarController = new WebinarController();\n }", "protected function makeController($prefix)\n {\n new MakeController($this, $this->files, $prefix);\n }", "public function createController($route)\n {\n $controller = parent::createController('gymv/' . $route);\n return $controller === false\n ? parent::createController($route)\n : $controller;\n }", "public static function createFrontController()\n {\n return self::createInjectorWithBindings(self::extractArgs(func_get_args()))\n ->getInstance('net::stubbles::websites::stubFrontController');\n }", "public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }", "protected static function instantiateMockController()\n {\n /** @var Event $oEvent */\n $oEvent = Factory::service('Event');\n\n if (!$oEvent->hasBeenTriggered(Events::SYSTEM_STARTING)) {\n\n require_once BASEPATH . 'core/Controller.php';\n\n load_class('Output', 'core');\n load_class('Security', 'core');\n load_class('Input', 'core');\n load_class('Lang', 'core');\n\n new NailsMockController();\n }\n }", "private static function controller()\n {\n $files = ['Controller'];\n $folder = static::$root.'MVC'.'/';\n\n self::call($files, $folder);\n }", "public function createController()\n\t{\n\t\t$originalFile = app_path('Http/Controllers/Reports/SampleReport.php');\n\t\t$newFile = dirname($originalFile) . DIRECTORY_SEPARATOR . $this->class . $this->sufix . '.php';\n\n\t\t// Read original file\n\t\tif( ! $content = file_get_contents($originalFile))\n\t\t\treturn false;\n\n\t\t// Replace class name\n\t\t$content = str_replace('SampleReport', $this->class . $this->sufix, $content);\n\n\t\t// Write new file\n\t\treturn (bool) file_put_contents($newFile, $content);\n\t}", "public function runController() {\n // Check for a router\n if (is_null($this->getRouter())) {\n \t // Set the method to load\n \t $sController = ucwords(\"{$this->getController()}Controller\");\n } else {\n\n // Set the controller with the router\n $sController = ucwords(\"{$this->getController()}\".ucfirst($this->getRouter()).\"Controller\");\n }\n \t// Check for class\n \tif (class_exists($sController, true)) {\n \t\t// Set a new instance of Page\n \t\t$this->setPage(new Page());\n \t\t// The class exists, load it\n \t\t$oController = new $sController();\n\t\t\t\t// Now check for the proper method \n\t\t\t\t// inside of the controller class\n\t\t\t\tif (method_exists($oController, $this->loadConfigVar('systemSettings', 'controllerLoadMethod'))) {\n\t\t\t\t\t// We have a valid controller, \n\t\t\t\t\t// execute the initializer\n\t\t\t\t\t$oController->init($this);\n\t\t\t\t\t// Set the variable scope\n\t \t\t$this->setViewScope($oController);\n\t \t\t// Render the layout\n\t \t\t$this->renderLayout();\n\t\t\t\t} else {\n\t\t\t\t\t// The initializer does not exist, \n\t\t\t\t\t// which means an invalid controller, \n\t\t\t\t\t// so now we let the caller know\n\t\t\t\t\t$this->setError($this->loadConfigVar('errorMessages', 'invalidController'));\n\t\t\t\t\t// Run the error\n\t\t\t\t\t// $this->runError();\n\t\t\t\t}\n \t// The class does not exist\n \t} else {\n\t\t\t\t// Set the system error\n\t \t\t$this->setError(\n\t\t\t\t\tstr_replace(\n\t\t\t\t\t\t':controllerName', \n\t\t\t\t\t\t$sController, \n\t\t\t\t\t\t$this->loadConfigVar(\n\t\t\t\t\t\t\t'errorMessages', \n\t\t\t\t\t\t\t'controllerDoesNotExist'\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t);\n \t\t// Run the error\n\t\t\t\t// $this->runError();\n \t}\n \t// Return instance\n \treturn $this;\n }", "public function controller()\n\t{\n\t\n\t}", "protected function buildController()\n {\n $columns = collect($this->columns)->pluck('column')->implode('|');\n\n $permissions = [\n 'create:'.$this->module->createPermission->name,\n 'edit:'.$this->module->editPermission->name,\n 'delete:'.$this->module->deletePermission->name,\n ];\n\n $this->controller = [\n 'name' => $this->class,\n '--model' => $this->class,\n '--request' => $this->class.'Request',\n '--permissions' => implode('|', $permissions),\n '--view-folder' => snake_case($this->module->name),\n '--fields' => $columns,\n '--module' => $this->module->id,\n ];\n }", "function getController(){\n\treturn getFactory()->getBean( 'Controller' );\n}", "protected function getController()\n {\n $uri = WingedLib::clearPath(static::$parentUri);\n if (!$uri) {\n $uri = './';\n $explodedUri = ['index', 'index'];\n } else {\n $explodedUri = explode('/', $uri);\n if (count($explodedUri) == 1) {\n $uri = './' . $explodedUri[0] . '/';\n } else {\n $uri = './' . $explodedUri[0] . '/' . $explodedUri[1] . '/';\n }\n }\n\n $indexUri = WingedLib::clearPath(\\WingedConfig::$config->INDEX_ALIAS_URI);\n if ($indexUri) {\n $indexUri = explode('/', $indexUri);\n }\n\n if ($indexUri) {\n if ($explodedUri[0] === 'index' && isset($indexUri[0])) {\n static::$controllerName = Formater::camelCaseClass($indexUri[0]) . 'Controller';\n $uri = './' . $indexUri[0] . '/';\n }\n if (isset($explodedUri[1]) && isset($indexUri[1])) {\n if ($explodedUri[1] === 'index') {\n static::$controllerAction = 'action' . Formater::camelCaseMethod($indexUri[1]);\n $uri .= $indexUri[1] . '/';\n }\n } else {\n $uri .= 'index/';\n }\n }\n\n $controllerDirectory = new Directory(static::$parent . 'controllers/', false);\n if ($controllerDirectory->exists()) {\n $controllerFile = new File($controllerDirectory->folder . static::$controllerName . '.php', false);\n if ($controllerFile->exists()) {\n include_once $controllerFile->file_path;\n if (class_exists(static::$controllerName)) {\n $controller = new static::$controllerName();\n if (method_exists($controller, static::$controllerAction)) {\n try {\n $reflectionMethod = new \\ReflectionMethod(static::$controllerName, static::$controllerAction);\n $pararms = [];\n foreach ($reflectionMethod->getParameters() as $parameter) {\n $pararms[$parameter->getName()] = $parameter->isOptional();\n }\n } catch (\\Exception $exception) {\n $pararms = [];\n }\n return [\n 'uri' => $uri,\n 'params' => $pararms,\n ];\n }\n }\n }\n }\n return false;\n }", "public function __construct()\n {\n $this->controller = new DHTController();\n }", "public function createController($controllers) {\n\t\tforeach($controllers as $module=>$controllers) {\n\t\t\tforeach($controllers as $key=>$controller) {\n\t\t\t\tif(!file_exists(APPLICATION_PATH.\"/modules/$module/controllers/\".ucfirst($controller).\"Controller.php\")) {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",\"Create '\".ucfirst($controller).\"' controller in $module\");\t\t\t\t\n\t\t\t\t\texec(\"zf create controller $controller index-action-included=0 $module\");\t\t\t\t\t\n\t\t\t\t}\telse {\n\t\t\t\t\tMy_Class_Maerdo_Console::display(\"3\",ucfirst($controller).\"' controller in $module already exists\");\t\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "protected function instantiateController($class)\n {\n return new $class($this->routesMaker);\n }", "private function createController($table){\n\n // Filtering file name\n $fileName = $this::cleanToName($table[\"name\"]) . 'Controller.php';\n\n // Prepare the Class scheme inside the controller\n $contents = '<?php '.$fileName.' ?>';\n\n\n // Return a boolean to process completed\n return Storage::disk('controllers')->put($this->appNamePath.'/'.$fileName, $contents);\n\n }", "public function GetController()\n\t{\n\t\t$params = $this->QueryVarArrayToParameterArray($_GET);\n\t\tif (!empty($_POST)) {\n\t\t\t$params = array_merge($params, $this->QueryVarArrayToParameterArray($_POST));\n\t\t}\n\n\t\tif (!empty($_GET['q'])) {\n\t\t\t$restparams = GitPHP_Router::ReadCleanUrl($_SERVER['REQUEST_URI']);\n\t\t\tif (count($restparams) > 0)\n\t\t\t\t$params = array_merge($params, $restparams);\n\t\t}\n\n\t\t$controller = null;\n\n\t\t$action = null;\n\t\tif (!empty($params['action']))\n\t\t\t$action = $params['action'];\n\n\t\tswitch ($action) {\n\n\n\t\t\tcase 'search':\n\t\t\t\t$controller = new GitPHP_Controller_Search();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commitdiff':\n\t\t\tcase 'commitdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Commitdiff();\n\t\t\t\tif ($action === 'commitdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blobdiff':\n\t\t\tcase 'blobdiff_plain':\n\t\t\t\t$controller = new GitPHP_Controller_Blobdiff();\n\t\t\t\tif ($action === 'blobdiff_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'history':\n\t\t\t\t$controller = new GitPHP_Controller_History();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'shortlog':\n\t\t\tcase 'log':\n\t\t\t\t$controller = new GitPHP_Controller_Log();\n\t\t\t\tif ($action === 'shortlog')\n\t\t\t\t\t$controller->SetParam('short', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'snapshot':\n\t\t\t\t$controller = new GitPHP_Controller_Snapshot();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tree':\n\t\t\tcase 'trees':\n\t\t\t\t$controller = new GitPHP_Controller_Tree();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'tags':\n\t\t\t\tif (empty($params['tag'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Tags();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\tcase 'tag':\n\t\t\t\t$controller = new GitPHP_Controller_Tag();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'heads':\n\t\t\t\t$controller = new GitPHP_Controller_Heads();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blame':\n\t\t\t\t$controller = new GitPHP_Controller_Blame();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'blob':\n\t\t\tcase 'blobs':\n\t\t\tcase 'blob_plain':\t\n\t\t\t\t$controller = new GitPHP_Controller_Blob();\n\t\t\t\tif ($action === 'blob_plain')\n\t\t\t\t\t$controller->SetParam('output', 'plain');\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'atom':\n\t\t\tcase 'rss':\n\t\t\t\t$controller = new GitPHP_Controller_Feed();\n\t\t\t\tif ($action == 'rss')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::RssFormat);\n\t\t\t\telse if ($action == 'atom')\n\t\t\t\t\t$controller->SetParam('format', GitPHP_Controller_Feed::AtomFormat);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'commit':\n\t\t\tcase 'commits':\n\t\t\t\t$controller = new GitPHP_Controller_Commit();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'summary':\n\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'project_index':\n\t\t\tcase 'projectindex':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('txt', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'opml':\n\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t$controller->SetParam('opml', true);\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'login':\n\t\t\t\t$controller = new GitPHP_Controller_Login();\n\t\t\t\tif (!empty($_POST['username']))\n\t\t\t\t\t$controller->SetParam('username', $_POST['username']);\n\t\t\t\tif (!empty($_POST['password']))\n\t\t\t\t\t$controller->SetParam('password', $_POST['password']);\n\t\t\t\tbreak;\n\n\t\t\tcase 'logout':\n\t\t\t\t$controller = new GitPHP_Controller_Logout();\n\t\t\t\tbreak;\n\n\n\t\t\tcase 'graph':\n\t\t\tcase 'graphs':\n\t\t\t\t//$controller = new GitPHP_Controller_Graph();\n\t\t\t\t//break;\n\t\t\tcase 'graphdata':\n\t\t\t\t//$controller = new GitPHP_Controller_GraphData();\n\t\t\t\t//break;\n\t\t\tdefault:\n\t\t\t\tif (!empty($params['project'])) {\n\t\t\t\t\t$controller = new GitPHP_Controller_Project();\n\t\t\t\t} else {\n\t\t\t\t\t$controller = new GitPHP_Controller_ProjectList();\n\t\t\t\t}\n\t\t}\n\n\t\tforeach ($params as $paramname => $paramval) {\n\t\t\tif ($paramname !== 'action')\n\t\t\t\t$controller->SetParam($paramname, $paramval);\n\t\t}\n\n\t\t$controller->SetRouter($this);\n\n\t\treturn $controller;\n\t}", "public function testCreateTheControllerClass()\n {\n $controller = new Game21Controller();\n $this->assertInstanceOf(\"\\App\\Http\\Controllers\\Game21Controller\", $controller);\n }", "public static function createController( MShop_Context_Item_Interface $context, $name = null );", "public function __construct()\n {\n\n $url = $this->splitURL();\n // echo $url[0];\n\n // check class file exists\n if (file_exists(\"../app/controllers/\" . strtolower($url[0]) . \".php\")) {\n $this->controller = strtolower($url[0]);\n unset($url[0]);\n }\n\n // echo $this->controller;\n\n require \"../app/controllers/\" . $this->controller . \".php\";\n\n // create Instance(object)\n $this->controller = new $this->controller(); // $this->controller is an object from now on\n if (isset($url[1])) {\n if (method_exists($this->controller, $url[1])) {\n $this->method = $url[1];\n unset($url[1]);\n }\n }\n\n // run the class and method\n $this->params = array_values($url); // array_values 값들인 인자 0 부터 다시 배치\n call_user_func_array([$this->controller, $this->method], $this->params);\n }", "public function getController();", "public function getController();", "public function getController();", "public function createController($pageType, $template)\n {\n $controller = null;\n\n // Use factories first\n if (isset($this->controllerFactories[$pageType])) {\n $callable = $this->controllerFactories[$pageType];\n $controller = $callable($this, 'templates/'.$template);\n\n if ($controller) {\n return $controller;\n }\n }\n\n // See if a default controller exists in the theme namespace\n $class = null;\n if ($pageType == 'posts') {\n $class = $this->namespace.'\\\\Controllers\\\\PostsController';\n } elseif ($pageType == 'post') {\n $class = $this->namespace.'\\\\Controllers\\\\PostController';\n } elseif ($pageType == 'page') {\n $class = $this->namespace.'\\\\Controllers\\\\PageController';\n } elseif ($pageType == 'term') {\n $class = $this->namespace.'\\\\Controllers\\\\TermController';\n }\n\n if (class_exists($class)) {\n $controller = new $class($this, 'templates/'.$template);\n\n return $controller;\n }\n\n // Create a default controller from the stem namespace\n if ($pageType == 'posts') {\n $controller = new PostsController($this, 'templates/'.$template);\n } elseif ($pageType == 'post') {\n $controller = new PostController($this, 'templates/'.$template);\n } elseif ($pageType == 'page') {\n $controller = new PageController($this, 'templates/'.$template);\n } elseif ($pageType == 'search') {\n $controller = new SearchController($this, 'templates/'.$template);\n } elseif ($pageType == 'term') {\n $controller = new TermController($this, 'templates/'.$template);\n }\n\n return $controller;\n }", "private function loadController($controller)\r\n {\r\n $className = $controller.'Controller';\r\n \r\n $class = new $className($this);\r\n \r\n $class->init();\r\n \r\n return $class;\r\n }", "public static function newInstance ($class)\n {\n try\n {\n // the class exists\n $object = new $class();\n\n if (!($object instanceof sfController))\n {\n // the class name is of the wrong type\n $error = 'Class \"%s\" is not of the type sfController';\n $error = sprintf($error, $class);\n\n throw new sfFactoryException($error);\n }\n\n return $object;\n }\n catch (sfException $e)\n {\n $e->printStackTrace();\n }\n }", "public function create()\n {\n //TODO frontEndDeveloper \n //load admin.classes.create view\n\n\n return view('admin.classes.create');\n }", "private function generateControllerClass()\n {\n $dir = $this->bundle->getPath();\n\n $parts = explode('\\\\', $this->entity);\n $entityClass = array_pop($parts);\n $entityNamespace = implode('\\\\', $parts);\n\n $target = sprintf(\n '%s/Controller/%s/%sController.php',\n $dir,\n str_replace('\\\\', '/', $entityNamespace),\n $entityClass\n );\n\n if (file_exists($target)) {\n throw new \\RuntimeException('Unable to generate the controller as it already exists.');\n }\n\n $this->renderFile($this->skeletonDir, 'controller.php', $target, array(\n 'actions' => $this->actions,\n 'route_prefix' => $this->routePrefix,\n 'route_name_prefix' => $this->routeNamePrefix,\n 'dir' => $this->skeletonDir,\n 'bundle' => $this->bundle->getName(),\n 'entity' => $this->entity,\n 'entity_class' => $entityClass,\n 'namespace' => $this->bundle->getNamespace(),\n 'entity_namespace' => $entityNamespace,\n 'format' => $this->format,\n ));\n }", "static public function Instance()\t\t// Static so we use classname itself to create object i.e. Controller::Instance()\r\n {\r\n // Only one object of this class is required\r\n // so we only create if it hasn't already\r\n // been created.\r\n if(!isset(self::$_instance))\r\n {\r\n self::$_instance = new self();\t// Make new instance of the Controler class\r\n self::$_instance->_commandResolver = new CommandResolver();\r\n\r\n ApplicationController::LoadViewMap();\r\n }\r\n return self::$_instance;\r\n }", "private function create_mock_controller() {\n eval('class TestController extends cyclone\\request\\SkeletonController {\n function before() {\n DispatcherTest::$beforeCalled = TRUE;\n DispatcherTest::$route = $this->_request->route;\n }\n\n function after() {\n DispatcherTest::$afterCalled = TRUE;\n }\n\n function action_act() {\n DispatcherTest::$actionCalled = TRUE;\n }\n}');\n }", "public function AController() {\r\n\t}", "protected function initializeController() {}", "public function dispatch()\n { \n $controller = $this->formatController();\n $controller = new $controller($this);\n if (!$controller instanceof ControllerAbstract) {\n throw new Exception(\n 'Class ' . get_class($controller) . ' is not a valid controller instance. Controller classes must '\n . 'derive from \\Europa\\ControllerAbstract.'\n );\n }\n $controller->action();\n return $controller;\n }", "public function controller()\n {\n $method = $_SERVER['REQUEST_METHOD'];\n if ($method == 'GET') {\n $this->getController();\n };\n if ($method == 'POST') {\n check_csrf();\n $this->createController();\n };\n }", "private function addController($controller)\n {\n $object = new $controller($this->app);\n $this->controllers[$controller] = $object;\n }", "function Controller($ControllerName = Web\\Application\\DefaultController) {\n return Application()->Controller($ControllerName);\n }", "public function getController($controllerName) {\r\n\t\tif(!isset(self::$instances[$controllerName])) {\r\n\t\t $package = $this->getPackage(Nomenclature::getVendorAndPackage($controllerName));\r\n\t\t if(!$package) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t return $controller;\r\n\t\t //return false;\r\n\t\t }\r\n\r\n\t\t if(!$package || !$package->controllerExists($controllerName)) {\r\n\t\t $controller = new $controllerName();\r\n\t\t $controller->setContext($this->getContext());\r\n\t\t $package->addController($controller);\r\n\t\t } else {\r\n\t\t $controller = $package->getController($controllerName);\r\n\t\t }\r\n\t\t} else {\r\n\t\t $controller = self::$instances[$controllerName];\r\n\t\t}\r\n\t\treturn $controller;\r\n\t}", "public function testInstantiateSessionController()\n {\n $controller = new SessionController();\n\n $this->assertInstanceOf(\"App\\Http\\Controllers\\SessionController\", $controller);\n }", "private static function loadController($str) {\n\t\t$str = self::formatAsController($str);\n\t\t$app_controller = file_exists(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t$lib_controller = file_exists(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\n\t\tif ( $app_controller || $lib_controller ) {\n\t\t\tif ($app_controller) {\n\t\t\t\trequire_once(APP_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\t\telse {\n\t\t\t\trequire_once(LIB_DIR.'/Mvc/Controller/'.$str.'.php');\n\t\t\t}\n\t\n\t\t\t$controller = new $str();\n\t\t\t\n\t\t\tif (!$controller instanceof Controller) {\n\t\t\t\tthrow new IsNotControllerException();\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $controller;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthrow new ControllerNotExistsException($str);\n\t\t}\n\t}", "public function __construct()\n {\n // and $url[1] is a controller method\n if ($_GET['url'] == NULL) {\n $url = explode('/', env('defaultRoute'));\n } else {\n $url = explode('/', rtrim($_GET['url'],'/'));\n }\n\n $file = 'controllers/' . $url[0] . '.php';\n if (file_exists($file)) {\n require $file;\n $controller = new $url[0];\n\n if (isset($url[1])) {\n $controller->{$url[1]}();\n }\n } else {\n echo \"404 not found\";\n }\n }", "protected function _controllers()\n {\n $this['watchController'] = $this->factory(static function ($c) {\n return new Controller\\WatchController($c['app'], $c['searcher']);\n });\n\n $this['runController'] = $this->factory(static function ($c) {\n return new Controller\\RunController($c['app'], $c['searcher']);\n });\n\n $this['customController'] = $this->factory(static function ($c) {\n return new Controller\\CustomController($c['app'], $c['searcher']);\n });\n\n $this['waterfallController'] = $this->factory(static function ($c) {\n return new Controller\\WaterfallController($c['app'], $c['searcher']);\n });\n\n $this['importController'] = $this->factory(static function ($c) {\n return new Controller\\ImportController($c['app'], $c['saver'], $c['config']['upload.token']);\n });\n\n $this['metricsController'] = $this->factory(static function ($c) {\n return new Controller\\MetricsController($c['app'], $c['searcher']);\n });\n }", "public function __construct() {\r\n $this->controllerLogin = new ControllerLogin();\r\n $this->controllerGame = new ControllerGame();\r\n $this->controllerRegister = new ControllerRegister();\r\n }", "public function controller ($post = array())\n\t{\n\n\t\t$name = $post['controller_name'];\n\n\t\tif (is_file(APPPATH.'controllers/'.$name.'.php')) {\n\n\t\t\t$message = sprintf(lang('Controller_s_is_existed'), APPPATH.'controllers/'.$name.'.php');\n\n\t\t\t$this->msg[] = $message;\n\n\t\t\treturn $this->result(false, $this->msg[0]);\n\n\t\t}\n\n\t\t$extends = null;\n\n\t\tif (isset($post['crud'])) {\n\n\t\t\t$crud = true;\n\t\t\t\n\t\t}\n\t\telse{\n\n\t\t\t$crud = false;\n\n\t\t}\n\n\t\t$file = $this->_create_folders_from_name($name, 'controllers');\n\n\t\t$data = '';\n\n\t\t$data .= $this->_class_open($file['file'], __METHOD__, $extends);\n\n\t\t$crud === FALSE || $data .= $this->_crud_methods_contraller($post);\n\n\t\t$data .= $this->_class_close();\n\n\t\t$path = APPPATH . 'controllers/' . $file['path'] . strtolower($file['file']) . '.php';\n\n\t\twrite_file($path, $data);\n\n\t\t$this->msg[] = sprintf(lang('Created_controller_s'), $path);\n\n\t\t//echo $this->_messages();\n\t\treturn $this->result(true, $this->msg[0]);\n\n\t}", "protected function getController(Request $request) {\n try {\n $controller = $this->objectFactory->create($request->getControllerName(), self::INTERFACE_CONTROLLER);\n } catch (ZiboException $exception) {\n throw new ZiboException('Could not create controller ' . $request->getControllerName(), 0, $exception);\n }\n\n return $controller;\n }", "public function create() {}", "public function __construct()\n {\n $this->dataController = new DataController;\n }", "function __contrruct(){ //construdor do controller, nele é possivel carregar as librari, helpers, models que serão utilizados nesse controller\n\t\tparent::__contrruct();//Chamando o construtor da classe pai\n\t}", "public function __construct() {\n\n // Get the URL elements.\n $url = $this->_parseUrl();\n\n // Checks if the first URL element is set / not empty, and replaces the\n // default controller class string if the given class exists.\n if (isset($url[0]) and ! empty($url[0])) {\n $controllerClass = CONTROLLER_PATH . ucfirst(strtolower($url[0]));\n unset($url[0]);\n if (class_exists($controllerClass)) {\n $this->_controllerClass = $controllerClass;\n }\n }\n\n // Replace the controller class string with a new instance of the it.\n $this->_controllerClass = new $this->_controllerClass;\n\n // Checks if the second URL element is set / not empty, and replaces the\n // default controller action string if the given action is a valid class\n // method.\n if (isset($url[1]) and ! empty($url[1])) {\n if (method_exists($this->_controllerClass, $url[1])) {\n $this->_controllerAction = $url[1];\n unset($url[1]);\n }\n }\n\n // Check if the URL has any remaining elements, setting the controller\n // parameters as a rebase of it if true or an empty array if false.\n $this->_controllerParams = $url ? array_values($url) : [];\n\n // Call the controller and action with parameters.\n call_user_func_array([$this->_controllerClass, $this->_controllerAction], $this->_controllerParams);\n }", "private function setUpController()\n {\n $this->controller = new TestObject(new SharedControllerTestController);\n\n $this->controller->dbal = DBAL::getDBAL('testDB', $this->getDBH());\n }", "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }" ]
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.6877748", "0.68702674", "0.68622285", "0.6839049", "0.6779292", "0.6703522", "0.66688496", "0.66600126", "0.6650373", "0.66436416", "0.6615505", "0.66144013", "0.6588728", "0.64483404", "0.64439476", "0.6429303", "0.6426485", "0.6303757", "0.6298291", "0.6293319", "0.62811387", "0.6258778", "0.62542456", "0.616827", "0.6162314", "0.61610043", "0.6139887", "0.613725", "0.61334985", "0.6132223", "0.6128982", "0.61092585", "0.6094611", "0.60889256", "0.6074893", "0.60660255", "0.6059098", "0.60565156", "0.6044235", "0.60288006", "0.6024102", "0.60225666", "0.6018304", "0.60134345", "0.60124683", "0.6010913", "0.6009284", "0.6001683", "0.5997471", "0.5997012", "0.59942573", "0.5985074", "0.5985074", "0.5985074", "0.5967613", "0.5952533", "0.5949068", "0.5942203", "0.5925731", "0.5914304", "0.5914013", "0.59119135", "0.5910308", "0.5910285", "0.59013796", "0.59003943", "0.5897524", "0.58964556", "0.58952993", "0.58918965", "0.5888943", "0.5875413", "0.5869938", "0.58627135", "0.58594996", "0.5853714", "0.5839484", "0.5832913", "0.582425", "0.58161044", "0.5815566" ]
0.0
-1
Show the application dashboard.
public function index() { return view('home'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n return View('admin.dashboard');\n\t\t\t\n }", "public function showDashboard()\n {\n return View::make('users.dashboard', [\n 'user' => Sentry::getUser(),\n ]);\n }", "public function dashboard()\n {\n return view('backend.dashboard.index');\n }", "public function index() {\n return view(\"admin.dashboard\");\n }", "public function dashboard()\n {\n return $this->renderContent(\n view('dashboard'),\n trans('sleeping_owl::lang.dashboard')\n );\n }", "public function dashboard(){\n return view('backend.admin.index');\n }", "public function showDashBoard()\n {\n \treturn view('Admins.AdminDashBoard');\n }", "public function dashboard()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('admin.dashboard', ['title' => 'Dashboard']);\n }", "public function dashboard() \r\n {\r\n return view('admin.index');\r\n }", "public function dashboard()\n\t{\n\t\t$page_title = 'organizer dashboard';\n\t\treturn View::make('organizer.dashboard',compact('page_title'));\n\t}", "public function dashboard()\n {\n\t\t$traffic = TrafficService::getTraffic();\n\t\t$devices = TrafficService::getDevices();\n\t\t$browsers = TrafficService::getBrowsers();\n\t\t$status = OrderService::getStatus();\n\t\t$orders = OrderService::getOrder();\n\t\t$users = UserService::getTotal();\n\t\t$products = ProductService::getProducts();\n\t\t$views = ProductService::getViewed();\n\t\t$total_view = ProductService::getTotalView();\n\t\t$cashbook = CashbookService::getAccount();\n $stock = StockService::getStock();\n\n return view('backend.dashboard', compact('traffic', 'devices', 'browsers', 'status', 'orders', 'users', 'products', 'views', 'total_view', 'cashbook', 'stock'));\n }", "public function dashboard()\n {\n\n return view('admin.dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function dashboard()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('adm.dashboard');\n }", "public function dashboard()\n {\n $users = \\App\\User::all()->count();\n $roles = \\Spatie\\Permission\\Models\\Role::all()->count();\n $permissions = \\Spatie\\Permission\\Models\\Permission::all()->count();\n $banner = \\App\\Banner::all();\n $categoria = \\App\\Categoria::all();\n $entidadOrganizativa = \\App\\Entidadorganizativa::all();\n $evento = \\App\\Evento::all();\n $fichero = \\App\\Fichero::all();\n $recurso = \\App\\Recurso::all();\n $redsocial = \\App\\Redsocial::all();\n $subcategoria = \\App\\Subcategoria::all();\n $tag = \\App\\Tag::all();\n\n $entities = \\Amranidev\\ScaffoldInterface\\Models\\Scaffoldinterface::all();\n\n return view('scaffold-interface.dashboard.dashboard',\n compact('users', 'roles', 'permissions', 'entities',\n 'banner', 'categoria', 'entidadOrganizativa',\n 'evento', 'fichero', 'recurso', 'redsocial', 'subcategoria', 'tag')\n );\n }", "public function show()\n {\n return view('dashboard');\n }", "public function index()\n\t{\n\t\treturn View::make('dashboard');\n\t}", "public function index() {\n return view('modules.home.dashboard');\n }", "public function show()\n {\n return view('dashboard.dashboard');\n \n }", "public function index()\n {\n return view('admin.dashboard.dashboard');\n\n }", "public function dashboard()\n { \n return view('jobposter.dashboard');\n }", "public function show()\n\t{\n\t\t//\n\t\t$apps = \\App\\application::all();\n\t\treturn view('applications.view', compact('apps'));\n\t}", "public function index()\n {\n return view('pages.admin.dashboard');\n }", "public function indexAction()\n {\n $dashboard = $this->getDashboard();\n\n return $this->render('ESNDashboardBundle::index.html.twig', array(\n 'title' => \"Dashboard\"\n ));\n }", "public function index()\n {\n //\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('admin.dashboard.index');\n }", "public function dashboard()\n {\n return view('pages.backsite.dashboard');\n }", "public function index()\n {\n // return component view('dashboard.index');\n return view('layouts.admin_master');\n }", "public function index()\n {\n\n $no_of_apps = UploadApp::count();\n $no_of_analysis_done = UploadApp::where('isAnalyzed', '1')->count();\n $no_of_visible_apps = AnalysisResult::where('isVisible', '1')->count();\n\n return view('admin.dashboard', compact('no_of_apps', 'no_of_analysis_done', 'no_of_visible_apps'));\n }", "public function getDashboard() {\n return view('admin.dashboard');\n }", "public function index()\n {\n return view('smartcrud.auth.dashboard');\n }", "public function index()\n {\n if($this->isAdmin() == TRUE)\n {\n $this->loadThis();\n }\n $this->global['pageTitle'] = 'Touba : Dashboard';\n \n $this->loadViews(\"dashboard\", $this->global, NULL , NULL);\n }", "public function dashboard() {\n $data = ['title' => 'Dashboard'];\n return view('pages.admin.dashboard', $data)->with([\n 'users' => $this->users,\n 'num_services' => Service::count(),\n 'num_products' => Product::count(),\n ]);\n }", "public function index()\n {\n return view('board.pages.dashboard-board');\n }", "public function index()\n {\n return view('admin::settings.development.dashboard');\n }", "public function index()\n {\n return view('dashboard.dashboard');\n }", "public function show()\n {\n return view('dashboard::show');\n }", "public function adminDash()\n {\n return Inertia::render(\n 'Admin/AdminDashboard', \n [\n 'data' => ['judul' => 'Halaman Admin']\n ]\n );\n }", "public function dashboard()\n {\n return view('Admin.dashboard');\n }", "public function show()\n {\n return view('admins\\auth\\dashboard');\n }", "public function index()\n {\n // Report =============\n\n return view('Admin.dashboard');\n }", "public function index()\n {\n return view('bitaac::account.dashboard');\n }", "public function index()\n { \n return view('admin-views.dashboard');\n }", "public function getDashboard()\n {\n return view('dashboard');\n }", "function showDashboard()\n { \n $logeado = $this->checkCredentials();\n if ($logeado==true)\n $this->view->ShowDashboard();\n else\n $this->view->showLogin();\n }", "public function index()\n { \n $params['crumbs'] = 'Home';\n $params['active'] = 'home';\n \n return view('admin.dashboard.index', $params);\n }", "public function index()\n\t{\n\t\treturn view::make('customer_panel.dashboard');\n\t}", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index()\n {\n return view('dashboard');\n }", "public function index() {\n // return view('home');\n return view('admin-layouts.dashboard.dashboard');\n }", "public function index()\r\n {\r\n return view('user.dashboard');\r\n }", "public function index() {\n return view('dashboard', []);\n }", "public function index()\n {\n //\n return view('dashboard.dashadmin', ['page' => 'mapel']);\n }", "public function index()\n {\n return view('back-end.dashboard.index');\n //\n }", "public function index()\n\t{\n\t\t\n\t\t$data = array(\n\t\t\t'title' => 'Administrator Apps With Laravel',\n\t\t);\n\n\t\treturn View::make('panel/index',$data);\n\t}", "public function index() {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('page.dashboard.index');\n }", "public function index()\n {\n\n return view('dashboard');\n }", "public function dashboardview() {\n \n $this->load->model('Getter');\n $data['dashboard_content'] = $this->Getter->get_dash_content();\n \n $this->load->view('dashboardView', $data);\n\n }", "public function index()\n {\n $this->authorize(DashboardPolicy::PERMISSION_STATS);\n\n $this->setTitle($title = trans('auth::dashboard.titles.statistics'));\n $this->addBreadcrumb($title);\n\n return $this->view('admin.dashboard');\n }", "public function action_index()\r\n\t{\t\t\t\t\r\n\t\t$this->template->title = \"Dashboard\";\r\n\t\t$this->template->content = View::forge('admin/dashboard');\r\n\t}", "public function index()\n {\n $info = SiteInfo::limit(1)->first();\n return view('backend.info.dashboard',compact('info'));\n }", "public function display()\n\t{\n\t\t// Set a default view if none exists.\n\t\tif (!JRequest::getCmd( 'view' ) ) {\n\t\t\tJRequest::setVar( 'view', 'dashboard' );\n\t\t}\n\n\t\tparent::display();\n\t}", "public function index()\n {\n $news = News::all();\n $posts = Post::all();\n $events = Event::all();\n $resources = Resources::all();\n $admin = Admin::orderBy('id', 'desc')->get();\n return view('Backend/dashboard', compact('admin', 'news', 'posts', 'events', 'resources'));\n }", "public function index()\n {\n\n return view('superAdmin.adminDashboard')->with('admin',Admininfo::all());\n\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n return view('dashboard.index');\n }", "public function index()\n {\n $this->template->set('title', 'Dashboard');\n $this->template->load('admin', 'contents' , 'admin/dashboard/index', array());\n }", "public function index()\n {\n return view('/dashboard');\n }", "public function index()\n {\n \treturn view('dashboard');\n }", "public function index()\n {\n return view('ketua.ketua-dashboard');\n }", "public function index(){\n return View::make('admin.authenticated.dashboardview');\n }", "public function admAmwDashboard()\n {\n return View::make('admission::amw.admission_test.dashboard');\n }", "public function index()\n {\n return view('adminpanel.home');\n }", "public function dashboard()\n\t{\n\t\t$this->validation_access();\n\t\t\n\t\t$this->load->view('user_dashboard/templates/header');\n\t\t$this->load->view('user_dashboard/index.php');\n\t\t$this->load->view('user_dashboard/templates/footer');\n\t}", "public function index()\n {\n return view('dashboard.home');\n }", "public function index()\n {\n $admins = $this->adminServ->all();\n $adminRoles = $this->adminTypeServ->all();\n return view('admin.administrators.dashboard', compact('admins', 'adminRoles'));\n }", "public function index()\n {\n if (ajaxCall::ajax()) {return response()->json($this -> dashboard);}\n //return response()->json($this -> dashboard);\n JavaScript::put($this -> dashboard);\n return view('app')-> with('header' , $this -> dashboard['header']);\n //return view('home');\n }", "public function index()\n {\n $userinfo=User::all();\n $gateinfo=GateEntry::all();\n $yarninfo=YarnStore::all();\n $greyinfo=GreyFabric::all();\n $finishinfo=FinishFabric::all();\n $dyesinfo=DyeChemical::all();\n return view('dashboard',compact('userinfo','gateinfo','yarninfo','greyinfo','finishinfo','dyesinfo'));\n }", "public function actionDashboard(){\n \t$dados_dashboard = Yii::app()->user->getState('dados_dashbord_final');\n \t$this->render ( 'dashboard', $dados_dashboard);\n }", "public function index()\n {\n $user = new User();\n $book = new Book();\n return view('admin.dashboard', compact('user', 'book'));\n }", "public function dashboard() {\n if (!Auth::check()) { // Check is user logged in\n // redirect to dashboard\n return Redirect::to('login');\n }\n\n $user = Auth::user();\n return view('site.dashboard', compact('user'));\n }", "public function dashboard()\n {\n $users = User::all();\n return view('/dashboard', compact('users'));\n }", "public function index()\n {\n $lineChart = $this->getLineChart();\n $barChart = $this->getBarChart();\n $pieChart = $this->getPieChart();\n\n return view('admin.dashboard.index', compact(['lineChart', 'barChart', 'pieChart']));\n }" ]
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7251768", "0.7241342", "0.7236133", "0.7235562", "0.7218318", "0.71989936", "0.7197427", "0.71913266", "0.71790016", "0.71684825", "0.71577966", "0.7146797", "0.7133428", "0.7132746", "0.71298903", "0.71249074", "0.71218014", "0.71170413", "0.7110151", "0.7109032", "0.7107029", "0.70974076", "0.708061", "0.7075653", "0.70751685", "0.7064041", "0.70550334", "0.7053102", "0.7051273", "0.70484304", "0.7043605", "0.70393986", "0.70197886", "0.70185125", "0.70139873", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.700917", "0.6992477", "0.6979631", "0.69741416", "0.69741327", "0.6968815", "0.6968294", "0.69677526", "0.69652885", "0.69586027", "0.6944985", "0.69432825", "0.69419175", "0.6941512", "0.6941439", "0.6938837", "0.6937524", "0.6937456", "0.6937456", "0.69276494", "0.6921651", "0.69074917", "0.69020325", "0.6882262", "0.6869339", "0.6867868", "0.68557185", "0.68479055", "0.684518", "0.68408877", "0.6838798", "0.6833479", "0.6832326", "0.68309164", "0.6826798", "0.6812457" ]
0.0
-1
/$style = array('width' => .1, 'cap' => 'square', 'color' => array(0, 0, 0)); $this>SetFont('times','N',11); $this>SetXY(10,265); $this>Cell(190,1,'V. VILLERO, MD, FPCR / DR. MARY JOAN KRISTINE C. UY, MD, MHA / P. BUATIS, MD / JK. FLORES, MD / P.R, MORALES, MD / L. ESTANISLAO, MD',0,0,'C',false,'',2,false,'T'); $this>Line(12, 270, 198, 270, $style); $this>Text(95,270,'RADIOLOGIST');
public function Footer() { $this->SetFont('times','B',9); $this->Text(5,260,'RADIOLOGISTS:'); $this->SetFont('times','B',8); $this->Text(5,265,'V. VILLERO,MD,FPCR/ R. REDONA, JR. MD,FPCR/ J. ABIERAS,MD,FPCR,FUSP,FCT-MRISP/ F. ESTANISLAO,MD,FPCR,FUSP'); $this->Text(5,270,'J. ESTORNINOS,MD,FPCR,FCT-MRISP/ I. VALERIANO,MD,FPCR,FUSP,FCT-MRI/ P. SYDIONGCO,MD,FPCR,FCT-MRISP/ E. GASCO,MD,FPCR,FUSP'); $this->Text(5,275,'M.UY,MD,MHA/ H.MAISO,MD/ P.BUATIS,MD/ J.K FLORES,MD/ P.MORALES,MD/ L. ESTANISLAO,MD/ J.LOMBRIO,MD/ A.BONGA,MD'); $this->SetFont('times','i',8); $this->Text(5,279,'DISCLAIMER: This findings are based on radiologic studies. It must be correlated with clinical, laboratory and other ancillary'); $this->Text(5,282,'procedures for comprehensive assessment of the patients condition. Thus, radiology reports are best explained by the attending'); $this->Text(5,285,'physician to the patient.'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function prot_legal()\r\n{\r\n $this->FPDF();\r\n //PARA HOJA A4\r\n $this->SetFont('Arial','B',8);\r\n $this->xoffset=15;\r\n $this->yoffset=20;\r\n $this->h2=5;//mm alto de las celdas\r\n\r\n \r\n $this->w1=30;//mm ancho del rectangulo en cliente\r\n $this->chk_w=5; //mm ancho del checkbox, el alto es el de la fila\r\n $this->pos_item=$this->yoffset+$this->h2*11;\r\n\r\n}", "function Header() //Encabezado\r\n {\r\n $this->SetFont('Arial','B',9);\r\n \r\n \r\n $this->Line(10,10,206,10);\r\n $this->Line(10,35.5,206,35.5);\r\n \r\n // $this->Cell(30,25,'',0,0,'C',$this->Image('imagenes/logo_publistika.jpg', 152,12, 19));\r\n $this->Cell(111,25,'',0,0,'C', $this->Image('imagenes/logo_publistika.jpg',70,12,80));\r\n //$this->Cell(40,25,'',0,0,'C',$this->Image('images/logoDerecha.png', 175, 12, 19));\r\n \r\n //Se da un salto de línea de 25\r\n $this->Ln(25);\r\n }", "function Header()\n\t{\n\t\tglobal $TAHUN;\n\t\tglobal $gelom;\n\t\tglobal $np;\n\t\t$this->Image('umg.jpg',2.5,0.7,1.8,1.8);\t\n\t\t$this->SetY(1);\n\t\t$this->SetFont('Times','',10);\t\t\n\t\tif($np=='1') { $test= 'BEBAS TEST'; }\n\t\tif($np=='2') { $test= 'TEST'; }\n\t\t$this->Cell(19,0.5,'UNIVERSITAS MUHAMMADIYAH GRESIK',0,0,'C'); \t\t\n\t\t$this->Ln();\n\t\t$this->Cell(19,0.5,'DAFTAR '.$test.' CALON MAHASISWA BARU',0,0,'C');\t\t\t\t\n\t\t$this->Ln();\n\t\t$this->Cell(19,0.5,'TAHUN '.$TAHUN.' GELOMBANG '.$gelom,0,0,'C');\t\t\t\t\n\t\t\n\t\t$this->Ln();\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Ln();\n\t\t$this->Cell(1.2,0.5,'No','LBRT',0,'C');\n\t\t$this->Cell(2.8,0.5,'Nomor Pendaftaran','LBRT',0,'C');\n\t\tif($np=='1') \n\t\t{ \n\t\t\t$this->Cell(10.8,0.5,'Nama Calon Mahasiswa','LBRT',0,'C');\n\t\t}\n\t\tif($np=='2') \n\t\t{ \n\t\t\t$this->Cell(2.8,0.5,'Nomor Ujian','LBRT',0,'C');\n\t\t\t$this->Cell(8,0.5,'Nama Calon Mahasiswa','LBRT',0,'C');\n\t\t}\n\t\t$this->Cell(4.2,0.5,'Jurusan','LBRT',0,'C');\n\t\t$this->Ln();\n\t}", "function Header() {\n //$this->Ln(2);\n date_default_timezone_set('America/Lima');\n $this->SetFont('Arial', 'B', 7.5);\n $this->Image(\"view/img/logo.png\", null, 5, 22, 17);\n $this->Image(\"view/img/logo.png\", 385, 5, 20, 20);\n $this->Cell(400,2, \"EL AGUILA SRL\", 0, 0, 'C');\n $this->Ln(4);\n $this->Cell(400,1, \"DIR1: Av. Bolivar # 395 Moshoqueque - Chiclayo - Peru\", 0, 0, 'C');\n $this->Ln(3);\n $this->Cell(400, 2, \"DIR1: Via Evitamiento km 2.5 Sector Chacupe - La Victoria\", 0, 0, 'C');\n $this->Ln(15);\n $this->SetFont('Arial','B',9);\n $this->Cell(400, 2, utf8_decode(\"Detalle de Producción\"), 0, 0, 'C');\n $this->ln(4); \n $this->Line(45,25,380,25);\n \n }", "function Header() {\n //$this->Ln(2);\n date_default_timezone_set('America/Lima');\n $this->SetFont('Arial', 'B', 7.5);\n $this->Image(\"view/img/logo.png\", null, 5, 22, 17);\n $this->Image(\"view/img/logo.png\", 385, 5, 20, 20);\n $this->Cell(400,2, \"EL AGUILA SRL\", 0, 0, 'C');\n $this->Ln(4);\n $this->Cell(400,1, \"DIR1: Av. Bolivar # 395 Moshoqueque - Chiclayo - Peru\", 0, 0, 'C');\n $this->Ln(3);\n $this->Cell(400, 2, \"DIR1: Via Evitamiento km 2.5 Sector Chacupe - La Victoria\", 0, 0, 'C');\n $this->Ln(15);\n $this->SetFont('Arial','B',9);\n// $this->Cell(400, 2, utf8_decode(\"Cumplimiento de entrega de las ordenes de Pedido\"), 0, 0, 'C');\n $this->ln(4); \n $this->Line(45,25,380,25);\n \n }", "function Header() {\n $this->SetFont('Helvetica', 'B', 18);\n //Judul dalam bingkai\n $this->Cell(0, 5, 'Daftar Hasil Seleksi Calon Siswa Baru', 0, 1, 'C');\n $this->SetFont('Helvetica', 'B', 16);\n $this->Cell(0, 15, 'Sekolah Dasar', 0, 0, 'C');\n //Ganti baris\n $this->Ln(20);\n }", "function Header()\r\n{\r\n $this->SetFont('Arial','B',15);\r\n // Move to the right\r\n $this->Cell(80);\r\n // Framed title\r\n //$this->Cell(30,10,'Title',1,0,'C');\r\n // Line break\r\n $this->Ln(15);\r\n}", "function Header() {\n $this->AddFont('Gotham-M','B','gotham-medium.php'); \n //seteamos el titulo que aparecera en el navegador \n $this->SetTitle(utf8_decode('Toma de Protesta Candidato PVEM'));\n\n //linea que simplemente me marca la mitad de la hoja como referencia\n \t$this->Line(139.5,$this->getY(),140,250);\n\n \t//bajamos la cabecera 13 espacios\n $this->Ln(10);\n //seteamos la fuente, el color de texto, y el color de fondo de el titulo\n $this->SetFont('Gotham-M','B',11);\n $this->SetTextColor(255,255,255);\n $this->SetFillColor(73, 168, 63);\n //escribimos titulo\n $this->Cell(0,5,utf8_decode('Toma de Protesta Candidato PVEM'),0,0,'C',1); //el completo es 279 bueno 280 /2 = 140 si seran 10 de cada borde, entonces 120\n\n $this->Ln();\n }", "function TablaVentasDiariasVendedor()\n {\t\n\t\n\t $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n\t $this->SetXY(10, 15); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n //$this->Cell(130);\n //Título\n $this->Cell(140,8,'',0,0,'');\n\t$this->Cell(180,8,'LISTADO DE VENTAS DIARIAS DEL '.date(\"d-m-Y\"),0,1,'C');\n\t\n $this->Cell(140,8,'',0,0,'');\n\t$this->Cell(180,8,'DE CAJA N°.'.base64_decode($_GET['caja']),0,0,'C');\n //Salto de línea\n $this->Ln(15);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(32,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'CAJA',1,0,'C', True);\n\t$this->CellFitSpace(60,8,'CLIENTES',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'ARTIC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL CON IVA',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL IVA 0%',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'IVA',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL IVA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'DESC',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL DESC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'TOTAL PAGO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarVentasDiarias();\n\t$totalarticulos=0;\n\t$Subtotalconiva=0;\n\t$Subtotalsiniva=0;\n\t$Totaliva=0;\n\t$Totaldescuento=0;\n\t$pagoDescuento=0;\n\t$Pagototal=0;\n\t$PagototalCompras=0;\n\t$a=1;\n\t\n for($i=0;$i<sizeof($reg);$i++){\n\t\n $totalarticulos+=$reg[$i]['articulos'];\n $Subtotalconiva+=$reg[$i]['subtotalivasive'];\n $Subtotalsiniva+=$reg[$i]['subtotalivanove'];\n\t$Totaliva+=$reg[$i]['totalivave']; \n\t$Totaldescuento+=$reg[$i]['totaldescuentove']; \n\t$Pagototal+=$reg[$i]['totalpago'];\n $PagototalCompras+=$reg[$i]['totalpago2']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(32,5,$reg[$i][\"codventa\"],1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"nrocaja\"]),1,0,'C');\n\t$this->CellFitSpace(60,5,utf8_decode($reg[$i][\"nomcliente\"]),1,0,'C');\n\t$this->CellFitSpace(35,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa']))),1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"articulos\"]),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivasive'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivanove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['ivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totalivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['descuentove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totaldescuentove'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['totalpago'], 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\n $this->Cell(35,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(15,5,utf8_decode($totalarticulos),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalconiva, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalsiniva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaliva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaldescuento, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Pagototal, 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n\t$UtilidadBruto= $Pagototal-$PagototalCompras;\n\t$MargenBruto = ( $UtilidadBruto == '' ? \"0.00\" : number_format($UtilidadBruto/$PagototalCompras, 2, '.', ','));\n\t\n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n\t$this->Cell(35,5,'',0,0,'C');\n\t$this->Cell(15,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(22,5,'',0,0,'C');\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(37,5,\"TOTAL GANANCIAS\",1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(30,5,utf8_decode(number_format($MargenBruto*100, 2, '.', ',')),1,0,'C');\n $this->Ln();\n\n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "function paludisme($nb_susp,$nb_tdr_moins,$nb_tdr_plus,$nb_traite){\n $this->SetFont('Arial','',15);\n $this->Cell(0,6,\"Tableau de Paludisme\");\n $this->Ln();\n $this->SetFont('Times','',12);\n $this->Cell(140,5,\"Nombre de supect de paludisme \",1);\n $this->Cell(14,5,$nb_susp,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,utf8_decode(\"Nombre de cas de paludisme testés\"),1);\n $this->Cell(14,5,$nb_tdr_moins + $nb_tdr_plus,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,\"Nombre de cas de TDR+\",1);\n $this->Cell(14,5,$nb_tdr_plus,1,0,'R');\n $this->Ln();\n $this->Cell(140,5,utf8_decode(\"Nombre de cas de paludisme traités (confirmé)\"),1);\n $this->Cell(14,5,$nb_traite,1,0,'R');\n $this->Ln();\n $this->Ln();\n }", "function TabelWarna($header,$data)\n{\n // setting lebar masing-masing kolom dalam mm\n $w=array(2,9,5,5,5,7); \n\n // membuat kepala tabel\n for($i=0;$i<count($header);$i++)\n {\n\t// memberi warna latar merah pada kepala tabel\n\t$this->SetFillColor(255, 0, 0); \t\n// setting huruf bold pada kepala tabel\n\t$this->SetFont('Arial','B',12); \n\t// parameter L menunjukkan teks rata kiri pada setiap \n// sel kepala tabel \n$this->Cell($w[$i],1,$header[$i],1,0,'L',1); \n }\n $this->Ln();\n // menampilkan data\n // setting jenis font pada data tabel\n $this->SetFont('Arial','',10); \n\t\n $j = 0;\n foreach($data as $row)\n {\n\t// menampilkan perubahan warna latar putih dan biru muda \n// setiap ganti baris\n\tif ($j % 2 == 0) \n $this->SetFillCOlor(255,255,255); // setting warna putih\n\telse \n $this->SetFillCOlor(224,235,255); // setting warna biru muda\n\t\n\t// menampilkan data rata kiri\t\n\tfor($i=0;$i<=sizeof($w)-1;$i++)\n\t\t$this->Cell($w[$i],6,$row[$i],1,0,'L',1);\t\t\t\t\t\t\t\n $this->Ln();\n\t$j++;\n }\n // penutup tabel\n $this->Cell(array_sum($w),0,'','T');\n}", "function header (){\n\t\t$this->setfont('Arial','B', 16);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'WANANCHI', 0, 0, 'C');\n\t\t$this->Ln(10);\n\t\t$this->setfont('Arial','',12);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'INFORMATION',0, 0, 'C');\n\t\t$this->Ln(30);\n\t}", "function Header()\n{\n $this->SetFont('Arial','B',15);\n // Move to the right\n $this->Cell(80);\n // Framed title\n\t$this->SetDrawColor(0,80,180);\n $this->SetFillColor(230,230,0);\n $this->SetTextColor(220,50,50);\n // Thickness of frame (1 mm)\n $this->SetLineWidth(1);\n\t$this->Cell($w,9,$title,1,1,'C',true);\n $this->Cell(30,10,'Title',1,0,'C');\n // Line break\n $this->Ln(40);\n}", "function Header(){\n\t\t$linha = 5;\n\t\t// define o X e Y na pagina\n\t\t$this->SetXY(10,10);\n\t\t// cria um retangulo que comeca na coordenada X,Y e\n\t\t// tem 190 de largura e 265 de altura, sendo neste caso,\n\t\t// a borda da pagina\n\t\t$this->Rect(10,10,190,265);\n\t\t\n\t\t// define a fonte a ser utilizada\n\t\t$this->SetFont('Arial', 'B', 8);\n\t\t$this->SetXY(11,11);\n\t\t\n\t\t// imprime uma celula com bordas opcionais, cor de fundo e texto.\n\t\t$agora = date(\"G:i:s\");\n\t\t$hoje = date(\"d/m/Y\");\n\t\t$this->Cell(10,$linha,$agora,0,0,'C');\n\t\t$this->Cell(150,$linha,'..:: Fatec Bauru - Relatorio de Cursos da Fatec ::..',0,0,'C');\n\t\t$this->Cell(30,$linha,$hoje,0,0,'C');\n\t\t\n\t\t// quebra de linha\n\t\t$this->ln();\n\t\t$this->SetFillColor(232,232,232);\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->SetFont('Arial', 'B', 8);\n\n\t\t$this->Cell(10,4,'ID','LTR',0,'C',1);\n\t\t$this->Cell(140,4,'Nome do Curso','LTR',0,'C',1);\n\t\t$this->Cell(40,4,'Periodo','LTR',0,'C',1);\n\t}", "public function Header(){\n if(count($this->_groups)){\n $this->SetFont('Arial','B',8);\n $this->SetDrawColor(160,160,160);\n $this->SetTextColor(160,160,160);\n $grp = array();\n foreach(array_keys($this->_groups) as $field){\n if(empty($this->_groups[$field][\"currentMsg\"])||!$this->_changePage){\n $grp[] = \"{grp_$field}\";\n }else{\n $grp[] = $this->_groups[$field][\"currentMsg\"];\n }\n }\n $grp = join($grp,\" / \");\n $this->Cell(0,4,$grp,'B',1,'L');\n $this->Ln(4);\n }\n $date = new Date();\n $this->SetTextColor(100);\n $this->SetFillColor(245);\n $this->SetY(4);\n $this->SetFont('Arial','B',10);\n //$str = \"Elaborado el \".$date->getYear().\" - \".$date->getMonthName().\" - \".$date->getDay().\" del \".date(\"H:i:s\");\n $this->ln();\n $this->ln();\n $this->ln();\n $this->ln();\n $str = \"Fecha: \".$date->getYear().\" - \".$date->getMonth().\" - \".$date->getDay();\n $x = $this->GetStringWidth($str);\n $this->Cell($x+10,5,$str,0,0,'L');\n // $this->Cell(0,5,Session::getData(\"nomcaj\"),\"B\",\"R\",'R');\n $this->ln();\n $this->ln();\n $this->ln();\n $this->SetTextColor(0);\n $this->SetFont('Arial','B',12);\n if(is_array($this->_titulo)){\n foreach($this->_titulo as $titulo){\n $w=$this->GetStringWidth($titulo);\n $this->SetX(($this->w - $w) / 2);\n $this->Cell($w,5,$titulo,0,1,'C');\n }\n }else{\n $w=$this->GetStringWidth($this->_titulo);\n $this->SetX(($this->w - $w) / 2);\n $this->Cell($w,5,$this->_titulo,0,1,'C');\n }\n $this->Ln();\n $this->Ln();\n $this->SetTextColor(100);\n $this->SetFont('Arial','',9);\n $this->Cell(0,2,'',0,1,'C');\n //$this->Image(\"public/img/portal/logo_mercurio_report.jpg\",14,11,60,13);\n //$this->Image(\"public/img/portal/logo_sys_report.jpg\",140,11,60,15);\n if(!count($this->_groups)||$this->_changePage){\n $this->__Header();\n $this->_changePage = false;\n }else{\n $this->__Header();\n }\n }", "public function EncabezadoFBM3() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t//$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 1, '');\r\n\t\t//$this->Celda($ancho-100, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-108, 25, '', 1, 0, '', true);\r\n\t\t$y3 = $this->getY();\r\n\t\t$x3 = $this->getX();\r\n\t\t$this->Celda(28, 25, '', 1, 1, '', true);\r\n\t\t$y4 = $this->getY();\r\n\t\t$x4 = $this->getX();\r\n\t\t\t\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-115, 6, 'Formulario B.M.3', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-115, 8, 'RELACION DE BIENES MUEBLES FALTANTES', 0, 1, 'C', true);\r\n\t\t$this->setY($y3);\r\n\t\t$this->setX($x3);\r\n\t\t$this->Celda(28, 8, 'HOJA Nro.', 1, 1, 'C', true);\r\n\t\t$this->setX($x3);\r\n\t\t$this->Celda(28, 17, $this->PageNo(), 1, 1, 'C', true);\r\n\t\t$this->setY($y4);\r\n\t\t$this->setX($x4);\r\n\t\t\r\n\t\t$this->Ln(2);\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda($ancho, 26, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 10, '1. Entidad:', 0, 0, '', true);\r\n\t\t$xt = $this->getX();\r\n\t\t$this->Celda(20, 5, 'Estado ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['estado']), 'B', 1, '', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(20, 5, 'Municipio ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-110, 5, strtoupper($this->header['municipio']), 'B', 0, '', true);\r\n\t\t$xt = $this->getX();\r\n\t\t$this->Ln();\r\n\t\t$yt = $this->getY();\r\n\t\t\r\n\t\t$this->setY($y);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(69, 6, '4. Identificación del Comprobante', 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.5, 'Codigo Concepto Movimiento', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.5, '60', 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.75, 'Numero de Comprobante', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.75, $this->header['comprobante'], 1, 1, 'C', true);\r\n\t\t$this->setX($xt);\r\n\t\t$this->Celda(44, 6.75, 'Fecha de la Operacion', 1, 0, '', true);\r\n\t\t$this->Celda(25, 6.75, $this->header['fecha'], 1, 1, 'C', true);\r\n\t\t\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(40, 5, '2. Unidad de Trabajo: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(40, 5, '3. Unidad Administrativa: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-111, 5, $this->capitalizar($this->header['adm']), 'B', 1, '', true);\r\n\t\t$this->Ln();\r\n\t}", "function Header()\n\t\t{\n\t\t\t$this->SetFont('Helvetica','B',18);\n\t\t\t$this->SetTextColor(184,10,10);\n\t\t\t$this->Cell(30);\n\t\t\t$this->Cell(120,10,utf8_decode(\"Mensajes Contestados\"),0,0,'C');\n\t\t\t$this->Ln(20);\n\t\t}", "function Header()\n{\n $this->SetFont('Arial','',9);\n\t$this->Image('img/noctua_ico.jpeg',15,10,-300,0,'','../../InformeCargos.php');\n // Move to the right\n $this->Cell(80);\n // Framed title\n\t$this->text(15,32,utf8_decode('Noctua Nigth Club - Pilar'));\n\t$this->text(300,32,'Sistema Servidor de Aplicaciones Moviles');\n //$this->text(315,37,'Mes: '.utf8_decode(genMonth_Text($mes).' Año: 2016'));\n\t//$this->Cell(30,10,'noc',0,0,'C');\n // Line break\n $this->Ln(30);\n\t$this->SetDrawColor(0,0,0);\n\t$this->SetLineWidth(.2);\n\t$this->Line(360 ,33,10,33);//largor,ubicacion derecha,inicio,ubicacion izquierda\n//table header \n \n $this->SetFont('Arial','B',8);\n $this->SetTitle('Resumen De Reservas');\n $this->Cell(300,5,'NOCTUA NIGTH CLUB',100,100,'C');//Titulo\n $this->SetFillColor(153,192,141);\n $this->SetTextColor(255);\n $this->SetDrawColor(153,192,141);\n $this->SetLineWidth(.3);\n /*$this->Cell(20,10,'SIAPE',1,0,'L',1);\n $this->Cell(50,10,'Nome',1,1,'L',1);*/\n \n $this->Cell(25,10,'Item',1,0,'C',1);\n $this->Cell(40,10,'Nombre',1,0,'C',1);\n $this->Cell(90,10,'Observaciones',1,0,'C',1);\n $this->Cell(40,10,'Evento',1,0,'C',1);\n $this->Cell(30,10,'Fecha',1,0,'C',1);\n $this->Cell(25,10,'Activo',1,0,'C',1);\n $this->Cell(25,10,'Confirmado',1,0,'C',1);\n $this->Cell(30,10,'Telefono',1,1,'C',1);\n \n\n\n//Restore font and colors\n\n\n}", "function Header(){\n $this->Image('fpdf2/usp.png',10,8,20,20);//x,y,ancho,alto\n $this->SetFont('Arial','B',16); ////el B es en negrita\n //$this->setFillColor(64,224,208);\n $this->SetTextColor(66,73,61);\n $this->Cell(0,35,'Presentaciones Registradas',0,1,'C');///el cero indica que la celda ocupa el ancho de la pagina\n ////el true, en el Cell indica que el fondo se dibuja, si se omite es false\n ///datos de la empresa\n $this->SetXY(10, 25);\n $this->SetFont('Arial','',10);\n $this->Cell(5,20,'Farmacia Felicidad');\n $this->SetXY(10, 25);\n $this->Cell(15,29,'R.U.C: 236437309');\n $this->SetXY(10, 25);\n $this->Ln();\n }", "function Fecha()\n\t{\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(133);\n\t\t$this->Cell(12,5,strtoupper(_('fecha')).\": \",0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"d/m/Y\"),0,0,'L');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Cell(12,5,strtoupper(_('hora')).\": \",0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"h:i:s A\"),0,0,'L');\n\t\t$this->Ln();\t\t\n\t}", "public function Header() {\r\n $this->SetTextColor(0,0,0);\r\n $this->SetDrawColor(0,0,0);\r\n /* definimos variables con titulo y subtitulo */\r\n $titulo=\"Coordinación de Calidad\";\r\n $subtitulo=\"Reporte Diario de Sustancias Químicas \";\r\n /* posicionamos el puto de insercion 2mm. debajo\r\n del borde del papel */\r\n $this->SetY(8);\r\n /* escribimos el titulo con la fuente que se establezca\r\n por el método opcion SetHeaderFont */\r\n $this->SetFont('helvetica', 'B', 14);\r\n\r\n $this->Cell(0, 5,$titulo,0,1,'C');\r\n /* modificamos tipografia para el subtitulo\r\n e insertamos este */\r\n $this->SetFont('helvetica', '', 12);\r\n $this->Cell(0, 2,$subtitulo,0,1,'C');\r\n /* trazamos un rectangulo sombreado que por sus dimensiones\r\n ocupará el area de texto de la pagina */\r\n \r\n /*trazamos una linea roja debajo del encabezado */\r\n $this->Line(15,30,195,30); \r\n /* insertamos una imagen de fondo con 15% de opacidad */\r\n \r\n $this->Image('logo.png',0,0,30,30,\r\n '','','N','','','L');\r\n /* recuperamos la opacidad por defecto */\r\n \r\n }", "function FrontPageTable(){\r\n //$this->SetFillColor(135,206,250);\r\n $this->SetFillColor(176,196,222);\r\n $this->SetTextColor(0);\r\n $this->SetDrawColor(0,0,0);\r\n $this->SetLineWidth(.3);\r\n $this->SetFont('','B');\r\n // Header\r\n\r\n $this->SetX(35);\r\n $this->Cell(70,7,'Prepared By:',1,0,'C',true);\r\n $this->Cell(40,7,'Organization',1,0,'C',true);\r\n $this->Cell(40,7,'Date',1,0,'C',true);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetTextColor(0,0,0);\r\n $this->SetFont('');\r\n $this->Cell(70,7,$this->PreparedBy,1,0,'C',false);\r\n $this->Cell(40,7,'NRAO',1,0,'C',false);\r\n $this->Cell(40,7,$this->MakeDate,1,0,'C',false);\r\n $this->Ln();\r\n\r\n\r\n $this->SetX(35);\r\n $this->SetTextColor(0);\r\n $this->SetFont('','B');\r\n $this->Cell(70,7,'FEIC WP Manager Approval:',1,0,'C',true);\r\n $this->Cell(40,7,'Organization',1,0,'C',true);\r\n $this->Cell(40,7,'Date',1,0,'C',true);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetFont('');\r\n $this->Cell(70,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetTextColor(0);\r\n $this->SetFont('','B');\r\n $this->Cell(70,7,'FE System Engineering Approval:',1,0,'C',true);\r\n $this->Cell(40,7,'Organization',1,0,'C',true);\r\n $this->Cell(40,7,'Date',1,0,'C',true);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetFont('');\r\n $this->Cell(70,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetTextColor(0);\r\n $this->SetFont('','B');\r\n $this->Cell(70,7,'FE IPT Lead Approval:',1,0,'C',true);\r\n $this->Cell(40,7,'Organization',1,0,'C',true);\r\n $this->Cell(40,7,'Date',1,0,'C',true);\r\n $this->Ln();\r\n $this->SetX(35);\r\n $this->SetFont('');\r\n $this->Cell(70,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Cell(40,27,'',1,0,'C',false);\r\n $this->Ln();\r\n\r\n // Color and font restoration\r\n $this->SetFillColor(224,235,255);\r\n $this->SetTextColor(255);\r\n $this->SetFont('');\r\n // Data\r\n $fill = false;\r\n }", "function Fecha()\n\t{\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(133);\n\t\t$this->Cell(12,5,strtoupper(_('fecha')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"d/m/Y\"),0,0,'L');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Cell(12,5,strtoupper(_('hora')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"h:i:s A\"),0,0,'L');\n\t\t$this->Ln();\t\t\n\t}", "function TablaCreditosFechas()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 20 ,12, 60 , 20 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',10);\n //Movernos a la derecha\n $this->Cell(100);\n //Título\n $this->Cell(110,20,'LISTADO DE CRÉDITOS PENDIENTES POR FECHAS '.$_GET[\"desde\"].' HASTA '.$_GET[\"hasta\"].'',0,0,'C');\n //Salto de línea\n $this->Ln(25);\t\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(40,5,'',0,0,'');\n\t$this->Cell(35,5,'CÉDULA GERENTE: ',0,0,'');\n\t$this->Cell(45,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->Cell(30,5,'NOMBRE GERENTE:',0,0,'');\n\t$this->Cell(83,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(40,5,'',0,0,'');\n\t$this->Cell(35,5,'TELÉFONO GERENTE: ',0,0,'');\n $this->Cell(45,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->Cell(30,5,'CORREO GERENTE:',0,0,'');\n $this->Cell(83,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(8,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'CÉDULA',1,0,'C', True);\n\t$this->CellFitSpace(55,8,'NOMBRE CLIENTE',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'N° CAJA',1,0,'C', True);\n\t$this->CellFitSpace(17,8,'STATUS',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'DIAS VENC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'TOT FACTURA',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'TOT ABONO',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'TOT DEBE',1,1,'C', True);\n\t\n \t$tra = new Login();\n $reg = $tra->BuscarCreditosFechas(); \n\t$TotalFactura=0;\n\t$TotalCredito=0;\n\t$TotalDebe=0;\n\t$a=1;\n\tfor($i=0;$i<sizeof($reg);$i++){ \n\t$TotalFactura+=$reg[$i]['totalpago'];\n\t$TotalCredito+=$reg[$i]['abonototal'];\n\t$TotalDebe+=$reg[$i]['totalpago']-$reg[$i]['abonototal'];\n\n\t$this->SetFont('courier','',7); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(8,5,$a++,1,0,'C');\n $this->CellFitSpace(20,5,$reg[$i]['cedcliente'],1,0,'C');\n\t$this->CellFitSpace(55,5,$reg[$i][\"nomcliente\"],1,0,'C');\n\t$this->CellFitSpace(20,5,$reg[$i]['nrocaja'],1,0,'C');\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode(\"VENCIDA\"),1,0,'C');\n\t}\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(20, 5,utf8_decode(\"0\"),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(20, 5,utf8_decode(\"0\"),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(20, 5,utf8_decode(Dias_Transcurridos(date(\"Y-m-d\"),$reg[$i]['fechavencecredito'])),1,0,'C');\n\t}\n\t$this->CellFitSpace(30,5,$reg[$i][\"codventa\"],1,0,'C');\n\t$this->CellFitSpace(25,5,date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa'])),1,0,'C');\n $this->CellFitSpace(25,5,number_format($reg[$i]['totalpago'], 2, '.', ','),1,0,'C');\n\t$this->CellFitSpace(20,5,number_format($reg[$i]['abonototal'], 2, '.', ','),1,0,'C');\n\t$this->CellFitSpace(20,5,number_format($reg[$i]['totalpago']-$reg[$i]['abonototal'], 2, '.', ','),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(8,5,'',0,0,'C');\n $this->Cell(20,5,'',0,0,'C');\n $this->Cell(55,5,'',0,0,'C');\n $this->Cell(20,5,'',0,0,'C');\n $this->Cell(17,5,'',0,0,'C');\n $this->Cell(20,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(25,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',7);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(25,5,utf8_decode(number_format($TotalFactura, 2, '.', ',')),1,0,'C');\n $this->Cell(20,5,utf8_decode(number_format($TotalCredito, 2, '.', ',')),1,0,'C');\n $this->Cell(20,5,utf8_decode(number_format($TotalDebe, 2, '.', ',')),1,0,'C');\n $this->Ln();\n\n\n \n $this->Ln(15); \n $this->SetFont('courier','B',9);\n $this->Cell(250,0,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]).' RECIBIDO POR:___________________________','',1,'C');\n $this->Ln(4);\n }", "function TablaComprasGeneral()\n {\t\n\t //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO GENERAL DE COMPRAS',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'CÓDIGO COMPRA',1,0,'C', True);\n\t$this->CellFitSpace(60,8,'PROVEEDOR',1,0,'C', True);\n\t$this->CellFitSpace(17,8,'STATUS',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'FECHA COMPRA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'ARTICULOS',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL CON IVA',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL IVA 0%',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'IVA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'TOTAL IVA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'DESC',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'TOTAL DESC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'TOTAL PAGO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarCompras();\n\t$totalarticulos=0;\n\t$Subtotalconiva=0;\n\t$Subtotalsiniva=0;\n\t$Totaliva=0;\n\t$Totaldescuento=0;\n\t$pagoDescuento=0;\n\t$Pagototal=0;\n\t$a=1;\n\t\n for($i=0;$i<sizeof($reg);$i++){\n\t\n $totalarticulos+=$reg[$i]['articulos'];\n $Subtotalconiva+=$reg[$i]['subtotalivasic'];\n $Subtotalsiniva+=$reg[$i]['subtotalivanoc'];\n\t$Totaliva+=$reg[$i]['totalivac']; \n\t$Totaldescuento+=$reg[$i]['totaldescuentoc']; \n\t$Pagototal+=$reg[$i]['totalc']; \n\t\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(30,5,$reg[$i][\"codcompra\"],1,0,'C');\n\t$this->CellFitSpace(60,5,utf8_decode($reg[$i][\"nomproveedor\"]),1,0,'C');\n\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statuscompra']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statuscompra']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode(\"VENCIDA\"),1,0,'C');\n\t}\n\t\t\n\t$this->CellFitSpace(35,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechacompra']))),1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"articulos\"]),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivasic'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivanoc'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['ivac'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(25,5,utf8_decode(number_format($reg[$i]['totalivac'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['descuentoc'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(25,5,utf8_decode(number_format($reg[$i]['totaldescuentoc'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['totalc'], 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\n $this->Cell(60,5,'',0,0,'C');\t\n $this->Cell(15,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(35,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(15,5,utf8_decode($totalarticulos),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalconiva, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalsiniva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(25,5,utf8_decode(number_format($Totaliva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(25,5,utf8_decode(number_format($Totaldescuento, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Pagototal, 2, '.', ',')),1,0,'C');\n $this->Ln();\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n\t\n }", "function Header() {\r\n $this->Image($this->logourl, 6, 5, 12,12);\r\n $this->SetFont('courier', '', 8);\r\n $this->SetY(11);\r\n $this->SetX(19);\r\n// $this->SetTextColor(224,17,36);\r\n $this->SetTextColor(1,152,74);\r\n $this->SetFont('courier', 'B', 10);\r\n $this->Cell(55, 4, $this->companyname, 0, 0, 'L');\r\n $this->SetY(14);\r\n $this->SetX(19);\r\n $this->SetFont('courier', 'B', 8);\r\n// $this->SetTextColor(1,152,74);\r\n $this->SetTextColor(224,17,36);\r\n $this->Cell(55, 4, $this->companyaddress, 0, 0, 'L');\r\n $this->SetTextColor(0);\r\n $this->SetY(10);\r\n $this->SetX(130);\r\n// $this->Cell(75, 4, 'Department : ' . $this->dataheader[0], 0, 0, 'R', false);\r\n \r\n $this->SetFont('courier', 'B', 14);\r\n \r\n $this->SetY(12);\r\n $this->SetX(5);\r\n $this->Cell(200, 6, $this->metadata['Title'], 0, 0, 'C');\r\n $this->SetY(18);\r\n $this->SetFont('courier', '', 8);\r\n $this->Cell(200, 5, $this->dataheader[0], 0, 0, 'C');\r\n// $this->Cell(200, 5, 'test', 0, 0, 'C');\r\n $this->SetY(22);\r\n \r\n $this->SetFont('courier', 'B', 8);\r\n $this->Ln(1);\r\n }", "function SetLyricsFont() {\r\n $this->SetFont(\"Arial\", \"\", 14);\r\n $this->SetTextColor(0, 0, 0);\r\n }", "public static function renderRadio();", "function Header()\n\t{\n\t\t// Police Arial gras 24\n\t\t$this->SetTextColor(255,10,22);\n\t\t$this->SetFont('Arial','B',14);\n\t\t// Décalage à droite\n\t\t$this->Cell(10);\n\t\t// Titre (ligne,titre)\n\t\t$this->Cell('',10,'Liste des employes',0,0,'C');\n\t\t// Saut de ligne\n\t\t$this->Ln(20);\n\t}", "function Header()\n\t{\n\t\t$this->Image('../imagenes/logo.jpg',15,10,40);\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->SetXY(70,15)\t;\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','L');\n\t//\t$this->MultiCell(190,5,\"CABLE, C.A.\",'0','L');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->SetX(70)\t;\n\t\t$this->MultiCell(190,5,strtoupper(_(tipo_serv())),'0','L');\n\t\t//$this->Ln(8);\n\t}", "function TablaVentasGeneral()\n {\t\n\t //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO GENERAL DE VENTAS',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(32,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'CAJA',1,0,'C', True);\n\t$this->CellFitSpace(60,8,'CLIENTES',1,0,'C', True);\n\t$this->CellFitSpace(17,8,'STATUS',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'ARTIC',1,0,'C', True);\n\t$this->CellFitSpace(28,8,'SUBTOT CON IVA',1,0,'C', True);\n\t$this->CellFitSpace(28,8,'SUBTOT IVA 0%',1,0,'C', True);\n\t$this->CellFitSpace(12,8,'IVA',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL IVA',1,0,'C', True);\n\t$this->CellFitSpace(12,8,'DESC',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'TOT DESC',1,0,'C', True);\n\t$this->CellFitSpace(27,8,'TOTAL PAGO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarVentas();\n\t$totalarticulos=0;\n\t$Subtotalconiva=0;\n\t$Subtotalsiniva=0;\n\t$Totaliva=0;\n\t$Totaldescuento=0;\n\t$pagoDescuento=0;\n\t$Pagototal=0;\n\t$a=1;\n\t\n for($i=0;$i<sizeof($reg);$i++){\n\t\n $totalarticulos+=$reg[$i]['articulos'];\n $Subtotalconiva+=$reg[$i]['subtotalivasive'];\n $Subtotalsiniva+=$reg[$i]['subtotalivanove'];\n\t$Totaliva+=$reg[$i]['totalivave']; \n\t$Totaldescuento+=$reg[$i]['totaldescuentove']; \n\t$Pagototal+=$reg[$i]['totalpago']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(32,5,$reg[$i][\"codventa\"],1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"nrocaja\"]),1,0,'C');\n\t$this->CellFitSpace(60,5,utf8_decode($reg[$i][\"nomcliente\"]),1,0,'C');\n\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode(\"VENCIDA\"),1,0,'C');\n\t}\n\t$this->CellFitSpace(35,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa']))),1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"articulos\"]),1,0,'C');\n\t$this->CellFitSpace(28,5,utf8_decode(number_format($reg[$i]['subtotalivasive'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(28,5,utf8_decode(number_format($reg[$i]['subtotalivanove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(12,5,utf8_decode(number_format($reg[$i]['ivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totalivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(12,5,utf8_decode(number_format($reg[$i]['descuentove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(20,5,utf8_decode(number_format($reg[$i]['totaldescuentove'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(27,5,utf8_decode(number_format($reg[$i]['totalpago'], 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(52,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(15,5,utf8_decode($totalarticulos),1,0,'C');\n $this->Cell(28,5,utf8_decode(number_format($Subtotalconiva, 2, '.', ',')),1,0,'C');\n $this->Cell(28,5,utf8_decode(number_format($Subtotalsiniva, 2, '.', ',')),1,0,'C');\n $this->Cell(12,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaliva, 2, '.', ',')),1,0,'C');\n $this->Cell(12,5,\"\",1,0,'C');\n $this->Cell(20,5,utf8_decode(number_format($Totaldescuento, 2, '.', ',')),1,0,'C');\n $this->Cell(27,5,utf8_decode(number_format($Pagototal, 2, '.', ',')),1,0,'C');\n $this->Ln();\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n\t\n }", "function entete_table($position_entete) {\n global $pdf;\n $pdf->SetDrawColor(183); // Couleur du fond RVB\n $pdf->setFillColor(89,133,255); // Couleur des filets RVB\n $pdf->SetTextColor(0); // Couleur du texte noir\n $pdf->SetY($position_entete);\n // position de colonne 1 (10mm à gauche)\n $pdf->SetX(5);\n $pdf->Cell(40,8,'Prestation',1,0,'C',1); // 60 >largeur colonne, 8 >hauteur colonne\n // position de la colonne 2 (70 = 10+60)\n $pdf->SetX(45);\n $pdf->Cell(40,8,'Date',1,0,'C',1);\n $pdf->SetX(85);\n $pdf->Cell(40,8,'Prix HT',1,0,'C',1);\n $pdf->SetX(125);\n $pdf->Cell(40,8,'Tva',1,0,'C',1);\n $pdf->SetX(165);\n $pdf->Cell(40,8,iconv(\"UTF-8\", \"CP1250//TRANSLIT\", \"Quantité/Durée\"),1,0,'C',1);\n\n // position de la colonne 3 (130 = 70+60)\n\n\n $pdf->Ln(); // Retour à la ligne\n}", "function Header()\t{\n\n\t\tif (! empty ($this->Watermark)) {\n\t\t\t$this->SetFont('Arial','B',50);\n \t$this->SetTextColor(255,192,203);\n \t\t$this->RotatedText(35,190, $this->Watermark, 45);\n \t\t$this->RotatedText(40,210, \"Election will be held in 2020\", 45);\n \t\t$this->SetTextColor(0,0,0);\n\t\t}\n\t\t\n $this->SetFont('Arial','B',24);\n $this->Ln(15);\n $this->Cell(0,0, \"CERTIFICATE OF ACCEPTANCE\",0,0,'C');\n $this->Ln(13);\n $this->Cell(0,0, strtoupper($this->party) . \" PARTY\",0,0,'C');\t\t\n $this->Ln(15); \n \n\t\t$YLocation_new = $Top_Corner_Y = $this->GetY() - 1.5; \n \t\t$this->SetY($Top_Corner_Y); \n \t$MyTop = $YLocation = $this->GetY();\n \n \t$this->Line($this->Line_Left, $YLocation - 0.1, $this->Line_Right, $YLocation - 0.1); \n \t$this->Ln(2.8);\n\t \t\t\t\n $YLocation = $this->GetY() - 1.5 ;\n \n $Botton_Corner_Y = $this->GetY();\n\n\n \t\t$this->Ln(10); \n\t\t$this->SetFont('Arial','', 18); \n\t\t$this->SetX(10);\n\t\t$this->MultiCell(190, 8, \"I, \" . $this->CandidateName . \", residing at \" . $this->CandidateAddress . \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\" having been designated/nominated by the \" . $this->party . \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\" Party, as a candidate for the office of \" . $this->PublicOffice . \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\", do hereby accept such designation/nomination and consent to be \" . \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"such candidate of such party at a \" . $this->TypeOffice . \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\" election to be held on \" . $this->ElectionDate . \".\");\n \t\n \n\t\t$this->SetXY(10, 135); \n\t\t$this->MultiCell(0, 10, \"____________________\\nDate\");\n\t\t$this->SetXY(110, 135); \n\t\t$this->MultiCell(0, 10, \"_________________________\\nSignature of Candidate\");\n\t\t \t\t\n\t\t \t\t\n \t$this->Ln(7);\n \n \t$this->SetX(10); $this->MultiCell(0, 10, \"State of New York\");\n \t$this->SetX(10); $this->MultiCell(0, 8, \"County of \" . $this->PubNotaryCounty . \" : ss:\");\n\t\t$this->Ln(4.5);\n \t\n \t \t$this->SetX(10); \n \t$this->MultiCell(190, 8, \"On this \" . $this->PubNotaryDay . \" day of \" . $this->PubNotaryMonth . \n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\", before me personally appeared \" . $this->CandidateName . \", to me known and known \" .\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\" to me to be the individual described therein, and who executed the foregoing instrument, \" .\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\" and acknowledged to me that he/she executed the same.\");\n \t\n \n\t\t$this->SetXY(110, 245); \n\t\t$this->MultiCell(0, 10, \"_________________________\\nNotary Public\");\n \n\t\t\n \n\t}", "function FancyTable($header,$data)\n\t\t{\n\t\t\t$this->SetFillColor(255,0,0);\n\t\t\t$this->SetTextColor(255);\n\t\t\t$this->SetDrawColor(128,0,0);\n\t\t\t$this->SetLineWidth(.1);\n\t\t\t//$this->SetFont('arial','','B');\n\t\t\t$this->SetFontSize(8);\n\t\t\t//$this->SetLeftMargin(20);\n\t\t\t//Header\n\t\t\tif ($_SESSION['klik']=='Vkupno'){\n\t\t\t\t$w=array(25,36,25,25,25,25); //tuka se kazuva kolku i kolkavi koloni imame\n\t\t\t\t$this->SetLeftMargin(22);\n\t\t\t}\n\t\t\telseif ($_SESSION['klik']==\"Vkupno_saldo\"){\n\t\t\t\t$w=array(17,34,23,25,23,23,23,23);\n\t\t\t}\n\t\t\telseif($_SESSION['klik']=='Analitika'){\n\t\t\t\tif ($_SESSION['totfin']==1){\n\t\t\t\t\t$w=array(40,30,30,30,30);\n\t\t\t\t\t$this->SetLeftMargin(24);\n\t\t\t\t}else{\n\t\t\t\t\t$w=array(25,25,40,25,25,25,25);\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor($i=0;$i<count($header);$i++)\n\t\t\t\t$this->Cell($w[$i],6,$header[$i],1,0,'C',true);\n\t\t\t$this->Ln();\n\t\t\t//Color and font restoration\n\t\t\t$this->SetFillColor(224,235,255);\n\t\t\t$this->SetTextColor(0);\n\t\t\t//$this->SetFont('Arial');\n\t\t\t$this->SetFontSize(8);\n\t\t\t//Data\n\t\t\t$fill=false;\n\t\t\t\n\t\t\tif ($_SESSION['klik']=='Vkupno'){\n\t\t\tforeach($data as $row)\n\t\t\t\t{ //tuka gi pravime kolonite\n\t\t\t\t$this->Cell($w[0],6,$row[1],'LR',0,'C',$fill);\n\t\t\t\t$this->Cell($w[1],6,$row[0],'LR',0,'C',$fill);\n\t\t\t\t$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[4],6,number_format($row[4]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[5],6,number_format($row[5]),'LR',0,'R',$fill);\n\t\t\t\t$this->Ln();\n\t\t\t\t$fill=!$fill;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($_SESSION['klik']==\"Vkupno_saldo\"){\n\t\t\t\tforeach($data as $row)\n\t\t\t\t{ //tuka gi pravime kolonite\n\t\t\t\t$this->Cell($w[0],6,$row[1],'LR',0,'C',$fill);\n\t\t\t\t$this->Cell($w[1],6,$row[0],'LR',0,'C',$fill);\n\t\t\t\t$this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[4],6,number_format($row[4]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[5],6,number_format($row[5]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[6],6,number_format($row[6]),'LR',0,'R',$fill);\n\t\t\t\t$this->Cell($w[7],6,number_format($row[7]),'LR',0,'R',$fill);\n\t\t\t\t$this->Ln();\n\t\t\t\t$fill=!$fill;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif($_SESSION['klik']=='Analitika'){\n\t\t\t\tif ($_SESSION['totfin']==1){\n\t\t\t\t\tforeach($data as $row)\n\t\t\t\t\t{ //tuka gi pravime kolonite\n\t\t\t\t\t$this->Cell($w[0],6,$row[4],'LR',0,'C',$fill);\n\t\t\t\t\t$this->Cell($w[1],6,number_format($row[7]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[2],6,number_format($row[8]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[3],6,number_format($row[9]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[4],6,number_format($row[10]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Ln();\n\t\t\t\t\t$fill=!$fill;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tforeach($data as $row)\n\t\t\t\t\t{ //tuka gi pravime kolonite\n\t\t\t\t\t$this->Cell($w[0],6,$row[3],'LR',0,'C',$fill);\n\t\t\t\t\t$this->Cell($w[1],6,$row[2],'LR',0,'C',$fill);\n\t\t\t\t\t$this->Cell($w[2],6,$row[4],'LR',0,'C',$fill);\n\t\t\t\t\t$this->Cell($w[3],6,number_format($row[7]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[4],6,number_format($row[8]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[5],6,number_format($row[9]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Cell($w[6],6,number_format($row[10]),'LR',0,'R',$fill);\n\t\t\t\t\t$this->Ln();\n\t\t\t\t\t$fill=!$fill;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t$this->Cell(array_sum($w),0,'','T');\n\t\t}", "public function Footer(){\n $this->SetY(-15);\n $this->SetFont('Arial','I',6);\n $this->Cell(0,5,'\"ESTA FACTURA CONTRIBUYE AL DESARROLLO DEL PAIS, EL USO ILICITO DE ESTA SERA SANCIONADO DE ACUERDO A LEY\"',0,0,'C');\n $this->Ln(5);\n $this->Cell(0,5,'Ley No 453: Tienes derecho a un trato equitativo sin discriminacion en la oferta de servicios.',0,0,'C');\n }", "function TablaVentasDiariasAdmin()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO DE VENTAS GENERAL DEL DIA '.date(\"d-m-Y\"),0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(32,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'CAJA',1,0,'C', True);\n\t$this->CellFitSpace(60,8,'CLIENTES',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'ARTIC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL CON IVA',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'SUBTOTAL IVA 0%',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'IVA',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL IVA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'DESC',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL DESC',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'TOTAL PAGO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarVentasDiarias();\n\t$totalarticulos=0;\n\t$Subtotalconiva=0;\n\t$Subtotalsiniva=0;\n\t$Totaliva=0;\n\t$Totaldescuento=0;\n\t$pagoDescuento=0;\n\t$Pagototal=0;\n\t$PagototalCompras=0;\n\t$a=1;\n\t\n for($i=0;$i<sizeof($reg);$i++){\n\t\n $totalarticulos+=$reg[$i]['articulos'];\n $Subtotalconiva+=$reg[$i]['subtotalivasive'];\n $Subtotalsiniva+=$reg[$i]['subtotalivanove'];\n\t$Totaliva+=$reg[$i]['totalivave']; \n\t$Totaldescuento+=$reg[$i]['totaldescuentove']; \n\t$Pagototal+=$reg[$i]['totalpago'];\n $PagototalCompras+=$reg[$i]['totalpago2']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(32,5,$reg[$i][\"codventa\"],1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"nrocaja\"]),1,0,'C');\n\t$this->CellFitSpace(60,5,utf8_decode($reg[$i][\"nomcliente\"]),1,0,'C');\n\t$this->CellFitSpace(35,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa']))),1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"articulos\"]),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivasive'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['subtotalivanove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['ivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totalivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(15,5,utf8_decode(number_format($reg[$i]['descuentove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totaldescuentove'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i]['totalpago'], 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\n $this->Cell(35,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(15,5,utf8_decode($totalarticulos),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalconiva, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Subtotalsiniva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaliva, 2, '.', ',')),1,0,'C');\n $this->Cell(15,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaldescuento, 2, '.', ',')),1,0,'C');\n $this->Cell(30,5,utf8_decode(number_format($Pagototal, 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n\t$UtilidadBruto= $Pagototal-$PagototalCompras;\n\t$MargenBruto = ( $UtilidadBruto == '' ? \"0.00\" : number_format($UtilidadBruto/$PagototalCompras, 2, '.', ','));\n\t\n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n\t$this->Cell(35,5,'',0,0,'C');\n\t$this->Cell(15,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(22,5,'',0,0,'C');\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(37,5,\"TOTAL GANANCIAS\",1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(30,5,utf8_decode(number_format($MargenBruto*100, 2, '.', ',')),1,0,'C');\n $this->Ln();\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "public function EncabezadoFBM1() {\t\r\n\t\t$fs = 10;\r\n\t\t$ancho = 256;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, 'C.M.S.= U.B.M. - 07(09-08-2010)', 0, 0, '');\r\n\t\t\t\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->Celda(156, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 23, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 23, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 68 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-84, 6, 'FORMULARIO B.M.1', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-84, 8, 'INVENTARIO DE BIENES MUEBLES', 0, 1, 'C', true);\r\n\t\t\r\n\t\t$fs = 8;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t$this->Ln(6);\r\n\t\t\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda(256, 28, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '1. Entidad Propietaria: ', 0, 0, '', true);\r\n\t\t$this->Celda(215, 5, 'MUNICIPIO SUCRE', 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '2. Servicio: ', 0, 0, '', true);\r\n\t\t$this->Celda(225, 5, $this->capitalizar($this->header['servicio']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(50, 5, '3. Unidad de Trabajo o Dependencia: ', 0, 0, '', true);\r\n\t\t$this->Celda(195, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '4. Estado: ', 0, 0, '', true);\r\n\t\t$this->Celda(120, 5, $this->capitalizar($this->header['estado']), 'B', 0, '', true);\r\n\t\t$this->Celda(20, 5, '5. Municipio: ', 0, 0, '', true);\r\n\t\t$this->Celda(85, 5, $this->capitalizar($this->header['municipio']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setX($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '6. Direccion o Lugar: ', 0, 0, '', true);\r\n\t\t$this->Celda(110, 5, $this->capitalizar($this->header['direccion']), 'B', 0, '', true);\r\n\t\t$this->Celda(20, 5, '7. Fecha: ', 0, 0, '', true);\r\n\t\t$this->Celda(85, 5, $this->capitalizar($this->header['fecha']), 'B', 0, '', true);\r\n\t\t$this->setY($y2);\r\n\t}", "function Header()\n\t{\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','C');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(190,5,tipo_serv(),'0','C');\n\t\t$this->SetFont('Arial','B',10);\n\t\t$this->SetTextColor(0,0,0);\n\t\t$this->MultiCell(190,7,strtoupper(_('listado de clientes para cortes')),'0','C');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(133);\n\t\t$this->Cell(12,5,strtoupper(_('fecha')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"d/m/Y\"),0,0,'L');\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->Cell(12,5,strtoupper(_('hora')).': ',0,0,'L');\n\t\t$this->SetFont('Arial','',8);\n\t\t$this->Cell(18,5,date(\"h:i:s A\"),0,0,'L');\n\t\t$this->Ln();\t\t\n\t}", "function fcell($c_width,$c_height,$x_axis,$text){\n $w_w=$c_height/3;\n $w_w_1=$w_w+2;\n $w_w1=$w_w+$w_w+$w_w+3;\n $len=strlen($text); \n if($len>10){\n $w_text=str_split($text,10);\n $this->SetX($x_axis);\n $this->Cell($c_width,$w_w_1,$w_text[0],'','','');\n $this->SetX($x_axis);\n $this->Cell($c_width,$w_w1,$w_text[1],'','','');\n $this->SetX($x_axis);\n $this->Cell($c_width,$c_height,'','LTRB',0,'C',0);\n }\n else{\n $this->SetX($x_axis);\n $this->Cell($c_width,$c_height,$text,'LTRB',0,'C',0);\n }\n }", "public function Header(){\n $this->Image(base_url().'vendors/images/admin-text-dark.png',13,14,0);\n $this->SetFont('Arial','B',25);\n $this->Cell(0,14,'FACTURA DE PAGO',0,0,'C');\n $this->Ln(20);\n }", "function TablaVentasFechas()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO DE VENTAS DESDE '.$_GET[\"desde\"].' HASTA '.$_GET[\"hasta\"].'',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(32,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'CAJA',1,0,'C', True);\n\t$this->CellFitSpace(60,8,'CLIENTES',1,0,'C', True);\n\t$this->CellFitSpace(17,8,'STATUS',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(15,8,'ARTIC',1,0,'C', True);\n\t$this->CellFitSpace(28,8,'SUBTOT CON IVA',1,0,'C', True);\n\t$this->CellFitSpace(28,8,'SUBTOT IVA 0%',1,0,'C', True);\n\t$this->CellFitSpace(12,8,'IVA',1,0,'C', True);\n\t$this->CellFitSpace(22,8,'TOTAL IVA',1,0,'C', True);\n\t$this->CellFitSpace(12,8,'DESC',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'TOT DESC',1,0,'C', True);\n\t$this->CellFitSpace(27,8,'TOTAL PAGO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->BuscarVentasFechas();\n\t$totalarticulos=0;\n\t$Subtotalconiva=0;\n\t$Subtotalsiniva=0;\n\t$Totaliva=0;\n\t$Totaldescuento=0;\n\t$pagoDescuento=0;\n\t$Pagototal=0;\n\t$a=1;\n\t\n for($i=0;$i<sizeof($reg);$i++){\n\t\n $totalarticulos+=$reg[$i]['articulos'];\n $Subtotalconiva+=$reg[$i]['subtotalivasive'];\n $Subtotalsiniva+=$reg[$i]['subtotalivanove'];\n\t$Totaliva+=$reg[$i]['totalivave']; \n\t$Totaldescuento+=$reg[$i]['totaldescuentove']; \n\t$Pagototal+=$reg[$i]['totalpago']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(32,5,$reg[$i][\"codventa\"],1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"nrocaja\"]),1,0,'C');\n\t$this->CellFitSpace(60,5,utf8_decode($reg[$i][\"nomcliente\"]),1,0,'C');\n\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode(\"VENCIDA\"),1,0,'C');\n\t}\n\t$this->CellFitSpace(35,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa']))),1,0,'C');\n\t$this->CellFitSpace(15,5,utf8_decode($reg[$i][\"articulos\"]),1,0,'C');\n\t$this->CellFitSpace(28,5,utf8_decode(number_format($reg[$i]['subtotalivasive'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(28,5,utf8_decode(number_format($reg[$i]['subtotalivanove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(12,5,utf8_decode(number_format($reg[$i]['ivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(22,5,utf8_decode(number_format($reg[$i]['totalivave'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(12,5,utf8_decode(number_format($reg[$i]['descuentove'], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(20,5,utf8_decode(number_format($reg[$i]['totaldescuentove'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(27,5,utf8_decode(number_format($reg[$i]['totalpago'], 2, '.', ',')),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(10,5,'',0,0,'C');\n $this->Cell(32,5,'',0,0,'C');\t\t\n $this->Cell(15,5,'',0,0,'C');\n $this->Cell(60,5,'',0,0,'C');\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(52,5,'TOTAL GENERAL',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(15,5,utf8_decode($totalarticulos),1,0,'C');\n $this->Cell(28,5,utf8_decode(number_format($Subtotalconiva, 2, '.', ',')),1,0,'C');\n $this->Cell(28,5,utf8_decode(number_format($Subtotalsiniva, 2, '.', ',')),1,0,'C');\n $this->Cell(12,5,\"\",1,0,'C');\n $this->Cell(22,5,utf8_decode(number_format($Totaliva, 2, '.', ',')),1,0,'C');\n $this->Cell(12,5,\"\",1,0,'C');\n $this->Cell(20,5,utf8_decode(number_format($Totaldescuento, 2, '.', ',')),1,0,'C');\n $this->Cell(27,5,utf8_decode(number_format($Pagototal, 2, '.', ',')),1,0,'C');\n $this->Ln();\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "function Shaded_box($text, $font = '', $fontstyle = 'B', $szfont = '', $width = '70%', $style = 'DF', $radius = 2.5, $fill = '#FFFFFF', $color = '#000000', $pad = 2)\n\t{\n\t\tif (!$font) {\n\t\t\t$font = $this->mpdf->default_font;\n\t\t}\n\t\tif (!$szfont) {\n\t\t\t$szfont = $this->mpdf->default_font_size * 1.8;\n\t\t}\n\n\t\t$text = ' ' . $text . ' ';\n\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, false);\n\n\t\t$text = $this->mpdf->purify_utf8_text($text);\n\n\t\tif ($this->mpdf->text_input_as_HTML) {\n\t\t\t$text = $this->mpdf->all_entities_to_utf8($text);\n\t\t}\n\n\t\tif ($this->mpdf->usingCoreFont) {\n\t\t\t$text = mb_convert_encoding($text, $this->mpdf->mb_enc, 'UTF-8');\n\t\t}\n\n\n\t\t// DIRECTIONALITY\n\t\tif (preg_match('/([' . $this->mpdf->pregRTLchars . '])/u', $text)) {\n\t\t\t$this->mpdf->biDirectional = true;\n\t\t} // *RTL*\n\n\t\t$textvar = 0;\n\t\t$save_OTLtags = $this->mpdf->OTLtags;\n\t\t$this->mpdf->OTLtags = [];\n\n\t\tif ($this->mpdf->useKerning) {\n\t\t\tif ($this->mpdf->CurrentFont['haskernGPOS']) {\n\t\t\t\t$this->mpdf->OTLtags['Plus'] .= ' kern';\n\t\t\t} else {\n\t\t\t\t$textvar |= TextVars::FC_KERNING;\n\t\t\t}\n\t\t}\n\t\t// Use OTL OpenType Table Layout - GSUB & GPOS\n\t\tif (!empty($this->mpdf->CurrentFont['useOTL'])) {\n\t\t\t$text = $this->otl->applyOTL($text, $this->mpdf->CurrentFont['useOTL']);\n\t\t\t$OTLdata = $this->otl->OTLdata;\n\t\t}\n\t\t$this->mpdf->OTLtags = $save_OTLtags;\n\n\t\t$this->mpdf->magic_reverse_dir($text, $this->mpdf->directionality, $OTLdata);\n\n\t\tif (!$width) {\n\t\t\t$width = $this->mpdf->pgwidth;\n\t\t} else {\n\t\t\t$width = $this->sizeConverter->convert($width, $this->mpdf->pgwidth);\n\t\t}\n\t\t$midpt = $this->mpdf->lMargin + ($this->mpdf->pgwidth / 2);\n\t\t$r1 = $midpt - ($width / 2); //($this->mpdf->w / 2) - 40;\n\t\t$r2 = $r1 + $width; //$r1 + 80;\n\t\t$y1 = $this->mpdf->y;\n\n\t\t$loop = 0;\n\n\t\twhile ($loop === 0) {\n\t\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, false);\n\t\t\t$sz = $this->mpdf->GetStringWidth($text, true, $OTLdata, $textvar);\n\t\t\tif (($r1 + $sz) > $r2) {\n\t\t\t\t$szfont --;\n\t\t\t} else {\n\t\t\t\t$loop ++;\n\t\t\t}\n\t\t}\n\t\t$this->mpdf->SetFont($font, $fontstyle, $szfont, true, true);\n\n\t\t$y2 = $this->mpdf->FontSize + ($pad * 2);\n\n\t\t$this->mpdf->SetLineWidth(0.1);\n\t\t$fc = $this->colorConverter->convert($fill, $this->mpdf->PDFAXwarnings);\n\t\t$tc = $this->colorConverter->convert($color, $this->mpdf->PDFAXwarnings);\n\t\t$this->mpdf->SetFColor($fc);\n\t\t$this->mpdf->SetTColor($tc);\n\t\t$this->mpdf->RoundedRect($r1, $y1, $r2 - $r1, $y2, $radius, $style);\n\t\t$this->mpdf->SetX($r1);\n\t\t$this->mpdf->Cell($r2 - $r1, $y2, $text, 0, 1, 'C', 0, '', 0, 0, 0, 'M', 0, false, $OTLdata, $textvar);\n\t\t$this->mpdf->SetY($y1 + $y2 + 2); // +2 = mm margin below shaded box\n\t\t$this->mpdf->Reset();\n\t}", "public function EncabezadoFBM5() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t//$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 0, '');\r\n\t\t$this->Celda($ancho, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 25, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t//$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-85, 6, $this->header['title'], 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-85, 8, $this->header['title2'], 0, 1, 'C', true);\r\n\t}", "public function Header()\r\n\t{\r\n\t\t$this->Ln();\r\n\t\t$this->SetFont('Arial','',14);\r\n\t\t$this->Cell(170,7,\"Date :: \". $this->today_date ,1,0,'C');\r\n\t\t$this->Ln();\r\n\t\t$this->SetFont('Arial','',14); \r\n\t\t$this->MultiCell(170,8,\"Room Things Report \\n\".$this->title,1,'C');\r\n\t\t$this->Ln(5);\r\n\r\n\t}", "function SetChordsFont() {\r\n $this->SetFont(\"Arial\", \"B\", 14);\r\n $this->SetTextColor(0, 0, 255);\r\n }", "function Header()\n {\n\n\n //list($r, $b, $g) = $this->xheadercolor;\n $this->setY(5);\n //$this->SetFillColor($r, $b, $g);\n //$this->SetTextColor(0 , 0, 0);\n //$this->Cell(0,20, '', 0,1,'C', 1);\n //$this->Text(15,26,$this->xheadertext );\n \n \n // get the current page break margin\n $bMargin = $this->getBreakMargin();\n // get current auto-page-break mode\n $auto_page_break = $this->AutoPageBreak;\n // disable auto-page-break\n $this->SetAutoPageBreak(false, 0);\n // set bacground image\n $img_file = WWW_ROOT.'/img/Resul_Agua.jpg';\n $this->Image($img_file, 0, 0, 216, 279, '', '', '', false, 300, '', false, false, 0);\n // restore auto-page-break status\n $this->SetAutoPageBreak($auto_page_break, $bMargin);\n // set the starting point for the page content\n $this->setPageMark();\n \n\n $this->writeHTML($this->xheadertext, true, false, true, false, '');\n\n // Transformacion para la rotacion de el numero de orden y el contenedor de la muestra\n $this->StartTransform();\n //$this->SetFont('freesans', '', 5);\n $this->SetFont('', '', 5);\n $this->Rotate(-90, 117, 117);\n //$tcpdf->Rect(39, 50, 40, 10, 'D');\n $this->Text(5, 30, 'Software Asistencial Médico \"SAM\" V.1.1 ® - https://samsalud.info ®');\n // Stop Transformation\n $this->StopTransform();\n\n // if ( $this->variable == 1 )\n // {\n // draw jpeg image x, y ancho, alto\n // $this->Image(WWW_ROOT.'/img/BORRADOR.png', 40, 60, 450, 250, '', '', '', true, 72);\n\n // restore full opacity\n $this->SetAlpha(0);\n // }\n\n }", "function Footer(){\n $this->SetY(-25);\n // Arial italic 8\n $this->SetFont('Arial','B',8);\n // Page number\n $this->Cell(125,10,'NOTE :','LTR',0,'L');\n $this->Cell(30,7, $this->normalize('REPORT BY'),'BR',0,'L',);\n $this->Cell(40,7, $this->normalize(''),'BR',1,'L',);\n\n $this->Cell(125,7,'','LBR',0,'L');\n $this->Cell(30,7, $this->normalize('INSPETOR BY'),'TBR',0,'L',);\n $this->Cell(40,7, $this->normalize(''),'TBR',1,'L',);\n $this->SetFont('THSarabunNew','B',12);\n $this->Cell(60,7, iconv('UTF-8', 'cp874','อายุการจัดเก็บ : 2 ปี'),'',0,'L',);\n $this->Cell(60,7,'Page '.$this->PageNo().'/{nb}',0,0,'C');\n $this->Cell(75,7, iconv('UTF-8', 'cp874','FM-MA-04 REV.7 : 1 Nov 09'),'',1,'R',);\n\n\n}", "function Header()\n{\n\t$this->Image('recursos/logo.jpg', 20, 20, 180 );\n\t$this->SetFont('Arial','',10);\n\t$this->Text(20,14,'',0,'C', 0);\n\t$this->Ln(30);\n}", "function TituloCampos()\n\t{\n\t\t\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(195,212,235);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(10,20,21,74,25,25,18);\n\t\t$header=array(strtoupper(_('nro')),strtoupper(_('nro abo.')),strtoupper(_('cedula')),strtoupper(_('nombre y apellido')),strtoupper(_('Etiqueta')),strtoupper(_('telefono')),strtoupper(_('deuda')));\n\t\t$this->SetFont('Arial','B',8);\n\t\t$this->SetX(10);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "function Contenido($imagenlogo) {\n \t$this->SetMargins(10,10,151.5);\n\n \t//declaramos las fuentes a usar o tentativamente a usar ya que no sabemos cual es la original\n\t $this->AddFont('Gotham-B','','gotham-book.php');\n\t $this->AddFont('Gotham-B','B','gotham-book.php');\n\t $this->AddFont('Gotham-M','','gotham-medium.php');\n\t $this->AddFont('Helvetica','','helvetica.php');\n\n //variables locales\n $numero_de_presidiums=6;\n\n $presidium_orden=\"1\";\n $presidium_nombre=\"Cesar Gibran Cadena Espinosa de los Monteros\";\n $presidium_cargo=\"Dirigente de Redes y Enlaces \";\n\n \t//la imagen del PVEM\n \t$this->Image($imagenlogo, $this->GetX()+10, $this->GetY()+10, 100,40);\n\n \t//el primer espacio\n \t$this->Ln(3);\n $this->SetFillColor(231, 234,243); //color de fondo donde se va a rellenar los campos (como azul claro)\n $this->SetFont('Helvetica', '', 9); //font de cuando se va a rellenar la informacion\n $this->SetTextColor(0,0,0); //color gris para las letras\n $this->Cell(35, 5,utf8_decode(\"Distribución Logística:\"), 0,0, 'C', 1);\n\n $this->setY($this->GetY()+45);\n $this->Ln();\n $this->SetFillColor(231, 234,243); //color de fondo donde se va a rellenar los campos (como azul claro)\n $this->SetFont('Helvetica', '', 9); //font de cuando se va a rellenar la informacion\n $this->SetTextColor(0,0,0); //color gris para las letras\n $this->Cell(40, 5,utf8_decode(\"Presídium (Primera Fila):\"), 0,0, 'C', 1);\n\n $this->Ln(); \n $this->Ln(); \n\n $this->SetFillColor(160,68,68); //color de fondo donde se va a rellenar los campos (como azul claro)\n $this->SetTextColor(255); //color gris para las letras\n $tamano= ($numero_de_presidiums*7.5)/2;\n $this->setX((120/2)-$tamano);\n\n if ( ($numero_de_presidiums) % 2 ==1){ //es impar\n $candidato=($numero_de_presidiums/2)+.5;\n }else{\n $candidato=($numero_de_presidiums/2)+1;\n }\n\n for($i=0;$i<=$numero_de_presidiums;$i++){\n\n if ( ($i+1) == $candidato ){\n $this->Cell(7, 7,utf8_decode(\"*\"), 1, 0, 'C', 1);\n }else{\n $this->Cell(7, 7,utf8_decode(\"\"), 1, 0, 'C', 1); \n }\n }\n $this->Ln(); \n $this->Ln(5); \n\n\n //CONFIGURACION DE COLOR VERDE CON BLANCO\n $this->SetFont('Gotham-B','',6.5);\n $this->SetFillColor(73, 168, 63);\n $this->SetTextColor(255);\n $this->Cell(9, 5,utf8_decode(\"Orden\"), 'LR', 0, 'C', 1);\n $this->Cell(55, 5,utf8_decode(\"Nombre\"), 'LR', 0, 'C', 1);\n $this->Cell(0, 5,utf8_decode(\"Cargo\"), 'LR', 0, 'C', 1);\n\n\n $this->Ln(); \n\n\n //CONFIGURACION SIN COLOR de fondo\n $this->SetFont('Helvetica', '', 6.5); //font de cuando se va a rellenar la informacion\n $this->SetFillColor(255, 255, 255);\n $this->SetTextColor(0);\n\n\n //ESTO ES LO QUE IRIA EN UN FOR\n for($i=0;$i<=7;$i++){\n \n $this->Cell(9, 5,utf8_decode($presidium_orden), 1, 0, 'C', 1);\n $this->Cell(55, 5,utf8_decode($presidium_nombre), 1, 0, 'C', 1);\n $this->MultiCell(0, 5,utf8_decode($presidium_cargo), 1, 'C', 1);\n $this->Ln(1);\n } \n \n }", "function TablaKardexGeneral()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO GENERAL DE KARDEX',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$kardex = new Login();\n $kardex = $kardex->ListarKardexProductos();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'MOVIMIENTO',1,0,'C', True);\n\t$this->CellFitSpace(55,8,'PROVEEDOR/CLIENTE',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'ENTRADAS',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'SALIDAS',1,0,'C', True);\n\t$this->CellFitSpace(28,8,'PRECIO COSTO',1,0,'C', True);\n\t$this->CellFitSpace(32,8,'COSTO MOVIMIENTO',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'STOCK ACTUAL',1,0,'C', True);\n\t$this->CellFitSpace(80,8,'DOCUMENTO',1,0,'C', True);\n\t$this->CellFitSpace(40,8,'FECHA KARDEX',1,1,'C', True);\n\t\n $TotalEntradas=0;\n $TotalSalidas=0;\n $a=1;\n for($i=0;$i<sizeof($kardex);$i++){ \n $TotalEntradas+=$kardex[$i]['entradas'];\n $TotalSalidas+=$kardex[$i]['salidas']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(25,5,$kardex[$i]['movimiento'],1,0,'C');\n\t\n\tif($kardex[$i][\"codresponsable\"]==\"0\") { \n\t$this->CellFitSpace(55,5,\"INVENTARIO INICIAL\",1,0,'C'); \n\t} elseif($kardex[$i][\"movimiento\"]==\"ENTRADAS\"){ \n\t$this->CellFitSpace(55,5,utf8_decode($kardex[$i]['proveedor']),1,0,'C');\n\t} elseif($kardex[$i][\"movimiento\"]==\"SALIDAS\"){ \n\t$this->CellFitSpace(55,5,utf8_decode($kardex[$i]['clientes']),1,0,'C');\n }\n\t\t\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['entradas']),1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['salidas']),1,0,'C');\n\t$this->CellFitSpace(28,5,utf8_decode(number_format($kardex[$i]['preciounit'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(32,5,utf8_decode(number_format($kardex[$i]['costototal'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['stockactual']),1,0,'C');\n\t$this->CellFitSpace(80,5,utf8_decode($kardex[$i]['documento']),1,0,'C');\n\t$this->CellFitSpace(40,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($kardex[$i]['fechakardex']))),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t/*$this->Cell(325,5,'',0,0,'C');\n\t$this->Ln();\n\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(120,5,'DETALLES DEL PRODUCTO',1,0,'C', True);\n\t$this->Ln();\n\t\n $this->Cell(35,5,'CÓDIGO',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['codproducto']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'DESCRIPCIÓN',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['producto']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'CATEGORIA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['nomcategoria']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'ENTRADAS',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($TotalEntradas),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'SALIDAS',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($TotalSalidas),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'EXISTENCIA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['existencia']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'PRECIO COMPRA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['preciocompra']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'PRECIO VENTA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['precioventa']),1,0,'C');*/\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "function TablaKardexProductos()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',18);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO GENERAL DE KARDEX POR PRODUCTO',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$kardex = new Login();\n $kardex = $kardex->BuscarKardexProducto();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'MOVIMIENTO',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'ENTRADAS',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'SALIDAS',1,0,'C', True);\n\t$this->CellFitSpace(40,8,'PRECIO COSTO',1,0,'C', True);\n\t$this->CellFitSpace(40,8,'COSTO MOVIMIENTO',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'STOCK ACTUAL',1,0,'C', True);\n\t$this->CellFitSpace(110,8,'DOCUMENTO',1,0,'C', True);\n\t$this->CellFitSpace(40,8,'FECHA',1,1,'C', True);\n\t\n $TotalEntradas=0;\n $TotalSalidas=0;\n $a=1;\n for($i=0;$i<sizeof($kardex);$i++){ \n $TotalEntradas+=$kardex[$i]['entradas'];\n $TotalSalidas+=$kardex[$i]['salidas']; \n\t\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(35,5,$kardex[$i]['movimiento'],1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['entradas']),1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['salidas']),1,0,'C');\n\t$this->CellFitSpace(40,5,utf8_decode(number_format($kardex[$i]['preciounit'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(40,5,utf8_decode(number_format($kardex[$i]['costototal'], 2, '.', ',')),1,0,'C');\n\t$this->CellFitSpace(20,5,utf8_decode($kardex[$i]['stockactual']),1,0,'C');\n\t$this->CellFitSpace(110,5,utf8_decode($kardex[$i]['documento']),1,0,'C');\n\t$this->CellFitSpace(40,5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($kardex[$i]['fechakardex']))),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(325,5,'',0,0,'C');\n\t$this->Ln();\n\t\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(120,5,'DETALLES DEL PRODUCTO',1,0,'C', True);\n\t$this->Ln();\n\t\n $this->Cell(35,5,'CÓDIGO',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['codproducto']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'DESCRIPCIÓN',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['producto']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'CATEGORIA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['nomcategoria']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'ENTRADAS',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($TotalEntradas),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'SALIDAS',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($TotalSalidas),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'EXISTENCIA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['existencia']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'PRECIO COMPRA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['preciocompra']),1,0,'C');\n\t$this->Ln();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n\t$this->Cell(35,5,'PRECIO VENTA',1,0,'C', True);\n $this->SetFont('courier','B',8);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(85,5,utf8_decode($kardex[0]['precioventa']),1,0,'C');\n \n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "function TituloCampos()\n\t{\n\t\t$this->Ln();\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(20,74,42,44);\n\t\t$header=array(strtoupper(_('numero')),strtoupper(_('nombre')),strtoupper(_('familia')),strtoupper(_('unidad medida')));\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->SetX(15);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "function FancyTable($header, $data)\n{\n $this->SetFillColor(255,0,0);\n $this->SetTextColor(255);\n $this->SetDrawColor(128,0,0);\n $this->SetLineWidth(.3);\n $this->SetFont('','B');\n // Header\n $w = array(40, 35, 40, 45);\n for($i=0;$i<count($header);$i++)\n $this->Cell($w[$i],7,$header[$i],1,0,'C',true);\n $this->Ln();\n // Color and font restoration\n $this->SetFillColor(224,235,255);\n $this->SetTextColor(0);\n $this->SetFont('');\n // Data\n $fill = false;\n foreach($data as $row)\n {\n $this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);\n $this->Cell($w[1],6,$row[1],'LR',0,'L',$fill);\n $this->Cell($w[2],6,number_format($row[2]),'LR',0,'R',$fill);\n $this->Cell($w[3],6,number_format($row[3]),'LR',0,'R',$fill);\n $this->Ln();\n $fill = !$fill;\n }\n // Closing line\n $this->Cell(array_sum($w),0,'','T');\n}", "function drawSimpleRow($color, $text) {\r\n\t\t\t\techo(\"<tr align = 'center' bgcolor = '$color'>\");\r\n\t\t\t\t\techo(\"<td colspan = '8'>$text</td>\");\r\n\t\t\t\techo(\"</tr>\");\r\n\t\t\t}", "function makeHeader(){\n\tglobal $pdf;\n\t\n\t// logo\n\t$pdf->Image('img/mepbro-pdf.png', 27, 27, 218);\n\t\n\t// title box\n\t$pdf->SetFillColor(51,102,255);\n\t$pdf->Rect(263, 27, 323, 72, 'F');\n\t// title lines\n\t$pdf->SetTextColor(255,255,255);\n\t$pdf->SetFont('Helvetica','B',34);\n\t$pdf->SetXY(263, 31);\n\t$pdf->Cell(323,36,'HOSE TEST', 0, 1, 'C');\n\t$pdf->SetXY(263, 64);\n\t$pdf->Cell(323,36,'CERTIFICATE', 0, 1, 'C');\n\t\n\treturn 126;\n\t\n}", "function zen_draw_radio_field($name, $value = '', $checked = false, $parameters = '') {\n return zen_draw_selection_field($name, 'radio', $value, $checked, $parameters);\n }", "function Header()\n{\nif($this->PageNo() == 1){\n\t$this->SetFont('Arial','',9);\n\t$this->Cell(0,6,'Presidential Realty',0,1,'L');\n\t$this->SetFont('Arial','B',16);\n\t$this->Cell(100,5,'SHORT SALE ADDENDUM',0,0,'L');\n\t$this->Ln();\n\t$this->SetFont('Arial','B',12);\n\t$this->Cell(100,8,'TO THE RESIDENTIAL RESALE REAL ESTATE PURCHASE CONTRACT',0,1,'L');\n\t$this->SetFont('Arial','',7);\n\t$this->SetY(15);\n\t$this->SetX(175);\n\t$this->Cell(30,3,'Page '.$this->PageNo().' of {nb}','',1,'C');\n\t$this->SetY(18);\n\t$this->SetX(175);\n\t$this->Cell(25,5,'Document updated:','L',1,'C');\n\t$this->SetY(23);\n\t$this->SetX(175);\n\t$this->SetFont('Arial','B',7);\n\t$this->Cell(25,4,'February 2011','L',1,'C');\n\t\n\t$this->Cell(40,20,$this->Image('images/arizona_left.png',$this->GetX()+2, $this->GetY()+2,35,15),'1',0,'C');\n\t$this->SetFont('Arial','I',8);\n\t\n\t$this->MultiCell(125,4,utf8_decode(\"The pre-printed portion of this form has been drafted by the Arizona Association of REALTORS®. \\nAny change in the pre-printed language of this form must be made in a prominent manner. \\nNo representations are made as to the legal validity, adequacy and/or effects of any provision, \\nincluding tax consequences thereof. If you desire legal, tax or other professional advice, please \\nconsult your attorney, tax advisor or professional consultant.\"),'1','L');\n\t$this->SetY(27);\n\t$this->SetX(175);\n\t$this->Cell(28,20,$this->Image('images/arizona_right.png',$this->GetX()+2, $this->GetY()+4,20,10),'1',0,'C');\n }\n}", "public function EncabezadoFBM2() {\t\r\n\t\t$ancho = 256;\r\n\t\t$fs = 10;\r\n\t\t$this->SetFont('Arial','',$fs);\r\n\t\t$this->SetFillColor(255, 255, 255);\r\n\t\t$this->SetDrawColor(0, 0, 0);\r\n\t\t\r\n\t\t$text = 'Página '.$this->PageNo().' de {nb}';\r\n\t\t$this->SetFont('Arial','',8);\r\n\t\t$this->Celda(100, 6, \"C.M.S.= U.B.M. - 14(17-12-2007)\", 0, 0, '');\r\n\t\t$this->Celda($ancho-100, 6, $text, 0, 1, 'R', true);\r\n\t\t$y1 = $this->getY();\r\n\t\t$x1 = $this->getX();\r\n\t\t$this->Celda(80, 25, '', 1, 0, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$x2 = $this->getX();\r\n\t\t$this->Celda($ancho-80, 25, '', 1, 1, '', true);\r\n\t\t$this->setY($y1);\r\n\t\t$this->setX($x1);\r\n\t\t$this->Image( 'images/logo_medium.png', 21, 17, 78 );\r\n\t\t$this->setY($y2+5);\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Formato( 'Helvetica', 'B', 11 );\r\n\t\t$this->Celda($ancho-85, 6, 'Formulario B.M.2', 0, 1, 'C', true);\r\n\t\t$this->Formato( 'Helvetica', '', 9 );\r\n\t\t$this->setX($x2+1);\r\n\t\t$this->Celda($ancho-85, 8, 'Relación de Movimiento de Bienes', 0, 1, 'C', true);\r\n\t\t\r\n\t\t$this->Ln(8);\r\n\t\t$y = $this->getY();\r\n\t\t$x = $this->getX();\r\n\t\t$this->Celda($ancho, 26, '', 1, 1, '', true);\r\n\t\t$y2 = $this->getY();\r\n\t\t$this->setY($y+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '1. Estado: ', 0, 0, '', true);\r\n\t\t$this->Celda($ancho-25, 5, $this->capitalizar($this->header['estado']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '2. Municipio: ', 0, 0, '', true);\r\n\t\t$this->Celda(50, 5, strtoupper($this->header['municipio']), 'B', 0, '', true);\r\n\t\t$this->Celda(56, 5, '3. Unidad de Trabajo o Dependencia: ', 0, 0, '', true);\r\n\t\t$this->Celda(126, 5, $this->capitalizar($this->header['dependencia']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(20, 5, '4. Servicio: ', 0, 0, '', true);\r\n\t\t$this->Celda(100, 5, 'CONTRALORIA MUNICIPAL DE SUCRE', 'B', 0, '', true);\r\n\t\t$this->Celda(35, 5, '5. Periodo de la cuenta: ', 0, 0, '', true);\r\n\t\t$this->Celda(96, 5, $this->capitalizar($this->header['fecha']), 'B', 1, '', true);\r\n\t\t$yt = $this->getY();\r\n\t\t$this->setY($yt+1);\r\n\t\t$this->setX($x+1);\r\n\t\t$this->Celda(30, 5, '6. Direccion o Lugar: ', 0, 0, '', true);\r\n\t\t$this->Celda(221, 5, $this->capitalizar($this->header['direccion']), 'B', 0, '', true);\r\n\t\t$this->setY($y2);\r\n\t}", "function RadioBox($name,$data) {\n\n $content .= \"<table cellspacing=0 cellpadding=0 width=100%>\\n\";\n\n foreach($data as $k => $v) {\n\n if (($k % 2) == 0) {\n\t$content .= my_comma(checkboxlist,\"</td></tr>\").\"<tr><td width=1%>\\n\";\n } else {\n\t$content .= \"</td><td width=1%>\\n\";\n }\n\n if ($v[checked]) {\n\t$content .= \"<input type=radio name=\\\"$name\\\" value=\\\"*\\\" checked></td><td width=49%>$v[text]\\n\";\n } else {\n\t$content .= \"<input type=radio name=\\\"$name\\\" value=\\\"*\\\"></td><td width=49%>$v[text]\\n\";\n }\n }\n\n# echo count($data);\n\n $contemt .= \"</td></tr>\\n\";\n $content .= \"</table>\\n\";\n\n return $content;\n }", "function TituloCampos()\n\t{\n\t\t$this->SetFillColor(244,249,255);\n\t\t$this->SetDrawColor(225,240,255);\n\t\t$this->SetLineWidth(.2);\n\t\t//dimenciones de cada campo\n\t\t$w=array(10,70,25,20,20,25,80);\n\t\t$header=array(strtoupper(_('nro')),strtoupper(_('Estacion de trabajo')),strtoupper(_('reporte z')),strtoupper(_('fecha')),strtoupper(_('hora')),strtoupper(_('TOTAL')),strtoupper(_('OBSERVACION')));\n\t\t$this->SetFont('Arial','B',9);\n\t\t$this->SetX(15);\n\t\tfor($k=0;$k<count($header);$k++)\n\t\t\t$this->Cell($w[$k],7,$header[$k],1,0,'J',1);\n\t\t$this->Ln();\n\t\treturn $w;\n\t}", "public function Header(){\n $ci =& get_instance();\n // Select Arial bold 15\n $this->AddFont('Futura-Medium');\n $this->SetFont('Futura-Medium','',16);\n // Move to the right\n //$this->Cell(80);\n // Framed title\n // Logo\n $this->Image(asset_url() . \"images/logo.png\",11,5,0,20);\n $this->Ln(15);\n $this->Cell(0,10,\"GetYourGames\",0,1,'L');\n $this->SetFont('Futura-Medium','',12);\n $this->Cell(0,10,site_url(),0,1,\"L\");\n $this->Ln(5);\n $this->SetFont('Futura-Medium','',18);\n $this->Cell(0,10,utf8_decode($this->title),0,1,'C');\n // Line break\n $this->Ln(10);\n $this->SetFont('Futura-Medium','',11);\n $this->Cell(15,10,utf8_decode('#'),'B',0,'C');\n $this->Cell(100,10,utf8_decode($ci->lang->line('table_product')),'B',0,'L');\n $this->Cell(30,10,utf8_decode($ci->lang->line('table_qty')),'B',0,'L');\n $this->Cell(40,10,utf8_decode($ci->lang->line('table_subtotal')),'B',1,'L');\n\n $this->Ln(2);\n }", "public function beginLabelSheet ()\r\n {\r\n $this->label_column = 1;\r\n $this->label_row = 1;\r\n return '\r\n <div class=\"labelpage\">\r\n <div class=\"labelrow\">\r\n <div class=\"labelbody\">';\r\n }", "function getCell() {\n \tglobal $synAbsolutePath;\n $ext = $this->translate($this->value);\n $mat=$this->translatePath($this->mat);\n $filename=$mat.$this->createFilename().\".\".$ext;\n $file_exists=file_exists($synAbsolutePath.$filename);\n $isImg=$this->isImage($filename);\n if ($ext and $file_exists and $isImg) $ret=\"<div style='overflow: hidden; height: 25px; display:inline;background: url($filename) no-repeat center;width: 100%' onMouseOver=\\\"openbox('$filename')\\\" onMouseOut=\\\"closebox()\\\"></div>\";\n else if ($ext and $file_exists and !$isImg) $ret=\"<span style='color: gray'>Document $ext</span>\";\n else if ($ext and !$file_exists) $ret=\"<span style='color: gray'>Error $ext</span>\";\n else $ret=\"<span style='color: gray'>Empty</span>\";\n return $ret;\n //die;\n }", "function TablaComprasProductos()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 15 ,10, 55 , 18 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n //Movernos a la derecha\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$co = new Login();\n $co = $co->ComprasPorId();\n\t\n################################################# BLOQUE N° 1 ###################################################\t\n\n //Bloque de membrete principal\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 10, 190, 20, '1.5', '');\n\t\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 14, 12, 12, '1.5', 'F');\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 14, 12, 12, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',16);\n $this->SetXY(101, 14);\n $this->Cell(20, 5, 'C', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(98, 19);\n $this->Cell(20, 5, 'Compra', 0 , 0);\n\t\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 10);\n $this->Cell(20, 5, 'N° COMPRA ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 10);\n $this->Cell(20, 5,utf8_decode($co[0]['codcompra']), 0 , 0);\n\t\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 13);\n $this->Cell(20, 5, 'N° SERIE ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 13);\n $this->Cell(20, 5,utf8_decode($co[0]['codseriec']), 0 , 0);\n\t\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 16);\n $this->Cell(20, 5, 'N° AUTORIZACIÓN ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 16);\n $this->Cell(20, 5,utf8_decode($co[0]['codautorizacionc']), 0 , 0);\n\t\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 19);\n $this->Cell(20, 5, 'FECHA COMPRA ', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 19);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($co[0]['fechacompra']))), 0 , 0);\n\t\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 22);\n $this->Cell(20, 5, 'FECHA EMISIÓN', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 22);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\")), 0 , 0);\n\t\n\t$dias = ( $co[0]['fechavencecredito'] == '0000-00-00' ? \"0\" : Dias_Transcurridos($co[0]['fechavencecredito'],date(\"Y-m-d\")));\n\t\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 25);\n $this->Cell(20, 5, 'STATUS COMPRA', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 25);\n \n\tif($co[0]['fechavencecredito']== '0000-00-00') { \n\t$this->Cell(20, 5,utf8_decode($co[0]['statuscompra']), 0 , 0);\n\t} elseif($co[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode($co[0]['statuscompra']), 0 , 0);\n\t} elseif($co[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(\"VENCIDA\"), 0 , 0);\n\t}\n\n\n\t\n\t\n################################################# BLOQUE N° 2 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 32, 190, 18, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 32);\n $this->Cell(20, 5, 'DATOS DE LA EMPRESA ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 36);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(40, 36);\n $this->Cell(20, 5,utf8_decode($con[0]['nomempresa']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(147, 36);\n $this->Cell(90, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 36);\n $this->Cell(90, 5,utf8_decode($con[0]['rifempresa']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 40);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(32, 40);\n $this->Cell(20, 5,utf8_decode($con[0]['direcempresa']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(140, 40);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 40);\n $this->Cell(20, 5,utf8_decode($con[0]['tlfempresa']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 44);\n $this->Cell(20, 5, 'GERENTE :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(30, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['nomresponsable']), 0 , 0);\n\t//Linea de membrete Nro 7\n\t$this->SetFont('courier','B',7);\n $this->SetXY(94, 44);\n $this->Cell(20, 5, 'CÉDULA :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['cedresponsable']), 0 , 0);\n\t//Linea de membrete Nro 8\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 44);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['correoresponsable']), 0 , 0);\n\t\n################################################# BLOQUE N° 3 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 52, 190, 14, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 52);\n $this->Cell(20, 5, 'DATOS DEL PROVEEDOR ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 56);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(36, 56);\n $this->Cell(20, 5,utf8_decode($co[0]['nomproveedor']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(100, 56);\n $this->Cell(70, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 56);\n $this->Cell(75, 5,utf8_decode($co[0]['ritproveedor']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 56);\n $this->Cell(90, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 56);\n $this->Cell(90, 5,utf8_decode($co[0]['emailproveedor']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 60);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(33, 60);\n $this->Cell(20, 5,utf8_decode($co[0]['direcproveedor']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(90, 60);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 60);\n $this->Cell(20, 5,utf8_decode($co[0]['tlfproveedor']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 60);\n $this->Cell(20, 5, 'CONTACTO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(150, 60);\n $this->Cell(20, 5,utf8_decode($co[0]['contactoproveedor']), 0 , 0);\n\t\n\t$this->Ln(8);\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(3, 3, 3); // Establece el color del texto (en este caso es Negro)\n $this->SetFillColor(229, 229, 229); // establece el color del fondo de la celda (en este caso es GRIS)\n\t$this->Cell(6,8,'N°',1,0,'C', True);\n\t$this->Cell(15,8,'CÓDIGO',1,0,'C', True);\n\t$this->Cell(50,8,'DESCRIPCIÓN DE PRODUCTO',1,0,'C', True);\n\t$this->Cell(22,8,'CATEGORIA',1,0,'C', True);\n\t$this->Cell(20,8,'PRECIO',1,0,'C', True);\n\t$this->Cell(15,8,'CANT',1,0,'C', True);\n\t$this->Cell(18,8,'LOTE',1,0,'C', True);\n\t$this->Cell(20,8,'VENCE',1,0,'C', True);\n\t$this->Cell(25,8,'IMPORTE',1,1,'C', True);\n\t\n\t################################################# BLOQUE N° 4 DE DETALLES DE PRODUCTOS ###################################################\t\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 78, 190, 170, '1.5', '');\n\t\n\t$this->Ln(3);\n $tra = new Login();\n $reg = $tra->VerDetallesCompras();\n\t$cantidad=0;\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$cantidad+=$reg[$i]['cantcompra'];\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(6,4,$a++,0,0,'C');\n\t$this->CellFitSpace(15,4,utf8_decode($reg[$i][\"codproducto\"]),0,0,'C');\n $this->CellFitSpace(50,4,utf8_decode($reg[$i][\"producto\"]),0,0,'C');\n $this->CellFitSpace(22,4,utf8_decode($reg[$i][\"nomcategoria\"]),0,0,'C');\n\t$this->CellFitSpace(20,4,utf8_decode(number_format($reg[$i][\"precio1\"], 2, '.', ',')),0,0,'C');\n\t$this->CellFitSpace(15,4,utf8_decode($reg[$i][\"cantcompra\"]),0,0,'C');\n\t$this->CellFitSpace(18,4,utf8_decode($reg[$i][\"lote\"]),0,0,'C');\n\t$this->CellFitSpace(20,4,utf8_decode($reg[$i][\"vence\"]),0,0,'C');\n\t$this->CellFitSpace(24,4,utf8_decode(number_format($reg[$i][\"importecompra\"], 2, '.', ',')),0,0,'C');\n $this->Ln();\n }\n \n################################################# BLOQUE N° 5 DE TOTALES ###################################################\t\n\t//Bloque de Informacion adicional\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 250, 110, 28, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',10);\n $this->SetXY(44, 250);\n $this->Cell(20, 5, 'INFORMACIÓN ADICIONAL', 0 , 0);\n\t\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 254);\n $this->Cell(20, 5, 'CANTIDAD DE PRODUCTOS :', 0 , 0);\n $this->SetXY(60, 254);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($cantidad), 0 , 0);\n\t\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 257.2);\n $this->Cell(20, 5, 'TIPO DE DOCUMENTO :', 0 , 0);\n $this->SetXY(60, 257.2);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode(\"FACTURA\"), 0 , 0);\n\t\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 260.5);\n $this->Cell(20, 5, 'TIPO DE PAGO :', 0 , 0);\n $this->SetXY(60, 260.5);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($co[0]['tipocompra'].\" - \".$co[0]['formacompra']), 0 , 0);\n\t\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 263.5);\n $this->Cell(20, 5, 'FECHA DE VENCIMIENTO :', 0 , 0);\n $this->SetXY(60, 263.5);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($vence = ( $co[0]['fechavencecredito'] == '0000-00-00' ? \"0\" : date(\"d-m-Y\",strtotime($co[0]['fechavencecredito'])))), 0 , 0);\n\t\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 266.5);\n $this->Cell(20, 5, 'DIAS VENCIDOS :', 0 , 0);\n $this->SetXY(60, 266.5);\n\t$this->SetFont('courier','',8);\n\t\n if($co[0]['fechavencecredito']== '0000-00-00') { \n\t$this->Cell(20, 5,utf8_decode(\"0\"), 0 , 0);\n\t} elseif($co[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(\"0\"), 0 , 0);\n\t} elseif($co[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(Dias_Transcurridos(date(\"Y-m-d\"),$co[0]['fechavencecredito'])), 0 , 0);\n\t}\n\t//$this->Cell(20, 5,$dias = ( $co[0]['fechavencecredito'] == '0000-00-00' ? \"0\" : Dias_Transcurridos($co[0]['fechavencecredito'],date(\"Y-m-d\"))), 0 , 0);\n\t\n\t//Linea de membrete Nro 7\n\t$this->SetXY(52, 33);\n\t$this->Codabar(13,271,utf8_decode(\"133923786899444489448576556789\"));\n\t//Linea de membrete Nro 2\n $this->SetFont('courier','B',6.5); \n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->SetXY(48, 271);\n $this->Cell(20, 5, 'Este documento no constituye un comprobante de pago', 0 , 0);\n\t\n\t//Bloque de Totales de factura\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(122, 250, 78, 28, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 252);\n $this->Cell(20, 5, 'SUBTOTAL IVA '.$co[0][\"ivac\"].'% :', 0 , 0);\n $this->SetXY(167, 252);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($co[0][\"subtotalivasic\"], 2, '.', ',')), 0 , 0);\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 256);\n $this->Cell(20, 5, 'SUBTOTAL IVA 0% :', 0 , 0);\n $this->SetXY(167, 256);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($co[0][\"subtotalivanoc\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 260);\n $this->Cell(20, 5, 'IVA '.$co[0][\"ivac\"].'% :', 0 , 0);\n $this->SetXY(167, 260);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($co[0][\"totalivac\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 264);\n $this->Cell(20, 5, 'DESC '.$co[0][\"descuentoc\"].'% :', 0 , 0);\n $this->SetXY(167, 264);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($co[0][\"totaldescuentoc\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 268);\n $this->Cell(20, 5, 'TOTAL PAGO :', 0 , 0);\n $this->SetXY(167, 268);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($co[0][\"totalc\"], 2, '.', ',')), 0 , 0);\n \n}", "public function __Header(){\n $this->Ln(5);\n $this->SetDrawColor(160,160,160);\n $this->SetFillColor(230,230,230);\n $this->SetTextColor(100);\n $this->SetFont('Arial','B',7);\n $this->SetX(($this->w - $this->_tWidth)/2);\n foreach($this->_fields as $field)\n $this->Cell($field[\"size\"],5,$field[\"header\"],1,0,\"C\",true);\n $this->Ln();\n }", "function subHeader_Factura($senavex_nit,$senavex_factura,$senavex_autorizacion)\n {\n $this->SetXY(50,38);\n $this->SetFont('Times', 'B', 12);\n $this->Cell(20,5,'NIT :',0,0,'L');\n $this->Cell(28,5,$senavex_nit.' ',0,0,'L');\n\n $this->SetXY(135,46);\n $this->SetFont('Times', 'B', 16);\n $this->Cell(28,4,utf8_decode('N° Factura :'),0,0,'L');\n $this->SetTextColor(255,100,100);\n $this->Cell(30,4,$senavex_factura.' ',0,0,'R');\n $this->SetTextColor(80);\n\n $this->SetXY(135,54);\n $this->SetFont('Times', 'B', 10);\n $this->Cell(28,4,utf8_decode('N° Autorización : '),0,0,'C');\n $this->SetFont('Times', '', 10);\n $this->Cell(30,4,$senavex_autorizacion.' ',0,0,'C');\n\n $this->SetXY(141,61);\n $this->SetFont('Arial', 'B', 10);\n $this->Cell(40,4,utf8_decode('Servicios Exportación'),0,0,'C');\n }", "public function cetaklaporanrank($periode)\n {\n $pdf = new FPDF('P','mm','A4');\n // membuat halaman baru\n $pdf->AddPage();\n // setting jenis font yang akan digunakan\n $pdf->SetFont('Arial','B',16);\n //cetak gambar\n $image1 = \"assets/img/logo2.png\";\n $pdf->Cell(1, 0, $pdf->Image($image1, $pdf->GetX(), $pdf->GetY(), 20.10), 0, 0, 'L', false );\n // mencetak string\n $pdf->Cell(186,10,'PT. BIYA MAESTRO HARDSCAPE',0,1,'C');\n $pdf->Cell(9,1,'',0,1);\n $pdf->SetFont('Arial','',9);\n $pdf->Cell(186,1,'Jl. BPKP No. 37 Sudimara Pinang, Kota Tangerang',0,1,'C');\n $pdf->Cell(186,7,'Telp / Fax : 021-22927310',0,1,'C');\n $pdf->Cell(186,1,'E-mail : [email protected]',0,1,'C');\n\n $pdf->Line(10, 35, 210-11, 35); \n $pdf->SetLineWidth(0.5); \n $pdf->Line(10, 35, 210-11, 35);\n $pdf->SetLineWidth(0); \n \n $pdf->ln(6); \n $pdf->SetFont('Arial','B',10);\n $pdf->Cell(190,10,'Laporan Perangkingan Nilai SAW ',0,1,'C');\n //periode masuk\n $pdf->SetFont('Arial','',9);\n $pdf->Cell(1,2,\"Periode Masuk : \".tanggal($periode),0,1,'L');\n //penilaian subkriteria kompetensi\n\n $pdf->Cell(190,5,' ',0,1,'C');\n // Memberikan space kebawah agar tidak terlalu rapat\n $pdf->Cell(10,1,'',0,1);\n $pdf->SetFont('Arial','B',8);\n $pdf->Cell(10,6,'No.',1,0,'C');\n $pdf->Cell(20,6,'ID Calon',1,0,'C');\n $pdf->Cell(50,6,'Nama Calon',1,0,'C');\n $pdf->Cell(20,6,'kompetensi',1,0,'C');\n $pdf->Cell(20,6,'Interview',1,0,'C');\n $pdf->Cell(20,6,'Konsistensi',1,0,'C');\n $pdf->Cell(20,6,'Hasil Akhir',1,0,'C');\n $pdf->Cell(29,6,'Keterangan',1,1,'C');\n $pdf->SetFont('Arial','',8);\n\n\t\t$hasil = $this->M_LapPerangkinganNilai->getLapPerangkinganNilai($periode);\n\n $no = 1;\n foreach ($hasil as $row)\n {\n $pdf->Cell(10,6,$no++.\".\",1,0,'C');\n $pdf->Cell(20,6,$row->calon_id,1,0,'C');\n $pdf->Cell(50,6,ucwords($row->nm_calon),1,0);\n $pdf->Cell(20,6,$row->kompetensi,1,0,'C');\n $pdf->Cell(20,6,$row->interview,1,0,'C');\n $pdf->Cell(20,6,$row->konsistensi,1,0,'C');\n $pdf->Cell(20,6,$row->hasil_akhir,1,0,'C');\n if($row->keterangan != null){\n $pdf->Cell(29,6,$row->keterangan,1,1,'C');\n } else {\n $pdf->Cell(29,6,\"Tidak Lolos\",1,1,'C');\n } \n }\n\n $pdf->Output();\n }", "function SetTextOutline($width, $r=0, $g=-1, $b=-1) //EDITEI\n\t\t{ \n\t\t if ($width == false) //Now resets all values\n\t\t { \n\t\t\t$this->outline_on = false;\n\t\t\t$this->SetLineWidth(0.2); \n\t\t\t$this->SetDrawColor(0); \n\t\t\t$this->_setTextRendering(0); \n\t\t\t$this->_out('0 Tr'); \n\t\t }\n\t\t else\n\t\t { \n\t\t\t$this->SetLineWidth($width); \n\t\t\t$this->SetDrawColor($r, $g , $b); \n\t\t\t$this->_out('2 Tr'); //Fixed\n\t\t } \n\t\t}", "function FooterRR()\n {\n //Posición: a 2 cm del final\n $this->Ln();\n $this->SetY(-12);\n $this->SetFont('Arial','B',6);\n //Número de página\n $this->Cell(190,4,'Sistema de Control de Ventas y Facturacion \"BOUTIQUE DE ZAPATERIA\"','T',0,'L');\n $this->AliasNbPages();\n $this->Cell(0,4,'Pagina '.$this->PageNo(),'T',1,'R');\n }", "function Footer(){\n ($this->kriteria=='neraca')?$this->SetY(-10):$this->SetY(-15);\n //Arial italic 8\n $this->SetFont('Arial','i',7);\n if($this->kriteria=='faktur'){\n $this->Cell(150,10,'Berlaku sebagai faktur pajak sesuai Peraturan Menkeu No. 38/PMK.03/2010',0,0,'L');\n }else{\n $this->Cell(0,10,'Print Date :'.date('d F Y'),0,0,'C');\n }\n $this->Cell(0,10,'Page '.$this->PageNo().' of {nb}',0,0,'R');\n}", "public function makeTable($header, $data) {\n $this->SetFillColor(255, 0, 0);\n $this->SetTextColor(255);\n $this->SetDrawColor(128, 0, 0);\n $this->SetLineWidth(.3);\n $this->SetFont('', 'B');\n // Header\n $w = array(10, 25, 40, 10, 25, 15, 60, 10, 10, 10, 10, 10, 10, 10, 10, 10);\n for ($i = 0; $i < count($header); $i++)\n if ($i == 0) {\n $this->Cell($w[$i], 7, $header[$i], 1, 0, 'C', true);\n } else {\n $this->Cell($w[$i], 7, $header[$i], 1, 0, 'L', true);\n }\n $this->Ln();\n // Color and font restoration\n $this->SetFillColor(224, 235, 255);\n $this->SetTextColor(0);\n $this->SetFont('');\n // Data\n $fill = false;\n\n foreach ($data as $row) {\n $this->nr++;\n $this->Cell($w[0], 6, $this->nr, 'LR', 0, 'C', $fill);\n $this->Cell($w[1], 6, $row['article'], 'LR', 0, 'L', $fill);\n $this->Cell($w[2], 6, $row['brand'], 'LR', 0, 'L', $fill);\n $this->Cell($w[3], 6, $row['inch'], 'LR', 0, 'L', $fill);\n $this->Cell($w[4], 6, $row['size'], 'LR', 0, 'L', $fill);\n $this->Cell($w[5], 6, $row['lisi'], 'LR', 0, 'L', $fill);\n $this->Cell($w[6], 6, $row['design'], 'LR', 0, 'L', $fill);\n $this->Cell($w[7], 6, $row['onhand'], 'LR', 0, 'C', $fill);\n $this->Cell($w[8], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[9], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[10], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[11], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[12], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[13], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[14], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Cell($w[15], 6, \"\", 'LR', 0, 'C', $fill);\n $this->Ln();\n $fill = !$fill;\n }\n // Closing line\n $this->Cell(array_sum($w), 0, '', 'T');\n }", "function TablaCreditosClientes()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 20 ,12, 60 , 20 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',10);\n //Movernos a la derecha\n $this->Cell(100);\n //Título\n $this->Cell(65,20,'LISTADO DE CRÉDITOS POR CLIENTES ',0,0,'C');\n //Salto de línea\n $this->Ln(25);\t\n\t\n\t$tra = new Login();\n $reg = $tra->BuscarClientesAbonos();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'CÉDULA CLIENTE: ',0,0,'');\n $this->Cell(44,5,utf8_decode($reg[0]['cedcliente']),0,0,'');\n $this->Cell(30,5,'NOMBRE CLIENTE:',0,0,'');\n $this->Cell(83,5,utf8_decode($reg[0]['nomcliente']),0,1,'');\n\t\n $this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'TELÉFONO CLIENTE: ',0,0,'');\n $this->Cell(44,5,utf8_decode($reg[0]['tlfcliente']),0,0,'');\n $this->Cell(30,5,'CORREO CLIENTE:',0,0,'');\n $this->Cell(83,5,utf8_decode($reg[0]['emailcliente']),0,1,'');\n $this->Ln(6);\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(8,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'CÓDIGO VENTA',1,0,'C', True);\n\t$this->CellFitSpace(18,8,'N° CAJA',1,0,'C', True);\n\t$this->CellFitSpace(17,8,'STATUS',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'DIAS VENC',1,0,'C', True);\n\t$this->CellFitSpace(26,8,'FECHA VENTA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'TOT FACTURA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'TOT ABONO',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'TOT DEBE',1,1,'C', True);\n\t\n $TotalFactura=0;\n\t$TotalCredito=0;\n\t$TotalDebe=0;\n\t$a=1;\n\tfor($i=0;$i<sizeof($reg);$i++){ \n\t$TotalFactura+=$reg[$i]['totalpago'];\n\t$TotalCredito+=$reg[$i]['abonototal'];\n\t$TotalDebe+=$reg[$i]['totalpago']-$reg[$i]['abonototal'];\n\n\t$this->SetFont('courier','',7); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(8,5,$a++,1,0,'C');\n\t$this->CellFitSpace(30,5,$reg[$i][\"codventa\"],1,0,'C');\n $this->CellFitSpace(18,5,$reg[$i]['nrocaja'],1,0,'C');\n\t\n\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode($reg[$i]['statusventa']),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(17, 5,utf8_decode(\"VENCIDA\"),1,0,'C');\n\t}\t\n\tif($reg[$i]['fechavencecredito']== '0000-00-00') { \n\t$this->CellFitSpace(20, 5,utf8_decode(\"0\"),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->CellFitSpace(20, 5,utf8_decode(\"0\"),1,0,'C');\n\t} elseif($reg[$i]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->CellFitSpace(20, 5,utf8_decode(Dias_Transcurridos(date(\"Y-m-d\"),$reg[$i]['fechavencecredito'])),1,0,'C');\n\t}\n\t$this->CellFitSpace(26,5,date(\"d-m-Y h:i:s\",strtotime($reg[$i]['fechaventa'])),1,0,'C');\n $this->CellFitSpace(25,5,number_format($reg[$i]['totalpago'], 2, '.', ','),1,0,'C');\n\t$this->CellFitSpace(25,5,number_format($reg[$i]['abonototal'], 2, '.', ','),1,0,'C');\n\t$this->CellFitSpace(20,5,number_format($reg[$i]['totalpago']-$reg[$i]['abonototal'], 2, '.', ','),1,0,'C');\n $this->Ln();\n\t\n } \n \n\t$this->Cell(8,5,'',0,0,'C');\n $this->Cell(30,5,'',0,0,'C');\n $this->Cell(18,5,'',0,0,'C');\n $this->Cell(17,5,'',0,0,'C'); \n $this->Cell(20,5,'',0,0,'C');\n $this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->Cell(26,5,'TOTAL GENERAL',1,0,'C', True);\t\n $this->SetFont('courier','B',7);\n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es blanco)\n $this->Cell(25,5,utf8_decode(number_format($TotalFactura, 2, '.', ',')),1,0,'C');\n $this->Cell(25,5,utf8_decode(number_format($TotalCredito, 2, '.', ',')),1,0,'C');\n $this->Cell(20,5,utf8_decode(number_format($TotalDebe, 2, '.', ',')),1,0,'C');\n $this->Ln();\n\n\n \n $this->Ln(15); \n $this->SetFont('courier','B',9);\n $this->Cell(190,0,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]).' RECIBIDO POR:___________________________','',1,'C');\n $this->Ln(4);\n }", "function checkbox_icon($var) {\r\n\r\n\tif ($var == 1) {\r\n\t\r\n\t\techo '&#10003;';\r\n\t\t\r\n\t} else {\r\n\t\t\r\n\t\techo 'x';\r\n\t\t\r\n\t}\r\n}", "function TablaListarCajas()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 20 ,12, 60 , 20 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n //Movernos a la derecha\n $this->Cell(100);\n //Título\n $this->Cell(65,20,'LISTADO GENERAL DE CAJAS DE VENTAS',0,0,'C');\n //Salto de línea\n $this->Ln(25);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',9);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'CÉDULA GERENTE: ',0,0,'');\n\t$this->Cell(44,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->Cell(30,5,'NOMBRE GERENTE:',0,0,'');\n\t$this->Cell(83,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(10,5,'',0,0,'');\n\t$this->Cell(35,5,'TELÉFONO GERENTE: ',0,0,'');\n $this->Cell(44,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->Cell(30,5,'CORREO GERENTE:',0,0,'');\n $this->Cell(83,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln(8);\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es BLANCO)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->Cell(10,8,'N°',1,0,'C', True);\n\t$this->Cell(25,8,'N° CAJA',1,0,'C', True);\n\t$this->Cell(45,8,'NOMBRE DE CAJA',1,0,'C', True);\n\t$this->Cell(40,8,'CÉDULA CAJERO',1,0,'C', True);\n\t$this->Cell(70,8,'NOMBRE CAJERO',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarCajas();\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(25,5,utf8_decode($reg[$i][\"nrocaja\"]),1,0,'C');\n $this->CellFitSpace(45,5,utf8_decode($reg[$i][\"nombrecaja\"]),1,0,'C');\n $this->CellFitSpace(40,5,utf8_decode($reg[$i][\"cedula\"]),1,0,'C');\n\t$this->CellFitSpace(70,5,utf8_decode($reg[$i][\"nombres\"]),1,0,'C');\n $this->Ln();\n\t\n }\n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(5,6,'',0,0,'');\n $this->Cell(100,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(60,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(5,6,'',0,0,'');\n $this->Cell(100,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(60,6,'',0,0,'');\n $this->Ln(4);\n }", "function ChapterBody() {\n //$conn->SQL(\"select * from esquema.almacen_ubicacion\");\n\n\n\n\n //aqui metemos los parametros del contenido\n //$this->SetWidths(array(25,25,30,22,40,20));\n $this->SetWidths(array(10,30,22,22,25,21,23,25,32,20));\n //$this->SetAligns(array(\"C\",\"C\",\"C\",\"C\",\"C\",\"C\"));\n $this->SetAligns(array(\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\",\"C\"));\n //$this->SetFillColor(232,232,232,232,232,232);\n $this->SetFillColor(232,232,232,232,232,232,232,232,232,232);\n // $cantidaditems = $this->array_movimiento[0][\"numero_item\"];\n\n $subtotal = 0;\n // for($i=0;$i<$cantidaditems;$i++) {\n // $this->SetLeftMargin(30);\n // $width = 5;\n // $this->SetX(14);\n // $this->SetFont('Arial','',7);\n\n // $this->Row(\n // array( $this->array_movimiento[$i][\"cod_item\"],\n // $this->array_movimiento[$i][\"descripcion1\"],\n // $this->array_movimiento[$i][\"cantidad_item\"]),1);\n\n // }\n $i = 0;\n foreach ($this->array_mercadeo as $key => $value) {\n $i++;\n $this->SetLeftMargin(30);\n $width = 7;\n $this->SetX(14);\n $this->SetFont('Arial','',9);\n $this->Row(\n array(//$value[\"fecha\"],\n $i,\n $value[\"COD\"],\n $value[\"nombre\"],\n //$value[\"precio\"],\n number_format($value[\"costo_unitario\"], 2, ',', ''),\n $value[\"costo_operativo\"],\n //number_format($value[\"costo_operativo\"], 2, ',', ''),\n number_format($value[\"costo_sin_iva\"], 2, ',', ''),\n //$value[\"costo_iva\"],\n number_format($value[\"costo_iva\"], 2, ',', ''),\n //$value[\"precio_sugerido\"],\n number_format($value[\"precio_sugerido\"], 2, ',', ''),\n $value[\"margen_ganancia\"],\n //number_format($value[\"margen_ganancia\"], 2, ',', ''),\n //$value[\"pvp\"]),\n number_format($value[\"pvp\"], 2, ',', '')),\n 1);\n //$this->SetX(14);\n /*if( $value[\"cantidad_item\"] != $value[\"c_esperada\"] && $this->array_mercadeo[0][\"tipo_movimiento_almacen\"]==3){\n $this->Cell(196,5,'Observacion : '.$value[\"observacion_dif\"],1,1,'L');\n }*/\n \n\n }\n\n }", "function generateTitle($header, $data)\n\t{\n\t\t$this->SetFillColor(63,73,204);\n\t\t$this->SetTextColor(255);\n\t\t$this->SetDrawColor(18,0,0);\n\t\t$this->SetLineWidth(.1);\n\t\t$this->SetFont('','B');\n\t\t// Header\n\t\t$w = array(70, 25, 30, 20,30,35,25);\n\t\tfor($i=0;$i<count($header);$i++)\n\t\t\t$this->Cell($w[$i],7,$header[$i],1,0,'C',true);\n\t\t$this->Ln();\n\t\t// Color and font restoration\n\t\t$this->SetFillColor(224,235,255);\n\t\t$this->SetTextColor(0);\n\t\t$this->SetFont('');\n\t\t// Data\n\t\t$fill = false;\n\t\tforeach($data as $row)\n\t\t{\n\t\t\t$this->Cell($w[0],6,$row[0],'LR',0,'L',$fill);\n/*\t\t\t$this->Cell($w[1],6,$row[1],'LR',0,'C',$fill);\n\t\t\t$this->Cell($w[2],6,$row[2],'LR',0,'C',$fill);\n\t\t\t$this->Cell($w[3],6,$row[3],'LR',0,'C',$fill);\n\t\t\t$this->Cell($w[4],6,$row[4],'LR',0,'C',$fill);\n\t\t\t$this->Cell($w[5],6,$row[5],'LR',0,'C',$fill);*/\n\t\t\t$this->Ln();\n\t\t\t$fill = !$fill;\n\t\t}\n\t\t// Closing line\n\t\t$this->Cell(array_sum($w),0,'','T');\n\t}", "function ChapterBody($file)\n{\n $txt = file_get_contents($file);\n // Fuente\n $this->SetFont('Times','',12);\n // Imprimir texto en una columna de 6 cm de ancho\n $this->MultiCell(60,5,$txt);\n $this->Ln();\n // Cita en itálica\n $this->SetFont('','I');\n $this->Cell(0,5,'(fin del extracto)');\n // Volver a la primera columna\n $this->SetCol(0);\n}", "function TablaVentasProductos()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 15 ,10, 55 , 18 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n //Movernos a la derecha\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$ve = new Login();\n $ve = $ve->VentasPorId();\n\t\n################################################# BLOQUE N° 1 ###################################################\t\n\n //Bloque de membrete principal\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 10, 190, 20, '1.5', '');\n\t\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 14, 12, 12, '1.5', 'F');\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 14, 12, 12, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',16);\n $this->SetXY(101, 14);\n $this->Cell(20, 5, 'V', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(98, 19);\n $this->Cell(20, 5, 'Venta', 0 , 0);\n\t\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 10);\n $this->Cell(20, 5, 'N° VENTA ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 10);\n $this->Cell(20, 5,utf8_decode($ve[0]['codventa']), 0 , 0);\n\t\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 13);\n $this->Cell(20, 5, 'N° SERIE ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 13);\n $this->Cell(20, 5,utf8_decode($ve[0]['codserieve']), 0 , 0);\n\t\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 16);\n $this->Cell(20, 5, 'N° AUTORIZACIÓN ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 16);\n $this->Cell(20, 5,utf8_decode($ve[0]['codautorizacionve']), 0 , 0);\n\t\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 19);\n $this->Cell(20, 5, 'FECHA VENTA ', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 19);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($ve[0]['fechaventa']))), 0 , 0);\n\t\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 22);\n $this->Cell(20, 5, 'FECHA EMISIÓN', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 22);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\")), 0 , 0);\n\t\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 25);\n $this->Cell(20, 5, 'STATUS VENTA', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 25);\n\t\n\tif($ve[0]['fechavencecredito']== '0000-00-00') { \n\t$this->Cell(20, 5,utf8_decode($ve[0]['statusventa']), 0 , 0);\n\t} elseif($ve[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode($ve[0]['statusventa']), 0 , 0);\n\t} elseif($ve[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(\"VENCIDA\"), 0 , 0);\n\t}\t\n\t\n################################################# BLOQUE N° 2 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 32, 190, 18, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 32);\n $this->Cell(20, 5, 'DATOS DE LA EMPRESA ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 36);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(40, 36);\n $this->Cell(20, 5,utf8_decode($con[0]['nomempresa']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(147, 36);\n $this->Cell(90, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 36);\n $this->Cell(90, 5,utf8_decode($con[0]['rifempresa']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 40);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(32, 40);\n $this->Cell(20, 5,utf8_decode($con[0]['direcempresa']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(140, 40);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 40);\n $this->Cell(20, 5,utf8_decode($con[0]['tlfempresa']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 44);\n $this->Cell(20, 5, 'GERENTE :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(30, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['nomresponsable']), 0 , 0);\n\t//Linea de membrete Nro 7\n\t$this->SetFont('courier','B',7);\n $this->SetXY(94, 44);\n $this->Cell(20, 5, 'CÉDULA :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['cedresponsable']), 0 , 0);\n\t//Linea de membrete Nro 8\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 44);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 44);\n $this->Cell(20, 5,utf8_decode($con[0]['correoresponsable']), 0 , 0);\n\t\n################################################# BLOQUE N° 3 ###################################################\t\n\n\t//Bloque de datos de cliente\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 52, 190, 14, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 52);\n $this->Cell(20, 5, 'DATOS DEL CLIENTE ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 56);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(38, 56);\n $this->Cell(20, 5,utf8_decode($ve[0]['nomcliente']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(112, 56);\n $this->Cell(74, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(122, 56);\n $this->Cell(75, 5,utf8_decode($ve[0]['cedcliente']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(150, 56);\n $this->Cell(90, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(166, 56);\n $this->Cell(90, 5,utf8_decode($ve[0]['tlfcliente']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 60);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(33, 60);\n $this->Cell(20, 5,utf8_decode($ve[0]['direccliente']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(116, 60);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(128, 60);\n $this->Cell(20, 5,utf8_decode($ve[0]['emailcliente']), 0 , 0);\n\t\n\t$this->Ln(8);\n\t$this->SetFont('courier','B',10);\n\t$this->SetTextColor(3, 3, 3); // Establece el color del texto (en este caso es Negro)\n $this->SetFillColor(229, 229, 229); // establece el color del fondo de la celda (en este caso es GRIS)\n\t$this->Cell(8,8,'N°',1,0,'C', True);\n\t$this->Cell(17,8,'CÓDIGO',1,0,'C', True);\n\t$this->Cell(67,8,'DESCRIPCIÓN DE PRODUCTO',1,0,'C', True);\n\t$this->Cell(25,8,'CATEGORIA',1,0,'C', True);\n\t$this->Cell(25,8,'PRECIO',1,0,'C', True);\n\t$this->Cell(23,8,'CANTIDAD',1,0,'C', True);\n\t$this->Cell(25,8,'IMPORTE',1,1,'C', True);\n\t\n\t################################################# BLOQUE N° 4 DE DETALLES DE PRODUCTOS ###################################################\t\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 78, 190, 170, '1.5', '');\n\t\n\t$this->Ln(3);\n $tra = new Login();\n $reg = $tra->VerDetallesVentas();\n\t$cantidad=0;\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$cantidad+=$reg[$i]['cantventa'];\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(8,4,$a++,0,0,'C');\n\t$this->CellFitSpace(17,4,utf8_decode($reg[$i][\"codproducto\"]),0,0,'C');\n $this->CellFitSpace(67,4,utf8_decode($reg[$i][\"producto\"]),0,0,'C');\n $this->CellFitSpace(25,4,utf8_decode($reg[$i][\"nomcategoria\"]),0,0,'C');\n\t$this->CellFitSpace(25,4,utf8_decode(number_format($reg[$i][\"precioventa\"], 2, '.', ',')),0,0,'C');\n\t$this->CellFitSpace(23,4,utf8_decode($reg[$i][\"cantventa\"]),0,0,'C');\n\t$this->CellFitSpace(25,4,utf8_decode(number_format($reg[$i][\"importe\"], 2, '.', ',')),0,0,'C');\n $this->Ln();\n }\n \n################################################# BLOQUE N° 5 DE TOTALES ###################################################\t\n\t//Bloque de Informacion adicional\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 250, 110, 28, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',10);\n $this->SetXY(44, 250);\n $this->Cell(20, 5, 'INFORMACIÓN ADICIONAL', 0 , 0);\n\t\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 254);\n $this->Cell(20, 5, 'CANTIDAD DE PRODUCTOS :', 0 , 0);\n $this->SetXY(60, 254);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($cantidad), 0 , 0);\n\t\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 257.2);\n $this->Cell(20, 5, 'TIPO DE DOCUMENTO :', 0 , 0);\n $this->SetXY(60, 257.2);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode(\"FACTURA\"), 0 , 0);\n\t\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 260.5);\n $this->Cell(20, 5, 'TIPO DE PAGO :', 0 , 0);\n $this->SetXY(60, 260.5);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($ve[0]['tipopagove'].\" - \".$ve[0]['formapagove']), 0 , 0);\n\t\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 263.5);\n $this->Cell(20, 5, 'FECHA DE VENCIMIENTO :', 0 , 0);\n $this->SetXY(60, 263.5);\n\t$this->SetFont('courier','',8);\n $this->Cell(20, 5,utf8_decode($vence = ( $ve[0]['fechavencecredito'] == '0000-00-00' ? \"0\" : date(\"d-m-Y\",strtotime($ve[0]['fechavencecredito'])))), 0 , 0);\n\t\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',8);\n $this->SetXY(12, 266.5);\n $this->Cell(20, 5, 'DIAS VENCIDOS :', 0 , 0);\n $this->SetXY(60, 266.5);\n\t$this->SetFont('courier','',8);\n\t\n if($ve[0]['fechavencecredito']== '0000-00-00') { \n\t$this->Cell(20, 5,utf8_decode(\"0\"), 0 , 0);\n\t} elseif($ve[0]['fechavencecredito'] >= date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(\"0\"), 0 , 0);\n\t} elseif($ve[0]['fechavencecredito'] < date(\"Y-m-d\")) { \n\t$this->Cell(20, 5,utf8_decode(Dias_Transcurridos(date(\"Y-m-d\"),$ve[0]['fechavencecredito'])), 0 , 0);\n\t}\n\t\n\t//Linea de membrete Nro 7\n\t$this->SetXY(52, 33);\n\t$this->Codabar(13,271,utf8_decode(\"133923786899444489448576556789\"));\n\t//Linea de membrete Nro 2\n $this->SetFont('courier','B',6.5); \n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->SetXY(48, 271);\n $this->Cell(20, 5, 'Este documento no constituye un comprobante de pago', 0 , 0);\n\t\n\t//Bloque de Totales de factura\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(122, 250, 78, 28, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 252);\n $this->Cell(20, 5, 'SUBTOTAL IVA '.$ve[0][\"ivave\"].'% :', 0 , 0);\n $this->SetXY(167, 252);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($ve[0][\"subtotalivasive\"], 2, '.', ',')), 0 , 0);\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 256);\n $this->Cell(20, 5, 'SUBTOTAL IVA 0% :', 0 , 0);\n $this->SetXY(167, 256);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($ve[0][\"subtotalivanove\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 260);\n $this->Cell(20, 5, 'IVA '.$ve[0][\"ivave\"].'% :', 0 , 0);\n $this->SetXY(167, 260);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($ve[0][\"totalivave\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 264);\n $this->Cell(20, 5, 'DESC '.$ve[0][\"descuentove\"].'% :', 0 , 0);\n $this->SetXY(167, 264);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($ve[0][\"totaldescuentove\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(124, 268);\n $this->Cell(20, 5, 'TOTAL PAGO :', 0 , 0);\n $this->SetXY(167, 268);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($ve[0][\"totalpago\"], 2, '.', ',')), 0 , 0);\n}", "function SetStyle($tag,$enable)\n{\n $this->$tag+=($enable ? 1 : -1);\n $style='';\n foreach(array('B','I','U') as $s)\n if($this->$s>0)\n $style.=$s;\n $this->SetFont('',$style);\n}", "function ShowInRadioBox( $Table, $name_fld, $cols, $val, $position = \"left\", $disabled = NULL, $sort_name = 'move', $asc_desc = 'asc' )\n {\n //$Tbl = new html_table(1);\n\n $row1 = NULL;\n if (empty($name_fld)) $name_fld=$Table;\n\n $tmp_db = DBs::getInstance();\n $q = \"SELECT * FROM `\".$Table.\"` WHERE 1 LIMIT 1\";\n $res = $tmp_db->db_Query($q);\n //echo '<br>q='.$q.' res='.$res.' $tmp_db->result='.$tmp_db->result;\n if ( !$res ) return false;\n if ( !$tmp_db->result ) return false;\n $fields_col = mysql_num_fields($tmp_db->result);\n\n if ($fields_col>4) $q = \"select * from `\".$Table.\"` where lang_id='\"._LANG_ID.\"' order by `$sort_name` $asc_desc\";\n else $q = \"select * from `\".$Table.\"` where lang_id='\"._LANG_ID.\"'\";\n\n $res = $tmp_db->db_Query($q);\n if (!$res) return false;\n $rows = $tmp_db->db_GetNumRows();\n\n $col_check=1;\n //$Tbl->table_header();\n //$Tbl->tr();\n echo '<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" align=\"left\" ><tr>';\n for( $i = 0; $i < $rows; $i++ )\n {\n $row1 = $tmp_db->db_FetchAssoc();\n if ($col_check > $cols) {\n //$Tbl->tr();\n echo '</tr><tr>';\n $col_check=1;\n }\n\n $checked ='>';\n if ($val==$row1['cod']) $checked = \" checked\".$checked;\n\n if ( $position == \"left\" ) $align= 'left';\n else $align= 'right';\n echo \"\\n<td align=\".$align.\" valign='middle' class='checkbox'>\";\n\n if ( $position == \"left\" ) echo \"<input class='checkbox' type='radio' name='\".$name_fld.\"' value='\".$row1['cod'].\"' \".$disabled.\" \".$checked.' '.stripslashes($row1['name']);\n else echo stripslashes($row1['name']).\"<input class='checkbox' type='checkbox' name=\".$name_fld.\" value='\".$row1['cod'].\"' \".$disabled.\" \".$checked;\n echo \"</td>\";\n $col_check++;\n }\n echo '</tr></table>';\n //$Tbl->table_footer();\n }", "function TablaServicios()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 15 ,10, 55 , 17 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$se = new Login();\n $se = $se->ServiciosPorId();\n\t\n################################################# BLOQUE N° 1 ###################################################\t\n\n //Bloque de membrete principal\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 10, 190, 17, '1.5', '');\n\t\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 12, 13, 13, '1.5', 'F');\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 12, 13, 13, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',16);\n $this->SetXY(102, 14);\n $this->Cell(19, 5, 'S', 0 , 0);\n\t$this->SetFont('courier','B',7);\n $this->SetXY(98, 19);\n $this->Cell(20, 5, 'Servicio', 0 , 0);\n\t\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',10);\n $this->SetXY(135, 10);\n $this->Cell(20, 5, 'N° SERVICIO ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 10);\n $this->Cell(20, 5,utf8_decode($se[0]['codservicio']), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 13);\n $this->Cell(20, 5, 'FECHA SERVICIO ', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 13);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($se[0]['fechaservicio']))), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 16);\n $this->Cell(20, 5, 'FECHA EMISIÓN', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 16);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\")), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 19);\n $this->Cell(20, 5, 'N° DE CAJA', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 19);\n $this->Cell(20, 5,utf8_decode($se[0]['nrocaja']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 22);\n $this->Cell(20, 5, 'TIPO DE PAGO', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 22);\n $this->Cell(20, 5,utf8_decode($se[0]['tipopago']), 0 , 0);\n\t\n\t\n################################################# BLOQUE N° 2 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 29, 190, 18, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 30);\n $this->Cell(20, 5, 'DATOS DE LA EMPRESA ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 34);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(40, 34);\n $this->Cell(20, 5,utf8_decode($con[0]['nomempresa']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(147, 34);\n $this->Cell(90, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 34);\n $this->Cell(90, 5,utf8_decode($con[0]['rifempresa']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 38);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(32, 38);\n $this->Cell(20, 5,utf8_decode($con[0]['direcempresa']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(140, 38);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 38);\n $this->Cell(20, 5,utf8_decode($con[0]['tlfempresa']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 42);\n $this->Cell(20, 5, 'GERENTE :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(30, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['nomresponsable']), 0 , 0);\n\t//Linea de membrete Nro 7\n\t$this->SetFont('courier','B',7);\n $this->SetXY(94, 42);\n $this->Cell(20, 5, 'CÉDULA :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['cedresponsable']), 0 , 0);\n\t//Linea de membrete Nro 8\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 42);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['correoresponsable']), 0 , 0);\n\t\n################################################# BLOQUE N° 3 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 49, 190, 14, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 50);\n $this->Cell(20, 5, 'DATOS DEL CLIENTE ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 54);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(38, 54);\n $this->Cell(20, 5,utf8_decode($se[0]['nomcliente']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(112, 54);\n $this->Cell(74, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(122, 54);\n $this->Cell(75, 5,utf8_decode($se[0]['cedcliente']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(150, 54);\n $this->Cell(90, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(166, 54);\n $this->Cell(90, 5,utf8_decode($se[0]['tlfcliente']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 58);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(33, 58);\n $this->Cell(20, 5,utf8_decode($se[0]['direccliente']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(116, 58);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(128, 58);\n $this->Cell(20, 5,utf8_decode($se[0]['emailcliente']), 0 , 0);\n\t\n\t$this->Ln(7);\n\t$this->SetFont('courier','B',10);\n\t$this->SetTextColor(3, 3, 3); // Establece el color del texto (en este caso es Negro)\n $this->SetFillColor(229, 229, 229); // establece el color del fondo de la celda (en este caso es GRIS)\n\t$this->Cell(8,8,'N°',1,0,'C', True);\n\t$this->Cell(19,8,'CÓDIGO',1,0,'C', True);\n\t$this->Cell(95,8,'DESCRIPCIÓN DE PRODUCTO',1,0,'C', True);\n\t$this->Cell(22,8,'PRECIO',1,0,'C', True);\n\t$this->Cell(22,8,'CANTIDAD',1,0,'C', True);\n\t$this->Cell(24,8,'IMPORTE',1,1,'C', True);\n\t\n\t################################################# BLOQUE N° 4 DE DETALLES DE PRODUCTOS ###################################################\t\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 75, 190, 170, '1.5', '');\n\t\n\t$this->Ln(3);\n $tra = new Login();\n $reg = $tra->VerDetallesServicios();\n\t$cantidad=0;\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$cantidad+=$reg[$i]['cantservicio'];\n\t$this->SetFont('courier','',7); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(8,4,$a++,0,0,'C');\n\t$this->CellFitSpace(19,4,utf8_decode($reg[$i][\"coditems\"]),0,0,'C');\n $this->CellFitSpace(95,4,utf8_decode($reg[$i][\"nombreitems\"]),0,0,'C');\n $this->CellFitSpace(22,4,utf8_decode(number_format($reg[$i][\"precioservicio\"], 2, '.', ',')),0,0,'C');\n\t$this->CellFitSpace(22,4,utf8_decode($reg[$i][\"cantservicio\"]),0,0,'C');\n\t$this->CellFitSpace(24,4,utf8_decode(number_format($reg[$i][\"importe\"], 2, '.', ',')),0,0,'C');\n $this->Ln();\n }\n \n\t\n\n\n################################################# BLOQUE N° 5 DE TOTALES ###################################################\t\n\t//Bloque de Informacion adicional\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 250, 130, 25, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',12);\n $this->SetXY(46, 252);\n $this->Cell(20, 5, 'INFORMACIÓN ADICIONAL', 0 , 0);\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(12, 258);\n $this->Cell(20, 5, 'CANTIDAD DE SERVICIOS :', 0 , 0);\n $this->SetXY(60, 258);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode($cantidad), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(12, 262);\n $this->Cell(20, 5, 'TIPO DE DOCUMENTO :', 0 , 0);\n $this->SetXY(60, 262);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(\"FACTURA\"), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetXY(52, 33);\n\t$this->Codabar(13,267,utf8_decode(\"133923786899444489448576556789\"));\n\t//Linea de membrete Nro 2\n $this->SetFont('courier','B',7); \n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->SetXY(55, 268);\n $this->Cell(20, 5, 'Este documento no constituye un comprobante de pago.', 0 , 0);\n\t\n\t//Bloque de Totales de factura\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(142, 250, 58, 25, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 254);\n $this->Cell(20, 5, 'SUB TOTAL :', 0 , 0);\n $this->SetXY(167, 254);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($se[0][\"subtotal\"], 2, '.', '.,')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 258);\n $this->Cell(20, 5, 'IVA '.$se[0][\"iva\"].'% :', 0 , 0);\n $this->SetXY(167, 258);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($se[0][\"totaliva\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 262);\n $this->Cell(20, 5, 'DESC '.$se[0][\"descuento\"].'% :', 0 , 0);\n $this->SetXY(167, 262);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($se[0][\"totaldescuento\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 266);\n $this->Cell(20, 5, 'TOTAL PAGO :', 0 , 0);\n $this->SetXY(167, 266);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($se[0][\"totalpago\"], 2, '.', ',')), 0 , 0);\n }", "function radio($name='',$value='',$id='',$attrib='',$rows=''){\n\t\t$n = ''; \n\t\t$brekz = 0;\n\t\t$fldname = str_replace(' ', '_', $name);\n\t\t$radio = '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr>';\n\t\tif(isset($_SESSION[$fldname])) $n = $_SESSION[$fldname];\n\t\tif(isset($_POST[$fldname])) $n = $_POST[$fldname]; \n\t\tif(empty($rows)){\n\t\t\t$rows = 4;\n\t\t}\n\t\tforeach($value as $radVal){\n\t\t\t$cndtn = ($n == $radVal)? 'checked=\"checked\"' : '';\n\t\t\tif($brekz == $rows) {\n\t\t\t\t$radio .= '</tr><tr>';\n\t\t\t\t$brekz = 0; \n\t\t\t}\n\t\t\t$radio .= '<td><input type=\"radio\" name=\"'.$fldname.'\" value=\"'.$radVal.'\" '.$cndtn.' id=\"'.$id.'\" '.$attrib.'>'.'<span style=\"font-weight:normal; color:#000;\">'.$radVal.'</span></td>'.\"\\n\";\n\t\t\t$brekz++;\n\t\t}\n\t\t$radio .= \"</tr></table>\";\n\t\techo $radio;\n\t}", "function Footer()\n {\n $this->SetY(-15);\n\n // Police Arial italique 8\n $this->SetFont('Arial','I',6);\n // Num?ro de page\n $this->Cell(0,8,'Page '.$this->PageNo().'/{nb}',0,0,'C');$this->Ln(3);\n $this->Cell(0,8,\"Algerian Gulf Life Insurance Company, SPA au capital social de 1.000.000.000 de dinars algériens, 01 Rue Tripoli, Hussein Dey Alger, \",0,0,'C');\n $this->Ln(2);\n $this->Cell(0,8,\"RC : 16/00-1009727 B 15 NIF : 001516100972762-NIS :0015160900296000\",0,0,'C');\n $this->Ln(2);\n $this->Cell(0,8,\"Tel : +213 (0) 21 77 30 12/14/15 Fax : +213 (0) 21 77 29 56 Site Web : www.aglic.dz \",0,0,'C');\n }", "function check_radio_button($col, $row, $position)\n{\n\tif ($col.$row == $position)\n\t\treturn \" checked\";\n\telse\n\t\t;\n}", "function consultation($p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8){\n $this->SetFont('Arial','',15);\n $this->Cell(0,6,\"Tableau de Consultation\");\n $this->Ln();\n $this->SetFont('Times','',14);\n $this->Cell(50,5,\"Tranches \",1);\n $this->Cell(30,5,'Nombre',1,0,'R');\n $this->Ln();\n $this->SetFont('Times','',12);\n $this->Cell(50,5,\"0-11 mois \",1);\n $this->Cell(30,5,$p1,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"1-4 ans \",1);\n $this->Cell(30,5,$p2,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"5-14 ans \",1);\n $this->Cell(30,5,$p3,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"15-19 ans \",1);\n $this->Cell(30,5,$p4,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"20-24 ans \",1);\n $this->Cell(30,5,$p5,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"25-49 ans \",1);\n $this->Cell(30,5,$p6,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"50-59 ans \",1);\n $this->Cell(30,5,$p7,1,0,'R');\n $this->Ln();\n $this->Cell(50,5,\"60 ans et plus \",1);\n $this->Cell(30,5,$p8,1,0,'R');\n $this->Ln();\n $this->SetFont('Times','',14);\n $this->Cell(50,5,\"Totals \",1);\n $this->Cell(30,5,$p1+$p2+$p3+$p4+$p5+$p6+$p7+$p8,1,0,'R');\n $this->Ln();\n $this->Ln();\n }", "function render()\n {\n\t\t$value = $this->_value;\n\t\t$i = 0;\n\t\treturn \t\"<div>\".\n\t\t\t\t\t\"<label class=\\\"inline\\\">\"._AM_TMANAGER_BORDERBOX.\" :</label>&nbsp;&nbsp;&nbsp;\".\n\t\t\t\t\t\"<input type=\\\"radio\\\" name=\\\"\".$this->getName().\"_yn\\\" class='borders_r_same'style=\\\"vertical-align: baseline;margin:0\\\" value=\\\"1\\\" \".($value['same']?'checked=\\\"checked\\\"':'').\">&nbsp;\"._YES.\"&nbsp;&nbsp;\".\n\t\t\t\t\t\"<input type=\\\"radio\\\" name=\\\"\".$this->getName().\"_yn\\\" class='borders_r_same'style=\\\"vertical-align: baseline;margin:0\\\" value=\\\"0\\\" \".($value['same']?'':'checked=\\\"checked\\\"').\">&nbsp;\"._NO.\n\t\t\t\t\t\"<div id='\".$this->getName().\"_sameborders' style='display:\".($value['same']?'block':'none').\"'>\".\n\t\t\t\t\t\t$this->SingleBorder(_ALL, $value['size'][0], $value['type'][0], $value['color'][0], 'all').\n\t\t\t\t\t\"</div>\".\n\t\t\t\t\t\"<div id='\".$this->getName().\"_diffborders' style='display:\".($value['same']?'none':'block').\"'>\".\t\t\t\t\n\t\t\t\t\t\t$this->SingleBorder(_AM_TMANAGER_BOX_TOP, $value['size'][$i], $value['type'][$i], $value['color'][$i++], 'top').\n\t\t\t\t\t\t$this->SingleBorder(_AM_TMANAGER_BOX_LEFT, $value['size'][$i], $value['type'][$i], $value['color'][$i++], 'left').\n\t\t\t\t\t\t$this->SingleBorder(_AM_TMANAGER_BOX_RIGHT, $value['size'][$i], $value['type'][$i], $value['color'][$i++], 'right').\n\t\t\t\t\t\t$this->SingleBorder(_AM_TMANAGER_BOX_BOTTOM, $value['size'][$i], $value['type'][$i], $value['color'][$i++], 'bot').\n\t\t\t\t\t\"</div>\".\n\t\t\t\t\"</div>\";\n }", "public function Header() {\r\n\t\t$this->SetLeftMargin( 20 );\r\n\t\t$this->SetFillColor( 255, 255, 255 );\r\n\t\t\r\n\t\tswitch ($this->plantilla) {\r\n\t\t\tcase 1:\r\n\t\t\t$this->EncabezadoFBM1_Info();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t$this->EncabezadoFBM1();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t$this->EncabezadoFBM2();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t$this->EncabezadoFBM3();\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t//$this->SetLeftMargin( 10 );\r\n\t\t\t$y1 = $this->getY();\r\n\t\t\t$x1 = $this->getX();\r\n\t\t\t$this->Celda(75, 23, '', 1, 0, '', true);\r\n\t\t\t$y2 = $this->getY();\r\n\t\t\t$x2 = $this->getX();\r\n\t\t\t$this->Celda(150, 23, '', 1, 0, '', true);\r\n\t\t\t$y3 = $this->getY();\r\n\t\t\t$x3 = $this->getX();\r\n\t\t\t$this->Celda(28, 23, '', 1, 1, '', true);\r\n\t\t\t$y4 = $this->getY();\r\n\t\t\t$x4 = $this->getX();\r\n\t\t\t$this->setY($y1);\r\n\t\t\t$this->setX($x1);\r\n\t\t\t$this->Image( 'images/logo_medium.png', 22, 11, 68 );\r\n\t\t\t$this->setY($y2+5);\r\n\t\t\t$this->setX($x2+1);\r\n\t\t\t$this->Formato( 'Helvetica', 'B', 10 );\r\n\t\t\t$this->Celda(162, 6, 'Formulario B.M.4', 0, 1, 'C', true);\r\n\t\t\t$this->Formato( 'Helvetica', '', 8 );\r\n\t\t\t$this->setX($x2+1);\r\n\t\t\t$this->Celda(162, 8, 'Resumen de la Cuenta de Bienes', 0, 1, 'C', true);\r\n\t\t\t$this->setY($y3);\r\n\t\t\t$this->setX($x3);\r\n\t\t\t$this->Celda(31, 8, 'HOJA Nro.', 1, 1, 'C', true);\r\n\t\t\t$this->setX($x3);\r\n\t\t\t$this->Celda(31, 15, $this->header['hoja'], 1, 1, 'C', true);\r\n\t\t\t$this->setY($y4);\r\n\t\t\t$this->setX($x4);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t$this->EncabezadoFBM5();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "function drawOptionLeftWork() {\r\n global $saveShowWork;?>\r\n <table width=\"100%\">\r\n <tr class=\"checkboxLabel\">\r\n <td >\r\n <?php echo ucfirst(i18n(\"labelShowLeftWork\".((isNewGui()?'':'Short'))));?>\r\n </td>\r\n <td style=\"width:36px\">\r\n <div title=\"<?php echo i18n('showLeftWork')?>\" dojoType=\"dijit.form.CheckBox\" \r\n type=\"checkbox\" id=\"listShowLeftWork\" name=\"listShowLeftWork\" class=\"whiteCheck\"\r\n <?php if ($saveShowWork=='1') { echo ' checked=\"checked\" '; }?> >\r\n <script type=\"dojo/method\" event=\"onChange\" >\r\n saveUserParameter('planningShowWork',((this.checked)?'1':'0'));\r\n refreshJsonPlanning();\r\n </script>\r\n </div>&nbsp;\r\n </td>\r\n </tr>\r\n </table>\r\n<?php \r\n}", "private function cabeceraHorizontal()\n {\n $this->Image('img/pdf/header.jpg' , 0, 0, 210 , 94,'JPG');\n\n $id_factura=1;\n $fecha_factura=\"20/12/15\";\n // Encabezado de la factura\n $this->SetFont('Arial','B',24);\n $this->SetTextColor(241,241,241);\n $top_datos=60;\n $this->SetY($top_datos);\n $this->Cell(190, 10, utf8_decode(\"EXPERT X\"), 0, 2, \"C\");\n $this->Cell(190, 10, utf8_decode(\"NOTA DE PEDIDO\"), 0, 2, \"C\");\n $this->SetFont('Arial','B',12);\n $this->MultiCell(190,5, utf8_decode(\"Número de nota: $id_factura\".\"\\n\".\"Fecha: $fecha_factura\"), 0, \"C\", false);\n $this->Ln(2);\n }", "function generate_line_diagramm($filename,$text,$data) {\n\n\t$y_max = 70 + sizeof($data) * 40;\n\n\t$image = imagecreatetruecolor(600,$y_max);\n\timagecolorallocate ($image, 255, 255, 255);\n\n\t// Colours\n\t$colours[\"black\"] = imagecolorallocate ($image, 0, 0, 0);\n\t$colours[\"grey\"] = imagecolorallocate($image,193,193,193);\n\t$colours[\"red\"] = imagecolorallocate($image,255,0,0);\n\t$colours[\"blue\"] = imagecolorallocate($image,202,218,249); \n\t$colours[\"white\"] = imagecolorallocate($image,255,255,255); \n\t\n\n\t// Texts\n\timagettftext($image, \"10\",\"0\",\"150\",\"10\",\"255\",\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",$text[\"top\"]);\n\timagettftext($image, \"10\",\"90\",\"10\",$y_max/2,\"255\",\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",$text[\"left\"]);\n\timagettftext($image, \"10\",\"270\",\"590\",$y_max/2,\"255\",\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",$text[\"right\"]);\n\timagettftext($image, \"10\",\"0\",\"300\",$y_max - 10,\"255\",\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",$text[\"buttom\"]);\n\n\n\t// Background for middle\n\t$date = date(\"Y-m-d H:i\");\n\t\n\timagefilledrectangle($image, 22,22,580,$y_max-30, $colours[\"grey\"]); \n\timagerectangle($image,22,22,580,$y_max-30,$colours[\"black\"]);\n\timagettftext($image, \"8\",\"0\",\"400\",$y_max - 35,\"255\",\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",\"$date | lansuite 2.0 Chart\");\n\n\n\t\n\tforeach($data AS $these_data) {\n\t\n\t$overall_count = $overall_count + $these_data[\"count\"];\n\t\n\t}\n\t\n\tforeach($data AS $draw_this_line) {\n\t\n\t$x1 = 30;\n\t$y1 = $y1+40;\n\t$x2 = $x1 + (540*($draw_this_line[\"count\"]/$overall_count));\n\t$y2 = $y1 + 20;\n\t\n\t$red_value = 255 * round(($draw_this_line[\"count\"])/$overall_count,1);\n\t\n\t\n\t\n\t$myred = imagecolorallocate($image,255,$red_value,$red_value);\n\t\n\timagefilledrectangle($image,$x1 ,$y1,$x2,$y2, $myred); \n\timagerectangle($image,$x1,$y1,$x2,$y2,$colours[\"black\"]);\n\t\n\t$line_text = $draw_this_line[\"name\"] . \" (\" . round(100*(($draw_this_line[\"count\"]/$overall_count)),2) . \" %)\";\n\t\n\t\n\t\n\timagettftext($image, \"10\",\"0\",$x1 + 3 ,$y1 + 14,250,\"{$GLOBALS[\"config\"][\"environment\"][\"dir\"]}/ext_inc/fonts/arial.ttf\",$line_text);\n\t\t\t\t\t\t\n\t\n\t}\n\n\timagepng($image,$filename,\"100\");\n\n}", "function SetStyle($tag, $enable)\r\n{\r\n $this->$tag += ($enable ? 1 : -1);\r\n $style = '';\r\n foreach(array('B', 'I', 'U') as $s)\r\n {\r\n if($this->$s>0)\r\n $style .= $s;\r\n }\r\n $this->SetFont('',$style);\r\n}", "function ListarProductosStockMinimo()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 35 ,12, 80 , 25 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',16);\n //Movernos a la derecha\n $this->Cell(130);\n //Título\n $this->Cell(180,25,'LISTADO GENERAL DE PRODUCTOS EN STOCK MINIMO',0,0,'C');\n //Salto de línea\n $this->Ln(30);\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$this->SetFont('courier','B',10);\n\t$this->SetFillColor(2,157,116);\n\t$this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'CÉDULA GERENTE :',0,0,'');\n\t$this->CellFitSpace(95,5,$con[0]['cedresponsable'],0,0,'');\n\t$this->CellFitSpace(42,5,'NOMBRE GERENTE :',0,0,'');\n\t$this->CellFitSpace(120,5,$con[0]['nomresponsable'],0,1,'');\n \n $this->Cell(30,5,'',0,0,'');\n\t$this->CellFitSpace(42,5,'TELÉFONO GERENTE :',0,0,'');\n $this->CellFitSpace(95,5,utf8_decode($con[0]['tlfresponsable']),0,0,'');\n $this->CellFitSpace(42,5,'CORREO GERENTE :',0,0,'');\n $this->CellFitSpace(120,5,utf8_decode($con[0]['correoresponsable']),0,0,'');\n $this->Ln();\n\t\n\t$this->Ln();\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(255,255,255); // Establece el color del texto (en este caso es blanco)\n $this->SetFillColor(249, 187, 31); // establece el color del fondo de la celda (en este caso es NARANJA)\n\t$this->CellFitSpace(10,8,'N°',1,0,'C', True);\n\t$this->CellFitSpace(20,8,'CÓDIGO',1,0,'C', True);\n\t$this->CellFitSpace(90,8,'DESCRIPCION',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'CATEGORIA',1,0,'C', True);\n\t$this->CellFitSpace(30,8,'PRECIO',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'EXISTENCIA',1,0,'C', True);\n\t$this->CellFitSpace(35,8,'STOCK MINIMO',1,0,'C', True);\n\t$this->CellFitSpace(40,8,'UBICACIÓN',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'CÓD BARRA',1,0,'C', True);\n\t$this->CellFitSpace(25,8,'STATUS',1,1,'C', True);\n\t\n $tra = new Login();\n $reg = $tra->ListarProductosStockMinimo();\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(10,5,$a++,1,0,'C');\n\t$this->CellFitSpace(20,5,$reg[$i][\"codproducto\"],1,0,'C');\n $this->CellFitSpace(90,5,utf8_decode($reg[$i][\"producto\"]),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode($reg[$i][\"nomcategoria\"]),1,0,'C');\n\t$this->CellFitSpace(30,5,utf8_decode(number_format($reg[$i][\"precioventa\"], 2, '.', ',')),1,0,'C');\n $this->CellFitSpace(25,5,utf8_decode($reg[$i][\"existencia\"]),1,0,'C');\n\t$this->CellFitSpace(35,5,utf8_decode($reg[$i][\"stockminimo\"]),1,0,'C');\n\t$this->Cell(40,5,utf8_decode($reg[$i][\"ubicacion\"]),1,0,'C');\n\t$this->Cell(25,5,utf8_decode($reg[$i][\"codigobarra\"]),1,0,'C');\n $this->CellFitSpace(25,5,utf8_decode($reg[$i][\"statusproducto\"]),1,0,'C');\n $this->Ln();\n\t\n }\n $this->Ln(12); \n $this->SetFont('courier','B',9);\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'ELABORADO POR: '.utf8_decode($_SESSION[\"nombres\"]),0,0,'');\n $this->Cell(80,6,'RECIBIDO:__________________________________',0,0,'');\n $this->Ln();\n $this->Cell(40,6,'',0,0,'');\n $this->Cell(140,6,'FECHA/HORA ELABORACIÓN: '.date('d-m-Y h:i:s A'),0,0,'');\n $this->Cell(80,6,'',0,0,'');\n $this->Ln(4);\n }", "function maladies($p1,$p2,$p3,$p4,$p5,$p6,$p7,$p8,$mal){\n $lop1 = json_decode($p1,true);\n $lop2 = json_decode($p2,true);\n $lop3 = json_decode($p3,true);\n $lop4 = json_decode($p4,true);\n $lop5 = json_decode($p5,true);\n $lop6 = json_decode($p6,true);\n $lop7 = json_decode($p7,true);\n $lop8 = json_decode($p8,true);\n\n $this->SetFont('Arial','',15);\n $this->Cell(0,6,\"Tableau de frequence des maladies \");\n $this->Ln();\n\n $this->SetFont('Times','B',12);\n $x_axis=$this->getx();\n $this->hcell(10,10,$x_axis,\"Num\");\n $x_axis=$this->getx();\n $this->fcell(58,10,$x_axis,\"Tranches / Maladies\");\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'0-11 mois');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'1-4 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'5-14 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'15-19 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'20-24 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'25-49 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'50-59 ans');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'60 ans et plus');\n $x_axis=$this->getx();\n $this->hCell(14,10,$x_axis,'Totals');\n\n $this->Ln();\n $itera = 0;\n $totals = 0;\n foreach($lop1 as $k=>$v){\n $somme = $lop1[$k]+$lop2[$k]+$lop3[$k]+$lop4[$k]+$lop5[$k]+$lop6[$k]+$lop7[$k]+$lop8[$k];\n if($somme > 0){\n $this->SetFont('Times','',10);\n $x_axis=$this->getx();\n $this->hcell(10,10,$x_axis,$itera+1);\n $x_axis=$this->getx();\n $this->ecell(58,10,$x_axis,utf8_decode($mal[$itera]));\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop1[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop2[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop3[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop4[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop5[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop6[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop7[$k]);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$lop8[$k]);\n $this->SetFont('Times','B',13);\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$somme);\n $this->Ln();\n $itera +=1; \n $totals += $somme;\n }\n }\n $this->SetFont('Times','B',13);\n $x_axis=$this->getx();\n $this->ecell(180,10,$x_axis,'Totals');\n $x_axis=$this->getx();\n $this->hcell(14,10,$x_axis,$totals);\n $this->Ln();\n $this->Ln();\n }", "public function OutputToReport($line=1,$size=5.5){\n //$this->w = 225;\n $this->SetX(($this->w - $this->_tWidth)/2);\n $this->_fill = !$this->_fill;\n $this->SetDrawColor(160,160,160);\n $this->SetTextColor(100);\n $this->SetFillColor(245);\n $this->SetFont('arial','',$size);\n foreach(array_keys($this->_fields) as $field){\n $align = $this->_fields[$field][\"align\"];\n $fill = $this->_fill;\n if(count($this->_row) > 0){\n if(isset($this->_fields[$field][\"numberFormat\"]) && $this->_row[$field] != ''){\n $this->Cell($this->_fields[$field][\"size\"],5,number_format($this->_row[$field],2,',','.'),$line,0,$align,$fill);\n }else{\n $this->Cell($this->_fields[$field][\"size\"],5,$this->_row[$field],$line,0,$align,$fill);\n }\n }\n }\n $this->Ln();\n }", "public function Footer() {\n $this->SetY(-15);\n // Arial italic 8\n $this->SetFont('helvetica','I',8);\n \n }", "public function draw_toggle ()\n {\n echo $this->toggle_as_html ();\n }", "function TablaDevolucionesProductos()\n {\n //Logo\n $this->Image(\"./assets/img/logo.png\" , 15 ,10, 55 , 17 , \"PNG\"); \n //Arial bold 15\n $this->SetFont('Courier','B',15);\n //Movernos a la derecha\n\t\n\t$con = new Login();\n $con = $con->ConfiguracionPorId();\n\t\n\t$dev = new Login();\n $dev = $dev->DevolucionesPorId();\n\t\n################################################# BLOQUE N° 1 ###################################################\t\n\n //Bloque de membrete principal\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 10, 190, 17, '1.5', '');\n\t\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 12, 18, 12, '1.5', 'F');\n\t//Bloque de membrete principal\n $this->SetFillColor(199);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(98, 12, 18, 12, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',16);\n $this->SetXY(104, 14);\n $this->Cell(26, 5, 'D', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(98, 19);\n $this->Cell(20, 5, 'Devolución', 0 , 0);\n\t\n\t\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',10);\n $this->SetXY(135, 10);\n $this->Cell(20, 5, 'N° DEVOLUCIÓN ', 0 , 0);\n\t$this->SetFont('courier','B',8);\n $this->SetXY(165, 10);\n $this->Cell(20, 5,utf8_decode($dev[0]['coddevolucion']), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 14);\n $this->Cell(20, 5, 'FECHA DEVOLUCIÓN ', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 14);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\",strtotime($dev[0]['fechadevolucion']))), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 18);\n $this->Cell(20, 5, 'FECHA EMISIÓN', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 18);\n $this->Cell(20, 5,utf8_decode(date(\"d-m-Y h:i:s\")), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',8);\n $this->SetXY(135, 22);\n $this->Cell(20, 5, 'N° DE CAJA', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(165, 22);\n $this->Cell(20, 5,utf8_decode($dev[0]['nrocaja']), 0 , 0);\n\t\n\t\n################################################# BLOQUE N° 2 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 29, 190, 18, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 30);\n $this->Cell(20, 5, 'DATOS DE LA EMPRESA ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 34);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(40, 34);\n $this->Cell(20, 5,utf8_decode($con[0]['nomempresa']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(147, 34);\n $this->Cell(90, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 34);\n $this->Cell(90, 5,utf8_decode($con[0]['rifempresa']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 38);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(32, 38);\n $this->Cell(20, 5,utf8_decode($con[0]['direcempresa']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(140, 38);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(156, 38);\n $this->Cell(20, 5,utf8_decode($con[0]['tlfempresa']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 42);\n $this->Cell(20, 5, 'GERENTE :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(30, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['nomresponsable']), 0 , 0);\n\t//Linea de membrete Nro 7\n\t$this->SetFont('courier','B',7);\n $this->SetXY(94, 42);\n $this->Cell(20, 5, 'CÉDULA :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['cedresponsable']), 0 , 0);\n\t//Linea de membrete Nro 8\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 42);\n $this->Cell(20, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 42);\n $this->Cell(20, 5,utf8_decode($con[0]['correoresponsable']), 0 , 0);\n\t\n################################################# BLOQUE N° 3 ###################################################\t\n\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 49, 190, 14, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(15, 50);\n $this->Cell(20, 5, 'DATOS DEL PROVEEDOR ', 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 54);\n $this->Cell(20, 5, 'RAZÓN SOCIAL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(36, 54);\n $this->Cell(20, 5,utf8_decode($dev[0]['nomproveedor']), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',7);\n $this->SetXY(100, 54);\n $this->Cell(70, 5, 'RIF :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 54);\n $this->Cell(75, 5,utf8_decode($dev[0]['ritproveedor']), 0 , 0);\n\t//Linea de membrete Nro 4\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 54);\n $this->Cell(90, 5, 'EMAIL :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(142, 54);\n $this->Cell(90, 5,utf8_decode($dev[0]['emailproveedor']), 0 , 0);\n\t//Linea de membrete Nro 5\n\t$this->SetFont('courier','B',7);\n $this->SetXY(15, 58);\n $this->Cell(20, 5, 'DIRECCIÓN :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(33, 58);\n $this->Cell(20, 5,utf8_decode($dev[0]['direcproveedor']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(90, 58);\n $this->Cell(20, 5, 'TELÉFONO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(108, 58);\n $this->Cell(20, 5,utf8_decode($dev[0]['tlfproveedor']), 0 , 0);\n\t//Linea de membrete Nro 6\n\t$this->SetFont('courier','B',7);\n $this->SetXY(130, 58);\n $this->Cell(20, 5, 'CONTACTO :', 0 , 0);\n\t$this->SetFont('courier','',7);\n $this->SetXY(150, 58);\n $this->Cell(20, 5,utf8_decode($dev[0]['contactoproveedor']), 0 , 0);\n\t\n\t$this->Ln(7);\n\t$this->SetFont('courier','B',9);\n\t$this->SetTextColor(3, 3, 3); // Establece el color del texto (en este caso es Negro)\n $this->SetFillColor(229, 229, 229); // establece el color del fondo de la celda (en este caso es GRIS)\n\t$this->Cell(6,8,'N°',1,0,'C', True);\n\t$this->Cell(15,8,'CÓDIGO',1,0,'C', True);\n\t$this->Cell(50,8,'DESCRIPCIÓN DE PRODUCTO',1,0,'C', True);\n\t$this->Cell(29,8,'CATEGORIA',1,0,'C', True);\n\t$this->Cell(29,8,'PRECIO',1,0,'C', True);\n\t$this->Cell(16,8,'CANT',1,0,'C', True);\n\t$this->Cell(20,8,'LOTE',1,0,'C', True);\n\t//$this->Cell(20,8,'VENCE',1,0,'C', True);\n\t$this->Cell(25,8,'IMPORTE',1,1,'C', True);\n\t\n\t################################################# BLOQUE N° 4 DE DETALLES DE PRODUCTOS ###################################################\t\n\t//Bloque de datos de empresa\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 75, 190, 170, '1.5', '');\n\t\n\t$this->Ln(3);\n $tra = new Login();\n $reg = $tra->VerDetallesDevoluciones();\n\t$cantidad=0;\n\t$a=1;\n for($i=0;$i<sizeof($reg);$i++){\n\t$cantidad+=$reg[$i]['cantdevolucion'];\n\t$this->SetFont('courier','',8); \n\t$this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->Cell(6,4,$a++,0,0,'C');\n\t$this->CellFitSpace(15,4,utf8_decode($reg[$i][\"codproducto\"]),0,0,'C');\n $this->CellFitSpace(50,4,utf8_decode($reg[$i][\"producto\"]),0,0,'C');\n $this->CellFitSpace(29,4,utf8_decode($reg[$i][\"nomcategoria\"]),0,0,'C');\n\t$this->CellFitSpace(29,4,utf8_decode(number_format($reg[$i][\"preciodevolucion\"], 2, '.', ',')),0,0,'C');\n\t$this->CellFitSpace(16,4,utf8_decode($reg[$i][\"cantdevolucion\"]),0,0,'C');\n\t$this->CellFitSpace(20,4,utf8_decode($reg[$i][\"lotedevolucion\"]),0,0,'C');\n\t//$this->CellFitSpace(20,4,utf8_decode($reg[$i][\"cantdevolucion\"]),0,0,'C');\n\t$this->CellFitSpace(25,4,utf8_decode(number_format($reg[$i][\"importe\"], 2, '.', ',')),0,0,'C');\n $this->Ln();\n }\n \n\t\n\n\n################################################# BLOQUE N° 5 DE TOTALES ###################################################\t\n\t//Bloque de Informacion adicional\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(10, 250, 130, 25, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',12);\n $this->SetXY(46, 252);\n $this->Cell(20, 5, 'INFORMACIÓN ADICIONAL', 0 , 0);\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(12, 258);\n $this->Cell(20, 5, 'CANTIDAD DE PRODUCTOS :', 0 , 0);\n $this->SetXY(60, 258);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode($cantidad), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(12, 262);\n $this->Cell(20, 5, 'TIPO DE DOCUMENTO :', 0 , 0);\n $this->SetXY(60, 262);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(\"FACTURA\"), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetXY(52, 33);\n\t$this->Codabar(13,267,utf8_decode(\"133923786899444489448576556789\"));\n\t//Linea de membrete Nro 2\n $this->SetFont('courier','B',7); \n $this->SetTextColor(3,3,3); // Establece el color del texto (en este caso es negro)\n $this->SetXY(55, 268);\n $this->Cell(20, 5, 'Este documento no constituye un comprobante de pago.', 0 , 0);\n\t\n\t//Bloque de Totales de factura\n $this->SetFillColor(192);\n $this->SetDrawColor(3,3,3);\n $this->SetLineWidth(.3);\n $this->RoundedRect(142, 250, 58, 25, '1.5', '');\n\t//Linea de membrete Nro 1\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 254);\n $this->Cell(20, 5, 'SUB TOTAL :', 0 , 0);\n $this->SetXY(167, 254);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($dev[0][\"subtotald\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 258);\n $this->Cell(20, 5, 'IVA '.$dev[0][\"ivad\"].'% :', 0 , 0);\n $this->SetXY(167, 258);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($dev[0][\"totalivad\"], 2, '.', ',')), 0 , 0);\n\t//Linea de membrete Nro 3\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 262);\n $this->Cell(20, 5, 'DESC 0% :', 0 , 0);\n $this->SetXY(167, 262);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(\"0.00\"), 0 , 0);\n\t//Linea de membrete Nro 2\n\t$this->SetFont('courier','B',9);\n $this->SetXY(143, 266);\n $this->Cell(20, 5, 'TOTAL PAGO :', 0 , 0);\n $this->SetXY(167, 266);\n\t$this->SetFont('courier','',9);\n $this->Cell(20, 5,utf8_decode(number_format($dev[0][\"totald\"], 2, '.', ',')), 0 , 0);\n \n}", "function SetStyle($tag, $enable)\n{\n $this->$tag += ($enable ? 1 : -1);\n $style = '';\n foreach(array('B', 'I', 'U') as $s)\n {\n if($this->$s>0)\n $style .= $s;\n }\n $this->SetFont('',$style);\n}", "function SetStyle($tag, $enable)\n{\n $this->$tag += ($enable ? 1 : -1);\n $style = '';\n foreach(array('B', 'I', 'U') as $s)\n {\n if($this->$s>0)\n $style .= $s;\n }\n $this->SetFont('',$style);\n}" ]
[ "0.63746625", "0.6368007", "0.6288535", "0.6261586", "0.62522745", "0.60525346", "0.6013703", "0.59754425", "0.58878976", "0.5848421", "0.58414644", "0.57736886", "0.5762959", "0.5759272", "0.5740933", "0.5733999", "0.5731528", "0.57269114", "0.57066154", "0.5641584", "0.56398934", "0.5631884", "0.56314826", "0.55679095", "0.555538", "0.5551464", "0.55513644", "0.5546263", "0.5539641", "0.5516344", "0.55097187", "0.5498783", "0.5462479", "0.54533625", "0.5450518", "0.54311603", "0.5430394", "0.5428723", "0.54273236", "0.541764", "0.54125696", "0.5402968", "0.53455716", "0.53288877", "0.5328249", "0.5328003", "0.530418", "0.5253684", "0.5250966", "0.5247447", "0.5247151", "0.524672", "0.523955", "0.5238015", "0.5227276", "0.5201797", "0.5195054", "0.5194458", "0.5188836", "0.51859874", "0.517594", "0.5174485", "0.5173462", "0.5167037", "0.5135176", "0.5132563", "0.5132014", "0.51229703", "0.5122131", "0.5119044", "0.51147574", "0.5110132", "0.5089919", "0.50888765", "0.5074304", "0.50702196", "0.5058525", "0.50536925", "0.504814", "0.5043535", "0.50331557", "0.5032513", "0.50323087", "0.50229406", "0.50187737", "0.5012572", "0.49965125", "0.49914184", "0.498597", "0.498488", "0.49844107", "0.49822503", "0.49782237", "0.4975205", "0.49750006", "0.49742115", "0.49680325", "0.49674553", "0.49564886", "0.49564886" ]
0.6285001
3
Run the database seeds.
public function run() { DB::table('books')->insert([ 'book_number' => 'TE0000', 'title' => 'College Physics 9th Edition', 'publisher' => 'CENGAGE Learning', 'authors' => 'Raymond A. Serway, Chris Vuille', 'category' => 'Textbook', 'isbn' => '0123456777', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'TE0001', 'title' => 'Physics I', 'publisher' => 'HUST', 'authors' => 'Le Tuan', 'category' => 'Textbook', 'isbn' => '0123456776', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'TE0002', 'title' => 'Data structure and algorithm', 'publisher' => 'HUST', 'authors' => 'Pham Quang Dung', 'category' => 'Textbook', 'isbn' => '0123456775', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'TE0003', 'title' => 'Software development', 'publisher' => 'HUST', 'authors' => 'Nguyen Thi Thu Trang', 'category' => 'Textbook', 'isbn' => '0123456774', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'HI0000', 'title' => 'Guns, Germs, and Steel: The Fates of Human Societies', 'publisher' => 'W.W. Norton & Company', 'authors' => 'Jared Diamond', 'category' => 'History', 'isbn' => '0123456767', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'HI0001', 'title' => 'A Short History of Nearly Everything', 'publisher' => 'Broadway Books', 'authors' => 'Bill Bryson', 'category' => 'History', 'isbn' => '0123456766', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'HI0002', 'title' => 'The Guns of August', 'publisher' => 'Ballantine Books', 'authors' => 'Barbara W. Tuchman, Robert K. Massie (Foreword)', 'category' => 'History', 'isbn' => '0123456765', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'HI0003', 'title' => 'Spiderman: Homecoming', 'publisher' => 'Anchor', 'authors' => 'Tom Holland', 'category' => 'History', 'isbn' => '0123456764', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'DI0000', 'title' => 'The Compact Edition of the Oxford English Dictionary', 'publisher' => 'Clarendon/Oxford University Press', 'authors' => 'Herbert Coleridge (editor), Frederick J. Furnivall (editor), James Murray (editor), Charles Talbut Onions (editor)', 'category' => 'Dictionary', 'isbn' => '0123456757', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'DI0001', 'title' => 'Merriam-Webster\'s Collegiate Dictionary', 'publisher' => 'Merriam-Webster, Inc', 'authors' => 'Anonymous', 'category' => 'Dictionary', 'isbn' => '0123456756', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'DI0002', 'title' => 'Cambridge Advanced Learner\'s Dictionary', 'publisher' => 'Cambridge University Press', 'authors' => 'Elizabeth Walter', 'category' => 'Dictionary', 'isbn' => '0123456755', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'DI0003', 'title' => 'The Official Scrabble Players Dictionary', 'publisher' => 'Merriam-Webster', 'authors' => 'Anonymous', 'category' => 'Dictionary', 'isbn' => '0123456754', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'PO0000', 'title' => 'Leaves of Grass', 'publisher' => 'Simon & Schuster', 'authors' => 'Walt Whitman', 'category' => 'Poetry', 'isbn' => '0123456747', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'PO0001', 'title' => 'Shakespeare\'s Sonnets', 'publisher' => 'Bloomsbury Academic', 'authors' => 'William Shakespeare, Katherine Duncan-Jones (Editor)', 'category' => 'Poetry', 'isbn' => '0123456746', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'PO0002', 'title' => 'The Waste Land and Other Poems', 'publisher' => 'Harcourt Brace Jovanovich', 'authors' => 'T.S. Eliot', 'category' => 'Poetry', 'isbn' => '0123456745', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'PO0003', 'title' => 'Songs of Innocence and of Experience', 'publisher' => 'Digireads.com', 'authors' => 'William Blake', 'category' => 'Poetry', 'isbn' => '0123456744', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'BI0000', 'title' => 'Steve Jobs', 'publisher' => 'Simon Schuster', 'authors' => 'Walter Isaacson', 'category' => 'Biography', 'isbn' => '0123456737', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'BI0001', 'title' => 'Einstein: His Life and Universe', 'publisher' => 'Simon Schuster', 'authors' => 'Walter Isaacson', 'category' => 'Biography', 'isbn' => '0123456736', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'BI0002', 'title' => 'Into the Wild', 'publisher' => 'Anchor Books', 'authors' => 'Jon Krakauer', 'category' => 'Biography', 'isbn' => '0123456735', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); DB::table('books')->insert([ 'book_number' => 'BI0003', 'title' => 'Team of Rivals: The Political Genius of Abraham Lincoln', 'publisher' => 'Simon Schuster', 'authors' => 'Doris Kearns Goodwin', 'category' => 'Biography', 'isbn' => '0123456734', 'created_at' => new DateTime(), 'updated_at' => new DateTime() ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
/ Check that the HL7 starts with a MSH
public function parse($hl7) { if (substr($hl7, 0, 3) != "MSH") { throw new \Exception("Failed to parse an HL7 message from the supplied data. Supplied data does not start with MSH."); } /* Normalize the input */ $this->text = self::normalizeLineEndings($hl7); /* determine control characters. */ $this->separators->setControlCharacters($this->text); try { $segments = HL7::explode(PHP_EOL, $this->text, $this->separators->escape_character); foreach ($segments as $value) { $row = HL7::explode($this->separators->segment_separator, $value, $this->separators->escape_character); $key = $row[0]; // $this->generateKey($row); /* Check to see if we need to turn the property into an array for duplicate key situations. */ if (array_key_exists($key, $this->properties)) { if (!is_array($this->properties[$key])) { $temp = $this->properties[$key]; $this->properties[$key] = []; $this->properties[$key][] = $temp; } } if ($key != "") { switch ($key) { case "MSH": $this->properties[$key] = new MSH($row, $this->separators); break; /* Repeatable segments go here. Still working on a definitive list. */ case "NK1": case "DG1": case "OBX": case "PR1": case "NTE": case "AL1": case "ACC": case "IAM": case "GT1": case "ROL": case "IN1": case "IN2": case "IN3": case "PID": case "PD1": case "PV2": case "CON": case "OBR": $this->properties[$key][] = new Segment($row, $this->separators); break; default: if (strpos($key, 'Z') === 0) { $this->properties[$key][] = new Segment($row, $this->separators); } else { if (array_key_exists($key, $this->properties)) { throw new \Exception("Repeatable Segment found outside of an array. " . $key); } $this->properties[$key] = new Segment($row, $this->separators); } break; } } } } catch (\Exception $e) { throw new \Exception("Error spliting rows. " . $e->getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function startsWith($Haystack, $Needle){\n return strpos($Haystack, $Needle) === 0;\n }", "function aturan19($word)\n {\n if (substr($word, 0, 4) == 'memp' and preg_match('/^[aiuo]/', substr($word, 4, 1))) {\n return true;\n } else {\n return false;\n }\n }", "function startsWithIgnoreCase($Haystack, $Needle){\n if(strlen($Needle)==0){return false;}\n // Recommended version, using strpos\n return strpos(strtolower($Haystack), strtolower($Needle)) === 0;\n }", "function aturan7($word = '')\n {\n if (substr($word, 0, 3) == 'ter' and preg_match('/^[aiueo]/', substr($word, 3, 1)) == 0 and substr($word, 3, 1) != 'r') {\n if (substr($word, 4, 2) == 'er' and preg_match('/^[aioue]/', substr($word, 6, 1))) {\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }", "function checkStart(){\r\n\tif (!$this->Eq['A']['id']) $this->sendError(\"你沒有裝備武器,不能出擊。\");\r\n\telseif ($this->Player['en'] < $this->RequireEN) $this->sendError(\"EN不足,無法出擊。\");\r\n\telseif ($this->Player['sp'] < $this->SP_Cost) $this->sendError(\"SP不足,無法以 $Pl->Tactics[name] 出擊。\");\r\n}", "public function isFirstPartOfStrReturnsTrueForMatchingFirstPartDataProvider() {}", "function mixStart($str) {\n\treturn substr($str,1, 2) == \"ix\";\n}", "private function LACheckHeader(){\n $instruction = $this->Getinstruction();\n $this->COUNTERS[LOC] -= 1;\n if($instruction->Opcode != \".IPPCODE21\"){\n $this->Error(ERROR_MISSING_HEAD,\"Missing header .IPPcode21\");\n }\n }", "public function isMatriculationSIVWW(): bool\n {\n $pattern = '^WW(?:\\s|-)?(?!000)[0-9]{3}(?:\\s|-)?(?!SS)[A-HJ-NP-TV-Z]{2}$';\n\n return 1 === preg_match('/'.$pattern.'/i', $this->matriculation);\n }", "function testStartsWith6 ()\n\t{\n\t\t\t$input1 = \"Barry is a programmer\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "function damm32Check($code) {\r\n\tglobal $base32;\r\n\treturn (damm32Encode($code) == $base32[0]) ? 1 : 0;\r\n\t}", "private function startsMappedSequence($line) {\n\t//--\n\treturn (($line[0] == '-') && (substr($line, -1, 1) == ':'));\n\t//--\n}", "function aturan23($word)\n {\n if (substr($word, 0, 3) == 'per' and preg_match('/^[raiuoe]/', substr($word, 3, 1)) == 0 and substr($word, 5, 2) == 'er' and preg_match('/^[aiuoe]/', substr($word, 7, 1))) {\n return true;\n } else {\n return false;\n }\n }", "function interesting_word($word)\n{\n if (strlen($word) < 7)\n return false;\n $first_char = substr($word, 0, 1);\n if ($first_char != strtoupper($first_char))\n return false;\n return true;\n}", "public function hasSyscmd(){\n return $this->_has(21);\n }", "public function testStartsWith3()\n {\n $this->assertFalse(Str::startsWith('foo', ''));\n }", "public function isMatriculationFNIWW(): bool\n {\n $pattern = '^(?!0)[0-9]{1,4}(?:\\s|-)?WW[A-HJ-NP-TV-Z]?(?:\\s|-)?(?!20)(?:97[1-6]|0[1-9]|[1-8][0-9]|9[0-5]|2[AB])$';\n\n return 1 === preg_match('/'.$pattern.'/i', $this->matriculation);\n }", "function yumusamaCheck($kelime){\n\t\t// $sondanIkinci = mb_substr($kelime, -2, -1);\n\t\t// // eger sondan ikinci unlu degilse yumusama olamaz\n\t\t// if(!in_array($sondanIkinci, UNLULER)) return -1;\n\t\t$sonHarf = mb_substr($kelime, -1);\n\t\tif($sonHarf === \"b\") {\n\t\t\treturn mb_substr($kelime, 0 ,mb_strlen($kelime)-1).\"p\";\n\t\t}\n\t\tif($sonHarf === \"c\") {\n\t\t\treturn mb_substr($kelime, 0 ,mb_strlen($kelime)-1).\"ç\";\n\t\t}\n\t\tif($sonHarf === \"d\") {\n\t\t\treturn mb_substr($kelime, 0 ,mb_strlen($kelime)-1).\"t\";\n\t\t}\n\t\tif($sonHarf === \"g\") {\n\t\t\treturn mb_substr($kelime, 0 ,mb_strlen($kelime)-1).\"k\";\n\t\t}\n\t\tif($sonHarf === \"ğ\") {\n\t\t\treturn mb_substr($kelime, 0 ,mb_strlen($kelime)-1).\"k\";\n\t\t}\n\t\treturn -1;\n\t}", "public function testStartsWith1()\n {\n $this->assertTrue(Str::startsWith('foo', 'f'));\n }", "static function validation(string $qth): bool\n {\n $qth = strtoupper($qth);\n return preg_match(\"{\" . self::PATTERN . \"+$}AD\", $qth) === 1;\n }", "public function isFirstPartOfStrReturnsFalseForNotMatchingFirstPartDataProvider() {}", "function validateMsn($texto){\n if(strlen($texto) < 10){\n return false;\n // SI longitud, SI caracteres A-z\n } else {\n return true;\n }\n}", "protected static function is_initial($word) {\n return ((strlen($word) == 1) || (strlen($word) == 2 && $word{1} == \".\"));\n }", "function checkValidLine_Y9155a($line){\r\n\t\t$firstTwoChars = substr($line, 0, 2);\r\n\t\t$lastSevenChars = substr($line, 2, 7);\r\n\r\n\t\tif($firstTwoChars == \"CB\"){ //we're looking for \"CB\" followed by 7 digits to start populating a record\r\n\t\t\tif(is_numeric($lastSevenChars)){\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t} //end if\r\n\t\t//return $valid;\r\n\t}", "private function check_Min($word){\r\n return (strlen($word) < $this->_min) ? true : false;\r\n }", "function checkCSH($filename = '') {\n\t\treturn true;\n\t}", "public function hasBip9Prefix(): bool;", "abstract protected function isStartToken(string $token) : bool;", "public function isMatriculationSIVWGarage(): bool\n {\n $pattern = '^W(?:\\s|-)?(?!000)[0-9]{3}(?:\\s|-)?(?!SS)[A-HJ-NP-TV-Z]{2}$';\n\n return 1 === preg_match('/'.$pattern.'/i', $this->matriculation);\n }", "function sugar_valid_mac($mac) {\n // no separator format\n if (strlen($mac) == 12) {\n return preg_match('/[A-F0-9]{12}/', $mac) == 1;\n }\n if (strlen($mac) == 17) {\n // separator : format\n $matches = preg_match('/([A-F0-9]{2}[:]){5}[A-F0-9]{2}/', $mac);\n if ($matches == 1) {\n return TRUE;\n }\n // separator - format\n $matches = preg_match('/([A-F0-9]{2}[\\-]){5}[A-F0-9]{2}/', $mac);\n return ($matches == 1);\n }\n return FALSE;\n}", "function validateMac($mac) {\n \treturn (preg_match('/([a-fA-F0-9]{2}[:|\\-]?){6}/', $mac) == 1);\n }", "public function hasSysstr(){\n return $this->_has(20);\n }", "function testIfmatchWithModifiers(){\n\t\t#mdx:ifmatch2\n\t\tParam::get('phone')\n\t\t\t->filters()\n\t\t\t->ifmatch('/[a-z]/i', 'Phone cannot contain letters');\n\n\t\t$error = Param::get('phone')->process(['phone'=>'9829574K'])->error;\n\t\t#/mdx var_dump($error)\n\t\t$this->assertEquals(\"Phone cannot contain letters\", $error);\n\n\t}", "public static function startsWith(string $prefix, string $word): bool\n {\n return \\preg_match(\\sprintf('#^%s#', $prefix), $word);\n }", "public function isMatriculationSIVNormal(): bool\n {\n $pattern = '^(?!SS|WW)[A-HJ-NP-TV-Z]{2}(?:\\s|-)?(?!000)[0-9]{3}(?:\\s|-)?(?!SS)[A-HJ-NP-TV-Z]{2}$';\n\n return 1 === preg_match('/'.$pattern.'/i', $this->matriculation);\n }", "private function validWBMP(string $data): bool\n {\n return ord($data[0]) === 0 && ord($data[1]) === 0 && $data !== substr(TypeJp2::JPEG_2000_SIGNATURE, 0, self::LONG_SIZE);\n }", "function http_prefix($str)\n\t{\n\t\t/*\n\t\t$pattern = \"/[A-Z]{2,}/\";\n\t\t$matched = array();\n\t\tpreg_match_all( $pattern, $str, $matched );\n\t\t$count = count( $matched,1 );\n\t\t$count = ( $count - 1 );\n\t\treturn ( $count > 1 ) ? FALSE : TRUE;\n\t\t*/\n\t\treturn TRUE;\n\t}", "private function has_spa(){\n // so we search for exact world with regular expression\n // spa or spas (case insensitive)\n $_search = 'spas';\n return preg_match(\"/\\b$_search\\b/i\", $this->m_recreation) == 1;\n }", "function check_mamh_tenmh($new_tenmh,$key)\r\n {\r\n $arr=explode(\",\",$key);\r\n $old_mamh=$arr[1];\r\n $old_tenmh=$arr[2];\r\n $new_mamh=$arr[3];\r\n \r\n \r\n if($new_mamh!=$old_mamh||$new_tenmh!=$old_tenmh)\r\n { \r\n if($this->mmonhoc->mamh_tenmh_exist($new_mamh,$new_tenmh)) \r\n {\r\n $this->form_validation->set_message(\"check_mamh_tenmh\",\"<span title='Thông báo lỗi'><b style='color:red'>Môn học đã tồn tại</b>.</span>\");\r\n return false; \r\n }\r\n else return true;\r\n }\r\n \r\n else return true;\r\n }", "function checkData() {\n\t //check template name\n\t if (!ereg('^[0-9a-zA-Z_\\-]+$',$this->newIdt)) {\n\t\t $this->error = MF_WRONG_SHORT_NAME;\n\t\t return false;\n\t } else \n\t \t return $this->isNameFree();\n }", "function isSetName($input) {\n return (preg_match(\"~(^[[:alnum:] -]+$)~\", $input));\n }", "private function is_heading( $string ) {\n\t\t$string = trim( $string );\n\t\t// For The Red Beans:.\n\t\tif ( ':' === substr( $string, -1, 1 ) ) {\n\t\t\treturn true;\n\t\t}\n\t\t// <strong>For The Red Beans</strong>.\n\t\tif ( '<strong>' === substr( $string, 0, 8 ) && '</strong>' === substr( $string, -9, 9 ) ) {\n\t\t\treturn true;\n\t\t}\n\t\t// <h3>For The Red Beans</h3>.\n\t\tif ( preg_match( '#^<h[1-6]>.+<\\/h[1-6]>$#', $string ) ) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function startsWith($line,$text)\n{\n\treturn substr($line,0,strlen($text))==$text;\n}", "private function startsMappedValue($line) {\n\t//--\n\treturn (substr($line, -1, 1) == ':');\n\t//--\n}", "public function startsWith($prefix) {\n return mb_strpos($this->rawString, $prefix, 0, $this->charset) === 0;\n }", "function testStartsWith3 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "private function isHashElement($line) {\n\t//--\n\treturn strpos($line, ':');\n\t//--\n}", "public function checkHttpHeadersForMobile()\n\t\t{\n\n\t\t\tforeach($this->getMobileHeaders() as $mobileHeader => $matchType){\n\t\t\t\tif( isset($this->httpHeaders[$mobileHeader]) ){\n\t\t\t\t\tif( is_array($matchType['matches']) ){\n\t\t\t\t\t\tforeach($matchType['matches'] as $_match){\n\t\t\t\t\t\t\tif( strpos($this->httpHeaders[$mobileHeader], $_match) !== false ){\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn false;\n\n\t\t}", "function starts_with($text = '', $substring = '') {\n return (strpos(mb_strtolower($text), mb_strtolower($substring)) === 0);\n}", "function is_may_min($vp_cadena){\r\n\t// Marcos A. Botta\r\n\t$lon = strlen($vp_cadena);\r\n\t$cmp = ereg(\"^([[:lower:]]|[[:upper:]]){\".\"$lon\".\"}$\",$vp_cadena);\r\n\tif($cmp==1) return true; else return false;\r\n\t}", "function has_prefix($string, $prefix) {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "function testStartsWith2 ()\n\t{\n\t\t\t$input1 = \"Genevieve\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "public function hasGmcmd(){\n return $this->_has(16);\n }", "function testStartsWith5 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = null;\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "function isValidShortLabel($shortLabel) {\n\tglobal $DB_DB;\n\t$request = $DB_DB->prepare(\"SELECT * FROM Machine WHERE shortLabel LIKE :shortLabel\");\n\n\ttry {\n\t\t$request->execute(array(\n\t\t\t'shortLabel' => $shortLabel\n\t\t));\n\t}\n\tcatch(Exception $e) {\n\t\tif($DEBUG_MODE)\n\t\t\techo $e;\n\t\treturn -2;\n\t}\n\n\tif($request->rowCount() != 0)\n\t\treturn false;\n\treturn true;\n}", "function aturan22($word)\n {\n if (substr($word, 0, 3) == 'per' and preg_match('/^[raiuoe]/', substr($word, 3, 1)) == 0 and substr($word, 5, 2) != 'er') {\n return true;\n } else {\n return false;\n }\n }", "function isValidHairColour($hairColour) {\n\n $hairColour = trim($hairColour);\n\n // test length\n if (strlen($hairColour) != 7) {\n return 0;\n }\n\n // check that string begins with a hash character\n if (substr($hairColour, 0, 1) != '#') {\n return 0;\n }\n\n // check that characters 2 to 7 are hexadecimal\n $hexCharacters = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9',\n 'a', 'b', 'c', 'd', 'e', 'f'];\n for ($i = 1; $i < 7; ++$i) {\n $currentCharacter = substr($hairColour, $i, 1);\n if (!in_array($currentCharacter, $hexCharacters)) {\n return 0;\n }\n }\n\n // if we've fallen through, the hair colour string is valid\n return 1;\n}", "protected function _startsWith($str, $startswith)\n\t{\n\t\t$length = strlen($startswith);\n\t\t\n\t\treturn (substr($str, 0, $length)) == $startswith;\n\t}", "private function strStartsWith($string, $niddle)\n {\n return mb_strtolower(substr($string, 0, mb_strlen($niddle))) == mb_strtolower($niddle);\n }", "function check($word){\n\t \t$count = count($this->bwl);\n\t\tfor($i = 0;$i < $count;$i++){\n\t\t\tif( strpos($word, $this->bwl[$i]) !== FALSE) return true;\n\t\t}\n\t\treturn false;\n\t}", "function has_prefix($string, $prefix)\n {\n return substr($string, 0, strlen($prefix)) == $prefix;\n }", "public function getMessageType()\n { \n $this->_exploded_payload = explode(\"\\n\",$this->_payload);\n \n foreach($this->_exploded_payload as $line)\n {\n $exploded = explode(\"|\",$line);\n \n if($exploded[0] == 'MSH')\n {\n return($exploded[8]);\n }\n }\n }", "public function testStartsWithALetter()\n {\n $route = new Route(['Csíkszereda', 'Székelyudvarhely', 'Szentegyáza', 'Lövéte', 'Almás'], 1);\n\n $results = $route->startsWith('S');\n\n $this->assertCount(2, $results);\n $this->assertContains('Székelyudvarhely', $results);\n $this->assertContains('Szentegyáza', $results);\n\n // Empty array if passed even\n $this->assertEmpty($route->startsWith('U'));\n }", "function testStartsWith1 ()\n\t{\n\t\t\t$input1 = \"Barry\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}", "function prefixSign()\r\n {\r\n if ( $this->PrefixSign == 1 )\r\n return true;\r\n else\r\n return false;\r\n }", "public function check_head()\n {\n $this->get_token();\n \n if((strcasecmp($this->token,\".IPPcode19\") != 0) or ($this->get_line_len() != 0))\n {\n fwrite(STDERR, \"Error, expecting .IPPcode19 header! Line: \");\n fwrite(STDERR, $this->lineCount);\n fwrite(STDERR, \"\\n\");\n exit(21);\n }\n }", "function testLine ($str) {\r\n $testLineResult = TRUE;\r\n if (strlen($str) > 88) {\r\n $testLineResult = FALSE;\r\n } else if (!preg_match('/[0-9]{16}/',$str)) {\r\n $testLineResult = FALSE;\r\n }\r\n return $testLineResult;\r\n}", "function startSpecialChar($str = null){\n if ($str) {\n $firstChar =substr($str,0 ,1);\n if (preg_match('/[^a-zA-Z\\d]/', $firstChar)) {\n echo \"input starts with a Special Character<br>\";\n return true;\n }else\n return false;\n }\n}", "public function testStartsWith2()\n {\n $this->assertFalse(Str::startsWith('foo', 'y'));\n }", "function checkMyth($myth, $X_langArray) {\n\tglobal $errorField;\n\t\n\tif ( strlen($myth) > 0 && strlen($myth) < 10 ) {\n\t\t$errorField .= \"&mythErrMsg=\".urlencode($X_langArray['CREATE_COUNTRY_REV_MYTH_LENGTH_MIN_ERR']);\n\t}\n\tif ( strlen($myth) > 100 ) {\n\t\t$errorField .= \"&mythErrMsg=\".urlencode($X_langArray['CREATE_COUNTRY_REV_MYTH_LENGTH_MAX_ERR']);\n\t}\n}", "protected function isExist($word)\n {\n return (boolean) preg_match( \"/{$word}/i\", $this->excelRow->model_description);\n }", "function mPREFIX(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$PREFIX;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:101:3: ( 'prefix' ) \n // Tokenizer11.g:102:3: 'prefix' \n {\n $this->matchString(\"prefix\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "protected function validateShortUrl($code) \n\t{\n return preg_match(\"|[\" . self::$chars . \"]+|\", $code);\n }", "function checkSung()\n {\n return self::SUNG;\n }", "function strStartsWith($haystack,$needle){\n\n if(strlen($haystack)<strlen($needle)){\n return false;\n }\n $pos=stripos($haystack,$needle);\n if(!$pos||$post>0){\n return false;\n }\n return true;\n}", "private function is_malformed($data) {\r\n\r\n if( !in_array($data[0], array_keys($this->header_type)) ){\r\n $this->malformed_msg = \"The transaction type is not known\";\r\n return TRUE;\r\n }\r\n\r\n if( in_array($data[0], array(\"TRNS\", \"SPL\")) AND !in_array($data[1], $this->trnstype) ){\r\n $this->malformed_msg = \"The transaction is multi-line, but the sub-type (e.g. INVOICE, BILL, etc) is not known\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->flag_multi == FALSE AND ($data[0] == \"SPL\" || $data[0] == \"ENDTRNS\") ){\r\n $this->malformed_msg = \"The record is SPL or ENDTRNS, but didn't start with TRNS\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->array_count($data) > count($this->default_headers[$data[0]]) ){\r\n $this->malformed_msg = \"There are more elements in the record, \".count($data).\", than in the header, \".count($this->default_headers[$data[0]]);\r\n return TRUE;\r\n }\r\n\r\n //Check these conditions if not in the first record of the file\r\n if( isset($this->prior_record) ){\r\n if( $this->prior_record[0] == \"TRNS\" AND $data[0] !== \"SPL\" ){\r\n $this->malformed_msg = \"A TRNS record is not followed by an SPL record\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->prior_record[0] == \"SPL\" AND !in_array($data[0], array(\"SPL\", \"ENDTRNS\")) ){\r\n $this->malformed_msg = \"An SPL record is not followed by another SPL record or ENDTRNS\";\r\n return TRUE;\r\n }\r\n }\r\n \r\n //Reaching this point means that the record is not malformed\r\n return FALSE;\r\n }", "function verify($input) {\n\t$title = preg_replace(\"/FILE \\\"/\", '', $input);\n\t$title = preg_replace(\"/\\\".*$/\", '', $title);\n\n\t//checks if it starts with a number and space\n\t$num2 = \"/^\\d{2,3} /\";\n\t//checks for - after beginning number\n\t$character1 = \"/^\\d{2,3} -/\";\n\t//checks if character after whitespace is non-whitespace\n\t$character = \"/^\\d{2,3} \\s/\";\n\t//checks for all other special characters\n\t$special = \"/[~\\?\\*\\+\\[\\]\\(\\)\\{\\}\\^\\$\\|<>:;\\/\\\"]/\";\n\t//checks for ending in .wav\n\t$wav = \"/\\.wav/i\";\n\t//checks if name exists in directory\n\t$fileExists = file_exists($title);\n\n\t//checks backslash\n\tif(preg_match('/\\\\\\/', $title))\n\t\tplog(\"ERROR: has \\ in title\");\n\n\t//$num3 = \"/\\d\\d\\d /\";\n\telse if(!preg_match($num2, $title))\n\t\tplog(\"ERROR: does not start with a number followed by a space\");\n\n\t//$character2 = \"/\\d\\d\\d -/\";\n\telse if(preg_match($character1, $title))\n\t\tplog(\"ERROR: has - after number\");\n\n\telse if(preg_match($character, $title))\n\t\tplog(\"ERROR: two white spaces in a row\");\n\n\t//\"\n\telse if(preg_match($special, $title))\n\t\tplog(\"ERROR: invalid special character\");\n\n\telse if(!preg_match($wav,$title))\n\t\tplog(\"ERROR: does not end in .wav\");\n\n\telse if(!$fileExists){\n\t plog(\"ERROR: file does not exist\");\n\t}\n\n\telse{\n\t\treturn 0;\n\t}\n}", "function validate2(){\n\t\tif(strlen($this->code) != $this->BARCODE_LENGTH)\n\t\t{\n\t\t\t//echo 'Strlen('.strlen($this->code).')';\n\t\t\t$this->error = 'Barcode <strong>'.$this->code.'</strong> must be of length: '.$this->BARCODE_LENGTH;\n\t\t\treturn false;\n\t\t}\n\t\t$pos = strpos($this->code, $this->PREFIX);\n\t\t\n\t\tif ($pos === false) {\n\t\t $this->error = 'The prefix <strong>'.$this->PREFIX.'</strong> was not found in the barcode <strong>'.$this->code.'</strong>';\n\t\t return false;\n\t\t} \n\t\t\n\t\tif ($pos !== 0) {\n\t\t $this->error = 'The prefix of <strong>'.$this->code.'</strong> is not valid';\n\t\t return false;\n\t\t}\n\t\treturn true;\n\t}", "private function matchStartsWith(string $trigger, string $message, bool $caseless = false): bool\n {\n $trigger = $caseless ? Str::lower($trigger) : $trigger;\n $message = $this->prepareMessage($message, $caseless);\n\n return Str::startsWith($message, $trigger)\n && $this->matchContains($trigger, $message, $caseless);\n }", "function startsWith($haystack, $needle){\n $length = mb_strlen($needle);\n return (mb_substr($haystack, 0, $length) === $needle);\n}", "private function _startsWith($str, $piece) {\n return !!($piece === \"\" || strrpos($str, $piece, -strlen($str)) !== false);\n }", "static function stringStartsWith($prefix)\n {\n try {\n return call_user_func_array('PHPUnit_Framework_Assert::stringStartsWith', func_get_args());\n } catch (\\Exception $e) {\n self::callSlack($e, debug_backtrace()[1]);\n }\n }", "public static function isSHA1( $str ) {\n\t\treturn !!preg_match( '/^[0-9A-F]{40}$/i', $str );\n\t}", "public function hasTitle(){\n return $this->_has(37);\n }", "function aturan3($word = '')\n {\n if (substr($word, 0, 3) == 'ber' and preg_match('/^[aiueo]/', substr($word, 3, 1)) == 0 and substr($word, 3, 1) != 'r' and substr($word, 5, 2) == 'er' and preg_match('/^[aiueo]/', substr($word, 7, 1)) == 1) {\n return true;\n } else {\n return false;\n }\n }", "public function isShort()\n {\n return 1 == mb_strlen($this->name, mb_detect_encoding($this->name));\n }", "function starts_with(string $string, string $prefix, Encoding $encoding = Encoding::UTF_8): bool\n{\n /** @psalm-suppress MissingThrowsDocblock */\n return 0 === search($string, $prefix, 0, $encoding);\n}", "public function hasStart(){\n return $this->_has(2);\n }", "public function hasStart(){\n return $this->_has(2);\n }", "private final function CheckMhash()\r\n\t\t{\r\n\t\t\tif (!function_exists(\"mhash\"))\r\n\t\t\t\tCore::ThrowException(\"Cannot call mhash(). Mhash extension not installed?\", E_ERROR);\r\n\t\t}", "public function harSms() {\n return $this->har_sms;\n }", "public function beginsWithReturnsTrueForMatchingFirstPartDataProvider() {}", "public static function isSha1($input) {\n return preg_match(\"/^[a-f0-9]{40}$/\", strtolower($input));\n }", "public function hallticketexist($smuid) {\n $is_exist = $this->commodel->isduplicate('student_transfer','st_hallticketno',$smuid);\n\t//print_r($is_exist);\n if ($is_exist)\n {\n\t\t$this->form_validation->set_message('hallticketexist','Hall Ticket Number' .\" \".$smuid. \" \".'is already exist check your hall ticket number again.');\n return false;\n }\n else {\n return true;\n }\n }", "public static function BeginsWith(string $the_whole_string, string $the_little_test_string ): bool {\n return ( substr( $the_whole_string, 0, strlen( $the_little_test_string ) ) == $the_little_test_string );\n }", "function has_shortcode( $content ) {\n\n\t\t\tif ( false !== strpos( $content, '[' ) ) {\n\n\t\t\t\tpreg_match_all( '/' . get_shortcode_regex() . '/s', $content, $matches, PREG_SET_ORDER );\n\n\t\t\t\tif ( !empty( $matches ) ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "function mHAT_LABEL(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$HAT_LABEL;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:728:3: ( '^' ) \n // Tokenizer11.g:729:3: '^' \n {\n $this->matchChar(94); \n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function validateHomePhoneNumber($string){\n\tif($string == '') {return '';}\n\tif(!preg_match(\"/^\\d{10}$/\", $string)){\n\t\treturn 'Home phone number is invalid </br>';\n\t}\n\treturn '';\n}", "public function accept($text)\n {\n return strpos($text, ':20:STARTUMS') !== false;\n }", "public function hasMaelstromAuthorization() {\n return $this->_has(11);\n }" ]
[ "0.5710539", "0.55704784", "0.5515821", "0.52702594", "0.52346647", "0.5213967", "0.52129525", "0.5175965", "0.5145062", "0.5120785", "0.51142555", "0.5078676", "0.5045625", "0.50224847", "0.50110054", "0.50080854", "0.5003747", "0.49982417", "0.49601626", "0.495464", "0.49413866", "0.49274412", "0.492062", "0.49112648", "0.48971784", "0.489688", "0.48594183", "0.48583126", "0.4840352", "0.48361704", "0.4834623", "0.4834073", "0.4830719", "0.4822781", "0.48204696", "0.4820335", "0.48181462", "0.4815332", "0.4815131", "0.48126543", "0.47880462", "0.47823903", "0.47798854", "0.47652093", "0.47651368", "0.4763874", "0.4763335", "0.4760542", "0.47579882", "0.47537795", "0.47401795", "0.47399518", "0.47256458", "0.47243872", "0.47201496", "0.47192708", "0.47158122", "0.4714469", "0.47144598", "0.4703578", "0.47014347", "0.4700754", "0.47007155", "0.46973738", "0.4695277", "0.4694671", "0.46927673", "0.46853518", "0.46830234", "0.46755734", "0.4674519", "0.46635893", "0.46618697", "0.4657808", "0.46550253", "0.46547", "0.46489918", "0.46398735", "0.46368814", "0.46360955", "0.4630434", "0.46266386", "0.46197382", "0.46182477", "0.46180993", "0.4617731", "0.46131164", "0.46107212", "0.46107212", "0.46095845", "0.46079203", "0.4606174", "0.4604984", "0.4595216", "0.45903638", "0.45860648", "0.45827806", "0.4581364", "0.4581281", "0.45778206" ]
0.57447207
0
Version of your command
public function execute() { $message = $this->getMessage(); // Get Message object $chat_id = $message->getChat()->getId(); // Get the current Chat ID $nama = $message->getFrom()->getFirstName() .' '. $message->getFrom()->getLastName(); $text = "<b>Hai $nama</b>. Berikut ini list perintah yang dapat digunakan di bot Ilkom 2017 Reborn ini.\n\n"; $text .= "<b>Bot Command</b>\n"; $text .= "/start = Memulai Bot\n"; $text .= "/help = Menampilkan daftar perintah.\n"; $text .= "/about = Tentang Bot ini.\n\n"; $text .= "<b>Akademik dan Informasi</b>\n"; $text .= "/jadwal = Perintah untuk menampilkan Jadwal. Klik untuk lebih lanjut.\n"; $text .= "/info = Perintah menampilkan informasi umum.\n"; $text .= "/addinfo = Perintah untuk menambahkan informasi kepada yang lain.\n"; $text .= "/beasiswa = Perintah untuk menampilkan info beasiswa.\n"; $text .= "/addbeasiswa = Perintah untuk menambahkan informasi beasiswa kepada yang lain.\n\n"; $text .= "<b>Fitur</b>\n"; $text .= "/kbbi = Mencari definisi kata dari KBBI.\n"; $text .= "/github = Fitur pencarian di github.\n"; $text .= "/buku = Menacari buku seputar IT\n"; $text .= "/translate atau /tr = Terjemahan bahasa\n"; $text .= "/stack = Mencari postingan dari Stackoverflow\n\n"; $text .= "<b>Lainnya</b>\n"; $text .= "/pesan = Mengirim kritik dan saran ke Bot, bisa juga digunakan untuk request fitur misalnya.\n"; Request::sendChatAction([ 'chat_id'=> $chat_id, 'action' => 'typing' ]); $kirimpesan = [ 'chat_id' => $chat_id, 'parse_mode' => 'HTML', 'text' => $text ]; return Request::sendMessage($kirimpesan); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function version();", "public function version();", "public function version();", "public function version();", "public function version();", "public function get_version();", "public function getVersion(): string {}", "public function version(){\n WP_CLI::line( $this->version );\n }", "public function getVersion(): string;", "public function getVersion(): string;", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function getVersion();", "public function _version()\n {\n return \"SELECT version() AS ver\";\n }", "public function getVersion() {}", "public function getVersion() {}", "public function getVersion() {}", "public function getVersion() {}", "public function getVersion() {}", "public function latest_version();", "abstract public function version();", "abstract public function version();", "public function version()\n {\n\n }", "abstract public function get_version();", "abstract public function getVersion();", "abstract public function getVersion();", "abstract public function getVersion();", "abstract public function getVersion();", "public static function getVersion()\r\n {\r\n \t$i = self::getVersionInfo();\r\n \treturn trim(\"{$i['major']}.{$i['minor']}.{$i['revision']}\" . ($i['patch'] != '' ? \".{$i['patch']}\" : \"\")\r\n \t. \"-{$i['stability']}{$i['number']}\", '.-');\r\n }", "public function getVersion()\n\t{\n\t}", "private static function version()\n {\n $files = ['Version'];\n $folder = static::$root.'Foundation'.'/';\n\n self::call($files, $folder);\n }", "function version() \n {\n return \"@package_version@\";\n }", "function GetVersion()\n {\n return '1.0';\n }", "public function getCurrentVersion();", "function getVersion() {\r\n\t\treturn '1.1';\r\n\t}", "public function version()\n {\n return $this->git('describe --always --tags --dirty');\n }", "static public function get_Version()\n {\n $version = self::get_version_number();\n \n $build_num = self::get_build_number();\n \n return \"v{$version[2]}.{$version[1]}.{$build_num}\";\n }", "public static function Version() :string {\n\t\treturn self::VERSION;\n\t}", "public function version()\n {\n $this->sendCommand('VERSION');\n return trim($this->getResponse());\n }", "public static function Version(): string {\n\t\treturn self::VERSION;\n\t}", "public static function Version(): string {\n\t\treturn self::VERSION;\n\t}", "public static function version(): string\n {\n return static::VERSION;\n }", "public function get_version(): string\n {\n return $this->version;\n }", "public function version(): string\n {\n return static::VERSION;\n }", "function get_version() {\n return self::VERSION;\n }", "function get_version() {\n return self::VERSION;\n }", "public function getSpecifiedVersion();", "public function getVersion(): int;", "public function getVersion(): int;", "public function getVersion(): int;", "public function getVersion()\n\t{\n\t\treturn 'mounir';\n\t}", "function get_version() {\n\n\t\treturn $this->version;\n\n\t}", "public function getVersion(): string\n {\n return $this->version;\n }", "public function getVersion(): string\n {\n return $this->version;\n }", "public static function version()\n {\n if (! file_exists('.git')) {\n return '*no-git* (dirty)';\n }\n\n return preg_replace('/\\s+/', '', shell_exec('git describe --tag'));\n }", "function version() {\r\n return(\"4.0\");\r\n }", "public function getVersion() {\n\t\treturn '1.0';\n\t}", "public function get_version(){\n\n\t\t\tswitch( $this->method ){\n\n\t\t\t\tcase 'commit-message':\n\t\t\t\tdefault:\n\t\t\t\t\treturn $this->get_version_from_commit_message();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'file':\n\t\t\t\t\treturn $this->get_version_from_file();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 'tag':\n\t\t\t\t\treturn $this->get_version_from_tag();\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "public function get_version() { \n\n\t\treturn $this->version; \n\n\t}", "public function getVersion()\n {\n return \"1.0.0\";\n }", "public function getVersion(): string\n {\n $link = \"https://docs.phalcon.io/\"\n . Version::getPart(Version::VERSION_MAJOR)\n . \".\"\n . Version::getPart(Version::VERSION_MEDIUM)\n . \"/en/\";\n\n return '<div class=\"version\">Phalcon Framework '\n . '<a href=\"' . $link . '\" target=\"_new\">'\n . Version::get() . \"</a></div>\";\n }", "public function get_version() {\n\n\t\treturn '000001';\n\n\t}", "protected function getVersion()\n {\n return 'V1';\n }", "public function version()\n\t{\n\t\treturn static::$version;\n\t}", "public function getVersion()\n\t{\n\t\treturn '0.0.0';\n\t}", "public static function version()\n {\n return self::VERSION;\n }", "public function getVersion(): string\n {\n return $this->data->version;\n }", "public static function version(/* ... */)\n {\n return PRGGMR_VERSION;\n }", "public final function getVersion() : string\n {\n return $this->version;\n }", "public function getVersion() {\n\t\tif($this->version == \"\")\n\t\t$this->version = \"0.0.0\";\n\t\treturn $this->version;\n\t}", "public static function getVersion()\n {\n return '1.0.1';\n }", "public function version(): string\n {\n return Version::RELEASE;\n }", "public function version()\n {\n $sPARAMS = array( );\n $result = $this->_api(\"Version\", array($sPARAMS) );\n return($result->VersionResult);\n }", "public static function Version() {\n\t\treturn self::VERSION;\n\t}", "public static function Version() {\n\t\treturn self::VERSION;\n\t}", "public static function Version() {\n\t\treturn self::VERSION;\n\t}", "public function version() {\r\n return $this->VERSION;\r\n }", "public static function version()\r\n {\r\n return self::$version;\r\n }", "public function version() {\n return \"1.0\";\n }", "public function getVersion(){\n\t\treturn $this->version;\n\t}", "public function getVersionString() {\n\t\treturn sprintf('%d.%d.%d', self::VERSION_MAJOR, self::VERSION_MINOR, self::VERSION_BUILD);\n\t}", "public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }" ]
[ "0.73741", "0.73741", "0.73741", "0.73741", "0.73741", "0.72783965", "0.71641403", "0.7127084", "0.71138597", "0.71138597", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7110528", "0.7102681", "0.7062918", "0.7062918", "0.7062918", "0.7062918", "0.70625484", "0.70437133", "0.7029017", "0.7029017", "0.70077163", "0.6935696", "0.68697006", "0.68697006", "0.68697006", "0.68697006", "0.68028146", "0.67585504", "0.67318296", "0.66382706", "0.6635838", "0.6602941", "0.65579027", "0.6522345", "0.64879614", "0.64865726", "0.64854777", "0.64596564", "0.64596564", "0.64573634", "0.6451885", "0.6431911", "0.639571", "0.639571", "0.63671327", "0.63365674", "0.63365674", "0.63365674", "0.63287836", "0.6319922", "0.6316831", "0.6316831", "0.63161606", "0.63149434", "0.630395", "0.6282478", "0.62790954", "0.6277765", "0.6275137", "0.6255789", "0.6254338", "0.6252268", "0.6252221", "0.62494737", "0.62444407", "0.62427557", "0.6237167", "0.6236511", "0.62340987", "0.62311035", "0.6229822", "0.6213719", "0.6213719", "0.6213719", "0.6208335", "0.6191883", "0.61908066", "0.61896724", "0.6185294", "0.6176003" ]
0.0
-1
Current master table name
function getCurrentMasterTable() { return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_MASTER_TABLE]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_table_name(){\n return $this->table_name();\n }", "public function get_table_name()\n {\n return $this->prefix . $this->table;\n }", "public static function getTableName(){\n\t\treturn self::$table_name;\n\t}", "public function getTableName()\n\t{\n\t\treturn $this->getPrefix().$this->tableName;\n\t}", "public function getMainTableName()\n {\n return $this->main_table_name;\n }", "public function getTableName() {\n\t\treturn $this -> _name;\n\t}", "protected function getTableName()\n {\n return $this->database->getPrefix() . $this->table;\n }", "function table_name() {\n\t\tif ($this->table) {\n\t\t\treturn $this->table;\n\t\t} else {\n\t\t\treturn $this->_get_type();\n\t\t}\n\n\t}", "public static function getTableName()\n {\n return _DB_PREFIX_ . self::$definition['table'];\n }", "public function table_name()\n\t{\n\t\treturn $this->table_name;\n\t}", "private static function getDatabaseName() {\n return get_parent_class(static::getTableName());\n }", "public function getTableName()\n {\n return $this->__get(\"table_name\");\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "public function getTableName()\n {\n return $this->_name;\n }", "private static function get_table_name() {\n\n $class = get_called_class();\n\n return strtolower($class);\n\n }", "public function getTableName(){\r\n\t\treturn strtolower(get_class($this));\r\n\t}", "public static function get_table_name()\n {\n return self::TABLE_NAME;\n }", "protected function table () : string {\n return $this->guessName();\n }", "public function get_table_name() {\n return $this->table_name;\n }", "public static function getTableName()\n {\n return self::getDatabaseName() . '.' . self::NAME;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "protected function get_table_name() {\n\t\treturn Model::get_table_name( 'Indexable_Hierarchy' );\n\t}", "public function getTblName()\n {\n return $this->tbl_name;\n }", "public function getMasterTable() {\n if (!$this->MasterTable) {\n $sm = $this->getServiceLocator();\n $this->MasterTable = $sm->get('Api\\Model\\MasterTable');\n }\n return $this->MasterTable;\n }", "function get_table_name () {\r\n\t\treturn $this->wpdb->prefix . $this->_table_name;\r\n\t}", "function getMidTableName() {\n return $this->midTableName;\n }", "function getMidTableName() {\n return $this->midTableName;\n }", "public function table_name ()\n {\n return $this->app->table_names->entries;\n }", "function getTableName()\r\n\t{\r\n\t\tif ( $this->table == null ) return (null );\r\n\t\treturn( $this->table->table_name());\r\n\t}", "public function getTableName(): string\n {\n return $this->getEntityDao()->getTableName();\n }", "public function getTableName( )\n {\n return $this->table_name;\n }", "public function getTableName()\n {\n return $this->table_name;\n }", "public function getTableName(){\n\t\treturn $this->_table;\n\t}", "protected function getTableName(): string {\n return self::TABLE_NAME;\n }", "function get_table_name()\n {\n global $table_prefix;\n global $wpdb;\n $prefix = $table_prefix;\n if ($wpdb != null && $wpdb->prefix != null) {\n $prefix = $wpdb->prefix;\n }\n return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);\n }", "public function getTable(): string\n {\n return $this->prefix . $this->table;\n }", "public function getTableName()\n {\n return $this->parentTable->getName();\n }", "public static function getTableName() {\n return str_replace(\"-\", '_', self::getFolderName()) . 's';\n }", "function get_table_name() {\n\n\t\tglobal $wpdb;\n\n\t\treturn $wpdb->prefix . $this->table_name;\n\t}", "public function getIdentifier() : string {\r\n return $this->table;\r\n }", "private static function getTableName() {\n return get_called_class();\n }", "public function getTableName(): string\n {\n return $this->tableNames[0];\n }", "public function detailTableName() : string\n {\n return $this->detailTableName;\n }", "public function getCurrentTable()\n {\n return $this->table;\n }", "public function get_drivered_table_prefix()\n {\n global $SITE_INFO;\n return $SITE_INFO['mybb_table_prefix'];\n }", "protected static function table_name(): mixed\n\t{\n\t\treturn self::$query->table_name;\n\t}", "public static function tablename() {\n return self::TABLE;\n }", "public function getTableName() ;", "public static function get_db_table_name(){\n global $TFUSE;\n return $TFUSE->ext->seek->get_db_table_name();\n }", "protected static function get_table_name() {\n return null;\n }", "public function getTableKeyName()\r\n\t{\r\n\t\treturn \"id\".$this->getTableName();\r\n\t}", "public function getTableName(){\n\t\t $table = get_class($this);\n\t\treturn strtolower(substr($table, strripos($table, \"\\\\\")+1));\n\t}", "public function getTableName(){\n\t\treturn $this->tableName;\n\t}", "public function getTableKeyName()\n\t{\n\t\treturn \"id\".$this->getTableName();\n\t}", "public function table() {\n\t\treturn static::$table ?: strtolower(Str::plural(class_basename($this)));\n\t}", "public function getTableName() {}", "public function getTableName() {}", "public function table_prefix(){\n return $this->db->dbprefix;\n }", "public function getTableName()\n\t{\n\t\treturn $this->tableName;\n\t}", "public function getTable(): string\n {\n return $this->_table;\n }", "public static function getTableName() {\n return self::$tableName;\n }", "public function getTableName() {\n return $this->table;\n }", "public function _tablename() {\n if (isset($this->_table) && !isNull($this->_table)) {\n return $this->_table;\n } else {\n return camel_case_to_underscore(get_class($this));\n }\n }", "function getTableName(): string;", "public function getTableName(){\n return $this->tableName;\n }", "public function getTableName()\r\n {\r\n return $this->tableName;\r\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n\t{\n\t\treturn self::WORKFLOW_TABLES_PREFIX.$this->process;\n\t}", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "public function getTableName() {\n\t\treturn $this->tableName;\n\t}", "public function getTableName() {\n if (isset($this->table)) {\n return $this->table;\n } else return $this->name;\n }", "public function getTableName();", "public function getTableName();", "public function getTable(): string\n {\n return $this->table;\n }", "public function getTable(): string\n {\n return $this->table;\n }", "function getTableName() {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public function getTableName()\n {\n return $this->tableName;\n }", "public static function getTableName()\n {\n return self::getConfig()->get('scheme/tableName');\n }", "public static function getTableName()\n\t{\n\t\t//called from users, keyword self:: returns model\n\t\t// return self::$table;\n\t\t//called from users, keyword static:: returns users\n\t\treturn static::$table;\n\t}", "protected function table(): string\n {\n return $this->tableName;\n }", "public function getTable() {\n if ( isset( $this->table ) ) {\n return $this->table;\n }\n\n $table = str_replace( '\\\\', '', snake_case( str_plural( class_basename( $this ) ) ) );\n\n return $this->getConnection()->db->prefix . $table ;\n }", "public function getTableName(): string;", "public function getTableName(): string;", "public static function getTableName()\n {\n return ((new self)->getTable());\n }", "function get_table_name()\n {\n global $table_prefix;\n return $table_prefix . 'posts';\n }", "public function getTableName()\n {\n return $this->_tableName;\n }", "public function getTableSingular()\n {\n if (($table = Str::snake(class_basename($this))) == 'model' && $this->table) {\n $table = Str::singular($this->table);\n }\n\n return $table;\n }", "function getTableFullName()\n {\n return implode(' ', [$this->table_prefix . $this->table_name, $this->table_alias]);\n }", "public static function getTableName()\n {\n $type = static::getType();\n return $type::getTableName();\n }", "abstract public function getTableName();", "abstract public function getTableName();", "abstract public function getTableName();", "public function getTable(): string\n {\n return config('checklists.scaffolding.db_table');\n }", "public function getTablePrefix();" ]
[ "0.7543311", "0.74951786", "0.74380964", "0.74258244", "0.7424816", "0.742205", "0.74192744", "0.73911023", "0.7382169", "0.7380209", "0.73141974", "0.73082256", "0.7290244", "0.7290244", "0.7290244", "0.72881836", "0.7283893", "0.7270027", "0.72634614", "0.7249696", "0.7244916", "0.72362256", "0.72362256", "0.72362256", "0.7229326", "0.72120035", "0.7203741", "0.7203392", "0.71984315", "0.71984315", "0.7195616", "0.71897", "0.7180388", "0.71684515", "0.7164779", "0.7161367", "0.71485424", "0.7136954", "0.7135423", "0.7132772", "0.7130485", "0.71256244", "0.71162", "0.71143246", "0.7103065", "0.70865357", "0.7081701", "0.708128", "0.7081051", "0.7078861", "0.7062053", "0.7050907", "0.7049589", "0.7025825", "0.70238614", "0.70070505", "0.6997012", "0.6994947", "0.6990866", "0.6990866", "0.6990011", "0.69844437", "0.6975282", "0.697413", "0.6972711", "0.69672906", "0.69648427", "0.69641864", "0.6949822", "0.69393337", "0.69329494", "0.6932911", "0.6932911", "0.6924859", "0.6924426", "0.6924426", "0.69242024", "0.69242024", "0.6920974", "0.6916486", "0.6916486", "0.6916486", "0.6916486", "0.6901263", "0.6894602", "0.68893284", "0.68878496", "0.68876994", "0.68876994", "0.6879574", "0.68678033", "0.68644625", "0.6864349", "0.6858082", "0.68338037", "0.6828998", "0.6828998", "0.6828998", "0.6827396", "0.6823498" ]
0.81002384
0
Session master WHERE clause
function GetMasterFilter() { // Master filter $sMasterFilter = ""; if ($this->getCurrentMasterTable() == "t_gaji_master") { if ($this->gjm_id->getSessionValue() <> "") $sMasterFilter .= "`gjm_id`=" . ew_QuotedValue($this->gjm_id->getSessionValue(), EW_DATATYPE_NUMBER, "DB"); else return ""; } return $sMasterFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function user_where_clause() {}", "protected function getWhereClause() {}", "protected function getGeneralWhereClause() {}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tif ($this->CurrentFilter <> \"\") {\n\t\t\tif ($sFilter <> \"\") $sFilter = \"(\" . $sFilter . \") AND \";\n\t\t\t$sFilter .= \"(\" . $this->CurrentFilter . \")\";\n\t\t}\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),\n\t\t\t$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);\n\t}", "public function whereClause(){\n try {\n // Sparql11query.g:117:3: ( ( WHERE )? groupGraphPattern ) \n // Sparql11query.g:118:3: ( WHERE )? groupGraphPattern \n {\n // Sparql11query.g:118:3: ( WHERE )? \n $alt15=2;\n $LA15_0 = $this->input->LA(1);\n\n if ( ($LA15_0==$this->getToken('WHERE')) ) {\n $alt15=1;\n }\n switch ($alt15) {\n case 1 :\n // Sparql11query.g:118:3: WHERE \n {\n $this->match($this->input,$this->getToken('WHERE'),self::$FOLLOW_WHERE_in_whereClause412); \n\n }\n break;\n\n }\n\n $this->pushFollow(self::$FOLLOW_groupGraphPattern_in_whereClause415);\n $this->groupGraphPattern();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "function mWHERE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$WHERE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:156:3: ( 'where' ) \n // Tokenizer11.g:157:3: 'where' \n {\n $this->matchString(\"where\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function pk_where($binded=false) {\r\n\t\t$in = $this->session_vars;\r\n\t\t$pk_key = $this->pk_key ();\r\n\t\tfor($i = 0; $i < count ( $pk_key ); $i ++) {\r\n\t\t\tif ($in [$pk_key [$i]] != 'next') {\r\n\t\t\t\tif ($where != '')\r\n\t\t\t\t$where .= ' and ';\r\n\t\t\t\tif(!$binded) $where .= $pk_key [$i] . \"='\" . $in [$pk_key [$i]] . \"'\";\r\n\t\t\t\telse $where .= $pk_key [$i] . \"=:\" .$pk_key [$i] ;\r\n\t\t\t\t$bind[$pk_key [$i]]= $in [$pk_key [$i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\t$return['WHERE']=$where;\r\n\t\t$return['BIND']=$bind;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(!$binded) return $return['WHERE'];\r\n\t\telse return $return;\r\n\t}", "public function where()\n {\n return $this->query; \n }", "private function sql_whereAllItems()\n {\n $where = '1 ' .\n $this->sql_whereAnd_pidList() .\n $this->sql_whereAnd_enableFields() .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS() .\n $this->sql_whereAnd_sysLanguage();\n // Get WHERE statement\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function BasicSearchWhere() {\r\n\t\tglobal $Security, $fs_multijoin_v;\r\n\t\t$sSearchStr = \"\";\r\n\t\t$sSearchKeyword = $fs_multijoin_v->BasicSearchKeyword;\r\n\t\t$sSearchType = $fs_multijoin_v->BasicSearchType;\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$sSearch = trim($sSearchKeyword);\r\n\t\t\tif ($sSearchType <> \"\") {\r\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\r\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\r\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\r\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\r\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\r\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchKeyword($sSearchKeyword);\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchType($sSearchType);\r\n\t\t}\r\n\t\treturn $sSearchStr;\r\n\t}", "function BeforeQueryList(&$strSQL, &$strWhereClause, &$strOrderBy, &$pageObject)\n{\n\n\t\t$_SESSION[\"strWhereClause\"]=$strWhereClause;\n\n\n;\t\t\n}", "function query_finalize($instance){\r\n $instance->db->where(\"row_active\",1); \r\n}", "private function getUpdateableClause () {\n\t\t$where = new Where;\n\t\tforeach ($this->primaryKeys as $key) {\n\t\t\t$value = $this->retreive($key);\n\t\t\tif ($value){\n\t\t\t\t$where->equals($key, $this->retreive($key));\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"Primary key (\". $key .\") has no value!\");\n\t\t\t}\n\t\t}\n\n\t\treturn $where;\n\t}", "function userCanPerformSearch($sessionID, $table){\r\n\t\treturn $this->getAccessLevel() > 3;\r\n\t}", "private function sql_whereWiHits()\n {\n // Get WHERE statement\n $where = $this->pObj->objSqlInit->statements[ 'listView' ][ 'where' ] .\n $this->sql_whereAnd_Filter() .\n $this->sql_whereAnd_fromTS();\n // Localise the WHERE statement\n $where = $this->sql_whereWiHitsLL( $where );\n // RETURN WHERE statement without a WHERE\n return $where;\n }", "private function query() {\n return ApplicationSql::query($this->_select, $this->_table, $this->_join, $this->_where, $this->_order, $this->_group, $this->_limit, $this->_offset);\n }", "public function whereall() {\n\t\t\treturn 'id=id';\n\t\t}", "public function getWhereClause()\n {\n return $this->where_clause;\n }", "private function getSQLCondition() {\n\t\t// the manager can see everyone in the department\n\t\t// the admin and everybody else can see everyone in the company.\n\t\tswitch ($this->page->config['user_level']) {\n\t\t\tcase lu_manager:\n\t\t\tcase lu_employee:\n\t\t\tcase lu_admin:\n\t\t\t\t$sql = 'WHERE 1 = 2';\n\t\t\t\tbreak;\t//nobody below GM can access this subject\n\t\t\tcase lu_gm:\n\t\t\tcase lu_owner:\n\t\t\t\t$sql = ' WHERE c.company_id = '.$this->page->company['company_id'];\n\t\t}\n\t\treturn $sql;\n\t}", "public function scopeSession($query)\n {\n return $query->where('session_id', active_session()->id);\n\n }", "public function query() {\n $this->field_alias = $this->real_field;\n if (isset($this->definition['trovequery'])) {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }\n }", "function find_session($session) {\n global $db;\n\n if (isset($session)) {\n $sql = \"SELECT * FROM sessions WHERE session = :session;\";\n $params = array(\n ':session' => $session\n );\n $records = exec_sql_query($db, $sql, $params)->fetchAll();\n if ($records) {\n // Sessions is a unique field, so only 1 record should be selected.\n return $records[0];\n }\n }\n // if nothing is returned earlier, then return NULL\n return NULL;\n}", "function cek_login($table,$where){ \n return $this->db->get_where($table,$where);\n }", "abstract public function query();", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function filtrar(){\n\n \t\t$sql=\"select * from __________ where ;\";\n \t return $this->ejecutar($sql); \n\n }", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\t$expr = array_shift($args);\r\n\t\tarray_push($this->_wheres, '(' . $this->_parameterize($expr, $args) . ')');\r\n\t\t$this->_dirty = true;\r\n\t}", "public function findCriteria()\r\n\t{\n\t\t$result = $this -> connection -> setTable($this -> entity)\n\t\t\t\t\t\t\t\t\t -> fetch();\r\n\n\t\treturn $result;\r\n\t}", "function dbWhereVars() {\n\n foreach ($this->fields() as $f) {\n if ($this->$f === false) continue;\n $this->db->where($this->model.'.'.$f,$this->$f);\n }\n\n }", "public function buildConditionQuery()\n\t\t\t{\n\t\t\t\t$this->sql_condition = ' user_id='.$this->CFG['user']['user_id'];\n\t\t\t}", "public function andWhere() {\r\n\t\t$args = func_get_args();\r\n\t\t$statement = array_shift($args);\r\n\t\t//if ( (count($args) == 1) && (is_null($args[0])) ) {\r\n\t\t//\t$this->_wheres = array();\r\n\t\t//\treturn null;\r\n\t\t//}\r\n\t\t$criteria = new Dbi_Sql_Criteria($this, new Dbi_Sql_Expression($statement, $args));\r\n\t\t$this->_wheres[] = $criteria;\r\n\t\treturn $criteria;\r\n\t}", "private function Select()\n {\n $return = false;\n $action = $this->Action();\n $columns = $this->Columns();\n $table = $this->Table();\n $where = (Checker::isArray($this->Where(), false))?$this->Where():array(Where::QUERY => \"\", Where::VALUES => array());\n $order = (Checker::isString($this->Order()))?$this->Order():\"\";\n $limit = (Checker::isInt($this->Limit()))?\" LIMIT \".$this->Limit():\"\";\n if($columns && $table && Checker::isArray($where, false))\n {\n $return[Where::QUERY] = \"$action $columns FROM $table\".$where[Where::QUERY].\"$order$limit\";\n\n if(Checker::isArray($where, false) && isset($where[Where::VALUES])) $return[Where::VALUES] = $where[Where::VALUES];\n else $return[Where::VALUES] = array();\n }\n return $return;\n }", "public function getTableWhere() {}", "function setParamsToSaveQuery()\n {\n \n \n if($this->form->getQuery())\n {\n $stringTmp=$this->form->getQuery()->getSqlQuery();\n $stringTmp=substr($stringTmp, strpos($stringTmp,' FROM ' ));\n $stringTmp=substr($stringTmp, 0, strpos($stringTmp,' LIMIT ' ));\n $this->getUser()->setAttribute('queryToSaveWhere', $stringTmp);\n }\n \n if($this->form->getQuery()->getParams())\n {\n $stringTmp=\"\";\n $arrayTmp=$this->form->getQuery()->getParams();\n if(isset($arrayTmp['where']))\n {\n foreach($arrayTmp['where'] as $key=>$value)\n {\n $stringTmp.=\";|\".$value.\"|\";\n }\n $this->getUser()->setAttribute('queryToSaveParams', $stringTmp);\n }\n }\n return;\n }", "function query() {}", "public function where()\n {\n $args = func_get_args();\n $num_args = count($args);\n \n // Custom queries\n if ( $num_args == 2 && is_array($args[1]) )\n {\n $this->where = $args[0];\n $this->params = $args[1];\n }\n else\n {\n // AND equality condition\n if ( $num_args == 2 )\n {\n list($field, $value) = $args;\n $op = '=';\n }\n // AND with custom operation condition\n else\n {\n list($field, $op, $value) = $args;\n }\n $this->appendWhere('AND', $field, $op, $value); \n }\n return $this;\n }", "function BasicSearchWhere() {\n\t\tglobal $Security, $tbl_slide;\n\t\t$sSearchStr = \"\";\n\t\t$sSearchKeyword = $tbl_slide->BasicSearchKeyword;\n\t\t$sSearchType = $tbl_slide->BasicSearchType;\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$sSearch = trim($sSearchKeyword);\n\t\t\tif ($sSearchType <> \"\") {\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\n\t\t\t}\n\t\t}\n\t\tif ($sSearchKeyword <> \"\") {\n\t\t\t$tbl_slide->setSessionBasicSearchKeyword($sSearchKeyword);\n\t\t\t$tbl_slide->setSessionBasicSearchType($sSearchType);\n\t\t}\n\t\treturn $sSearchStr;\n\t}", "public function getQueryScope()\n {\n return $this->getQuery();\n }", "public function getQueryBy($param, $value)\r\n {\r\n return $this->db\r\n ->select('*')\r\n ->from('semestre s')\r\n ->where($param, $value)\r\n ->get();\r\n }", "function masterDataRows($sin) {\n $this->db_master->executeSQL(\"SELECT * from \" . $this->db_master->database . \".\" . $this->table_master . \" where \" . $this->idx_master . \" in (\" . $sin . \")\");\n }", "protected function getWhereClauseForEnabledFields() {}", "function getBooleanQuery(){\n return $this->_query;\n }", "function find_session($session)\n{\n global $db;\n if (isset($session)) {\n $sql = \"SELECT * FROM sessions WHERE session = :session;\";\n $params = array(':session' => $session);\n $sessions = exec_sql_query($db, $sql, $params)->fetchAll();\n if ($sessions) {\n return $sessions[0];\n }\n }\n return NULL;\n}", "public static function query();", "public function hook_query_index(&$query) {\n\t\t\t//Your code here\n\t\t\t// pr($query->toSql(),1);\t\t\t\n\t\t\tif(CRUDBooster::isSuperAdmin()){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t$user = getUser();\n\t\t\t$my_company = $this->my_company;\n\t\t\tif($user->company != $my_company){\n\t\t\t\treturn $query->where('supplier',$user->company);\n\t\t\t} else {\n\t\t\t\treturn $query->where('status','!=','draft');\n\t\t\t}\n\n\t }", "function cek_login($table,$where){\n\t\treturn $this->db->get_where($table,$where); //cek database\n\t}", "public abstract function get_query();", "function setQuery($where, $limit, $orderBy, $varName, $allowOrderByOveride=true) {\n $this->query_where = $where;\n if($this->getSessionVariable(\"query\", \"where\") != $where) {\n $this->query_where_has_changed = true;\n $this->setSessionVariable(\"query\", \"where\", $where);\n }\n\n $this->query_limit = $limit;\n if(!$allowOrderByOveride) {\n $this->query_orderby = $orderBy;\n return;\n }\n $this->getOrderBy($varName, $orderBy);\n\n $this->setLocalSessionVariable($varName, \"QUERY_WHERE\", $where);\n}", "public function where() {\r\n\t\t$args = func_get_args();\r\n\t\treturn call_user_func_array(array($this, 'andWhere'), $args);\r\n\t}", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function get_query()\n {\n }", "public function getWhere() {\r\n return $this->_where;\r\n }", "protected function sqlKeyFilter()\n\t{\n\t\treturn \"`id` = @id@\";\n\t}", "public function is_main_query()\n {\n }", "public function where(): Where\n {\n if (!isset($this->where)){\n $this->where = new Query\\Where($this, $this->driver, $this->topQuery);\n }\n return $this->where; \n }", "public function where($clause, array $params);", "public function query() {\n if (isset($this->value, $this->definition['trovequery'])) {\n $this->query->args['method'] = $this->definition['trovequery']['method'];\n if (is_array($this->value)) {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], implode($this->value, ','));\n }\n else {\n $this->query->add_where($this->options['group'], $this->definition['trovequery']['arg'], $this->value);\n }\n }\n }", "function query() {\n // Don't filter if we're exposed and the checkbox isn't selected.\n\n if ((!empty($this->options['exposed'])) && empty($this->value)) {\n return;\n }\n if (!$this->options['exposed']) {\n $value = $this->options['uid'];\n }\n else {\n $value = $this->validated_exposed_input[0];\n }\n\n\n $this->ensure_my_table();\n\n\n $table = 'scheduling_appointments';\n //$field1 = $this->query->add_field($table, 'nid');\n //$field2 = $this->query->add_field($table, 'title');\n\n\n //$field1 = $table . '.nid';\n //$field2 = $table . '.title';\n if ($value != '') {\n $this->query->add_where(\n $this->options['group'],\n db_and()\n ->condition($table . '.uid', $value, '=')\n );\n }\n }", "private function getMentorshipSessionsByCriteria(array $filters) {\n if((!isset($filters['mentorName']) || $filters['mentorName'] === \"\") &&\n (!isset($filters['menteeName']) || $filters['menteeName'] === \"\") &&\n (!isset($filters['statusId']) || $filters['statusId'] === \"\") &&\n (!isset($filters['startedDateRange']) || $filters['startedDateRange'] === \"\") &&\n (!isset($filters['completedDateRange']) || $filters['completedDateRange'] === \"\") &&\n (!isset($filters['accountManagerId']) || $filters['accountManagerId'] === \"\") &&\n (!isset($filters['matcherId']) || $filters['matcherId'] === \"\")) {\n return $this->mentorshipSessionStorage->getAllMentorshipSessions();\n }\n $whereClauseExists = false;\n $dbQuery = \"select distinct ms.id from mentorship_session as ms left outer join mentor_profile as \n mentor on mentor.id = ms.mentor_profile_id left outer join mentee_profile as mentee on \n mentee.id = ms.mentee_profile_id \";\n if(isset($filters['completedDateRange']) && $filters['completedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['completedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $mentorshipSessionStatuses = new MentorshipSessionStatuses();\n $dbQuery .= \"inner join \n (select msh.mentorship_session_id ,\n msh.status_id, msh.created_at as LastSessionStatus from \n mentorship_session_history msh inner join\n (\n select mentorship_session_id, \n max(id) as last_mentorship_session_history_id\n from mentorship_session_history as msh\n group by mentorship_session_id\n ) LastSessionHistoryRecord on LastSessionHistoryRecord.last_mentorship_session_history_id = msh.id\n where msh.status_id in (\" . implode(\",\", $mentorshipSessionStatuses::getCompletedSessionStatuses()) . \") \n and (msh.created_at >= date(\\\"\" . $start . \"\\\") and msh.created_at <= date(\\\"\" . $end . \"\\\"))\n ) as completed_sessions on ms.id = completed_sessions.mentorship_session_id \";\n }\n if((isset($filters['mentorName']) && $filters['mentorName'] !== \"\") ||\n (isset($filters['menteeName']) && $filters['menteeName'] !== \"\") ||\n (isset($filters['statusId']) && $filters['statusId'] !== \"\") ||\n (isset($filters['startedDateRange']) && $filters['startedDateRange'] !== \"\") ||\n (isset($filters['accountManagerId']) && $filters['accountManagerId'] !== \"\") ||\n (isset($filters['matcherId']) && $filters['matcherId'] !== \"\")) {\n $dbQuery .= \"where \";\n }\n if(isset($filters['mentorName']) && $filters['mentorName'] != \"\") {\n $dbQuery .= \"(mentor.first_name like '%\" . $filters['mentorName'] . \"%' or mentor.last_name like '%\" . $filters['mentorName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['menteeName']) && $filters['menteeName'] != \"\") {\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(mentee.first_name like '%\" . $filters['menteeName'] . \"%' or mentee.last_name like '%\" . $filters['menteeName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['statusId']) && $filters['statusId'] != \"\") {\n if(intval($filters['statusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id = \" . $filters['statusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['startedDateRange']) && $filters['startedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['startedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(ms.created_at >= date('\" . $start. \"') and ms.created_at <= date('\" . $end . \"')) \";\n $whereClauseExists = true;\n }\n if(isset($filters['accountManagerId']) && $filters['accountManagerId'] != \"\") {\n if(intval($filters['accountManagerId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.account_manager_id = \" . $filters['accountManagerId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['matcherId']) && $filters['matcherId'] != \"\") {\n if(intval($filters['matcherId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.matcher_id = \" . $filters['matcherId'] . \" \";\n }\n $filteredMentorshipSessionsIds = RawQueriesResultsModifier::transformRawQueryStorageResultsToOneDimensionalArray(\n (new RawQueryStorage())->performRawQuery($dbQuery)\n );\n return $this->mentorshipSessionStorage->getMentorshipSessionsFromIdsArray($filteredMentorshipSessionsIds);\n }", "abstract protected function getQuery();", "private function getSQLCondition() {\n\t\t// the manager can see everyone in the department\n\t\t// the admin and everybody else can see everyone in the company.\n\t\tswitch ($this->page->config['user_level']) {\n\t\t\tcase lu_manager:\n\t\t\tcase lu_employee:\n\t\t\tcase lu_admin:\n\t\t\tcase lu_gm:\n\t\t\tcase lu_owner:\n\t\t\t\t$sql = ' WHERE l.company_id = '.$this->page->company['company_id'];\n\t\t}\n\t\treturn $sql;\n\t}", "public function getWhereSQL()\n {\n return \" AND \" . $this->field_where_name . \" LIKE '%\" . $this->field_row->criteria . \"%' \";\n \n }", "function userCanQueryDatabase( $sessionID ) {\r\n\t\treturn FALSE;\r\n\t}", "function tck_admin_list_where($where) {\n if ( isset($_GET['custom_filter']) ) {\n $mode = $_GET['custom_filter'];\n \n if ( $mode == 1 ) $where .= ' AND `' . TCK_COLUMN . '` = 0';\n if ( $mode == 2 ) $where .= ' AND `' . TCK_COLUMN . '` = 1';\n }\n \n return $where;\n }", "function getWhere() {\n return $this->where;\n }", "public function getSubQuery() {\r\n\t\t$subQuery = $this->_salt_obj->query();\r\n\t\t$subQuery->_salt_alias = $this->_salt_alias;\r\n\t\treturn $subQuery;\r\n\t}", "function getJoinCondition() ;", "private function sql_whereAnd_fromTS()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Get TS value\n $andWhere = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'sql.' ][ 'andWhere' ];\n\n if ( !empty( $andWhere ) )\n {\n $andWhere = \" AND \" . $andWhere;\n }\n\n // RETURN AND WHERE statement\n return $andWhere;\n }", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_identification\n\t\t\t\tWHERE idf_id=?\";\n\t\t$this->db->query($sql, array($this->idf_id));\n\t\treturn $query;\n\t}", "function SqlKeyFilter() {\n\t\treturn \"`rid` = @rid@\";\n\t}", "private function setQuery($sql){\n $this->isStatement = false;\n return $this->sqli->query($sql);\n }", "public function getViaTableCondition();", "public static function where($config)\n\t{\n\t\treturn self::new_instance_records()->where($config);\n\t}", "function start_group_where($key,$value=NULL,$escape=TRUE,$type=\"AND\")\n {\n $this->open_bracket($type); \n return parent::_where($key, $value,'',$escape); \n }", "public function getWhere() {\n return $this->_where ?: new Predicate(Predicate::ALSO);\n }", "protected function query() {\n $query = Database::getConnection('default', $this->sourceConnection)\n ->select('og_uid', 'ogu')\n // we have a user 0 here for some stupid reason\n ->condition('uid', 0, '>')\n ->fields('ogu', array('nid', 'is_active', 'is_admin', 'uid'));\n return $query;\n }", "public function scopeFindBySession($query, $session)\n {\n return $query\n ->whereSessionToken($session['token'])\n ->find($session['id']);\n }", "private function getMentorshipSessionsByCriteria(array $filters) {\n if((!isset($filters['mentorName']) || $filters['mentorName'] === \"\") &&\n (!isset($filters['menteeName']) || $filters['menteeName'] === \"\") &&\n (!isset($filters['startStatusId']) || $filters['startStatusId'] === \"\") &&\n (!isset($filters['endStatusId']) || $filters['endStatusId'] === \"\") &&\n (!isset($filters['startedDateRange']) || $filters['startedDateRange'] === \"\") &&\n (!isset($filters['completedDateRange']) || $filters['completedDateRange'] === \"\") &&\n (!isset($filters['accountManagerId']) || $filters['accountManagerId'] === \"\") &&\n (!isset($filters['matcherId']) || $filters['matcherId'] === \"\") &&\n (!isset($filters['userRole']) || $filters['userRole'] === \"\")) {\n return $this->mentorshipSessionStorage->getAllMentorshipSessions();\n }\n $whereClauseExists = false;\n $dbQuery = \"select distinct ms.id from mentorship_session as ms left outer join mentor_profile as \n mentor on mentor.id = ms.mentor_profile_id left outer join mentee_profile as mentee on \n mentee.id = ms.mentee_profile_id \";\n if(isset($filters['completedDateRange']) && $filters['completedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['completedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $mentorshipSessionStatuses = new MentorshipSessionStatuses();\n $dbQuery .= \"inner join \n (select msh.mentorship_session_id ,\n msh.status_id, msh.created_at as LastSessionStatus from \n mentorship_session_history msh inner join\n (\n select mentorship_session_id, \n max(id) as last_mentorship_session_history_id\n from mentorship_session_history as msh\n group by mentorship_session_id\n ) LastSessionHistoryRecord on LastSessionHistoryRecord.last_mentorship_session_history_id = msh.id\n where msh.status_id in (\" . implode(\",\", $mentorshipSessionStatuses::getCompletedSessionStatuses()) . \") \n and (msh.created_at >= date(\\\"\" . $start . \"\\\") and msh.created_at <= date(\\\"\" . $end . \"\\\"))\n ) as completed_sessions on ms.id = completed_sessions.mentorship_session_id \";\n }\n if((isset($filters['mentorName']) && $filters['mentorName'] !== \"\") ||\n (isset($filters['menteeName']) && $filters['menteeName'] !== \"\") ||\n (isset($filters['startStatusId']) && $filters['startStatusId'] !== \"\") ||\n (isset($filters['endStatusId']) && $filters['endStatusId'] !== \"\") ||\n (isset($filters['startedDateRange']) && $filters['startedDateRange'] !== \"\") ||\n (isset($filters['accountManagerId']) && $filters['accountManagerId'] !== \"\") ||\n (isset($filters['matcherId']) && $filters['matcherId'] !== \"\") ||\n (isset($filters['userRole']) && $filters['userRole'] !== \"\")) {\n $dbQuery .= \"where \";\n }\n if(isset($filters['mentorName']) && $filters['mentorName'] != \"\") {\n $dbQuery .= \"(mentor.first_name like '%\" . $filters['mentorName'] . \"%' or mentor.last_name like '%\" . $filters['mentorName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['menteeName']) && $filters['menteeName'] != \"\") {\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(mentee.first_name like '%\" . $filters['menteeName'] . \"%' or mentee.last_name like '%\" . $filters['menteeName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['startStatusId']) && $filters['startStatusId'] != \"\") {\n if(intval($filters['startStatusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id >= \" . $filters['startStatusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['endStatusId']) && $filters['endStatusId'] != \"\") {\n if(intval($filters['endStatusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id <= \" . $filters['endStatusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['startedDateRange']) && $filters['startedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['startedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(ms.created_at >= date('\" . $start. \"') and ms.created_at <= date('\" . $end . \"')) \";\n $whereClauseExists = true;\n }\n if(isset($filters['accountManagerId']) && $filters['accountManagerId'] != \"\") {\n if(intval($filters['accountManagerId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.account_manager_id = \" . $filters['accountManagerId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['matcherId']) && $filters['matcherId'] != \"\") {\n if(intval($filters['matcherId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.matcher_id = \" . $filters['matcherId'] . \" \";\n $whereClauseExists = true;\n }\n // check user role\n if (isset($filters['userRole']) && $filters['userRole'] != \"\") {\n if ($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n if ($filters['userRole'] == 'account_manager') {\n $dbQuery .= \"ms.account_manager_id=\" . Auth::id();\n } else {\n $dbQuery .= \"ms.matcher_id=\" . Auth::id();\n }\n $dbQuery .= \" \";\n $whereClauseExists = true;\n }\n $filteredMentorshipSessionsIds = RawQueriesResultsModifier::transformRawQueryStorageResultsToOneDimensionalArray(\n (new RawQueryStorage())->performRawQuery($dbQuery)\n );\n return $this->mentorshipSessionStorage->getMentorshipSessionsFromIdsArray($filteredMentorshipSessionsIds);\n }", "function find_session($db, $session)\n{\n if (isset($session)) {\n $records = exec_sql_query(\n $db,\n \"SELECT * FROM sessions WHERE session = :session;\",\n array(':session' => $session)\n )->fetchAll();\n if ($records) {\n // sessions are unique, so there should only be 1 record\n return $records[0];\n }\n }\n return NULL;\n}", "public function getWhere()\n {\n return $this->where;\n }", "public function searchWithCriteria(){\n\n\n //change default message for required rule\n $this->unsetSessionData();\n $this->setSessionData();\n\n\n if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])){\n $this->searchByLocationAndDay();\n }else if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])==FALSE){\n $this->searchByLocation();\n }else if(isset($_SESSION['searchKeyword'])==FALSE && isset($_SESSION['timecon'])){\n $this->searchByCalendar();\n }\n }", "public function getWhere()\n\t{\n\t\tif(empty($this->sWhere))\n\t\t{\n\t\t\treturn 'TRUE';\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->sWhere;\n\t\t}\n\t}", "public function beforeFind(EventInterface $event, Query $query, ArrayObject $options, $primary)\n\t{\n // $query->iterateClause(function($val) {\n // if($val->getField()){\n // dump($val->getField());\n // }\n \n // }); \n //dd($conds);\n // dd($query->clause('where'));\n $model = $this->_table->getAlias();\n\t $query->where([$model.'.listing_id' => \\Cake\\Core\\Configure::read('LISTING_ID')]);\n\t}", "function get_user_clause($table_alias) {\n\t\t$table_alias = ( $table_alias ) ? \"$table_alias.\" : '';\n\t\t\n\t\tif ( GROUP_ROLES_RS && defined( 'SCOPER_ANON_METAGROUP' ) )\n\t\t\treturn \" AND {$table_alias}group_id IN ('\" . implode(\"', '\", array_keys($this->groups) ) . \"')\";\n\t\telse\n\t\t\treturn \" AND {$table_alias}user_id = '-1'\"; // use -1 here to ignore accidental storage of other groups for zero user_id\n\t}", "function getDataRowWhere($table,$fields = null,$where = null,$order = null) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadObject();\r\n\t}", "public function where($column, $operator = null, $value = null, $boolean = 'and');", "public function getWhereClauseForEnabledFieldsIncludesDeletedCheckInBackend() {}", "protected function defineActiveMembershipsQuery()\n {\n return $this->createQueryBuilder()\n ->where('m.enabled = :true')\n ->setParameter('true', true);\n }", "function accesrestreint_rubriques_accessibles_where($primary,$not='NOT', $_publique=''){\r\n\tif (!$_publique) $_publique = \"!test_espace_prive()\";\r\n\treturn \"sql_in('$primary', accesrestreint_liste_rubriques_exclues($_publique), '$not')\";\r\n}" ]
[ "0.67020375", "0.62678784", "0.6007513", "0.5918809", "0.5824745", "0.5732715", "0.5726354", "0.57041", "0.570399", "0.5670287", "0.5550721", "0.5550721", "0.5435689", "0.5404691", "0.5402888", "0.534776", "0.5326228", "0.5299321", "0.52848995", "0.52790993", "0.52652276", "0.5239105", "0.522065", "0.5214515", "0.52144784", "0.5212495", "0.5209945", "0.5203414", "0.5203414", "0.52026594", "0.5166375", "0.5156775", "0.51345515", "0.513306", "0.51318544", "0.51291674", "0.51003814", "0.50978076", "0.5092118", "0.5086988", "0.50855094", "0.507384", "0.50737065", "0.5066859", "0.5066421", "0.5063129", "0.50611275", "0.5051566", "0.50419843", "0.50348634", "0.50303376", "0.5030272", "0.5025044", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5022284", "0.5016212", "0.501044", "0.5006969", "0.49897385", "0.49886656", "0.4984874", "0.49813408", "0.49691954", "0.49652332", "0.49647737", "0.49622613", "0.49596974", "0.4958166", "0.49525815", "0.49413177", "0.49360934", "0.49356046", "0.4934638", "0.49288076", "0.492844", "0.49263847", "0.4924248", "0.4924022", "0.4916278", "0.49146882", "0.49065307", "0.49063978", "0.49059808", "0.49003702", "0.49001715", "0.48967272", "0.48965994", "0.48811343", "0.4880771", "0.4880607", "0.4879096", "0.48752248", "0.48738715" ]
0.5079116
41
Session detail WHERE clause
function GetDetailFilter() { // Detail filter $sDetailFilter = ""; if ($this->getCurrentMasterTable() == "t_gaji_master") { if ($this->gjm_id->getSessionValue() <> "") $sDetailFilter .= "`gjm_id`=" . ew_QuotedValue($this->gjm_id->getSessionValue(), EW_DATATYPE_NUMBER, "DB"); else return ""; } return $sDetailFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSessionInActiveTabObservation()\n {\n $id = Yii::app()->user->idUser;\n $result = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, name, title, description, s.datePost,\n s.dateCreate, s.idSession, COUNT(DISTINCT(a.idArchive)) AS numArchive,s.active, s.idUserCreate\n FROM sessions AS s\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic\n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (i.idUserInvited = :idUserInvited OR s.idUserCreate = :idUserCreate) AND ((s.datePost+ INTERVAL 1 DAY) >= Now())\n AND (t.active = 1) AND s.active = 1 AND (i.isJoined = 1 OR s.idUserCreate = :idUserCreate)\n GROUP BY s.idSession\n ORDER BY s.active desc, s.datePost desc')\n ->bindValues(array(':idUserInvited' => $id, ':idUserCreate' => $id))\n ->queryAll();\n return $result;\n }", "protected function user_where_clause() {}", "public function getSessionInPlannedTabObservation()\n {\n $id = Yii::app()->user->idUser;\n $sessionPlanned = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, name, title, description, s.datePost,\n s.dateCreate, s.idSession, COUNT(DISTINCT(a.idArchive)) AS numArchive,s.active, s.idUserCreate\n FROM sessions AS s\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic\n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (i.idUserInvited = :idUserInvited OR s.idUserCreate = :idUserCreate) AND ((s.datePost+ INTERVAL 1 DAY) >= Now())\n AND (t.active = 1) AND s.active = 0\n GROUP BY s.idSession\n ORDER BY s.active desc, s.dateCreate desc')\n ->bindValues(array(':idUserInvited' => $id, ':idUserCreate' => $id))\n ->queryAll();\n return $sessionPlanned;\n }", "protected function getWhereClause() {}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tif ($this->CurrentFilter <> \"\") {\n\t\t\tif ($sFilter <> \"\") $sFilter = \"(\" . $sFilter . \") AND \";\n\t\t\t$sFilter .= \"(\" . $this->CurrentFilter . \")\";\n\t\t}\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),\n\t\t\t$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);\n\t}", "private function getMentorshipSessionsByCriteria(array $filters) {\n if((!isset($filters['mentorName']) || $filters['mentorName'] === \"\") &&\n (!isset($filters['menteeName']) || $filters['menteeName'] === \"\") &&\n (!isset($filters['statusId']) || $filters['statusId'] === \"\") &&\n (!isset($filters['startedDateRange']) || $filters['startedDateRange'] === \"\") &&\n (!isset($filters['completedDateRange']) || $filters['completedDateRange'] === \"\") &&\n (!isset($filters['accountManagerId']) || $filters['accountManagerId'] === \"\") &&\n (!isset($filters['matcherId']) || $filters['matcherId'] === \"\")) {\n return $this->mentorshipSessionStorage->getAllMentorshipSessions();\n }\n $whereClauseExists = false;\n $dbQuery = \"select distinct ms.id from mentorship_session as ms left outer join mentor_profile as \n mentor on mentor.id = ms.mentor_profile_id left outer join mentee_profile as mentee on \n mentee.id = ms.mentee_profile_id \";\n if(isset($filters['completedDateRange']) && $filters['completedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['completedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $mentorshipSessionStatuses = new MentorshipSessionStatuses();\n $dbQuery .= \"inner join \n (select msh.mentorship_session_id ,\n msh.status_id, msh.created_at as LastSessionStatus from \n mentorship_session_history msh inner join\n (\n select mentorship_session_id, \n max(id) as last_mentorship_session_history_id\n from mentorship_session_history as msh\n group by mentorship_session_id\n ) LastSessionHistoryRecord on LastSessionHistoryRecord.last_mentorship_session_history_id = msh.id\n where msh.status_id in (\" . implode(\",\", $mentorshipSessionStatuses::getCompletedSessionStatuses()) . \") \n and (msh.created_at >= date(\\\"\" . $start . \"\\\") and msh.created_at <= date(\\\"\" . $end . \"\\\"))\n ) as completed_sessions on ms.id = completed_sessions.mentorship_session_id \";\n }\n if((isset($filters['mentorName']) && $filters['mentorName'] !== \"\") ||\n (isset($filters['menteeName']) && $filters['menteeName'] !== \"\") ||\n (isset($filters['statusId']) && $filters['statusId'] !== \"\") ||\n (isset($filters['startedDateRange']) && $filters['startedDateRange'] !== \"\") ||\n (isset($filters['accountManagerId']) && $filters['accountManagerId'] !== \"\") ||\n (isset($filters['matcherId']) && $filters['matcherId'] !== \"\")) {\n $dbQuery .= \"where \";\n }\n if(isset($filters['mentorName']) && $filters['mentorName'] != \"\") {\n $dbQuery .= \"(mentor.first_name like '%\" . $filters['mentorName'] . \"%' or mentor.last_name like '%\" . $filters['mentorName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['menteeName']) && $filters['menteeName'] != \"\") {\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(mentee.first_name like '%\" . $filters['menteeName'] . \"%' or mentee.last_name like '%\" . $filters['menteeName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['statusId']) && $filters['statusId'] != \"\") {\n if(intval($filters['statusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id = \" . $filters['statusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['startedDateRange']) && $filters['startedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['startedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(ms.created_at >= date('\" . $start. \"') and ms.created_at <= date('\" . $end . \"')) \";\n $whereClauseExists = true;\n }\n if(isset($filters['accountManagerId']) && $filters['accountManagerId'] != \"\") {\n if(intval($filters['accountManagerId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.account_manager_id = \" . $filters['accountManagerId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['matcherId']) && $filters['matcherId'] != \"\") {\n if(intval($filters['matcherId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.matcher_id = \" . $filters['matcherId'] . \" \";\n }\n $filteredMentorshipSessionsIds = RawQueriesResultsModifier::transformRawQueryStorageResultsToOneDimensionalArray(\n (new RawQueryStorage())->performRawQuery($dbQuery)\n );\n return $this->mentorshipSessionStorage->getMentorshipSessionsFromIdsArray($filteredMentorshipSessionsIds);\n }", "private function getMentorshipSessionsByCriteria(array $filters) {\n if((!isset($filters['mentorName']) || $filters['mentorName'] === \"\") &&\n (!isset($filters['menteeName']) || $filters['menteeName'] === \"\") &&\n (!isset($filters['startStatusId']) || $filters['startStatusId'] === \"\") &&\n (!isset($filters['endStatusId']) || $filters['endStatusId'] === \"\") &&\n (!isset($filters['startedDateRange']) || $filters['startedDateRange'] === \"\") &&\n (!isset($filters['completedDateRange']) || $filters['completedDateRange'] === \"\") &&\n (!isset($filters['accountManagerId']) || $filters['accountManagerId'] === \"\") &&\n (!isset($filters['matcherId']) || $filters['matcherId'] === \"\") &&\n (!isset($filters['userRole']) || $filters['userRole'] === \"\")) {\n return $this->mentorshipSessionStorage->getAllMentorshipSessions();\n }\n $whereClauseExists = false;\n $dbQuery = \"select distinct ms.id from mentorship_session as ms left outer join mentor_profile as \n mentor on mentor.id = ms.mentor_profile_id left outer join mentee_profile as mentee on \n mentee.id = ms.mentee_profile_id \";\n if(isset($filters['completedDateRange']) && $filters['completedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['completedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $mentorshipSessionStatuses = new MentorshipSessionStatuses();\n $dbQuery .= \"inner join \n (select msh.mentorship_session_id ,\n msh.status_id, msh.created_at as LastSessionStatus from \n mentorship_session_history msh inner join\n (\n select mentorship_session_id, \n max(id) as last_mentorship_session_history_id\n from mentorship_session_history as msh\n group by mentorship_session_id\n ) LastSessionHistoryRecord on LastSessionHistoryRecord.last_mentorship_session_history_id = msh.id\n where msh.status_id in (\" . implode(\",\", $mentorshipSessionStatuses::getCompletedSessionStatuses()) . \") \n and (msh.created_at >= date(\\\"\" . $start . \"\\\") and msh.created_at <= date(\\\"\" . $end . \"\\\"))\n ) as completed_sessions on ms.id = completed_sessions.mentorship_session_id \";\n }\n if((isset($filters['mentorName']) && $filters['mentorName'] !== \"\") ||\n (isset($filters['menteeName']) && $filters['menteeName'] !== \"\") ||\n (isset($filters['startStatusId']) && $filters['startStatusId'] !== \"\") ||\n (isset($filters['endStatusId']) && $filters['endStatusId'] !== \"\") ||\n (isset($filters['startedDateRange']) && $filters['startedDateRange'] !== \"\") ||\n (isset($filters['accountManagerId']) && $filters['accountManagerId'] !== \"\") ||\n (isset($filters['matcherId']) && $filters['matcherId'] !== \"\") ||\n (isset($filters['userRole']) && $filters['userRole'] !== \"\")) {\n $dbQuery .= \"where \";\n }\n if(isset($filters['mentorName']) && $filters['mentorName'] != \"\") {\n $dbQuery .= \"(mentor.first_name like '%\" . $filters['mentorName'] . \"%' or mentor.last_name like '%\" . $filters['mentorName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['menteeName']) && $filters['menteeName'] != \"\") {\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(mentee.first_name like '%\" . $filters['menteeName'] . \"%' or mentee.last_name like '%\" . $filters['menteeName'] . \"%') \";\n $whereClauseExists = true;\n }\n if(isset($filters['startStatusId']) && $filters['startStatusId'] != \"\") {\n if(intval($filters['startStatusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id >= \" . $filters['startStatusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['endStatusId']) && $filters['endStatusId'] != \"\") {\n if(intval($filters['endStatusId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.status_id <= \" . $filters['endStatusId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['startedDateRange']) && $filters['startedDateRange'] != \"\") {\n $dateRange = explode(\" - \", $filters['startedDateRange']);\n $dateArray = explode(\"/\", $dateRange[0]);\n $start = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n $dateArray = explode(\"/\", $dateRange[1]);\n $end = $dateArray[2] . \"-\" . $dateArray[1] . \"-\" . $dateArray[0];\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"(ms.created_at >= date('\" . $start. \"') and ms.created_at <= date('\" . $end . \"')) \";\n $whereClauseExists = true;\n }\n if(isset($filters['accountManagerId']) && $filters['accountManagerId'] != \"\") {\n if(intval($filters['accountManagerId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.account_manager_id = \" . $filters['accountManagerId'] . \" \";\n $whereClauseExists = true;\n }\n if(isset($filters['matcherId']) && $filters['matcherId'] != \"\") {\n if(intval($filters['matcherId']) == 0) {\n throw new \\Exception(\"Filter value is not valid.\");\n }\n if($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n $dbQuery .= \"ms.matcher_id = \" . $filters['matcherId'] . \" \";\n $whereClauseExists = true;\n }\n // check user role\n if (isset($filters['userRole']) && $filters['userRole'] != \"\") {\n if ($whereClauseExists) {\n $dbQuery .= \"and \";\n }\n if ($filters['userRole'] == 'account_manager') {\n $dbQuery .= \"ms.account_manager_id=\" . Auth::id();\n } else {\n $dbQuery .= \"ms.matcher_id=\" . Auth::id();\n }\n $dbQuery .= \" \";\n $whereClauseExists = true;\n }\n $filteredMentorshipSessionsIds = RawQueriesResultsModifier::transformRawQueryStorageResultsToOneDimensionalArray(\n (new RawQueryStorage())->performRawQuery($dbQuery)\n );\n return $this->mentorshipSessionStorage->getMentorshipSessionsFromIdsArray($filteredMentorshipSessionsIds);\n }", "function getSessionRelatedBySessionId() {\n\t\t$fk_value = $this->getsession_id();\n\t\tif (null === $fk_value) {\n\t\t\treturn null;\n\t\t}\n\t\treturn Session::retrieveByPK($fk_value);\n\t}", "abstract protected function getSession();", "function get_loginrecord($sessionID, $debug = false) {\n\t\t$q = (new QueryBuilder())->table('logperm');\n\t\t$q->field($q->expr(\"IF(restrictcustomers = 'Y', 1, 0) as restrictcustomers\"));\n\t\t$q->field($q->expr(\"logperm.*\"));\n\t\t$q->where('sessionid', $sessionID);\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery();\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\treturn $sql->fetch(PDO::FETCH_ASSOC);\n\t\t}\n\t}", "public function getSessionInPastTabObservation()\n {\n $id = Yii::app()->user->idUser;\n $sessionPast = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, name, title, description, s.datePost,\n s.dateCreate,s.idSession, COUNT(DISTINCT(a.idArchive)) AS numArchive,s.active, s.idUserCreate\n FROM sessions AS s\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic\n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (i.idUserInvited = :idUserInvited OR s.idUserCreate = :idUserCreate) AND ((s.datePost+ INTERVAL 1 DAY) < Now())\n AND (t.active = 1)\n GROUP BY s.idSession\n ORDER BY s.dateCreate DESC')\n ->bindValues(array(':idUserInvited' => $id, ':idUserCreate' => $id))\n ->queryAll();\n return $sessionPast;\n }", "function find_session($session) {\n global $db;\n\n if (isset($session)) {\n $sql = \"SELECT * FROM sessions WHERE session = :session;\";\n $params = array(\n ':session' => $session\n );\n $records = exec_sql_query($db, $sql, $params)->fetchAll();\n if ($records) {\n // Sessions is a unique field, so only 1 record should be selected.\n return $records[0];\n }\n }\n // if nothing is returned earlier, then return NULL\n return NULL;\n}", "public function getActiveDetail($id)\n {\n $detailActiveSession = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, t.name, title, description, datePost, s.dateCreate,\n s.idUserCreate, COUNT(a.idArchive) AS numArchive, s.idSession, s.activatedPoint\n FROM sessions AS s\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic \n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (s.idSession = :idSession) AND (t.active = 1) AND (s.active = 1)')\n ->bindValues(array(':idSession' => $id))\n ->query();\n return $detailActiveSession;\n }", "public function getSession();", "function getSessionDetail($session_id=null){\r\n\t\tif($session_id==null) return array();\r\n\t\t$this->db->select(TBL_MST_SESSION.'.date,'.TBL_MST_SESSION.'.event_time_from,'.TBL_MST_SESSION.'.event_time_to,'.TBL_MST_COUNTRIES.'.title as country,'.TBL_MST_STATES.'.title as state,'.TBL_MST_VENUES.'.venue_name as venue,'.TBL_MST_VENUES.'.zipcode,'.TBL_MST_VENUES.'.venue_street as street,'.TBL_MST_VENUES.'.telephone,'.TBL_MST_CITIES.'.title as city');\r\n\t\t$this->db->from(TBL_MST_SESSION);\r\n\t\t$this->db->where(array(TBL_MST_SESSION.'.id'=>$session_id));\r\n\t\t$this->db->join(TBL_MST_VENUES,TBL_MST_VENUES.'.id='.TBL_MST_SESSION.'.mst_venues_id');\r\n\t\t$this->db->join(TBL_MST_COUNTRIES, TBL_MST_COUNTRIES.'.id='.TBL_MST_SESSION.\".mst_countries_id\");\r\n\t\t$this->db->join(TBL_MST_STATES, TBL_MST_STATES.'.id='.TBL_MST_SESSION.\".mst_states_id\");\r\n\t\t$this->db->join(TBL_MST_CITIES, TBL_MST_CITIES.'.id='.TBL_MST_SESSION.\".event_mst_cities_id\");\r\n\t\t$recordSet = $this->db->get();\r\n\t\t$data=$recordSet->result() ;\r\n \t\treturn $data;\r\n\t}", "function userCanPerformSearch($sessionID, $table){\r\n\t\treturn $this->getAccessLevel() > 3;\r\n\t}", "public function fetchSessionData() {}", "function GetSessionFilterValues(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\t$this->GetSessionValue($fld->SearchValue, 'sv1_deals_details_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchOperator, 'so1_deals_details_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchCondition, 'sc_deals_details_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchValue2, 'sv2_deals_details_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchOperator2, 'so2_deals_details_' . $parm);\n\t}", "public function scopeSession($query)\n {\n return $query->where('session_id', active_session()->id);\n\n }", "public function searchWithCriteria(){\n\n\n //change default message for required rule\n $this->unsetSessionData();\n $this->setSessionData();\n\n\n if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])){\n $this->searchByLocationAndDay();\n }else if(isset($_SESSION['searchKeyword']) && isset($_SESSION['timecon'])==FALSE){\n $this->searchByLocation();\n }else if(isset($_SESSION['searchKeyword'])==FALSE && isset($_SESSION['timecon'])){\n $this->searchByCalendar();\n }\n }", "function details(): bool {\n\t\t\t$cache_key = \"session[\".$this->id.\"]\";\n\n\t\t\t# Cached Customer Object, Yay!\n\t\t\t$cache = new \\Cache\\Item($GLOBALS['_CACHE_'],$cache_key);\n\t\t\tif ($cache->error()) app_log(\"Cache error in Site::Session::get(): \".$cache->error(),'error',__FILE__,__LINE__);\n\t\t\t\n\t\t\telseif (($this->id) and ($session = $cache->get())) {\n\t\t\t\tif ($session->code) {\n\t\t\t\t\t$this->code = $session->code;\n\t\t\t\t\t$this->company = new \\Company\\Company($session->company_id);\n\t\t\t\t\t$this->customer = new \\Register\\Customer($session->customer_id);\n\t\t\t\t\t$this->timezone = $session->timezone;\n\t\t\t\t\t$this->browser = $session->browser;\n\t\t\t\t\t$this->first_hit_date = $session->first_hit_date;\n\t\t\t\t\t$this->last_hit_date = $session->last_hit_date;\n\t\t\t\t\t$this->super_elevation_expires = $session->super_elevation_expires;\n\t\t\t\t\t$this->oauth2_state = $session->oauth2_state;\n if (isset($session->isMobile)) $this->isMobile = $session->isMobile;\n if (empty($session->csrfToken)) {\n $session->csrfToken = $this->generateCSRFToken();\n $cache->set($session,600);\n }\n\t\t\t\t\t$this->csrfToken = $session->csrfToken;\n\t\t\t\t\t$this->cached(true);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$get_session_query = \"\n\t\t\t\tSELECT\tid,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tcompany_id,\n\t\t\t\t\t\tuser_id customer_id,\n\t\t\t\t\t\ttimezone,\n\t\t\t\t\t\tbrowser,\n\t\t\t\t\t\tfirst_hit_date,\n\t\t\t\t\t\tlast_hit_date,\n\t\t\t\t\t\tsuper_elevation_expires,\n\t\t\t\t\t\toauth2_state\n\t\t\t\tFROM\tsession_sessions\n\t\t\t\tWHERE\tid = ?\n\t\t\t\";\n\t\t\t$rs = $GLOBALS['_database']->Execute(\n\t\t\t\t$get_session_query,\n\t\t\t\tarray($this->id)\n\t\t\t);\n\t\t\tif (! $rs) {\n\t\t\t\t$this->SQLError($GLOBALS['_database']->ErrorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ($rs->RecordCount()) {\n\t\t\t\t$session = $rs->FetchNextObject(false);\n\t\t\t\tif (empty($session->customer_id)) $session->customer_id = 0;\n\n\t\t\t\t$this->code = $session->code;\n\t\t\t\t$this->company = new \\Company\\Company($session->company_id);\n\t\t\t\t$this->customer = new \\Register\\Customer($session->customer_id);\n\t\t\t\t$this->timezone = $session->timezone;\n\t\t\t\t$this->browser = $session->browser;\n\t\t\t\t$this->first_hit_date = $session->first_hit_date;\n\t\t\t\t$this->last_hit_date = $session->last_hit_date;\n\t\t\t\t$this->super_elevation_expires = $session->super_elevation_expires;\n\t\t\t\t$this->oauth2_state = $session->oauth2_state;\n\n require_once THIRD_PARTY.'/mobiledetect/mobiledetectlib/Mobile_Detect.php';\n $detect = new \\Mobile_Detect;\n\n if ($detect->isMobile())\n $this->isMobile = true;\n else\n $this->isMobile = false;\n\n\t\t\t\t$session->csrfToken = $this->generateCSRFToken();\n\t\t\t\t$this->csrfToken = $session->csrfToken;\n\n\t\t\t\tif ($session->id) $cache->set($session,600);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "protected function getGeneralWhereClause() {}", "public function scopeFindBySession($query, $session)\n {\n return $query\n ->whereSessionToken($session['token'])\n ->find($session['id']);\n }", "public function getStudentAdhocConcession($condition='') { \n \n global $sessionHandler;\n \n $instituteId = $sessionHandler->getSessionVariable('InstituteId');\n $sessionId = $sessionHandler->getSessionVariable('SessionId');\n \n $query = \"SELECT\n acm.adhocId, acm.dateOfEntry, acm.studentId, acm.feeClassId, \n acm.userId, acm.description, acm.adhocAmount\n FROM\n adhoc_concession_master_new acm\n WHERE \n acm.instituteId = '$instituteId'\n $condition\";\n \n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "abstract function getSessionById($id);", "function find_session($session)\n{\n global $db;\n if (isset($session)) {\n $sql = \"SELECT * FROM sessions WHERE session = :session;\";\n $params = array(':session' => $session);\n $sessions = exec_sql_query($db, $sql, $params)->fetchAll();\n if ($sessions) {\n return $sessions[0];\n }\n }\n return NULL;\n}", "public function GetStricModeBySession ();", "function BeforeQueryList(&$strSQL, &$strWhereClause, &$strOrderBy, &$pageObject)\n{\n\n\t\t$_SESSION[\"strWhereClause\"]=$strWhereClause;\n\n\n;\t\t\n}", "public function getSessionFilter()\r\n {\r\n return CrugeFactory::get()->getICrugeSessionFilter();\r\n }", "function isSessionActive($userData, $sessionToken, $userId) {\n $myModel = new MY_Model();\n $requiredFields = [\n \"users.id AS users_id\",\n \"users.user_name\",\n \"users.user_password\",\n \"users.first_name\",\n \"users.last_name\",\n \"users.gender\",\n \"users.date_of_birth\",\n \"users.phone_number\",\n \"users.cell_number\",\n \"users.street_address\",\n \"users.zip_code\",\n \"users.prefered_contact\",\n \"users.visit_type\",\n \"users.profile_image_id\",\n \"users.cover_image_id\",\n \"users.last_login_datetime\",\n \"users.is_active\",\n \"session.id AS session_id\",\n \"session.session_token AS session_token\"\n ];\n $whereClause = [\n \"users_id\" => $userData['userId'],\n \"session_token\" => $userData['sessionToken']\n ];\n $result = $myModel->selectWithSingleJoin('users', 'session', 'session.users_id = users.id', $requiredFields, $whereClause);\n if (count($result) > 0) {\n $userId = $result[0]['users_id'];\n return getCompleteUserProfile($userId);\n } else {\n return FALSE;\n }\n}", "public function getSession() {}", "function SetSessionFilterValues($sv1, $so1, $sc, $sv2, $so2, $parm) {\n\t\t$_SESSION['sv1_deals_details_' . $parm] = $sv1;\n\t\t$_SESSION['so1_deals_details_' . $parm] = $so1;\n\t\t$_SESSION['sc_deals_details_' . $parm] = $sc;\n\t\t$_SESSION['sv2_deals_details_' . $parm] = $sv2;\n\t\t$_SESSION['so2_deals_details_' . $parm] = $so2;\n\t}", "public function getSessionInPastTabPlanning()\n {\n $id = Yii::app()->user->idUser;\n $sessionPastPlanning = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, name, title, description, s.datePost, COUNT(DISTINCT(i.idUserInvited)) AS numInvitedUser,\n s.dateCreate, s.idSession, COUNT(DISTINCT(a.idArchive)) AS numArchive,s.active, s.idUserCreate\n FROM sessions AS s\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic \n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (s.idUserCreate = :idUserCreate) AND ((s.datePost+ INTERVAL 1 DAY) < Now())\n AND (t.active = 1)\n GROUP BY s.idSession\n ORDER BY s.dateCreate DESC')\n ->bindValues(array(':idUserCreate' => $id))\n ->queryAll();\n return $sessionPastPlanning;\n }", "protected function fetchUserSessionFromDB() {}", "function find_session($db, $session)\n{\n if (isset($session)) {\n $records = exec_sql_query(\n $db,\n \"SELECT * FROM sessions WHERE session = :session;\",\n array(':session' => $session)\n )->fetchAll();\n if ($records) {\n // sessions are unique, so there should only be 1 record\n return $records[0];\n }\n }\n return NULL;\n}", "function GetSessionFilterValues(&$fld) {\n\t\t$parm = substr($fld->FldVar, 2);\n\t\t$this->GetSessionValue($fld->SearchValue, 'sv1_dealers_reports_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchOperator, 'so1_dealers_reports_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchCondition, 'sc_dealers_reports_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchValue2, 'sv2_dealers_reports_' . $parm);\n\t\t$this->GetSessionValue($fld->SearchOperator2, 'so2_dealers_reports_' . $parm);\n\t}", "public function selectSession() {\n $query = \"SELECT * FROM sessions \";\n $result = mysqli_query($db, $query);\n if (mysqli_num_rows($result) > 0) {\n while($row = mysqli_fetch_assoc($result)) {\n echo \":session_id \" . $row[\"session_id\"]. \"&nbsp&nbspSession&nbspName&nbsp\" .$row['session_name'].\n \"&nbsp&nbspStart&nbspDate&nbsp\" .$row['start_date'].\"&nbsp&nbspEnd&nbspDate&nbsp\" .$row['end_date'].\"&nbsp&nbspActivity&nbsp\" .$row['activity_numbers']. \"<br>\" ;\n }\n } else {\n echo \"0 results\";\n }\n }", "function getSession() {\n\t\treturn $this->getSessionRelatedBySessionId();\n\t}", "function getMemberInfoBySessionId($sessionId){\n\t\n\t\t$dbname = \"forums\";\n\t\t$conn = new PDO(\"mysql:host=\".servername.\";dbname=$dbname\", username, password);\n\t\t$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\n\t\t$stmt = $conn->prepare(\"SELECT m.member_id, m.donator_points_overall, m.donator_points_current FROM `sessions` s, `members` m where s.id = :sessionId and s.member_id = m.member_id\");\n\t\t$stmt->execute(array(':sessionId'=> $sessionId));\n\n\t\t$rows = $stmt->fetchAll();\n\n\t\t\t\t\t\t\t\t\t\t\n\t\treturn $rows;\n\t}", "public function sessionStatus() {\n $query = \"SELECT * FROM sessions WHERE activity_status = '1' \";\n $result = mysqli_query($db, $query);\n if (mysqli_num_rows($result) == 1) {\n while($row = mysqli_fetch_assoc($result)) {\n echo \":session_id \" . $row[\"session_id\"]. \"&nbsp&nbspSession&nbspName&nbsp\" .$row['session_name'].\n \"&nbsp&nbspStart&nbspDate&nbsp\" .$row['start_date'].\"&nbsp&nbspEnd&nbspDate&nbsp\" .$row['end_date'].\"&nbsp&nbspActivity&nbsp\" .$row['activity_status']. \"<br>\" ;\n }\n } else {\n echo \"0 results\";\n }\n }", "function is_logged_in(): bool\n{\n return App::$db->getRowWhere('users', [\n 'name' => $_SESSION['name'] ?? null,\n 'password' => $_SESSION['password'] ?? null\n ]) ? true : false;\n}", "function pk_where($binded=false) {\r\n\t\t$in = $this->session_vars;\r\n\t\t$pk_key = $this->pk_key ();\r\n\t\tfor($i = 0; $i < count ( $pk_key ); $i ++) {\r\n\t\t\tif ($in [$pk_key [$i]] != 'next') {\r\n\t\t\t\tif ($where != '')\r\n\t\t\t\t$where .= ' and ';\r\n\t\t\t\tif(!$binded) $where .= $pk_key [$i] . \"='\" . $in [$pk_key [$i]] . \"'\";\r\n\t\t\t\telse $where .= $pk_key [$i] . \"=:\" .$pk_key [$i] ;\r\n\t\t\t\t$bind[$pk_key [$i]]= $in [$pk_key [$i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\t$return['WHERE']=$where;\r\n\t\t$return['BIND']=$bind;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(!$binded) return $return['WHERE'];\r\n\t\telse return $return;\r\n\t}", "public function cek_user($data)\n\t\t{\n\t\t\t$query = $this->db->get_where('login_session', $data);\n\t\t\treturn $query;\n\t\t}", "private function setSessionData(){\n $criteria = $this->input->post('criteria');\n $location = $this->input->post('searchKeyword',TRUE);\n $calendarDay =$this->input->post('timecon',TRUE);\n\n if(count($criteria)==2){\n $this->calendarCriteria=$this->HomeModel->timeconstraint_session_handler($calendarDay);\n $this->locationCriteria=$this->HomeModel->keyword_session_handler($location);\n }else if(count($criteria)==1){\n if($criteria[0]=='calendarDay'){\n $this->calendarCriteria=$this->HomeModel->timeconstraint_session_handler($calendarDay);\n }else{\n $this->locationCriteria=$this->HomeModel->keyword_session_handler($location);\n }\n }\n }", "public function hasSession() {}", "public function showData(){\n\t\t//$sql = \"SELECT * FROM EC_GR_STATUS WHERE LOT_NUMBER = 66\";\n\n\t\t//$sql = \"UPDATE EC_GR_STATUS SET STATUS=1 WHERE STATUS = 4\";\n\t\t//$sql = \"UPDATE EC_GR_LOT SET STATUS=1 WHERE STATUS = 4\";\n\t\t//$data = $this->db->query($sql);\n\n\t\t//$sql = \"SELECT * FROM EC_ROLE_ACCESS WHERE ROLE_AS = 'APPROVAL GR LVL 1' AND OBJECT_AS = 'LEVEL'\";\n\t\t//$sql = \"UPDATE EC_ROLE_ACCESS SET VALUE='1,4' WHERE ROLE_AS = 'APPROVAL GR LVL 1' AND OBJECT_AS = 'LEVEL'\";\n\t\t//$data = $this->db->query($sql)->result_array();\n\t\tvar_dump($this->session->userdata);\n\t}", "public function getSessionInPlannedTabPlanning()\n {\n $id = Yii::app()->user->idUser;\n $sessionPlanedPlanning = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, name, title, description, s.datePost, COUNT(DISTINCT(i.idUserInvited)) AS numInvitedUser,\n s.dateCreate, s.idSession, COUNT(DISTINCT(a.idArchive)) AS numArchive,s.active, s.idUserCreate\n FROM sessions AS s\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic \n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (s.idUserCreate = :idUserCreate) AND ((s.datePost+ INTERVAL 1 DAY) >= Now())\n AND (t.active = 1)\n GROUP BY s.idSession\n ORDER BY s.dateCreate DESC')\n ->bindValues(array(':idUserCreate' => $id))\n ->queryAll();\n return $sessionPlanedPlanning;\n }", "public function getDetail($id)\n {\n $detailSession = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, t.name, title, description, datePost, s.dateCreate,\n s.idUserCreate, COUNT(a.idArchive) AS numArchive, s.idSession\n FROM sessions AS s\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic \n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (s.idSession = :idSession) AND (t.active = 1)')\n ->bindValues(array(':idSession' => $id))\n ->query();\n return $detailSession;\n }", "static function retrieveBySessionId($value) {\n\t\treturn static::retrieveByColumn('session_id', $value);\n\t}", "public function getDetailEdit($id)\n {\n $detailSessionEdit = Yii::app()->db->createCommand(\n 'SELECT u.firstName, u.lastName, u.avatarPath, t.name, title, description, datePost, s.dateCreate,\n s.idUserCreate, i.idUserInvited, s.idTopic\n FROM sessions AS s\n INNER JOIN users AS u ON s.idUserCreate = u.idUser\n INNER JOIN topics AS t ON s.idTopic = t.idTopic\n LEFT JOIN invited_session AS i ON s.idSession = i.idSession\n LEFT JOIN archive_session AS a ON s.idSession = a.idSession\n WHERE (s.idSession = :idSession) AND (t.active = 1)')\n ->bindValues(array(':idSession' => $id))\n ->query();\n return $detailSessionEdit;\n\n }", "static function findBySessionId($session_id, $session_key) {\n $users_table = TABLE_PREFIX . 'users';\n $user_sessions_table = TABLE_PREFIX . 'user_sessions';\n \n return Users::findOneBySQL(\"SELECT $users_table.* FROM $users_table, $user_sessions_table WHERE $users_table.id = $user_sessions_table.user_id AND $user_sessions_table.id = ? AND $user_sessions_table.session_key = ?\", $session_id, $session_key);\n }", "public function Gdn_UserModel_SessionQuery_Handler(&$Sender) {\n $Sender->SQL->Select('u.CountDiscussions, u.CountUnreadDiscussions, u.CountDrafts, u.CountBookmarks');\n }", "public function search($resultsPerPage=null, $uniqueId=null, $excludeAPI=false){\n // Warning: Please modify the following code to remove attributes that\n // should not be searched.\n\n $criteria = new CDbCriteria;\n\n $criteria->distinct = true;\n $criteria->compare('id', $this->id);\n $criteria->compare('fullName', $this->fullName, true);\n $criteria->compare('username', $this->username, true);\n $criteria->compare('username', '<>'.self::GUEST_PROFILE_USERNAME, true);\n $criteria->compare('officePhone', $this->officePhone, true);\n $criteria->compare('cellPhone', $this->cellPhone, true);\n $criteria->compare('emailAddress', $this->emailAddress, true);\n $criteria->compare('status', $this->status);\n $criteria->compare('tagLine',$this->tagLine,true);\n\n // Filter on is active model property\n if (!isset ($this->isActive)) { // invalid isActive value\n } else if ($this->isActive) { // select all users with new session records\n $criteria->join = \n 'JOIN x2_sessions ON x2_sessions.user=username and '.\n 'x2_sessions.lastUpdated > \"'.(time () - 900).'\"';\n } else { // select all users with old session records or no session records\n $criteria->join = \n 'JOIN x2_sessions ON (x2_sessions.user=username and '.\n 'x2_sessions.lastUpdated <= \"'.(time () - 900).'\") OR '.\n 'username not in (select x2_sessions.user from x2_sessions as x2_sessions)';\n }\n\n if ($excludeAPI) {\n if ($criteria->condition !== '') {\n $criteria->condition .= ' AND username!=\\'API\\'';\n } else { \n $criteria->condition = 'username!=\\'API\\'';\n }\n }\n\n return $this->smartSearch ($criteria, $resultsPerPage);\n }", "function get_users_by_session($session_id){\n $query = $this->db->query(\"select *\n from mbf_session_user join mbf_user join mbf_session\n on mbf_session_user.user = mbf_user.id and mbf_session_user.session = mbf_session.id\n where mbf_session.id = $session_id\");\n return $query->result();\n }", "public function getSession()\n {\n return $this->hasOne(HospitalSession::className(), ['Session_ID' => 'Session_ID']);\n }", "function has_loggedsignin($sessionID, $debug = false) {\n\t\t$q = (new QueryBuilder())->table('log_signin');\n\t\t$q->field('COUNT(*)');\n\t\t$q->where('sessionid', $sessionID);\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery($q->params);\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\treturn $sql->fetchColumn();\n\t\t}\n\t}", "function select_chartsess(){\n\t\t$username = $this->session->userdata('username');\n\t\t$query = $this->db->query(\"SELECT * from vw_chart_usr_sess\");\n\t\treturn $query;\n\t}", "public function whereClause(){\n try {\n // Sparql11query.g:117:3: ( ( WHERE )? groupGraphPattern ) \n // Sparql11query.g:118:3: ( WHERE )? groupGraphPattern \n {\n // Sparql11query.g:118:3: ( WHERE )? \n $alt15=2;\n $LA15_0 = $this->input->LA(1);\n\n if ( ($LA15_0==$this->getToken('WHERE')) ) {\n $alt15=1;\n }\n switch ($alt15) {\n case 1 :\n // Sparql11query.g:118:3: WHERE \n {\n $this->match($this->input,$this->getToken('WHERE'),self::$FOLLOW_WHERE_in_whereClause412); \n\n }\n break;\n\n }\n\n $this->pushFollow(self::$FOLLOW_groupGraphPattern_in_whereClause415);\n $this->groupGraphPattern();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }", "public function get_session()\n {\n return $this->db->get_where(\"data_manager\", [\"kode\" => $this->session->userdata(\"kode\")])->row_array();\n }", "function _read_user_session()\n {\t\t\n\t\tif($this->sh_Options['keeping_logic'] == 'db'){\n\t\t\t$this->is_present = $this->_read_user_session_db();\n\t\t} else {\n\t\t\t$this->is_present = $this->_read_user_session_ss();\n\t\t}\n\t}", "function SetSessionFilterValues($sv1, $so1, $sc, $sv2, $so2, $parm) {\n\t\t$_SESSION['sv1_dealers_reports_' . $parm] = $sv1;\n\t\t$_SESSION['so1_dealers_reports_' . $parm] = $so1;\n\t\t$_SESSION['sc_dealers_reports_' . $parm] = $sc;\n\t\t$_SESSION['sv2_dealers_reports_' . $parm] = $sv2;\n\t\t$_SESSION['so2_dealers_reports_' . $parm] = $so2;\n\t}", "function userCanQueryDatabase( $sessionID ) {\r\n\t\treturn FALSE;\r\n\t}", "protected function _session() {\n\t\treturn $this->_crud()->Session;\n\t}", "public function get_where()\n {\n }", "public function get_where()\n {\n }", "public function getEntryBySession($sessionId, $repsId){\n\n return $this->db->select() // selects all fields by default\n ->where('deleted', 0)\n ->where('session_id', $sessionId)\n ->where('sessions_detail_id', $repsId)\n ->where('user_id', $this->userId)\n ->from('log')\n ->get();\n }", "public function queryFromSession($page)\n {\n $query = Session::get('query_' . $page);\n if($query)\n {\n parse_str($query, $_GET);\n Session::clear('query_' . $page);\n }\n }", "function retrieve_doctor_info($session)\n {\n $this->db->start_cache();\n $this->db->flush_cache();\n $this->db->select(\"*\");\n /* Getting of doctors' image */\n $this->db->join('tbl_doctor_image', 'tbl_doctor_image.img_doc_id = tbl_doctor.doc_id');\n $result = $this->db->get_where(\"tbl_doctor\", array('doc_id' => $session))->result_array();\n return $result;\n }", "function screen_criteria($screen_id){\n\t\t$criteria=query(\"select sc.* from screen_criteria sc, screen_build sb where sb.criteria_id=sc.id and sb.screen_id=?\",$screen_id);\n\t\treturn $criteria;\n\t}", "function details () {\n// Empty\n if (count($_SESSION['cart'])==0) {\n return false;\n }\n\n // Get cart\n $sql = \"SELECT * FROM `products` WHERE `product_id` IN (\";\n $sql .= str_repeat('?,', count($_SESSION['cart']) - 1) . '?';\n $sql .= \")\";\n return $this->fetch($sql, array_keys($_SESSION['cart']), \"product_id\");\n }", "function mWHERE(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$WHERE;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:156:3: ( 'where' ) \n // Tokenizer11.g:157:3: 'where' \n {\n $this->matchString(\"where\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "function cek_login($table,$where){ \n return $this->db->get_where($table,$where);\n }", "function getUserDetailForSessionAttend($user_id=null,$is_cancel=false){\r\n\t\tif($user_id==null) return array();\r\n\t\t$this->db->select(TBL_USERS.'.id,'.TBL_USERS.'.email,'.TBL_USER_INFORMATION.'.sales_rip as parent_report_id,'.TBL_USERS.'.password,'.TBL_USERS.'.job_title,'.TBL_USERS.'.role,'.TBL_USER_INFORMATION.'.*,'.TBL_MST_COUNTRIES.'.title as country,'.TBL_MST_STATES.'.title as state,'.TBL_MST_CITIES.'.title as city,'.TBL_EVENT_REGISTRATION.'.session_id,'.TBL_EVENT_REGISTRATION.'.is_cancel,'.TBL_EVENT_REGISTRATION.'.is_attend');\r\n\t\t$this->db->from(TBL_USERS);\r\n\t\t$this->db->where(array(TBL_USERS.'.id'=>$user_id));\r\n\t\t$this->db->join(TBL_USER_INFORMATION,TBL_USER_INFORMATION.'.tbl_users_id='.TBL_USERS.'.id');\r\n\t\t$this->db->join(TBL_EVENT_REGISTRATION, TBL_EVENT_REGISTRATION.'.tbl_users_id='.TBL_USERS.\".id\",'left');\r\n\t\t$this->db->join(TBL_MST_COUNTRIES, TBL_MST_COUNTRIES.'.id='.TBL_USER_INFORMATION.\".mst_countries_id\",'left');\r\n\t\t$this->db->join(TBL_MST_STATES, TBL_MST_STATES.'.id='.TBL_USER_INFORMATION.\".mst_states_id\",'left');\r\n\t\t$this->db->join(TBL_MST_CITIES, TBL_MST_CITIES.'.id='.TBL_USER_INFORMATION.\".mst_cities_id\",'left');\r\n\t\tif($is_cancel==false){\r\n\t\t\t$this->db->where(array(TBL_EVENT_REGISTRATION.'.is_cancel'=>false));\r\n\t\t}\r\n\t\t$this->db->order_by(TBL_EVENT_REGISTRATION.'.is_cancel asc');\r\n\t\t//echo $this->db->_compile_select();die;\r\n\t\t$recordSet = $this->db->get();\r\n\t\t$data=$recordSet->result() ;\r\n \t\treturn $data;\r\n\t}", "Function GetUserInfo_sys_session($sid) {\n $q = \"SELECT `user_id`,`user_type`,`login`,`email` FROM `\" . TblSysSession . \"` WHERE `session_id`='$sid'\";\n $this->db->db_Query($q);\n //echo '<br>$q='.$q;\n if (!$this->db->result) {\n //show_error('_ERROR_NORESULT_SQL_QUERY');\n return false;\n }\n if (!$this->db->db_GetNumRows()) {\n //show_error('_ERROR_NORESULT_SQL_QUERY');\n return false;\n }\n $line = $this->db->db_FetchAssoc();\n $res['user_id'] = $line['user_id'];\n $res['user_type'] = $line['user_type'];\n $res['login'] = $line['login'];\n $res['email'] = $line['email'];\n //echo '<br>$res='.$res;\n return $res;\n }", "function getListByState()\n {\n // Get the session state, or create a new session state\n $state = $this->checkState($this->getState());\n\n // Set up sorting and pagination\n $order = $state->sortBy . \" \" . ($state->sortAsc ? \"ASC\" : \"DESC\");\n $limit = $state->pageSize;\n $page = $state->pageShown;\n\n // Start with no tables, and noconditions\n //$tables = \"\"; //unused\n $conditions = $this->conditions;\n\n // Add the main table\n\n // Add in the map filter conditions\n\n if (!empty($state->mapFilterSelections)) {\n foreach ($state->mapFilterSelections as $column => $value) {\n if (!empty($column) && null !== $value && \"\" != $value) {\n $conditions[$column] = $value;\n }\n }\n }\n\n // Add in any join filter conditions\n if (!empty($state->joinFilterSelections)) {\n foreach ($state->joinFilterSelections as $filter => $value) {\n // Find the joinFilter object relating to this one\n $joinFilter = null;\n foreach ($this->joinFilters as $thisJoinFilter) {\n if ($thisJoinFilter['id'] == $filter) {\n $joinFilter = $thisJoinFilter;\n break;\n }\n }\n\n // Make sure we found this filter\n if ($joinFilter == null) {\n continue;\n }\n\n // Check to make sure we should be considering this value at this time\n if (!empty($joinFilter['dependsMap']) && !empty($joinFilter['dependsValues'])) {\n if (!empty($state->mapFilterSelections)) {\n if (!in_array($state->mapFilterSelections->$joinFilter['dependsMap'],\n $joinFilter['dependsValues'])) {\n // do not concider at this time\n continue;\n }\n } else {\n continue;\n }\n }\n\n if (!empty($filter) && !empty($value)) {\n // Keywords starting with !!! are a special case\n if (!$this->isSpecialValue($value)) {\n $conditions[$filter] = $value;\n } else {\n // note: no quotes around special value\n $conditions[$filter] = substr($value, 3);\n }\n }\n }\n }\n\n // Add in any extra Filters - by array or by string.\n if (!empty($this->extraFilters)) {\n if (is_array($this->extraFilters)) {\n /*foreach ($this->extraFilters as $column => $value) {\n $conditions[$column] = $value;\n }*/\n $conditions = array_merge($conditions, $this->extraFilters);\n } else if (is_string($this->extraFilters)) {\n $conditions[] = $this->extraFilters;\n }\n }\n\n // Add in the search conditions\n if (!empty($state->searchBy) && !empty($state->searchValue)) {\n $conditions[$state->searchBy . \" LIKE\"] = '%' . $state->searchValue . '%';\n }\n\n // The default functions for searhing\n $customModelFindFunction = \"find\";\n\n // Put in the custom functions is they were suppplied\n if (!empty($this->customModelFindFunction)) {\n $customModelFindFunction = $this->customModelFindFunction;\n }\n if (!empty($this->customModelCountFunction)) {\n $customModelCountFunction = $this->customModelCountFunction;\n }\n\n // Figure out the table joins, if any\n $joinTable = \"\";\n // comment out by compass. use association and default join format\n/* if (!empty($this->joinFilters)) {\n for ($i = 0; $i < sizeof($this->joinFilters); $i++) {\n $joinFilter = $this->joinFilters[$i];\n if (!empty($joinFilter)) {\n // Set up the default values\n $localKey = !empty($joinFilter['localKey']) ? $joinFilter['localKey'] : \"id\";\n $foreignKey = !empty($joinFilter['foreignKey']) ? $joinFilter['foreignKey'] : \"id\";\n $localModel = !empty($joinFilter['localModel']) ? $joinFilter['localModel'] : $this->model->name;\n\n $joinTable .= \" LEFT JOIN `$joinFilter[joinTable]` as `$joinFilter[joinModel]`\";\n $joinTable .= \" on `$localModel`.`$localKey`=`$joinFilter[joinModel]`.`$foreignKey`\";\n }\n }\n}*/\n\n\n\n // Get the group By // we always group by this models's id, to make\n // sure there is only 1 result per entry even when using inner join.\n $groupBy = array($this->model->name . \".id\");\n\n // Do the database quiries to return the data\n // Group by needs to be \"hacked\" onto the conditions, since Cake php 1.1 has no direct support\n // for it. However, in findCound, the group by must be absent.\n $data = $this->model->$customModelFindFunction('all', array('conditions' => $conditions,\n 'group' => $groupBy,\n 'fields' => $this->fields,\n 'order' => $order,\n 'limit' => $limit,\n 'page' => $page,\n 'recursive' => $this->recursive,\n 'joins' => array($joinTable)));\n\n // Counts a bit more difficult with grouped, joint tables.\n if (isset($customModelCountFunction)) {\n $count = $this->model->$customModelCountFunction\n ($conditions, $groupBy, $this->recursive, array($joinTable));\n } else {\n //$count = $this->betterCount\n // ($conditions, $groupBy, array($joinTable));\n $count = $this->model->$customModelFindFunction('count', array('conditions' => $conditions,\n ));\n }\n\n // Format the dates as given in the iPeer database\n $data = $this->formatDates($data);\n\n // Post-process Data, if asked\n if (!empty($this->postProcessFunction)) {\n $function = $this->postProcessFunction;\n $data = $this->controller->$function($data);\n }\n\n // Package up the list, and return it to caller\n $result = array (\"entries\" => $data,\n \"count\" => $count,\n \"state\" => $state,\n \"timeStamp\" => time());\n\n return $result;\n }", "private function getSQLCondition() {\n\t\t// the manager can see everyone in the department\n\t\t// the admin and everybody else can see everyone in the company.\n\t\tswitch ($this->page->config['user_level']) {\n\t\t\tcase lu_manager:\n\t\t\tcase lu_employee:\n\t\t\tcase lu_admin:\n\t\t\t\t$sql = 'WHERE 1 = 2';\n\t\t\t\tbreak;\t//nobody below GM can access this subject\n\t\t\tcase lu_gm:\n\t\t\tcase lu_owner:\n\t\t\t\t$sql = ' WHERE c.company_id = '.$this->page->company['company_id'];\n\t\t}\n\t\treturn $sql;\n\t}", "public function getFilteredDetails();", "public function getSession()\n {\n return $this->hasOne(Session::className(), ['id' => 'SessionId']);\n }", "function make_query($logged_person){\n $table_name = \"LogInTable\"; \n $sql = \"SELECT * FROM $table_name WHERE \";\n \n //attributes \n $value = $logged_person->funcitional_query(\"account\",$logged_person->account);\n $sql .= $value.\" and \"; \n \n $value = $logged_person->funcitional_query(\"research_group\", $logged_person->research_group);\n $sql .= $value.\" and \"; \n\n $value = $logged_person->funcitional_query(\"password\", $logged_person->password);\n $sql .= $value.\" \"; \n \n return $sql; \n }", "public function consulta_usuarios_activos(){\n\t \n\t session_start();\n\t $id_rol=$_SESSION[\"id_rol\"];\n\t \n\t $usuarios = new UsuariosModel();\n\t $catalogo = null; $catalogo = new CatalogoModel();\n\t $where_to=\"\";\n\t $columnas = \" usuarios.id_usuarios,\n\t\t\t\t\t usuarios.cedula_usuarios,\n\t\t\t\t\t usuarios.nombre_usuarios,\n usuarios.apellidos_usuarios,\n\t\t\t\t\t claves.clave_claves,\n\t\t\t\t\t claves.clave_n_claves,\n\t\t\t\t\t usuarios.telefono_usuarios,\n\t\t\t\t\t usuarios.celular_usuarios,\n\t\t\t\t\t usuarios.correo_usuarios,\n\t\t\t\t\t rol.id_rol,\n\t\t\t\t\t rol.nombre_rol,\n\t\t\t\t\t usuarios.estado_usuarios,\n\t\t\t\t\t usuarios.fotografia_usuarios,\n\t\t\t\t\t usuarios.creado\";\n\t \n\t $tablas = \"public.usuarios INNER JOIN public.claves ON claves.id_usuarios = usuarios.id_usuarios\n INNER JOIN public.privilegios ON privilegios.id_usuarios=usuarios.id_usuarios\n INNER JOIN public.rol ON rol.id_rol=privilegios.id_rol\n INNER JOIN public.catalogo ON privilegios.tipo_rol_privilegios = catalogo.valor_catalogo\n AND catalogo.nombre_catalogo='PRINCIPAL' AND catalogo.tabla_catalogo ='privilegios' AND catalogo.columna_catalogo = 'tipo_rol_privilegios'\n INNER JOIN public.catalogo c1 ON c1.tabla_catalogo='usuarios' AND c1.columna_catalogo='estado_usuarios' \n AND c1.nombre_catalogo='ACTIVO' AND c1.valor_catalogo=usuarios.estado_usuarios\";\n\t \n\t \n\t $where = \" 1=1\";\n\t \n\t $id = \"usuarios.id_usuarios\";\n\t \n\t \n\t $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:'';\n\t $search = (isset($_REQUEST['search'])&& $_REQUEST['search'] !=NULL)?$_REQUEST['search']:'';\n\t \n\t \n\t if($action == 'ajax')\n\t {\n\t //estado_usuario\n\t $wherecatalogo = \"tabla_catalogo='usuarios' AND columna_catalogo='estado_usuarios'\";\n\t $resultCatalogo = $catalogo->getCondiciones('valor_catalogo,nombre_catalogo' ,'public.catalogo' , $wherecatalogo , 'tabla_catalogo');\n\t \n\t \n\t \n\t if(!empty($search)){\n\t \n\t \n\t $where1=\" AND (usuarios.cedula_usuarios LIKE '\".$search.\"%' OR usuarios.nombre_usuarios LIKE '\".$search.\"%' OR usuarios.correo_usuarios LIKE '\".$search.\"%' OR rol.nombre_rol LIKE '\".$search.\"%' )\";\n\t \n\t $where_to=$where.$where1;\n\t }else{\n\t \n\t $where_to=$where;\n\t \n\t }\n\t \n\t $html=\"\";\n\t $resultSet=$usuarios->getCantidad(\"*\", $tablas, $where_to);\n\t $cantidadResult=(int)$resultSet[0]->total;\n\t \n\t $page = (isset($_REQUEST['page']) && !empty($_REQUEST['page']))?$_REQUEST['page']:1;\n\t \n\t $per_page = 10; //la cantidad de registros que desea mostrar\n\t $adjacents = 9; //brecha entre páginas después de varios adyacentes\n\t $offset = ($page - 1) * $per_page;\n\t \n\t $limit = \" LIMIT '$per_page' OFFSET '$offset'\";\n\t \n\t $resultSet=$usuarios->getCondicionesPag($columnas, $tablas, $where_to, $id, $limit);\n\t $count_query = $cantidadResult;\n\t $total_pages = ceil($cantidadResult/$per_page);\n\t \n\t \n\t \n\t \n\t \n\t if($cantidadResult>0)\n\t {\n\t \n\t $html.='<div class=\"pull-left\" style=\"margin-left:15px;\">';\n\t $html.='<span class=\"form-control\"><strong>Registros: </strong>'.$cantidadResult.'</span>';\n\t $html.='<input type=\"hidden\" value=\"'.$cantidadResult.'\" id=\"total_query\" name=\"total_query\"/>' ;\n\t $html.='</div>';\n\t $html.='<div class=\"col-lg-12 col-md-12 col-xs-12\">';\n\t $html.='<section style=\"height:425px; overflow-y:scroll;\">';\n\t $html.= \"<table id='tabla_usuarios' class='tablesorter table table-striped table-bordered dt-responsive nowrap dataTables-example'>\";\n\t $html.= \"<thead>\";\n\t $html.= \"<tr>\";\n\t $html.='<th style=\"text-align: left; font-size: 12px;\"></th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\"></th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Cedula</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Nombre</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Teléfono</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Celular</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Correo</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Rol</th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\">Estado</th>';\n\t \n\t if($id_rol==1){\n\t \n\t $html.='<th style=\"text-align: left; font-size: 12px;\"></th>';\n\t $html.='<th style=\"text-align: left; font-size: 12px;\"></th>';\n\t \n\t }\n\t \n\t $html.='</tr>';\n\t $html.='</thead>';\n\t $html.='<tbody>';\n\t \n\t \n\t $i=0;\n\t \n\t foreach ($resultSet as $res)\n\t {\n\t $i++;\n\t $html.='<tr>';\n\t $html.='<td style=\"font-size: 11px;\"><img src=\"view/DevuelveImagenView.php?id_valor='.$res->id_usuarios.'&id_nombre=id_usuarios&tabla=usuarios&campo=fotografia_usuarios\" width=\"80\" height=\"60\"></td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$i.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->cedula_usuarios.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->nombre_usuarios.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->telefono_usuarios.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->celular_usuarios.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->correo_usuarios.'</td>';\n\t $html.='<td style=\"font-size: 11px;\">'.$res->nombre_rol.'</td>';\n\t \n\t if(!empty($resultCatalogo)){\n\t foreach ($resultCatalogo as $r_estado){\n\t if($r_estado->valor_catalogo == $res->estado_usuarios ){\n\t $html.='<td style=\"font-size: 11px;\">'.$r_estado->nombre_catalogo.'</td>';\n\t }\n\t }\n\t }\n\t \n\t \n\t if($id_rol==1){\n\t \n\t $html.='<td style=\"font-size: 18px;\"><span class=\"pull-right\"><a href=\"index.php?controller=Usuarios&action=index&id_usuarios='.$res->id_usuarios.'\" class=\"btn btn-success\" style=\"font-size:65%;\"><i class=\"glyphicon glyphicon-edit\"></i></a></span></td>';\n\t $html.='<td style=\"font-size: 18px;\"><span class=\"pull-right\"><a href=\"index.php?controller=Usuarios&action=borrarId&id_usuarios='.$res->id_usuarios.'\" class=\"btn btn-danger\" style=\"font-size:65%;\"><i class=\"glyphicon glyphicon-trash\"></i></a></span></td>';\n\t \n\t }\n\t \n\t $html.='</tr>';\n\t }\n\t \n\t \n\t \n\t $html.='</tbody>';\n\t $html.='</table>';\n\t $html.='</section></div>';\n\t $html.='<div class=\"table-pagination pull-right\">';\n\t $html.=''. $this->paginate_usuarios(\"index.php\", $page, $total_pages, $adjacents,\"load_usuarios\").'';\n\t $html.='</div>';\n\t \n\t \n\t \n\t }else{\n\t $html.='<div class=\"col-lg-6 col-md-6 col-xs-12\">';\n\t $html.='<div class=\"alert alert-warning alert-dismissable\" style=\"margin-top:40px;\">';\n\t $html.='<button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-hidden=\"true\">&times;</button>';\n\t $html.='<h4>Aviso!!!</h4> <b>Actualmente no hay usuarios registrados...</b>';\n\t $html.='</div>';\n\t $html.='</div>';\n\t }\n\t \n\t \n\t echo $html;\n\t die();\n\t \n\t }\n\t \n\t}", "public function findSession($serializedSession);", "function sessionFields($resultSet){\r\n\t\t$_SESSION['id'] = $resultSet[0]->id;\r\n\t\t$_SESSION['username'] = $resultSet[0]->username;\r\n\t\t$_SESSION['name'] = $resultSet[0]->name;\r\n\t\t$_SESSION['surname'] = $resultSet[0]->surname;\r\n\t\t$_SESSION['email'] = $resultSet[0]->email;\r\n\t\t$_SESSION['role'] = $resultSet[0]->role;\r\n\t\t$_SESSION['picture'] = $resultSet[0]->picture;\r\n\t}", "public function getSession() {\n\t\t$msg[]=\"<details><summary>SESSION AND COOKIES</summary>\";\n\t\t$msg[]=$this->show();\n\t\t$msg[]=\"</details>\";\n\t\treturn implode(\"\\n\",$msg);\n\t}", "function query() {\n \n $this->ensure_my_table();\n \n if ($this->options['operator'] == 'in') {\n $keys = array_keys($this->value);\n\n $this->query->add_where(0, $this->table_alias.'.id IN ('. implode(',', $keys).')' );\n }\n\n }", "public function buildConditionQuery()\n\t\t\t{\n\t\t\t\t$this->sql_condition = ' user_id='.$this->CFG['user']['user_id'];\n\t\t\t}", "public function getSessionInfo()\n {\n return $this->execute('user/session', 'GET');\n }", "function BasicSearchWhere() {\r\n\t\tglobal $Security, $fs_multijoin_v;\r\n\t\t$sSearchStr = \"\";\r\n\t\t$sSearchKeyword = $fs_multijoin_v->BasicSearchKeyword;\r\n\t\t$sSearchType = $fs_multijoin_v->BasicSearchType;\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$sSearch = trim($sSearchKeyword);\r\n\t\t\tif ($sSearchType <> \"\") {\r\n\t\t\t\twhile (strpos($sSearch, \" \") !== FALSE)\r\n\t\t\t\t\t$sSearch = str_replace(\" \", \" \", $sSearch);\r\n\t\t\t\t$arKeyword = explode(\" \", trim($sSearch));\r\n\t\t\t\tforeach ($arKeyword as $sKeyword) {\r\n\t\t\t\t\tif ($sSearchStr <> \"\") $sSearchStr .= \" \" . $sSearchType . \" \";\r\n\t\t\t\t\t$sSearchStr .= \"(\" . $this->BasicSearchSQL($sKeyword) . \")\";\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$sSearchStr = $this->BasicSearchSQL($sSearch);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($sSearchKeyword <> \"\") {\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchKeyword($sSearchKeyword);\r\n\t\t\t$fs_multijoin_v->setSessionBasicSearchType($sSearchType);\r\n\t\t}\r\n\t\treturn $sSearchStr;\r\n\t}", "public function getCriteria();", "function query() {\n // Don't filter if we're exposed and the checkbox isn't selected.\n\n if ((!empty($this->options['exposed'])) && empty($this->value)) {\n return;\n }\n if (!$this->options['exposed']) {\n $value = $this->options['uid'];\n }\n else {\n $value = $this->validated_exposed_input[0];\n }\n\n\n $this->ensure_my_table();\n\n\n $table = 'scheduling_appointments';\n //$field1 = $this->query->add_field($table, 'nid');\n //$field2 = $this->query->add_field($table, 'title');\n\n\n //$field1 = $table . '.nid';\n //$field2 = $table . '.title';\n if ($value != '') {\n $this->query->add_where(\n $this->options['group'],\n db_and()\n ->condition($table . '.uid', $value, '=')\n );\n }\n }", "function select_usrsess(){\n\t\t$username = $this->session->userdata('username');\n\t\t$query = $this->db->query(\"SELECT * from sys_user_session order by ses_id desc limit 5\");\n\t\treturn $query;\n\t}", "public function where()\n {\n return $this->query; \n }", "public function viewSession(){\n\t\t\t$query = $this->connection()->prepare(\"SELECT * FROM sessionz ORDER BY id DESC\");\n\t\t\t$query->execute();\n\t\t\treturn $query->fetchAll();\n\t\t}", "private function grup_sql()\n\t{\n\t\tif ($this->session->grup == 4)\n\t\t{\n\t\t\t$kf = $this->session->user;\n\t\t\t$filter_sql= \" AND a.id_user = $kf\";\n\t\t\treturn $filter_sql;\n\t\t}\n\t}", "public function getSession()\r\n {\r\n return $this->sessionID;\r\n }", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "public function getWhereClause()\n {\n return $this->where_clause;\n }", "function CheckSearchParms() {\n\t\tif ($this->id->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->fecha_tamizaje->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->id_centro->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->apellidopaterno->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->apellidomaterno->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->nombre->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->ci->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->fecha_nacimiento->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->dias->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->semanas->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->meses->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->sexo->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->discapacidad->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->id_tipodiscapacidad->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->resultado->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->resultadotamizaje->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->tapon->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->tipo->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->repetirprueba->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->observaciones->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->id_apoderado->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\tif ($this->id_referencia->AdvancedSearch->IssetSession())\n\t\t\treturn TRUE;\n\t\treturn FALSE;\n\t}" ]
[ "0.6050646", "0.5999535", "0.59112185", "0.58381325", "0.57515866", "0.57311875", "0.56966966", "0.5684841", "0.5627435", "0.56097174", "0.5609683", "0.55721134", "0.5553495", "0.55337447", "0.5525299", "0.5482008", "0.54629594", "0.5458394", "0.54503614", "0.54487836", "0.54395324", "0.54389304", "0.54389304", "0.5399511", "0.5377466", "0.53765965", "0.53690994", "0.53629375", "0.5361211", "0.53394854", "0.5334397", "0.5331803", "0.53241", "0.5314591", "0.52963644", "0.52928644", "0.52898866", "0.52850956", "0.5272398", "0.52703875", "0.5233775", "0.52321327", "0.52312136", "0.52188885", "0.5217107", "0.5208431", "0.5206239", "0.5204773", "0.5198518", "0.51953036", "0.51889217", "0.5188587", "0.5180277", "0.5176238", "0.51762253", "0.51731265", "0.51709265", "0.5135319", "0.5132197", "0.5110285", "0.50742334", "0.507213", "0.5070205", "0.50607014", "0.505793", "0.5054836", "0.5054836", "0.50543094", "0.5035006", "0.50341475", "0.50313735", "0.5029223", "0.50258267", "0.50156045", "0.5015082", "0.5014806", "0.5009952", "0.5009892", "0.5007851", "0.5006027", "0.5004392", "0.49977788", "0.49734282", "0.49655256", "0.49645093", "0.4962858", "0.49556172", "0.49550298", "0.4945673", "0.49452704", "0.4939473", "0.49319816", "0.49318096", "0.49237016", "0.49192306", "0.4915115", "0.4914127", "0.4914127", "0.49136004", "0.49107102" ]
0.5190904
50
Apply User ID filters
function ApplyUserIDFilters($sFilter) { return $sFilter; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function UserID_Filtering(&$filter) {\n\n\t\t// Enter your code here\n\t}", "public function applyUserIDFilters($filter, $id = \"\")\n\t{\n\t\treturn $filter;\n\t}", "public function applyUserIDFilters($filter)\n\t{\n\t\treturn $filter;\n\t}", "public function filterUser(int|UniqueId $id): self;", "public function filterUser(int $id): self;", "private function getUserIds($filter_name, $filter_values)\n {\n switch ($filter_name) {\n case 'common':\n $list = user_auth_peer::instance()->get_list(['del' => 0], [], ['id ASC']);\n break;\n\n case 'group':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.groups_members_peer::instance()->get_table_name(\n ).' WHERE group_id IN ('.implode(',', $filter_values).')'\n );\n break;\n\n case 'ppo':\n\n\n $ppo = ppo_peer::instance()->get_item($filter_values[0]);\n $list = ppo_members_peer::instance()->get_members($ppo['id'], false, $ppo);\n break;\n\n case 'status':\n $list = db::get_cols(\n 'SELECT id as user_id FROM '.user_auth_peer::instance()->get_table_name(\n ).' WHERE status IN ('.implode(',', $filter_values).')'\n );\n break;\n\n case 'func':\n\n foreach ($filter_values as $id => $a) {\n $where[] = \"functions && '{\".$a.\"}'\";\n }\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_desktop_peer::instance()->get_table_name().' WHERE '.implode(\n ' OR ',\n $where\n )\n );\n break;\n\n case 'region':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE region_id IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'lists':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.lists_users_peer::instance()->get_table_name().' WHERE list_id IN ('.implode(\n ',',\n $filter_values\n ).') AND type = 0'\n );\n break;\n\n case 'district':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE city_id IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'sferas':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE segment IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'political_views':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name(\n ).' WHERE political_views = '.$filter_values\n );\n break;\n\n case 'targets':\n $i = 0;\n foreach ($filter_values as $fv) {\n $sqladd .= 'admin_target && \\'{'.$fv.'}\\' ';\n if ($i < count($filter_values) - 1) {\n $sqladd .= ' OR ';\n }\n $i++;\n }\n $list = db::get_cols(\n 'SELECT user_id\n FROM user_data WHERE '.$sqladd\n );\n break;\n\n case 'visit':\n $name = 'visit_ts';\n $value = $filter_values;\n $time = time() - abs($value * 24 * 60 * 60);\n if ($value > 0) {\n $where = \"user_id in (SELECT user_id FROM user_sessions WHERE $name > $time)\";\n } elseif ($value < 0) {\n $where = \"user_id in (SELECT user_id FROM user_sessions WHERE $name < $time)\";\n }\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_sessions_peer::instance()->get_table_name().' WHERE '.$where\n );\n break;\n }\n\n\n foreach ($list as $key => $value) {\n $usr = user_auth_peer::instance()->get_item($value);\n if (1 === $usr['del'] || 0 === (int)$usr['active'] || 1 === (int)$usr['offline']) {\n unset($list[$key]);\n }\n }\n\n internal_mailing_peer::instance()->update(\n [\n 'id' => $this->mailing_id,\n 'count' => count($list),\n ]\n );\n\n return $list;\n }", "function getAllUserIds($filter) {\n\t//SELECT id FROM students\n\t$sql = \"SELECT id FROM users WHERE $filter = 1\";\n\t$userIds = queryColumn($sql);\n\n\treturn $userIds;\n}", "function get_editable_user_ids($user_id, $exclude_zeros = \\true, $post_type = 'post')\n {\n }", "function filterCourseUserNotTheme($userdata,$filter) {\n $ret = \"\";\n for($i=0;$i<count($userdata);$i++) {\n $out = $userdata[$i];\n $id = $userdata[$i][\"id\"];\n if (is_array($id)) {\n $id = $id[\"id\"];\n }\n // Adapt 2\n if (in_array($id, $filter)) {\n $ret[] = $out;\n }\n }\n return $ret;\n}", "public function onKernelRequest(): void\n {\n $user = $this->em->getRepository(User::class)->findOneBy(['username' => 'jane.doe']);\n $filter = $this->em->getFilters()->enable('user_filter');\n $filter->setParameter('id', $user->getId());\n }", "public function filter_user() {\n// ----------------------------------------------\n// SELECT * FROM wp_groups_user_group rt\n// LEFT JOIN wp_user u ON rt.user_id = u.ID\n// LEFT JOIN wp_user u ON rt.user_id = u.ID\n// WHERE rt.group_id = 6\n// \n// \n// SELECT * FROM\n// (SELECT \n// rt.user_id,\n// rt.group_id AS location_id\n// FROM wp_groups_user_group rt\n// LEFT JOIN wp_users u ON rt.user_id = u.ID\n// LEFT JOIN wp_users u2 ON rt.user_id = u2.ID\n// WHERE rt.group_id = 6 ) AS rl\n// INNER JOIN\n// (SELECT \n// rt.user_id,\n// rt.group_id AS agency_id\n// FROM wp_groups_user_group rt\n// LEFT JOIN wp_users u ON rt.user_id = u.ID\n// LEFT JOIN wp_users u2 ON rt.user_id = u2.ID\n// WHERE rt.group_id = 3 ) AS ra\n// ON rl.user_id = ra.user_id\n// LEFT JOIN wp_users wu ON rl.user_id = wu.ID ORDER BY `ID` ASC\n }", "function get_users_by_filter($filterCode,$users_id = '')\n\t{\n\t\tlog_message('debug', '_message/get_users_by_filter');\n\t\tlog_message('debug', '_message/get_users_by_filter:: [1] filterCode='.$filterCode);\n\n\t\tswitch($filterCode){\n\t\t\tcase \"all_users\":\n\t\t\t\treturn $this->get_types(array('invited_shopper','random_shopper','clout_merchant'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_admins\":\n\t\t\t\treturn $this->get_types(array('clout_owner','clout_admin_user'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_store_owners\":\n\t\t\t\treturn $this->get_types(array('store_owner_owner'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_shoppers\":\n\t\t\t\treturn $this->get_types(array('invited_shopper','random_shopper'));\n\t\t\tbreak;\n\n\t\t\tcase \"shoppers_without_bank_account\":\n\t\t\t\treturn server_curl(CRON_SERVER_URL, array('__action'=>'get_single_column_as_array', 'query'=>'get_users_without_bank_account', 'column'=>'user_id', 'variables'=>array() ));\n\t\t\tbreak;\n\n\t\t\tcase \"shoppers_without_network\":\n\t\t\t\treturn server_curl(CRON_SERVER_URL, array('__action'=>'get_single_column_as_array', 'query'=>'get_users_without_network', 'column'=>'user_id', 'variables'=>array() ));\n\t\t\tbreak;\n\n\t\t\tcase \"select_user\":\n\t\t\t\treturn $this->get_select_user($users_id);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn array();\n\t\t\tbreak;\n\t\t}\n\t}", "function wc_pre_user_query($user_search) {\n\n\t\t$user = wp_get_current_user();\n\t\tif ($user->ID != 1) {\n\n\t\t\tglobal $wpdb;\n\t\t\t$user_search->query_where = str_replace('WHERE 1=1', \"WHERE 1=1 AND {$wpdb->users}.ID <> 1\", $user_search->query_where);\n\t\t}\n\t}", "public function determine_current_user_filter($user_id) {\r\n \r\n // If we use wp-cli we have no headers to look for\r\n if (php_sapi_name() === 'cli') {\r\n return $user_id;\r\n }\r\n \r\n /**\r\n * Make sure to add the lines below to .htaccess\r\n * otherwise Apache may strip out the auth header.\r\n * RewriteCond %{HTTP:Authorization} ^(.*)\r\n * RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]\r\n */\r\n $headers = function_exists('apache_request_headers')\r\n ? apache_request_headers() : $_SERVER;\r\n $possibleAuthHeaderKeys = ['Authorization', 'HTTP_AUTHORIZATION', 'REDIRECT_HTTP_AUTHORIZATION'];\r\n $authHeader = null;\r\n foreach ($possibleAuthHeaderKeys as $key) {\r\n if (!empty($headers[$key])) {\r\n $authHeader = $headers[$key];\r\n break;\r\n }\r\n }\r\n \r\n if (!empty($authHeader)) {\r\n // 7 = strlen('Bearer ');\r\n $access_token = substr($authHeader, 7);\r\n $my_user_id = $this->db->get_user_id_from_access_token($access_token);\r\n if (!is_wp_error($my_user_id)) {\r\n return $my_user_id;\r\n }\r\n return false;\r\n }\r\n return $user_id;\r\n }", "function get_author_user_ids()\n {\n }", "function userid_action_handler( $user_or_id ) {\n\t\tif ( is_object($user_or_id) )\n\t\t\t$userid = intval( $user_or_id->ID );\n\t\telse\n\t\t\t$userid = intval( $user_or_id );\n\t\tif ( !$userid )\n\t\t\treturn;\n\t\t$this->add_ping( 'db', array( 'user' => $userid ) );\n\t}", "public function filterUserContext($filterChain)\n\t{\n\t\t//load the associated user and accounts for this transaction which will be the currently\n\t\t//logged in user and his or her accounts\n\t\t$uid = Yii::app()->user->id;\n\t\t$this->loadUser($uid);\n\t\t$this->loadUserAccounts($uid);\n\t\t$this->loadUserCategorys($uid);\n\t\t$this->loadUserPayees($uid);\n\n\t\t//continue to process the filter\n\t\t$filterChain->run();\t\n\t}", "function _cleanup_input_user_id($user_id = 0) {\n\t\t// Common checks here\n\t\tif (!$user_id || !(is_array($user_id) || is_numeric($user_id) || is_string($user_id))) {\n\t\t\treturn false;\n\t\t}\n\t\t// Users are comma-separated string list\n\t\tif (!is_array($user_id) && false !== strpos($user_id, \",\")) {\n\t\t\t$_tmp = array();\n\t\t\tforeach ((array)explode(\",\", $user_id) as $_user_id) {\n\t\t\t\t$_user_id = intval($_user_id);\n\t\t\t\tif ($_user_id <= 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$_tmp[$_user_id] = $_user_id;\n\t\t\t}\n\t\t\t$user_id = $_tmp;\n\t\t\tunset($_tmp);\n\t\t}\n\t\t// Cleanup user_ids\n\t\tif (is_array($user_id)) {\n\t\t\t$_tmp = array();\n\t\t\tforeach ((array)$user_id as $_user_id) {\n\t\t\t\t$_user_id = intval($_user_id);\n\t\t\t\tif ($_user_id <= 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$_tmp[$_user_id] = $_user_id;\n\t\t\t}\n\t\t\t$user_id = $_tmp;\n\t\t\tunset($_tmp);\n\t\t\tif ($this->GET_USERS_LIMIT && count($user_id) >= $this->GET_USERS_LIMIT) {\n\t\t\t\ttrigger_error(\"USER_DATA: huge number of user_ids passed (\".count($user_id).\"), cannot handle them all, slice them up to \".$this->GET_USERS_LIMIT.\" entries\", E_USER_WARNING);\n\t\t\t\t$user_id = array_slice($user_id, 0, $this->GET_USERS_LIMIT);\n\t\t\t}\n\t\t}\n\t\tif (!is_array($user_id)) {\n\t\t\t$user_id = intval($user_id);\n\t\t}\n\t\treturn $user_id;\n\t}", "function _applyFilter($user, $info, $filter) {\n\t\tforeach($filter as $key => $pattern) {\n\t\t\t//sanitize pattern for use as regex\n\t\t\t$pattern = '/'.str_replace('/', '\\/', $pattern).'/i';\n\t\t\t\n\t\t\tif($key == 'user') {\n\t\t\t\tif(!preg_match($pattern, $user)) return false;\n\t\t\t} else if($key == 'grps') {\n\t\t\t\tif(!count(preg_grep($pattern, $info['grps']))) { \n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif(!preg_match($pattern, $info[$key])) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public function UserFilterData($value)\n {\n $em = $this->getEntityManager();\n if ($value == 'Display All') {\n $qb1 = $em->createQueryBuilder();\n $qb1->select('u.id,up.name,up.photo,up.employeeId,up.email,\n up.mobile,uw.extensionNumber,\n uw.workStation,uw.systemId,uw.systemIp,t.tname');\n $qb1->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb1->innerJoin('u.personalProfile', 'up');\n $qb1->innerJoin('u.workProfile', 'uw');\n $qb1->innerJoin('uw.team', 't');\n $result1 = $qb1->getQuery()->getResult();\n return $result1;\n } \n else {\n $qb = $em->createQueryBuilder();\n $qb->select('DISTINCT ur.id');\n $qb->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $qb->innerJoin('u.reportingPersons', 'ur');\n if ($value == 'Non Jyo')\n $qb->where(\"u.id !='14'\");\n elseif ($value == 'Jyo')\n $qb->where(\"u.id = '14'\");\n $result = $qb->getQuery()->getResult();\n\n for ($i = '0'; $i < sizeof($result); $i++) {\n $id = $result[$i]['id'];\n $q = $em->createQueryBuilder();\n $q->select('u.id,up.name,up.photo,up.employeeId,up.email,\n up.mobile,uw.extensionNumber,\n uw.workStation,uw.systemId,uw.systemIp,t.tname');\n $q->from('Vlreleases\\UserBundle\\Entity\\User', 'u');\n $q->leftJoin('u.personalProfile', 'up');\n $q->leftJoin('u.workProfile', 'uw');\n $q->leftJoin('uw.team', 't');\n $q->where(\"u.id='$id'\");\n $finalResult[$i] = $q->getQuery()->getResult();\n }\n \n return $finalResult;\n }\n }", "function filtering_instructor_custom($qs=false,$object=false){\n \tif($object!='members')//hide for members only\n\t return $qs;\n\t \n\t $args=array('role' => 'Instructor','fields' => 'ID');\n\t $users = new WP_User_Query($args);\n\n\t $included_user = implode(',',$users->results);\n\t //$included_user='1,2,3';//comma separated ids of users whom you want to exclude\n\t \n\t $args=wp_parse_args($qs);\n\t if(!isset($args['scope']) || $args['scope'] != 'instructors')\n\t \treturn $qs;\n\t //check if we are searching or we are listing friends?, do not exclude in this case\n\t if(!empty($args['user_id'])||!empty($args['search_terms']))\n\t return $qs;\n\t \n\t if(!empty($args['include']))\n\t $args['include']=$args['include'].','.$included_user;\n\t else\n\t $args['include']=$included_user;\n\n\n\t $qs=build_query($args);\n\t \n\t return $qs;\n \n}", "function _uid_filter ($dn) { return('(uid='.dn2uid($dn).')'); }", "public function userId($user);", "function get_nonauthor_user_ids()\n {\n }", "private function useridOrEmailFilter($identifier) {\r\n return ctype_digit($identifier) ? 'userid=' . $identifier : 'email=\\'' . pg_escape_string($identifier) . '\\'';\r\n }", "public function getUserById($id) {\n\t\t\n\t}", "public static function for_user($userid) {}", "function check_user($userid)\n {\n $this->stmt = $this->db->count('users');\n // set where values\n $this->stmt->where('id','i',$userid);\n\t\t$this->stmt->where_lte('userlevel','i',GarageSale\\User::USER_UNVERIFIED);\n\t\treturn parent::get();\n }", "function _getAllexcutivesIds($userId) {\n\n $this->db->select('id');\n $this->db->from(TBL_USER);\n $this->db->where('approver_user_id', $userId);\n $query = $this->db->get();\n // echo $this->db->last_query(); die;\n $users = $query->result();\n $usersIDs = array();\n if($users) {\n foreach($users as $user) {\n $usersIDs[] = $user->id;\n }\n }\n return $usersIDs;\n }", "public function scopeUserId($query, $id)\n {\n return $query->where('user_id', $id);\n }", "public function addUserFilter(FilterCollectionEvent $event): void\n {\n $qb = $event->getQueryBuilder();\n $query = $qb->query()->bool()\n ->addMust($qb->query()->term(['_index' => 'user']))\n ->addMust($qb->query()->term(['enabled' => true]))\n ->addMust($qb->query()->term(['has_profile' => true]))\n ;\n $event->addFilter($query);\n }", "function test_field_specific_search_on_user_id_field() {\n\n\t\t// Username. Three matching entries should be found.\n\t\t$search_string = 'admin';\n\t\t$items = self::generate_and_run_search_query( 'all_field_types', $search_string, 'user_id' );\n\t\t$msg = 'A search for ' . $search_string . ' in UserID field';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// UserID number. Three matching entries should be found.\n\t\t$search_string = '1';\n\t\t$items = self::generate_and_run_search_query( 'all_field_types', $search_string, 'user_id' );\n\t\t$msg = 'A search for ' . $search_string . ' in UserID field';\n\t\tself::run_entries_found_tests( $msg, $items, 2, array( 'jamie_entry_key', 'jamie_entry_key_2' ) );\n\n\t\t// UserID number. No matching entries should be found.\n\t\t$search_string = '7';\n\t\t$items = self::generate_and_run_search_query( 'all_field_types', $search_string, 'user_id' );\n\t\t$msg = 'A search for ' . $search_string . ' in UserID field';\n\t\tself::run_entries_not_found_tests( $msg, $items );\n\t}", "function getAllUserIDs() \n {\n //This returns all userids that have rating>0\n $query = \"SELECT users.id FROM users WHERE users.rating > 0\";\n //$query = \"SELECT ratings.model_id FROM ratings WHERE ratings.model='User'\";\n $results = $this->query($query); \n $userIDs = Set::extract($results, '{n}.users.id');\n return $userIDs;\n }", "public function getAllUserById($id);", "public function getIndexFilter($userId)\n {\n /*\n * The users' index filter is usually retrieved two or\n * thee times for the index page, make sure we don't approach\n * the database that many times\n */\n $userIndexFilter = $this->_daoFactory->getUserFilterDao()->getUserIndexFilter($userId);\n\n if ($userIndexFilter === false) {\n return ['tree' => ''];\n } else {\n return $userIndexFilter;\n } // else\n }", "private function filter_fields_by_user_status( $all_fields = array(), $filter_attribute = 'none' ) {\n // Filter criteria:\n // 1. If the provided filter_attribute is missing or \"none\", return all fields\n // 2. if the field attribute is \"all\", return that field\n // 3. If the field attribute is \"member\", return if the user is logged in\n return array_filter(\n $all_fields,\n function( $field ) use ( $filter_attribute ) {\n return ( 'none' === $filter_attribute ) ||\n ( 'all' === $field[ $filter_attribute ] ) ||\n ( is_user_logged_in() && ( 'member' === $field[ $filter_attribute ] ) );\n }\n );\n }", "function _update_user_simple($user_id, $data = array(), $params = array()) {\n\t\t// Currently use only WHERE condition\n\t\t$params = $params[\"WHERE\"] ? array(\"WHERE\" => $params[\"WHERE\"]) : false;\n\t\t// Create additional SQL from \"params\" array\n\t\t$add_sql = $this->_create_add_sql($params);\n\n\t\tforeach ((array)$user_id as $_user_id) {\n\t\t\tif (db()->query_num_rows(\"SELECT id FROM \".db('user').\" WHERE id=\".intval($_user_id))) {\n\t\t\t\tdb()->UPDATE(\"user\", _es($data), \"id=\".intval($_user_id).\" \".$add_sql);\n\t\t\t} else {\n\t\t\t\t$data_to_insert = $data;\n\t\t\t\t$data_to_insert[\"id\"] = $_user_id;\n\t\t\t\tdb()->INSERT(\"user\", _es($data_to_insert));\n\t\t\t}\n\t\t}\n\t\t$result = true; // Temporary\n\t\treturn $result;\n\t}", "private function setIndexFilter($userId, $filter)\n {\n // There can only be one\n $this->removeIndexFilter($userId);\n\n // and actually add the index filter\n $filter['filtertype'] = 'index_filter';\n $this->_daoFactory->getUserFilterDao()->addFilter($userId, $filter);\n }", "private function loadFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age >=60, 1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age IS NULL, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM facebook_profiles) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "private function _applyFilter($filter)\n\t{\n\t\tglobal $context, $scripturl;\n\n\t\tif (isset($filter['variable']))\n\t\t{\n\t\t\t$context['filter'] = &$filter;\n\n\t\t\t// Set the filtering context.\n\t\t\tswitch ($filter['variable'])\n\t\t\t{\n\t\t\t\tcase 'id_member':\n\t\t\t\t\t$id = $filter['value']['sql'];\n\t\t\t\t\tMembersList::load($id, false, 'minimal');\n\t\t\t\t\t$name = MembersList::get($id)->real_name;\n\t\t\t\t\t$context['filter']['value']['html'] = '<a href=\"' . getUrl('profile', ['action' => 'profile', 'u' => $id, 'name' => $name]) . '\">' . $name . '</a>';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'url':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars((substr($filter['value']['sql'], 0, 1) === '?' ? $scripturl : '') . $filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array('\\_' => '_')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'message':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\t$context['filter']['value']['html'] = preg_replace('~&amp;lt;span class=&amp;quot;remove&amp;quot;&amp;gt;(.+?)&amp;lt;/span&amp;gt;~', '$1', $context['filter']['value']['html']);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'error_type':\n\t\t\t\t\t$context['filter']['value']['html'] = '\\'' . strtr(htmlspecialchars($filter['value']['sql'], ENT_COMPAT, 'UTF-8'), array(\"\\n\" => '<br />', '&lt;br /&gt;' => '<br />', \"\\t\" => '&nbsp;&nbsp;&nbsp;', '\\_' => '_', '\\\\%' => '%', '\\\\\\\\' => '\\\\')) . '\\'';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$context['filter']['value']['html'] = &$filter['value']['sql'];\n\t\t\t}\n\t\t}\n\t}", "public function filterByUserid($userid = null, $comparison = null)\n {\n if (is_array($userid)) {\n $useMinMax = false;\n if (isset($userid['min'])) {\n $this->addUsingAlias(SuitsTableMap::COL_USERID, $userid['min'], Criteria::GREATER_EQUAL);\n $useMinMax = true;\n }\n if (isset($userid['max'])) {\n $this->addUsingAlias(SuitsTableMap::COL_USERID, $userid['max'], Criteria::LESS_EQUAL);\n $useMinMax = true;\n }\n if ($useMinMax) {\n return $this;\n }\n if (null === $comparison) {\n $comparison = Criteria::IN;\n }\n }\n\n return $this->addUsingAlias(SuitsTableMap::COL_USERID, $userid, $comparison);\n }", "public function byId($id) {\n return $this->andWhere(['userId' => $id]);\n }", "public function actionFilter()\n {\n $userSelectData = ArrayHelper::map(User::find()->all(), 'id', 'fullname');\n $serviceOptions = Service::getOptions();\n $userFlatOptions = [];\n $params = Yii::$app->request->queryParams;\n $searchUser = $params['CounterDataSearch']['searchUser'];\n if ($searchUser) {\n $user = User::findOne($searchUser);\n if ($user) {\n $userFlatOptions = ArrayHelper::map($user->flats, 'flat', function ($model) {\n return $model->flat . ', ' . $model->house->name;\n });\n }\n }\n if (!isset($userFlatOptions[$params['CounterDataSearch']['searchFlat']])) {\n unset($params['CounterDataSearch']['searchFlat']);\n }\n \n $searchModel = new CounterDataSearch();\n $dataProvider = $searchModel->search($params);\n \n return $this->render('filter', [\n 'searchModel' => $searchModel,\n 'dataProvider' => $dataProvider,\n 'userSelectData' => $userSelectData,\n 'userFlatOptions' => $userFlatOptions,\n 'serviceOptions' => $serviceOptions,\n ]);\n }", "function automap_filter_by_ids(&$obj, $params = null) {\n if(isset($params['filter_by_ids']) && $params['filter_by_ids'] != '') {\n $allowed_ids = array_flip(explode(',', $params['filter_by_ids']));\n automap_filter_tree($allowed_ids, $obj);\n }\n}", "public function scopeuserbyid($query,$id){\n return $query->where('id',$id)->get();\n }", "function hs_filter_posts_list($query)\n{\n\t global $pagenow;\n\n\t//$current_user uses the get_currentuserinfo() method to get the currently logged in user's data\n\t global $current_user;\n\t wp_get_current_user();\n \n \t//Shouldn't happen for the admin, but for any role with the edit_posts capability and only on the posts list page, that is edit.php\n \tif(!current_user_can('administrator') && current_user_can('edit_posts') && ('edit.php' == $pagenow))\n \t {\n\t\t//global $query's set() method for setting the author as the current user's id\n\t\t$query->set('author', $current_user->ID); \n \t}\n}", "private function filter($filter) {\n\t\tforeach ($filter as $key => $value) {\n\n\t\t\tif (array_key_exists('userID', $filter)) {\n\t\t\t\t$this -> db -> where('userID', $filter['userID']);\n\t\t\t}\n\t\t\tif (array_key_exists('catID', $filter)) {\n\t\t\t\t$this -> db -> where('catID', $filter['catID']);\n\t\t\t}\n\n\t\t\tif (array_key_exists('search', $filter)) {\n\t\t\t\t$array = explode(' ', $value);\n\t\t\t\tforeach ($array as $key => $value)\n\t\t\t\t\t$this -> db -> like('title', $value);\n\n\t\t\t}\n\t\t}\n\t}", "public function allForUser($userId);", "public function allForUser($userId);", "public function getUsersByFilters($aFilters, $bFullSet = false, $sOrderBy = 'login', $sSort = 'ASC',$pageName='page') {\n /* ===============================check admin or user================ */\n\n $oResult = new Mt4User();\n\n if ($user = current_user()->getUser()) {\n if (!$user->InRole('admin')) {\n $account_id = $user->id;\n $oResult = Mt4User::with('accounts')->whereHas('accounts', function($query) use($account_id) {\n $query->where(DB::raw('mt4_users_users.server_id'),'=',DB::raw(' mt4_users.server_id'));\n\n $query->where('users_id', $account_id);\n });\n }\n }\n\n\n /* =============== active Filters =============== */\n if (isset($aFilters['assigned']) && $aFilters['assigned']!=0) {\n\n\n if ($aFilters['assigned'] == 1) {\n $oResult = $oResult->with('account')->whereHas('account',function ($query){\n\n $query->whereRaw('mt4_users_users.server_id = mt4_users.server_id');\n $query->whereNotNull('mt4_users_id');\n\n });\n } else {\n\n $oResult = $oResult->whereNotIn('login', function ($query) {\n\n $query->select(DB::raw('mt4_users_users.mt4_users_id'))\n ->from('mt4_users_users')\n ->whereRaw('mt4_users_users.mt4_users_id = mt4_users.login')\n ->whereRaw('mt4_users_users.server_id = mt4_users.server_id');\n\n });\n\n\n }\n }\n\n /* =============== Login Filters =============== */\n if (isset($aFilters['exactLogin']) && $aFilters['exactLogin']) {\n $oResult = $oResult->where('LOGIN', $aFilters['login']);\n } else if ((isset($aFilters['from_login']) && !empty($aFilters['from_login'])) ||\n (isset($aFilters['to_login']) && !empty($aFilters['to_login']))) {\n\n if (!empty($aFilters['from_login'])) {\n $oResult = $oResult->where('LOGIN', '>=', $aFilters['from_login']);\n }\n\n if (!empty($aFilters['to_login'])) {\n $oResult = $oResult->where('LOGIN', '<=', $aFilters['to_login']);\n }\n }\n\n if (isset($aFilters['server_id']) &&in_array($aFilters['server_id'],[0,1])) {\n\n $oResult = $oResult->where('server_id',$aFilters['server_id']);\n }\n /* =============== Nmae Filter =============== */\n if (isset($aFilters['name']) && !empty($aFilters['name'])) {\n $oResult = $oResult->where('name', 'like', '%' . $aFilters['name'] . '%');\n }\n\n /* =============== Groups Filter =============== */\n if (!isset($aFilters['all_groups']) || !$aFilters['all_groups']) {\n $aUsers = $this->getLoginsInGroup($aFilters['group']);\n $oResult = $oResult->whereIn('LOGIN', $aUsers);\n }\n\n\n $oResult = $oResult->orderBy($sOrderBy, $sSort);\n\n if (!$bFullSet) {\n $oResult = $oResult->paginate(Config::get('fxweb.pagination_size'),['*'],$pageName);\n } else {\n $oResult = $oResult->get();\n }\n /* =============== Preparing Output =============== */\n foreach ($oResult as $dKey => $oValue) {\n $oResult[$dKey]->BALANCE = round($oResult[$dKey]->BALANCE, 2);\n $oResult[$dKey]->EQUITY = round($oResult[$dKey]->EQUITY, 2);\n $oResult[$dKey]->AGENT_ACCOUNT = round($oResult[$dKey]->AGENT_ACCOUNT, 2);\n $oResult[$dKey]->MARGIN = round($oResult[$dKey]->MARGIN, 2);\n $oResult[$dKey]->MARGIN_FREE = round($oResult[$dKey]->MARGIN_FREE, 2);\n $oResult[$dKey]->LEVERAGE = round($oResult[$dKey]->LEVERAGE, 2);\n }\n /* =============== Preparing Output =============== */\n\n return $oResult;\n }", "protected function getUserId() {}", "protected function getUserId() {}", "public static function get_users_in($itemids) {}", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('indexOfMember', 'search');\n }", "public function getUserIdWithUsername($id);", "public function beforeFilter() {\n $this->loadModel('User');\n\n $uid = CakeSession::read(\"Auth.User.id\");\n $params = array(\n 'fields' => array('name', 'verified'),\n 'conditions' => array('id' => $uid),\n );\n $userdata = $this->User->find('first', $params);\n $this->set('name', $userdata['User']['name']);\n }", "public function beforeFilter() {\n //parent::beforeFilter();\n // Call to the function to allow actions to non logged in users. \n if ($this->Auth->user('id')) {\n \t$this->Auth->allow('*');\n\n }\n\n }", "public function getwatchesbyuserid($userdata, $offset, $pagesize, $filter, $orderid) {\n\t\t$user_id = $userdata['id'];\n\t\tfor ($i = 0; $i < 2; $i++) {\n\n\t\t\t// get watches now\n\t\t\t$where = 'users_watches.user_id = '. $user_id;\n\t\t\tif ($filter != '') {\n\t\t\t\t$namefilter = '';\n\t\t\t\tif (ctype_digit($filter) == false) {\n\t\t\t\t\t$filter = $this->isirdb->escape_like_str($filter);\n\t\t\t\t}\n\n\t\t\t\tif ($userdata['is_automatic_filling_enabled'] == 0) {\n\t\t\t\t\t$namefilter = 'users_watches.name LIKE \"'. $filter .'%\" OR users_watches.firstname LIKE \"'. $filter .'%\"';\n\t\t\t\t} else {\n\t\t\t\t\t$namefilter = 'users_watches.official_name LIKE \"'. $filter .'%\"';\n\t\t\t\t}\n\n\t\t\t\tif (ctype_digit($filter) == true) {\n\t\t\t\t\t$where = $where \n\t\t\t\t\t\t\t.' AND (users_watches.ic = '. $filter\n\t\t\t\t\t\t\t.' OR users_watches.rc = '. $filter\n\t\t\t\t\t\t\t.' OR '. $namefilter .')';\n\t\t\t\t} else {\n\t\t\t\t\t$where = $where .' AND '. $namefilter;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->isirdb->where($where);\n\n\t\t\t// order the data\n\t\t\tswitch ($orderid) {\n\t\t\t\tcase $this->config->item('ORDER_NAME'): \n\t\t\t\t\tif ($userdata['is_automatic_filling_enabled'] == 0) {\n\t\t\t\t\t\t$this->isirdb->order_by('users_watches.name');\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->isirdb->order_by('users_watches.official_name');\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase $this->config->item('ORDER_INSERT'): \n\t\t\t\t\t$this->isirdb->order_by('users_watches.id');\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t}\t\t\n\n\t\t\tif ($i == 0) {\n\t\t\t\t$this->isirdb->group_by('users_watches.id');\n\t\t\t\t$this->isirdb->limit($pagesize, $offset);\t\t\t\t\t\n\t\t\t\t$this->buildselectforwatches();\t\t\n\n\t\t\t\t// get the rows for the first page\n\t\t\t\t$ret = $this->isirdb->get('users_watches')->result_array();\t\t\t\t\n\t\t\t} else {\n\t\t\t\t// get the number of rows\n\t\t\t\t$this->isirdb->select(\"COUNT(id) AS size\");\n\t\t\t\t$ret[0]['size'] = $this->isirdb->get(\"users_watches\")->first_row()->size;\t\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\treturn $ret;\n\t}", "public function filterByUserId($userId = null, $comparison = null)\n\t{\n\t\tif (is_array($userId)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($userId['min'])) {\n\t\t\t\t$this->addUsingAlias(RepositoryPeer::USER_ID, $userId['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($userId['max'])) {\n\t\t\t\t$this->addUsingAlias(RepositoryPeer::USER_ID, $userId['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(RepositoryPeer::USER_ID, $userId, $comparison);\n\t}", "function UserIDAllow($id = \"\") {\n\t\t$allow = EW_USER_ID_ALLOW;\n\t\tswitch ($id) {\n\t\t\tcase \"add\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"gridadd\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn (($allow & 1) == 1);\n\t\t\tcase \"edit\":\n\t\t\tcase \"gridedit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn (($allow & 4) == 4);\n\t\t\tcase \"delete\":\n\t\t\t\treturn (($allow & 2) == 2);\n\t\t\tcase \"view\":\n\t\t\t\treturn (($allow & 32) == 32);\n\t\t\tcase \"search\":\n\t\t\t\treturn (($allow & 64) == 64);\n\t\t\tdefault:\n\t\t\t\treturn (($allow & 8) == 8);\n\t\t}\n\t}", "function UserIDAllow($id = \"\") {\n\t\t$allow = EW_USER_ID_ALLOW;\n\t\tswitch ($id) {\n\t\t\tcase \"add\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"gridadd\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn (($allow & 1) == 1);\n\t\t\tcase \"edit\":\n\t\t\tcase \"gridedit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn (($allow & 4) == 4);\n\t\t\tcase \"delete\":\n\t\t\t\treturn (($allow & 2) == 2);\n\t\t\tcase \"view\":\n\t\t\t\treturn (($allow & 32) == 32);\n\t\t\tcase \"search\":\n\t\t\t\treturn (($allow & 64) == 64);\n\t\t\tdefault:\n\t\t\t\treturn (($allow & 8) == 8);\n\t\t}\n\t}", "function UserIDAllow($id = \"\") {\n\t\t$allow = EW_USER_ID_ALLOW;\n\t\tswitch ($id) {\n\t\t\tcase \"add\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"gridadd\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn (($allow & 1) == 1);\n\t\t\tcase \"edit\":\n\t\t\tcase \"gridedit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn (($allow & 4) == 4);\n\t\t\tcase \"delete\":\n\t\t\t\treturn (($allow & 2) == 2);\n\t\t\tcase \"view\":\n\t\t\t\treturn (($allow & 32) == 32);\n\t\t\tcase \"search\":\n\t\t\t\treturn (($allow & 64) == 64);\n\t\t\tdefault:\n\t\t\t\treturn (($allow & 8) == 8);\n\t\t}\n\t}", "abstract protected function getUserId() ;", "public function recherche_userid_by_Alias() {\n\t\t$this->onDebug ( __METHOD__, 1 );\n\t\t$datas = $this->creer_definition_userByAlias_get_ws ();\n\t\t$this->onDebug ( $datas, 1 );\n\t\t$liste_resultat = $this->getObjetZabbixWsclient ()\n\t\t\t->userGet ( $datas );\n\t\tif (isset ( $liste_resultat [0] ) && isset ( $liste_resultat [0] [\"userid\"] )) {\n\t\t\t$this->setUsrId ( $liste_resultat [0] [\"userid\"] );\n\t\t}\n\t\t\n\t\treturn $this;\n\t}", "public function users_to_query()\n\t{\n\t\treturn array($this->get_data('from_user_id'));\n\t}", "public function hook_query_index(&$query) {\n/*\t //Your code here\n $userId = CRUDBooster::myId();\n//\t echo $userId;\n\t $isAdmin = CRUDBooster::isSuperadmin();\n\t $storeAssignedtoUser = DB::table('srv_centers')\n ->where('cms_user_id', '=', $userId)\n ->first();\n\t if ($isAdmin) {\n\n\t }else {\n\t $query->where('cms_users.id',$storeAssignedtoUser->cms_user_id);\n\t }\n*/\n\t }", "public function filterByPrimaryKeys($keys)\n\t{\n\t\treturn $this->addUsingAlias(UserPeer::UID, $keys, Criteria::IN);\n\t}", "function beforeFilter() { \n\t\tparent::beforeFilter();\n //$this->facebook_id = $this->facebookId;\n $this->loadModel('User'); \n $this->user = $this->User->find('first', array('conditions' => array('User.account_id' => $this->account_id))); \n $this->User->id = $this->user['User']['id'];\n //$id = preg_replace(\"/[^A-Za-z0-9-]/\",\"\",$this->facebook->api_client->session_key);\n\t\t//$this->Session->id($id); \n\t\t$this->loadModel('Message');\n\t\t$this->set('newMessages', $this->Message->checkUnreadMessages($this->user['User']['id']));\n\t\t$this->set('parms', $this->parms);\n }", "public static function handleTransactionFilter ($filter, $userId) {\n switch ($filter)\n {\n case Config::get('constant.E_VOUCHER_SENT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_TRANSACTION_TYPE') . \"' AND user_transactions.from_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_RECEIVED_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.MONEY_SENT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ONE_TO_ONE_TRANSACTION_TYPE') . \"' AND user_transactions.from_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.MONEY_RECEIVED_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ONE_TO_ONE_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.ADDED_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ADD_MONEY_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.WITHDRAW_MONEY_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.WITHDRAW_MONEY_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.CASHIN_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.CASH_IN_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.CASHOUT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.CASH_OUT_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.ADDED_COMMISSION_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ADD_COMMISSION_TO_WALLET_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.WITHDRAWAL_OF_COMMISSION_FROM_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.WITHDRAW_MONEY_FROM_COMMISSION_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_ADDED_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.REDEEMED_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_CASHED_OUT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_CASHOUT_TRANSACTION_TYPE') . \"'\";\n break;\n default: // code to be executed if filter doesn't match any cases\n $whereTransactionTypeClause = \"1=1\";\n } \n return $whereTransactionTypeClause;\n }", "public function actionFilter($course_domain,$role, $department){\n\n //redirect a user if not super admin\n if (!Yii::$app->CustomComponents->check_permission('all_users')) {\n return $this->redirect(['site/index']);\n }\n\n if(empty($course_domain) && empty($role) && empty($department)){\n return $this->redirect(['dv-users/index']);\n }\n\n //For Role\n if (!empty($role)) {\n $urole = Yii::$app->db->createCommand(\"SELECT uid FROM assist_user_meta WHERE meta_key = 'role' AND meta_value = '$role' \")->queryAll();\n } else {\n $urole = array();\n }\n\n $uteam = array();\n\n $result = array();\n if (!empty($urole)) {\n if (empty($team)) {\n $result = $urole;\n } else {\n foreach ($urole as $key => $val) {\n if (in_array($val, $uteam)) {\n $result[] = $val;\n }\n }\n }\n } else {\n $result = $uteam;\n }\n //End For Role\n //For Department\n if (!empty($department)) {\n $udep = Yii::$app->db->createCommand(\"SELECT id FROM assist_users WHERE department = '$department' AND status = 1 \")->queryAll();\n $new_udep = array();\n foreach ($udep as $key => $value) {\n $new_udep[] = array('uid' => $value['id']);\n }\n } else {\n $new_udep = array();\n }\n\n $result2 = array();\n if (!empty($result)) {\n if (empty($department)) {\n $result2 = $result;\n } else {\n foreach ($result as $key => $val) {\n if (in_array($val, $new_udep)) {\n $result2[] = $val;\n }\n }\n }\n } else {\n $result2 = $new_udep;\n }\n //End For Department\n //Begin of domain filter Added on 03 June 2019\n if(!empty($course_domain)){\n $users_array = array();\n $users = DvUsers::find()->all();\n foreach($users as $user){ \n if($user->course!='' && $user->course!=\"da\" && $user->course!=\"dm\" && $user->course!=\"dm,da\"){\n $module_ids_array = explode(',',$user->course);\n $module_array = ArrayHelper::map(DvModuleModel::find()->where(['IN','id',$module_ids_array])->all(),'id','mcourse');\n $module_domain = implode(',',array_unique($module_array));\n $users_array[$user->id] = $module_domain;\n }else{\n $module_domain = $user->course;\n $users_array[$user->id] = $module_domain;\n }\n }\n $users_ids_array = array();\n foreach ($users_array as $key => $value) {\n if(in_array($course_domain,explode(',',$value))){\n $users_ids_array[] = ['uid'=>$key];\n }\n }\n }else{\n $users_ids_array = array();\n }\n //End of domain filter Added on 03 June 2019\n $result3 = array();\n if (!empty($result2)) {\n if (empty($course_domain)) {\n $result3 = $result2;\n } else {\n foreach ($result2 as $key => $val) {\n if (in_array($val, $users_ids_array)) {\n $result3[] = $val;\n }\n }\n }\n } else {\n $result3 = $users_ids_array;\n }\n //$count = count($result2);\n $count = count($result3);\n $output = '';\n $i = 0;\n foreach ($result3 as $key => $value) {\n foreach ($value as $key => $value2) {\n $i++;\n $output .= $value2;\n if ($count > $i) {\n $output .= ', ';\n }\n }\n }\n $ids = explode(',', $output);\n $ids = array_unique($ids);\n $count = count($ids);\n $query = DvUsers::find()->where([\"status\" => 1]);\n $pagination = new Pagination(['totalCount' => $count, 'pageSize' => 50]);\n $models = $query->Where(['id' => $ids])->offset($pagination->offset)->limit($pagination->limit)->all();\n\n // echo \"<pre>\"; print_r($models); die;\n\n return $this->render('index', [ 'users' => $models, 'total_records' => $count, 'pages' => $pagination]);\n }", "private function loadOfferFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'conditions' => array(\n 'CompaniesUser.company_id' => $companyId,\n 'CompaniesUser.status' => 'ACTIVE'\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 60 AND 120,1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age >= 121, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM users as a, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcompanies_users as b where a.id=b.user_id and b.status='ACTIVE' and b.company_id = {$this->Session->read('CompanyLoggedIn.Company.id')}) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "public function set_user_id($userid, $ornone = true) {\n $this->userids = array($userid);\n $this->allownouser = $ornone;\n }", "public function authorizeUserById($userId, $username);", "public function getCountUsersList($filterParameters)\r\n {\r\n\r\n\t\t$mail = (string) $filterParameters['mail'];\r\n $firstName = (string) $filterParameters['firstName'];\r\n $lastName = (string) $filterParameters['lastName'];\r\n $cp = (string) $filterParameters['cp'];\r\n $idUser = (String) $filterParameters['idUser'];\r\n $phoneNumber = (int) $filterParameters['phone'];\r\n $country = (int) $filterParameters['country'];\r\n $qb = $this->em->createQueryBuilder()\r\n ->from('NearteamUserBundle:User', 'c')\r\n ->leftJoin('c.country', 'cnt') \r\n ->select('c.idUser,c.firstName, c.lastName, c.email, c.createDt,c.updateDt,c.birthDate, c.phone, c.cp,cnt.name')\r\n ->where('c.isDeleted = false');\r\n if (!(empty($mail))) {\r\n $qb->andwhere('c.email LIKE :email')\r\n ->setParameter('email', '%' . $mail . '%');\r\n }\r\n\t\t\r\n\t\t if((!(empty($phoneNumber))))\r\n\t\t { \r\n\t\t\t$qb->andwhere('c.phone LIKE :phone')\r\n ->setParameter('phone', '%'.$phoneNumber.'%');\r\n\t\t\t\r\n\t\t }\r\n\r\n if (!(empty($firstName))) {\r\n\r\n $qb->andwhere('c.firstName = :firstName');\r\n\r\n $qb->setParameter('firstName', $firstName);\r\n }\r\n\r\n if (!(empty($lastName))) {\r\n\r\n $qb->andwhere('c.lastName LIKE :lastName');\r\n $qb->setParameter('lastName', '%' . $lastName . '%');\r\n }\r\n\r\n\r\n // if (!(empty($city))) {\r\n\r\n // $qb->andwhere('ct.idCity = :city');\r\n // $qb->setParameter('city', $city);\r\n // }\r\n\r\n if (!(empty($idUser))) {\r\n\r\n $qb->andwhere('c.idUser LIKE :idUser');\r\n\r\n $qb->setParameter('idUser', '%' . $idUser . '%');\r\n }\r\n\r\n \r\n \r\n\r\n\r\n if (!(empty($country))) {\r\n\r\n\r\n $qb->andwhere('cnt.idCountry = :country');\r\n\r\n $qb->setParameter('country', $country);\r\n }\r\n\r\n $qb->groupBy('c.idUser');\r\n \r\n return $qb;\r\n\t\t\r\n }", "static function get_query_lists_of_user($id) {\n $lists = array_merge(self::get_word_lists_of_user($id), self::get_list_of_shared_word_lists_with_user($id));\n for ($i = 0; $i < count($lists); $i++) {\n // stores whether the requesting unser is the list creator\n $lists[$i]->allowSharing = ($id == $lists[$i]->creator->id);\n\n // stores whether the requesting user is allowed to edit the list\n $lists[$i]->allowEdit = ($lists[$i]->allowSharing) ? TRUE : $lists[$i]->get_editing_permissions_for_user($id);\n }\n return $lists;\n }", "public function rest_query_filter( $query_args, $request ) {\n\t\t\t$query_args = parent::rest_query_filter( $query_args, $request );\n\n\t\t\t$route_url = $request->get_route();\n\t\t\t$ld_route_url = '/' . $this->namespace . '/' . $this->rest_base . '/' . absint( $request['id'] ) . '/' . $this->rest_sub_base;\n\t\t\tif ( ( ! empty( $route_url ) ) && ( $ld_route_url === $route_url ) ) {\n\n\t\t\t\t$user_id = $request['id'];\n\t\t\t\tif ( empty( $user_id ) ) {\n\t\t\t\t\treturn new WP_Error( 'rest_user_invalid_id', esc_html__( 'Invalid User ID.', 'learndash' ), array( 'status' => 404 ) );\n\t\t\t\t}\n\n\t\t\t\tif ( is_user_logged_in() ) {\n\t\t\t\t\t$current_user_id = get_current_user_id();\n\t\t\t\t} else {\n\t\t\t\t\t$current_user_id = 0;\n\t\t\t\t}\n\n\t\t\t\t$query_args['post__in'] = array( 0 );\n\t\t\t\tif ( ! empty( $current_user_id ) ) {\n\t\t\t\t\t$group_ids = learndash_get_users_group_ids( $user_id );\n\t\t\t\t\tif ( ! empty( $group_ids ) ) {\n\t\t\t\t\t\t$query_args['post__in'] = $group_ids;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $query_args;\n\t\t}", "public function addFilter($userId, $filter)\n {\n list($filter, $result) = $this->validateFilter($filter);\n\n // No errors found? add it to the datbase\n if ($result->isSuccess()) {\n $this->_daoFactory->getUserFilterDao()->addFilter($userId, $filter);\n } // if\n\n return $result;\n }", "private function listUsers()\n {\n $users = get_users();\n $user_ids = array();\n\n foreach ($users as $u) {\n $user_ids[] = $u['id'];\n }\n\n if (count($this->ids) != 0) {\n return array_intersect($this->ids, $user_ids);\n } else {\n return $user_ids;\n }\n }", "public function setFiltersAsDefault($userId)\n {\n // Remove all filters for the Anonymous user\n $this->_daoFactory->getUserFilterDao()->removeAllFilters($this->_settings->get('nonauthenticated_userid'));\n\n // and copy them from the specified user to anonymous\n $this->_daoFactory->getUserFilterDao()->copyFilterList($userId, $this->_settings->get('nonauthenticated_userid'));\n\n return new Dto_FormResult('success');\n }", "public function getUser($id);", "function YWR_2020_pre_user_query($user_search)\n{\n\n $user = wp_get_current_user();\n\n if (!current_user_can('manage_options')) {\n\n global $wpdb;\n\n $user_search->query_where =\n str_replace('WHERE 1=1',\n \"WHERE 1=1 AND {$wpdb->users}.ID IN (\n SELECT {$wpdb->usermeta}.user_id FROM $wpdb->usermeta\n WHERE {$wpdb->usermeta}.meta_key = '{$wpdb->prefix}capabilities'\n AND {$wpdb->usermeta}.meta_value NOT LIKE '%administrator%')\",\n $user_search->query_where\n );\n\n }\n}", "static function findOnlyUsersFromUserListingTable($external_table, $field_prefix, $filter, $min_state = STATE_ARCHIVED) {\n $users_table = TABLE_PREFIX . 'users';\n $user_id_field = \"{$field_prefix}_id\";\n\n $where_part = DB::prepare(\"($users_table.id = $external_table.$user_id_field AND $users_table.state >= ?)\", $min_state);\n\n if($filter) {\n $where_part .= \" AND ($filter)\";\n } // if\n\n return Users::findBySQL(\"SELECT DISTINCT $users_table.* FROM $users_table, $external_table WHERE $where_part ORDER BY CONCAT($users_table.first_name, $users_table.last_name, $users_table.email)\");\n }", "function plexIDToUsername($id, $data) {\n\t foreach ($data->User as $usr){\n\t\tif ($usr->attributes()['id'] == $id) {\n\t\t\treturn $usr->attributes()['username'];\n\t\t\tbreak;\n\t\t}\n\t }\n }", "public function setFilterList($userId, $filterList)\n {\n // remove all existing filters\n $this->_daoFactory->getUserFilterDao()->removeAllFilters($userId);\n\n // and add the filters from the list\n foreach ($filterList as $filter) {\n $this->_daoFactory->getUserFilterDao()->addFilter($userId, $filter);\n } // foreach\n }", "public function get_user_views($filters)\n {\n $active_login_userid = $filters['active_login_userid'];\n $owner_profile_userid = $filters['owner_profile_userid'];\n \n $limit = 20;\n \n $sql = \"SELECT upv.id,\n upv.viewer_userid,\n u.profile_code,\n u.first_name,\n u.last_name,\n ub.profilephoto,\n upv.date,\n ucol.course,\n u.education as schoolname,\n uwork.position as occupation,\n case \n when uf2.status=1 then '1'\n when uf2.status=0 then '2'\n when uf3.status=0 then '3' \n else '4'\n end 'friend_status',\n case\n when ua.status=1 then \n case ua2.status\n when 1 then '6'\n else '1'\n end\n when ua.status=0 then '2'\n when ua2.status=1 then '3'\n when ua2.status=0 then '4' \n else '5'\n end 'following_status' \n FROM userprofileview upv\n LEFT JOIN users u ON u.id = upv.viewer_userid\n LEFT JOIN userbasicinfo ub ON ub.user_id = upv.viewer_userid\n LEFT JOIN useracquiantances ua on ua.user_one_id = upv.viewer_userid \n AND ua.user_two_id = {$active_login_userid}\n LEFT JOIN useracquiantances ua2 on ua2.user_one_id = {$active_login_userid} \n AND ua2.user_two_id = upv.viewer_userid\n LEFT JOIN userfriends uf2 on uf2.user_one_id = upv.viewer_userid \n AND uf2.user_two_id = {$active_login_userid}\n LEFT JOIN userfriends uf3 ON uf3.user_one_id={$active_login_userid} \n AND uf3.user_two_id=upv.viewer_userid\n LEFT JOIN \n (SELECT uc1.user_id, uc1.yearstarted,uc1.schoolname,uc1.course, uc1.id\n FROM usereduccollege uc1\n INNER JOIN(\n SELECT user_id, max(yearstarted) as yearstarted, max(id) as id \n FROM usereduccollege \n GROUP BY user_id\n ORDER BY id DESC) uc2 ON uc1.user_id = uc2.user_id AND uc1.yearstarted = uc2.yearstarted AND uc1.id=uc2.id) ucol ON ucol.user_id = u.id\n LEFT JOIN\n (SELECT uw1.user_id, uw1.yearstarted,uw1.position, uw1.id\n FROM userworkhistory uw1\n INNER JOIN (\n SELECT user_id, max(yearstarted) as yearstarted, max(id) as id \n FROM userworkhistory \n GROUP BY user_id\n ORDER BY id DESC) uw2 ON uw1.user_id = uw2.user_id AND uw1.yearstarted = uw2.yearstarted AND uw1.id=uw2.id) uwork ON uwork.user_id = u.id\n WHERE upv.profile_userid={$owner_profile_userid}\n ORDER BY date DESC\n LIMIT {$limit}\";\n \n return collect($this->_helper->convert_sql_to_array( DB::select(DB::raw($sql)) )); \n }", "public function filterByUserId($userId = null, $comparison = null)\n\t{\n\t\tif (is_array($userId)) {\n\t\t\t$useMinMax = false;\n\t\t\tif (isset($userId['min'])) {\n\t\t\t\t$this->addUsingAlias(TblAdherentPeer::USER_ID, $userId['min'], Criteria::GREATER_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif (isset($userId['max'])) {\n\t\t\t\t$this->addUsingAlias(TblAdherentPeer::USER_ID, $userId['max'], Criteria::LESS_EQUAL);\n\t\t\t\t$useMinMax = true;\n\t\t\t}\n\t\t\tif ($useMinMax) {\n\t\t\t\treturn $this;\n\t\t\t}\n\t\t\tif (null === $comparison) {\n\t\t\t\t$comparison = Criteria::IN;\n\t\t\t}\n\t\t}\n\t\treturn $this->addUsingAlias(TblAdherentPeer::USER_ID, $userId, $comparison);\n\t}", "function get_users_of_blog($id = '')\n {\n }", "private function filterByPermission(){\n\n }", "abstract protected function foreignIDFilter($id = null);", "public function updateUserFilters($forceReset)\n {\n if (($this->_settings->get('securityversion') < 0.12) || $forceReset) {\n // DB connection\n $dbCon = $this->_dbCon;\n\n // delete all existing filters\n $dbCon->rawExec(\"DELETE FROM filters WHERE filtertype = 'filter'\");\n\n $userList = $this->_userDao->getUserList();\n\n // loop through every user and fix it\n foreach ($userList as $user) {\n /* Image */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Image', 'film', 0, 0, 'cat0_z0')\");\n $beeldFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'DivX', 'divx', 0, \".$beeldFilterId.\", 'cat0_z0_a0')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'WMV', 'wmv', 1, \".$beeldFilterId.\", 'cat0_z0_a1')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'MPEG', 'mpg', 2, \".$beeldFilterId.\", 'cat0_z0_a2')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'DVD', 'dvd', 3, \".$beeldFilterId.\", 'cat0_z0_a3,cat0_z0_a10')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'HD', 'hd', 4, \".$beeldFilterId.\", 'cat0_z0_a4,cat0_z0_a6,cat0_z0_a7,cat0_z0_a8,cat0_z0_a9')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Series', 'tv', 5, \".$beeldFilterId.\", 'cat0_z1')\");\n\n /* Books */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Books', 'book', 6, \".$beeldFilterId.\", 'cat0_z2')\");\n $boekenFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Dutch', 'book', 0, \".$boekenFilterId.\", 'cat0_z2_c11')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'English', 'book', 1, \".$boekenFilterId.\", 'cat0_z2_c10')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Others', 'book', 2, \".$boekenFilterId.\", 'cat0_z2,~cat0_z2_c10,~cat0_z2_c11')\");\n\n /* Erotica */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Erotica', 'female', 7, \".$beeldFilterId.\", 'cat0_z3')\");\n $erotiekFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Hetero', 'female', 0, \".$erotiekFilterId.\", 'cat0_z3_d75,cat0_z3_d23')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Gay male', 'female', 1, \".$erotiekFilterId.\", 'cat0_z3_d74,cat0_z3_d24')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Gay female', 'female', 2, \".$erotiekFilterId.\", 'cat0_z3_d73,cat0_z3_d25')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Bi', 'female', 3, \".$erotiekFilterId.\", 'cat0_z3_d72,cat0_z3_d26')\");\n\n /* Music */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Sounds', 'music', 2, 0, 'cat1')\");\n $muziekFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Compressed', 'music', 0, \".$muziekFilterId.\", 'cat1_a0,cat1_a3,cat1_a5,cat1_a6')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Lossless', 'music', 1, \".$muziekFilterId.\", 'cat1_a2,cat1_a4,cat1_a7,cat1_a8')\");\n\n /* Games */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Games', 'controller', 3, 0, 'cat2')\");\n $gameFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Windows', 'windows', 0, \".$gameFilterId.\", 'cat2_a0')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Mac / Linux', 'linux', 1, \".$gameFilterId.\", 'cat2_a1,cat2_a2')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Playstation', 'playstation', 2, \".$gameFilterId.\", 'cat2_a3,cat2_a4,cat2_a5,cat2_a12')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'XBox', 'xbox', 3, \".$gameFilterId.\", 'cat2_a6,cat2_a7')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Nintendo', 'nintendo_ds', 4, \".$gameFilterId.\", 'cat2_a8,cat2_a9,cat2_a10,cat2_a11')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Smartphone / PDA', 'pda', 5, \".$gameFilterId.\", 'cat2_a13,cat2_a14,cat2_a15')\");\n\n /* Applications */\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Applications', 'application', 4, 0, 'cat3')\");\n $appFilterId = $dbCon->lastInsertId('filters');\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Windows', 'vista', 0, \".$appFilterId.\", 'cat3_a0')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Mac / Linux / OS2', 'linux', 1, \".$appFilterId.\", 'cat3_a1,cat3_a2,cat3_a3')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Navigation', 'ipod', 1, \".$appFilterId.\", 'cat3_a5')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Windows Phone', 'pda', 2, \".$appFilterId.\", 'cat3_a4')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Apple iOS', 'mac', 2, \".$appFilterId.\", 'cat3_a6')\");\n $dbCon->rawExec('INSERT INTO filters(userid,filtertype,title,icon,torder,tparent,tree) VALUES('.$user['userid'].\", 'filter', 'Android', 'phone', 3, \".$appFilterId.\", 'cat3_a7')\");\n } // foreach\n } // if\n }", "public function addIdsToFilter($profileIds)\n {\n \t$this->addFieldToFilter('main_table.profile_id', $profileIds);\n \treturn $this;\n }" ]
[ "0.75572574", "0.75572574", "0.75572574", "0.75572574", "0.75572574", "0.75572574", "0.75572574", "0.7287119", "0.72748923", "0.7077591", "0.7059428", "0.6693103", "0.655361", "0.6499877", "0.63448834", "0.62926024", "0.6281053", "0.5964897", "0.5864233", "0.5860307", "0.58135855", "0.58049846", "0.57846165", "0.5748062", "0.57325053", "0.5694912", "0.56936884", "0.56547475", "0.5615525", "0.55901057", "0.5564149", "0.55509186", "0.55426687", "0.5533857", "0.552643", "0.55207556", "0.5516062", "0.5515365", "0.5510263", "0.5505096", "0.5502778", "0.55005795", "0.54974604", "0.5493668", "0.5493513", "0.54883724", "0.548327", "0.5474243", "0.54531837", "0.5447114", "0.5440386", "0.5432155", "0.5431006", "0.54149324", "0.54149324", "0.539054", "0.53824234", "0.53824234", "0.538044", "0.53781945", "0.5372319", "0.53652215", "0.5364637", "0.5355329", "0.53356266", "0.53301984", "0.53301984", "0.53301984", "0.5329995", "0.53111243", "0.53102636", "0.5309871", "0.5307203", "0.53067136", "0.5301396", "0.5297886", "0.52930725", "0.52927935", "0.5291753", "0.5286685", "0.527883", "0.5277525", "0.5274885", "0.5268145", "0.526586", "0.52657163", "0.52626896", "0.52521086", "0.52518874", "0.5250009", "0.5244939", "0.5243125", "0.5241319", "0.52384824", "0.52256674", "0.52232856", "0.52213943" ]
0.7086841
12
Check if User ID security allows view all
function UserIDAllow($id = "") { $allow = EW_USER_ID_ALLOW; switch ($id) { case "add": case "copy": case "gridadd": case "register": case "addopt": return (($allow & 1) == 1); case "edit": case "gridedit": case "update": case "changepwd": case "forgotpwd": return (($allow & 4) == 4); case "delete": return (($allow & 2) == 2); case "view": return (($allow & 32) == 32); case "search": return (($allow & 64) == 64); default: return (($allow & 8) == 8); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function canViewUsers( $sessionID ){\r\n\t\treturn $this->getAccessLevel() > 9;\r\n\t}", "private function userHasAccess()\n {\n $required_perm = $this->route['perm'];\n $user_group = $_SESSION['user_group'];\n if ($required_perm == 'all') {\n return true;\n } elseif ($user_group == $required_perm) {\n return true;\n }\n return false;\n }", "private static function requireViewPermission() {\n\t\t$filter = [];\n\t\tif(Session::isAuthor())\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_REGISTERED.','.ACCESS_ADMIN.')';\n\t\telseif(Session::isRegistered())\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_REGISTERED.')';\n\t\telse\n\t\t\t$filter[] = '`accesslevel` IN ('.ACCESS_PUBLIC.','.ACCESS_GUEST.')';\n\t\t$filter[] = \"`status`=\".STATUS_PUBLISHED;\n\t\treturn implode(' AND ',$filter) ?? '1';\n\t}", "private function allowModify()\n { \n if($this->viewVar['loggedUserRole'] <= 40 )\n {\n return TRUE;\n }\n else\n {\n return FALSE;\n }\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "public function authorize()\n {\n return $this->user()->id === $this->route('report')->user_id;\n }", "function userCanViewUser( $sessionID, $userID ) {\r\n\t\t$thisUserID = $_SESSION['userid'];\r\n\t\tif($thisUserID == $userID)\r\n\t\t\treturn TRUE;\r\n\t\telse\r\n\t\t\treturn $this->getAccessLevel() > 9;\r\n\t}", "public function viewAny($user)\n {\n return $user->hasPermissionTo('viewAny ' . static::$key);\n }", "private function permissible($userId)\n {\n $authUser = Auth::user();\n return $authUser->role==config('USER.ROLE.ADMIN')||$authUser->id==$userId;\n }", "public function authorize()\n {\n $id = $this->route('id');\n if ($id) {\n $giftList = GiftList::find($id);\n if (!$giftList || $giftList->user->id != Auth::user()->id) {\n return false;\n }\n }\n return true;\n }", "public function viewAny(User $user)\n {\n return $user->can('list users');\n }", "public function rest_api_permission() {\n return apply_filters('h5p_rest_api_all_permission', current_user_can('edit_others_h5p_contents'));\n }", "function checkSessionAll(){\r\n \tif($this->Session->check('User')){\r\n \t\t//the user is logged in, allow the wiki edit featur\r\n \t\t//the layout will know more than we do now \r\n \t\t$cuser = $this->Session->read('User');\r\n \t\tif($cuser['account_type'] == 'admin'){\r\n \t\t\t$this->set('admin_enable', true);\r\n \t\t}else{\r\n \t\t\t$this->set('admin_enable', false);\r\n \t\t}\r\n \t\t\r\n \t}else{\r\n \t\t$this->set('admin_enabled', false);\r\n \t}\r\n }", "public static function authorizedToViewAny(Request $request)\n {\n return $_SERVER['nova.authorize.forbidden-users'] ?? false;\n }", "public function authorize()\n {\n\n return true;\n\n if ($this->route('self_report')) { // If ID we must be changing an existing record\n return Auth::user()->can('self_report update');\n } else { // If not we must be adding one\n return Auth::user()->can('self_report add');\n }\n\n }", "public function authorize()\n {\n /**\n * @var User $user\n * @var Document $document\n */\n $user = Auth::user();\n $document = $this->route('document');\n\n return (int)$user->id === (int)$document->user_id;\n }", "public static function canDisplayUsersMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_USER);\n\t}", "public function canView()\n\t{\n\t\treturn \\IPS\\Member::loggedIn()->hasAcpRestriction( 'nexus' , 'transactions', 'transactions_manage' );\n\t}", "function postasevent_limit_rest_view_to_logged_in_users( $is_allowed, $cmb_controller ) {\n\tif ( ! is_user_logged_in() ) {\n\t\t$is_allowed = false;\n\t}\n\n\treturn $is_allowed;\n}", "public function canView()\n {\n return !$this->is_private ||\n ( Auth::user() && ( $this->sender_id === Auth::id() || $this->recipient_id === Auth::id() ) );\n }", "function can_visit_user($id) {\r\n $sql = \"select id from user where id=?\";\r\n $result = $this->db->query($sql, $id);\r\n if ($result->num_rows() == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "function checkAccess () {\n if ($GLOBALS[\"pagedata\"][\"login\"] == 1) {\n if ($this->userid && $GLOBALS[\"user_show\"] == true) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return true;\n }\n }", "function checkAccess () {\n if ($GLOBALS[\"pagedata\"][\"login\"] == 1) {\n if ($this->userid && $GLOBALS[\"user_show\"] == true) {\n return true;\n }\n else {\n return false;\n }\n }\n else {\n return true;\n }\n }", "public function authorize()\n {\n //Get the 'mark' id\n switch ((int) request()->segment(6)) {\n case 0:\n return access()->allow('deactivate-users');\n break;\n\n case 1:\n return access()->allow('reactivate-users');\n break;\n }\n\n return false;\n }", "public static function currentUserHasAccess() {\n return current_user_can('admin_access');\n }", "function userCanViewStudent( $sessionID ){\r\n\t\treturn $this->getAccessLevel() > 3;\r\n\t}", "function canView($user) {\n if($this->isOwner()) {\n return true;\n } // if\n \n return in_array($this->getId(), $user->visibleCompanyIds());\n }", "public function canModifyVisibilityOfUsers();", "public function authorize()\n {\n // this was my best guess\n return $this->user()->id === $this->route('user')->id;\n }", "public function isAllowedForUser(){\n\t\treturn true;\n\t}", "public function canEdit()\n {\n if(!Auth::check())\n {\n return false;\n }\n //If the user is active/logged in, return true so that we can display user's specific objects\n if(Auth::user()->id===$this->user_id)\n {\n return true;\n }\n //By default\n return false;\n }", "public function userIDAllow($id = \"\")\n\t{\n\t\t$allow = $this->UserIDAllowSecurity;\n\t\tswitch ($id) {\n\t\t\tcase \"add\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"gridadd\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn (($allow & 1) == 1);\n\t\t\tcase \"edit\":\n\t\t\tcase \"gridedit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn (($allow & 4) == 4);\n\t\t\tcase \"delete\":\n\t\t\t\treturn (($allow & 2) == 2);\n\t\t\tcase \"view\":\n\t\t\t\treturn (($allow & 32) == 32);\n\t\t\tcase \"search\":\n\t\t\t\treturn (($allow & 64) == 64);\n\t\t\tcase \"lookup\":\n\t\t\t\treturn (($allow & 256) == 256);\n\t\t\tdefault:\n\t\t\t\treturn (($allow & 8) == 8);\n\t\t}\n\t}", "public function viewAny(User $user)\n {\n return $user->hasPermissionTo('view users');\n }", "public function accessibleByCurrentUser(){\n // return true if AYC user\n if(\\Auth::isSuperAdmin()) return true;\n\n // otherwise check if personally added to this\n $allowedPages = \\Auth::getAllowedPages();\n if(in_array($this->id, $allowedPages)) return true;\n\n // if not specifically added personally to this page\n // check the user group can access this page\n if($this->groupHasPermission(\\Auth::getUserLevel())) return true;\n\n // otherwise return false\n return false;\n\n }", "function isUsersAccessable($path)\n\t{\n\t\t$AllArray =array('user/index',\n\t\t\t\t\t\t'user/listing',\n\t\t\t\t\t\t'user/add',\n\t\t\t\t\t\t'user/edit',\n\t\t\t\t\t\t'project/index',\n\t\t\t\t\t\t'project/listing',\n\t\t\t\t\t\t'project/add',\n\t\t\t\t\t\t'project/edit',\n\t\t\t\t\t\t'customer/index',\n\t\t\t\t\t\t'customer/listing',\n\t\t\t\t\t\t'customer/add',\n\t\t\t\t\t\t'customer/edit',\n\t\t\t\t\t\t'question/index',\n\t\t\t\t\t\t'question/listing',\n\t\t\t\t\t\t'question/add',\n\t\t\t\t\t\t'question/edit',\n\t\t\t\t\t\t'customer/index',\n\t\t\t\t\t\t'customer/listing',\n\t\t\t\t\t\t'customer/edit',\n\t\t\t\t\t\t'customer/surveys',\n\t\t\t\t\t\t'customer/survey',\n\t\t\t\t\t\t'question/index',\n\t\t\t\t\t\t'question/listing',\n\t\t\t\t\t\t'question/edit',\n\t\t\t\t\t\t'results/index',\n\t\t\t\t\t\t'results/listing',\n\t\t\t\t\t\t'results/general',\n\t\t\t\t\t\t'results/single',\n\t\t\t\t\t\t'generador/index',\n\t\t\t\t\t\t'generador/publish'\n\t\t\t\t\t\t);\n\t\t$customerArray =array(\n\t\t\t\t\t\t'customer/index',\n\t\t\t\t\t\t'customer/listing',\n\t\t\t\t\t\t'customer/edit',\n\t\t\t\t\t\t'customer/surveys',\n\t\t\t\t\t\t'customer/survey',\n\t\t\t\t\t\t'question/index',\n\t\t\t\t\t\t'question/listing',\n\t\t\t\t\t\t'question/edit',\n\t\t\t\t\t\t'results/index',\n\t\t\t\t\t\t'results/listing',\n\t\t\t\t\t\t'results/general',\n\t\t\t\t\t\t'results/single',\n\t\t\t\t\t\t'generador/index',\n\t\t\t\t\t\t'generador/publish'\n\t\t\t\t\t\t);\n\t\t\n\t\tif($_SESSION[\"SESS_USER_ROLE\"] == \"administrador\")\n\t\t{\n// \t\t\tif(!in_array($path,$AllArray))\n// \t\t\t{\n// \t\t\t\t$this->wtRedirect($_SESSION[\"ROLE_PATH\"]); \n// \t\t\t}\n\t\t}\n\t\t\n\t\telseif($_SESSION[\"SESS_USER_ROLE\"] == \"cliente\" )\n\t\t{\n\t\t\t//SI no esta en el arreglo, se redirecciona a su path original Controller home\n\t\t\tif(!in_array($path,$customerArray))\n\t\t\t{\n\t\t\t\t$this->wtRedirect($_SESSION[\"ROLE_PATH\"]); \n\t\t\t}\n\t\t}\n\t}", "public function authorize()\n {\n $user = User::find($this->id);\n\n if (!$user) {\n $user = User::where('no_ahli', $this->no_ahli)->first();\n }\n if ($user && $user->id == auth()->user()->id) return true;\n if (auth()->user()->is('admin')) return true;\n\n return false;\n }", "public function isAuthorized($user) {\n if (isset($user['role']) && $this->action == 'index') {\n return true;\n }\n \n // The owner of a whatever can view, edit and delete it\n $userAssignedId = $this->{$this->modelClass}->findById($this->request->params['pass'][0])['Branch']['user_id'];\n\n if( $user['id'] == $userAssignedId ){\n return true;\n }\n // Default deny\n return parent::isAuthorized($user); \n }", "public function authorize()\n {\n return $this->route('address')->userCanView($this->user());\n }", "public function authorize()\n {\n /*\n if ($this->loan_id && is_numeric($this->loan_id) && $loan = Loan::whereId($this->loan_id)->first()) {\n // loan_id belongs to requesting user\n return $loan && $this->user()->id == $loan->user_id;\n }\n */\n return true; // let rules handle it\n }", "public static function show(){\n return Auth::check() && Auth::user()->isAdmin();\n }", "function VisibleToAdminUser()\n {\n\tinclude (\"dom.php\");\n return $this->CheckPermission($pavad.' Use');\n }", "public function isAuthorized($user){\n /*\n * \n 1 \tAdmin\n 2 \tOfficer / Manager\n 3 \tRead Only\n 4 \tStaff\n 5 \tUser / Operator\n 6 \tStudent\n 7 \tLimited\n */\n \n //managers can add / edit\n if (in_array($this->request->action, ['delete','add','edit','reorder'])) {\n if ($user['group_id'] <= 4) {\n return true;\n }\n }\n \n \n //Admins have all\n return parent::isAuthorized($user);\n }", "public static function isAllowed() {\r\n\t\treturn TodoyuAuth::isAdmin();\r\n\t}", "public static function isAllowedViewSite()\n {\n if ((int) SettingService::getSetting('application_disable_site')) {\n $user = UserIdentityService::getCurrentUserIdentity();\n\n if ($user['role'] != AclBaseModel::DEFAULT_ROLE_ADMIN) {\n // get a visitor IP\n $remote = new RemoteAddress;\n $remote->setUseProxy(true);\n\n $userIp = $remote->getIpAddress();\n\n // get list of allowed ACL roles\n if (null != ($allowedAclRoles = SettingService::getSetting('application_disable_site_acl'))) {\n if (!is_array($allowedAclRoles)) {\n $allowedAclRoles = [$allowedAclRoles];\n }\n }\n\n // get list of allowed IPs\n if (null != ($allowedIps = SettingService::getSetting('application_disable_site_ip'))) {\n $allowedIps = explode(',', $allowedIps);\n }\n\n if ($allowedAclRoles || $allowedIps) {\n if (($allowedAclRoles && in_array($user['role'], $allowedAclRoles)) \n || ($allowedIps && in_array($userIp, $allowedIps))) {\n\n return true;\n }\n }\n\n return false;\n }\n }\n\n return true;\n }", "public function index()\n {\n $this->authorize('viewAny', User::class);\n\n // List the users...\n }", "public function viewAny(User $user)\n {\n return $user->hasPermissionTo('list llamados');\n }", "public function authorize()\n {\n $contact = $this->route('contact');\n\n return $contact->user_id == auth()->id() || user()->acl < 9;\n }", "public function has_access() { \n\n\t\tif (!Access::check('interface','25')) { \n\t\t\treturn false; \n\t\t} \n\t\tif ($this->user == $GLOBALS['user']->id) { \n\t\t\treturn true; \n\t\t} \n\t\telse {\n\t\t\treturn Access::check('interface','100'); \n\t\t} \t\n\n\t\treturn false; \n\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n\t{\n\t\t//@todo check with perissions\n\t\treturn (request()->user()->user_type == ADMIN_USER);\n\t}", "public function authorize()\n {\n $idExpense = $this->input('expense');\n $expense = Expense::find($idExpense);\n\n return $expense && $this->user()->id == $expense->user_id;\n }", "public function canUserManageUsage()\n {\n return $this->getUser()->hasAccess('manage', 'newsUsage');\n }", "public function view(User $user)\n {\n $user_role = Role::find($user->role_id);\n $role_permissions = $user_role->permissions;\n foreach ($role_permissions as $permission) {\n if ($permission->id ==4) {\n return true;\n }\n\n }\n return false;\n }", "public function viewAny(User $user)\n {\n return $user->access_level > 2;\n }", "public function security() \n\t{\n UserModel::authentication();\n\n //get the user\n $user = UserModel::user();\n\n\t\t//get user's whitelist ips and logins to their account\n $whitelistips = $user->user_ipwhitelist;\n $userlogins = SecurityModel::userlogins();\n\t\t\n\t\t$this->View->Render('security/security', ['whitelistips' => $whitelistips, 'userlogins' => $userlogins]);\n \n }", "function isAllowed($user, $resource = IAuthorizator::ALL, $privilege = IAuthorizator::ALL, $id);", "public function viewAny(User $user)\n {\n $permission = strpos($user->group->permission, \"rappers_view\");\n return !is_int($permission);\n }", "public function viewAny(User $user)\n {\n // if ($user->hasAnyPermission(['staffmember-list', 'staffmember-list','staffmember-create','staffmember-edit','staffmember-delete'])) \n if($user->can('staffmember-list') || $user->can('staffmember-create') || $user->can('staffmember-edit') || $user->can('staffmember-delete')) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return request()->user() != null;\n }", "public function authorize()\n {\n // TODO: Check if has business\n return session()->has('id');\n }", "public function authorize()\n {\n return $this->user()->canUpdateSecurity();\n }", "public function isAuthorized($user)\n {\n if (isset($user['V_ROL']) and $user['V_ROL']==='Viewer')\n {\n if (in_array($this->request->action,['home','view','logout']))\n {\n return true;\n }\n }\n return parent::isAuthorized($user);\n }", "public function viewAny(User $user)\n {\n // if( $user->role == 2){ //if admin\n // return true;\n // }\n // else{\n // return false;\n // }\n return true;\n }", "public function viewAny(User $user)\n {\n foreach ($user->roles as $value) {\n foreach ($value->permissions as $permission) {\n if($permission->id == 30){\n return true;\n }\n }\n }\n return false;\n }", "public function isViewAllowed()\n {\n return $this->isAllowedAction('view');\n }", "public function authorize()\n {\n if (Auth::check()) {\n if(TeamMember::where('team_id', $this->get('team_id'))->count() < 8) {\n return TRUE;\n }\n } else {\n return FALSE;\n }\n }", "public function authorize()\n {\n $user = Auth::user();\n $lecture = Lecture::findOrFail($this->route('lecture'));\n return $user->can('lecture-update') || $user->id == $lecture->user_id;\n }", "public function see(User $user)\n {\n if ($user->hasPermission('view_all_administration'))\n return TRUE;\n\n return FALSE;\n }", "public function viewAny(User $user)\n {\n return $user->can('read-approvals');\n }", "public function authorize()\n {\n $id = Auth::id();\n $livro = $this->route('livro');\n if ($livro!=NULL) {\n $author = $livro->user_id;\n return $author == $id ? true : false;\n }\n else\n return true;\n }", "public function authorize()\n\t{\n $subjectId = $this->route('subject');\n\n return Subject::find($subjectId)->user->id == Auth::id();\n\t}", "#[Pure]\n public function viewAny(User $user): bool\n {\n return $user->noTokenOrTokenCan('view-oauth_clients');\n }", "public function canUserAssignUsage()\n {\n $user = $this->getUser();\n\n return $user->isAdmin || \\in_array('tl_news::usage', $user->alexf, true);\n }", "public function authorize()\n {\n $user = auth()->user()->first();\n $department = Department::findOrFail($this->input('department_id'));\n $semester_type = SemesterType::findOrFail($this->input('semester_type_id'));\n $level = Level::findOrFail($this->input('level_id'));\n return (\n $user->can('view', $department) && \n $user->can('view', $level) &&\n $user->can('view', $semester_type)\n ) &&\n (\n $user->hasRole(Role::ADMIN) || \n ($user->id == $department->hod->first()->user()->first()->id) || // department hod\n ($user->staff()->where('id', $department->faculty()->first()->dean()->first()->id)->exists()) || // faculty dean\n ($user->id == $department->faculty()->first()->school()->first()->owner_id) // school owner\n );\n }", "public function hasAccess()\n\t{\n\t\t/* Check Permissions */\n\t\treturn \\IPS\\Member::loggedIn()->hasAcpRestriction( 'core', 'members', 'member_edit' );\n\t}", "public function userIDAllow($id = \"\")\n\t{\n\t\t$allow = Config(\"USER_ID_ALLOW\");\n\t\tswitch ($id) {\n\t\t\tcase \"add\":\n\t\t\tcase \"copy\":\n\t\t\tcase \"gridadd\":\n\t\t\tcase \"register\":\n\t\t\tcase \"addopt\":\n\t\t\t\treturn (($allow & 1) == 1);\n\t\t\tcase \"edit\":\n\t\t\tcase \"gridedit\":\n\t\t\tcase \"update\":\n\t\t\tcase \"changepwd\":\n\t\t\tcase \"forgotpwd\":\n\t\t\t\treturn (($allow & 4) == 4);\n\t\t\tcase \"delete\":\n\t\t\t\treturn (($allow & 2) == 2);\n\t\t\tcase \"view\":\n\t\t\t\treturn (($allow & 32) == 32);\n\t\t\tcase \"search\":\n\t\t\t\treturn (($allow & 64) == 64);\n\t\t\tdefault:\n\t\t\t\treturn (($allow & 8) == 8);\n\t\t}\n\t}", "public function authorize()\n {\n $user = \\Auth::getUser();\n\n return $user->user_type == 1;\n }", "public function check_access() {\n\n\t\tif (isset($this->current_entity_allowed)) {\n\t\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t\t}\n\n\t\t$this->current_entity_allowed = MKB_Options::option('restrict_on') ?\n\t\t\t(bool) $this->check_entity_access($this->get_current_entity()) :\n\t\t\ttrue; // always allowed if restriction is off\n\n\t\treturn apply_filters('minerva_restrict_access_allowed', $this->current_entity_allowed);\n\t}", "public function hasUsageRights() {}", "public function authorize()\n {\n return $this->user()->can('view', Assignment::class);\n }", "public static function ValidateUser()\n {\n $allowed_page = '/(login|article\\/(list|read))/';\n\n// $_SESSION['user'] not set or empty, and current view is allowed\n if ((!isset($_SESSION['user']) || empty($_SESSION['user'])) && !preg_match($allowed_page, $_GET['views'])) {\n header('Location: /login');\n }\n }", "static function access(){\n return onapp_has_permission(array('hypervisors', 'hypervisors.read'));\n }", "public function canSeeAllPeople()\n {\n if ($this->person['id']) {\n return $this->person['can_see_all_people'];\n } else {\n return false;\n }\n }", "public function hasSpecificAuthorization() {\n return $this->_has(10);\n }", "public function viewAny(User $user)\n {\n return $user->hasPermissionTo(\"view problem\");\n }", "public function authorize()\n {\n $user = request()->user('api');\n return $user->isSenior();\n }", "public function canViewProfile() {\n\t\treturn (!$this->protectedProfile || WCF::getUser()->userID == $this->userID || UserProfile::isBuddy($this->userID) || WCF::getUser()->getPermission('admin.general.canViewPrivateUserOptions'));\n\t}", "public function authorize()\n {\n return (Auth::user()->type === User::VENDEDOR);\n }", "public function authorize()\n // can access chef member who is 'logined' and 'chefprofile null === false'\n {\n $loginedUser = Auth::user();\n\n return $loginedUser->user_type === 'chef' && (\n\n is_null($loginedUser->chef) === false\n );\n }", "public function viewAny(User $user)\n {\n return in_array('properties-read', $user->role->permissions->pluck('title')->toArray())\n ? Response::allow()\n : Response::deny('You lack sufficient permissions to view properties');\n }", "function customerHasFilterAccess() {\n\n\t\tif (in_array($_SESSION[\"webuser\"][\"ID\"], $this->_blackList)) {\n\t\t\treturn false;\n\t\t} else if (in_array($_SESSION[\"webuser\"][\"ID\"], $this->_whiteList)) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$_filter_op = array(\n\t\t\t'0'=>'%s==%s',\n\t\t\t'1'=>'%s<>%s',\n\t\t\t'2'=>'%s<%s',\n\t\t\t'3'=>'%s<=%s',\n\t\t\t'4'=>'%s>%s',\n\t\t\t'5'=>'%s>=%s',\n\t\t\t'6'=>'weAbstractCustomerFilter::startsWith(%s,%s)',\n\t\t\t'7'=>'weAbstractCustomerFilter::endsWith(%s,%s)',\n\t\t\t'8'=>'weAbstractCustomerFilter::contains(%s,%s)',\n\t\t\t'9'=>'weAbstractCustomerFilter::in(%s,%s)'\n\n\t\t);\n\n\t\t$_conditions = array();\n\n\t\t$_flag = false;\n\t\tforeach ( $this->_filter as $_filter ) {\n\t\t\t$_conditions[] = (($_filter[\"logic\"] && $_flag) ? ($_filter[\"logic\"]==\"AND\" ? \" && \" : \" || \") : \"\") . sprintf(\n\t\t\t\t$_filter_op[$_filter[\"operation\"]],\n\t\t\t\tweAbstractCustomerFilter::quote4Eval($_SESSION[\"webuser\"][$_filter[\"field\"]]),\n\t\t\t\tweAbstractCustomerFilter::quote4Eval($_filter[\"value\"])\n\t\t\t);\n\t\t\t$_flag = true;\n\t\t}\n\n\t\t$_hasPermission = false;\n\t\t$_cond = \"if (\" . implode(\"\", $_conditions) . \") { \\$_hasPermission = true; }\";\n\t\teval( $_cond );\n\n\t\treturn $_hasPermission;\n\t}", "public function authorize()\n {\n return Auth::user()->type == 1;\n }", "public function canViewSuggestions(){\n $viewer_id = Engine_Api::_()->user()->getViewer()->getIdentity();\n if(!empty($viewer_id)){\n return true;\n } \n }", "public function authorize()\n\t{\n\t\t//return User::where('id', Auth::user()->id)->where('active', 1)->exists();\n\t\treturn true;\n\t}", "function userCanViewInterim( $sessionID ) {\r\n\t\treturn ($this->getAccessLevel() > 7 || $this->getAccessLevel() == 5);\r\n\t}", "public function authorize()\n\t{\n\t\t// if user is updating his profile or a user is an admin\n\t\tif( $this->user()->isSuperAdmin() || !$this->route('user') ){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "function rordb_can_user_view_items(){\n return current_user_can('rordb_view_items');\n}", "public function authorize()\n {\n return $this->user() != null;\n }" ]
[ "0.72355837", "0.69571495", "0.69011307", "0.67762464", "0.67703503", "0.67703503", "0.67350435", "0.66963077", "0.6688003", "0.66686624", "0.6667974", "0.6650055", "0.6643303", "0.6641756", "0.66391957", "0.6636253", "0.6634588", "0.6630113", "0.6620009", "0.6616785", "0.6601294", "0.6598756", "0.6598756", "0.6592994", "0.6585292", "0.6572534", "0.65584946", "0.65550405", "0.6552898", "0.6536403", "0.6532164", "0.6531097", "0.6517211", "0.6515061", "0.6512458", "0.65080416", "0.64954245", "0.6494718", "0.64923924", "0.6477966", "0.64698505", "0.64528614", "0.64501685", "0.64469767", "0.6441592", "0.64397055", "0.64385945", "0.6437004", "0.6427898", "0.6427898", "0.6423399", "0.6419684", "0.64168215", "0.64161354", "0.64002925", "0.63913494", "0.6386272", "0.63802546", "0.6378645", "0.63754904", "0.63754493", "0.6374919", "0.6373594", "0.63721585", "0.6371859", "0.63698196", "0.6368331", "0.63666004", "0.6363998", "0.6363384", "0.6356573", "0.6354606", "0.63536704", "0.6350806", "0.6346876", "0.63439137", "0.6339317", "0.6332303", "0.63300675", "0.63290846", "0.6327869", "0.63191265", "0.63188607", "0.63172126", "0.6316987", "0.6316586", "0.63134205", "0.63087183", "0.63086367", "0.630428", "0.6303212", "0.6299052", "0.6298742", "0.6294614", "0.62944794", "0.62909466", "0.62826127", "0.628127" ]
0.65724224
28
Table SQL with List page filter
function SelectSQL() { $sFilter = $this->getSessionWhere(); ew_AddFilter($sFilter, $this->CurrentFilter); $sFilter = $this->ApplyUserIDFilters($sFilter); $this->Recordset_Selecting($sFilter); $sSort = $this->getSessionOrderBy(); return ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(), $this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getList($tabName, $filterName, $filterValue) {\n global $mysqli;\n\n $header=getColumns($tabName);\n \n $sql=\"SELECT * FROM $tabName WHERE $filterName='$filterValue'\";\n\t$resultado=doQuery($sql);\n\t$noColumnas = count($header);\n\t$html='<thead>';\n\tfor ($i=0; $i < count($header) ; $i++) { \n\t\t$html.=\"<th>\".$header[$i].\"</th>\";\n\t}\n\n\t$html.='</thead>';\n\t\n\tforeach ($resultado->fetch_all(MYSQLI_BOTH) as $key => $value) {\n\t\t\n\t\t$html.='<tr>';\n\t\tfor ($j=0; $j < $noColumnas ; $j++) { \n\t\t\t\n\t\t\t$html.=\"<td>\".$value[$j].\"</td>\";\n\t\t}\n\t\t$html.='</tr>';\n\t}\t\n\n return \"<table class='analyst-list'>\".$html.\"</table>\";\n}", "function getTableList(){\n\t\t// Process the query string and exclude querystring named \"p\"\n\t\tif (!empty($_SERVER['QUERY_STRING'])) {\n\t\t\t$qrystr = explode(\"&\",$_SERVER['QUERY_STRING']);\n\t\t\tforeach ($qrystr as $value) {\n\t\t\t\t$qstr = explode(\"=\",$value);\n\t\t\t\tif ($qstr[0]!=\"p\") {\n\t\t\t\t\t$arrQryStr[] = implode(\"=\",$qstr);\n\t\t\t\t}\n\t\t\t}\n\t\t\t$aQryStr = $arrQryStr;\n\t\t\t$aQryStr[] = \"p=@@\";\n\t\t\t$queryStr = implode(\"&\",$aQryStr);\n\t\t}\n\n\t\t//bby: search module\n\t\t$qry = array();\n\t\tif (isset($_REQUEST['search_field'])) {\n\n\t\t\t// lets check if the search field has a value\n\t\t\tif (strlen($_REQUEST['search_field'])>0) {\n\t\t\t\t// lets assign the request value in a variable\n\t\t\t\t$search_field = $_REQUEST['search_field'];\n\n\t\t\t\t// create a custom criteria in an array\n\t\t\t\t$qry[] = \"mnu_name like '%$search_field%'\";\n\n\t\t\t}\n\t\t}\n\n\t\t// put all query array into one criteria string\n\t\t$criteria = (count($qry)>0)?\" where \".implode(\" and \",$qry):\"\";\n\n\t\t// Sort field mapping\n\t\t$arrSortBy = array(\n\t\t \"viewdata\"=>\"viewdata\"\n\t\t,\"mnu_name\"=>\"mnu_name\"\n\t\t,\"mnu_link\"=>\"mnu_link\"\n\t\t,\"mnu_ord\"=>\"mnu_ord\"\n\t\t);\n\n\t\tif(isset($_GET['sortby'])){\n\t\t\t$strOrderBy = \" order by \".$arrSortBy[$_GET['sortby']].\" \".$_GET['sortof'];\n\t\t}\n\n\t\t// Add Option for Image Links or Inline Form eg: Checkbox, Textbox, etc...\n\t\t$viewLink = \"\";\n\t\t$editLink = \"<a href=\\\"?statpos=tax&edit=',am.mnu_id,'\\\"><img src=\\\"\".SYSCONFIG_DEFAULT_IMAGES_INCTEMP.\"icons/edited/edit.png\\\" title=\\\"Edit\\\" hspace=\\\"2px\\\" border=0 width=\\\"16\\\" height=\\\"16\\\"></a>\";\n\t\t$delLink = \"<a href=\\\"?statpos=tax&delete=',am.mnu_id,'\\\" onclick=\\\"return confirm(\\'Are you sure, you want to delete?\\');\\\"><img src=\\\"\".SYSCONFIG_DEFAULT_IMAGES_INCTEMP.\"icons/edited/delete.png\\\" title=\\\"Delete\\\" hspace=\\\"2px\\\" border=0 width=\\\"16\\\" height=\\\"16\\\"></a>\";\n\n\t\t// SqlAll Query\n\t\t$sql = \"select am.*, CONCAT('$viewLink','$editLink','$delLink') as viewdata\n\t\t\t\t\t\tfrom app_modules am\n\t\t\t\t\t\t$criteria\n\t\t\t\t\t\t$strOrderBy\";\n\n\t\t// Field and Table Header Mapping\n\t\t$arrFields = array(\n\t\t \"viewdata\"=>\"Action\"\n\t\t,\"mnu_name\"=>\"Module Name\"\n\t\t,\"mnu_link\"=>\"Link\"\n\t\t,\"mnu_ord\"=>\"Order\"\n\t\t);\n\n\t\t// Column (table data) User Defined Attributes\n\t\t$arrAttribs = array(\n\t\t\"mnu_ord\"=>\" align='center'\",\n\t\t\"viewdata\"=>\"width='50' align='center'\"\n\t\t);\n\n\t\t// Process the Table List\n\t\t$tblDisplayList = new clsTableList($this->conn);\n\t\t$tblDisplayList->arrFields = $arrFields;\n\t\t$tblDisplayList->paginator->linkPage = \"?$queryStr\";\n\t\t$tblDisplayList->sqlAll = $sql;\n\t\t$tblDisplayList->sqlCount = $sqlcount;\n\n\t\treturn $tblDisplayList->getTableList($arrAttribs);\n\t}", "public function listtabelAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('%');\n }", "public function autofilterAction()\n {\n $this->aliasAction('index');\n\n // \\MUtil_Model::$verbose = true;\n\n // We do not need to return the layout, just the above table\n $this->disableLayout();\n\n $this->html[] = $this->_createTable();\n $this->html->raw(\\MUtil_Echo::out());\n }", "function newskomentar_searchdata_all_bypage( $tbl_newskomentar, $cari, $offset, $dataperPage ){\n\t\t$sql = mysql_query(\"SELECT * FROM $tbl_newskomentar WHERE \n\t\t\tjudul LIKE '$cari' OR\n\t\t\tpesan LIKE '$cari' \n\t\t\t\tORDER BY id ASC LIMIT $offset, $dataperPage\n\t\t\"); \n \t\treturn $sql;\n}", "public function generateList()\n {\n // Set page record in header\n $this->pageRecord = BackendUtility::getRecordWSOL('pages', $this->id);\n $hideTablesArray = GeneralUtility::trimExplode(',', $this->hideTables);\n\n $backendUser = $this->getBackendUser();\n\n // pre-process tables and add sorting instructions\n $tableNames = array_flip(array_keys($GLOBALS['TCA']));\n foreach ($tableNames as $tableName => &$config) {\n $hideTable = false;\n\n // Checking if the table should be rendered:\n // Checks that we see only permitted/requested tables:\n if ($this->table && $tableName !== $this->table\n || $this->tableList && !GeneralUtility::inList($this->tableList, $tableName)\n || !$backendUser->check('tables_select', $tableName)\n ) {\n $hideTable = true;\n }\n\n if (!$hideTable) {\n // Don't show table if hidden by TCA ctrl section\n // Don't show table if hidden by pageTSconfig mod.web_list.hideTables\n $hideTable = $hideTable\n || !empty($GLOBALS['TCA'][$tableName]['ctrl']['hideTable'])\n || in_array($tableName, $hideTablesArray, true)\n || in_array('*', $hideTablesArray, true);\n // Override previous selection if table is enabled or hidden by TSconfig TCA override mod.web_list.table\n if (isset($this->tableTSconfigOverTCA[$tableName . '.']['hideTable'])) {\n $hideTable = (bool)$this->tableTSconfigOverTCA[$tableName . '.']['hideTable'];\n }\n }\n if ($hideTable) {\n unset($tableNames[$tableName]);\n } else {\n if (isset($this->tableDisplayOrder[$tableName])) {\n // Copy display order information\n $tableNames[$tableName] = $this->tableDisplayOrder[$tableName];\n } else {\n $tableNames[$tableName] = [];\n }\n }\n }\n unset($config);\n\n $orderedTableNames = GeneralUtility::makeInstance(DependencyOrderingService::class)\n ->orderByDependencies($tableNames);\n\n foreach ($orderedTableNames as $tableName => $_) {\n // check if we are in single- or multi-table mode\n if ($this->table) {\n $this->iLimit = isset($GLOBALS['TCA'][$tableName]['interface']['maxSingleDBListItems'])\n ? (int)$GLOBALS['TCA'][$tableName]['interface']['maxSingleDBListItems']\n : $this->itemsLimitSingleTable;\n } else {\n // if there are no records in table continue current foreach\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)\n ->getQueryBuilderForTable($tableName);\n $queryBuilder->getRestrictions()\n ->removeAll()\n ->add(GeneralUtility::makeInstance(DeletedRestriction::class))\n ->add(GeneralUtility::makeInstance(BackendWorkspaceRestriction::class));\n $queryBuilder = $this->addPageIdConstraint($tableName, $queryBuilder);\n $firstRow = $queryBuilder->select('uid')\n ->from($tableName)\n ->execute()\n ->fetch();\n if (!is_array($firstRow)) {\n continue;\n }\n $this->iLimit = isset($GLOBALS['TCA'][$tableName]['interface']['maxDBListItems'])\n ? (int)$GLOBALS['TCA'][$tableName]['interface']['maxDBListItems']\n : $this->itemsLimitPerTable;\n }\n if ($this->showLimit) {\n $this->iLimit = $this->showLimit;\n }\n // Setting fields to select:\n if ($this->allFields) {\n $fields = $this->makeFieldList($tableName);\n $fields[] = 'tstamp';\n $fields[] = 'crdate';\n $fields[] = '_PATH_';\n $fields[] = '_CONTROL_';\n if (is_array($this->setFields[$tableName])) {\n $fields = array_intersect($fields, $this->setFields[$tableName]);\n } else {\n $fields = [];\n }\n } else {\n $fields = [];\n }\n\n // Finally, render the list:\n $this->HTMLcode .= $this->getTable($tableName, $this->id, implode(',', $fields));\n }\n }", "public function tLists(){\n\n $raw = $this->RxData;\n $head = C('PREURL');\n $ret = ['total' => 0, 'page_start' => 0, 'page_n' => 0, 'data' => []];\n\n $page = $raw['page_start']?$raw['page_start']:1;\n $num = $raw['page_limit']? $raw['page_limit']:10;\n $limit = $num*($page-1).','.$num;\n\n//判断角色\n $roles_arr = [\n ROLE_BIN_TEA,\n ROLE_BIN_TEA+ROLE_BIN_STU,\n ROLE_BIN_TEA+ROLE_BIN_NOR,\n ROLE_BIN_TEA+ROLE_BIN_NOR+ROLE_BIN_STU\n ];\n if(!in_array($this->out['admin'],$roles_arr)){\n $ret['status'] = E_STATUS;\n $ret['errstr'] = '';\n goto END;\n }\n\n $where['a.uid'] = $this->out['uid'];\n\n if($raw['level_id'])\n $where['a.level_id']= $raw['level_id'];\n\n if(isset($raw['title']))\n $where['a.title']= ['like','%'.$raw['title'].'%'];\n// 状态:\n// 0全部,1待审核,\n//2审核通过,3审核拒绝,\n//4待批阅;5批阅完成;6、已取消\n if($raw['status']){\n switch($raw['status']){\n case 1:\n $where['a.check']= LINE;\n break;\n case 2:\n $where['a.check'] = PASS;\n $where['a.submit']= 1;\n break;\n case 3:\n $where['a.check']= REJECT;\n break;\n case 4:\n $where['a.check'] = PASS;\n $where['a.submit'] = 1;\n break;\n case 5:\n $where['a.judging']= 0;\n $where['a.check'] = PASS;\n $where['a.submit'] = 1;\n break;\n case 6:\n $where['a.submit'] = 2;\n $where['a.check'] = PASS;\n break;\n default:\n break;\n }\n }\n\n\n if($raw['time_start'] && $raw['time_end']){\n $where['a.atime'] = [\n ['egt',$raw['time_start']],\n ['lt',$raw['time_end']]\n ];\n }elseif($raw['time_start'] ) {\n $where['a.atime'] = ['egt', $raw['time_start']];\n }elseif($raw['time_end'] ){\n $where['a.atime'] = ['lt',$raw['time_end']];\n }\n $where['b.table'] = THWK;\n\n $column = '\n a.id,a.submit,reply_n,a.hwk_id,a.title,a.receive_n,a.judging,a.check status,a.suid,\n c.name as level,a.atime,b.data\n ';\n\n $res = $this->model->selectHomeworkForT(\n $column,\n $where,\n $limit,\n 'a.atime desc'\n );\n\n if(!$res)\n goto END;\n $total = $this->model->selectHomeworkForT('count(*) total',$where);\n\n $chk_sub = false;\n//逾期\n $pids = [];\n foreach ($res as $v) {\n $pids[] = $v['id'];\n }\n $reply_info = $this->model->selectReply(\n '',\n [\n 'pid' => ['in',$pids],\n 'top_id' => 0,\n 'judge' => HWK_L_UNCOT\n ]\n );\n $t = time();\n foreach($reply_info as $v1){\n if($t>($v1['atime']+C(\"EXPIRE_SUB\")) && $t<($v1['atime']+C(\"EXPIRE_HWK\"))){\n $chk_sub = true;\n continue;\n }\n }\n\n $ret['expire'] = $chk_sub?HWK_EXPIRE:HWK_OK;\n $fin = [];\n foreach ($res as $k=>&$re) {\n //学员数量\n $stu_n = explode(',',$re['suid']);\n array_shift($stu_n);\n array_pop($stu_n);\n $re['student_n'] = count($stu_n);\n\n if($re['data']){\n foreach(unserialize($re['data']) as $k=>$v){\n $re[$k] = $v;\n }\n }\n if($re['status'] == PASS){\n //已取消\n if($re['submit'] == HWK_UNSUMMIT ){\n $re['status'] = HWK_T_CANCEL;\n $fin[] = $re;\n continue;\n }\n if($re['receive_n'] > 0){\n $re['status'] = HWK_T_UNCOT;\n }\n }else{\n $re['submit'] = HWK_UNSUMMIT;\n }\n\n\n if($raw['status'] == HWK_T_UNCOT){\n if($re['reply_n'] == count($stu_n) && $re['judging'] == 0){\n continue;\n }\n }elseif($raw['status'] == HWK_T_COT){\n if($re['reply_n'] != count($stu_n) ||$re['receive_n'] != count($stu_n) || $re['judging'] != 0){\n continue;\n }\n }\n //批阅完成\n if($re['reply_n'] == count($stu_n) && $re['judging'] == 0)\n $re['status'] = HWK_T_COT;\n\n if($raw['status'])\n $re['status'] = $raw['status'];\n unset($re['data']);\n\n $fin[] = $re;\n }\n $ret['total'] = $total[0]['total'];\n $ret['page_n'] = count($fin);\n $ret['page_start'] = $page;\n $ret['data'] = $fin;\n\nEND:\n $this->retReturn($ret);\n\n }", "public function listtabelSDMAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('SDM');\n }", "function createPaging($table,$cond=\"\",$id=\"\") {\n\n\t\tglobal $db, $start, $num, $pageFrom, $pageNum, $query, $field;\n\n\t\tif (strlen($cond)) $condString= \"WHERE \".$cond;\n\n\t\t$strSQL\t\t= \"SELECT * from $table $condString \";\n\t\t$result\t\t= $db->Execute($strSQL);\n\t\tif (!$result) print $db->ErrorMsg();\n\t\t$totalData\t= $result->RecordCount();\n\n\t\t$totalPage\t= ceil($totalData/$num);\n\t\t$sisa\t\t= $totalPage - $pageFrom;\n\n\t\tif ( $sisa < $pageNum ) $pageTo = $pageFrom + $sisa; else $pageTo = $pageFrom + $pageNum;\n\n\t\tif ( ($pageFrom - $pageNum) < 0 ) $pageBefore = 0; else $pageBefore = $pageFrom - $pageNum;\n\t\tif ( ($pageFrom + $pageNum) > ($totalPage - $pageNum) ) $pageNext = $totalPage - $pageNum; else $pageNext = $pageFrom + $pageNum;\n\t\tif ( $pageNext < 0 ) $pageNext = 0;\n\n\t\tif ( ($totalPage-$pageNum)<0 ) $pageLast = 0; else $pageLast = $totalPage-$pageNum;\n\n\t\tfor ($i=$pageFrom; $i<$pageTo; ++$i) {\n\t\t\t$page_i = $i + 1;\n\t\t\t$next_i = $i * $num;\n\t\t\tif ($next_i == $start) {\n\t\t\t\t$page .= \" <a href=$PHP_SELF?act=list&start=$next_i&num=$num&pageFrom=$pageFrom&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field><b>$page_i</b></a> \";\n\t\t\t} else {\n\t\t\t\t$page .= \" <a href=$PHP_SELF?act=list&start=$next_i&num=$num&pageFrom=$pageFrom&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field>$page_i</a> \";\n\t\t\t}\n\t\t}\n\n\t\t$final =\t\"<a \t\thref=$PHP_SELF?act=list&start=0&num=$num&pageFrom=0&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field>awal</a>\".\n\t\t\" | <a href=$PHP_SELF?act=list&start=\".($pageBefore*$num).\"&num=$num&pageFrom=$pageBefore&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field><<</a> \".\n\t\t$page.\n\t\t\" <a href=$PHP_SELF?act=list&start=\".($pageNext*$num).\"&num=$num&pageFrom=$pageNext&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field>>></a> | \".\n\t\t\"<a href=$PHP_SELF?act=list&start=\".(($totalPage-1)*$num).\"&num=$num&pageFrom=\".$pageLast.\"&pageNum=$pageNum&id=$id&query=\".rawurlencode($query).\"&field=$field>akhir</a>\";\n\n\t\treturn $final;\n\t}", "public function search() {\n\t\t$data = $this->model->getSearchData($this->table->getFilterNames());\n\t\t$this->table->setData($data);\n\t\t// Store the user/object ids in the session so the report() can reuse them\n\t\t$this->storeIdsInSession($data);\n\t\t$this->tpl->setContent($this->table->getHTML());\n\t}", "private function generateListStatement($page = 0)\n\t{\n\t\t$sql = \"SELECT * FROM `{$this->table}` \";\n\t\t$whereFields = array();\n\t\t$whereValues = array();\n\t\tif(!empty($this->match) && $this->langField !== self::NO_FIELD)\n\t\t{\n\t\t\t$whereFields[] = \"`{$this->langField}` = :{$this->langField}\";\n\t\t\t$whereValues[\":{$this->langField}\"] = $this->match->getLocale();\n\t\t}\n\t\tif(!empty($whereFields))\n\t\t\t$sql .= \" WHERE \".implode(\" AND \", $whereFields);\n\n\t\tif($this->dateField !== self::NO_FIELD)\n\t\t\t$sql .= \" ORDER BY `{$this->dateField}` {$this->dateOrder}\";\n\t\t$sql .= \" LIMIT {$this->postsPerPage} OFFSET \".($this->postsPerPage*$page);\n\n\t\t$statement = $this->pdo->prepare($sql);\n\t\t$statement->execute($whereValues);\n\t\treturn $statement;\n\t}", "function getDataListWhere($table,$fields = null,$where = null,$order = null,$limit_start,$limit_limit) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order,$limit_start,$limit_limit);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadAssocList();\r\n\t}", "function createPagingCustom($table,$cond=\"\",$nik=\"\") {\n\n\t\tglobal $db, $start, $num, $pageFrom, $pageNum, $query, $field;\n\n\t\tif (strlen($cond)) $condString= \"WHERE \".$cond;\n\n\t\t$strSQL\t\t= \"SELECT * from $table $condString \";\n\t\t$result\t\t= $db->Execute($strSQL);\n\t\tif (!$result) print $db->ErrorMsg();\n\t\t$totalData\t= $result->RecordCount();\n\n\t\t$totalPage\t= ceil($totalData/$num);\n\t\t$sisa\t\t= $totalPage - $pageFrom;\n\n\t\tif ( $sisa < $pageNum ) $pageTo = $pageFrom + $sisa; else $pageTo = $pageFrom + $pageNum;\n\n\t\tif ( ($pageFrom - $pageNum) < 0 ) $pageBefore = 0; else $pageBefore = $pageFrom - $pageNum;\n\t\tif ( ($pageFrom + $pageNum) > ($totalPage - $pageNum) ) $pageNext = $totalPage - $pageNum; else $pageNext = $pageFrom + $pageNum;\n\t\tif ( $pageNext < 0 ) $pageNext = 0;\n\n\t\tif ( ($totalPage-$pageNum)<0 ) $pageLast = 0; else $pageLast = $totalPage-$pageNum;\n\n\t\tfor ($i=$pageFrom; $i<$pageTo; ++$i) {\n\t\t\t$page_i = $i + 1;\n\t\t\t$next_i = $i * $num;\n\t\t\tif ($next_i == $start) {\n\t\t\t\t$page .= \" <a href=$PHP_SELF?act=list&start=$next_i&num=$num&pageFrom=$pageFrom&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field><b>$page_i</b></a> \";\n\t\t\t} else {\n\t\t\t\t$page .= \" <a href=$PHP_SELF?act=list&start=$next_i&num=$num&pageFrom=$pageFrom&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field>$page_i</a> \";\n\t\t\t}\n\t\t}\n\n\t\t$final =\t\"<a \t\thref=$PHP_SELF?act=list&start=0&num=$num&pageFrom=0&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field>awal</a>\".\n\t\t\" | <a href=$PHP_SELF?act=list&start=\".($pageBefore*$num).\"&num=$num&pageFrom=$pageBefore&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field><<</a> \".\n\t\t$page.\n\t\t\" <a href=$PHP_SELF?act=list&start=\".($pageNext*$num).\"&num=$num&pageFrom=$pageNext&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field>>></a> | \".\n\t\t\"<a href=$PHP_SELF?act=list&start=\".(($totalPage-1)*$num).\"&num=$num&pageFrom=\".$pageLast.\"&pageNum=$pageNum&nik=$nik&query[]=\".rawurlencode($query).\"&field[]=$field>akhir</a>\";\n\n\t\treturn $final;\n\t}", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "function pi_list_query($table,$count=0,$addWhere='',$mm_cat='',$groupBy='',$orderBy='',$query='',$returnQueryArray=FALSE)\t{\n\n \t\t\t// Begin Query:\n\t\tif (!$query)\t{\n\t\t\t\t// Fetches the list of PIDs to select from.\n\t\t\t\t// TypoScript property .pidList is a comma list of pids. If blank, current page id is used.\n\t\t\t\t// TypoScript property .recursive is a int+ which determines how many levels down from the pids in the pid-list subpages should be included in the select.\n\t\t\t$pidList = 2;\n \n\t\t\tif (is_array($mm_cat))\t{\n\t\t\t\t$query='FROM '.$table.','.$mm_cat['table'].','.$mm_cat['mmtable'].chr(10).\n\t\t\t\t\t\t' WHERE '.$table.'.uid='.$mm_cat['mmtable'].'.uid_local AND '.$mm_cat['table'].'.uid='.$mm_cat['mmtable'].'.uid_foreign '.chr(10).\n\t\t\t\t\t\t(strcmp($mm_cat['catUidList'],'')?' AND '.$mm_cat['table'].'.uid IN ('.$mm_cat['catUidList'].')':'').chr(10).\n\t\t\t\t\t\t' AND '.$table.'.pid IN ('.$pidList.')';\n\t\t\t} else {\n\t\t\t\t$query='FROM '.$table.' WHERE pid IN ('.$pidList.')';\n\t\t\t}\n\t\t}\n\n\t\t\t// Split the \"FROM ... WHERE\" string so we get the WHERE part and TABLE names separated...:\n\t\tlist($TABLENAMES,$WHERE) = spliti('WHERE', trim($query), 2);\n\t\t$TABLENAMES = trim(substr(trim($TABLENAMES),5));\n\t\t$WHERE = trim($WHERE);\n\n\t\t\t// Add '$addWhere'\n\t\tif ($addWhere)\t{$WHERE.=' '.$addWhere.chr(10);}\n\n\t\t\t// Search word:\n\t\tif ($this->piVars['sword'] && $this->internal['searchFieldList'])\t{\n\t\t\t$WHERE.=$this->cObj->searchWhere($this->piVars['sword'],$this->internal['searchFieldList'],$table).chr(10);\n\t\t}\n\n\t\tif ($count) {\n\t\t\t$queryParts = array(\n\t\t\t\t'SELECT' => 'count(*)',\n\t\t\t\t'FROM' => $TABLENAMES,\n\t\t\t\t'WHERE' => $WHERE,\n\t\t\t\t'GROUPBY' => '',\n\t\t\t\t'ORDERBY' => '',\n\t\t\t\t'LIMIT' => ''\n\t\t\t);\n\t\t} else {\n\t\t\t\t// Order by data:\n\t\t\tif (!$orderBy && $this->internal['orderBy'])\t{\n\t\t\t\tif (t3lib_div::inList($this->internal['orderByList'],$this->internal['orderBy']))\t{\n\t\t\t\t\t$orderBy = 'ORDER BY '.$table.'.'.$this->internal['orderBy'].' '.$this->internal['descFlag'];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t\t// Limit data:\n\t\t\t$pointer = intval($this->ter_pointer);\n\t\t\t\n \t\t$results_at_a_time = t3lib_div::intInRange($this->internal['results_at_a_time'],1,1000);\n\t\t\t$LIMIT = ($pointer*$results_at_a_time).','.$results_at_a_time;\n\n\t\t\t\t// Add 'SELECT'\n\t\t\t$queryParts = array(\n\t\t\t\t'SELECT' => $this->pi_listFields,\n\t\t\t\t'FROM' => $TABLENAMES,\n\t\t\t\t'WHERE' => $WHERE,\n\t\t\t\t'GROUPBY' => $GLOBALS['TYPO3_DB']->stripGroupBy($groupBy),\n\t\t\t\t'ORDERBY' => $GLOBALS['TYPO3_DB']->stripOrderBy($orderBy),\n\t\t\t\t'LIMIT' => $LIMIT\n\t\t\t);\n\t\t}\n\n\t\t$query = $GLOBALS['TYPO3_DB']->SELECTquery (\n\t\t\t\t\t$queryParts['SELECT'],\n\t\t\t\t\t$queryParts['FROM'],\n\t\t\t\t\t$queryParts['WHERE'],\n\t\t\t\t\t$queryParts['GROUPBY'],\n\t\t\t\t\t$queryParts['ORDERBY'],\n\t\t\t\t\t$queryParts['LIMIT']\n\t\t\t\t);\n\t\treturn $returnQueryArray ? $queryParts : $query;\n\t}", "function getPagelist($sql = '', $fields = array(), $mod = array())\n{\n $count = count(db(sql));\n $totalNum = ceil($count / PAGE_NUM);\n $path = $request_url['path'];\n\n $page = (isset($_GET['page']) && $_GET['page'] != '') ? $_GET['page'];\n// 组装limit语句\n $limit = 'LIMIT' . ($page - 1) * PAGE_NUM . ',' . PAGE_NUM;\n $datas = db($sql, $limit);\n $html = getTable($datas, $fields, $mod);\n $start = ($page - PAGE_OFFSET) > 0 ? $page - PAGE_OFFSET : 1;//获取左侧位置的偏移\n $end = ($page + PAGE_OFFSET) < $totalNum ? $page + PAGE_OFFSET : $totalNum;\n $html .= '<div class=\"page\">';\n if ($page > 1) {\n $html .= '<a href=\"' . $path . '?page=' . ($page - 1) . '\">上一页</a>';\n $html .= '<a href=\"' . $path . '?page=1\">首页</a>';\n }\n for($i = $start;$i<=$end;$i++)\n {\n $class = ($i==$page)?'class=\"on\"':'';\n $html .='<a href =\"'.$path.'?page='.$i.'\"'.$class.'>'.$i.'</a>';\n\n\n }\n if ($page < $totalNum) {\n ;\n $html .= '<a href=\"' . $path . '?page='.$totalNum.'\">尾页</a>';\n $html .= '<a href=\"' . $path . '?page='.($page+1).'\">下一页</a>';\n }\n $html .='共'.$totalNum.'页';\n $html .='</div>';\n return $html;\n}", "function listTables();", "function getListArray($tabName, $filterName, $filterValue) {\n global $mysqli;\n\n $header=getColumns($tabName);\n \n $sql=\"SELECT * FROM $tabName WHERE $filterName='$filterValue'\";\n\t$resultado=doQuery($sql);\n\treturn $resultado->fetch_all(MYSQLI_BOTH);\n\t/*$noColumnas = count($header);\n\t$html='<thead>';\n\tfor ($i=0; $i < count($header) ; $i++) { \n\t\t$html.=\"<th>\".$header[$i].\"</th>\";\n\t}\n\n\t$html.='</thead>';\n\t\n\tforeach ($resultado->fetch_all(MYSQLI_BOTH) as $key => $value) {\n\t\t\n\t\t$html.='<tr>';\n\t\tfor ($j=0; $j < $noColumnas ; $j++) { \n\t\t\t\n\t\t\t$html.=\"<td>\".$value[$j].\"</td>\";\n\t\t}\n\t\t$html.='</tr>';\n\t}\t\n\n return \"<table class='analyst-list'>\".$html.\"</table>\";*/\n}", "public static function list() {\n self::init();\n $columns = self::getListTableColumns();\n $columns = array_map(function($object) {\n return $object['label'];\n }, $columns);\n $columns = array_values($columns);\n\n $columnsSql = implode(', ', self::$listTableColumnsKeys);\n $data = self::$wpdb->get_results(\n self::$wpdb->prepare(\n \"SELECT {$columnsSql}\n FROM \" . self::$table . \"\n ORDER BY id ASC\"\n )\n );\n return $data;\n }", "function filter_categories ( $page) {\n global $db;\n return find_by_sql(\"SELECT * FROM categorias where idpagina =\".$db->escape($page).\" ORDER BY name\");\n \n}", "function tt_render_list_page(){\n\t\n\t//Create an instance of our package class...\n\t$testListTable = new TT_Example_List_Table();\n\t//Fetch, prepare, sort, and filter our data...\n\t$testListTable->prepare_items();\n\t\n\t?>\n\t<div class=\"wrap\">\n\t\t\n\t\t<div id=\"icon-users\" class=\"icon32\"><br/></div>\n\t\t<h2>List Table Test</h2>\n\t\t\n\t\t<div style=\"background:#ECECEC;border:1px solid #CCC;padding:0 10px;margin-top:5px;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;\">\n\t\t\t<p>This page demonstrates the use of the <tt><a href=\"http://codex.wordpress.org/Class_Reference/WP_List_Table\" target=\"_blank\" style=\"text-decoration:none;\">WP_List_Table</a></tt> class in plugins.</p> \n\t\t\t<p>For a detailed explanation of using the <tt><a href=\"http://codex.wordpress.org/Class_Reference/WP_List_Table\" target=\"_blank\" style=\"text-decoration:none;\">WP_List_Table</a></tt>\n\t\t\tclass in your own plugins, you can view this file <a href=\"<?php echo admin_url( 'plugin-editor.php?plugin='.plugin_basename(__FILE__) ); ?>\" style=\"text-decoration:none;\">in the Plugin Editor</a> or simply open <tt style=\"color:gray;\"><?php echo __FILE__ ?></tt> in the PHP editor of your choice.</p>\n\t\t\t<p>Additional class details are available on the <a href=\"http://codex.wordpress.org/Class_Reference/WP_List_Table\" target=\"_blank\" style=\"text-decoration:none;\">WordPress Codex</a>.</p>\n\t\t</div>\n\t\t\n\t\t<!-- Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions -->\n\t\t<form id=\"movies-filter\" method=\"get\">\n\t\t\t<!-- For plugins, we also need to ensure that the form posts back to our current page -->\n\t\t\t<input type=\"hidden\" name=\"page\" value=\"<?php echo $_REQUEST['page'] ?>\" />\n\t\t\t<!-- Now we can render the completed list table -->\n\t\t\t<?php $testListTable->display() ?>\n\t\t</form>\n\t\t\n\t</div>\n\t<?php\n}", "public function getTableWhere() {}", "function getPagedStatement($sql,$page,$items_per_page);", "public function filterList($perPage = null);", "protected function getCleanableTableList() {}", "public function getListQuery();", "public function listForTable (){\r\n //generamo la query final que precisamos\r\n $queryResult= \"SELECT id,dni,nombre,apellido,mail FROM usuario.usuario ORDER BY id;\";\r\n\r\n //Ejecutamos la query\r\n $this->stmt=pg_query($this->link,$queryResult) or die(\"Error en la consulta,function listForTable :\".preg_last_error());\r\n\r\n return $this->stmt;\r\n }", "function getPagesQuery($table=' tx_tdcalendar_events'){\n\t\t$pages = $this->pidList;\n\t\tif(!$pages)return;\n\t\treturn ' AND '.$table.'.pid IN ('.$pages.') ';\n\t}", "function filter($param)\r\n\t{\r\n\r\n\t\t$this->view = false;\r\n\t\t$this->layout_name = false;\r\n\r\n\t\t$_SQL = Singleton::getInstance(SQL_DRIVER);\r\n\r\n\t\t$sql = \"SELECT `\" . $param[1] . \"` FROM `\" . $param[0] . \"` WHERE `\" . $param[1] . \"` LIKE '\" . $_SQL->sql_real_escape_string($_GET['q']) . \"%' \r\n\t\t ORDER BY `\" . $param[1] . \"` LIMIT 0,100\";\r\n\t\t$res = $_SQL->sql_query($sql);\r\n\r\n\t\twhile ( $ob = $_SQL->sql_fetch_object($res) )\r\n\t\t{\r\n\t\t\techo $ob->$param[1] . \"\\n\";\r\n\t\t}\r\n\t}", "public function allDatabaseEntrysForTablePagesAction() {\r\n\t\ttry {\r\n\t\t\t$searchPhrase = (string) $this->getModuleData('tx_extracache_manager_searchPhraseForTablePages');\r\n\t\t\t$sqlWhere = $this->createSqlWhereClauseForDbRecords($searchPhrase, array('tstamp','crdate','starttime','endtime')) . Tx_Extracache_System_Persistence_Typo3DbBackend::getSqlWherePartForPagesWithCacheCleanerStrategy();\r\n\t\t\t$this->getView()->assign ( 'allDatabaseEntrysForTablePages', $this->getCacheDatabaseEntryRepositoryForTablePages()->query ( '(tx_extracache_cleanerstrategies!=\\'\\' OR tx_extracache_events!=\\'\\') AND '.$sqlWhere ) );\r\n\t\t\treturn $this->getView()->render ( 'allDatabaseEntrysForTablePages' );\r\n\t\t} catch (Exception $e) {\r\n\t\t\treturn $this->showErrorMessage($e);\r\n\t\t}\r\n\t}", "public function list_table_page()\r\n {\r\n $productListTable = new Product_List_Table([]);\r\n $productListTable->prepare_items(); ?>\r\n\r\n <form id=\"posts-filter\" method=\"get\" >\r\n <input type=\"hidden\" name=\"page\" class=\"post_status_page\" value=\"gf-product-list\" />\r\n\r\n <?php $productListTable->search_box('Search products'); ?>\r\n <input type=\"hidden\" name=\"post_status\" class=\"post_status_page\" value=\"all\" />\r\n <input type=\"hidden\" name=\"post_type\" class=\"post_type_page\" value=\"product\" />\r\n <div class=\"wrap\">\r\n <div id=\"icon-users\" class=\"icon32\"></div>\r\n <a href=\"http://nss.local/wp-admin/post-new.php?post_type=product\" class=\"page-title-action\">Add New</a>\r\n <a href=\"http://nss.local/wp-admin/edit.php?post_type=product&amp;page=product_importer\" class=\"page-title-action\">Import</a>\r\n <a href=\"http://nss.local/wp-admin/edit.php?post_type=product&amp;page=product_exporter\" class=\"page-title-action\">Export</a>\r\n <h2 class=\"wp-custom-heading-inline\">Custom products list</h2>\r\n\r\n <?php $productListTable->bulk_actions(); ?>\r\n <?php $productListTable->render_products_category(); ?>\r\n <?php $productListTable->render_products_type(); ?>\r\n <?php $productListTable->render_products_stock_status(); ?>\r\n <?php submit_button('Filter', 'submit,', 'filter_action', '', false, array( 'id' => 'post_submit' )); ?>\r\n <?php $productListTable->display(); ?>\r\n </div>\r\n <?php\r\n }", "public function lst()\n\t{\n\t\t$list = AdminModel::paginate(3);\n\t\t$this->assign('list',$list);\n\t\treturn $this->fetch();\n\t}", "protected function defineListFilter()\n {\n // Initialise the filter\n $filter = $this->initFilter();\n if (!isset($filter['limit'])) {\n $filter['limit'] = array();\n }\n\n // Handle the page browsing variables\n if (isset($this->piVars['max'])) {\n $filter['limit']['max'] = $this->piVars['max'];\n }\n $filter['limit']['offset'] = isset($this->piVars['page']) ? $this->piVars['page'] : 0;\n\n // If the limit is still empty after that, consider the default value from TypoScript\n if (empty($filter['limit']['max'])) {\n $filter['limit']['max'] = $this->conf['listView.']['limit'];\n }\n\n // Handle sorting variables\n if (isset($this->piVars['sort'])) {\n $sortParts = GeneralUtility::trimExplode('.', $this->piVars['sort'], 1);\n $table = '';\n $field = $sortParts[0];\n if (count($sortParts) == 2) {\n $table = $sortParts[0];\n $field = $sortParts[1];\n }\n $order = isset($this->piVars['order']) ? $this->piVars['order'] : 'asc';\n $orderby = array(0 => array('table' => $table, 'field' => $field, 'order' => $order));\n $filter['orderby'] = $orderby;\n\n // If there were no variables, check a default sorting configuration\n } elseif (!empty($this->conf['listView.']['sort'])) {\n $sortParts = GeneralUtility::trimExplode('.', $this->conf['listView.']['sort'], 1);\n $table = '';\n $field = $sortParts[0];\n if (count($sortParts) == 2) {\n $table = $sortParts[0];\n $field = $sortParts[1];\n }\n $order = isset($this->conf['listView.']['order']) ? $this->conf['listView.']['order'] : 'asc';\n $orderby = array(0 => array('table' => $table, 'field' => $field, 'order' => $order));\n $filter['orderby'] = $orderby;\n }\n\n // Save the filter's hash in session\n $cacheKey = $this->prefixId . '_filterCache_default_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n\n return $filter;\n }", "public function lists(){\n\n $raw = $this->RxData;\n $head = C('PREURL');\n $ret = ['total' => 0, 'page_start' => 0, 'page_n' => 0, 'data' => []];\n\n $page = $raw['page_start']?$raw['page_start']:1;\n $num = $raw['page_limit']? $raw['page_limit']:10;\n $limit = $num*($page-1).','.$num;\n\n\n if(!$this->out['teacher_uid'])\n goto END;\n $time = time();\n\n $where['a.check']= PASS;\n $where['a.submit']= 1;\n\n $where['a.uid'] = $this->out['teacher_uid'];\n $where['a.suid'] = ['like','%,'.$this->out['uid'].',%'];\n\n\n if($raw['level_id'])\n $where['a.level_id']= $raw['level_id'];\n if(isset($raw['title']))\n $where['a.title']= ['like','%'.$raw['title'].'%'];\n\n if($raw['status_all'])\n $where['a.atime']= ['lt',$time];\n\n $raw['status'] = $raw['status_all']?$raw['status_all']:$raw['status_mine'];\n\n if(isset($raw['status'])){\n switch($raw['status']){\n case 1:\n $where['b.status']= HWK_DID;\n break;\n case 2:\n $where['b.status']= HWK_UNDO;\n break;\n case 3:\n $where['b.status']= HWK_UNCOT;\n break;\n case 4:\n $where['b.uid']= ['eq',$this->out['uid']];\n break;\n case 5:\n// $where['b.uid']= ['neq',$this->out['uid']];\n break;\n case 6:\n// $where['b.uid']= ['neq',$this->out['uid']];\n break;\n default:\n break;\n }\n }\n\n if($raw['time_start'] && $raw['time_end']){\n $where['a.atime'] = [\n ['egt',$raw['time_start']],\n ['lt',$raw['time_end']]\n ];\n }elseif($raw['time_start'] ) {\n $where['a.atime'] = ['egt', $raw['time_start']];\n }elseif($raw['time_end'] ){\n $where['a.atime'] = ['lt',$raw['time_end']];\n }\n\n $column = 'a.id,a.hwk_id,a.title,b.status as stu_status,c.name as level,a.mtime as atime';\n\n $order = 'a.mtime desc,id desc';\n\n\n if(isset($raw['status_mine'])){\n $join = 'RIGHT JOIN';\n $where['b.uid']= $this->out['uid'];\n\n $total = $this->model->selectHomeworkByRec('count(*) total',$where,'','');\n $res = $this->model->selectHomeworkByRec(\n $column,\n $where,\n $limit,\n $order\n\n );\n }else {\n //默认为作业池\n if ($raw['status_all'] == 5) {\n $total = $this->model->selectHomeworkForAll('count(*) total', $where, '', '',$this->out['uid']);\n $res = $this->model->selectHomeworkForAll(\n $column,\n $where,\n $limit,\n $order,$this->out['uid']\n );\n } elseif ($raw['status_all'] == 4) {\n $total = $this->model->selectHomeworkForAll('count(*) total', $where, '', '',$this->out['uid']);\n $res = $this->model->selectHomeworkForAll(\n $column,\n $where,\n $limit,\n $order,$this->out['uid']\n );\n } else {\n $total = $this->model->selectHomeworkForAll('count(*) total', $where, '', '',$this->out['uid']);\n $res = $this->model->selectHomeworkForAll(\n $column,\n $where,\n $limit,\n $order,$this->out['uid']\n );\n }\n }\n\n if(!$res)\n goto END;\n\n $result = [] ;\n $chk_sub = false;\n foreach($res as $k=>&$v){\n\n\n if($v['level_id'] > $this->out['level_id']){\n unset($res[$k]);\n continue;\n }\n $v['etime'] = $v['atime'] + C('EXPIRE_HWK');\n if($raw['status_all'] == 5){\n if($v['stu_status']){\n continue;\n }\n }\n $v['status'] = $v['stu_status']?$v['stu_status']:HWK_REV;\n if(isset($raw['status_all']) && $v['stu_status']){\n $v['status'] = HWK_NOT_REV;\n }\n//过期\n if(!$v['stu_status'] && time() > ($v['atime']+C('EXPIRE_HWK')))\n $v['status'] = HWK_EXIPRE;\n//逾期\n if($v['stu_status'] == HWK_UNDO && (time()>($v['atime']+C('EXPIRE_SUB'))))\n $chk_sub = true;\n\n $result[] = $v;\n }\n\n $ret['total'] = $total[0]['total'];\n $ret['page_n'] = count($result);\n $ret['page_start'] = $page;\n $ret['data'] = $result;\n $ret['expire'] = $chk_sub?HWK_EXPIRE:HWK_OK;\n\n //已完成列表 不提示\n if($raw['status'] == 1 )\n $ret['expire'] = HWK_OK;\n\n\nEND:\n\n $this->retReturn($ret);\n\n }", "function cicleinscription_get_itemsTable($table, $page = 0, $perpage = 0, $sort = \"o.name ASC\"){\n\tglobal $DB;\n\n\t$limitsql = '';\n\t$page = (int) $page;\n\t$perpage = (int) $perpage;\n\n\t# Iniciando paginacao\n\tif($page || $perpage){\n\tif ($page < 0) {\n\t$page = 0;\n\t}\n\n\tif ($perpage > ITEMS_MAX_PER_PAGE) {\n\t$perpage = ITEMS_MAX_PER_PAGE;\n\t} else if ($perpage < 1) {\n\t\t$perpage = ITEMS_PER_PAGE;\n\t}\n\t$limitsql = \" LIMIT $perpage\" . \" OFFSET \" . $page * $perpage;\n\t}\n\t\n\t// recupera todos os itens cadastrados\n\t$items = $DB->get_records_sql(\"SELECT o.*\n\t\t\t\tFROM {{$table}} o\n\t\t\t\tORDER BY {$sort} {$limitsql}\"\n\t\t\t);\n\t\n\treturn $items;\n}", "abstract protected function _listTables();", "function get_display_list($dataBaseHandle,$username,$index_id,$per_page,$get_deleted){\n\t\t//echo '<br>list index = '.$index_id;\n\t\t//$table = ($get_deleted)?$username.'_deleted':$username;\n\n\t\t$SqlQuery = '';\n\t\tif ($get_deleted == true){\t\t\n\t\t\t$SqlQuery .= 'SELECT '.$username.'.*,'.$username.'_sorted.id \n\t\t\t\t\t\tFROM '.$username.'_sorted \n\t\t\t\t\t\tINNER JOIN '.$username.' ON ('.$username.'_sorted.task_id = '.$username.'.task_id) AND ('.$username.'_sorted.id > '.$index_id.') \n\t\t\t\t\t\tLIMIT '.$per_page;\t\t\t\n\t\t} else {\n\t\t\t$SqlQuery .= 'SELECT * FROM '.$username.'_deleted LIMIT '.$per_page;\n\t\t}\t\t\t\n\t\treturn $dataBaseHandle->query($SqlQuery);\n\t}", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "public function liste(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"many\"));\n\t\t\t\t\t }", "function getListOfRecords(){\n // the orders will be display and the receipts from there \n \n $element = new Order();\n \n $receipts_filter_orders = cisess(\"receipts_filter_orders\");\n \n if ($receipts_filter_orders===FALSE){\n $receipts_filter_orders = \"Abierta\"; // default to abiertas\n }\n \n if (!empty($receipts_filter_orders))\n {\n $element->where(\"status\",$receipts_filter_orders);\n }\n \n \n $element->order_by(\"id\",\"desc\");\n \n $all = $element->get()->all;\n //echo $element->check_last_query();\n ///die();\n $table = $this->entable($all);\n \n return $table;\n \n \n }", "abstract function get_sql_filter($data);", "function modeling_publicusershistoriakses_listall_by_page( $tbl_publicusers_historiakses , $offset , $dataPerPage){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_publicusers_historiakses ORDER BY id DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "protected function setupListOperation()\n {\n CRUD::column('key')->label('ID key')->type('text');\n CRUD::column('name')->label('Nom')->type('text')->limit(200);\n }", "function getListByState()\n {\n // Get the session state, or create a new session state\n $state = $this->checkState($this->getState());\n\n // Set up sorting and pagination\n $order = $state->sortBy . \" \" . ($state->sortAsc ? \"ASC\" : \"DESC\");\n $limit = $state->pageSize;\n $page = $state->pageShown;\n\n // Start with no tables, and noconditions\n //$tables = \"\"; //unused\n $conditions = $this->conditions;\n\n // Add the main table\n\n // Add in the map filter conditions\n\n if (!empty($state->mapFilterSelections)) {\n foreach ($state->mapFilterSelections as $column => $value) {\n if (!empty($column) && null !== $value && \"\" != $value) {\n $conditions[$column] = $value;\n }\n }\n }\n\n // Add in any join filter conditions\n if (!empty($state->joinFilterSelections)) {\n foreach ($state->joinFilterSelections as $filter => $value) {\n // Find the joinFilter object relating to this one\n $joinFilter = null;\n foreach ($this->joinFilters as $thisJoinFilter) {\n if ($thisJoinFilter['id'] == $filter) {\n $joinFilter = $thisJoinFilter;\n break;\n }\n }\n\n // Make sure we found this filter\n if ($joinFilter == null) {\n continue;\n }\n\n // Check to make sure we should be considering this value at this time\n if (!empty($joinFilter['dependsMap']) && !empty($joinFilter['dependsValues'])) {\n if (!empty($state->mapFilterSelections)) {\n if (!in_array($state->mapFilterSelections->$joinFilter['dependsMap'],\n $joinFilter['dependsValues'])) {\n // do not concider at this time\n continue;\n }\n } else {\n continue;\n }\n }\n\n if (!empty($filter) && !empty($value)) {\n // Keywords starting with !!! are a special case\n if (!$this->isSpecialValue($value)) {\n $conditions[$filter] = $value;\n } else {\n // note: no quotes around special value\n $conditions[$filter] = substr($value, 3);\n }\n }\n }\n }\n\n // Add in any extra Filters - by array or by string.\n if (!empty($this->extraFilters)) {\n if (is_array($this->extraFilters)) {\n /*foreach ($this->extraFilters as $column => $value) {\n $conditions[$column] = $value;\n }*/\n $conditions = array_merge($conditions, $this->extraFilters);\n } else if (is_string($this->extraFilters)) {\n $conditions[] = $this->extraFilters;\n }\n }\n\n // Add in the search conditions\n if (!empty($state->searchBy) && !empty($state->searchValue)) {\n $conditions[$state->searchBy . \" LIKE\"] = '%' . $state->searchValue . '%';\n }\n\n // The default functions for searhing\n $customModelFindFunction = \"find\";\n\n // Put in the custom functions is they were suppplied\n if (!empty($this->customModelFindFunction)) {\n $customModelFindFunction = $this->customModelFindFunction;\n }\n if (!empty($this->customModelCountFunction)) {\n $customModelCountFunction = $this->customModelCountFunction;\n }\n\n // Figure out the table joins, if any\n $joinTable = \"\";\n // comment out by compass. use association and default join format\n/* if (!empty($this->joinFilters)) {\n for ($i = 0; $i < sizeof($this->joinFilters); $i++) {\n $joinFilter = $this->joinFilters[$i];\n if (!empty($joinFilter)) {\n // Set up the default values\n $localKey = !empty($joinFilter['localKey']) ? $joinFilter['localKey'] : \"id\";\n $foreignKey = !empty($joinFilter['foreignKey']) ? $joinFilter['foreignKey'] : \"id\";\n $localModel = !empty($joinFilter['localModel']) ? $joinFilter['localModel'] : $this->model->name;\n\n $joinTable .= \" LEFT JOIN `$joinFilter[joinTable]` as `$joinFilter[joinModel]`\";\n $joinTable .= \" on `$localModel`.`$localKey`=`$joinFilter[joinModel]`.`$foreignKey`\";\n }\n }\n}*/\n\n\n\n // Get the group By // we always group by this models's id, to make\n // sure there is only 1 result per entry even when using inner join.\n $groupBy = array($this->model->name . \".id\");\n\n // Do the database quiries to return the data\n // Group by needs to be \"hacked\" onto the conditions, since Cake php 1.1 has no direct support\n // for it. However, in findCound, the group by must be absent.\n $data = $this->model->$customModelFindFunction('all', array('conditions' => $conditions,\n 'group' => $groupBy,\n 'fields' => $this->fields,\n 'order' => $order,\n 'limit' => $limit,\n 'page' => $page,\n 'recursive' => $this->recursive,\n 'joins' => array($joinTable)));\n\n // Counts a bit more difficult with grouped, joint tables.\n if (isset($customModelCountFunction)) {\n $count = $this->model->$customModelCountFunction\n ($conditions, $groupBy, $this->recursive, array($joinTable));\n } else {\n //$count = $this->betterCount\n // ($conditions, $groupBy, array($joinTable));\n $count = $this->model->$customModelFindFunction('count', array('conditions' => $conditions,\n ));\n }\n\n // Format the dates as given in the iPeer database\n $data = $this->formatDates($data);\n\n // Post-process Data, if asked\n if (!empty($this->postProcessFunction)) {\n $function = $this->postProcessFunction;\n $data = $this->controller->$function($data);\n }\n\n // Package up the list, and return it to caller\n $result = array (\"entries\" => $data,\n \"count\" => $count,\n \"state\" => $state,\n \"timeStamp\" => time());\n\n return $result;\n }", "public function listtabelPrncAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('PERENCANAAN');\n }", "public function listAction() {\n\t\t$this->view->config = Marcel_Backoffice_Config::getInstance()->getConfig();\n\t\t$modelName = $this->_getParam('model');\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$this->view->cols = $model->info('cols');\n\t\t$select = null;\n\t\t\n\t\tif ($this->_request->getParam('data')) {\n\t\t\t\n\t\t\t$data = unserialize($this->_request->getParam('data'));\n\t\t\t$aWhere = array();\n\t\t\t$searchText = array();\n\t\t\t\n\t\t\tforeach ($data['query'] as $key => $q) {\n\t\t\t\n\t\t\t\tif (isset($data['fields'][$key]) && !empty($data['fields'][$key])) {\n\t\t\t\t\n\t\t\t\t\t$func = addslashes($data['func'][$key]);\n\t\t\t\t\t$q =\taddslashes($q);\n\t\t\t\t\t$tmpWhere = array();\n\t\t\t\t\t$searchText[] = implode(' OU ', $data['fields'][$key]) . ' ' . $this->view->func[$func] . ' \"' . stripslashes($q) . '\"';\n\t\t\t\t\t\n\t\t\t\t\tforeach ($data['fields'][$key] as $field) {\n\t\t\t\t\t\n\t\t\t\t\t\t$field\t=\taddslashes($field);\n\t\t\t\t\t\tswitch ($func) {\n\t\t\t\t\t\t\tcase 'LIKE':\n\t\t\t\t\t\t\tcase 'NOT LIKE':\n\t\t\t\t\t\t\tcase '=':\n\t\t\t\t\t\t\tcase '!=':\n\t\t\t\t\t\t\tcase '>':\n\t\t\t\t\t\t\tcase '>=':\n\t\t\t\t\t\t\tcase '<':\n\t\t\t\t\t\t\tcase '<=':\n\t\t\t\t\t\t\t\tif (trim($q) != '') { $tmpWhere[] = $field . ' ' . $func . ' \\'' . $q . '\\''; }\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase \"= ''\":\n\t\t\t\t\t\t\tcase \"!= ''\":\n\t\t\t\t\t\t\tcase 'IS NULL':\n\t\t\t\t\t\t\tcase 'IS NOT NULL':\n\t\t\t\t\t\t\t\t$tmpWhere[] = $field . ' ' . stripslashes($func);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tif (trim($q) != '') { $tmpWhere[] = $field . ' LIKE \\'%' . $q . '%\\''; }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$aWhere[] = '(' . implode(' OR ', $tmpWhere) . ')';\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!empty($aWhere)) { $select = $model->select()->where(implode(' AND ', $aWhere)); }\n\t\t\t$this->view->searchText = $searchText;\n\t\t}\n\t\t$this->view->model = $modelName;\n\t\t$this->view->allData = $model->fetchAll($select);\n\t\t$this->view->data = Zend_Paginator::factory($this->view->allData)\n\t\t\t\t\t\t\t->setCurrentPageNumber($this->_getParam('page', 1));\n\t}", "public function listtabelTAPAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('TATA PERSURATAN');\n }", "function &getList()\r\n{\r\n// if the table doesn't exist yet, just return an empty array\r\n\r\n\tif (!$this->table_exists())\r\n\t\t{\r\n\t\t$nothing = array();\r\n\t\treturn $nothing;\r\n\t\t}\r\n\t\t\r\n// get the filter states, order states, and pagination variables\r\n\r\n\t$filter_date = $this->_app->getUserStateFromRequest(LAFC_COMPONENT.'.filter_date','filter_date',LAFC_LOG_LAST_28_DAYS,'int');\r\n\t$limit = $this->_app->getUserStateFromRequest('global.list.limit', 'limit', $this->_app->getCfg('list_limit'), 'int');\r\n\t$limitstart = $this->_app->getUserStateFromRequest(LAFC_COMPONENT.'.limitstart', 'limitstart', 0, 'int');\r\n\t$limitstart = ($limit != 0 ? (floor($limitstart / $limit) * $limit) : 0); // In case limit has been changed\r\n\t$filter_order = $this->_app->getUserStateFromRequest(LAFC_COMPONENT.'.filter_order', 'filter_order', 'datetime');\r\n\t$filter_order_Dir = $this->_app->getUserStateFromRequest(LAFC_COMPONENT.'.filter_order_Dir', 'filter_order_Dir', 'desc');\r\n\r\n// build the query\r\n\r\n\t$query_count = \"SELECT count(*) \";\r\n\t$query_cols = \"SELECT id, datetime, name, email, subject, SUBSTRING(message,1,60) AS short_message, status_main, status_copy \";\r\n\t$query_from = \"FROM #__flexicontact_log \";\r\n\r\n// where\r\n\r\n\t$query_where = \"WHERE 1 \";\r\n\r\n\tswitch ($filter_date)\r\n\t\t{\r\n\t\tcase LAFC_LOG_ALL:\r\n\t\t\tbreak;\r\n\t\tcase LAFC_LOG_LAST_7_DAYS:\r\n\t\t\t$query_where .= \"and datetime >= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY)\";\r\n\t\t\tbreak;\r\n\t\tcase LAFC_LOG_LAST_28_DAYS:\r\n\t\t\t$query_where .= \"and datetime >= DATE_SUB(CURRENT_DATE(), INTERVAL 28 DAY)\";\r\n\t\t\tbreak;\r\n\t\tcase LAFC_LOG_LAST_12_MONTHS:\r\n\t\t\t$query_where .= \"and datetime >= DATE_SUB(CURRENT_DATE(), INTERVAL 12 MONTH)\";\r\n\t\t}\t\r\n\r\n// order by\r\n\r\n\tswitch ($filter_order)\t\t\t\t\t\t\t// validate column name\r\n\t\t{\r\n\t\tcase 'name':\r\n\t\tcase 'email':\r\n\t\tcase 'subject':\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t$filter_order = 'datetime';\r\n\t\t}\r\n\r\n\tif (strcasecmp($filter_order_Dir,'ASC') != 0)\t// validate 'asc' or 'desc'\r\n\t\t$filter_order_Dir = 'DESC';\r\n\r\n\t$query_order = \" ORDER BY \".$filter_order.' '.$filter_order_Dir;\r\n\r\n// get the total row count\r\n\r\n\t$count_query = $query_count.$query_from.$query_where;\r\n\t$total = $this->ladb_loadResult($count_query);\r\n\t\r\n\tif ($total === false)\r\n\t\t{\r\n\t\t$this->_app->enqueueMessage($this->ladb_error_text, 'error');\r\n\t\treturn $total;\r\n\t\t}\r\n\r\n// setup the pagination object\r\n\r\n\t$this->_pagination = new JPagination($total, $limitstart, $limit);\r\n\r\n//now get the data, within the limits required\r\n\r\n\t$main_query = $query_cols.$query_from.$query_where.$query_order;\r\n\t$this->_data = $this->ladb_loadObjectList($main_query, $limitstart, $limit);\r\n\t\r\n\tif ($this->_data === false)\r\n\t\t{\r\n\t\t$this->_app->enqueueMessage($this->ladb_error_text, 'error');\r\n\t\treturn $this->_data;\r\n\t\t}\r\n\t\t\r\n\treturn $this->_data;\r\n}", "public function indexForFilter(){\n $user = $this->_ap_right_check();\n if(!$user){\n return;\n }\n $query = $this->{$this->main_model}->find();\n $this->CommonQuery->build_common_query($query,$user,[]); \n $q_r = $query->all();\n $items = array();\n foreach($q_r as $i){\n array_push($items,array(\n 'id' => $i->id, \n 'text' => $i->name\n ));\n } \n\n $this->set(array(\n 'items' => $items,\n 'success' => true,\n '_serialize' => array('items','success')\n ));\n }", "public function listtabelCSAction() {\n $this->view->tableList = $this->adm_listtabel_serv->getTableList('CURRENT SYSTEM');\n }", "function BeforeQueryList(&$strSQL, &$strWhereClause, &$strOrderBy, &$pageObject)\n{\n\n\t\t$_SESSION[\"strWhereClause\"]=$strWhereClause;\n\n\n;\t\t\n}", "private function lists(){\n\t\t\t$constrain = '';\n\t\t\t$offset = $this->validateNumber(isset($_GET['offset'])?$_GET['offset']:NULL);\n\t\t\t$idRecepcion = $this->validateNumber(isset($_GET['id'])?$_GET['id']:NULL);\n\t\t\t$constrains = isset($_POST['constrains'])?$_POST['constrains']:'1 = 1';\n\t\t\t\n\t\t\tif($constrains === '1 = 1'){\n\t\t\t\t$constrain = $constrains;\n\t\t\t}else{\n\t\t\t\t$tam = count($constrains);\n\t\t\t\tforeach ($constrains as $campo => $valor) {\n\t\t\t\t\tif(--$tam){\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor.' AND ';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\" AND ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($offset!==''){ \n\t\t\t\tif ($idRecepcion!=='') {\n\t\t\t\t\tif(($result = $this->model->listsDetails($idRecepcion))){\n\t\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->session['action']='list';\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('recepcionForm.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(($result = $this->model->lists($offset,-1,$constrain))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('recepcionList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function ListTable()\n {\n echo $this->ListTableText();\n }", "function getListSQL()\n{\n global $User;\n $listFilterSQL = $User->getListFilterSQL( $this->moduleID );\n return $this->listSQL .$listFilterSQL;\n}", "public function getTabularItems()\n {\n return SATabularListM::model()->findAll(array('order'=>'tabularlist_block'),array('tabularlist_aktif'=>TRUE));\n // return Yii::app()->db->createCommand('SELECT tabularlist_id, tabularlist_block FROM tabularlist_m WHERE tabularlist_aktif=TRUE')->queryAll();\n }", "function xh_listFilters()\r\n\t{\r\n\t}", "private function sql_resAllItemsFilterWiRelation()\n {\n // Don't count hits\n $bool_count = false;\n\n // Query for all filter items\n $select = $this->sql_select( $bool_count );\n $from = $this->sql_from();\n $where = $this->sql_whereAllItems();\n $groupBy = $this->curr_tableField;\n $orderBy = $this->sql_orderBy();\n $limit = $this->sql_limit();\n\n// $query = $GLOBALS['TYPO3_DB']->SELECTquery\n// (\n// $select,\n// $from,\n// $where,\n// $groupBy,\n// $orderBy,\n// $limit\n// );\n//$this->pObj->dev_var_dump( $query );\n // Execute query\n $arr_return = $this->pObj->objSqlFun->exec_SELECTquery\n (\n $select, $from, $where, $groupBy, $orderBy, $limit\n );\n // Execute query\n\n return $arr_return;\n }", "function list_table_where(){\n if(count($this->session->hierarchy_offices) == 0){\n $message = \"You do not have offices in your hierarchy. \n Kindly ask the administrator to add an office or <a href='\".$_SERVER['HTTP_REFERER'].\"'/>go back</a>\"; \n show_error($message,500,'An Error As Encountered'); \n }else{\n $this->db->where_in($this->controller.'.fk_office_id',array_column($this->session->hierarchy_offices,'office_id'));\n } \n }", "function toggle_detail_list_query(String $table): Array {\n $model = $this->CI->grants->load_detail_model($table);\n \n $detail_list_query = $this->detail_list_internal_query_result($table); // System generated query result\n \n \n if(method_exists($this->CI->$model,'detail_list_query') && \n is_array($this->CI->$model->detail_list_query($table)) &&\n count($this->CI->$model->detail_list_query($table)) > 0\n ){\n $detail_list_query = $this->CI->$model->detail_list_query($table); // A full user defined query result\n } \n\n //print_r($detail_list_query);\n //exit();\n\n $detail_list_query = $this->CI->grants->update_query_result_for_fields_changed_to_select_type($table,$detail_list_query);\n \n \n return $detail_list_query;\n }", "function get_paged_list($limit = null, $offset = 0, $filtro = null) {\r\n if(!empty($filtro)){\r\n $filtro = explode(' ', $filtro);\r\n foreach($filtro as $f){\r\n $this->db->or_like('c.nombre',$f);\r\n $this->db->or_like('c.descripcion',$f);\r\n }\r\n }\r\n $this->db->select('c.*, COUNT(m.id) as modulos');\r\n $this->db->join('Modulos m','c.id = m.id_calle','left');\r\n $this->db->group_by('c.id');\r\n $this->db->order_by('c.nombre','asc');\r\n return $this->db->get($this->tbl.' c', $limit, $offset);\r\n }", "abstract public function columnListQuery($table);", "public function getPageData() {\n\t\t//$stat = Statistic::select(array('statistic.id', 'statistic.created_at','category.category_name', 'statistic.ip_address'))\n\t\t//->join('category','statistic.category_id','=','category.id'); \n\t\t$stat = StatView::select(array('id','date','category_name', 'ip_address'));\n\n\t\treturn Datatables::of($stat) \n\t\t-> add_column('actions','<a href=\"{{{ URL::to(\\'admin/blogs/\\' . $id . \\'/delete\\' ) }}}\" class=\"btn btn-xs btn-danger iframe\">{{{ Lang::get(\\'button.delete\\') }}}</a>') \n -> remove_column('id') -> make();\n\n\t}", "function get_list($table,$language_not_default)\n\t\t{\n\t\t\tglobal $db;\n\t\t\t$query = $this->setQuery($table,$language_not_default);\n\t\t\t$sql = $db->query_limit($query,$this->limit,$this->page);\n\t\t\t$result = $db->getObjectList();\n\t\t\t\n\t\t\treturn $result;\n\t\t}", "function newsItem_BacaDataListing_Tampil_All( $tbl_news , $offset , $dataPerPage ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE statustampil = '0' ORDER BY urutan DESC, timeunix DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "private function list_data_sql()\n\t{\n\t\t$this->db\n\t\t\t->from('tweb_penduduk u')\n\t\t\t->join('tweb_keluarga d', 'u.id_kk = d.id', 'left')\n\t\t\t->join('tweb_wil_clusterdesa a', 'd.id_cluster = a.id', 'left')\n\t\t\t->join('tweb_penduduk_sex x', 'u.sex = x.id', 'left')\n\t\t\t->join('tweb_penduduk_agama g', 'u.agama_id = g.id', 'left')\n\t\t\t->join('tweb_status_dasar sd', 'u.status_dasar = sd.id', 'left')\n\t\t\t->join('log_penduduk log', 'u.id = log.id_pend', 'left')\n\t\t\t->join('ref_pindah rp', 'rp.id = log.ref_pindah', 'left')\n\t\t\t->where('u.status_dasar >', 1)\n\t\t\t->where_in('log.id_detail', array(2, 3, 4));\n\n\t\t$this->search_sql();\n\t\t$this->status_dasar_sql();\n\t\t$this->sex_sql();\n\t\t$this->agama_sql();\n\t\t$this->dusun_sql();\n\t\t$this->rw_sql();\n\t\t$this->rt_sql();\n\t}", "private function lists(){\n\t\t\t$constrain = '';\n\t\t\t$offset = $this->validateNumber(isset($_GET['offset'])?$_GET['offset']:NULL);\n\t\t\t$idRemision = $this->validateNumber(isset($_GET['id'])?$_GET['id']:NULL);\n\t\t\t$constrains = isset($_POST['constrains'])?$_POST['constrains']:'1 = 1';\n\t\t\t\n\t\t\tif($constrains === '1 = 1'){\n\t\t\t\t$constrain = $constrains;\n\t\t\t}else{\n\t\t\t\t$tam = count($constrains);\n\t\t\t\tforeach ($constrains as $campo => $valor) {\n\t\t\t\t\tif(--$tam){\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor.' AND ';\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\" AND ';\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(is_numeric($valor)){\n\t\t\t\t\t\t\t$constrain.=$campo.' = '.$valor;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$constrain.=$campo.' LIKE \"%'.$valor.'%\"';\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif($offset!==''){ \n\t\t\t\tif ($idRemision!=='') {\n\t\t\t\t\tif(($result = $this->model->listsDetails($idRemision))){\n\t\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t$this->session['action']='list';\n\t\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('remisionForm.html');\n\t\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else if(($result = $this->model->lists($offset,-1,$constrain))){\n\t\t\t\t\tif(is_numeric($result)){\n\t\t\t\t\t\tif ($this->api) {\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>VACIO,'data'=>NULL,'mensaje'=>'No se encontro Registro alguno'));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('vacio.html'); echo $template->render(array('session'=>$this->session,'data'=>NULL));\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif($this->api){\n\t\t\t\t\t\t\techo $this->json_encode(array('error'=>OK,'data'=>$result,'mensaje'=>'Correcto'),JSON_UNESCAPED_UNICODE);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t$template = $this->twig->loadTemplate('remisionList.html');\n\t\t\t\t\t\t\techo $template->render(array('session'=>$this->session,'data'=>$result));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif($this->api){\n\t\t\t\t\t\techo $this->json_encode(array('error'=>ERROR_DB,'data'=>NULL,'mensaje'=>'Error al Realizar la Consulta'));\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//CARGAR VISTA ERROR DB\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tif($this->api){\n\t\t\t\t\techo $this->json_encode(array('error'=>FORMATO_INCORRECTO,'data'=>NULL,'mensaje'=>'Formato Incorrecto'));\n\t\t\t\t}else{\n\t\t\t\t\t//CARGAR VISTA FORMATO INCORRECTO\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function listing();", "public function showList()\n {\n $query = \"SELECT * FROM todos LIMIT :numRecs OFFSET :offsetVal\";\n $stmt = $this->dbConnection->prepare($query);\n $stmt->bindValue(':numRecs', $this->numRecords, PDO::PARAM_INT);\n $stmt->bindValue(':offsetVal', $this->offsetValue, PDO::PARAM_INT);\n $stmt->execute();\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\n }", "function newsItem_BacaDataListing_Pilihan_All( $tbl_news , $offset , $dataPerPage ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE pilihan != '0' ORDER BY urutan DESC, timeunix DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "function home_filter()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif($data['t'] == 'best_evaluated_bidders') $data['listtype'] = 'best_bidders';\n\t\t\n\t\t$this->load->view($this->get_section_folder($data['t']).'/list_filter', $data);\n\t}", "function getListQuery() \n\t{\n\t\t$db = JFactory::getDBO();\n\t\t$query = $db->getQuery(true);\n\t\t\n\t\t$query->select('<#= Value(\"Task.tableAlias\") #>.*');\n\t\t$query->from('#__<#= Value(\"Task.table\") #> AS <#= Value(\"Task.tableAlias\") #>');\n\t\t\n\t\t// Filter by search in fields\n\t\t$search = $this->getState('filter.search');\n\t\t$search_filter = $this->getState('search.filter');\n\t\tif (!empty($search) && !empty($search_filter)) {\n\t\t\t$where = '((0=1) ';\n\t\t\t$search = $db->Quote('%'.$db->getEscaped($search, true).'%');\n\t\t\t$allowedSearch = explode(',', $search_filter);\n\t\t\tforeach($allowedSearch as $field) {\n\t\t\t\tif (!$field) continue;\n\t\t\t\t$where .= \" OR ( $field LIKE $search ) \";\n\t\t\t}\n\t\t\t$where .= ')';\n\t\t\t$query->where($where);\n\t\t}\n\t\t\t\n\t\t$form = $this->getForm(array(), false);\n\t\tforeach ($form->getFieldset('select_lists') as $field) {\n\t\t\t$select = $form->getFieldAttribute($field->name, 'select', null);\n\t\t\tif(!is_null($select)) {\n\t\t\t\t$query->select($select);\t\t\t\t\n\t\t\t}\n\t\t\t$join = $form->getFieldAttribute($field->name, 'join', null);\n\t\t\tif(!is_null($join)) {\n\t\t\t\t$query->join('LEFT',$join);\t\t\t\t\n\t\t\t}\n\t\t\t$field_value = $this->getState(str_replace('_', '.', $field->name), NULL);\n\t\t\t//Check that the field was set in the state variables and user has selected\n\t\t\t//a filter.\n\t\t\tif(!is_null($field_value) && $field_value !== '') {\n\t\t\t\t$field_where = $form->getFieldAttribute($field->name, 'where', null);\n\t\t\t\tif(!is_null($field_where)) {\n\t\t\t\t\t$query->where(str_replace('{0}', $db->quote($field_value), $field_where));\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$field_name = $form->getFieldAttribute($field->name, 'key_field', null);\n\t\t\t\t\t//Key field should always exist.\n\t\t\t\t\t$query->where(\"<#= Value(\"Task.tableAlias\") #>.$field_name = \" . $db->quote($field_value));\t\t\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\t// Add the list ordering clause.\n\t\t$orderCol\t= $this->state->get('list.ordering');\n\t\t$orderDirn\t= $this->state->get('list.direction');\n\t\t$query->order($db->getEscaped($orderCol.' '.$orderDirn));\n\t\t\n\t\treturn $query;\n\t}", "public function table_get_all($table);", "public static function listTable() {\n self::init();\n $columns = self::getListTableColumns();\n $columnsData = array();\n\n foreach($columns as $key => $value)\n $columnsData[$key] = $value['label'];\n\n new AdminListTable(\n self::$table,\n array(\n 'singular' => 'Log',\n 'plural' => 'Logs',\n ),\n array(\n 'columns' => $columnsData,\n 'orderby' => 'date_time',\n 'order' => 'desc',\n 'search' => array(\n 'date_time',\n ),\n 'sortable' => array(\n 'date_time' => 'date_time',\n ),\n 'per_page' => 40,\n )\n );\n }", "function getSitesList(){\n $result = db_select('fossee_website_index','n')\n ->fields('n',array('site_code','site_name'))\n ->range(0,50)\n //->condition('n.uid',$uid,'=')\n ->execute();\n\n return $result;\n\n}", "function kas_list($filter,$start,$end){\r\n\t\t\t$query = \"SELECT * FROM bs \";\r\n\t\t\t\r\n\t\t\t// For simple search\r\n\t\t\tif ($filter<>\"\"){\r\n\t\t\t\t$query .=eregi(\"WHERE\",$query)? \" AND \":\" WHERE \";\r\n\t\t\t\t$query .= \" (bs_tanggal LIKE '%\".addslashes($filter).\"%' OR bs_keterangan LIKE '%\".addslashes($filter).\"%' OR bs_kode LIKE '%\".addslashes($filter).\"%' OR bs_tipe LIKE '%\".addslashes($filter).\"%')\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$result = $this->db->query($query);\r\n\t\t\t$nbrows = $result->num_rows();\r\n\t\t\t$limit = $query.\" LIMIT \".$start.\",\".$end;\t\t\r\n\t\t\t$result = $this->db->query($limit); \r\n\t\t\t\r\n\t\t\tif($nbrows>0){\r\n\t\t\t\tforeach($result->result() as $row){\r\n\t\t\t\t\t$arr[] = $row;\r\n\t\t\t\t}\r\n\t\t\t\t$jsonresult = json_encode($arr);\r\n\t\t\t\treturn '({\"total\":\"'.$nbrows.'\",\"results\":'.$jsonresult.'})';\r\n\t\t\t} else {\r\n\t\t\t\treturn '({\"total\":\"0\", \"results\":\"\"})';\r\n\t\t\t}\r\n\t\t}", "protected function _list_items_query()\n\t{\n\t\t$this->filters = (array) $this->filters;\n\t\t$where_or = array();\n\t\t$where_and = array();\n\t\tforeach($this->filters as $key => $val)\n\t\t{\n\t\t\tif (is_int($key))\n\t\t\t{\n\t\t\t\tif (isset($this->filters[$val])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$key = $val;\n\t\t\t\t$val = $this->filter_value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// used for separating table names and fields since periods get translated to underscores\n\t\t\t\t$key = str_replace(':', '.', $key);\n\t\t\t}\n\t\t\t\n\t\t\t$joiner = $this->filter_join;\n\t\t\t\n\t\t\tif (is_array($joiner))\n\t\t\t{\n\t\t\t\tif (isset($joiner[$key]))\n\t\t\t\t{\n\t\t\t\t\t$joiner = $joiner[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$joiner = 'or';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!empty($val)) \n\t\t\t{\n\t\t\t\t$joiner_arr = 'where_'.$joiner;\n\t\t\t\t\n\t\t\t\tif (strpos($key, '.') === FALSE AND strpos($key, '(') === FALSE) $key = $this->table_name.'.'.$key;\n\t\t\t\t\n\t\t\t\t//$method = ($joiner == 'or') ? 'or_where' : 'where';\n\t\t\t\t\n\t\t\t\t// do a direct match if the values are integers and have _id in them\n\t\t\t\tif (preg_match('#_id$#', $key) AND is_numeric($val))\n\t\t\t\t{\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\tarray_push($$joiner_arr, $key.'='.$val);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from imknight https://github.com/daylightstudio/FUEL-CMS/pull/113#commits-pushed-57c156f\n\t\t\t\t//else if (preg_match('#_from#', $key) OR preg_match('#_to#', $key))\n\t\t\t\telse if (preg_match('#_from$#', $key) OR preg_match('#_fromequal$#', $key) OR preg_match('#_to$#', $key) OR preg_match('#_toequal$#', $key) OR preg_match('#_equal$#', $key))\n\t\t\t\t{\n\t\t\t\t\t//$key = strtr($key, array('_from' => ' >', '_fromequal' => ' >=', '_to' => ' <', '_toequal' => ' <='));\n\t\t\t\t\t$key_with_comparison_operator = preg_replace(array('#_from$#', '#_fromequal$#', '#_to$#', '#_toequal$#', '#_equal$#'), array(' >', ' >=', ' <', ' <=', ' ='), $key);\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\t//$where_or[] = $key.'='.$this->db->escape($val);\n\t\t\t\t\tarray_push($$joiner_arr, $key_with_comparison_operator.$this->db->escape($val));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$method = ($joiner == 'or') ? 'or_like' : 'like';\n\t\t\t\t\t//$this->db->$method('LOWER('.$key.')', strtolower($val), 'both');\n\t\t\t\t\tarray_push($$joiner_arr, 'LOWER('.$key.') LIKE \"%'.strtolower($val).'%\"');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// here we will group the AND and OR separately which should handle most cases me thinks... but if not, you can always overwrite\n\t\t$where = array();\n\t\tif (!empty($where_or))\n\t\t{\n\t\t\t$where[] = '('.implode(' OR ', $where_or).')';\n\t\t}\n\t\tif (!empty($where_and))\n\t\t{\n\t\t\t$where[] = '('.implode(' AND ', $where_and).')';\n\t\t}\n\t\tif (!empty($where))\n\t\t{\n\t\t\t$where_sql = implode(' AND ', $where);\n\t\t\t$this->db->where($where_sql);\n\t\t}\n\t\t\n\t\t\n\t\t// set the table here so that items total will work\n\t\t$this->db->from($this->table_name);\n\t}", "function go_page_list() {\n\t\tglobal $ROW, $TEMPLATE;\n\t\tLOG_MSG('INFO',\"go_page_list(): START \");\n\t\t// Do we have a search string?\n\t\t// Get all the args from $_GET\n\t\t$name=get_arg($_GET,\"name\");\n\t\t$title=get_arg($_GET,\"title\");\n\t\t$type=get_arg($_GET,\"type\");\n\t\tLOG_MSG('DEBUG',\"go_page_list(): Got args\");\n\t\t// Validate parameters as normal strings \n\t\tLOG_MSG('DEBUG',\"go_page_list(): Validated args\");\n\t\t// Rebuild search string for future pages\n\t\t$search_str=\"name=$name&title=$title&type=$type\";\n\t\t$ROW=$this->admin_model->db_page_select(\n\t\t\t\"\",\n\t\t\t\t$name,\n\t\t\t\t$title,\n\t\t\t\t'',\n\t\t\t\t$type);\n\n\t\tif ( $ROW[0]['STATUS'] != \"OK\" ) {\n\t\t\tadd_msg(\"ERROR\",\"There was an error loading the Pages. Please try again later. \");\n\t\t\treturn;\n\t\t}\n\t\t\t\t$this->data['rows'] = $ROW;\n\t\t\t\t$this->load->view('admin/html/header', $this->data,'');\n\t\t\t\t$this->load->view('admin/html/topbar', $this->data);\n\t\t\t\t$this->load->view('admin/html/leftnav', $this->data);\n\t\t\t\t$this->load->view('admin/page/list', $this->data);\n\t\t\t\t$this->load->view('admin/html/footer', $this->data);\n\t\tLOG_MSG('INFO',\"go_page_list(): END\");\n\t}", "function pagination(){}", "public function paging(){\n\t\t$sql = \"SELECT * FROM berita\";\n\t\t$query = $this->db->query($sql) or die ($this->db->error);\n\t\treturn $query;\n\t}", "public function indexAction() {\n\n\t\t//GET NAVIGATION\n $this->view->navigation = Engine_Api::_()->getApi('menus', 'core')\n ->getNavigation('list_admin_main', array(), 'list_admin_main_viewlist');\n\n\t\t//MAKE FORM\n $this->view->formFilter = $formFilter = new List_Form_Admin_Manage_Filter();\n\n\t\t//GET PAGE NUMBER\n $page = $this->_getParam('page', 1);\n\n\t\t//GET USER TABLE NAME\n $tableUserName = Engine_Api::_()->getItemTable('user')->info('name');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = $tableCategory = Engine_Api::_()->getDbtable('categories', 'list');\n\n\t\t//GET LISTING TABLE\n $tableListing = Engine_Api::_()->getDbtable('listings', 'list');\n $listingTableName = $tableListing->info('name');\n\n\t\t//MAKE QUERY\n $select = $tableListing->select()\n ->setIntegrityCheck(false)\n ->from($listingTableName)\n ->joinLeft($tableUserName, \"$listingTableName.owner_id = $tableUserName.user_id\", 'username');\n\n $values = array();\n\n if ($formFilter->isValid($this->_getAllParams())) {\n $values = $formFilter->getValues();\n }\n foreach ($values as $key => $value) {\n\n if (null == $value) {\n unset($values[$key]);\n }\n }\n\n // searching\n $this->view->owner = '';\n $this->view->title = '';\n $this->view->sponsored = '';\n $this->view->approved = '';\n $this->view->featured = '';\n $this->view->status = '';\n $this->view->listingbrowse = '';\n $this->view->category_id = '';\n $this->view->subcategory_id = '';\n $this->view->subsubcategory_id = '';\n\n if (isset($_POST['search'])) {\n\n if (!empty($_POST['owner'])) {\n $this->view->owner = $_POST['owner'];\n $select->where($tableUserName . '.username LIKE ?', '%' . $_POST['owner'] . '%');\n }\n\n if (!empty($_POST['title'])) {\n $this->view->title = $_POST['title'];\n $select->where($listingTableName . '.title LIKE ?', '%' . $_POST['title'] . '%');\n }\n\n if (!empty($_POST['sponsored'])) {\n $this->view->sponsored = $_POST['sponsored'];\n $_POST['sponsored']--;\n\n $select->where($listingTableName . '.sponsored = ? ', $_POST['sponsored']);\n }\n\n if (!empty($_POST['approved'])) {\n $this->view->approved = $_POST['approved'];\n $_POST['approved']--;\n $select->where($listingTableName . '.approved = ? ', $_POST['approved']);\n }\n\n if (!empty($_POST['featured'])) {\n $this->view->featured = $_POST['featured'];\n $_POST['featured']--;\n $select->where($listingTableName . '.featured = ? ', $_POST['featured']);\n }\n\n if (!empty($_POST['status'])) {\n $this->view->status = $_POST['status'];\n $_POST['status']--;\n $select->where($listingTableName . '.closed = ? ', $_POST['status']);\n }\n\n if (!empty($_POST['listingbrowse'])) {\n $this->view->listingbrowse = $_POST['listingbrowse'];\n $_POST['listingbrowse']--;\n if ($_POST['listingbrowse'] == 0) {\n $select->order($listingTableName . '.view_count DESC');\n } else {\n $select->order($listingTableName . '.creation_date DESC');\n }\n }\n\n if (!empty($_POST['category_id']) && empty($_POST['subcategory_id']) && empty($_POST['subsubcategory_id'])) {\n $this->view->category_id = $_POST['category_id'];\n $select->where($listingTableName . '.category_id = ? ', $_POST['category_id']);\n } \n\t\t\telseif (!empty($_POST['category_id']) && !empty($_POST['subcategory_id']) && empty($_POST['subsubcategory_id'])) {\n $this->view->category_id = $_POST['category_id'];\n $this->view->subcategory_id = $_POST['subcategory_id'];\n $this->view->subcategory_name = $tableCategory->getCategory($this->view->subcategory_id)->category_name;\n \n $select->where($listingTableName . '.category_id = ? ', $_POST['category_id'])\n ->where($listingTableName . '.subcategory_id = ? ', $_POST['subcategory_id']);\n }\n\t\t\telseif(!empty($_POST['category_id']) && !empty($_POST['subcategory_id']) && !empty($_POST['subsubcategory_id'])) {\n $this->view->category_id = $_POST['category_id'];\n $this->view->subcategory_id = $_POST['subcategory_id'];\n $this->view->subsubcategory_id = $_POST['subsubcategory_id'];\n $this->view->subcategory_name = $tableCategory->getCategory($this->view->subcategory_id)->category_name;\n $this->view->subsubcategory_name = $tableCategory->getCategory($this->view->subsubcategory_id)->category_name;\n \n $select->where($listingTableName . '.category_id = ? ', $_POST['category_id'])\n ->where($listingTableName . '.subcategory_id = ? ', $_POST['subcategory_id'])\n\t\t\t\t\t\t->where($listingTableName . '.subsubcategory_id = ? ', $_POST['subsubcategory_id']);\n\t\t\t}\n\t\t\t\n }\n\n $values = array_merge(array(\n 'order' => 'listing_id',\n 'order_direction' => 'DESC',\n ), $values);\n\n $this->view->assign($values);\n\n $select->order((!empty($values['order']) ? $values['order'] : 'listing_id' ) . ' ' . (!empty($values['order_direction']) ? $values['order_direction'] : 'DESC' ));\n\n //MAKE PAGINATOR\n $this->view->paginator = Zend_Paginator::factory($select);\n $this->view->paginator->setItemCountPerPage(40);\n $this->view->paginator = $this->view->paginator->setCurrentPageNumber($page);\n }", "public function getList($page);", "function table($params){\r\n\t\tglobal $tpl, $wpdb;\r\n\r\n\t\t// Default Values\r\n\t\t$this->sql_query\t\t\t \t\t\t= isset($params['sql_query']) ? $params['sql_query'] : '';\r\n\t\t$this->data\t\t\t\t\t\t \t\t\t= isset($params['data']) ? $params['data'] : '';\r\n\t\t$this->search\t\t\t \t\t\t\t\t= isset($params['search']) ? $params['search'] : '';\r\n\t\t$this->multiple_search\t \t\t= isset($params['multiple_search']) ? $params['multiple_search'] : '';\r\n\t\t$this->items_per_page\t\t\t\t= isset($params['items_per_page']) ? $params['items_per_page'] : '';\r\n\t\t$this->sort\t\t\t\t\t\t\t\t\t= isset($params['sort']) ? $params['sort'] : false;\r\n\t\t$this->page\t\t\t\t\t\t\t\t\t= isset($params['page']) ? $params['page'] : 1;\r\n\r\n\t\t$this->id\t\t\t\t\t\t\t\t \t\t= isset($params['id']) ? $params['id'] : 'ct';\r\n\t\t$this->class\t\t\t\t\t\t\t\t= isset($params['class']) ? $params['class'] : '';\r\n\t\t$this->form_init\t\t\t\t\t\t= isset($params['form_init']) ? $params['form_init'] : true;\r\n\t\t$this->form_url\t\t\t\t\t\t\t= isset($params['form_url']) ? $params['form_url'] : '';\r\n\t\t$this->header\t\t\t\t \t\t\t\t= isset($params['header']) ? $params['header'] : false;\r\n\t\t$this->width\t\t\t\t\t\t\t\t= isset($params['width']) ? $params['width'] : '';\r\n\t\t$this->search_init\t\t\t \t\t= isset($params['search_init']) ? $params['search_init'] : true;\r\n\t\t$this->search_html\t\t\t \t\t= isset($params['search_html']) ? $params['search_html'] : '<span id=\"#ID#_search_value\">Search...</span><a id=\"#ID#_advanced_search\" href=\"javascript: ctShowAdvancedSearch(\\'#ID#\\');\" title=\"Advanced Search\"><img src=\"images/advanced_search.png\" /></a><div id=\"#ID#_loader\"></div>';\r\n\t\t$this->multiple_search_init\t= isset($params['multiple_search_init']) ? $params['multiple_search_init'] : 'hide';\r\n\t\t$this->items_per_page_init\t= isset($params['items_per_page_init']) ? $params['items_per_page_init'] : '10*$i';\r\n\t\t$this->items_per_page_all\t\t= isset($params['items_per_page_all']) ? (($params['items_per_page_all']!='' or $params['items_per_page_all']===false) ? $params['items_per_page_all'] : '#TOTAL_ITEMS#') : '#TOTAL_ITEMS#';\r\n\t\t$this->items_per_page_url\t\t= isset($params['items_per_page_url']) ? $params['items_per_page_url'] : 'ctItemsPerPage(\\'#ID#\\')';\r\n\t\t$this->sort_init\t\t\t\t\t\t= isset($params['sort_init']) ? $params['sort_init'] : true;\r\n\t\t$this->sort_order\t\t\t\t\t\t= isset($params['sort_order']) ? $params['sort_order'] : 'adt';\r\n\t\t$this->sort_url\t\t\t\t\t\t\t= isset($params['sort_url']) ? $params['sort_url'] : 'ctSort(\\'#ID#\\',\\'#COLUMN_ID#\\')';\r\n\t\t$this->extra_cols\t\t\t\t\t\t= isset($params['extra_cols']) ? $params['extra_cols'] : array();\r\n\t\t$this->odd_even\t\t\t\t\t \t\t= isset($params['odd_even']) ? $params['odd_even'] : true;\r\n\t\t$this->no_results\t\t\t\t\t\t= isset($params['no_results']) ? $params['no_results'] : 'No results found.';\r\n\t\t$this->actions\t\t\t\t\t\t\t= isset($params['actions']) ? $params['actions'] : array();\r\n\t\t$this->actions_url\t\t\t\t\t= isset($params['actions_url']) ? $params['actions_url'] : 'ctActions(\\'#ID#\\')';\r\n\t\t$this->pager\t\t\t\t\t\t\t\t= isset($params['pager']) ? $params['pager'] : '';\r\n\r\n\t\t$this->total_items\t\t\t\t\t= isset($params['total_items']) ? $params['total_items'] : 0;\r\n\t\t$this->sql_fields\t\t\t\t\t\t= '';\r\n\t\t$this->out\t\t\t\t\t\t\t\t\t= '';\r\n\r\n\t\tif($this->sql_query!='')\r\n\t\t\t$this->init_data();\r\n\r\n\t}", "public function indexTable()\n {\n $this->paginate = array('all', 'order' => array('modified' => 'desc'));\n $contentVariableTables = $this->paginate('ContentVariableTable');\n $this->set(compact('contentVariableTables', $contentVariableTables));\n }", "function tpps_details_top() {\n global $base_url;\n $params = drupal_get_query_parameters($_POST);\n $page = 0;\n if (empty($params)) {\n $params = drupal_get_query_parameters();\n }\n if (!empty($params['page'])) {\n $page = $params['page'];\n }\n $per_page = 20;\n\n $query = db_select('chado.plusgeno_view', 'pg');\n $query->addExpression('count(distinct(pg.accession))', 'count');\n if (!empty($params['type']) and !empty($params['value']) and !empty($params['op'])) {\n switch ($params['type']) {\n case 'title':\n case 'species':\n case 'project_id':\n case 'accession':\n case 'author':\n case 'year':\n $query->condition($params['type'], $params['value'], $params['op']);\n break;\n\n case 'phenotype_name':\n $query->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $query->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $query->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $query->condition('ph.name', $params['value'], $params['op']);\n break;\n\n case 'phenotype_ontology':\n $query->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $query->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $query->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $query->innerJoin('chado.cvterm', 'cvt', 'cvt.cvterm_id = ph.attr_id');\n $query->innerJoin('chado.cv', 'cv', 'cv.cv_id = cvt.cv_id');\n $query->condition('cv.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_name':\n $query->innerJoin('chado.tpps_search_genotype_name', 'g', 'g.project_id = pg.project_id');\n $query->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_marker':\n $query->innerJoin('chado.tpps_search_genotype_marker', 'g', 'g.project_id = pg.project_id');\n $query->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'tags':\n $query->innerJoin('public.tpps_submission', 'ts', 'ts.accession = pg.accession');\n $query->innerJoin('public.tpps_submission_tag', 'st', 'st.tpps_submission_id = ts.tpps_submission_id');\n $query->innerJoin('public.tpps_tag', 'tt', 'tt.tpps_tag_id = st.tpps_tag_id');\n $query->condition('tt.name', $params['value'], $params['op']);\n break;\n\n default:\n break;\n }\n }\n $query = $query->execute();\n $total = $query->fetchObject()->count;\n\n $_GET['page'] = $page;\n $page = pager_default_initialize($total, $per_page);\n $start = $page * $per_page;\n\n $submissions = db_select('chado.plusgeno_view', 'pg');\n $submissions->distinct();\n $submissions->innerJoin('chado.project', 'p', 'p.project_id = pg.project_id');\n if (!empty($params['type']) and !empty($params['value']) and !empty($params['op'])) {\n switch ($params['type']) {\n case 'title':\n case 'species':\n case 'project_id':\n case 'accession':\n case 'author':\n case 'year':\n $submissions->condition($params['type'], $params['value'], $params['op']);\n break;\n\n case 'phenotype_name':\n $submissions->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $submissions->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $submissions->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $submissions->condition('ph.name', $params['value'], $params['op']);\n break;\n\n case 'phenotype_ontology':\n $submissions->innerJoin('chado.project_stock', 'ps', 'ps.project_id = pg.project_id');\n $submissions->innerJoin('chado.stock_phenotype', 'sp', 'sp.stock_id = ps.stock_id');\n $submissions->innerJoin('chado.phenotype', 'ph', 'ph.phenotype_id = sp.phenotype_id');\n $submissions->innerJoin('chado.cvterm', 'cvt', 'cvt.cvterm_id = ph.attr_id');\n $submissions->innerJoin('chado.cv', 'cv', 'cv.cv_id = cvt.cv_id');\n $submissions->condition('cv.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_name':\n $submissions->innerJoin('chado.tpps_search_genotype_name', 'g', 'g.project_id = pg.project_id');\n $submissions->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'genotype_marker':\n $submissions->innerJoin('chado.tpps_search_genotype_marker', 'g', 'g.project_id = pg.project_id');\n $submissions->condition('g.name', $params['value'], $params['op']);\n break;\n\n case 'tags':\n $submissions->innerJoin('public.tpps_submission', 'ts', 'ts.accession = pg.accession');\n $submissions->innerJoin('public.tpps_submission_tag', 'st', 'st.tpps_submission_id = ts.tpps_submission_id');\n $submissions->innerJoin('public.tpps_tag', 'tt', 'tt.tpps_tag_id = st.tpps_tag_id');\n $submissions->condition('tt.name', $params['value'], $params['op']);\n break;\n\n default:\n break;\n }\n }\n $submissions->fields('pg', array(\n 'title',\n 'project_id',\n 'accession',\n 'tree_count',\n 'phenotypes_assessed',\n 'phen_count',\n 'gen_count',\n ));\n $submissions->range($start, $per_page);\n $submissions->orderBy('pg.accession');\n $submissions = $submissions->execute();\n\n $rows = array();\n while (($sub = $submissions->fetchObject())) {\n $proj_id = $sub->project_id;\n\n $query = db_select('chado.organism', 'o');\n $query->join('chado.pub_organism', 'po', 'o.organism_id = po.organism_id');\n $query->join('chado.project_pub', 'pp', 'pp.pub_id = po.pub_id');\n $query->fields('o', array('organism_id', 'genus', 'species'));\n $query->condition('pp.project_id', $proj_id);\n $query->distinct();\n $query = $query->execute();\n\n $species = array();\n while (($result = $query->fetchObject())) {\n $species[] = tpps_entity_link($result->organism_id, \"{$result->genus} {$result->species}\", 'Organism');\n }\n\n $warning = \"\";\n if (empty(tpps_load_submission($sub->accession))) {\n $warning = \"<img src='$base_url/misc/message-16-warning.png' title='This study has not yet been resubmitted through the new TPPS pipeline'> \";\n }\n\n $row = array(\n \"<a href=\\\"$base_url/tpps/details/{$sub->accession}\\\">{$sub->accession}</a>\",\n \"$warning<a href=\\\"$base_url/tpps/details/{$sub->accession}\\\">{$sub->title}</a>\",\n tpps_show_tags(tpps_submission_get_tags($sub->accession)),\n implode('<br>', $species),\n $sub->tree_count,\n $sub->phenotypes_assessed,\n $sub->phen_count,\n $sub->gen_count,\n );\n $rows[$sub->accession] = $row;\n }\n\n ksort($rows);\n\n $vars = array(\n 'header' => array(\n 'Accession',\n 'Title',\n 'Tags',\n 'Species',\n 'Plant Count',\n 'Phenotypes Assessed',\n 'Phenotypic Measures',\n 'Genotype Count',\n ),\n 'rows' => $rows,\n 'attributes' => array(\n 'class' => array('view'),\n 'id' => 'tpps_table_display',\n ),\n 'caption' => '',\n 'colgroups' => NULL,\n 'sticky' => FALSE,\n 'empty' => '',\n );\n\n $output = theme('table', $vars);\n $pager = theme('pager', array('quantity', $total));\n return $pager . $output;\n}", "abstract public function list_tables($like = NULL);", "function get_filter_form(Table $table) {\n return $table->renderFilter();\n}", "protected function getListQuery()\n\t{\n\t\t// Create a new query object.\n\t\t$db = $this->getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Select the required fields from the table.\n\t\t$query->select(\n\t\t\t$this->getState(\n\t\t\t\t'list.select',\n\t\t\t\t'a.id AS id,'\n\t\t\t\t. 'u.name AS name,' \n\t\t\t\t. 'a.checked_out AS checked_out,'\n\t\t\t\t. 'a.checked_out_time AS checked_out_time, '\n\t\t\t\t. 'a.state AS state' \n\t\t\t)\n\t\t);\n\n\t\t$query->from($db->quoteName('#__test_profiles') . ' AS a'); \n\t\t$query->select($db->quoteName('u.name'))\n\t\t\t->join('LEFT', $db->quoteName('#__users', 'u') . ' ON u.id = a.user_id');\n\n\t\t// Filter by published state\n\t\t$published = (string) $this->getState('filter.state');\n\n\t\tif (is_numeric($published))\n\t\t{\n\t\t\t$query->where('a.state = ' . (int) $published);\n\t\t}\n\t\telseif ($published === '')\n\t\t{\n\t\t\t$query->where('(a.state IN (0, 1))');\n\t\t}\n\n\t\t$query->group('a.id, u.name, a.checked_out, a.checked_out_time, a.state');\n\n\t\t// Filter by search in title\n\t\t$search = $this->getState('filter.search');\n\n\t\tif (!empty($search))\n\t\t{\n\t\t\tif (stripos($search, 'id:') === 0)\n\t\t\t{\n\t\t\t\t$query->where('a.id = ' . (int) substr($search, 3));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$search = $db->quote('%' . str_replace(' ', '%', $db->escape(trim($search), true) . '%'));\n\t\t\t\t$query->where('u.name LIKE ' . $search);\n\t\t\t}\n\t\t}\n\n\t\t// Add the list ordering clause.\n\t\t$query->order($db->escape($this->getState('list.ordering', 'u.name')) . ' ' . $db->escape($this->getState('list.direction', 'ASC')));\n\n\t\treturn $query;\n\t}", "function _create_filter_sql () {\n\t\t$SF = &$_SESSION[$this->_filter_name];\n\t\tforeach ((array)$SF as $k => $v) $SF[$k] = trim($v);\n\t\t// Generate filter for the common fileds\n\t\tif ($SF[\"id_min\"]) \t\t\t\t$sql .= \" AND id >= \".intval($SF[\"id_min\"]).\" \\r\\n\";\n\t\tif ($SF[\"id_max\"])\t\t\t \t$sql .= \" AND id <= \".intval($SF[\"id_max\"]).\" \\r\\n\";\n\t\tif ($SF[\"date_min\"]) \t\t\t$sql .= \" AND add_date >= \".strtotime($SF[\"date_min\"]).\" \\r\\n\";\n\t\tif ($SF[\"date_max\"])\t\t\t$sql .= \" AND add_date <= \".strtotime($SF[\"date_max\"]).\" \\r\\n\";\n\t\tif ($SF[\"user_id\"])\t\t\t \t$sql .= \" AND user_id = \".intval($SF[\"user_id\"]).\" \\r\\n\";\n\t\tif ($SF[\"cat_id\"])\t\t\t \t$sql .= \" AND cat_id = \".intval($SF[\"cat_id\"]).\" \\r\\n\";\n\t\tif (strlen($SF[\"title\"]))\t\t$sql .= \" AND title LIKE '\"._es($SF[\"title\"]).\"%' \\r\\n\";\n\t\tif (strlen($SF[\"summary\"]))\t\t$sql .= \" AND summary LIKE '\"._es($SF[\"summary\"]).\"%' \\r\\n\";\n\t\tif (strlen($SF[\"text\"]))\t\t$sql .= \" AND full_text LIKE '\"._es($SF[\"text\"]).\"%' \\r\\n\";\n\t\tif (!empty($SF[\"status\"]) && isset($this->_articles_statuses[$SF[\"status\"]])) {\n\t\t \t$sql .= \" AND status = '\"._es($SF[\"status\"]).\"' \\r\\n\";\n\t\t}\n\t\tif (strlen($SF[\"nick\"]) || strlen($SF[\"account_type\"])) {\n\t\t\tif (strlen($SF[\"nick\"])) \t$users_sql .= \" AND nick LIKE '\"._es($SF[\"nick\"]).\"%' \\r\\n\";\n\t\t\tif ($SF[\"account_type\"])\t$users_sql .= \" AND `group` = \".intval($SF[\"account_type\"]).\" \\r\\n\";\n\t\t}\n\t\t// Add subquery to users table\n\t\tif (!empty($users_sql)) {\n\t\t\t$sql .= \" AND user_id IN( SELECT id FROM \".db('user').\" WHERE 1=1 \".$users_sql.\") \\r\\n\";\n\t\t}\n\t\t// Sorting here\n\t\tif ($SF[\"sort_by\"])\t\t\t \t$sql .= \" ORDER BY \".$this->_sort_by[$SF[\"sort_by\"]].\" \\r\\n\";\n\t\tif ($SF[\"sort_by\"] && strlen($SF[\"sort_order\"])) \t$sql .= \" \".$SF[\"sort_order\"].\" \\r\\n\";\n\t\treturn substr($sql, 0, -3);\n\t}", "function newsItem_BacaDataListing_All( $tbl_news , $offset , $dataPerPage){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news ORDER BY urutan DESC, timeunix DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "public function lists(){\r\n\r\n\r\n \t//$this->level2 = '环境配置';\r\n\r\n\r\n \t\r\n\r\n \t//$this->assign('active',$this->active);\r\n\r\n \t$log = D('OperLogView');\r\n $user = D('UserRelation');\r\n $keyword = '';\r\n $condition = '';\r\n \tif(I('keyword') != '') {\r\n $condition['name']=array('like',I('keyword') . '%');\r\n $condition['source_ip']=array('like',I('keyword') . '%');\r\n $condition['_logic']='OR';\r\n \t\t$keyword = I('keyword');\r\n $count = $log->where($condition)->count();\r\n\r\n \t\t//$count = $env->where('env.env_name like \"' . $keyword . '%\" or env.envname like \"' . $keyword . '%\"')->count();\r\n \t} else {\r\n \t\t//$count = $env->where(array('env_name' => array('like',$keyword .'%' )) or array('name' => array('like',$keyword .'%' )))->group('env_id')->count();\r\n $count = $log->count();\r\n \t}\r\n \r\n \t$user_data['user_id'] = session(C('USER_AUTH_KEY'));\r\n \r\n $user_data['page'] = $_POST['page'] != '' ? $_POST['page'] : session('page');\r\n if($user->save($user_data) !== false) {\r\n session('page',$user_data['page']);\r\n } \r\n $page = new \\Lib\\MyPage($count,session('page'));\r\n\r\n \t//$page->parameter=I('get.');\r\n \t//$page->setConfig('header','条数据');\r\n \t\r\n \t\t\r\n\r\n \t$show = $page->show();\r\n \t\r\n \tif($condition != '') {\r\n $list = $log->where($condition)->order('oper_time desc')->limit($page->firstRow . ',' . $page->listRows)->select();\r\n \r\n \r\n }else{\r\n $list = $log->order('oper_time desc')->limit($page->firstRow . ',' . $page->listRows)->select();\r\n \r\n \r\n }\r\n \r\n \r\n\r\n \t//$list = $env->where('env_name like \"' . $keyword . '%\" or envname like \"' . $keyword . '%\"')->order('env_id')->limit($page->firstRow . ',' . $page->listRows)->select();\r\n \t\r\n // dump($list);die;\r\n \t$this->assign('loglist',$list);\r\n \t$this->assign('page',$show);\r\n if($keyword != '') {\r\n $this->assign('keyword',$keyword);\r\n }\r\n $this->assign('count',$count);\r\n $this->assign('userPage',session('page')); \t\r\n \r\n //print_r($list);die;\r\n \t$this->assign('level1',$this->level1);\r\n \t$this->assign('level2',$this->level2);\r\n \t$this->assign('level3',$this->level3);\r\n \t$this->display();\r\n }", "function newsItem_BacaDataListing_TidakTampil_All( $tbl_news , $offset , $dataPerPage ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE statustampil != '1' ORDER BY urutan DESC, timeunix DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "public function lists()\t{\n\t\tCheckAdminLoginSession();\n\t\t$per_page = 20;\n if($this->uri->segment(4)){\n \t$page = ($this->uri->segment(4)) ;\n }\n else {\n \t$page = 1;\n }\n $start = ($page-1)*$per_page;\n $limit = $per_page;\n $totalCount = $this->admin_model->totalRecord($this->optional_warranty);\n\t\t$data[\"dataCollection\"] = $this->admin_model->getDataCollection($this->optional_warranty,$limit,$start);\n $totalResult = count($data['dataCollection']);\n\t\t$data[\"pagination\"] = Jpagination($totalCount,$limit,$start);\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/optional_warranty/list',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "function newsItem_BacaDataListing_DiLampirkan_All( $tbl_news , $offset , $dataPerPage ){\n\t$sql = mysql_query(\"SELECT * FROM $tbl_news WHERE dilampirkan != '0' ORDER BY urutan DESC, timeunix DESC LIMIT $offset, $dataPerPage\");\n\treturn $sql;\n}", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'thnkurikulum': return \"p.thnkurikulum = '$key'\";\n\t\t\t\tcase 'unit': return \"p.kodeunit = '$key'\";\n\t\t\t\tcase 'matkul': return \"p.kodemk1 = '$key'\";\n\t\t\t\tcase 'matkul': return \"p.kodemk2 = '$key'\";\n\t\t\t\t\n\t\t\t}\n\t\t}", "public function selectByPagesList($pidList) {\r\n\t\t$this->addQueryConstraint($this->query->in('pid', $pidList));\r\n\t}", "public function index()\n {\n //\n $tab=\"in\";\n if (isset($_GET[\"tab\"])){\n $tab=$_GET[\"tab\"];\n }\n\n switch ($tab){\n case \"all\": return $this->search_paginate(Act::where(function ($q){\n $user=$this->user();\n $q->where('sellerTin',$user->tin)\n ->orWhere('buyerTin', $user->tin);\n }));\n\n case \"out\": return $this->search_paginate(Act::where(\"sellerTin\", $this->user()->tin)\n ->whereNotIn(\"status\", [self::DOC_STATUS_SAVED])\n );\n case \"saved\": return $this->search_paginate(Act::where(\"sellerTin\", $this->user()->tin)\n ->where(\"status\", self::DOC_STATUS_SAVED)\n );\n case \"in\":\n default: return $this->search_paginate(Act::where(\"buyerTin\", $this->user()->tin)\n );\n }\n }", "function getFilterRecord($limit,$column_name,$order,$pofno,$dor,$jobtitle,$company,$location,$grade,$salary,$posstatus,$consul){\n\t \n\t $sql = \"SELECT *,SUM(stage='288') As sum1, SUM(stage='289') As sum2, SUM(stage='291') As sum3, SUM(stage='293') As sum4, COUNT(DISTINCT cand_id) As count2, synonym.parentname As compa, a1.parentname As loca FROM pof LEFT JOIN pof_candidates ON pof.pof_id=pof_candidates.pofid LEFT JOIN synonym ON synonym.s_id=pof.client_id LEFT JOIN synonym As a1 ON a1.s_id=pof.location LEFT JOIN pof_cons ON pof.pof_id=pof_cons.pos_id WHERE pof.jobtitle LIKE '%\".$jobtitle.\"%' AND synonym.parentname LIKE '%\".$company.\"%' AND pof.grade LIKE '%\".$grade.\"%' AND pof.sal_t LIKE '%\".$salary.\"%' AND pof.pos_status LIKE '%\".$posstatus.\"%' AND pof_cons.consuls LIKE '%\".$consul.\"%' GROUP BY pof.pof_id ;\";\n\t \t\n\t $q = $this->db->query($sql);\n\t\tif($q->num_rows() > 0)\n\t\t{\n\t\t\tforeach($q->result() as $row)\n\t\t\t{\n\t\t\t\t$data[] = $row;\n\t\t\t}\n\t\t\treturn $data;\n\t\t}\n\t\t\n\t}", "protected function getListQuery()\n\t{\n\t\t$extension = Factory::getApplication()->input->get('extension', '', 'word');\n\t\t$parts = explode('.', $extension);\n\n\t\t// Extract the component name\n\t\t$this->setState('filter.component', $parts[0]);\n\n\t\t// Extract the optional section name\n\t\t$this->setState('filter.section', (count($parts) > 1) ? $parts[1] : null);\n\n\t\t// Initialize variables.\n\t\t$db = Factory::getDbo();\n\t\t$query = $db->getQuery(true);\n\n\t\t// Create the base select statement.\n\t\t$query->select('t.*')\n\t\t\t->from('`#__tj_notification_templates` AS t');\n\n\t\t$search = $this->getState('filter.search');\n\n\t\tif (!empty($search))\n\t\t{\n\t\t\t$like = $db->quote('%' . $search . '%');\n\t\t\t$query->where($db->quoteName('client') . ' LIKE ' . $like . ' OR ' . $db->quoteName('key') . ' LIKE ' . $like . ' OR ' . $db->quoteName('title') . ' LIKE ' . $like);\n\t\t}\n\n\t\tif ($extension)\n\t\t{\n\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($extension));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Filter by client\n\t\t\t$client = $this->getState('filter.client');\n\t\t\t$key = $this->getState('filter.key');\n\n\t\t\tif (!empty($client) && empty($key))\n\t\t\t{\n\t\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($client));\n\t\t\t}\n\t\t}\n\n\t\t// For getting templates\n\t\tif (!empty($client) && !empty($key))\n\t\t{\n\t\t\t$query->where($db->quoteName('client') . ' = ' . $db->quote($client) . ' AND ' . $db->quoteName('key') . ' = ' . $db->quote($key));\n\t\t\t$query->order($db->quoteName('key') . ' ASC');\n\t\t}\n\n\t\t// Filter by language\n\t\t$language = $this->getState('filter.language');\n\n\t\tif ($language !== '')\n\t\t{\n\t\t\t$query->select('ntc.language');\n\t\t\t$query->join('LEFT', '#__tj_notification_template_configs AS ntc ON ntc.template_id = t.id');\n\t\t\t$query->where($db->qn('ntc.language') . '=' . $db->quote($language));\n\t\t}\n\n\t\t$orderCol = $this->getState('list.ordering');\n\t\t$orderDirn = $this->getState('list.direction');\n\n\t\tif ($orderCol && $orderDirn)\n\t\t{\n\t\t\t$query->order($db->quoteName($orderCol) . ' ' . $db->escape($orderDirn));\n\t\t}\n\n\t\treturn $query;\n\t}" ]
[ "0.65694535", "0.6423466", "0.62990576", "0.62572885", "0.6248948", "0.61867535", "0.61844873", "0.6177135", "0.61603934", "0.61289376", "0.6114691", "0.6106854", "0.60673887", "0.6034935", "0.6034935", "0.6031901", "0.598877", "0.5975931", "0.59732944", "0.5969445", "0.59694344", "0.595977", "0.5955367", "0.59343356", "0.5930834", "0.5925889", "0.5902013", "0.589775", "0.5887805", "0.5884814", "0.587981", "0.5864121", "0.5863975", "0.5861131", "0.5852307", "0.5838514", "0.58373404", "0.583549", "0.58207697", "0.58207697", "0.58207697", "0.57995886", "0.57914263", "0.57889646", "0.57810706", "0.57758033", "0.5765073", "0.5761415", "0.5725936", "0.5723789", "0.5708504", "0.5699442", "0.5699321", "0.56905216", "0.5686884", "0.56812644", "0.56759363", "0.5671116", "0.5667646", "0.56620395", "0.5656671", "0.5648684", "0.5646156", "0.5646026", "0.56384087", "0.56377995", "0.5633854", "0.56244844", "0.56150573", "0.5614633", "0.5613164", "0.56081617", "0.5604657", "0.5600395", "0.55997103", "0.5593914", "0.5593807", "0.5592275", "0.55858064", "0.5581296", "0.5577423", "0.556422", "0.5563926", "0.5554664", "0.55540824", "0.5552165", "0.5546776", "0.5543345", "0.5536969", "0.55336624", "0.5529516", "0.55286455", "0.55261046", "0.55258244", "0.5523545", "0.5520819", "0.55201995", "0.55152404", "0.5511346", "0.5505685", "0.55030507" ]
0.0
-1
Get ORDER BY clause
function GetOrderBy() { $sSort = $this->getSessionOrderBy(); return ew_BuildSelectSql("", "", "", "", $this->getSqlOrderBy(), "", $sSort); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrderByClause() {\n\n\t\ttx_pttools_assert::isTrue($this->isSortable, array('message' => 'This column is not sortable'));\n\t\tswitch ($this->sortingState) {\n\t\t\tcase self::SORTINGSTATE_NONE: {\n\t\t\t\t$orderBy = '';\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_ASC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'ASC');\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_DESC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'DESC');\n\t\t\t} break;\n\n\t\t\tdefault: {\n\t\t\t\tthrow new tx_pttools_exception('Invalid sorting state!');\n\t\t\t} break;\n\t\t}\n\t\treturn $orderBy;\n\t}", "public function getQueryOrderby() {\n return '`'.$this->name.'`';\n }", "function get_order_by_clause() {\n $result = parent::get_order_by_clause();\n\n //make sure the result is actually valid\n if ($result != '') {\n //always sort by course in addition to everything else\n $result .= ', coursename, courseid';\n }\n\n return $result;\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\n {\n return $this->order_by;\n }", "public function getOrderBy()\n\t{\n\t\t$sort = $this->getSessionOrderBy();\n\t\treturn BuildSelectSql(\"\", \"\", \"\", \"\", $this->getSqlOrderBy(), \"\", $sort);\n\t}", "public function getOrderBy()\n\t{\n\t\t$sort = $this->getSessionOrderBy();\n\t\treturn BuildSelectSql(\"\", \"\", \"\", \"\", $this->getSqlOrderBy(), \"\", $sort);\n\t}", "private function sql_orderBy()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Short var\n $arr_order = null;\n $arr_order = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'order.' ];\n\n // Order field\n switch ( true )\n {\n case( $arr_order[ 'field' ] == 'uid' ):\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n break;\n case( $arr_order[ 'field' ] == 'value' ):\n default:\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'value' ];\n break;\n }\n // Order field\n // Order flag\n switch ( true )\n {\n case( $arr_order[ 'orderFlag' ] == 'DESC' ):\n $orderFlag = 'DESC';\n break;\n case( $arr_order[ 'orderFlag' ] == 'ASC' ):\n default:\n $orderFlag = 'ASC';\n break;\n }\n // Order flag\n // Get ORDER BY statement\n $orderBy = $orderField . ' ' . $orderFlag;\n\n // RETURN ORDER BY statement\n return $orderBy;\n }", "public function &getOrderBy();", "public function getOrderBy()\r\n\t{\r\n\t\treturn $this->orderBy;\r\n\t}", "public function getOrderBy() {\n return $this->_orderBy;\n }", "public function getOrder()\n {\n return $this->getAdditionalParam('orderBy');\n }", "public function getOrderBy(): ?string\n {\n return $this->orderBy;\n }", "public function orderBy() {\n $this->_orderBy = \"\";\n foreach ($this->_columns as $tableName => $table) {\n if (array_key_exists('order_bys', $table)) {\n foreach ($table['order_bys'] as $fieldName => $field) {\n $this->_orderBy[] = $field['dbAlias'];\n }\n }\n }\n $this->_orderBy = \"ORDER BY \" . implode(', ', $this->_orderBy) . \" \";\n }", "function orderByClause( $orderby ) {\n\t global $wpdb;\n\t return \"dm.meta_value+0 {$this->order}, $wpdb->posts.post_title ASC\";\n\t}", "public function get_sql_sort() {\n $sort = parent::get_sql_sort();\n\n return $sort . ', s.id DESC';\n }", "function get_sql_order(){\r\n\r\n\t\tif(stripos($this->sql_query,' ORDER BY ')!==false){\r\n\t\t\tif(stripos($this->sql_query,' LIMIT ')!==false)\r\n\t\t\t\t$order_str_ini=substr($this->sql_query,stripos($this->sql_query,' ORDER BY '),stripos($this->sql_query,' LIMIT ')-stripos($this->sql_query,' ORDER BY '));\r\n\t\t\telse\r\n\t\t\t\t$order_str_ini=substr($this->sql_query,stripos($this->sql_query,' ORDER BY '));\r\n\t\t}else{\r\n\t\t\t$order_str_ini='';\r\n\t\t}\r\n\r\n\t\t$order_str='';\r\n\t\t$arr_new_cols=array();\r\n\r\n\t\t// adds the extra columns in consideration\r\n\t\t$arr_sql_fields=$this->sql_fields;\r\n\t\tfor($i=0; $i<count($this->extra_cols); $i++){\r\n\t\t\tarray_splice($arr_sql_fields, $this->extra_cols[$i][0]-1, 0, '');\r\n\t\t\t$arr_new_cols[]=$this->extra_cols[$i][0];\r\n\t\t}\r\n\r\n\t\t$arr_sort=explode('_',$this->sort);\r\n\t\tasort($arr_sort);\r\n\r\n\t\tforeach($arr_sort as $key => $value){\r\n\r\n\t\t\tif(!in_array($key+1,$arr_new_cols)){\r\n\r\n\t\t\t\tif(substr($arr_sort[$key],-1)=='a')\r\n\t\t\t\t\t$order_str.=(($order_str_ini or $order_str) ? ', ' : ' ORDER BY ').$arr_sql_fields[$key].' ASC';\r\n\r\n\t\t\t\tif(substr($arr_sort[$key],-1)=='d')\r\n\t\t\t\t\t$order_str.=(($order_str_ini or $order_str) ? ', ' : ' ORDER BY ').$arr_sql_fields[$key].' DESC';\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn $order_str_ini.$order_str;\r\n\t}", "public function getOrderBy() {\n\t\tglobal $log, $adb;\n\t\t$log->debug('> getOrderBy');\n\t\t$cmodule = get_class($this);\n\t\t$order_by = '';\n\t\tif (GlobalVariable::getVariable('Application_ListView_Default_Sorting', 0, $cmodule)) {\n\t\t\t$order_by = GlobalVariable::getVariable('Application_ListView_Default_OrderField', $this->default_order_by, $cmodule);\n\t\t}\n\n\t\tif (isset($_REQUEST['order_by'])) {\n\t\t\t$order_by = $adb->sql_escape_string($_REQUEST['order_by']);\n\t\t} elseif (!empty($_SESSION[$cmodule.'_Order_By'])) {\n\t\t\t$order_by = $adb->sql_escape_string($_SESSION[$cmodule.'_Order_By']);\n\t\t}\n\t\t$log->debug('< getOrderBy');\n\t\treturn $order_by;\n\t}", "public function getSortingCriteria() {\n return isset($this->parameters['sortedby']) ? $this->parameters['sortedby'] : null;\n }", "function get_sql_sort() {\n $order = parent::construct_order_by($this->get_sort_columns());\n\n $defaultorder = array(\n 'problem_label' => 'ASC',\n 'difficulty_points' => 'ASC'\n );\n\n if ($order == '') {\n foreach ($defaultorder as $key => $value) {\n if (strpos($order, $key) === false) {\n $order = \"$key $value, $order\";\n }\n }\n }\n\n return trim($order, \", \");\n }", "public function getOrderingColumn()\n {\n return $this->config->getOrderingColumn();\n }", "function getOrderBy()\n\t{\n\t\tglobal $log;\n $log->debug(\"Entering getOrderBy() method ...\");\n\t\tif (isset($_REQUEST['order_by']))\n\t\t\t$order_by = $_REQUEST['order_by'];\n\t\telse\n\t\t\t$order_by = (isset($_SESSION['NOTES_ORDER_BY'])?($_SESSION['NOTES_ORDER_BY']):($this->default_order_by));\n\t\t$log->debug(\"Exiting getOrderBy method ...\");\n\t\treturn $order_by;\n\t}", "protected function getOrderByAttribute()\n {\n return $this->fetchData[self::ORDER_CLAUSE];\n }", "protected function getOrderByQuery()\n {\n\t\t$isWhat = $this->model->isWhat();\n\t\t$remoteTable = $this->model->tableName();\n\t\t$localOrderBy = [];\n\t\t$relations = [\n\t\t\t\\nitm\\widgets\\models\\Vote::tableName() => [\n\t\t\t\t'select' => new Expression('COUNT(*)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Issues::tableName() => [\n\t\t\t\t'select' => new Expression('COALESCE(created_at, updated_at)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Replies::tableName() => [\n\t\t\t\t'select' => new Expression('COALESCE(created_at, updated_at)'),\n\t\t\t],\n\t\t\t\\nitm\\widgets\\models\\Revisions::tableName() => [\n\t\t\t\t'select' => ['COUNT(*)'],\n\t\t\t]\n\t\t];\n\t\tforeach($relations as $table=>$relation){\n\t\t\t$localOrderBy[serialize(new Expression('('.(new Query)\n\t\t\t\t->from($table)\n\t\t\t\t->select($relation['select'])\n\t\t\t\t->where([\n\t\t\t\t\t\"$table.parent_id\" => \"$remoteTable.id\",\n\t\t\t\t\t\"$table.parent_type\" => $isWhat\n\t\t\t\t])->createCommand()->getRawSql().')'))] = SORT_DESC;\n\t\t}\n $localOrderBy = array_merge($localOrderBy, [\n serialize(new Expression(\"(CASE $remoteTable.status\n\t\t\t\tWHEN 'normal' THEN 0\n\t\t\t\tWHEN 'important' THEN 1\n\t\t\t\tWHEN 'critical' THEN 2\n\t\t\tEND)\")) => SORT_DESC,\n ]);\n\n return array_merge($localOrderBy, \\nitm\\helpers\\QueryFilter::getOrderByQuery($this->model));\n }", "private function getOrdering()\n {\n return [[\n 'column' => 0,\n 'dir' => 'asc',\n ]];\n }", "public function getDefaultOrderBy()\n {\n return $this->defaultOrderBy;\n }", "public function getOrdering() : string {\n\t\treturn $this->ordering;\n\t}", "protected function buildOrderClause() {\r\n\t\t$sql='';\r\n\t\tif (count($this->_salt_orders)>0) {\r\n\t\t\t$sql.=' ORDER BY '.implode(', ', $this->_salt_orders);\r\n\t\t}\r\n\t\treturn $sql;\r\n\t}", "function getOrderBy()\n\t{\n\t\tglobal $log;\n\t\t$log->debug(\"Entering getOrderBy() method ...\");\n\t\tif (isset($_REQUEST['order_by']))\n\t\t\t$order_by = $_REQUEST['order_by'];\n\t\telse\n\t\t\t$order_by = (($_SESSION['PRODUCTS_ORDER_BY'] != '')?($_SESSION['PRODUCTS_ORDER_BY']):($this->default_order_by));\n\t\t$log->debug(\"Exiting getOrderBy method ...\");\n\t\treturn $order_by;\n\t}", "function _buildContentOrderBy() {\r\n\t\tglobal $mainframe, $context;\r\n\t\t\r\n\t\t$filter_order = $mainframe->getUserStateFromRequest ( $context . 'filter_order', 'filter_order', '1' );\r\n\t\t$filter_order_Dir = $mainframe->getUserStateFromRequest ( $context . 'filter_order_Dir', 'filter_order_Dir', '' );\r\n\t\t\r\n\t\tif ($filter_order == 'h.ordering' || $filter_order == 'ordering') {\r\n\t\t\t$orderby = ' ORDER BY 1 ';\r\n\t\t} else {\r\n\t\t\t$orderby = ' ORDER BY ' . $filter_order . ' ' . $filter_order_Dir;\r\n\t\t}\r\n\t\treturn $orderby;\r\n\t}", "function getOrderingAndPlaygroundQuery()\n\t{\n\t\treturn 'SELECT ordering AS value,name AS text FROM #__joomleague_playground ORDER BY ordering';\n\t}", "public function getOrderByAllowed(): string;", "public function getOrderingColumn()\n {\n return $this->orderingColumn;\n }", "protected function _compile_order_by()\n\t{\n\t\tif (is_array($this->qb_orderby) && count($this->qb_orderby) > 0)\n\t\t{\n\t\t\tfor ($i = 0, $c = count($this->qb_orderby); $i < $c; $i++)\n\t\t\t{\n\t\t\t\tif ($this->qb_orderby[$i]['escape'] !== FALSE && ! $this->_is_literal($this->qb_orderby[$i]['field']))\n\t\t\t\t{\n\t\t\t\t\t$this->qb_orderby[$i]['field'] = $this->protect_identifiers($this->qb_orderby[$i]['field']);\n\t\t\t\t}\n\n\t\t\t\t$this->qb_orderby[$i] = $this->qb_orderby[$i]['field'].$this->qb_orderby[$i]['direction'];\n\t\t\t}\n\n\t\t\treturn $this->qb_orderby = \"\\nORDER BY \".implode(', ', $this->qb_orderby);\n\t\t}\n\t\telseif (is_string($this->qb_orderby))\n\t\t{\n\t\t\treturn $this->qb_orderby;\n\t\t}\n\n\t\treturn '';\n\t}", "public function getOrder()\n {\n return $this->orderingColumnOrder;\n }", "protected function compileOrderByStatement()\n {\n if (is_array($this->builderCache->orderBy) && count($this->builderCache->orderBy) > 0) {\n for ($i = 0, $c = count($this->builderCache->orderBy); $i < $c; $i++) {\n if ($this->builderCache->orderBy[ $i ][ 'escape' ] !== false\n && ! $this->isLiteral(\n $this->builderCache->orderBy[ $i ][ 'field' ]\n )\n ) {\n $this->builderCache->orderBy[ $i ][ 'field' ] = $this->conn->protectIdentifiers(\n $this->builderCache->orderBy[ $i ][ 'field' ]\n );\n }\n\n $this->builderCache->orderBy[ $i ] = $this->builderCache->orderBy[ $i ][ 'field' ]\n . $this->builderCache->orderBy[ $i ][ 'direction' ];\n }\n\n return $this->builderCache->orderBy = \"\\n\" . sprintf(\n 'ORDER BY %s',\n implode(', ', $this->builderCache->orderBy)\n );\n } elseif (is_string($this->builderCache->orderBy)) {\n return $this->builderCache->orderBy;\n }\n\n return '';\n }", "public function orderBy(){\r\n $this->orderBy = \"ORDER BY \";\r\n $args = func_get_args();\r\n foreach($args as $arg){\r\n $this->orderBy.= $this->db->formatTableName($arg);\r\n if(end($args) !== $arg){\r\n $this->orderBy.=\", \";\r\n } \r\n\r\n }\r\n return $this;\r\n }", "public function default_order_by()\r\n {\r\n $this->db->order_by('partners.id');\r\n }", "protected function prepareOrderByStatement() {}", "public function orderBy($sql);", "public function getDefaultOrderByColumns();", "public function getOrderBy()\n {\n $orderby = $this->orderby;\n if (!$orderby) {\n $orderby = [];\n }\n\n if (!is_array($orderby)) {\n // spilt by any commas not within brackets\n $orderby = preg_split('/,(?![^()]*+\\\\))/', $orderby ?? '');\n }\n\n foreach ($orderby as $k => $v) {\n if (strpos($v ?? '', ' ') !== false) {\n unset($orderby[$k]);\n\n $rule = explode(' ', trim($v ?? ''));\n $clause = $rule[0];\n $dir = (isset($rule[1])) ? $rule[1] : 'ASC';\n\n $orderby[$clause] = $dir;\n }\n }\n\n return $orderby;\n }", "function _buildContentOrderBy()\n\t{\t\t\t\n\t\t$orderEvents = EventBookingHelper::getConfigValue('order_events');\n\t\tif ($orderEvents == 2) {\n\t\t\t$orderby = ' ORDER BY a.event_date ';\n\t\t} else {\n\t\t\t$orderby = ' ORDER BY a.ordering ';\t\n\t\t}\t\t\t\n\t\treturn $orderby;\n\t}", "private function makeOrderingSQL($order_by) {\n $all_columns = \"\";\n if (is_array($order_by))\n {\n foreach ($order_by as $column_name)\n\t{\n\t $all_columns .= $column_name . ', ';\n\t}\n $all_columns = rtrim($all_columns, ', ');\n }\n else\n {\n $all_columns = $order_by;\n }\n return 'ORDER BY ' . $all_columns;\n}", "public function getOrderColumn()\n {\n return 'order';\n }", "public function implicitOrderby() {\n\t\treturn true;\n\t}", "private function _buildOrderClause()\n {\n $order = array();\n\n switch ( $this->orderby ) {\n case self::ORDERBY_DATE:\n $order[] = 'date_enreg' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_BEGIN_DATE:\n $order[] = 'date_debut_cotis' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_END_DATE:\n $order[] = 'date_fin_cotis' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_MEMBER:\n $order[] = 'nom_adh' . ' ' . $this->ordered;\n $order[] = 'prenom_adh' . ' ' . $this->ordered;\n break;\n case self::ORDERBY_TYPE:\n $order[] = ContributionsTypes::PK;\n break;\n case self::ORDERBY_AMOUNT:\n $order[] = 'montant_cotis' . ' ' . $this->ordered;\n break;\n /*\n Hum... I really do not know how to sort a query with a value that\n is calculated code side :/\n case self::ORDERBY_DURATION:\n break;*/\n default:\n $order[] = $this->orderby . ' ' . $this->ordered;\n break;\n }\n\n return $order;\n }", "function getOrdering() {\n return $this->ordering;\n }", "public function getOrder()\n {\n //Note: order by parts are not \"named\" so it's all or nothing\n return $this->_get('_order');\n }", "public function getSortBy();", "function order_by($params, $default_field, $default_order = 'ASC') {\r\n \tif (isset($params['sortby'])) {\r\n \t\t$default_field = $params['sortby'];\r\n \t}\r\n\r\n \tif (isset($params['sortdir'])) {\r\n \t\t$default_order = $params['sortdir'];\r\n \t}\r\n\r\n \treturn \"ORDER BY $default_field $default_order\";\r\n\r\n }", "protected abstract function getOrderByClause(array $sorts);", "public function getAscendingOrder()\n\t{\n\t\treturn 'ASC';\n\t}", "function _order_by ($identifier_array, $o = TRUE) {\n\t\t$statement = '';\n\t\tif ( !isset($identifier_array) || !$identifier_array ) {\n\t\t\treturn $statement;\n\t\t}\n\t\t$statement .= $o ? ' ORDER BY ' : ' ';\n\t\t$c = count($identifier_array);\n\t\tfor ($count = 0; $count < $c; $count++) {\n\t\t\t$query_array = $identifier_array[$count]; \n\t\t\t$statement .= '`'. $query_array['column_name'] . '` ';\n\t\t\tif ($count == $c - 1) {\n\t\t\t\t$statement .= $query_array['asc_desc'] . ' ';\n\t\t\t} else {\n\t\t\t\t$statement .= $query_array['asc_desc'] . ', ';\n\t\t\t}\n\t\t}\n\t\treturn $statement;\n\t}", "public function getNodeOrderBy()\n {\n return $this->prototype->getNodeOrderBy();\n }", "public function orderBy($direction = \"ASC\",$column);", "function ajan_esc_sql_order( $order = '' ) {\n\t$order = strtoupper( trim( $order ) );\n\treturn 'DESC' === $order ? 'DESC' : 'ASC';\n}", "public function order_by() {\r\n\t\t$fields = func_get_args();\r\n\r\n\t\t// Loop through the columns\r\n\t\tfor ( $i = 0; $i < intval( $_GET['iSortingCols'] ); $i++ ) {\r\n\t\t\t// Add the necessary comman\r\n\t\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t\t$this->order_by .= ',';\r\n\t\t\t\r\n\t\t\t// Compile the fields\r\n\t\t\t$this->order_by .= $fields[$_GET['iSortCol_' . $i]] . ' ' . $_GET['sSortDir_' . $i];\r\n\t\t}\r\n\t\t\r\n\t\t// If it's not empty\r\n\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t$this->order_by = ' ORDER BY ' . $this->order_by;\r\n\t}", "public function getXXXOrdering()\n\t{\n\t\treturn array('title_asc', 'title_desc');\n\t}", "private function getOrderString() {\r\n\r\n $columns = $this->resource->setDatatableFields(TRUE);\r\n\r\n $order = '';\r\n if (isset($this->resource->requestData['order']) && count($this->resource->requestData['order'])) {\r\n $orderBy = array();\r\n $dtColumns = $this->pluck($columns, 'dt');\r\n for ($i = 0, $ien = count($this->resource->requestData['order']); $i < $ien; $i++) {\r\n // Convert the column index into the column data property\r\n $columnIdx = intval($this->resource->requestData['order'][$i]['column']);\r\n $requestColumn = $this->resource->requestData['columns'][$columnIdx];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n if ($requestColumn['orderable'] == 'true') {\r\n $dir = $this->resource->requestData['order'][$i]['dir'] === 'asc' ? 'ASC' : 'DESC';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $orderBy[] = $fld[0] . '.' . $fld[1] . \" \" . $dir;\r\n } else {\r\n\r\n $orderBy[] = $column['db'] . \" \" . $dir;\r\n }\r\n }\r\n }\r\n $order = implode(', ', $orderBy);\r\n }\r\n return $order;\r\n }", "public function getOrder(): string\n {\n return strtolower($this->order) === 'desc' ? 'desc' : 'asc';\n }", "function _buildContentOrderBy($q = false)\n\t{\n\t\t$filter_order = $this->getState('filter_order');\n\t\t$filter_order_Dir = $this->getState('filter_order_Dir');\n\n\t\tif ($filter_order=='a.filename_displayed') $filter_order = ' CASE WHEN a.filename_original<>\"\" THEN a.filename_original ELSE a.filename END ';\n\t\t$orderby \t= ' ORDER BY '.$filter_order.' '.$filter_order_Dir.', a.filename';\n\n\t\treturn $orderby;\n\t}", "public function stripOrderByForOrderByKeywordDataProvider() {}", "public function getOrderBy()\n {\n if (!array_key_exists(self::ORDER_BY, $this->items)) {\n return [];\n }\n\n return $this->items[self::ORDER_BY];\n }", "protected function getSortString()\n {\n $query = '';\n if (!empty($this->sort)) {\n $sort = implode(', ', $this->sort);\n $query = self::TAB_SEPARATOR . \"SORT \" . $sort . self::LINE_SEPARATOR;\n }\n return $query;\n }", "public function getOrderHint()\n {\n return $this->orderHint;\n }", "private function buildOrderBy() {\n\t\t$hasorderby = false;\n\t\tforeach($this->ordergroup as $key=>$extra) {\n\t\t\tif(strpos(strtoupper($extra), 'ORDER BY') !== false) {\n\t\t\t\t$this->orders[] = str_replace('ORDER BY', \"\", strtoupper($extra));\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t\tif(strpos(strtoupper($extra), 'LIMIT') !== false) {\n\t\t\t\t$this->limit = $extra;\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t\tif(strpos(strtoupper($extra), 'GROUP BY') !== false) { \n\t\t\t\t$this->groups[] = str_replace('GROUP BY', \"\", strtoupper($extra));\n\t\t\t\tunset($this->ordergroup[$key]);\n\t\t\t}\n\t\t}\n\t}", "public function getSortOrder();", "public function getSortOrder();", "public function getSortOrder();", "function order_by($order_by, $direction = 'ASC')\n {\n // We treat the rand() function as an exception\n if (preg_match(\"/rand\\\\(\\\\s*\\\\)/\", $order_by)) {\n $order = 'rand()';\n } else {\n $order_by = $this->object->_clean_column($order_by);\n // If the order by clause is a column, then it should be backticked\n if ($this->object->has_column($order_by)) {\n $order_by = \"`{$order_by}`\";\n }\n $direction = $this->object->_clean_column($direction);\n $order = \"{$order_by} {$direction}\";\n }\n $this->object->_order_clauses[] = $order;\n return $this->object;\n }", "function getOrderBySQL($orderBys)\n{\n $SQL = '';\n if( count($orderBys) > 0 ){\n $SQL .= ' ORDER BY ';\n $obSQLs = array();\n foreach( $orderBys as $obField => $desc ){\n if( $desc ){\n $obSQLs[] = $obField . ' DESC';\n }else{\n $obSQLs[] = $obField;\n }\n }\n $SQL .= join(',',$obSQLs);\n }\n return $SQL;\n}", "public function build_order_by( $order_by, $order = 'ASC' ) {\n if ( empty( $order_by ) ) {\n return '';\n }\n $sql = ' ORDER BY ' . $this->get_row_suffix() . $order_by;\n if ( ! in_array( $order, array( 'ASC', 'DESC' ) ) ) {\n $order = 'ASC';\n }\n\n return $sql . ' ' . $order . ' ';\n }", "public static function orderAsc($parameter);", "public function getXsiTypeName() {\n return \"OrderBy\";\n }", "abstract protected function _buildOrderBy( $order );", "function orderby($column) {\n\treturn \"<span class='orderby'><a href='?orderby={$column}&order=asc'>&darr;</a><a href='?orderby={$column}&order=desc'>&uarr;</a></span>\";\n}", "public function getQuery()\n {\n $query = parent::getQuery();\n if ( $this->hasLimit )\n {\n if ( $this->offset) \n {\n if ( !$this->orderString ) \n {\n // Uh ow. We need some columns to sort in the oposite order to make this work\n throw new ezcQueryInvalidException( \"LIMIT workaround for MS SQL\", \"orderBy() was not called before getQuery().\" );\n }\n return 'SELECT * FROM ( SELECT TOP ' . $this->limit . ' * FROM ( ' . self::top( $this->offset + $this->limit, $query ) . ' ) AS ezcDummyTable1 ' . $this->invertedOrderString . ' ) AS ezcDummyTable2 ' . $this->orderString;\n }\n return self::top( $this->limit, $query );\n }\n return $query;\n }", "function get_sort_sql($fieldname) {\n return '';\n }", "public function getSortColumn();", "public function getSortExpression()\n {\n return $this->sortExpression;\n }", "public function getSortExpression()\n {\n return $this->sortExpression;\n }", "public function getDescendingOrder()\n\t{\n\t\treturn 'DESC';\n\t}", "protected function get_sort_order() {\n return 111;\n }", "function publisher_getOrderBy($sort)\r\n{\r\n if ($sort == \"datesub\") {\r\n return \"DESC\";\r\n } else if ($sort == \"counter\") {\r\n return \"DESC\";\r\n } else if ($sort == \"weight\") {\r\n return \"ASC\";\r\n }\r\n}", "public function GetOrderByDirection()\n {\n return $this->sOrderByDirection;\n }", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);" ]
[ "0.77576107", "0.7618365", "0.76055425", "0.75251436", "0.75251436", "0.75251436", "0.7411651", "0.7411651", "0.738607", "0.73508346", "0.7191391", "0.70809704", "0.70721877", "0.70406985", "0.7027908", "0.7005746", "0.6993166", "0.6977492", "0.6954291", "0.6892933", "0.68685997", "0.6836843", "0.6831857", "0.68210584", "0.67075336", "0.6607445", "0.66072255", "0.6591501", "0.65535486", "0.65490353", "0.65438974", "0.6537219", "0.651661", "0.6493491", "0.6464142", "0.64575964", "0.6457374", "0.64460576", "0.64077854", "0.64059585", "0.63809574", "0.63687986", "0.63604736", "0.6275376", "0.626997", "0.62604654", "0.62548316", "0.62463087", "0.6240692", "0.6233211", "0.62265533", "0.62262034", "0.6224751", "0.62236273", "0.6203404", "0.6201581", "0.61908895", "0.61770177", "0.6170425", "0.61686647", "0.61671174", "0.6166745", "0.61317915", "0.6127478", "0.6125821", "0.6122334", "0.61184937", "0.61180806", "0.61132807", "0.61132807", "0.61132807", "0.6006179", "0.59992814", "0.5998481", "0.5996582", "0.59819144", "0.5981478", "0.59640986", "0.59615743", "0.59441173", "0.5938652", "0.59285057", "0.59285057", "0.5915971", "0.5904475", "0.59028554", "0.58879113", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789", "0.5880789" ]
0.75035876
8
Try to get record count
function TryGetRecordCount($sSql) { $cnt = -1; if (($this->TableType == 'TABLE' || $this->TableType == 'VIEW' || $this->TableType == 'LINKTABLE') && preg_match("/^SELECT \* FROM/i", $sSql)) { $sSql = "SELECT COUNT(*) FROM" . preg_replace('/^SELECT\s([\s\S]+)?\*\sFROM/i', "", $sSql); $sOrderBy = $this->GetOrderBy(); if (substr($sSql, strlen($sOrderBy) * -1) == $sOrderBy) $sSql = substr($sSql, 0, strlen($sSql) - strlen($sOrderBy)); // Remove ORDER BY clause } else { $sSql = "SELECT COUNT(*) FROM (" . $sSql . ") EW_COUNT_TABLE"; } $conn = &$this->Connection(); if ($rs = $conn->Execute($sSql)) { if (!$rs->EOF && $rs->FieldCount() > 0) { $cnt = $rs->fields[0]; $rs->Close(); } } return intval($cnt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function recordCount(): int;", "public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}", "public function getNumberOfRecords() {}", "function RecordCount() {}", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "function RecordCount() {\r\n return $this->result->numRows();\r\n }", "abstract protected function _recordcount($rs);", "private function record_count() {\n\t\t//Currently id is assumed\n\t\t$sql = \"SELECT COUNT(id) FROM {$this->table_name}\";\n\t\t$r = $this->do_query($sql);\n\t\t\n\t\twhile($row = mysql_fetch_array($r)) {\n\t\t\treturn $row[0];\n\t\t}\n\t}", "public function getRecordCount()\n {\n return $this->count(self::_RECORD);\n }", "public function record_count() {\r\n return $this->db->count_all(\"pessoafisica\");\r\n }", "function getCount()\n{\n if( $this->_count == -1 ){\n global $dbh;\n $SQL = $this->getCountSQL();\n $result = $dbh->getOne($SQL);\n dbErrorCheck($result);\n $this->_count = $result;\n return $result;\n }else{\n return $this->_count;\n }\n}", "function record_count()\n\t{\n\t\t $sql = \"SELECT COUNT(*) As cnt FROM pof\";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "static public function CountRecord()\n {\n }", "public function _count();", "function RecordCount() {\n return @mysql_num_rows($this->resource);\n }", "function record_count() {\n return $this->db->count_all($this->_student);\n }", "function RecordCount()\n\t{\n\t\treturn $this->_numOfRows;\n\t}", "public function getRecordCount(){\n $records = $this->statement(\"SELECT count(*) AS total_records FROM `voters`\");\n return $records[0]['total_records'];\n }", "function ListRecordCount() {\n\t\t$filter = $this->getSessionWhere();\n\t\tew_AddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->ApplyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$sql = ew_BuildSelectSql(\"SELECT * FROM \" . $this->getSqlFrom(), $this->getSqlWhere(), \"\", \"\", \"\", $filter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "function record_count() {\n\t\tif ($this->QueryID) {\n\t\t\treturn mysqli_num_rows($this->QueryID);\n\t\t}\n\t}", "public function count()\n\t{\n\t\treturn $this->result->count();\n\t}", "public function getCount()\n\t{\n\t\t$res = $this->pdo->queryOneRow('SELECT COUNT(id) AS num FROM xxxinfo');\n\t\treturn ($res === false ? 0 : $res['num']);\n\t}", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "function get_count()\n\t{\n\t\treturn $this->__num_rows;\n\t}", "function count()\n {\n $retval = 0;\n $key = $this->object->get_primary_key_column();\n $results = $this->object->run_query(\"SELECT COUNT(`{$key}`) AS `{$key}` FROM `{$this->object->get_table_name()}`\");\n if ($results && isset($results[0]->{$key})) {\n $retval = (int) $results[0]->{$key};\n }\n return $retval;\n }", "public function getRecordsCount()\n {\n return $this->count(self::_RECORDS);\n }", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "function SelectRecordCount() {\n\t\t$sSql = $this->SelectSQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "function SelectRecordCount() {\n\t\t$sSql = $this->SelectSQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "public function count() { \n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\treturn( count( $this->_recordset ) ); \n\t}", "function TryGetRecordCount($sql) {\n\t\t$cnt = -1;\n\t\t$pattern = \"/^SELECT \\* FROM/i\";\n\t\tif (($this->TableType == 'TABLE' || $this->TableType == 'VIEW' || $this->TableType == 'LINKTABLE') && preg_match($pattern, $sql)) {\n\t\t\t$sql = \"SELECT COUNT(*) FROM\" . preg_replace($pattern, \"\", $sql);\n\t\t} else {\n\t\t\t$sql = \"SELECT COUNT(*) FROM (\" . $sql . \") EW_COUNT_TABLE\";\n\t\t}\n\t\t$conn = &$this->Connection();\n\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\tif (!$rs->EOF && $rs->FieldCount() > 0) {\n\t\t\t\t$cnt = $rs->fields[0];\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function getCount ( ) {\r\n\t\t // Requete SQL\r\n\t\t $req = \"SELECT COUNT(*) AS count FROM \" .$this->table; \r\n\t\t $query = $this->db->prepare($req);\r\n\t\t $query->execute();\r\n\t\t $count = $query->fetch(PDO::FETCH_ASSOC);\r\n\t\t \r\n\t\t // Vérification\r\n\t\t if (count($count) <= 0) {\r\n\t\t return false;\r\n\t\t }\r\n\r\n\t\t return $count['count'];\r\n\t\t}", "public function count() {\n\t\t$results = $this->execute();\n\t\treturn $results ? count($results) : 0;\n\t}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function get_record_count() {\n $this->db->select('COUNT(banner_id) AS cnt');\n $query = $this->db->get('banners')->row();\n return $query->cnt;\n }", "public function record_count() {\n return $this->db->count_all(\"promotores\");\n }", "public function count() {\n return $this->row_count();\n }", "public function recordCount()\n {\n return sizeof($this->getRecords());\n }", "public function count()\n\t{\n\t\t// Execute query and return count\n\t\t$result = $this->execute();\n\t\treturn ($result !== false) ? count($result) : 0;\n\t}", "public function count() {\n $this->_active_query->fields($this->func()->count());\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return (int)$query->rowCount();\n }", "public static function count();", "public static function count()\n\t{\n\t\treturn self::new_instance_records()->count();\n\t}", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n return $row['total_rows'];\n }", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "function SelectRecordCount() {\n\t\tglobal $conn;\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$sSql = $this->SelectSQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\tif ($rs = $conn->Execute($this->SelectSQL())) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn intval($cnt);\n\t}", "public function testCountRecords()\n {\n\n $exhibit = $this->_exhibit();\n $record1 = $this->_record($exhibit);\n $record2 = $this->_record($exhibit);\n $record3 = $this->_record($exhibit);\n\n // Limit to 2 records.\n $result = $this->_records->queryRecords(array(\n 'exhibit_id' => $exhibit->id, 'limit' => 2, 'offset' => 0\n ));\n\n $this->assertEquals(3, $result['numFound']);\n\n }", "public function CountRow()\n\t{\n\treturn HDB::hus()->Hcount(\"mailingdataavmedgroupinvoicesrecord30\");\n\t}", "public function numberOfRecords(): int\n {\n return $this->number_of_records;\n }", "abstract public function count();", "abstract public function count();", "abstract public function count();", "abstract public function count();", "public function record_count(){\n return $this->db->count_all(\"configuration\");\n }", "public function fetchNrRecordsToGet();", "public function record_count()\n {\n return $this->db->count_all('punti_spesi');\n }", "public function count() {\n\t\t// return $this->_count;\n\t\treturn count($this->_data);\n\t}", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "public function countRecords()\n {\n try {\n $SQL = \"SELECT COUNT(`id`) FROM `\".CMS_TABLE_PREFIX.\"mod_feedback` WHERE `page_id` > '0' AND `active`='1'\";\n return $this->app['db']->fetchColumn($SQL);\n } catch (\\Doctrine\\DBAL\\DBALException $e) {\n throw new \\Exception($e);\n }\n }", "public static function getCount(){\n \t$sql = \"SELECT COUNT(*) as count FROM yy_hospital\";\n \t$res = self::getDb()->query($sql)->fetchAll();\n \t$count = $res[0]['count'];\n \treturn $count;\n }", "public function count(){\r\n\t$query = \"SELECT count(*) FROM \" . $this->table_name;\r\n\r\n\t// prepare query statement\r\n\t$stmt = $this->conn->prepare( $query );\r\n\r\n\t// execute query\r\n\t$stmt->execute();\r\n\r\n\t// get row value\r\n\t$rows = $stmt->fetch(PDO::FETCH_NUM);\r\n\r\n\t// return count\r\n\treturn $rows[0];\r\n}", "public function count() { }", "public function record_count() {\n $count = $this->db->count_all('product');\n return $count;\n }", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \".$this->table_name. \"\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n return $row['total_rows'];\n }", "public abstract function count();", "public abstract function count();", "public function record_count() {\r\n return $this->db->count_all(\"administradores\");\r\n }" ]
[ "0.80559886", "0.80494237", "0.8037677", "0.80199194", "0.8004639", "0.79817015", "0.79074967", "0.78953516", "0.78715104", "0.7826179", "0.7820763", "0.7800789", "0.77867657", "0.7745681", "0.7738925", "0.7669037", "0.7659064", "0.7657804", "0.76559216", "0.7638246", "0.76154923", "0.7613755", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.75406367", "0.7516051", "0.7508614", "0.749184", "0.7455444", "0.7454928", "0.7454928", "0.7451099", "0.74439836", "0.74399346", "0.7420714", "0.74068046", "0.7388409", "0.7386658", "0.7386658", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864496", "0.73864466", "0.7374186", "0.73708916", "0.73435366", "0.73423254", "0.733741", "0.7330009", "0.73224604", "0.7320064", "0.7315523", "0.731505", "0.73130536", "0.73123497", "0.72943705", "0.72732663", "0.72732663", "0.72732663", "0.72732663", "0.72668916", "0.72580373", "0.7251631", "0.72445536", "0.7243516", "0.7229721", "0.7216329", "0.7214573", "0.7209177", "0.7208611", "0.720589", "0.72052854", "0.72052854", "0.72042173" ]
0.0
-1
Get record count based on filter (for detail record count in master table pages)
function LoadRecordCount($sFilter) { $origFilter = $this->CurrentFilter; $this->CurrentFilter = $sFilter; $this->Recordset_Selecting($this->CurrentFilter); //$sSql = $this->SQL(); $sSql = $this->GetSQL($this->CurrentFilter, ""); $cnt = $this->TryGetRecordCount($sSql); if ($cnt == -1) { if ($rs = $this->LoadRs($this->CurrentFilter)) { $cnt = $rs->RecordCount(); $rs->Close(); } } $this->CurrentFilter = $origFilter; return intval($cnt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadRecordCount($filter)\n\t{\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->CurrentFilter = $filter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $this->CurrentFilter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn $cnt;\n\t}", "public function loadRecordCount($filter)\n\t{\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->CurrentFilter = $filter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $this->CurrentFilter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn $cnt;\n\t}", "function LoadRecordCount($filter) {\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->CurrentFilter = $filter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$sql = ew_BuildSelectSql(\"SELECT * FROM \" . $this->getSqlFrom(), $this->getSqlWhere(), \"\", \"\", \"\", $this->CurrentFilter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\tif ($rs = $this->LoadRs($this->CurrentFilter)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn intval($cnt);\n\t}", "public function getRecordsFiltered(): int;", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "private function getCountFilteredResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(distinct ' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setLeftJoin($qb);\n $this->setWhere($qb);\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "public function listRecordCount()\n\t{\n\t\t$filter = $this->getSessionWhere();\n\t\tAddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->applyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $filter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\treturn $cnt;\n\t}", "public function listRecordCount()\n\t{\n\t\t$filter = $this->getSessionWhere();\n\t\tAddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->applyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $filter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\treturn $cnt;\n\t}", "abstract public function prepareFilteredCount();", "function ListRecordCount() {\n\t\t$filter = $this->getSessionWhere();\n\t\tew_AddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->ApplyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$sql = ew_BuildSelectSql(\"SELECT * FROM \" . $this->getSqlFrom(), $this->getSqlWhere(), \"\", \"\", \"\", $filter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }", "public function record_count() {\r\n return $this->db->count_all(\"pessoafisica\");\r\n }", "public function getNumberOfRecords() {}", "public function count( $request, BaseFilter $filter = null ) {\n\t $search = $request->search;\n\t return $this->crudRepository->count( $this->model, $search, $filter);\n }", "function LoadRecordCount1($sFilter, $istanza) {\n $origFilter = $istanza->CurrentFilter;\n $istanza->CurrentFilter = $sFilter;\n $istanza->Recordset_Selecting($istanza->CurrentFilter);\n\n //$sSql = $this->SQL();\n $sSql = $istanza->GetSQL($istanza->CurrentFilter, \"\");\n $cnt = $istanza->TryGetRecordCount($sSql);\n if ($cnt == -1) {\n if ($rs = $istanza->LoadRs($istanza->CurrentFilter)) {\n $cnt = $rs->RecordCount();\n $rs->Close();\n }\n }\n $istanza->CurrentFilter = $origFilter;\n return intval($cnt);\n }", "public function getQueryCount();", "public static function fetchCount(array $filter = array())\n {\n return self::count( self::definition(), $filter);\n }", "function payment_count_filtered()\n {\n $this->_get_datatables_payment_query();\n $query = $this->company_db->get();\n return $query->num_rows();\n }", "function SelectRecordCount() {\n\t\tglobal $conn;\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$sSql = $this->SelectSQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\tif ($rs = $conn->Execute($this->SelectSQL())) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn intval($cnt);\n\t}", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "function RecordCount() {}", "public function countByFilter(VisitFilter $filter) : int;", "public static function record_count()\r\r\n {\r\r\n global $wpdb;\r\r\n $result = false;\r\r\n $totalRecords = 0;\r\r\n $countKey = 'total';\r\r\n $mitambo_json_api = wpsearchconsole::getInstance()->mitambo_json_api;\r\r\n $lastCollectDate = $mitambo_json_api->last_collect_date;\r\r\n $tabName = List_of_Data::getCurrentTabName(isset($_GET['tab']) ? $_GET['tab'] : 1);\r\r\n $type = List_of_Data::getDefaultType($tabName);\r\r\n $type = (isset($_GET['type']) ? $_GET['type'] : $type);\r\r\n\r\r\n $sql = \"SELECT json_value FROM {$wpdb->prefix}wpsearchconsole_data\";\r\r\n\r\r\n $sql .= \" WHERE api_key = '$tabName'\";\r\r\n $sql .= ($tabName == 'keywords' && $type == 0) ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= ($type && $type != 'all') ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= \" AND datetime = '\" . substr($lastCollectDate, 0, 10) . \"'\";\r\r\n $sql .= \"GROUP BY api_subkey\";\r\r\n\r\r\n if ($tabName == 'duplication') {\r\r\n $countKey = 'DuplicateGroupsCount';\r\r\n }\r\r\n $response = $wpdb->get_results($sql);\r\r\n foreach ($response as $key => $val) {\r\r\n\r\r\n if (!empty($val) && array_key_exists('json_value', $val)) {\r\r\n\r\r\n $result = json_decode($val->json_value);\r\r\n $totalRecords += ($result && array_key_exists($countKey, $result)) ? $result->$countKey : 0;\r\r\n }\r\r\n }\r\r\n\r\r\n return $totalRecords;\r\r\n }", "public static function getCount()\n {\n return static::find()->count();\n }", "function LoadRecordCount($sFilter) {\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$sSql = $this->SQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\tif ($rs = $this->LoadRs($this->CurrentFilter)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn intval($cnt);\n\t}", "public function record_count_activities() {\n return $this->db->count_all(\"page\");\n }", "public function get_count($filter = array()) {\n\t\t$this -> db -> from('Question');\n\t\t$this -> filter($filter);\n\t\treturn $this -> db -> count_all_results();\n\t}", "function count_total_filtered()\n {\n $this->_get_datatables_query_payment();\n $query = $this->company_db->get();\n return $query->num_rows();\n }", "public function countQuery();", "abstract protected function _recordcount($rs);", "public function getCount()\n\t{\n\t\treturn $this->getFilteredCollection()->count();\n\t}", "function record_count() {\n return $this->db->count_all($this->_student);\n }", "abstract public function recordCount(): int;", "public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}", "public function countByFilter(array $filter);", "function count($filter=NULL,array $options=NULL,$ttl=0) {\n\t\t$now=microtime(TRUE);\n\t\t$out=count($this->find($filter,$options,$ttl,FALSE));\n\t\t$this->db->jot('('.sprintf('%.1f',1e3*(microtime(TRUE)-$now)).'ms) '.\n\t\t\t$this->file.' [count] '.($filter?json_encode($filter):''));\n\t\treturn $out;\n\t}", "public static function record_count() {\n\n\t\t\tglobal $wpdb;\n\n\n\n\t\t\t$sql = \"SELECT COUNT(*) FROM {$wpdb->prefix}js_topics AS topic \"\n\n\t\t\t\t. \"JOIN {$wpdb->prefix}js_topic_subjects AS topic_subject ON topic.topic_id = topic_subject.topic_id \"\n\n\t\t\t\t. \"WHERE topic.is_active = 1\";\n\n\n\n\t\t\tif ( ! empty( $_REQUEST['subject'] ) ) {\n\n\t\t\t\t$sql .= ' AND topic_subject.subject_id = ' . $_REQUEST['subject'] . \" \";\n\n\t\t\t} else {\n\n\t\t\t\tif ( ! empty( $_REQUEST['level'] ) ) {\n\n\t\t\t\t\t$sql .= \" AND topic_subject.subject_id IN (SELECT subject_id FROM {$wpdb->prefix}js_subject_levels WHERE level_id = \" . $_REQUEST['level'] . \") \";\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$default_level = $wpdb->get_row( \"SELECT * FROM {$wpdb->prefix}js_grade_level \"\n\n\t\t\t\t\t\t. \"WHERE is_active = 1 ORDER BY level_order ASC LIMIT 1\" );\n\n\t\t\t\t\t$sql .= \" AND topic_subject.subject_id IN (SELECT subject_id FROM {$wpdb->prefix}js_subject_levels WHERE level_id = \" . $default_level->level_id . \") \";\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\n\t\t\treturn $wpdb->get_var( $sql );\n\n\t\t}", "public function publicSearchCount(Tinebase_Model_Filter_FilterGroup $_filter, $_action = 'get') \r\n {\r\n $this->checkFilterACL($_filter, $_action);\r\n\r\n $count = $this->_backend->publicSearchCount($_filter);\r\n \r\n return $count;\r\n }", "public function count() {\n if ($this->_count <= 0) {\n $where = new Where();\n if (isset($this->_options[\"eventData\"]) && $this->_options[\"eventData\"] != '') {\n $where->expression($this->_sql_search_expression, \"%\" . $this->_options[\"eventData\"] . \"%\");\n }\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from($this->table)->where($where)->columns(array('count' => new Expression('COUNT(*)')));\n $sqlTxt = $sql->getSqlStringForSqlObject($select);\n $resultSet = $this->adapter->query($sqlTxt, Adapter::QUERY_MODE_EXECUTE);\n foreach ($resultSet as $row) {\n $this->_count = intval($row->count);\n break;\n }\n }\n return $this->_count;\n }", "public static function count($table,$filter = null){\n if($filter){ $filter = ' WHERE '.$filter; }\n $res = Db::query(\"SELECT COUNT(*) as rows FROM {$table}\".$filter);\n if(!$res){return 0;}\n $row = $res->fetch_assoc();\n return $row['rows'];\n }", "public function getRecordCount()\n {\n return $this->count(self::_RECORD);\n }", "public final function count($filter='', $param=array())\n {\n if ($filter)\n $this->filter = $filter;\n\n if ($param)\n $this->param = $param;\n\n return $this->read('num');\n }", "public function findCount($cond = null) {\n $res = $this->findFirst(array(\n 'fields'=>array('count('.$this->primaryKey.') as count'),\n 'conditions'=>$cond,\n ));\n return $res->count;\n }", "function get_filtered_data(){\n $this->make_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function count()\n {\n return $this->pager->count();\n }", "public function getRecordsCount()\n {\n return $this->count(self::_RECORDS);\n }", "function total_records($recordType)\n{\n return get_db()->getTable($recordType)->count();\n}", "public function record_count() {\r\n return $this->db->count_all(\"administradores\");\r\n }", "function gettotalpageno(){\n\t $qry = \"SELECT * FROM countries\";\n\t return $result = $this->modelObj->numRows($qry);\n\t}", "public function getTotalCount();", "public function getTotalCount();", "public function getTotalCount();", "function record_count()\n\t{\n\t\t $sql = \"SELECT COUNT(*) As cnt FROM pof\";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "function geScalaire($table, $col2count, $filter, $op = 'count', $debug = false){\n\tGlobal $xoopsDB, $xoopsConfig, $xoopsModule;\n\t\n $sql = \"SELECT {$op}({$col2count}) AS nbEnr \"\n .\" FROM \".$xoopsDB->prefix($table)\n .(($filter == '') ? '' : \" WHERE {$filter}\"); \n\n $sqlquery = $xoopsDB->query ($sql); \n if ($xoopsDB->getRowsNum($sqlquery) == 0){\n $r = 0;\n }else{\n //$sqlfetch = $xoopsDB->fetchArray($sqlquery);\n //$r = $sqlfetch['nbEnr'] ;\n list($r) = $xoopsDB->fetchRow($sqlquery);\n }\n \n if ($debug) echo \"<hr>countArchives<br>$sql<hr>\";\n //displayArray($t,\"----- countArchives -----\");\n return $r;\n}", "public function count() { \n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\treturn( count( $this->_recordset ) ); \n\t}", "function getCount() {\n\t\t$where = (sizeof($this->wheres) > 0) ? ' WHERE '.implode(\" \\n AND \\n\\t\", $this->wheres) : '';\n\t\t$group = (sizeof($this->groups) > 0) ? ' GROUP BY '.implode(\", \", $this->groups) : '' ;\n\t\t$query = \"SELECT count(*) FROM \\n\\t\".$this->class->table.\"\\n \".implode(\"\\n \", $this->joins).$where.' '.$group.' ';\n\n\t\t$count =self::$global['dbCon']->fetchRow($query,MYSQLI_NUM);\n\t\treturn $count[0];\n\n\t}", "public function getCount();", "public function getCount();", "public function getCount();", "public function searchCount(Tinebase_Model_Filter_FilterGroup $_filter) {\n return 30;\n }", "function getVisibleItemsCount($db, $resource_pk) {\r\n\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nSELECT COUNT(i.item_pk) count\r\nFROM {$prefix}item i\r\nWHERE (i.resource_link_pk = :resource_pk) AND (i.visible = 1)\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_STR);\r\n $query->execute();\r\n\r\n $row = $query->fetch(PDO::FETCH_NUM);\r\n if ($row === FALSE) {\r\n $num = 0;\r\n } else {\r\n $num = intval($row[0]);\r\n }\r\n\r\n return $num;\r\n\r\n }", "public function getCount()\n\t{\n\t\treturn $this->data_source->count();\n\t}", "public function fetchNrRecordsToGet();", "public function _count();", "public function getCount()\n {\n return $this->model->count();\n }", "public static function record_count() {\r\n\t\tglobal $wpdb;\r\n\r\n\t\t$sql = \"SELECT COUNT(*) FROM {$wpdb->prefix}customers\";\r\n\r\n\t\tif ( ! empty( $_REQUEST['s'] ) ) {\r\n\t\t\t$sql .= ' WHERE name LIKE \"%' . esc_sql( $_REQUEST['s'] ) . '%\"' ;\r\n\t\t}\r\n\r\n\t\treturn $wpdb->get_var( $sql );\r\n\t}", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "static public function CountRecord()\n {\n }", "abstract public function getCount(GridViewRequest $request) : int;", "public function count()\n {\n return count($this->_filters);\n }", "public function getCount() {}", "public function getCount() {}", "public function getCount() {}", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM conta_a_pagar '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "public function count() \n { \n $query = $this->processInput();\n \n $model = $this->model;\n \n $result['total'] = $model::countAll($query['where']);\n\n $jsend = JSend\\JSendResponse::success($result);\n return $jsend->respond();\n }" ]
[ "0.7552328", "0.7552328", "0.74358016", "0.72982", "0.72590566", "0.7171518", "0.71571743", "0.7144402", "0.7144402", "0.71308565", "0.71276253", "0.711861", "0.70678794", "0.705942", "0.7002451", "0.6979552", "0.695035", "0.69268876", "0.6925299", "0.6896724", "0.6893357", "0.6874101", "0.68385464", "0.68338114", "0.6833391", "0.6800399", "0.67604965", "0.6751226", "0.67398435", "0.6734845", "0.6730338", "0.67232084", "0.6719653", "0.6719036", "0.6714069", "0.6712241", "0.67000085", "0.669707", "0.6669351", "0.66669995", "0.66614246", "0.66586477", "0.66546243", "0.6653549", "0.6646957", "0.6637327", "0.6631704", "0.66217875", "0.66084963", "0.6607039", "0.66062665", "0.66017586", "0.66012394", "0.66012394", "0.66012394", "0.65963006", "0.659396", "0.6590876", "0.65858406", "0.6570291", "0.6570291", "0.6570291", "0.65650225", "0.65597194", "0.65463495", "0.653926", "0.6535671", "0.65344226", "0.6532434", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518599", "0.6518511", "0.6510028", "0.650794", "0.6507153", "0.6506993", "0.6506993", "0.6500652", "0.65002924" ]
0.6944346
18
Get record count (for current List page)
function SelectRecordCount() { $sSql = $this->SelectSQL(); $cnt = $this->TryGetRecordCount($sSql); if ($cnt == -1) { $conn = &$this->Connection(); if ($rs = $conn->Execute($sSql)) { $cnt = $rs->RecordCount(); $rs->Close(); } } return intval($cnt); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ListRecordCount() {\n\t\t$filter = $this->getSessionWhere();\n\t\tew_AddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->ApplyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$sql = ew_BuildSelectSql(\"SELECT * FROM \" . $this->getSqlFrom(), $this->getSqlWhere(), \"\", \"\", \"\", $filter, \"\");\n\t\t$cnt = $this->TryGetRecordCount($sql);\n\t\tif ($cnt == -1) {\n\t\t\t$conn = &$this->Connection();\n\t\t\tif ($rs = $conn->Execute($sql)) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\treturn intval($cnt);\n\t}", "public function getRecordCount()\n {\n return $this->count(self::_RECORD);\n }", "public function listRecordCount()\n\t{\n\t\t$filter = $this->getSessionWhere();\n\t\tAddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->applyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $filter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\treturn $cnt;\n\t}", "public function listRecordCount()\n\t{\n\t\t$filter = $this->getSessionWhere();\n\t\tAddFilter($filter, $this->CurrentFilter);\n\t\t$filter = $this->applyUserIDFilters($filter);\n\t\t$this->Recordset_Selecting($filter);\n\t\t$select = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlSelect() : \"SELECT * FROM \" . $this->getSqlFrom();\n\t\t$groupBy = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlGroupBy() : \"\";\n\t\t$having = $this->TableType == 'CUSTOMVIEW' ? $this->getSqlHaving() : \"\";\n\t\t$sql = BuildSelectSql($select, $this->getSqlWhere(), $groupBy, $having, \"\", $filter, \"\");\n\t\t$cnt = $this->getRecordCount($sql);\n\t\treturn $cnt;\n\t}", "public function getRecordsCount()\n {\n return $this->count(self::_RECORDS);\n }", "public function getNumberOfRecords() {}", "function record_count() {\n return $this->db->count_all($this->_student);\n }", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "public function count(){\n\t\t$this->initRecordSet();\n\t\treturn $this->recordSetSize;\n\t}", "function RecordCount() {\r\n return $this->result->numRows();\r\n }", "function RecordCount() {}", "public function getCurrentNumberOfRecords()\n {\n return $this->pageMetaData['current_number_of_records'];\n }", "public function count()\n {\n return $this->pager->count();\n }", "function record_count()\n\t{\n\t\t $sql = \"SELECT COUNT(*) As cnt FROM pof\";\n\t $q = $this->db->query($sql);\n\t $row = $q->row();\n\t return $row->cnt;\n\t}", "function RecordCount()\n\t{\n\t\treturn $this->_numOfRows;\n\t}", "public static function getCount()\n\t{\n\t\treturn self::find()->count();\n\t}", "public function record_count() {\r\n return $this->db->count_all(\"pessoafisica\");\r\n }", "public function getRecordCountPerPage()\n {\n return $this->_recordCountPerPage;\n }", "public function getRecordCount(){\n $records = $this->statement(\"SELECT count(*) AS total_records FROM `voters`\");\n return $records[0]['total_records'];\n }", "public function get_record_count() {\n $this->db->select('COUNT(banner_id) AS cnt');\n $query = $this->db->get('banners')->row();\n return $query->cnt;\n }", "public function record_count() {\n $count = $this->db->count_all('product');\n return $count;\n }", "public function record_count() {\r\n return $this->db->count_all(\"administradores\");\r\n }", "public function numberOfRecords(): int\n {\n return $this->number_of_records;\n }", "public function count()\n\t{\n\t\t$content = $this->resource->get($this->name)->getContent();\n\t\t\n\t\treturn $content['doc_count'];\n\t}", "abstract public function recordCount(): int;", "public function record_count() {\n return $this->db->count_all(\"promotores\");\n }", "public static function getCount()\n {\n return static::find()->count();\n }", "function RecordCount() {\n return @mysql_num_rows($this->resource);\n }", "public function count()\n {\n return $this->model->paginate(1, $this->select)->total();\n }", "public function getCount ()\n {\n return count ( $this->_list ) ;\n }", "public function getCount() {\n \treturn $this->count();\n }", "public function recordCount()\n {\n return sizeof($this->getRecords());\n }", "private function record_count() {\n\t\t//Currently id is assumed\n\t\t$sql = \"SELECT COUNT(id) FROM {$this->table_name}\";\n\t\t$r = $this->do_query($sql);\n\t\t\n\t\twhile($row = mysql_fetch_array($r)) {\n\t\t\treturn $row[0];\n\t\t}\n\t}", "public function getCount()\n {\n if ($this->isValid()) {\n return isset($this['request']['records']) ? $this['request']['records'] : null;\n }\n }", "public function record_count_activities() {\n return $this->db->count_all(\"page\");\n }", "public function getCount()\r\n {\r\n return $this->count;\r\n }", "public function getCount() {\r\n return $this->count;\r\n }", "function record_count() {\n\t\tif ($this->QueryID) {\n\t\t\treturn mysqli_num_rows($this->QueryID);\n\t\t}\n\t}", "public function getCount()\n\t{\n\t\treturn $this->count;\n\t}", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->_count;\n }", "public function getCount()\n {\n return $this->_count;\n }", "public function getCount()\n\t{\n\t\treturn $this->_count;\n\t}", "public function getCount()\n\t{\n\t\treturn $this->Count;\n\t}", "public function getCount()\n {\n return $this->count;\n }", "public function getCount()\n {\n return $this->get('Count');\n }", "public function count() { \n\t\tif( $this->isDirty() ) { $this->executeQuery(); }\n\t\treturn( count( $this->_recordset ) ); \n\t}", "public function getCount()\n {\n return $this->data['count'];\n }", "public function count() {\r\n if (is_null($this->objectcount)) {\r\n $this->fetchData();\r\n }\r\n return $this->objectcount;\r\n }", "public static function record_count() {\n\t\tglobal $wpdb;\n\n\t\t$sql = \"SELECT COUNT(*) FROM `sd_certificates`\";\n\n\t\treturn $wpdb->get_var( $sql );\n\t}", "public function numberOfRecords(): int\n {\n return $this->lastResponse->numberOfRecords;\n }", "public function record_count()\n {\n return $this->db->count_all('punti_spesi');\n }", "public function count()\n {\n return Page::count();\n }", "public function count()\n {\n if ($this->count === null) {\n $this->count = $this->dataSource->count();\n }\n return $this->count;\n }", "public function getCount() : int\n {\n return $this->count;\n }", "public function fetchNrRecordsToGet();", "public function getNbrecord(): int\n {\n return 5;\n }", "public static function count()\n\t{\n\t\treturn self::new_instance_records()->count();\n\t}", "function get_count()\n\t{\n\t\treturn $this->__num_rows;\n\t}", "public function getCount()\n\t{\n\t\treturn $this->data_source->count();\n\t}", "public function getTotalRecords()\n {\n return $this->pageMetaData['total_records'];\n }", "public function getCount() {\n return $this->get(self::COUNT);\n }", "public function count(): int\n\t{\n\t\treturn $this->paginator->count();\n\t}", "private function getRecordCounter()\n {\n $recordCounter = DentalLog::where('clinicType', '=', 'D')->count();\n $recordCounter++;\n\n return $recordCounter;\n }", "public function pageCount()\n {\n return ($this->dbConnection->query('SELECT * FROM todos')->rowCount()/$this->numRecords);\n\n }", "static public function CountRecord()\n {\n }", "function SelectRecordCount() {\n\t\tglobal $conn;\n\t\t$origFilter = $this->CurrentFilter;\n\t\t$this->Recordset_Selecting($this->CurrentFilter);\n\t\t$sSql = $this->SelectSQL();\n\t\t$cnt = $this->TryGetRecordCount($sSql);\n\t\tif ($cnt == -1) {\n\t\t\tif ($rs = $conn->Execute($this->SelectSQL())) {\n\t\t\t\t$cnt = $rs->RecordCount();\n\t\t\t\t$rs->Close();\n\t\t\t}\n\t\t}\n\t\t$this->CurrentFilter = $origFilter;\n\t\treturn intval($cnt);\n\t}", "public function count() {\n return count( $this->list );\n }", "function getCount()\n{\n if( $this->_count == -1 ){\n global $dbh;\n $SQL = $this->getCountSQL();\n $result = $dbh->getOne($SQL);\n dbErrorCheck($result);\n $this->_count = $result;\n return $result;\n }else{\n return $this->_count;\n }\n}", "public function count() {\n return count($this->list);\n }", "public function getCount()\n {\n return $this->count++;\n }", "public function getNumberOfRecords ()\n {\n // hydrate\n if ( is_null ( $this->studentsCount ) )\n {\n $this->studentsCount = count ( $this->getStudents () );\n }\n \n return $this->studentsCount;\n }", "public function getNumberOfRecords() {\r\n\t\treturn mysqli_num_rows($this->result);\r\n\t}", "public static function record_count()\r\r\n {\r\r\n global $wpdb;\r\r\n $result = false;\r\r\n $totalRecords = 0;\r\r\n $countKey = 'total';\r\r\n $mitambo_json_api = wpsearchconsole::getInstance()->mitambo_json_api;\r\r\n $lastCollectDate = $mitambo_json_api->last_collect_date;\r\r\n $tabName = List_of_Data::getCurrentTabName(isset($_GET['tab']) ? $_GET['tab'] : 1);\r\r\n $type = List_of_Data::getDefaultType($tabName);\r\r\n $type = (isset($_GET['type']) ? $_GET['type'] : $type);\r\r\n\r\r\n $sql = \"SELECT json_value FROM {$wpdb->prefix}wpsearchconsole_data\";\r\r\n\r\r\n $sql .= \" WHERE api_key = '$tabName'\";\r\r\n $sql .= ($tabName == 'keywords' && $type == 0) ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= ($type && $type != 'all') ? \" AND api_subkey = '$type'\" : \"\";\r\r\n $sql .= \" AND datetime = '\" . substr($lastCollectDate, 0, 10) . \"'\";\r\r\n $sql .= \"GROUP BY api_subkey\";\r\r\n\r\r\n if ($tabName == 'duplication') {\r\r\n $countKey = 'DuplicateGroupsCount';\r\r\n }\r\r\n $response = $wpdb->get_results($sql);\r\r\n foreach ($response as $key => $val) {\r\r\n\r\r\n if (!empty($val) && array_key_exists('json_value', $val)) {\r\r\n\r\r\n $result = json_decode($val->json_value);\r\r\n $totalRecords += ($result && array_key_exists($countKey, $result)) ? $result->$countKey : 0;\r\r\n }\r\r\n }\r\r\n\r\r\n return $totalRecords;\r\r\n }", "public function getCount()\n {\n return $this->model->count();\n }", "public function record_count(){\n return $this->db->count_all(\"configuration\");\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count()\n {\n return $this->count;\n }", "public function count() {\n\t\treturn $this->count;\n\t}", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "public function count()\n {\n return count($this->list);\n }", "public function count()\n\t{\n\t\treturn count($this->list);\n\t}", "public function count() { return $this->_m_count; }", "public function count()\n {\n return $this->getCount();\n }", "function get_count() {\n\t\t$count=0;\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute(\"select count(pr_id) as num from \".$this->_db_table);\n\t\tif (!$rs) {\n\t\t\tprint $db->ErrorMsg();\n\t\t} else {\n\t\t\t$count = $rs->fields[\"num\"];\n\t\t}\n\t\treturn $count;\n\t}", "public function count() {\n return $this->count;\n }", "function count()\n\t{\n\t\treturn $this->count;\n\t}", "public function count() \n {\n return $this->count;\n }", "public function count()\r\n\t{\r\n\t\treturn $this->count;\r\n\t}", "public function count() {\n\t\treturn $this->_count;\n\t}" ]
[ "0.8536781", "0.82598513", "0.80738413", "0.80738413", "0.80288726", "0.78962916", "0.7807341", "0.7802722", "0.7773215", "0.7738411", "0.7733157", "0.77303135", "0.77216", "0.76973724", "0.7686685", "0.76428086", "0.76218796", "0.7614867", "0.75832915", "0.75689954", "0.75507957", "0.75347966", "0.75147545", "0.7486274", "0.7485094", "0.74715006", "0.746579", "0.74580586", "0.7455649", "0.74505466", "0.7443863", "0.74419194", "0.7429225", "0.7428968", "0.7424004", "0.7414701", "0.7412731", "0.74075514", "0.739242", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.7390983", "0.73568743", "0.73568743", "0.7353281", "0.73511636", "0.73415226", "0.7340246", "0.73179567", "0.7311069", "0.7307289", "0.7305411", "0.7288981", "0.727378", "0.7259217", "0.7251318", "0.72497725", "0.72412425", "0.72375816", "0.7226585", "0.7225239", "0.7210169", "0.7207994", "0.72054", "0.71874774", "0.718212", "0.7179642", "0.7177966", "0.7167676", "0.71509314", "0.71500516", "0.7146938", "0.71458346", "0.7143912", "0.71366096", "0.7134255", "0.71321243", "0.7116024", "0.7112908", "0.7112908", "0.7112908", "0.7112908", "0.7112908", "0.71111494", "0.7106506", "0.71032083", "0.7103061", "0.7096488", "0.7088388", "0.70866287", "0.708583", "0.7084833", "0.7074143", "0.70679206", "0.7066591" ]
0.0
-1
Key filter WHERE clause
function SqlKeyFilter() { return "`gjd_id` = @gjd_id@"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function KeyWhere(&$keys, $table = \"\")\n{\n\tglobal $strTableName, $cman;\n\t\n\tif( !$table )\n\t\t$table = $strTableName;\n\t$strWhere=\"\";\n\t\n\t$pSet = new ProjectSettings($table);\n\t$cipherer = new RunnerCipherer($table);\n\t$connection = $cman->byTable( $table );\n\t\n\t$keyFields = $pSet->getTableKeys();\n\tforeach($keyFields as $kf)\n\t{\n\t\tif( strlen($strWhere) )\n\t\t\t$strWhere.= \" and \";\n\t\t\t\n\t\t$value = $cipherer->MakeDBValue($kf, $keys[ $kf ], \"\", true);\n\t\t\n\t\tif( $connection->dbType == nDATABASE_Oracle )\n\t\t\t$valueisnull = $value === \"null\" || $value == \"''\";\n\t\telse\n\t\t\t$valueisnull = $value === \"null\";\n\t\t\n\t\tif( $valueisnull )\n\t\t\t$strWhere.= RunnerPage::_getFieldSQL($kf, $connection, $pSet).\" is null\";\n\t\telse\n\t\t\t$strWhere.= RunnerPage::_getFieldSQLDecrypt($kf, $connection, $pSet, $cipherer).\"=\".$cipherer->MakeDBValue($kf, $keys[ $kf ], \"\", true);\n\t}\n\treturn $strWhere;\n}", "protected function sqlKeyFilter()\n\t{\n\t\treturn \"`id` = @id@\";\n\t}", "function SqlKeyFilter() {\n\t\treturn \"`rid` = @rid@\";\n\t}", "function SqlKeyFilter() {\n\t\treturn \"`C_EVENT_ID` = @C_EVENT_ID@\";\n\t}", "function BuildKeyFilter() {\r\n\t\tglobal $objForm, $rekeningju;\r\n\t\t$sWrkFilter = \"\";\r\n\r\n\t\t// Update row index and get row key\r\n\t\t$rowindex = 1;\r\n\t\t$objForm->Index = $rowindex;\r\n\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\twhile ($sThisKey <> \"\") {\r\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\r\n\t\t\t\t$sFilter = $rekeningju->KeyFilter();\r\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\r\n\t\t\t\t$sWrkFilter .= $sFilter;\r\n\t\t\t} else {\r\n\t\t\t\t$sWrkFilter = \"0=1\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Update row index and get row key\r\n\t\t\t$rowindex++; // next row\r\n\t\t\t$objForm->Index = $rowindex;\r\n\t\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\t}\r\n\t\treturn $sWrkFilter;\r\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "protected function getWhereKeys(){\n\t\t\t$whereKeys = \"1\";\n\t\t\tif($this->keys){\n\t\t\t\t$whereKeys = array();\n\t\t\t\tforeach ($this->keys as $key) {\n\t\t\t\t\t$whereKeys[] = \"$key = :$key\";\n\t\t\t\t}\n\t\t\t\t$whereKeys = implode(\" AND \", $whereKeys);\n\t\t\t}\n\t\t\treturn $whereKeys;\n\t\t}", "function BuildKeyFilter() {\r\n\t\tglobal $objForm;\r\n\t\t$sWrkFilter = \"\";\r\n\r\n\t\t// Update row index and get row key\r\n\t\t$rowindex = 1;\r\n\t\t$objForm->Index = $rowindex;\r\n\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\twhile ($sThisKey <> \"\") {\r\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\r\n\t\t\t\t$sFilter = $this->KeyFilter();\r\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\r\n\t\t\t\t$sWrkFilter .= $sFilter;\r\n\t\t\t} else {\r\n\t\t\t\t$sWrkFilter = \"0=1\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Update row index and get row key\r\n\t\t\t$rowindex++; // next row\r\n\t\t\t$objForm->Index = $rowindex;\r\n\t\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\t}\r\n\t\treturn $sWrkFilter;\r\n\t}", "function BuildKeyFilter() {\r\n\t\tglobal $objForm;\r\n\t\t$sWrkFilter = \"\";\r\n\r\n\t\t// Update row index and get row key\r\n\t\t$rowindex = 1;\r\n\t\t$objForm->Index = $rowindex;\r\n\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\twhile ($sThisKey <> \"\") {\r\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\r\n\t\t\t\t$sFilter = $this->KeyFilter();\r\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\r\n\t\t\t\t$sWrkFilter .= $sFilter;\r\n\t\t\t} else {\r\n\t\t\t\t$sWrkFilter = \"0=1\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Update row index and get row key\r\n\t\t\t$rowindex++; // next row\r\n\t\t\t$objForm->Index = $rowindex;\r\n\t\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\t}\r\n\t\treturn $sWrkFilter;\r\n\t}", "function BuildKeyFilter() {\r\n\t\tglobal $objForm;\r\n\t\t$sWrkFilter = \"\";\r\n\r\n\t\t// Update row index and get row key\r\n\t\t$rowindex = 1;\r\n\t\t$objForm->Index = $rowindex;\r\n\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\twhile ($sThisKey <> \"\") {\r\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\r\n\t\t\t\t$sFilter = $this->KeyFilter();\r\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\r\n\t\t\t\t$sWrkFilter .= $sFilter;\r\n\t\t\t} else {\r\n\t\t\t\t$sWrkFilter = \"0=1\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Update row index and get row key\r\n\t\t\t$rowindex++; // next row\r\n\t\t\t$objForm->Index = $rowindex;\r\n\t\t\t$sThisKey = strval($objForm->GetValue(\"k_key\"));\r\n\t\t}\r\n\t\treturn $sWrkFilter;\r\n\t}", "function start_group_where($key,$value=NULL,$escape=TRUE,$type=\"AND\")\n {\n $this->open_bracket($type); \n return parent::_where($key, $value,'',$escape); \n }", "protected function sqlKeyFilter()\n\t{\n\t\treturn \"`IncomeCode` = @IncomeCode@\";\n\t}", "private static function genPrimaryKeyWhereClause() {\n return \"WHERE \" . self::ID_KEY . \"=\" . self::transformForPreparedStatement(self::ID_KEY);\n }", "public function where(string $key, $value);", "function SqlKeyFilter() {\n\t\treturn \"`IDXDAFTAR` = @IDXDAFTAR@\";\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "function BuildKeyFilter() {\n\t\tglobal $objForm;\n\t\t$sWrkFilter = \"\";\n\n\t\t// Update row index and get row key\n\t\t$rowindex = 1;\n\t\t$objForm->Index = $rowindex;\n\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\twhile ($sThisKey <> \"\") {\n\t\t\tif ($this->SetupKeyValues($sThisKey)) {\n\t\t\t\t$sFilter = $this->KeyFilter();\n\t\t\t\tif ($sWrkFilter <> \"\") $sWrkFilter .= \" OR \";\n\t\t\t\t$sWrkFilter .= $sFilter;\n\t\t\t} else {\n\t\t\t\t$sWrkFilter = \"0=1\";\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// Update row index and get row key\n\t\t\t$rowindex++; // Next row\n\t\t\t$objForm->Index = $rowindex;\n\t\t\t$sThisKey = strval($objForm->GetValue($this->FormKeyName));\n\t\t}\n\t\treturn $sWrkFilter;\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(SettingPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function where($key, $char = NULL)\r\n {\r\n return $this->_where($key, $char, 'AND ');\r\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(GoodsInSalePeer::ID, $key, Criteria::EQUAL);\n\t}", "function where($key, $value = NULL, $escape = TRUE)\r\n\t{\r\n\t\treturn $this->_where($key, $value, 'AND ', $escape);\r\n\t}", "protected function user_where_clause() {}", "protected function getWhereClause() {}", "function where($keys, $data) {\n\n $WHERE = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $WHERE[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(' AND ', $WHERE);\n}", "public function Where($key, $value)\n {\n $this->where = \"WHERE $key = '$value'\";\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ExpositorFeriaPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RepositoryPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filter()\n\t{\n\t\treturn implode( ' AND ', array_map( function( $col ) { return \"$col=?\"; }, array_keys( $this->_id ) ) );\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ActividadPeer::ID, $key, Criteria::EQUAL);\n\t}", "private static function prepareWhereClause(string $key, $value, array $filter = []): void\n {\n $compareType = $filter['compareType'] ?? '=';\n $relation = $filter['relation'] ?? null;\n $relationXref = !empty($filter['relationXref']) ? $filter['relationXref'].'.' : '';\n\n // Add relation Xref table name, if needed\n $key = $relationXref.$key;\n\n if (!empty($relation)) {\n // Search in relation\n if (is_array($relation)) {\n foreach ($relation as $rel) {\n self::$query->orWhereHas($rel, function($query) use($key, $value, $compareType){\n self::setWhereClause($key, $value, $compareType, $query);\n })->get();\n }\n }else{\n self::$query->whereHas($relation, function($query) use($key, $value, $compareType){\n self::setWhereClause($key, $value, $compareType, $query);\n })->get();\n }\n } else {\n // Search in the main table\n self::setWhereClause($key, $value, $compareType);\n }\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(AnotacaoCasoPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(EafFormInfoPeer::ID, $key, Criteria::EQUAL);\n\t}", "abstract protected function logicFilter($key, $valueK, $op, $v);", "public function getFilterKey(){\n\t\treturn $this->_filterKey;\n\t}", "protected function getGeneralWhereClause() {}", "public function where($key, $value = NULL, $escape = NULL)\n\t{\n\t\treturn $this->_wh('qb_where', $key, $value, 'AND ', $escape);\n\t}", "public function setFilterKey($key,$value,$operator='='){\n\t\t$this->_filterKey[$key] = array('value'=>$value,'operator'=>$operator);\n\t\treturn $this;\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PeliculaPeer::ID, $key, Criteria::EQUAL);\n\t}", "function Select_Record_By_Two_Filter($data, $table_name) {\r\n global $con;\r\n $key = array_keys($data);\r\n $value = array_values($data);\r\n $sql = \"select * from $table_name where $key[0] = '$value[0]' AND $key[1] = '$value[1]'\";\r\n try {\r\n $stmt = $con->query($sql);\r\n return $stmt;\r\n } catch (PDOException $e) {\r\n print $e->getMessage();\r\n }\r\n}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(MesaPeer::ID_MESA, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AnakPeer::ANAK_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ProductoPeer::ID_PRODUCTO, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_ProductPeer::ID_PRODUCT, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(PersonaPeer::ID_PERSONA, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(LpPeer::ID, $key, Criteria::EQUAL);\n\t}", "function pk_where($binded=false) {\r\n\t\t$in = $this->session_vars;\r\n\t\t$pk_key = $this->pk_key ();\r\n\t\tfor($i = 0; $i < count ( $pk_key ); $i ++) {\r\n\t\t\tif ($in [$pk_key [$i]] != 'next') {\r\n\t\t\t\tif ($where != '')\r\n\t\t\t\t$where .= ' and ';\r\n\t\t\t\tif(!$binded) $where .= $pk_key [$i] . \"='\" . $in [$pk_key [$i]] . \"'\";\r\n\t\t\t\telse $where .= $pk_key [$i] . \"=:\" .$pk_key [$i] ;\r\n\t\t\t\t$bind[$pk_key [$i]]= $in [$pk_key [$i]];\r\n\t\t\t}\r\n\t\t}\r\n\t\t$return['WHERE']=$where;\r\n\t\t$return['BIND']=$bind;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(!$binded) return $return['WHERE'];\r\n\t\telse return $return;\r\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(TblAdherentPeer::ID_ADHERENT, $key, Criteria::EQUAL);\n\t}", "protected function conditionsContainIndexKey()\n {\n if (empty($this->where)) {\n return false;\n }\n\n foreach ($this->model->getDynamoDbIndexKeys() as $name => $keysInfo) {\n $conditionKeys = array_keys($this->where);\n $keys = array_values($keysInfo);\n if (count(array_intersect($conditionKeys, $keys)) === count($keys)) {\n return [\n 'name' => $name,\n 'keysInfo' => $keysInfo\n ];\n }\n }\n\n return false;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(QuizPeer::ID, $key, Criteria::EQUAL);\n\t}", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_key_component\n\t\t\t\tWHERE kcp_id=?\";\n\t\t$this->db->query($sql, array($this->kcp_id));\n\t\treturn $query;\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(afGuardUserPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(BitacoraAccesoPeer::ID, $key, Criteria::EQUAL);\n }", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'thnkurikulum': return \"p.thnkurikulum = '$key'\";\n\t\t\t\tcase 'unit': return \"p.kodeunit = '$key'\";\n\t\t\t\tcase 'matkul': return \"p.kodemk1 = '$key'\";\n\t\t\t\tcase 'matkul': return \"p.kodemk2 = '$key'\";\n\t\t\t\t\n\t\t\t}\n\t\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(CalendarPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(UnitPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RoleactionPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RespuestaItemPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(DomainCheckPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n throw new LogicException('The Egive object has no primary key');\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(Oops_Db_AddressPeer::ID_ADDRESS, $key, Criteria::EQUAL);\n\t}", "public function where($key, $value, $operator = '='){\n $where = $this->_options['where'];\n\n //first where cond do not need logic operator\n if(!empty($where)){\n $logic = $this->_options['logic'];\n $where[] = $logic ? $logic : ' AND ';\n }\n\n $where[] = $this->_escapeWhere($key, $value, $operator);\n $this->_options['where'] = $where;\n $this->_options['logic'] = '';\n\n return $this;\n }", "function Select_Record_By_One_Filter($data, $table_name) {\r\n global $con;\r\n $key = array_keys($data);\r\n $value = array_values($data);\r\n $sql = \"select * from $table_name where $key[0] = '$value[0]'\";\r\n try {\r\n $stmt = $con->query($sql);\r\n return $stmt;\r\n } catch (PDOException $e) {\r\n print $e->getMessage();\r\n }\r\n}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(RegistrationPeer::ID, $key, Criteria::EQUAL);\n\t}", "function get_by_key() {\t\n\t\t$sql = \"SELECT * \n\t\t\t\tFROM evs_database.evs_identification\n\t\t\t\tWHERE idf_id=?\";\n\t\t$this->db->query($sql, array($this->idf_id));\n\t\treturn $query;\n\t}", "public function where($key, $value = null) {\n if(!$this->where) {\n $this->where = array();\n }\n if(!is_array($key)) {\n $key = array($key => $value);\n }\n foreach($key as $k => $v) {\n $this->where[$k] = $v;\n }\n return $this;\n }", "private function getUpdateableClause () {\n\t\t$where = new Where;\n\t\tforeach ($this->primaryKeys as $key) {\n\t\t\t$value = $this->retreive($key);\n\t\t\tif ($value){\n\t\t\t\t$where->equals($key, $this->retreive($key));\n\t\t\t} else {\n\t\t\t\tthrow new \\Exception(\"Primary key (\". $key .\") has no value!\");\n\t\t\t}\n\t\t}\n\n\t\treturn $where;\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPeer::ID, $key, Criteria::EQUAL);\n }", "public function where($key, $operatorOrValue, $value=null);", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(PlanPeer::ID, $key, Criteria::EQUAL);\n }", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(InviteDetailPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(RFactureOptionsEcheancesPeer::FACT_OPT_ECHEANCE_ID, $key, Criteria::EQUAL);\n }", "protected function conditionsContainKey()\n {\n if (empty($this->where)) {\n return false;\n }\n\n $conditionKeys = array_keys($this->where);\n\n $model = $this->model;\n\n $keys = $model->hasCompositeKey() ? $model->getCompositeKey() : [$model->getKeyName()];\n\n $conditionsContainKey = count(array_intersect($conditionKeys, $keys)) === count($keys);\n\n if (!$conditionsContainKey) {\n return false;\n }\n\n $conditionValue = [];\n\n foreach ($keys as $key) {\n $condition = $this->where[$key];\n\n $value = $model->unmarshalItem(array_get($condition, 'AttributeValueList'))[0];\n\n $conditionValue[$key] = $value;\n }\n\n return $conditionValue;\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ClubMeetingsPeer::ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(LyricTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\r\n\t{\r\n\t\treturn $this->addUsingAlias(AdvertisementPeer::ID, $key, Criteria::EQUAL);\r\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ClientPrestationsPeer::CL_PREST_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(SocioTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "function where( ...$getwherekeys) { \n $whereorhaving = ($this->iswhere) ? 'WHERE' : 'HAVING';\n $this->iswhere = true;\n \n\t\tif (!empty($getwherekeys)){\n\t\t\tif (is_string($getwherekeys[0])) {\n\t\t\t\tforeach ($getwherekeys as $makearray) \n\t\t\t\t\t$wherekeys[] = explode(' ',$makearray);\t\n\t\t\t} else \n\t\t\t\t$wherekeys = $getwherekeys;\t\t\t\n\t\t} else \n\t\t\treturn '';\n\t\t\n\t\tforeach ($wherekeys as $values) {\n\t\t\t$operator[] = (isset($values[1])) ? $values[1]: '';\n\t\t\tif (!empty($values[1])){\n\t\t\t\tif (strtoupper($values[1]) == 'IN') {\n\t\t\t\t\t$wherekey[ $values[0] ] = array_slice($values,2);\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t$wherekey[ (isset($values[0])) ? $values[0] : '1' ] = (isset($values[2])) ? $values[2] : '' ;\n\t\t\t\t\t$combiner[] = (isset($values[3])) ? $values[3]: _AND;\n\t\t\t\t\t$extra[] = (isset($values[4])) ? $values[4]: null;\n\t\t\t\t}\t\t\t\t\n\t\t\t} else {\n $this->setParamaters();\n\t\t\t\treturn false;\n } \n\t\t}\n \n $where='1'; \n if (! isset($wherekey['1'])) {\n $where='';\n $i=0;\n $needtoskip=false;\n foreach($wherekey as $key=>$val) {\n $iscondition = strtoupper($operator[$i]);\n\t\t\t\t$combine = $combiner[$i];\n\t\t\t\tif ( in_array(strtoupper($combine), array( 'AND', 'OR', 'NOT', 'AND NOT' )) || isset($extra[$i])) \n\t\t\t\t\t$combinewith = (isset($extra[$i])) ? $combine : strtoupper($combine);\n\t\t\t\telse \n\t\t\t\t\t$combinewith = _AND;\n if (! in_array( $iscondition, array( '<', '>', '=', '!=', '>=', '<=', '<>', 'IN', 'LIKE', 'NOT LIKE', 'BETWEEN', 'NOT BETWEEN', 'IS', 'IS NOT' ) )) {\n $this->setParamaters();\n return false;\n } else {\n if (($iscondition=='BETWEEN') || ($iscondition=='NOT BETWEEN')) {\n\t\t\t\t\t\t$value = $this->escape($combinewith);\n\t\t\t\t\t\tif (in_array(strtoupper($extra[$i]), array( 'AND', 'OR', 'NOT', 'AND NOT' ))) \n\t\t\t\t\t\t\t$mycombinewith = strtoupper($extra[$i]);\n\t\t\t\t\t\telse \n $mycombinewith = _AND;\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" AND \"._TAG.\" $mycombinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t\t$this->setParamaters($combinewith);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' AND '\".$value.\"' $mycombinewith \";\n\t\t\t\t\t\t$combinewith = $mycombinewith;\n\t\t\t\t\t} elseif ($iscondition=='IN') {\n\t\t\t\t\t\t$value = '';\n\t\t\t\t\t\tforeach ($val as $invalues) {\n\t\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t\t$value .= _TAG.', ';\n\t\t\t\t\t\t\t\t$this->setParamaters($invalues);\n\t\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t\t$value .= \"'\".$this->escape($invalues).\"', \";\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" ( \".rtrim($value, ', ').\" ) $combinewith \";\n\t\t\t\t\t} elseif(((strtolower($val)=='null') || ($iscondition=='IS') || ($iscondition=='IS NOT'))) {\n $iscondition = (($iscondition=='IS') || ($iscondition=='IS NOT')) ? $iscondition : 'IS';\n $where.= \"$key \".$iscondition.\" NULL $combinewith \";\n } elseif((($iscondition=='LIKE') || ($iscondition=='NOT LIKE')) && ! preg_match('/[_%?]/',$val)) return false;\n else {\n\t\t\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.' '._TAG.\" $combinewith \";\n\t\t\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t\t\t} else \n\t\t\t\t\t\t\t$where.= \"$key \".$iscondition.\" '\".$this->escape($val).\"' $combinewith \";\n\t\t\t\t\t}\n $i++;\n }\n }\n $where = rtrim($where, \" $combinewith \");\n }\n\t\t\n if (($this->getPrepare()) && !empty($this->getParamaters()) && ($where!='1'))\n\t\t\treturn \" $whereorhaving \".$where.' ';\n\t\telse\n\t\t\treturn ($where!='1') ? \" $whereorhaving \".$where.' ' : ' ' ;\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(cTableActionsPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(sfGuardUserPeer::ID, $key, Criteria::EQUAL);\n }", "public static function key_filter($key_filter) {\n\t\t$collection = new static::$_collection_class();\n\t\t$mapred = new \\RiakMapReduce(static::client());\n\t\t$mapred->inputs = array(\n\t\t\t'bucket' => static::$_bucket_name,\n\t\t\t'key_filters' => array($key_filter)\n\t\t);\n\t\t$links = $mapred->run();\n\t\tforeach($links as $link) {\n\t\t\t$r = $link->get();\n\t\t\t$collection->push(static::from($r));\n\t\t}\n\t\treturn $collection;\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(MenuPersonaPeer::ID_MENU_PERSONA, $key, Criteria::EQUAL);\n\t}", "function getListFilter($col,$key) {\n\t\t\tswitch($col) {\n\t\t\t\tcase 'periode': return \"periode = '$key'\";\n\t\t\t\tcase 'sistemkuliah': return \"sistemkuliah = '$key'\";\n\t\t\t\tcase 'unit':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('unit'));\n\t\t\t\t\t\n\t\t\t\t\t$row = mUnit::getData($conn,$key);\n\t\t\t\t\t\n\t\t\t\t\treturn \"u.infoleft >= \".(int)$row['infoleft'].\" and u.inforight <= \".(int)$row['inforight'];\n\t\t\t\tcase 'basiskampus':\n\t\t\t\t\tglobal $conn, $conf;\n\t\t\t\t\trequire_once(Route::getModelPath('sistemkuliah'));\n\t\t\t\t\t$sistem = mSistemkuliah::getIdByBasisKampus($conn,modul::getBasis(),modul::getKampus());\n\t\t\t\t\treturn \" sistemkuliah in ('\".implode(\"','\",$sistem).\"') \";\n\t\t\t\t\t\n\t\t\t}\n\t\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(UserPeer::UID, $key, Criteria::EQUAL);\n\t}", "protected function addKeyCond()\n {\n $args = func_get_args();\n\n $keyCount = count($this->keys);\n $argCount = count($args);\n\n for ($i = 0; $i < $keyCount && $i < $argCount; $i++) {\n $this->addCond($this->keys[i], $args[$i]);\n }\n\n return $this;\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(ProveedormarcaPeer::IDPROVEEDORMARCA, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(CardPeer::ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(MateriaTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(ForumPostPeer::POST_ID, $key, Criteria::EQUAL);\n\t}", "protected function removeWhere($query, $key)\n {\n unset($query->wheres[$key]);\n\n $query->wheres = array_values($query->wheres);\n }", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(HomeCategoryPeer::HC_ID, $key, Criteria::EQUAL);\n\t}", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(AlumnoTableMap::COL_ID, $key, Criteria::EQUAL);\n }", "public function filterByPrimaryKey($key)\n {\n\n return $this->addUsingAlias(SchoolPeer::ID, $key, Criteria::EQUAL);\n }" ]
[ "0.7355665", "0.6769948", "0.67262805", "0.66612315", "0.6658669", "0.66536856", "0.6640671", "0.66101164", "0.66101164", "0.66101164", "0.6588875", "0.65237576", "0.64684874", "0.6433477", "0.6426212", "0.6414714", "0.6414714", "0.6414714", "0.6414714", "0.6414714", "0.6414714", "0.6311936", "0.6301155", "0.6262776", "0.62621254", "0.6255772", "0.6242997", "0.6205215", "0.62048966", "0.6178921", "0.6177239", "0.6177239", "0.61676335", "0.61673003", "0.615523", "0.6149399", "0.6124807", "0.61138695", "0.6089357", "0.60847646", "0.6083943", "0.6052799", "0.6033156", "0.6017967", "0.5996952", "0.5967226", "0.5966971", "0.59600085", "0.59458095", "0.59437245", "0.5943287", "0.5941085", "0.59302163", "0.5926357", "0.5921331", "0.5921239", "0.59152776", "0.5890502", "0.5884112", "0.5882515", "0.58581203", "0.58576864", "0.5851437", "0.5848899", "0.5846182", "0.58393025", "0.5830709", "0.5819504", "0.58126193", "0.58087295", "0.58044213", "0.58033866", "0.5782637", "0.57695615", "0.57637143", "0.57637143", "0.5751562", "0.5751498", "0.5750059", "0.5747979", "0.5732661", "0.5728971", "0.5726844", "0.5726437", "0.5716902", "0.5708665", "0.57020116", "0.56998533", "0.56933916", "0.5665151", "0.5664962", "0.56644285", "0.56607985", "0.5656034", "0.5654684", "0.5652462", "0.5645831", "0.5628529", "0.5627253", "0.56244636" ]
0.6470484
12
Add key value to URL
function KeyUrl($url, $parm = "") { $sUrl = $url . "?"; if ($parm <> "") $sUrl .= $parm . "&"; if (!is_null($this->gjd_id->CurrentValue)) { $sUrl .= "gjd_id=" . urlencode($this->gjd_id->CurrentValue); } else { return "javascript:ew_Alert(ewLanguage.Phrase('InvalidRecord'));"; } return $sUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addUrlParameter($key, $value)\n {\n $this->urlParameters[$key] = $value;\n }", "function add_query( $key, $value ) {\r\n\t\t\t$this->current_url = add_query_arg( $key, $value, $this->get_current_url() );\r\n\t\t\treturn $this->current_url;\r\n\t\t}", "public function setStatusUrlParam($key, $value)\n {\n $this->_urlParams[$key] = $value;\n }", "function KeyUrl($url, $parm = \"\") {\n\t\t$sUrl = $url . \"?\";\n\t\tif ($parm <> \"\") $sUrl .= $parm . \"&\";\n\t\tif (!is_null($this->IDXDAFTAR->CurrentValue)) {\n\t\t\t$sUrl .= \"IDXDAFTAR=\" . urlencode($this->IDXDAFTAR->CurrentValue);\n\t\t} else {\n\t\t\treturn \"javascript:ew_Alert(ewLanguage.Phrase('InvalidRecord'));\";\n\t\t}\n\t\treturn $sUrl;\n\t}", "public function addQueryString($key, $data) {\n $this->query_string_array[$key] = $data;\n }", "public function query_add($key, $value) {\n\t\t\treturn \\uri\\query::add($this->object, $key, $value);\n\t\t}", "function KeyUrl($url, $parm = \"\") {\n\t\t$sUrl = $url . \"?\";\n\t\tif ($parm <> \"\") $sUrl .= $parm . \"&\";\n\t\tif (!is_null($this->rid->CurrentValue)) {\n\t\t\t$sUrl .= \"rid=\" . urlencode($this->rid->CurrentValue);\n\t\t} else {\n\t\t\treturn \"javascript:ew_Alert(ewLanguage.Phrase('InvalidRecord'));\";\n\t\t}\n\t\treturn $sUrl;\n\t}", "public function initUrlKeys();", "public function addQuerystringParameter($key, $value)\n {\n $this->querystringParams[$key] = $value;\n }", "public function append($key, $value) {}", "private function add($key, array $value)\n {\n $method = $value['on'];\n unset($value['on']);\n $this->routes[] = [$method, $key, $value];\n }", "function KeyUrl($url, $parm = \"\") {\n\t\t$sUrl = $url . \"?\";\n\t\tif ($parm <> \"\") $sUrl .= $parm . \"&\";\n\t\tif (!is_null($this->C_EVENT_ID->CurrentValue)) {\n\t\t\t$sUrl .= \"C_EVENT_ID=\" . urlencode($this->C_EVENT_ID->CurrentValue);\n\t\t} else {\n\t\t\treturn \"javascript:alert(ewLanguage.Phrase(\\\"InvalidRecord\\\"));\";\n\t\t}\n\t\treturn $sUrl;\n\t}", "protected function set_url_this_add($val){ $this->input ['add_url'] = $val ; }", "public static function add(&$object, $key, $value) {\n\t\t\t$qarray = \\uri\\generate::query_array($object);\n\t\t\tif (!isset($qarray[$key])) {\n\t\t\t\t$qarray[$key] = $value;\n\t\t\t\t\\uri\\actions::modify($object, 'replace', 'QUERY', self::build_query($qarray));\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\treturn FALSE;\n\t\t}", "abstract public function get_url_update();", "public function append($key, $value = null);", "public function keyUrl($url, $parm = \"\")\n\t{\n\t\t$url = $url . \"?\";\n\t\tif ($parm != \"\")\n\t\t\t$url .= $parm . \"&\";\n\t\tif ($this->IncomeCode->CurrentValue != NULL) {\n\t\t\t$url .= \"IncomeCode=\" . urlencode($this->IncomeCode->CurrentValue);\n\t\t} else {\n\t\t\treturn \"javascript:ew.alert(ew.language.phrase('InvalidRecord'));\";\n\t\t}\n\t\treturn $url;\n\t}", "public function addItem($key, $value);", "public function addUrl() {\r\n\t\t$current = $this->params['url']['url'];\r\n\t\t$accept = array('show', 'admin_show', 'admin_index');\r\n\t\tif(in_array($this->action, $accept)) {\r\n\t\t\tif ($this->Session->read('history.current') != $current){\r\n\t\t\t\t//$this->Session->write('history.previous', $this->Session->read('history.current'))->write('history.current', $current);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function keyUrl($url, $parm = \"\")\n\t{\n\t\t$url = $url . \"?\";\n\t\tif ($parm != \"\")\n\t\t\t$url .= $parm . \"&\";\n\t\tif ($this->id->CurrentValue != NULL) {\n\t\t\t$url .= \"id=\" . urlencode($this->id->CurrentValue);\n\t\t} else {\n\t\t\treturn \"javascript:ew.alert(ew.language.phrase('InvalidRecord'));\";\n\t\t}\n\t\treturn $url;\n\t}", "function add_param($link, $param_name, $value) {\n\t$newlink = \"\";\n\t//verifica se ja existe ?\n\tif(stripos($link,\"?\")) {\n\t\t$newlink = $link.\"&\".$param_name.\"=\".$value;\n\t} else {\n\t\t$newlink = $link.\"?\".$param_name.\"=\".$value;\n\t}\n\treturn $newlink;\n}", "static function addTokenToURL($url) {\n $token = Security::generateToken();\n new Cache(\"token\", $token);\n if (strpos($url, '?') !== false) {\n $url .= \"&token=$token\";\n } else {\n $url .= \"?token=$token\";\n }\n return $url;\n }", "public function addParam($key, $value)\n {\n $this->_params[$key] = $value;\n }", "public function query_add($key, $value) {\n\t\t\t\\uri\\query::add($this->object, $key, $value);\n\t\t\treturn $this;\n\t\t}", "private function saveGoogleResult($url,$key){\n\t\tpreg_match('/\\\"(.*)\\\"/',$url,$realUrl);\n\t\tif(isset($realUrl[1])){\n\t\t\t$newUrl = $realUrl[1];\n\t\t\tSearch::insert(['key' => $key,'url'=>$newUrl,'result'=>strip_tags($url)]);\n\t\t}\n\t}", "function wpmu_admin_redirect_add_updated_param($url = '')\n {\n }", "public static function addURL($urlname,$controller,$action) {\n\t\tself::$url[$urlname] = array(\"controller\" => $controller, \"action\" => $action);\n\t}", "public function add($url)\n {\n $this->$url[] = $url;\n }", "public function set_query_arg($key, $value)\n {\n }", "function publishs_url()\r\n {\r\n \t$query = '';\r\n \t$page = 'partlist.php';\r\n if(isset($_GET[\"key\"])){\r\n \t \t$value = trim($_GET[\"key\"]);\r\n \t \tif($value != \"\"){\r\n\t \t $query = '?key='.$value ; \t \t \t\r\n \t \t}\r\n \t}\r\n\t$url = $page.$query;\r\n\techo $url;\r\n }", "public function getUrl(string $sKey = null): string;", "private function addUrlData($url, array $data) {\n // Do nothing, if there is no url data\n if (empty($data)) {\n return $url;\n }\n\n if (strpos($url, '?') !== false) {\n throw new \\InvalidArgumentException();\n }\n\n $parts[] = trim($url, '/');\n foreach ($data as $key => $value) {\n if ($value) {\n $parts[] = urlencode($key) .'/' . urlencode($value);\n } else {\n $parts[] = urlencode($key);\n }\n }\n return implode('/', $parts);\n }", "public function setByKey($field, $key)\n {\n \n if (isset(static::$links[$field])) {\n \n $this->data[$field] = $this->orm->getIdByKey(\n SFormatStrings::subToCamelCase(static::$links[$field]),\n $key\n );\n \n } else {\n throw new LibDb_Exception('Invalid Route '.$field);\n }\n \n }", "function url_add_locale(string $url, string $locale):string\n{\n if (strpos($url, '?') !== false) {\n $url .= '&';\n } else {\n $url .= '?';\n }\n\n return \"{$url}hl={$locale}\";\n}", "public function url(string $key, bool $mapped = true): self\n {\n return $this\n ->withOptions(['url' => $key])\n ->setProp('url', $key, $mapped);\n }", "function tck_add_new_link( $return, $url, $keyword, $title ) {\n if ( $return['status'] == 'success' ) {\n $fkeyword = tck_get_keyword($keyword);\n $return['url']['keyword'] = $fkeyword;\n $return['shorturl'] = yourls_site_url(false) . '/' . $fkeyword;\n }\n \n return $return;\n }", "public function query_replace($key, $value) {\n\t\t\t\\uri\\query::replace($this->object, $key, $value);\n\t\t}", "public function add(string $key, Link $item)\n {\n $this->links[$key] = $item;\n }", "private function addKeyword()\n {\n // get demanded link data\n $this->model->action('link','addKeyword', \n array('id_key' => (int)$_REQUEST['id_key'],\n 'id_link' => (int)$_REQUEST['id_link']));\n }", "public static function setQueryParam(string $key, string $value)\n {\n $queryParams = self::$__query ? explode('&', self::$__query) : []; \n array_push($queryParams, $key . '=' . $value); \n self::$__query = implode('&', $queryParams); \n }", "private function updateUrl(){\n $this->url->status_code = $this->response['status_code'];\n $this->url->reason_phrase = $this->response['reason_phrase'];\n $this->url->location = $this->response['location'];\n $this->url->content_type = $this->response['content_type'];\n $this->url->content_length = $this->response['content_length'];\n $this->url->save();\n }", "public function entityUrl(string $key): self\n {\n return $this->withOptions(['url' => $key]);\n }", "function createURL($key_word, $tipo_pasto){\r\n $url = \"http://localhost:5028/rec/?q=\" . $key_word .'&';\r\n\r\n/*\r\n if($tipo_dieta == 'balanced')\r\n $url = $url . \"diet=balanced&\";\r\n if($tipo_dieta == 'high-protein')\r\n $url = $url . \"diet=high-protein&\";\r\n if($tipo_dieta == 'high-fiber')\r\n $url = $url . \"diet=high-fiber&\";\r\n if($tipo_dieta == 'low-carb')\r\n $url = $url . \"diet=low-carb&\";\r\n if($tipo_dieta == 'low-fat')\r\n $url = $url . \"diet=low-fat&\";\r\n if($tipo_dieta == 'low-sodium')\r\n $url = $url . \"diet=low-sodium&\";\r\n\r\n if($etichette_salutari == 'vegan')\r\n $url = $url . \"health=vegan&\" ;\r\n if($etichette_salutari == 'vegetarian')\r\n $url = $url . \"health=vegetarian&\" ;\r\n if($etichette_salutari == 'egg-free')\r\n $url = $url . \"health=egg-free&\" ;\r\n if($etichette_salutari == 'fish-free')\r\n $url = $url . \"health=fish-free&\" ;\r\n if($etichette_salutari == 'gluten-free')\r\n $url = $url . \"health=gluten-free&\" ;\r\n\r\n if($tipo_pasto == 'Breakfast')\r\n $url = $url.'mealType=Breakfast&';\r\n if($tipo_pasto == 'Launch')\r\n $url = $url.'mealType=Launch&';\r\n if($tipo_pasto == 'Dinner')\r\n $url = $url.'mealType=Dinner&';\r\n if($tipo_pasto == 'Sneak')\r\n $url = $url.'mealType=Sneak&';\r\n if($tipo_pasto == 'Teatime')\r\n $url = $url.'mealType=Teatime&';\r\n*/ \r\n if($tipo_pasto == 'Starter')\r\n \t$url = $url.'dishType=Starter&';\r\n if($tipo_pasto == 'Biscuits and cookies')\r\n $url = $url.'dishType=Biscuitsandcookies&';\r\n if($tipo_pasto == 'Bread')\r\n $url = $url.'dishType=Bread&';\r\n if($tipo_pasto == 'Cereals')\r\n $url = $url.'dishType=Cereals&';\r\n if($tipo_pasto == 'Condimentsandsauces')\r\n $url = $url.'dishType=Condimentsandsauces&';\r\n if($tipo_pasto == 'Desserts')\r\n $url = $url.'dishType=Desserts&';\r\n if($tipo_pasto == 'Egg')\r\n $url = $url.'dishType=Egg&';\r\n if($tipo_pasto == 'Main course')\r\n $url = $url.'dishType=Maincourse&';\r\n if($tipo_pasto == 'Omelet')\r\n $url = $url.'dishType=Omelet&';\r\n if($tipo_pasto == 'Pancake')\r\n $url = $url.'dishType=Pancake&';\r\n if($tipo_pasto == 'Preps')\r\n $url = $url.'dishType=Preps&';\r\n if($tipo_pasto == 'Preserve')\r\n $url = $url.'dishType=Preserve&';\r\n if($tipo_pasto == 'Salad')\r\n $url = $url.'dishType=Salad&';\r\n if($tipo_pasto == 'Sandwiches')\r\n $url = $url.'dishType=Sandwiches&';\r\n if($tipo_pasto == 'Soup')\r\n $url = $url.'dishType=Soup&';\r\n \r\n \r\n $url = $url . \"n=10&lang=en\";\r\n\r\n return $url;\r\n\r\n}", "private function getURLCustom($path){\n return App::$apiURL . $path . $this->getAPIParam();\n }", "function extend_url(&$url, $append)\n{\n if (($append != '') && (strpos($url, '?' . $append) === false) && (strpos($url, '&' . $append) === false)) {\n $url .= ((strpos($url, '?') === false) ? '?' : '&') . $append;\n }\n}", "function modify_url($mod) { \n $url = \"http://\" .$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; \n $query = explode(\"&\", $_SERVER['QUERY_STRING']); \n // modify/delete data \n foreach($query as $q) { \n @list($key, $value) = explode(\"=\", $q); \n if(array_key_exists($key, $mod)) \n { \n if($mod[$key]) \n { \n $url = preg_replace('/' .$key. '=' .$value. '/', $key. '=' .$mod[$key], $url); \n } \n else \n { \n $url = preg_replace('/&?'.$key.'='.$value.'/', '', $url); \n } \n } \n } \n // add new data \n foreach($mod as $key => $value) { \n if($value && !preg_match('/' .$key. '=/', $url)) \n { \n $url .= '&' .$key. '=' .$value; \n } \n }\n \n \tfor ($i=0; $_SERVER['QUERY_STRING'] == \"\" && $i != 1; $i++)\n \t$url = str_replace(\"&\", \"?\", $url);\n \n \n return $url; \n}", "public function addAt($key, $value);", "private function makeUrl($appendUrl) {\n \n return $this->bitreserveUrl . $appendUrl;\n }", "public function addReturnUrl($url = null)\n {\n if (!$url) {\n $url = $this -> get('request') -> url;\n }\n \n $url = (string) $url;\n $key = substr(md5($url), 0, 10);\n \n $this -> get('session') -> getBag('returnUrls', ['max'=>20]) -> set($key, $url);\n \n return $key;\n }", "public function add($key, $route){\n $this->routes[$key] = $route;\n }", "function url($url){\n $url=ereg_replace(\"[&?]+$\", \"\", $url);\n \n $url .= ( strpos($url, \"?\") != false ? \"&\" : \"?\" ).urlencode($this->name).\"=\".$this->id;\n \n return $url;\n }", "public function append($value, $key = null) \n {\n $key ? $this->pushKey($key, $value) : $this->push($value);\n }", "public function _processUrlKeys()\n {\n return true;\n }", "private function append($key, $val)\n {\n $this->_data[$key] = sprintf(\"%s%s%s\", $this->_data[$key], $this->_join, $val);\n }", "public function addPostData(string $key, string $value)\n {\n $this->postData[$key] = $value;\n }", "public function getPostURL($id, $key = '')\n {\n $url = Pal::getHostURL() . $id;\n if ($key !== '') {\n $url .= '?key=' . $key;\n }\n return $url;\n }", "function url_merge($url, $name = null, $val = null, $ignore = null){\n $u = $url;\n $r = [];\n $f = explode('?',$url);\n $q = '';\n $u = $f[0];\n if(count($f)>1){\n $q = $f[1];\n }\n if($name){\n if(is_string($name)) $r[$name] = $val;\n elseif(is_array($name)){\n foreach($name as $n => $v){\n if(is_string($n)){\n $r[$n] = $v;\n }\n }\n }\n \n }\n if($q || $r){\n $u.='?'.parse_query_string($q, $r, $ignore);\n }\n return $u;\n }", "public function buildDocLinkToKey($key) {\n\t\treturn $this->getDocBaseUrl() . '/server/15/go.php?to=' . $key;\n\t}", "function get_value_uri($uri, $key){\n $find = $key.'=';\n $v_pos = strpos($uri, $find);\n $v_p = $v_pos;\n if($v_pos!==false){\n $v_pos += strlen($find);\n $v_tmp = substr($uri,$v_pos);\n $v_pos = strpos($v_tmp,'&');\n if($v_pos>0){\n return substr($v_tmp,0,$v_pos);\n }else{\n return $v_tmp;\n }\n }else return '';\n}", "public function add_header($key, $value)\n {\n }", "function pmpromrss_url($url, $user_id = NULL)\r\n{\r\n\t$key = pmpromrss_getMemberKey($user_id);\r\n\t\r\n\treturn add_query_arg(\"memberkey\", $key, $url);\r\n}", "function setUrl($url);", "public static function parameter(string $key, $value): void\n {\n if (!static::hasNewRelic()) {\n return;\n }\n\n if (!is_scalar($value)) {\n $value = json_encode($value);\n }\n\n newrelic_add_custom_parameter($key, $value);\n }", "private function _url($par = array()) {\n\t\t$get = $_GET;\n\t\t\n\t\tforeach ((array) $par AS $key => $val) { //overide value\n\t\t\tif ($key == 'path') //if path, encode\n\t\t\t\t$get['path'] = \\Crypt::encrypt($val);\n\t\t\telse\n\t\t\t\t$get[$key] = $val;\n\t\t}\n\t\t\n\t\t$url = '//';\n\t\t\n\t\t$url .= $this->_sanitize(g($_SERVER, 'HTTP_HOST').'/'.strtok(g($_SERVER, 'REQUEST_URI'), '?'));\n\t\t\n\t\treturn $url.'?'.http_build_query($get);\n\t}", "public function addParam (string $key, $value)\n {\n if (!$this->paramExists($key))\n $this->params[$key] = $value;\n\n $this->save();\n\n return $this;\n }", "protected function _build_url() {\n\n $params = array_filter([\n 'name' => $this->_names,\n 'country_id' => $this->_country_id,\n 'language_id' => $this->_language_id,\n ], function($v) {\n if (!is_array($v)) {\n return strlen(trim($v)) > 0;\n } else {\n return $v;\n }\n });\n //Only pass apikey if there is one set\n if ($api_key = $this->get_api_key()) {\n $params['apikey'] = trim($api_key);\n }\n\n return self::BASE . '?' . http_build_query($params);\n }", "public function addMeta(string $key, $value): void\n {\n $this->addMetaHook(function (RequestDetails $requestDetails) use ($key, $value) {\n return [\n 'key' => $key,\n 'value' => $value,\n ];\n });\n }", "function setApiUrl($value)\n {\n $this->_props['ApiUrl'] = $value;\n }", "public function getRequestParameter($key) {\n $val = $this->getUriParameter($key);\n return str_replace('+',' ',$val);\n }", "public function addSpecial(string $key, $value): void {\n\t\t$this->m_specials[$key] = $value;\n\t}", "private function build_cache_key_for_url( $url ) {\n\t\treturn 'g_url_details_response_' . md5( $url );\n\t}", "public function setUrl($url)\r\n {\r\n $this->path['url'] = $url;\r\n }", "public function addTranslation($key, $value)\n {\n $this->translations[] = array(\n 'key' => $key,\n 'value' => $value,\n 'link' => $this->getLink($key)\n );\n }", "private function generateUrl(string $append): string\n {\n return $this->baseUrl . '/services/data/' . $this->clientConfig->getVersion() . '/' . $append;\n }", "function update_home_siteurl($old_value, $value)\n {\n }", "public function append($key, $value)\n {\n // should failed.\n $sent = $this->_send(array(\n 'opcode' => 0x0e,\n 'key' => $key,\n 'value' => $value,\n ));\n $data = $this->_recv();\n if ($data['status'] == 0) {\n return TRUE;\n }\n\n return FALSE;\n }", "protected function get_url_this_add(){ return $this->input ['add_url'] ;}", "public function addBodyParameter($key, $value)\n {\n $this->bodyParams[$key] = $value;\n }", "public function ov_url($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('url', $name, $value, true, $args);\n }", "public function formatUrlKey($str)\n {\n return $this->filter->translitUrl($str);\n }", "public function push(string $key,$value){\n // TODO: Implement push() method.\n }", "public function paramFromRoute($key) {\n $val = $this->params()->fromRoute($key);\n return str_replace('+',' ',$val);\n }", "function am2_append_query_string( $url, $post, $leavename ) {\n\t\n\t\n\t$vanity_urls = get_option('am2_vanity_urls'); \n\tif(!empty($vanity_urls[$post->post_type.\"_\".$post->ID]['url'])){\n\t\t$url = site_url().'/'.$vanity_urls[$post->post_type.\"_\".$post->ID]['url'];\n\t}\n return $url; \n\t\n}", "public function putToHeader($key, $value): void;", "public function add_to_route($title,$item) {\n\t\tif (is_string($item)) $item = array('url' => $item);\n\t\t$this->route_extra[] = array($title,$item);\n\t}", "function _http_inject_url($url, array $data) {\n // Parse the url\n $url_parts = parse_url($url);\n\n // Explicitly parse the query part as well\n if (isset($url_parts['query']))\n parse_str($url_parts['query'], $url_query);\n else\n $url_query = array();\n\n // Splice in the token authentication\n $url_query = array_merge($data, $url_query);\n\n // Rebuild the url\n $url_parts['query'] = http_build_query($url_query);\n return _http_build_url($url_parts);\n}", "public function addRequestEntry(RequestMetaData $entry) {\n\t\t$this->urls[$entry->method][$entry->url] = $entry;\n\t}", "function url($url, $locale_id)\r\n\t{\r\n\t\tif ($locale_id != '')\r\n\t\t{\r\n\t\t\t$url = preg_replace(\"/[&?]\" . $this->url_prefix . \"=([0-9a-z]+)/\", '', $url);\r\n\t\t\t$url = preg_replace(\"/[&?]+$/\", '', $url);\r\n\t\t\t$url .= ((strpos($url, \"?\") != false) ? \"&\" : \"?\") . $this->url_prefix . '=' . $locale_id;\r\n\t\t}\r\n\t\treturn $url;\r\n\t}", "public function add($key, &$content) {\n\t\tif (_DEBUG && $this->has($key)) {\n\t\t\tDebug::getInstance()->addError('The content [dir:' . $this->_dir . ', key:' . $key . '] already exist');\n\t\t}\n\t\tFileUtil::writeFile($content, $this->_dir . $key);\n\t}", "function writeUrl() {\n\n }", "public function formatUrlKey(string $str): string\n {\n return $this->filter->translitUrl($str);\n }", "function item_put($key = null)\n {\n $incoming = key($this->put());\n // decode record before anything, as assoc array\n $record = json_decode($incoming,true);\n // item ID specified as segment or query parameter\n if (($key == null) || ($key == 'id'))\n {\n $key = $this->get('id');\n $record = array_merge(array('id' => $key), $record);\n }\n $this->crud_put($record);\n }", "function put_my_url(){\n\treturn (get_home_url());\n}", "public function uriKey(): string;", "public function setOpt($key, $value)\n {\n curl_setopt($this->curl, $key, $value);\n }", "public function setURIData(string $name, string $value) {\n $this->URIData[$name] = $value;\n }", "protected function pushKey($key, $value)\n {\n $this->items[$key] = $this->set($value);\n }", "public function addUrl(SiteMapEntryObject $siteMapEntryObject){\n array_push($this->urls, $siteMapEntryObject);\n }", "public function redirecturl()\n\t\t\t{\n\t\t\t\tif($this->fields_arr['pcakey'])\n\t\t\t\t Redirect2URL($_SESSION['pcakey'][$this->fields_arr['pcakey']]);\n\t\t\t}", "public function addHeader($key, $value, $type)\n {\n }" ]
[ "0.7371029", "0.68472135", "0.6328753", "0.6219066", "0.6194674", "0.6182717", "0.61772454", "0.6128336", "0.6058829", "0.59915537", "0.5973594", "0.5933773", "0.58673656", "0.58575195", "0.5834041", "0.5831964", "0.5825351", "0.58100396", "0.5768523", "0.5733558", "0.57259554", "0.56559837", "0.5629262", "0.5627421", "0.55886334", "0.55428064", "0.55419046", "0.55364245", "0.5520277", "0.55176955", "0.55125546", "0.5487231", "0.548514", "0.5474866", "0.545044", "0.54499024", "0.54373705", "0.54178727", "0.5410058", "0.5400574", "0.5398405", "0.5389729", "0.53764933", "0.53610545", "0.5355911", "0.534838", "0.53438324", "0.533977", "0.5338116", "0.53359807", "0.53316724", "0.5328477", "0.5316758", "0.52990437", "0.52985185", "0.5291617", "0.52893406", "0.52625173", "0.52592915", "0.52409625", "0.5237852", "0.5232536", "0.52306074", "0.5221967", "0.52193624", "0.5209512", "0.5205901", "0.52034897", "0.5198385", "0.51978797", "0.51976275", "0.517935", "0.51770675", "0.5174915", "0.5172128", "0.51668745", "0.5165301", "0.51589215", "0.5153761", "0.51527643", "0.51513314", "0.51462084", "0.51451284", "0.51435035", "0.5143193", "0.5143179", "0.51232105", "0.51218724", "0.51186305", "0.5118439", "0.51119524", "0.51105684", "0.51083684", "0.5101693", "0.5094346", "0.5093897", "0.50915617", "0.50902426", "0.5088545", "0.5083069" ]
0.616574
7
Get record keys from $_POST/$_GET/$_SESSION
function GetRecordKeys() { global $EW_COMPOSITE_KEY_SEPARATOR; $arKeys = array(); $arKey = array(); if (isset($_POST["key_m"])) { $arKeys = ew_StripSlashes($_POST["key_m"]); $cnt = count($arKeys); } elseif (isset($_GET["key_m"])) { $arKeys = ew_StripSlashes($_GET["key_m"]); $cnt = count($arKeys); } elseif (!empty($_GET) || !empty($_POST)) { $isPost = ew_IsHttpPost(); if ($isPost && isset($_POST["gjd_id"])) $arKeys[] = ew_StripSlashes($_POST["gjd_id"]); elseif (isset($_GET["gjd_id"])) $arKeys[] = ew_StripSlashes($_GET["gjd_id"]); else $arKeys = NULL; // Do not setup //return $arKeys; // Do not return yet, so the values will also be checked by the following code } // Check keys $ar = array(); if (is_array($arKeys)) { foreach ($arKeys as $key) { if (!is_numeric($key)) continue; $ar[] = $key; } } return $ar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = $_POST[\"key_m\"];\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = $_GET[\"key_m\"];\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsPost();\n\t\t\tif ($isPost && isset($_POST[\"rid\"]))\n\t\t\t\t$arKeys[] = $_POST[\"rid\"];\n\t\t\telseif (isset($_GET[\"rid\"]))\n\t\t\t\t$arKeys[] = $_GET[\"rid\"];\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "function GetRecordKeys() {\n\t\tglobal $EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$arKeys = array();\n\t\t$arKey = array();\n\t\tif (isset($_POST[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_POST[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (isset($_GET[\"key_m\"])) {\n\t\t\t$arKeys = ew_StripSlashes($_GET[\"key_m\"]);\n\t\t\t$cnt = count($arKeys);\n\t\t} elseif (!empty($_GET) || !empty($_POST)) {\n\t\t\t$isPost = ew_IsHttpPost();\n\t\t\tif ($isPost && isset($_POST[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_POST[\"IDXDAFTAR\"]);\n\t\t\telseif (isset($_GET[\"IDXDAFTAR\"]))\n\t\t\t\t$arKeys[] = ew_StripSlashes($_GET[\"IDXDAFTAR\"]);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = array();\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"id\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"id\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function getRecordKeys()\n\t{\n\t\t$arKeys = [];\n\t\t$arKey = [];\n\t\tif (Param(\"key_m\") !== NULL) {\n\t\t\t$arKeys = Param(\"key_m\");\n\t\t\t$cnt = count($arKeys);\n\t\t} else {\n\t\t\tif (Param(\"IncomeCode\") !== NULL)\n\t\t\t\t$arKeys[] = Param(\"IncomeCode\");\n\t\t\telseif (IsApi() && Key(0) !== NULL)\n\t\t\t\t$arKeys[] = Key(0);\n\t\t\telseif (IsApi() && Route(2) !== NULL)\n\t\t\t\t$arKeys[] = Route(2);\n\t\t\telse\n\t\t\t\t$arKeys = NULL; // Do not setup\n\n\t\t\t//return $arKeys; // Do not return yet, so the values will also be checked by the following code\n\t\t}\n\n\t\t// Check keys\n\t\t$ar = [];\n\t\tif (is_array($arKeys)) {\n\t\t\tforeach ($arKeys as $key) {\n\t\t\t\tif (!is_numeric($key))\n\t\t\t\t\tcontinue;\n\t\t\t\t$ar[] = $key;\n\t\t\t}\n\t\t}\n\t\treturn $ar;\n\t}", "public function retrieveValuesFromSession()\n\t{\n\t\tif (isset($_SESSION['stored_forms'][$this->name.$this->target_type]))\n\t\t\treturn $_SESSION['stored_forms'][$this->name.$this->target_type];\n\t\telse\n\t\t\treturn array();\n\t}", "static function getKeys();", "function save_input_data()\r\n{\r\n foreach ($_POST as $key => $value) {//key : name, password... and value : field value\r\n //save datas in an array\r\n if (strpos($key, 'password') === false) {//in key : find password. if false : value not found\r\n $_SESSION['input'][$key] = $value;\r\n }\r\n }\r\n}", "abstract public function getKeys();", "function get($key)\n {\n if($this->isStarted())\n {\n if(isset($this->keyvalList[$key]))\n return ($this->keyvalList[$key]);\n elseif($key=='__ASC_FORM_ID__')\n\t\t\t\t_fatal(array(\"CODE\"=>\"SESSION_001\",\"MESSAGE\"=>\"Access denied due to security reason\"));\n// die('Access denied due to security reason');\n else\n\t\t\t\t_fatal(array(\"CODE\"=>\"SESSION_002\",\"MESSAGE\"=>\"Session::get() !isset(\\$this->keyvalList[$key])\"));\n// die(\"Session::get() !isset(\\$this->keyvalList[$key])\");\n }\n else\n\t\t\t\t_fatal(array(\"CODE\"=>\"SESSION_003\",\"MESSAGE\"=>\"Session::getKey() !\\$this->isStarted()\"));\n// die(\"Session::getKey() !\\$this->isStarted()\");\n }", "function get_keys($tree=false)\n\t{\n\t\tif(ACCESS_MODEL == \"roles\") {\n\t\t\treturn array_keys($GLOBALS['ACCESS_KEYS']);\n\t\t} else if(ACCESS_MODEL == \"discrete\") {\n\t\t\t$ret = array();\n\t\t\tforeach($GLOBALS['ACCESS_KEYS'] as $k=>$v) {\n\t\t\t\tif($tree) {\n\t\t\t\t\t$ret[] = $k;\n\t\t\t\t\tforeach($v as $vv) $ret[] = \"-- $vv\";\n\t\t\t\t} else {\n\t\t\t\t\tforeach($v as $vv) $ret[] = $vv;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $ret;\n\t\t}\n\t}", "public function getKeys();", "public function getStoredForms() {\n $stored = array();\n foreach ($this->getSessionNamespace() as $key => $value) {\n $stored[] = $key;\n }\n\n return $stored;\n }", "public function getKeys() {\n return array_keys($this->data);\n }", "public function get_ids()\n\t{\n\t\tif (isset($_SESSION['cart']))\n\t\t{\n\t\t\treturn array_keys($_SESSION['cart']);\n\t\t}\n\t\treturn NULL;\n\t}", "public function getStoredForms()\n {\n $stored = array();\n foreach ($this->getSessionNamespace() as $key => $value) {\n $stored[] = $key;\n }\n \n return $stored;\n }", "public function keys()\n {\n return array_keys($this->parameters);\n }", "public function getSessionData()\n {\n return $this->getSession()->get(\"FormInfo.{$this->FormName()}.data\");\n }", "function getKeys(){\n\t\ttry{\n\t\t\t$db = getConnection();\n\n\t\t\t$sql = \"SELECT * FROM network_keys WHERE name = ?\";\n\t\t\t$stmt = $db->prepare($sql);\n\t\t\t$stmt->execute(array(\"llsec\"));\n\t\t\t$llsec = $stmt->fetch()['network_key'];\n\n\t\t\t$sql = \"SELECT * FROM network_keys WHERE name = ?\";\n\t\t\t$stmt = $db->prepare($sql);\n\t\t\t$stmt->execute(array(\"dtls\"));\n\t\t\t$dtls = $stmt->fetch()['network_key'];\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t echo $e->getMessage();\n\t }\n\t return array($llsec, $dtls);\n\t}", "public function getKeys() {}", "public function getMetaForignKeys(){\n $stmt = $this->query(self::META_FKEYS_SQL);\n if ($stmt === false){\n return array();\n }\n\n $keys = array();\n foreach ($stmt as $row){\n $keys[$row[0] . '.' . $row[1]] = $row[2] . '.' . $row[3];\n }\n\n return $keys;\n }", "function persisted($posted_key) {\n\n $form_data = Session::getFormData();\n if (isset($form_data[$posted_key])) {\n echo $form_data[$posted_key];\n }\n \n}", "function GetDBTableKeys()\n\t{\n\t\tglobal $dal_info;\n\t\tif( !array_key_exists($this->infoKey, $dal_info) || !is_array($dal_info[ $this->infoKey ]) )\n\t\t\treturn array();\n\t\t\n\t\t$ret = array();\n\t\tforeach($dal_info[ $this->infoKey ] as $fname=>$f)\n\t\t{\n\t\t\tif( @$f[\"key\"] )\n\t\t\t\t$ret[] = $fname;\n\t\t}\n\t\treturn $ret;\n\t}", "public function getSessionKey();", "public function postKeys()\n\t{\t\n\t\t// get the document types\n\t\t$documents = explode(\"|\", Input::get('documents'));\n\t\t$searchComponent = new MediaSearchComponent();\n\n\t\t// store all keys in this array\n\t\t$docKeys = [];\n\n\t\t// go through each selected document type and get the keys\n\t\tforeach($documents as $type) {\n\n\t\t\t// skip if value is empty\n\t\t\tif($type == \"\") {\n\t\t\t\tcontinue;\n\t\t\t} elseif($type == \"all\") {\n\t\t\t\t$units = Unit::select('content')->get();\n\t\t\t} else {\n\t\t\t\t// split the document type string so that we can get the project name from it.\n\t\t\t\t$type = explode('__', $type);\n\t\t\t\t// get the content of the units for this document type in this project\n\t\t\t\t// if the load on the system is too high limit this to e.g. 100 random units.\n\t\t\t\t$units = Unit::select('content')->where('project', $type[0])->where('documentType', $type[1])->get();\n\t\t\t}\n\n\t\t\t// get the keys for the units in this document type\n\t\t\tforeach($units as $unit) {\n\t\t\t\t$unit->attributesToArray();\n\t\t\t\t$keys = $searchComponent->getKeys($unit['attributes']);\n\t\t\t\t$docKeys = array_unique(array_merge($docKeys, $keys));\n\t\t\t}\n\t\t}\n\n//\t\tasort($keys);\n\t\t\n\t\treturn $docKeys;\n\t}", "public function\n\t\tget_key_fields()\n\t{\n\t\tif (!isset($this->key_fields)) {\n\t\t\t$this->key_fields = array();\n\t\t\t\n\t\t\t$sxe = $this->get_simple_xml_element();\n\t\t\t\n\t\t\tforeach ($sxe->table->{'key-fields'}->field as $field) {\n\t\t\t\t#print_r($field);\n\t\t\t\t\n\t\t\t\t$this->key_fields[] = (string)$field['name'];\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * If the key_fields array hasn't been set, use the default\n\t\t\t * values.\n\t\t\t */\n\t\t\tif (count($this->key_fields) < 1) {\n\t\t\t\t$this->key_fields = array('id');\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $this->key_fields;\n\t}", "public function getKeys()\n {\n $this->prepare();\n\n return $this->_keys;\n }", "public function getQueryFiles()\n {\n return array_keys($_GET);\n }", "function persisted_or_stored($posted_key, $stored_key) {\n\n $form_data = Session::getFormData();\n if (isset($form_data[$posted_key])) {\n echo $form_data[$posted_key];\n } else {\n echo $stored_key;\n }\n \n \n}", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function keys();", "public function getKeys(): array;", "function getKeys() { \n\tglobal $mysqli;\n\t$sql = \"select keyName from keyValue\";\n\t$res = $mysqli->query($sql);\n\tif (!$res) {\n\t\t//if there was an error, log it and then return null.\n\t\terror_log(\"Error on getKeys select \" . $mysqli->error);\n\t\treturn null;\n\t}\n\n\t$keys = array();\n\twhile( $row = mysqli_fetch_assoc($res)) {\n\t\tarray_push($keys,$row['keyName']);\n\t}\n\treturn $keys;\n}", "protected function get_listkeys($sKey=\"\")\n {\n //si son multiples\n $arKeyValue = array();\n if($_POST[\"pkeys\"])\n {\n //$arKeysNames = explode(\",\",$_POST[\"hidKeyFields\"]);//id,Code_Erp\n $arKeyFields = $_POST[\"pkeys\"];//id=24,Code_Erp=\n foreach($arKeyFields as $i=>$sKeysValues)\n { \n $arKeysValues = explode(\",\",$sKeysValues);\n foreach($arKeysValues as $sKeyValue)\n { \n $arKV = explode(\"=\",$sKeyValue);\n $arKeyValue[$i][$arKV[0]] = $arKV[1];\n }\n }\n }\n elseif($_POST[\"id\"])\n $arKeyValue = $_POST[\"id\"];\n elseif($_POST[$sKey])\n $arKeyValue = $_POST[$sKey];\n return $arKeyValue;\n }", "public function getParamKeys()\n {\n $array = array(\n \"controller\" => array(\n \"def_value\" => null,\n \"allow_null\" => false,\n \"filter\" => new PHPFrame_StringFilter(array(\n \"min_length\" => 2,\n \"max_length\" => 50\n ))\n ),\n \"action\" => array(\n \"def_value\" => null,\n \"allow_null\" => true,\n \"filter\" => new PHPFrame_StringFilter(array(\n \"min_length\" => 2,\n \"max_length\" => 50\n ))\n ),\n \"params\" => array(\n \"def_value\" => null,\n \"allow_null\" => true,\n \"filter\" => new PHPFrame_StringFilter()\n )\n );\n\n return array_merge(parent::getParamKeys(), $array);\n }", "public function get_ids()\n {\n if (isset($_SESSION['cart'])) {\n \n return array_keys($_SESSION['cart']);\n }\n return null;\n }", "public function getKeys()\n\t{\n\t\treturn array_keys($this->_d);\n\t}", "public function getKeys(){\n\t\treturn $this->keys;\n\t}", "public static function getReturnedResultKeys() {\n\n return [\n 'ip',\n 'ua',\n 'browser',\n 'language',\n 'platform',\n 'mobile',\n 'tablet',\n 'pc',\n 'page',\n 'open',\n 'close',\n 'location'\n ];\n }", "public function keys()\n {\n parent::keys();\n return array_keys($_FILES);\n }", "function &keys(){\n\t\tif ( isset($this->_cache[__FUNCTION__]) ) return $this->_cache[__FUNCTION__];\n\t\t$tables =& $this->tables();\n\t\t$out = array();\n\t\tforeach ( array_keys($tables) as $tablename){\n\t\t\t$keys =& $tables[$tablename]->keys();\n\t\t\tforeach ( array_keys($keys) as $fieldname){\n\t\t\t\t$out[$fieldname] =& $keys[$fieldname];\n\t\t\t}\n\t\t}\n\t\t$this->_cache[__FUNCTION__] =& $out;\n\t\treturn $out;\n\t\t\n\t}", "private function getAllInputParameters () {\n// \t\t$params = $this->getInputParameters();\n\t\t$params = array();\n\t\t$catalogId = $this->session->getCourseCatalogId();\n\t\tif (!$catalogId->isEqual($this->session->getCombinedCatalogId()))\n\t\t\t$params[':catalog_id'] = $this->session->getCatalogDatabaseId($catalogId);\n\t\t\n\t\t$params[':subj_code'] = $this->session->getSubjectFromCourseId($this->courseId);\n\t\t$params[':crse_numb'] = $this->session->getNumberFromCourseId($this->courseId);\n\t\t\n\t\treturn $params;\n\t}", "function pk_key() {\r\n\t\t$c = 0;\r\n\t\tfor($i = 0; $i < count ( $this->fields ); $i ++) {\r\n\t\t\tif ($this->fields [$i] ['PK'] == 'yes') {\r\n\t\t\t\t$pk_key [$c] = $this->fields [$i] ['VAR'];\r\n\t\t\t\t$c ++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $pk_key;\r\n\t}", "function path_admin_filter_get_keys() {\n // Extract keys as remainder of path\n $path = explode('/', $_GET['q'], 5);\n return count($path) == 5 ? $path[4] : '';\n}", "private function __keys() {\n $vars = get_object_vars($this);\n $vars = array_filter($vars, function ($x) {\n return $x[0] !== '_';\n }, ARRAY_FILTER_USE_KEY);\n return $vars;\n }", "function sessionFields($resultSet){\r\n\t\t$_SESSION['id'] = $resultSet[0]->id;\r\n\t\t$_SESSION['username'] = $resultSet[0]->username;\r\n\t\t$_SESSION['name'] = $resultSet[0]->name;\r\n\t\t$_SESSION['surname'] = $resultSet[0]->surname;\r\n\t\t$_SESSION['email'] = $resultSet[0]->email;\r\n\t\t$_SESSION['role'] = $resultSet[0]->role;\r\n\t\t$_SESSION['picture'] = $resultSet[0]->picture;\r\n\t}", "function get_selected_keys()\n {\n }", "public function getGetValues()\n {\n // Define the check for params\n $get_check_array = array(\n // Action\n 'action' => array('filter' => FILTER_SANITIZE_STRING),\n // Id of current row\n 'vraagId' => array('filter' => FILTER_VALIDATE_INT)\n );\n // Get filtered input:\n $inputs = filter_input_array(INPUT_GET, $get_check_array);\n // RTS\n return $inputs;\n }", "function persist_search_values()\n\t{\n\t\t$myedbsess = new MyEDB_SESSION();\n\t\t$persisted_paged_search_keys = AppConfig::get_app_config_var('persisted_paged_search_keys');\n\t\tforeach($persisted_paged_search_keys as $key => $val)\n\t\t{ //echo \"key: $key, value: $val\";\n\t\t\tif (is_numeric($key))\n\t\t\t{\n\t\t\t\t$session_key = $val;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$session_key = $key;\n\t\t\t//\tif ($val == \"remove_when_absent\" &&\n\t\t\t//\t\t\tisset($_REQUEST[\"cspve_input\"]) //is an initial full form post not an ajax post\n\t\t\t//\t\t\t\t\t\t\t\t\t)\n\t\t\t//\t{ //echo \"AAAAAAA\".$key.\"aa<br>\";\n\t\t\t//\t\tunset($_SESSION[$session_key]);\n\t\t\t//\t}\n\t\t\t}\n\t\t\t//now we're just going to always remove regardless of \"remove_when_absent\" is set\n\t\t\tif (isset($_REQUEST[\"cspve_input\"]) || $_REQUEST['init_req'])//is an initial full form post not an ajax post\n\t\t\t{\n\t\t\t\t//echo \"unsetting $session_key <br>\";\n\t\t\t\t//unset($_SESSION[$session_key]);\n\t\t\t\tunset ($myedbsess->$session_key);\n\t\t\t}\n\t\t\tif (isset($_REQUEST[$session_key]))\n\t\t\t{//echo $session_key.\" --\". print_r( $_REQUEST[$session_key],true).\"<br>\";\n\t\t\t\t//$_SESSION[$session_key] = sanitize($_REQUEST[$session_key]);\n\t\t\t\t$myedbsess->$session_key = sanitize($_REQUEST[$session_key]);\n\t\t\t//\techo \"session key: \".print_r($_SESSION[$session_key],true).\"<br>\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//if (isset($_SESSION[$session_key]))\n\t\t\t\tif (isset($myedbsess->$session_key))\n\t\t\t\t{\n\t\t\t\t\t//$_REQUEST[$session_key] = $_SESSION[$session_key];\n\t\t\t\t\t$_REQUEST[$session_key] = $myedbsess->$session_key;\n\t\t\t\t}\n\t\t\t/*\telse\n\t\t\t\t{\n\t\t\t\t\t$_REQUEST[$session_key] = \"\";\n\t\t\t\t}*/\n\t\t\t}\n\t\t}\n\t\t//echo \"<br>RecordSearcher persist_search_values, searcresrowcount\".$_SESSION['search_res_row_cnt'];\n\t\t\n\t//\tprint_r($_SESSION);\n\t}", "public static function keys(): array;", "public function getPrimaryKey()\n {\n $pks = array();\n $pks[0] = $this->getSessionid();\n $pks[1] = $this->getRecno();\n $pks[2] = $this->getOrderno();\n\n return $pks;\n }", "public function getFormKey()\n {\n return Mage::getSingleton('core/session')->getFormKey();\n }", "function getfield($field)\n{\n\treturn $_SESSION[$field];\n}", "public function keys() {\n\t\treturn array_keys($this->store);\n\t}", "public function getParameterNames ()\n {\n\n return array_keys($this->parameters);\n\n }", "public function getKeyFields()\n {\n return $this->_aKeyFieldList;\n }", "public static function getSessionVars($pattern) {\r\n\r\n/* This function loops through the $_SESSION\r\n array and extracts all variables that \r\n match the pattern passed. After cleaning\r\n the data (should be clean -- just a \r\n precaution) the values are all placed\r\n into an associative array. */\r\n \r\n if (!$_SESSION) {\r\n // echo \"The SESSION Array is empty<BR>\";\r\n return FALSE;\r\n }\r\n \r\n if (!$pattern || $pattern == \"\") { $pattern = \"^[a-zA-Z0-9_%-]+$\"; }\r\n \r\n foreach ($_SESSION as $key => $value) {\r\n \r\n if (ereg(\"$pattern\", \"$key\") && $value != 9999 && $key != \"Submit\") {\r\n \r\n // Trim data\r\n $key = trim($key);\r\n $value = trim($value);\r\n \r\n // Strip slashes if magic quotes in effect\r\n if (get_magic_quotes_gpc()) {\r\n $key = stripslashes($key);\r\n $value = stripslashes($value);\r\n }\r\n\r\n // enter into the post vars to be returned\r\n \r\n $sessionvars[\"$key\"] = $value;\r\n \r\n } // End of if loop\r\n } // End of foreach loop\r\n \r\n if (!$sessionvars) { return FALSE; } // no array was generated\r\n else { return $sessionvars; }\r\n\r\n}", "function get_session_field($session_name, $field) {\n if (isset($_SESSION[APP_ID . $session_name])) {\n return $_SESSION[APP_ID . $session_name][$field];\n }\n return null;\n}", "public function getKeys() {\n\t\treturn $this->getAllKeys();\n\t}", "public function getRequestParams()\n {\n return $this->getKey('RequestParams');\n }", "static public function fieldsGet()\n {\n return array_keys(static::$conditions);\n }", "public function getRequestFieldsToSave(){\n\t\treturn array();\n\t}", "function debugPost(){\n foreach ($_POST as $key => $value) {\n echo \"<tr>\";\n echo \"<td>&nbsp\";\n echo $key;\n echo \"</td>\";\n echo \"<td>&nbsp\";\n echo $value;\n echo \"</td>\";\n echo \"</tr><br>\";\n }\n }", "public function getFormkey()\n {\n // generate the key and store it inside the class\n $this->formkey = $this->generateFormkey();\n // store the form key in the session\n $_SESSION['formkey'] = $this->formkey;\n // output the form key\n return \"<input type='hidden' name='formkey' value='\" . $this->formkey . \"' />\";\n }", "function getExtraVars()\n\t{\n\t\treturn $this->keys;\n\t}", "function getParameterNames();", "function keys();", "function GetFieldsList()\n\t{\n\t\tglobal $dal_info;\n\t\treturn array_keys( $dal_info[ $this->infoKey ] );\n\t}", "protected function getRequestData()\n {\n return \\Includes\\Utils\\ArrayManager::filterByKeys(\n \\XLite\\Core\\Request::getInstance()->getData(),\n array('paymentStatus', 'shippingStatus', 'adminNotes')\n );\n }", "public function keys()\n {\n return array_keys($this->_data);\n }", "public function keys()\n {\n return array_keys($this->_data);\n }", "protected function getWhereKeys(){\n\t\t\t$whereKeys = \"1\";\n\t\t\tif($this->keys){\n\t\t\t\t$whereKeys = array();\n\t\t\t\tforeach ($this->keys as $key) {\n\t\t\t\t\t$whereKeys[] = \"$key = :$key\";\n\t\t\t\t}\n\t\t\t\t$whereKeys = implode(\" AND \", $whereKeys);\n\t\t\t}\n\t\t\treturn $whereKeys;\n\t\t}", "public static function getAllSessionValueNames()\n {\n try\n {\n $allnamesname = CONST_NM_RAPTOR_CONTEXT.'_allnames';\n if(!isset($_SESSION[$allnamesname]) || !is_array($_SESSION[$allnamesname]))\n {\n $_SESSION[$allnamesname] = array();\n }\n return $_SESSION[$allnamesname];\n } catch (\\Exception $ex) {\n throw $ex;\n }\n }", "public function key () {\n return key($this->__fields);\n }", "public function getKeys()\n {\n if (array_key_exists(\"keys\", $this->_propDict)) {\n return $this->_propDict[\"keys\"];\n } else {\n return null;\n }\n }", "public function getKeys()\n {\n return $this->getNames();\n }", "public function keys(): array;", "public function keys(): array;", "public function keys(): array;", "protected function getPrintPageIds()\n\t{\n\t\tif(is_array($_POST[\"wordr\"]))\n\t\t{\n\t\t\tasort($_POST[\"wordr\"]);\t\t\t\n\t\t\t$page_ids = array_keys($_POST[\"wordr\"]);\t\n\t\t}\n\t\t// single page\n\t\telse if((int)$_GET[\"wpg_id\"])\n\t\t{\n\t\t\t$page_ids = array((int)$_GET[\"wpg_id\"]);\n\t\t}\n\t\t\n\t\treturn $page_ids;\n\t}", "public function getKeys() {\n\t\treturn array_keys( $this->array );\n\t}", "public function keys() : array;", "public function keys() : array;", "public function keys()\n {\n return array_keys($this->data);\n }", "public static function keys()\n {\n return static::$keys;\n }", "function getallrequest(){\r\n\tglobal $_REQUEST;\r\n\tforeach($_REQUEST as $index => $value){\r\n\t\tglobal $$index;\r\n\t\t$$index = $value;\r\n\t}\r\n}", "function getTableFields($sessionID, $table){\r\n\t\t//echo $table;\r\n\t\t$result = mysql_list_fields($this->dbname, $table);\r\n\t\treturn $result;\t\t// jeremy originally called this variable $tom, and for that i shall kill him.\r\n\t}", "private function getParameterSet() // {{{\n {\n $parameters = array();\n foreach ($this->m_entries as $bibtex_name => $bibtex_entry)\n {\n $entry_params = array_keys($bibtex_entry);\n $parameters = array_merge($parameters, $entry_params);\n }\n $unique_parameters = array_unique($parameters);\n return $unique_parameters;\n }", "public static function params() {\n $r = array();\n if ('' !== session_id()) {\n $r = session_get_cookie_params();\n }\n return $r;\n }", "function& collectControlerData()\n\t{\n\t\t$keys = array_keys($this->controllerData);\n\t\t\n\t\tforeach($keys as $key)\n\t\t{\n\t\t\t$value = null;\n\t\t\tif (key_exists($key, $_REQUEST))\n\t\t\t{\n\t\t\t\t$value = $_REQUEST[$key];\t\t\t\n\t\t\t\t$this->controllerData[$key] = $value;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\treturn $this->controllerData;\n\t}", "public function getKeysAndValues() {\n return array(\n array('key', 'key', 'value'),\n array('KEY', 'key', 'value'),\n array('Some_key', 'some-key', 'value'),\n array('SOME-KEY', 'some-key', 'value'),\n );\n }", "public function getParamKeys()\n {\n $array = array(\n \"posts_per_page\" => array(\n \"def_value\" => 10,\n \"allow_null\" => false,\n \"filter\" => new PHPFrame_IntFilter()\n )\n );\n\n return array_merge(parent::getParamKeys(), $array);\n }", "public static function pageHelpKey(){\n\t\t$page = self::definePage();\n\n\t\t//adding the distinct fieldnames to the return array\n\t\tif($page == \"home\"){\n\t\t\t$a = array();\n\t\t} elseif($page == \"exmng\"){\n\t\t\t$a = array(\"selectMerchant\",);\n\t\t} elseif($page == \"tax\"){\n\t\t\t$a = array();\n\t\t} elseif($page == \"cpnl\"){\n\t\t\t$a = array();\n\t\t} elseif($page == \"tst\"){\n\t\t\t$a = array();\n\t\t} elseif($page == \"dtbs\"){\n\t\t\t$a = array();\n\t\t} elseif($page == \"ovrde\"){\n\t\t\t$a = array();\n\t\t} else {\n\t\t\t$a = array();\n\t\t}\n\n\t\treturn $a;\n\t}", "public function getParameters()\n {\n return get_object_vars($this->record);\n }", "public function get_sessions($request){\r\n\t\treturn $request['session'];\r\n\t}", "public function getAllKey();", "public function getKeys()\n {\n return $this->keys;\n }" ]
[ "0.7281956", "0.71059054", "0.6658204", "0.6537084", "0.6235343", "0.61468405", "0.5976852", "0.5753291", "0.56874216", "0.5685296", "0.5681412", "0.5636743", "0.5633421", "0.5627088", "0.5610596", "0.56035805", "0.5590647", "0.5562724", "0.5560645", "0.5536597", "0.55362827", "0.5509098", "0.5508436", "0.55010396", "0.54990757", "0.5470254", "0.5467705", "0.5463931", "0.5454837", "0.5454837", "0.5454837", "0.5454837", "0.5454837", "0.5454837", "0.5441387", "0.54379606", "0.54324657", "0.5406307", "0.5399505", "0.53820294", "0.53800243", "0.53785414", "0.53673774", "0.5366612", "0.5362004", "0.53411967", "0.5332007", "0.5314407", "0.53066146", "0.5306102", "0.5298719", "0.52982247", "0.52979636", "0.5293428", "0.52921766", "0.5291319", "0.5289751", "0.52865", "0.52842146", "0.52664423", "0.5264875", "0.52637696", "0.5258941", "0.52564454", "0.5255989", "0.52518696", "0.52478963", "0.5233577", "0.5231904", "0.5231576", "0.5229708", "0.52246344", "0.5222945", "0.5222945", "0.5222288", "0.5221", "0.5209813", "0.5203199", "0.51999515", "0.5183586", "0.5183586", "0.5183586", "0.51834637", "0.51831263", "0.51798457", "0.51798457", "0.51789004", "0.51638365", "0.5157151", "0.5155534", "0.51504445", "0.5139713", "0.51388973", "0.51359546", "0.5134959", "0.5134637", "0.5133227", "0.5125748", "0.51083094", "0.51070434" ]
0.7149095
1
Load rows based on filter
function &LoadRs($sFilter) { // Set up filter (SQL WHERE clause) and get return SQL //$this->CurrentFilter = $sFilter; //$sSql = $this->SQL(); $sSql = $this->GetSQL($sFilter, ""); $conn = &$this->Connection(); $rs = $conn->Execute($sSql); return $rs; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function &LoadRs($filter) {\n\n\t\t// Set up filter (SQL WHERE clause) and get return SQL\n\t\t//$this->CurrentFilter = $filter;\n\t\t//$sql = $this->SQL();\n\n\t\t$sql = $this->GetSQL($filter, \"\");\n\t\t$conn = &$this->Connection();\n\t\t$rs = $conn->Execute($sql);\n\t\treturn $rs;\n\t}", "protected function loadRow() {}", "public function &loadRs($filter)\n\t{\n\n\t\t// Set up filter (WHERE Clause)\n\t\t$sql = $this->getSql($filter);\n\t\t$conn = $this->getConnection();\n\t\t$rs = $conn->execute($sql);\n\t\treturn $rs;\n\t}", "public function &loadRs($filter)\n\t{\n\n\t\t// Set up filter (WHERE Clause)\n\t\t$sql = $this->getSql($filter);\n\t\t$conn = $this->getConnection();\n\t\t$rs = $conn->execute($sql);\n\t\treturn $rs;\n\t}", "protected function filter_row(&$row) {}", "public function loadSet(Filter $filter = null){\n\t\t$mode = QueryBuilder::QUERYSELECT;\n\t\t$query = new QueryBuilder($mode);\n\t\t\t\t\n\t\t$query->setTable($this->table);\t\n\t\t\n\t\tif($filter) {\n\t\t\t$query->setCondition($filter);\n\t\t}\n\t\t\n\t\t$query_str = $query->parse();\t\t\n\t\t//$this->firephp = FirePHP::getInstance(true);\n\t\t//$this->firephp->info($query_str);\n\n\t\t//print $query_str;\n\t\t\n\t\t$this->wrapper = ObjFactory::getObject(Constants::dbtype);\n\t\t$result = $this->wrapper->query($query_str,DBConn::getInstance());\n\t\t\t\t\n\t\tif($this->wrapper->getNumrows() == 0){\n\t\t\treturn false;\n\t\t} else {\n\t\t\twhile($row = $this->wrapper->fetch_assoc_row()){\n\t\t\t\t$item = new $this->dataClass;\n\t\t\t\t$item->mapRow($row);\n\t\t\t\t$output[] = $item;\n\t\t\t}\n\t\t\t//$this->firephp->info($output);\n\t\t\treturn $output;\n\t\t}\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\t\t$sFilter = $filesystem->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$filesystem->Row_Selecting($sFilter);\r\n\r\n\t\t// Load sql based on filter\r\n\t\t$filesystem->CurrentFilter = $sFilter;\r\n\t\t$sSql = $filesystem->SQL();\r\n\t\tif ($rs = $conn->Execute($sSql)) {\r\n\t\t\tif ($rs->EOF) {\r\n\t\t\t\t$LoadRow = FALSE;\r\n\t\t\t} else {\r\n\t\t\t\t$LoadRow = TRUE;\r\n\t\t\t\t$rs->MoveFirst();\r\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t\t// Call Row Selected event\r\n\t\t\t\t$filesystem->Row_Selected($rs);\r\n\t\t\t}\r\n\t\t\t$rs->Close();\r\n\t\t} else {\r\n\t\t\t$LoadRow = FALSE;\r\n\t\t}\r\n\t\treturn $LoadRow;\r\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $planilla;\n\t\t$sFilter = $planilla->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$planilla->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$planilla->CurrentFilter = $sFilter;\n\t\t$sSql = $planilla->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$planilla->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "public static function importSource(string $filepath, array $fields = null,int $id = null, array $filters = null, $page = 1, $limit = 100): array \n { \n if (!file_exists($filepath)) {\n throw new \\Exception('Resource file not found.', 404);\n }\n\n $line = 1;\n $added = 0;\n $res = []; \n\n //for example purpose only.\n $headerNames = parent::getAvailableFields();\n\n $filtersMap = [];\n $chunkStart = ($page * $limit) - $limit + 1;\n\n // deprecable if known structure. maintained for example purpose only.\n $startDateIndex = array_search(\"start_date\", $headerNames);\n $endDateIndex = array_search(\"end_date\", $headerNames);\n $today = date(\"Y-m-d\");\n\n\n if (($handle = fopen($filepath, \"r\")) !== FALSE) {\n while (($data = fgetcsv($handle, 1000, \",\")) !== FALSE) {\n // manage header line\n if ($line == 1) {\n if ($filters !== null) {\n foreach (array_keys((array) $filters) as $filter) {\n //filter map helper.\n $filtersMap[array_search($filter, $data)] = $filters[$filter];\n }\n }\n\n //possible header recovery. not done for example purpose only\n\n $line++;\n continue;\n }\n\n //eluding controls for id search\n //if recive id, i always want get the record \n if ($id !== null) {\n if ($id == $data[array_search(\"id\", $headerNames)]) {\n return parent::extractRow($data, $fields);\n }\n continue;\n }\n //manage pagination, excluding invalid row and invalid flyers\n if (\n trim($data[0]) == '' ||\n $data[$startDateIndex] > $today ||\n $data[$endDateIndex] < $today ||\n $line++ <= $chunkStart\n ) {\n\n continue;\n }\n\n if ($added >= $limit) {\n return $res;\n }\n\n //check filters value.\n if (count($filtersMap) > 0) {\n foreach (array_keys($filtersMap) as $filterIndex) {\n //check requested filters value based on filter map helper\n if ($data[$filterIndex] !== $filtersMap[$filterIndex]) {\n continue 2;\n }\n }\n }\n\n //manage extraction\n $row = parent::extractRow($data, $fields);\n if ($row != null) {\n $res[] = $row;\n $added++;\n }\n }\n fclose($handle);\n }\n return $res;\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\t\t$sFilter = $patient_detail->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$patient_detail->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$patient_detail->CurrentFilter = $sFilter;\n\t\t$sSql = $patient_detail->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$patient_detail->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\t\t$sFilter = $patient_detail->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$patient_detail->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$patient_detail->CurrentFilter = $sFilter;\n\t\t$sSql = $patient_detail->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$patient_detail->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function prepare_read($filter = '', $sort = ''){\n $tables_sql = $this->create_table_list();\n $where_sql = '';\n if($filter != ''){\n $where_sql = \"WHERE 1 = 1 AND \" . $this->substitute_symbols($filter);\n }\n $sort_sql = '';\n if($sort != ''){\n $sort_sql = \"ORDER BY \" . $this->substitute_symbols($sort);\n }elseif(isset($this->sort)){\n $sort_sql = $this->sort;\n }\n $column_sql = implode(', ', $this->column_list);\n $ret_val = \"SELECT $column_sql FROM $tables_sql $where_sql $sort_sql;\";\n return $ret_val;\n }", "abstract public function filter(Builder $dataSource);", "abstract protected function getWhereForRow($data);", "public function getFilteredRows($rows) {\n $filterRows = array();\n $filterRow = array();\n //-------------------\n // Получим параметры запроса\n $request = $this->getRequest();\n $params = $request->getParams();\n $table = $params['table'];\n\n if ($table == 'admin.blog_posts') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"content\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n if ($table == 'admin.blog_posts_tags') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"sortColumn\":\n case \"ascDescFlg\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n if ($table == 'admin.blog_posts_images') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"sortColumn\":\n case \"ascDescFlg\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n if ($table == 'admin.blog_posts_audio') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"sortColumn\":\n case \"ascDescFlg\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n if ($table == 'admin.blog_posts_video') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"sortColumn\":\n case \"ascDescFlg\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n if ($table == 'admin.blog_posts_locations') {\n foreach ($rows as $row) {\n // Отфильтруем ненужные поля в записи (масиве)\n foreach ($row as $key => $value) {\n // Исключим поля\n switch ($key) {\n case \"content\":\n case \"correction\":\n case \"details\":\n case \"sortColumn\":\n case \"ascDescFlg\":\n break;\n default :\n $filterRow[$key] = $value;\n break;\n }\n }\n if (count($filterRow) > 0) {\n $filterRows[] = $filterRow;\n }\n $filterRow = array();\n }\n }\n return $filterRows;\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\t\t$sFilter = $mst_vendor->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$mst_vendor->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$mst_vendor->CurrentFilter = $sFilter;\n\t\t$sSql = $mst_vendor->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$mst_vendor->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $financial_year;\n\t\t$sFilter = $financial_year->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$financial_year->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$financial_year->CurrentFilter = $sFilter;\n\t\t$sSql = $financial_year->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$financial_year->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $st_peserta_kelas_kelompok;\r\n\t\t$sFilter = $st_peserta_kelas_kelompok->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$st_peserta_kelas_kelompok->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$st_peserta_kelas_kelompok->CurrentFilter = $sFilter;\r\n\t\t$sSql = $st_peserta_kelas_kelompok->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "abstract public function getRow($cond_vars);", "function LoadRow() {\n\t\tglobal $conn, $Security, $t_tinbai_mainsite;\n\t\t$sFilter = $t_tinbai_mainsite->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$t_tinbai_mainsite->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$t_tinbai_mainsite->CurrentFilter = $sFilter;\n\t\t$sSql = $t_tinbai_mainsite->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$t_tinbai_mainsite->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "private function get_filterItemsFromRows()\n {\n // Default return value\n $arr_return = array();\n $arr_return[ 'data' ][ 'items' ] = null;\n\n // RETURN rows are empty\n if ( empty( $this->rows ) )\n {\n // DRS\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'Rows are empty. Filter: ' . $this->curr_tableField . '.';\n t3lib_div::devlog( '[WARN/FILTER] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // DRS\n return $arr_return;\n }\n // RETURN rows are empty\n // Get table and field\n list( $table ) = explode( '.', $this->curr_tableField );\n\n // Set nice_piVar\n $this->set_nicePiVar();\n\n // Set class var $htmlSpaceLeft\n $this->set_htmlSpaceLeft();\n\n // Set class var $maxItemsPerHtmlRow\n $this->set_maxItemsPerHtmlRow();\n\n // SWITCH current filter is a tree view\n // #i0117, 141223, dwildt, 1-/+\n //switch ( in_array( $table, $this->arr_tablesWiTreeparentfield ) )\n switch ( in_array( $this->curr_tableField, $this->arr_tablesWiTreeparentfield ) )\n {\n case( true ):\n $arr_return = $this->get_filterItemsTree();\n break;\n case( false ):\n default:\n $arr_return = $this->get_filterItemsDefault();\n $items = $arr_return[ 'data' ][ 'items' ];\n $arr_return = $this->get_filterItemsWrap( $items );\n break;\n }\n // SWITCH current filter is a tree view\n\n return $arr_return;\n }", "private function gatherData($filter) {\r\n $res = $this->db->query(\"SELECT i.*, f.symbol AS fiatSym, c.symbol AS cryptoSym, o.display AS fxOption, s.status\r\n FROM invoices i\r\n LEFT JOIN currencies f ON f.id = i.fiat_id\r\n LEFT JOIN currencies c ON c.id = i.crypto_id\r\n LEFT JOIN fx_options o ON o.id = i.fx_option\r\n LEFT JOIN status_ref s ON s.id = i.status_id\r\n WHERE i.user = \".$_SESSION['user'].\" \".$filter\r\n .\" ORDER BY i.create_time DESC\");\r\n while ($r=$res->fetch_assoc()) {\r\n $r['docs'] = $this->findDocs($r['id']); // Array; find any documents\r\n array_push($this->list,$r);} // Add to stack\r\n }", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$rekeningju->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $responsable;\n\t\t$sFilter = $responsable->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$responsable->Row_Selecting($sFilter);\n\n\t\t// Load sql based on filter\n\t\t$responsable->CurrentFilter = $sFilter;\n\t\t$sSql = $responsable->SQL();\n\t\tif ($rs = $conn->Execute($sSql)) {\n\t\t\tif ($rs->EOF) {\n\t\t\t\t$LoadRow = FALSE;\n\t\t\t} else {\n\t\t\t\t$LoadRow = TRUE;\n\t\t\t\t$rs->MoveFirst();\n\t\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t\t// Call Row Selected event\n\t\t\t\t$responsable->Row_Selected($rs);\n\t\t\t}\n\t\t\t$rs->Close();\n\t\t} else {\n\t\t\t$LoadRow = FALSE;\n\t\t}\n\t\treturn $LoadRow;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $archv_finished;\n\t\t$sFilter = $archv_finished->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$archv_finished->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$archv_finished->CurrentFilter = $sFilter;\n\t\t$sSql = $archv_finished->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$archv_finished->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $tbl_profile;\n\t\t$sFilter = $tbl_profile->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$tbl_profile->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$tbl_profile->CurrentFilter = $sFilter;\n\t\t$sSql = $tbl_profile->SQL();\n\t\t$res = FALSE;\n\t\t$rs = up_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "abstract public function get_rows();", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn = &$this->Connection();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn = &$this->Connection();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql, $conn);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "public function testPrepareLoad_FullArrayWhere()\n {\n \t$qs = $this->conn->prepare('SELECT * FROM test');\n $this->assertEquals(array(3, 'three', 'another row', 'PASSIVE', 'id'=>3, 'key'=>'three', 'title'=>'another row', 'status'=>'PASSIVE'), $qs->load(array('`key`'=>'three'), DB::FETCH_FULLARRAY));\n }", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $fs_multijoin_v;\r\n\t\t$sFilter = $fs_multijoin_v->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$fs_multijoin_v->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$fs_multijoin_v->CurrentFilter = $sFilter;\r\n\t\t$sSql = $fs_multijoin_v->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t// Call Row Selected event\r\n\t\t\t$fs_multijoin_v->Row_Selected($rs);\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "protected function _prepareRowsAction() {\n \n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $frm_fp_units_accomplishment;\n\t\t$sFilter = $frm_fp_units_accomplishment->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$frm_fp_units_accomplishment->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$frm_fp_units_accomplishment->CurrentFilter = $sFilter;\n\t\t$sSql = $frm_fp_units_accomplishment->SQL();\n\t\t$res = FALSE;\n\t\t$rs = up_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function &LoadRs($sFilter) {\n\t\tglobal $conn;\n\n\t\t// Set up filter (SQL WHERE clause) and get return SQL\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\treturn $conn->Execute($sSql);\n\t}", "public function sectionTableWhere() {}", "public function sectionTableWhere() {}", "abstract protected function getRows();", "public function filtering();", "function &getRows( $action, $offset, $rowCount, $sort, $type = null ) {\n $id = $this->importData['id'];\n $params = array_merge($this->params, array(\n 'limitOffset' => $offset,\n 'limitCount' => $rowCount,\n ));\n $dao = $this->dataExchange->getDataDAO($id, $params);\n \n $msgs = $this->bao->getStatuses();\n \n $rows = array();\n while($dao->fetch()) {\n $row = $dao->toArray();\n $row['search_contact_name'] = $this->bao->getSearchContactName($row);\n \n $status = $row['status'];\n $row['error_status'] = CRM_Finance_BAO_Import_SourceAbstract::isErrorStatus($status);\n $row['status_desc'] = $msgs[$status];\n \n $rows[] = $row;\n }\n \n return $rows;\n }", "function getDataRowWhere($table,$fields = null,$where = null,$order = null) {\r\n\t\t\r\n\t\t$db = self::getDatabaseDataWhere($table,$fields,$where,$order);\r\n\t\t\r\n\t\t//echo $db->getQuery();\r\n\t\treturn $db->loadObject();\r\n\t}", "abstract public function filterWhere(Builder $dataSource);", "public function readAction() {\n\t\tif(getParam('id')){\n\t\t\t$model = new $this->model(intval(getParam('id')));\n\t\t\t$records = array(\n\t\t\t\t$this->formatRow($model->get())\n\t\t\t);\n\t\t\t$this->setParam('records', $records);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// get submitted params\n\t\t$sortBy = getParam('sort', false);\n\t\t$filter = json_decode(getParam('filter', '{}'), true);\n\t\t\n\t\t// Setup the filtering and query variables\n\t\t$start = intval(getParam('start', 0));\n\t\t$limit = intval(getParam('limit', 0));\n\t\t\n\t\t//Fields to select\n\t\t$fields = $this->getFields();\n\t\t\n\t\t//From to use\n\t\t$from = $this->getFrom();\n\t\t\n\t\t//Join tables\n\t\t$join = $this->getJoin();\n\t\t\n\t\t//Base where clause\n\t\t$where = $this->getWhere();\n\t\t\n\t\t//Sort\n\t\t$sort = $this->getSort();\n\t\t\n\t\tif ($sortBy) {\n\t\t\t$sortArray = json_decode($sortBy, true);\n\t\t\t$numSorters = count($sortArray);\n\t\t\t$sort = array();\n\t\t\tfor ($i = 0; $i < $numSorters; $i++) {\n\t\t\t\t$sort[] = $sortArray[$i]['property'] . ' ' . $sortArray[$i]['direction'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Filter\n\t\t$where = array_merge($where, $this->applyFilter($filter));\n\t\t\n\n\t\t\n\t\t// convert query data to sql\n\t\t$fieldsSql = implode(',', $fields);\n\t\t$fromSql = ' FROM ' . implode(',', $from);\n\t\t$joinSql = implode(' ', $join);\n\t\t$whereSql = 'WHERE ' . implode(' AND ', $where);\n\t\tif (!count($where)) {\n\t\t\t$whereSql = '';\n\t\t}\n\t\t$sortSql = implode(',', $sort);\n\n\t\t// get total count\n\t\t$total = 0;\n\t\t$totalQuery = \"SELECT COUNT(*) total $fromSql $joinSql $whereSql\";\n\t\t$row = LP_Db::fetchRow($totalQuery);\n\t\tif ($row) {\n\t\t\t$total = $row['total'];\n\t\t}\n\t\t$this->setParam('total', $total);\n\t\t\n\t\t// get records\n\t\t$query = \"SELECT $fieldsSql $fromSql $joinSql $whereSql\";\n\t\t$this->setParam('query', $query);\n\t\tif($limit){\n\t\t\t$query = LP_Util::buildQuery($query, $sortSql, $limit, $start);\n\t\t}\n\t\t$rows = LP_Db::fetchAll($query);\n\t\t$numRows = count($rows);\n\t\t$records = array();\n\t\t\n\t\t//Format rows\n\t\tforeach ($rows as $row){\n\t\t\t$records[] = $this->formatRow($row);\n\t\t}\n\t\t\n\t\t$this->setParam('records', $records);\n\t}", "public function getRowsv2($sql, $filter = null, $inner = false)\r\n {\r\n $filterObj = $this->processFilter($filter);\r\n \r\n\r\n if (strlen($filterObj[\"filterWhere\"])>0) {\r\n if (!strpos(strtoupper($sql), \"WHERE\")) {\r\n $sql.=\" where \";\r\n }\r\n $sql.=$filterObj[\"filterWhere\"];\r\n }\r\n $filterRowValues = $filterObj[\"filterRowValues\"];\r\n if(!$inner) $this->sql_statement = $sql;\r\n $stmt = $this->conn->prepare($sql);\r\n\r\n if (!$stmt) {\r\n array_push($this->error, \"getRowsv2: Error in preparing statement4(\".$sql.\") \\n\".$this->conn->error);\r\n //echo $this->error;\r\n return false;\r\n } else {\r\n \r\n if (count($filterRowValues)>0) {\r\n $a_params = array();\r\n $param_types = \"\";\r\n foreach ($filterRowValues as $sValue) {\r\n $param_types.=\"s\";\r\n }\r\n array_push($a_params, $param_types);\r\n foreach ($filterRowValues as $singleValue) {\r\n array_push($a_params, $singleValue);\r\n }\r\n \r\n call_user_func_array(array($stmt, 'bind_param'), $this->refValues($a_params));\r\n }\r\n $stmt->execute();\r\n $rows = $this->db->fetch($stmt);\r\n $stmt->close();\r\n if (!$inner) {\r\n $this->rowCount = count($rows);\r\n }\r\n return $rows;\r\n }\r\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $scholarship_package;\n\t\t$sFilter = $scholarship_package->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$scholarship_package->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$scholarship_package->CurrentFilter = $sFilter;\n\t\t$sSql = $scholarship_package->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$scholarship_package->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\n\t\tglobal $conn, $Security, $scholarship_package;\n\t\t$sFilter = $scholarship_package->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$scholarship_package->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$scholarship_package->CurrentFilter = $sFilter;\n\t\t$sSql = $scholarship_package->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$scholarship_package->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "public function getAllData(array $filters = []);", "public function filter($filter)\n {\n $filtered = [];\n\n while (list($index, $row) = $this->getRow()) {\n if (call_user_func_array($filter, [$row, $index, $this]) == true) {\n $filtered[$index] = $row;\n }\n }\n\n return new static($this->headers, $filtered);\n }", "protected function filter($rows){\n\n if(request()->has('name') && request()->get('name') !=\"\"){\n $rows = $rows->where('name',request()->get('name')) ; \n }\n return $rows;\n }", "private function filter() {\r\n $globalSearch = array();\r\n $columnSearch = array();\r\n\r\n $columns = $this->resource->setDatatableFields(TRUE);\r\n\r\n $dtColumns = $this->pluck($columns, 'dt');\r\n\r\n if (isset($this->resource->requestData['search']) && $this->resource->requestData['search']['value'] != '') {\r\n\r\n $str = $this->resource->requestData['search']['value'];\r\n\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n if ($requestColumn['searchable'] == 'true') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $globalSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Individual column filtering\r\n if (isset($this->resource->requestData['columns'])) {\r\n for ($i = 0, $ien = count($this->resource->requestData['columns']); $i < $ien; $i++) {\r\n $requestColumn = $this->resource->requestData['columns'][$i];\r\n $columnIdx = array_search($requestColumn['data'], $dtColumns);\r\n $column = $columns[$columnIdx];\r\n $str = $requestColumn['search']['value'];\r\n if ($requestColumn['searchable'] == 'true' &&\r\n $str != '') {\r\n\r\n $binding = '%' . $str . '%';\r\n\r\n if (strpos($column['db'], \".\") !== FALSE) {\r\n\r\n $fld = explode('.', $column['db']);\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifierChain([$fld[0], $fld[1]]) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n } else {\r\n $columnSearch[] = $this->adapter->platform->quoteIdentifier($column['db']) . \" LIKE \" . $this->adapter->platform->quoteValue($binding);\r\n }\r\n }\r\n }\r\n }\r\n // Combine the filters into a single string\r\n $where = '';\r\n if (count($globalSearch)) {\r\n $where = '(' . implode(' OR ', $globalSearch) . ')';\r\n }\r\n if (count($columnSearch)) {\r\n $where = $where === '' ?\r\n implode(' AND ', $columnSearch) :\r\n $where . ' AND ' . implode(' AND ', $columnSearch);\r\n }\r\n\r\n return $where;\r\n }", "private function areas_toRows()\n {\n // RETURN filter hasn't areas\n if ( !$this->bool_currFilterIsArea )\n {\n return;\n }\n // RETURN filter hasn't areas\n // Get areas from TS\n $areas = $this->ts_getAreas();\n // Convert areas to rows\n $rows = $this->areas_toRowsConverter( $areas );\n $this->rowsFromAreaWoHits = $rows;\n\n // Count the hits for each area row\n $rows = $this->areas_countHits( $rows );\n // Remove area rows without hits, if it's needed\n $rows = $this->areas_wiHitsOnly( $rows );\n\n // Override class var rows\n $this->rows = $rows;\n\n return;\n }", "private function get_rows()\n {\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n\n // IF : hits should counted\n if ( $this->ts_countHits() )\n {\n // 1. step: filter items with one hit at least\n $arr_return = $this->get_rowsWiHits();\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n return $arr_return;\n }\n $rows = $arr_return[ 'data' ][ 'rows' ];\n // 1. step: filter items with one hit at least\n }\n // IF : hits should counted\n // 2. step: all filter items, hits will be taken from $rows\n $arr_return = $this->get_rowsAllItems( $rows );\n\n return $arr_return;\n }", "function loadlist() {\n//\t\t$this->db->where(\"active\",true);\n\t\t$rows=null;\n\t\tif($q=$this->db->get($this->table_name)){\n\t\t\tforeach($q->result() as $r) {\n\t\t\t\t$rows[]=$r;\n\t\t\t}\n\t\t}\n\t\treturn $rows;\n\t}", "private function loadFromStore() {\r\n \r\n /*\r\n * Request start time\r\n */\r\n $this->requestStartTime = microtime(true);\r\n \r\n /*\r\n * Clean search filters\r\n */\r\n $originalFilters = $this->defaultModel->getFiltersFromQuery($this->context->query);\r\n \r\n /*\r\n * Number of returned results is never greater than MAXIMUM_LIMIT\r\n */\r\n $limit = isset($originalFilters['count']) && is_numeric($originalFilters['count']) ? min($originalFilters['count'], isset($this->defaultModel->searchFilters['count']->maximumInclusive) ? $this->defaultModel->searchFilters['count']->maximumInclusive : 500) : $this->context->dbDriver->resultsPerPage;\r\n\r\n /*\r\n * Compute offset based on startPage or startIndex\r\n */\r\n $offset = $this->getOffset($originalFilters, $limit);\r\n \r\n /*\r\n * Query Analyzer \r\n */\r\n $analysis = $this->analyze($originalFilters);\r\n \r\n /*\r\n * Completely not understood query - return an empty result without\r\n * launching a search on the database\r\n */\r\n if (isset($analysis['notUnderstood'])) {\r\n $this->restoFeatures = array();\r\n $this->paging = $this->getPaging(array(\r\n 'total' => 0,\r\n 'isExact' => true\r\n ), $limit, $offset);\r\n }\r\n /*\r\n * Read features from database\r\n */ \r\n else {\r\n $this->loadFeatures($analysis['appliedFilters'], $limit, $offset);\r\n }\r\n \r\n /*\r\n * Set description\r\n */\r\n $this->setDescription($analysis, $offset, $limit);\r\n \r\n }", "protected function setFilterArray() {\n $primary_keys = getPrimaryKeys($this->table_name);\n foreach ($primary_keys as $pk) {\n if (isset($_GET[$pk])) {\n $this->filter[$pk] = Mysql::SQLValue($_GET[$pk]);\n }\n }\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $tbl_slide;\n\t\t$sFilter = $tbl_slide->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$tbl_slide->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$tbl_slide->CurrentFilter = $sFilter;\n\t\t$sSql = $tbl_slide->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$tbl_slide->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "function LoadRow() {\r\r\tglobal $conn, $Security, $ratings;\r\r\t$sFilter = $ratings->SqlKeyFilter();\r\r\tif (!is_numeric($ratings->id_2->CurrentValue)) {\r\r\t\treturn FALSE; // Invalid key, exit\r\r\t}\r\r\t$sFilter = str_replace(\"@id_2@\", ew_AdjustSql($ratings->id_2->CurrentValue), $sFilter); // Replace key value\r\r\r\r\t// Call Row Selecting event\r\r\t$ratings->Row_Selecting($sFilter);\r\r\r\r\t// Load sql based on filter\r\r\t$ratings->CurrentFilter = $sFilter;\r\r\t$sSql = $ratings->SQL();\r\r\tif ($rs = $conn->Execute($sSql)) {\r\r\t\tif ($rs->EOF) {\r\r\t\t\t$LoadRow = FALSE;\r\r\t\t} else {\r\r\t\t\t$LoadRow = TRUE;\r\r\t\t\t$rs->MoveFirst();\r\r\t\t\tLoadRowValues($rs); // Load row values\r\r\r\r\t\t\t// Call Row Selected event\r\r\t\t\t$ratings->Row_Selected($rs);\r\r\t\t}\r\r\t\t$rs->Close();\r\r\t} else {\r\r\t\t$LoadRow = FALSE;\r\r\t}\r\r\treturn $LoadRow;\r\r}", "function getRows($params = array()){\n $result = $this->get_by($params, TRUE);\n\n if ($result) {\n return $result;\n } else {\n return false;\n }\n }", "abstract public function loadColumns();", "public function getFoundRows();", "public function loadRow()\n\t{\n\t\tglobal $Security, $Language;\n\t\t$filter = $this->getRecordFilter();\n\n\t\t// Call Row Selecting event\n\t\t$this->Row_Selecting($filter);\n\n\t\t// Load SQL based on filter\n\t\t$this->CurrentFilter = $filter;\n\t\t$sql = $this->getCurrentSql();\n\t\t$conn = &$this->getConnection();\n\t\t$res = FALSE;\n\t\t$rs = LoadRecordset($sql, $conn);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->loadRowValues($rs); // Load row values\n\t\t\t$rs->close();\n\t\t}\n\n\t\t// Check if valid User ID\n\t\tif ($res) {\n\t\t\t$res = $this->showOptionLink('add');\n\t\t\tif (!$res) {\n\t\t\t\t$userIdMsg = DeniedMessage();\n\t\t\t\t$this->setFailureMessage($userIdMsg);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "public function getRows();", "public function getRows();", "private static function _getFilter() {}", "private function loadFilters() {\n\n // buscando usuários\n $companyId = $this->Session->read('CompanyLoggedIn.Company.id');\n $params = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n 'CompaniesUser.user_id'\n ),\n 'conditions' => array(\n 'CompaniesUser.status' => 'ACTIVE'\n )\n )\n );\n $userIds = $this->Utility->urlRequestToGetData('companies', 'list', $params);\n if (!empty($userIds) && empty($userIds ['status'])) {\n $_SESSION ['addOffer'] ['userIds'] = $userIds;\n\n // conta público alvo\n $this->offerFilters ['target'] = count($userIds);\n\n // busca os filtros\n foreach ($this->offerFilters as $key => $value) {\n if ($key == 'gender') {\n $Paramsgenero = array(\n 'CompaniesUser' => array(\n 'fields' => array(\n \"COUNT(User.id) AS count\",\n \"User.gender AS filter\"\n ),\n 'group' => array(\n \"User.gender\"\n ),\n 'order' => array(\n 'COUNT(User.id)' => 'DESC'\n )\n ),\n 'User' => array()\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $Paramsgenero);\n } else if ($key == 'age_group') {\n // busca faixa etária\n $query = \"SELECT\n\t\t\t\t\t SUM(IF(age < 20,1,0)) AS '{$this->ageGroupRangeKeys['0_20']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 20 AND 29,1,0)) AS '{$this->ageGroupRangeKeys['20_29']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 30 AND 39,1,0)) AS '{$this->ageGroupRangeKeys['30_39']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 40 AND 49,1,0)) AS '{$this->ageGroupRangeKeys['40_49']}',\n\t\t\t\t\t SUM(IF(age BETWEEN 50 AND 59,1,0)) AS '{$this->ageGroupRangeKeys['50_59']}',\n\t\t\t\t\t SUM(IF(age >=60, 1, 0)) AS '{$this->ageGroupRangeKeys['60_120']}',\n\t\t\t\t\t SUM(IF(age IS NULL, 1, 0)) AS '{$this->ageGroupRangeKeys['empty']}'\n\t\t\t\t\t\tFROM (SELECT YEAR(CURDATE())-YEAR(birthday) AS age FROM facebook_profiles) AS derived\";\n\n $filterParams = array(\n 'FacebookProfile' => array(\n 'query' => $query\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'query', $filterParams);\n } else {\n $filterParams = array(\n 'FacebookProfile' => array(\n 'fields' => array(\n \"COUNT(FacebookProfile.{$key}) AS count\",\n \"FacebookProfile.{$key} AS filter\"\n ),\n 'conditions' => array(\n 'FacebookProfile.user_id' => $userIds\n ),\n 'group' => array(\n \"FacebookProfile.{$key}\"\n ),\n 'order' => array(\n \"FacebookProfile.{$key}\" => 'ASC'\n )\n )\n );\n $filter = $this->Utility->urlRequestToGetData('users', 'all', $filterParams);\n }\n if (!empty($filter) && empty($filter ['status'])) {\n $this->offerFilters [$key] = $this->formatOfferFilters($filter);\n }\n }\n return $this->offerFilters;\n } else {\n $this->Session->setFlash('Houve um problema para carregar os filtros. Tente novamente.');\n }\n }", "public function select($filter = [])\n\t {\n\t\t if(isset($filter['filed']))\n\t\t {\n\t\t\t $filed_str = $filter['filed'];\n\t\t }else\n\t\t {\n\t\t\t $filed_str = '*';\n \t\t }\n $sql = \"SELECT $filed_str FROM $this->table\";\n\n\t\t if(isset($filter['where']))\n\t\t {\n\t\t\t $sql .= \" WHERE {$filter['where']}\"; \n\t\t }\n\t\t \n\t\t if(isset($filter['group']))\n\t\t {\n\t\t\t $sql .= \" GROUP BY {$filter['group']}\"; \n\t\t }\n \n\t\t \n\t\t if(isset($filter['having']))\n\t\t {\n\t\t\t $sql .= \" HAVING {$filter['having']}\"; \n\t\t }\n\n\t\t if(isset($filter['order']))\n\t\t {\n\t\t\t $sql .= \" ORDER BY {$filter['order']}\"; \n\t\t }\n\n\t\t if(isset($filter['limit']))\n\t\t {\n\t\t\t $sql .= \" LIMIT {$filter['limit']}\"; \n\t\t }\n\n return $this->dao->fetchAll($sql);\n\n\t }" ]
[ "0.6626558", "0.6443491", "0.62317777", "0.62317777", "0.62268597", "0.61868507", "0.6098263", "0.6009772", "0.596365", "0.5922192", "0.5922192", "0.59218234", "0.5919322", "0.5881551", "0.5871646", "0.5863273", "0.5839124", "0.5831281", "0.5827724", "0.58154213", "0.5813219", "0.5810075", "0.58092165", "0.57985765", "0.57658637", "0.5750256", "0.5746119", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5745726", "0.5743793", "0.5743793", "0.5743793", "0.57270837", "0.57270837", "0.57270837", "0.57270837", "0.5724581", "0.5720692", "0.5720692", "0.5720692", "0.5720692", "0.5720692", "0.5720692", "0.5701048", "0.5690555", "0.56856775", "0.56626815", "0.56304127", "0.56304127", "0.56179905", "0.5616901", "0.5607848", "0.55819744", "0.5573928", "0.55672157", "0.55496675", "0.55489224", "0.55489224", "0.55335796", "0.55001414", "0.5498243", "0.5486684", "0.54549575", "0.5452665", "0.54316753", "0.54305005", "0.54242045", "0.54232556", "0.54213965", "0.54207563", "0.5381579", "0.5380468", "0.53528064", "0.53517765", "0.53517765", "0.5350544", "0.5340435", "0.5337575" ]
0.59407884
10
Load row values from recordset
function LoadListRowValues(&$rs) { $this->gjd_id->setDbValue($rs->fields('gjd_id')); $this->gjm_id->setDbValue($rs->fields('gjm_id')); $this->peg_id->setDbValue($rs->fields('peg_id')); $this->b_mn->setDbValue($rs->fields('b_mn')); $this->b_sn->setDbValue($rs->fields('b_sn')); $this->b_sl->setDbValue($rs->fields('b_sl')); $this->b_rb->setDbValue($rs->fields('b_rb')); $this->b_km->setDbValue($rs->fields('b_km')); $this->b_jm->setDbValue($rs->fields('b_jm')); $this->b_sb->setDbValue($rs->fields('b_sb')); $this->l_mn->setDbValue($rs->fields('l_mn')); $this->l_sn->setDbValue($rs->fields('l_sn')); $this->l_sl->setDbValue($rs->fields('l_sl')); $this->l_rb->setDbValue($rs->fields('l_rb')); $this->l_km->setDbValue($rs->fields('l_km')); $this->l_jm->setDbValue($rs->fields('l_jm')); $this->l_sb->setDbValue($rs->fields('l_sb')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->datetime->setDbValue($rs->fields('datetime'));\r\n\t\t$this->script->setDbValue($rs->fields('script'));\r\n\t\t$this->user->setDbValue($rs->fields('user'));\r\n\t\t$this->action->setDbValue($rs->fields('action'));\r\n\t\t$this->_table->setDbValue($rs->fields('table'));\r\n\t\t$this->_field->setDbValue($rs->fields('field'));\r\n\t\t$this->keyvalue->setDbValue($rs->fields('keyvalue'));\r\n\t\t$this->oldvalue->setDbValue($rs->fields('oldvalue'));\r\n\t\t$this->newvalue->setDbValue($rs->fields('newvalue'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $planilla;\n\t\t$planilla->idPlanilla->setDbValue($rs->fields('idPlanilla'));\n\t\t$planilla->Nombre->setDbValue($rs->fields('Nombre'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $tbl_slide;\n\t\t$tbl_slide->banner_id->setDbValue($rs->fields('banner_id'));\n\t\t$tbl_slide->title->setDbValue($rs->fields('title'));\n\t\t$tbl_slide->images->Upload->DbValue = $rs->fields('images');\n\t\t$tbl_slide->description->setDbValue($rs->fields('description'));\n\t\t$tbl_slide->order_by->setDbValue($rs->fields('order_by'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fbid->setDbValue($rs->fields('fbid'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->validated_mobile->setDbValue($rs->fields('validated_mobile'));\n\t\t$this->role_id->setDbValue($rs->fields('role_id'));\n\t\t$this->image->setDbValue($rs->fields('image'));\n\t\t$this->newsletter->setDbValue($rs->fields('newsletter'));\n\t\t$this->points->setDbValue($rs->fields('points'));\n\t\t$this->last_modified->setDbValue($rs->fields('last_modified'));\n\t\t$this->p2->setDbValue($rs->fields('p2'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $fs_multijoin_v;\r\n\t\t$fs_multijoin_v->id->setDbValue($rs->fields('id'));\r\n\t\t$fs_multijoin_v->mount->setDbValue($rs->fields('mount'));\r\n\t\t$fs_multijoin_v->path->setDbValue($rs->fields('path'));\r\n\t\t$fs_multijoin_v->parent->setDbValue($rs->fields('parent'));\r\n\t\t$fs_multijoin_v->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$fs_multijoin_v->name->setDbValue($rs->fields('name'));\r\n\t\t$fs_multijoin_v->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$fs_multijoin_v->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$fs_multijoin_v->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$fs_multijoin_v->type->setDbValue($rs->fields('type'));\r\n\t\t$fs_multijoin_v->CONTACT->setDbValue($rs->fields('CONTACT'));\r\n\t\t$fs_multijoin_v->CONTACT2->setDbValue($rs->fields('CONTACT2'));\r\n\t\t$fs_multijoin_v->RESCOMP->setDbValue($rs->fields('RESCOMP'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $scholarship_package;\n\t\t$scholarship_package->scholarship_package_id->setDbValue($rs->fields('scholarship_package_id'));\n\t\t$scholarship_package->start_date->setDbValue($rs->fields('start_date'));\n\t\t$scholarship_package->end_date->setDbValue($rs->fields('end_date'));\n\t\t$scholarship_package->status->setDbValue($rs->fields('status'));\n\t\t$scholarship_package->annual_amount->setDbValue($rs->fields('annual_amount'));\n\t\t$scholarship_package->grant_package_grant_package_id->setDbValue($rs->fields('grant_package_grant_package_id'));\n\t\t$scholarship_package->sponsored_student_sponsored_student_id->setDbValue($rs->fields('sponsored_student_sponsored_student_id'));\n\t\t$scholarship_package->scholarship_type->setDbValue($rs->fields('scholarship_type'));\n\t\t$scholarship_package->scholarship_type_scholarship_type->setDbValue($rs->fields('scholarship_type_scholarship_type'));\n\t\t$scholarship_package->group_id->setDbValue($rs->fields('group_id'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->spec_id->setDbValue($rs->fields('spec_id'));\n\t\t$this->model_id->setDbValue($rs->fields('model_id'));\n\t\t$this->title->setDbValue($rs->fields('title'));\n\t\t$this->description->setDbValue($rs->fields('description'));\n\t\t$this->s_order->setDbValue($rs->fields('s_order'));\n\t\t$this->status->setDbValue($rs->fields('status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $financial_year;\n\t\t$financial_year->financial_year_id->setDbValue($rs->fields('financial_year_id'));\n\t\t$financial_year->year_name->setDbValue($rs->fields('year_name'));\n\t\t$financial_year->date_start->setDbValue($rs->fields('date_start'));\n\t\t$financial_year->date_end->setDbValue($rs->fields('date_end'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->identries->setDbValue($rs->fields('identries'));\r\n\t\t$this->domain_id->setDbValue($rs->fields('domain_id'));\r\n\t\t$this->hash_content->setDbValue($rs->fields('hash_content'));\r\n\t\t$this->fuente->setDbValue($rs->fields('fuente'));\r\n\t\t$this->published->setDbValue($rs->fields('published'));\r\n\t\t$this->updated->setDbValue($rs->fields('updated'));\r\n\t\t$this->categorias->setDbValue($rs->fields('categorias'));\r\n\t\t$this->titulo->setDbValue($rs->fields('titulo'));\r\n\t\t$this->contenido->setDbValue($rs->fields('contenido'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->islive->setDbValue($rs->fields('islive'));\r\n\t\t$this->thumbnail->setDbValue($rs->fields('thumbnail'));\r\n\t\t$this->reqdate->setDbValue($rs->fields('reqdate'));\r\n\t\t$this->author->setDbValue($rs->fields('author'));\r\n\t\t$this->trans_en->setDbValue($rs->fields('trans_en'));\r\n\t\t$this->trans_es->setDbValue($rs->fields('trans_es'));\r\n\t\t$this->trans_fr->setDbValue($rs->fields('trans_fr'));\r\n\t\t$this->trans_it->setDbValue($rs->fields('trans_it'));\r\n\t\t$this->fid->setDbValue($rs->fields('fid'));\r\n\t\t$this->fmd5->setDbValue($rs->fields('fmd5'));\r\n\t\t$this->tool_id->setDbValue($rs->fields('tool_id'));\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $st_peserta_kelas_kelompok;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$st_peserta_kelas_kelompok->Row_Selected($row);\r\n\t\t$st_peserta_kelas_kelompok->identitas->setDbValue($rs->fields('identitas'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->setDbValue($rs->fields('kode_otomatis_kelompok'));\r\n\t\t$st_peserta_kelas_kelompok->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $patient_detail;\n\t\t$patient_detail->DetailNo->setDbValue($rs->fields('DetailNo'));\n\t\t$patient_detail->StudyID->setDbValue($rs->fields('StudyID'));\n\t\t$patient_detail->PatientID->setDbValue($rs->fields('PatientID'));\n\t\t$patient_detail->StudyDate->setDbValue($rs->fields('StudyDate'));\n\t\t$patient_detail->ContentDate->setDbValue($rs->fields('ContentDate'));\n\t\t$patient_detail->StudyTime->setDbValue($rs->fields('StudyTime'));\n\t\t$patient_detail->ContentTime->setDbValue($rs->fields('ContentTime'));\n\t\t$patient_detail->InstitutionName->setDbValue($rs->fields('InstitutionName'));\n\t\t$patient_detail->InstitutionAddress->setDbValue($rs->fields('InstitutionAddress'));\n\t\t$patient_detail->InstitutionDepartmentName->setDbValue($rs->fields('InstitutionDepartmentName'));\n\t\t$patient_detail->Modality->setDbValue($rs->fields('Modality'));\n\t\t$patient_detail->OperatorName->setDbValue($rs->fields('OperatorName'));\n\t\t$patient_detail->Manufacturer->setDbValue($rs->fields('Manufacturer'));\n\t\t$patient_detail->BodyPartExamined->setDbValue($rs->fields('BodyPartExamined'));\n\t\t$patient_detail->ProtocolName->setDbValue($rs->fields('ProtocolName'));\n\t\t$patient_detail->AccessionNumber->setDbValue($rs->fields('AccessionNumber'));\n\t\t$patient_detail->InstanceNumber->setDbValue($rs->fields('InstanceNumber'));\n\t\t$patient_detail->Status->setDbValue($rs->fields('Status'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->idservicio_medico_prestado->setDbValue($rs->fields('idservicio_medico_prestado'));\n\t\t$this->idcuenta->setDbValue($rs->fields('idcuenta'));\n\t\t$this->fecha_inicio->setDbValue($rs->fields('fecha_inicio'));\n\t\t$this->fecha_final->setDbValue($rs->fields('fecha_final'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Title->setDbValue($row['Title']);\n\t\t$this->LV->setDbValue($row['LV']);\n\t\t$this->Type->setDbValue($row['Type']);\n\t\t$this->ResetTime->setDbValue($row['ResetTime']);\n\t\t$this->ResetType->setDbValue($row['ResetType']);\n\t\t$this->CompleteTask->setDbValue($row['CompleteTask']);\n\t\t$this->Occupation->setDbValue($row['Occupation']);\n\t\t$this->Target->setDbValue($row['Target']);\n\t\t$this->Data->setDbValue($row['Data']);\n\t\t$this->Reward_Gold->setDbValue($row['Reward_Gold']);\n\t\t$this->Reward_Diamonds->setDbValue($row['Reward_Diamonds']);\n\t\t$this->Reward_EXP->setDbValue($row['Reward_EXP']);\n\t\t$this->Reward_Goods->setDbValue($row['Reward_Goods']);\n\t\t$this->Info->setDbValue($row['Info']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "function LoadRowValues(&$rs) {\r\r\tglobal $ratings;\r\r\t$ratings->id->setDbValue($rs->fields('id'));\r\r\t$ratings->rating->setDbValue($rs->fields('rating'));\r\r\t$ratings->domain->setDbValue($rs->fields('domain'));\r\r\t$ratings->id_2->setDbValue($rs->fields('id_2'));\r\r}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->auc_date->setDbValue($row['auc_date']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->auc_place->setDbValue($row['auc_place']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->auc_notes->setDbValue($row['auc_notes']);\n\t\t$this->total_sack->setDbValue($row['total_sack']);\n\t\t$this->total_netto->setDbValue($row['total_netto']);\n\t\t$this->total_gross->setDbValue($row['total_gross']);\n\t\t$this->auc_status->setDbValue($row['auc_status']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $responsable;\n\t\t$responsable->idResponsable->setDbValue($rs->fields('idResponsable'));\n\t\t$responsable->idGerente->setDbValue($rs->fields('idGerente'));\n\t\t$responsable->idMer->setDbValue($rs->fields('idMer'));\n\t\t$responsable->fecha->setDbValue($rs->fields('fecha'));\n\t\t$responsable->habilitado->setDbValue($rs->fields('habilitado'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->period_id->setDbValue($rs->fields('period_id'));\n\t\t$this->person_id->setDbValue($rs->fields('person_id'));\n\t\t$this->tipejurnal_id->setDbValue($rs->fields('tipejurnal_id'));\n\t\t$this->nomer->setDbValue($rs->fields('nomer'));\n\t\t$this->createon->setDbValue($rs->fields('createon'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t}", "protected function loadRow() {}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Venta_Eq->setDbValue($rs->fields('Id_Venta_Eq'));\r\n\t\t$this->CLIENTE->setDbValue($rs->fields('CLIENTE'));\r\n\t\t$this->Id_Articulo->setDbValue($rs->fields('Id_Articulo'));\r\n\t\t$this->Acabado_eq->setDbValue($rs->fields('Acabado_eq'));\r\n\t\t$this->Num_IMEI->setDbValue($rs->fields('Num_IMEI'));\r\n\t\t$this->Num_ICCID->setDbValue($rs->fields('Num_ICCID'));\r\n\t\t$this->Num_CEL->setDbValue($rs->fields('Num_CEL'));\r\n\t\t$this->Causa->setDbValue($rs->fields('Causa'));\r\n\t\t$this->Con_SIM->setDbValue($rs->fields('Con_SIM'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->PrecioUnitario->setDbValue($rs->fields('PrecioUnitario'));\r\n\t\t$this->MontoDescuento->setDbValue($rs->fields('MontoDescuento'));\r\n\t\t$this->Precio_SIM->setDbValue($rs->fields('Precio_SIM'));\r\n\t\t$this->Monto->setDbValue($rs->fields('Monto'));\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->auc_date->DbValue = $row['auc_date'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->auc_place->DbValue = $row['auc_place'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->auc_notes->DbValue = $row['auc_notes'];\n\t\t$this->total_sack->DbValue = $row['total_sack'];\n\t\t$this->total_netto->DbValue = $row['total_netto'];\n\t\t$this->total_gross->DbValue = $row['total_gross'];\n\t\t$this->auc_status->DbValue = $row['auc_status'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t}", "function LoadRowValues(&$rs) {\n\tglobal $dpp_proveedores;\n\t$dpp_proveedores->provee_id->setDbValue($rs->fields('provee_id'));\n\t$dpp_proveedores->provee_rut->setDbValue($rs->fields('provee_rut'));\n\t$dpp_proveedores->provee_dig->setDbValue($rs->fields('provee_dig'));\n\t$dpp_proveedores->provee_cat_juri->setDbValue($rs->fields('provee_cat_juri'));\n\t$dpp_proveedores->provee_nombre->setDbValue($rs->fields('provee_nombre'));\n\t$dpp_proveedores->provee_paterno->setDbValue($rs->fields('provee_paterno'));\n\t$dpp_proveedores->provee_materno->setDbValue($rs->fields('provee_materno'));\n\t$dpp_proveedores->provee_dir->setDbValue($rs->fields('provee_dir'));\n\t$dpp_proveedores->provee_fono->setDbValue($rs->fields('provee_fono'));\n}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kelas->setDbValue($rs->fields('kelas'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->kode_tindakan->setDbValue($rs->fields('kode_tindakan'));\n\t\t$this->qty->setDbValue($rs->fields('qty'));\n\t\t$this->tarif->setDbValue($rs->fields('tarif'));\n\t\t$this->bhp->setDbValue($rs->fields('bhp'));\n\t\t$this->user->setDbValue($rs->fields('user'));\n\t\t$this->nama_tindakan->setDbValue($rs->fields('nama_tindakan'));\n\t\t$this->kelompok_tindakan->setDbValue($rs->fields('kelompok_tindakan'));\n\t\t$this->kelompok1->setDbValue($rs->fields('kelompok1'));\n\t\t$this->kelompok2->setDbValue($rs->fields('kelompok2'));\n\t\t$this->kode_dokter->setDbValue($rs->fields('kode_dokter'));\n\t\t$this->no_ruang->setDbValue($rs->fields('no_ruang'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $t_tinbai_mainsite;\n\t\t$t_tinbai_mainsite->PK_TINBAI_ID->setDbValue($rs->fields('PK_TINBAI_ID'));\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->setDbValue($rs->fields('FK_DMGIOITHIEU_ID'));\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->setDbValue($rs->fields('FK_DMTUYENSINH_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->setDbValue($rs->fields('FK_DTSVTUONGLAI_ID'));\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->setDbValue($rs->fields('FK_DTSVDANGHOC_ID'));\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->setDbValue($rs->fields('FK_DTCUUSV_ID'));\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->setDbValue($rs->fields('FK_DTDOANHNGHIEP_ID'));\n\t\t$t_tinbai_mainsite->C_TITLE->setDbValue($rs->fields('C_TITLE'));\n\t\t$t_tinbai_mainsite->C_SUMARY->setDbValue($rs->fields('C_SUMARY'));\n\t\t$t_tinbai_mainsite->C_CONTENTS->setDbValue($rs->fields('C_CONTENTS'));\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->setDbValue($rs->fields('C_HIT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_PIC_HIT->Upload->DbValue = $rs->fields('C_PIC_HIT');\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->setDbValue($rs->fields('C_NEW_MYSEFLT'));\n\t\t$t_tinbai_mainsite->C_PIC_MYSEFLT->Upload->DbValue = $rs->fields('C_PIC_MYSEFLT');\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->setDbValue($rs->fields('C_COMMENT_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->setDbValue($rs->fields('C_ORDER_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->setDbValue($rs->fields('C_STATUS_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->setDbValue($rs->fields('C_VISITOR_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->setDbValue($rs->fields('C_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->setDbValue($rs->fields('C_TIME_ACTIVE_MAINSITE'));\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->setDbValue($rs->fields('FK_NGUOIDUNGID_MAINSITE'));\n\t\t$t_tinbai_mainsite->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$t_tinbai_mainsite->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$t_tinbai_mainsite->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$t_tinbai_mainsite->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->setDbValue($rs->fields('FK_EDITOR_ID'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->nombre_contacto->setDbValue($row['nombre_contacto']);\n\t\t$this->name->setDbValue($row['name']);\n\t\t$this->lastname->setDbValue($row['lastname']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->address->setDbValue($row['address']);\n\t\t$this->phone->setDbValue($row['phone']);\n\t\t$this->cell->setDbValue($row['cell']);\n\t\t$this->is_active->setDbValue($row['is_active']);\n\t\t$this->created_at->setDbValue($row['created_at']);\n\t\t$this->id_sucursal->setDbValue($row['id_sucursal']);\n\t\t$this->documentos->setDbValue($row['documentos']);\n\t\t$this->DateModified->setDbValue($row['DateModified']);\n\t\t$this->DateDeleted->setDbValue($row['DateDeleted']);\n\t\t$this->CreatedBy->setDbValue($row['CreatedBy']);\n\t\t$this->ModifiedBy->setDbValue($row['ModifiedBy']);\n\t\t$this->DeletedBy->setDbValue($row['DeletedBy']);\n\t\t$this->latitud->setDbValue($row['latitud']);\n\t\t$this->longitud->setDbValue($row['longitud']);\n\t\t$this->tipoinmueble->setDbValue($row['tipoinmueble']);\n\t\t$this->id_ciudad_inmueble->setDbValue($row['id_ciudad_inmueble']);\n\t\t$this->id_provincia_inmueble->setDbValue($row['id_provincia_inmueble']);\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\tif (is_array($this->imagen_inmueble01->Upload->DbValue) || is_object($this->imagen_inmueble01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble01->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble01->Upload->DbValue);\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\tif (is_array($this->imagen_inmueble02->Upload->DbValue) || is_object($this->imagen_inmueble02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble02->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble02->Upload->DbValue);\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\tif (is_array($this->imagen_inmueble03->Upload->DbValue) || is_object($this->imagen_inmueble03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble03->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble03->Upload->DbValue);\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\tif (is_array($this->imagen_inmueble04->Upload->DbValue) || is_object($this->imagen_inmueble04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble04->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble04->Upload->DbValue);\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\tif (is_array($this->imagen_inmueble05->Upload->DbValue) || is_object($this->imagen_inmueble05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble05->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble05->Upload->DbValue);\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\tif (is_array($this->imagen_inmueble06->Upload->DbValue) || is_object($this->imagen_inmueble06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble06->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble06->Upload->DbValue);\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\tif (is_array($this->imagen_inmueble07->Upload->DbValue) || is_object($this->imagen_inmueble07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble07->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble07->Upload->DbValue);\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\tif (is_array($this->imagen_inmueble08->Upload->DbValue) || is_object($this->imagen_inmueble08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_inmueble08->Upload->DbValue = ew_BytesToStr($this->imagen_inmueble08->Upload->DbValue);\n\t\t$this->tipovehiculo->setDbValue($row['tipovehiculo']);\n\t\t$this->id_ciudad_vehiculo->setDbValue($row['id_ciudad_vehiculo']);\n\t\t$this->id_provincia_vehiculo->setDbValue($row['id_provincia_vehiculo']);\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\tif (is_array($this->imagen_vehiculo01->Upload->DbValue) || is_object($this->imagen_vehiculo01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo01->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo01->Upload->DbValue);\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\tif (is_array($this->imagen_vehiculo02->Upload->DbValue) || is_object($this->imagen_vehiculo02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo02->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo02->Upload->DbValue);\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\tif (is_array($this->imagen_vehiculo03->Upload->DbValue) || is_object($this->imagen_vehiculo03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo03->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo03->Upload->DbValue);\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\tif (is_array($this->imagen_vehiculo04->Upload->DbValue) || is_object($this->imagen_vehiculo04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo04->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo04->Upload->DbValue);\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\tif (is_array($this->imagen_vehiculo05->Upload->DbValue) || is_object($this->imagen_vehiculo05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo05->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo05->Upload->DbValue);\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\tif (is_array($this->imagen_vehiculo06->Upload->DbValue) || is_object($this->imagen_vehiculo06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo06->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo06->Upload->DbValue);\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\tif (is_array($this->imagen_vehiculo07->Upload->DbValue) || is_object($this->imagen_vehiculo07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo07->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo07->Upload->DbValue);\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\tif (is_array($this->imagen_vehiculo08->Upload->DbValue) || is_object($this->imagen_vehiculo08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_vehiculo08->Upload->DbValue = ew_BytesToStr($this->imagen_vehiculo08->Upload->DbValue);\n\t\t$this->tipomaquinaria->setDbValue($row['tipomaquinaria']);\n\t\t$this->id_ciudad_maquinaria->setDbValue($row['id_ciudad_maquinaria']);\n\t\t$this->id_provincia_maquinaria->setDbValue($row['id_provincia_maquinaria']);\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\tif (is_array($this->imagen_maquinaria01->Upload->DbValue) || is_object($this->imagen_maquinaria01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria01->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria01->Upload->DbValue);\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\tif (is_array($this->imagen_maquinaria02->Upload->DbValue) || is_object($this->imagen_maquinaria02->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria02->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria02->Upload->DbValue);\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\tif (is_array($this->imagen_maquinaria03->Upload->DbValue) || is_object($this->imagen_maquinaria03->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria03->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria03->Upload->DbValue);\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\tif (is_array($this->imagen_maquinaria04->Upload->DbValue) || is_object($this->imagen_maquinaria04->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria04->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria04->Upload->DbValue);\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\tif (is_array($this->imagen_maquinaria05->Upload->DbValue) || is_object($this->imagen_maquinaria05->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria05->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria05->Upload->DbValue);\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\tif (is_array($this->imagen_maquinaria06->Upload->DbValue) || is_object($this->imagen_maquinaria06->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria06->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria06->Upload->DbValue);\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\tif (is_array($this->imagen_maquinaria07->Upload->DbValue) || is_object($this->imagen_maquinaria07->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria07->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria07->Upload->DbValue);\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\tif (is_array($this->imagen_maquinaria08->Upload->DbValue) || is_object($this->imagen_maquinaria08->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_maquinaria08->Upload->DbValue = ew_BytesToStr($this->imagen_maquinaria08->Upload->DbValue);\n\t\t$this->tipomercaderia->setDbValue($row['tipomercaderia']);\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\tif (is_array($this->imagen_mercaderia01->Upload->DbValue) || is_object($this->imagen_mercaderia01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_mercaderia01->Upload->DbValue = ew_BytesToStr($this->imagen_mercaderia01->Upload->DbValue);\n\t\t$this->documento_mercaderia->setDbValue($row['documento_mercaderia']);\n\t\t$this->tipoespecial->setDbValue($row['tipoespecial']);\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\tif (is_array($this->imagen_tipoespecial01->Upload->DbValue) || is_object($this->imagen_tipoespecial01->Upload->DbValue)) // Byte array\n\t\t\t$this->imagen_tipoespecial01->Upload->DbValue = ew_BytesToStr($this->imagen_tipoespecial01->Upload->DbValue);\n\t\t$this->email_contacto->setDbValue($row['email_contacto']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->idfb_posts->setDbValue($rs->fields('idfb_posts'));\r\n\t\t$this->id->setDbValue($rs->fields('id'));\r\n\t\t$this->created_time->setDbValue($rs->fields('created_time'));\r\n\t\t$this->actions->setDbValue($rs->fields('actions'));\r\n\t\t$this->icon->setDbValue($rs->fields('icon'));\r\n\t\t$this->is_published->setDbValue($rs->fields('is_published'));\r\n\t\t$this->message->setDbValue($rs->fields('message'));\r\n\t\t$this->link->setDbValue($rs->fields('link'));\r\n\t\t$this->object_id->setDbValue($rs->fields('object_id'));\r\n\t\t$this->picture->setDbValue($rs->fields('picture'));\r\n\t\t$this->privacy->setDbValue($rs->fields('privacy'));\r\n\t\t$this->promotion_status->setDbValue($rs->fields('promotion_status'));\r\n\t\t$this->timeline_visibility->setDbValue($rs->fields('timeline_visibility'));\r\n\t\t$this->type->setDbValue($rs->fields('type'));\r\n\t\t$this->updated_time->setDbValue($rs->fields('updated_time'));\r\n\t\t$this->caption->setDbValue($rs->fields('caption'));\r\n\t\t$this->description->setDbValue($rs->fields('description'));\r\n\t\t$this->name->setDbValue($rs->fields('name'));\r\n\t\t$this->source->setDbValue($rs->fields('source'));\r\n\t\t$this->from->setDbValue($rs->fields('from'));\r\n\t\t$this->to->setDbValue($rs->fields('to'));\r\n\t\t$this->comments->setDbValue($rs->fields('comments'));\r\n\t\t$this->id_grupo->setDbValue($rs->fields('id_grupo'));\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->period_id->DbValue = $row['period_id'];\n\t\t$this->person_id->DbValue = $row['person_id'];\n\t\t$this->tipejurnal_id->DbValue = $row['tipejurnal_id'];\n\t\t$this->nomer->DbValue = $row['nomer'];\n\t\t$this->createon->DbValue = $row['createon'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $selection_grade_point;\n\t\t$selection_grade_point->selection_grade_points_id->setDbValue($rs->fields('selection_grade_points_id'));\n\t\t$selection_grade_point->grade_point->setDbValue($rs->fields('grade_point'));\n\t\t$selection_grade_point->min_grade->setDbValue($rs->fields('min_grade'));\n\t\t$selection_grade_point->max_grade->setDbValue($rs->fields('max_grade'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->unid->setDbValue($row['unid']);\n\t\t$this->u_id->setDbValue($row['u_id']);\n\t\t$this->acl_id->setDbValue($row['acl_id']);\n\t\t$this->Name->setDbValue($row['Name']);\n\t\t$this->Basics->setDbValue($row['Basics']);\n\t\t$this->HP->setDbValue($row['HP']);\n\t\t$this->MP->setDbValue($row['MP']);\n\t\t$this->AD->setDbValue($row['AD']);\n\t\t$this->AP->setDbValue($row['AP']);\n\t\t$this->Defense->setDbValue($row['Defense']);\n\t\t$this->Hit->setDbValue($row['Hit']);\n\t\t$this->Dodge->setDbValue($row['Dodge']);\n\t\t$this->Crit->setDbValue($row['Crit']);\n\t\t$this->AbsorbHP->setDbValue($row['AbsorbHP']);\n\t\t$this->ADPTV->setDbValue($row['ADPTV']);\n\t\t$this->ADPTR->setDbValue($row['ADPTR']);\n\t\t$this->APPTR->setDbValue($row['APPTR']);\n\t\t$this->APPTV->setDbValue($row['APPTV']);\n\t\t$this->ImmuneDamage->setDbValue($row['ImmuneDamage']);\n\t\t$this->Intro->setDbValue($row['Intro']);\n\t\t$this->ExclusiveSkills->setDbValue($row['ExclusiveSkills']);\n\t\t$this->TransferDemand->setDbValue($row['TransferDemand']);\n\t\t$this->TransferLevel->setDbValue($row['TransferLevel']);\n\t\t$this->FormerOccupation->setDbValue($row['FormerOccupation']);\n\t\t$this->Belong->setDbValue($row['Belong']);\n\t\t$this->AttackEffect->setDbValue($row['AttackEffect']);\n\t\t$this->AttackTips->setDbValue($row['AttackTips']);\n\t\t$this->MagicResistance->setDbValue($row['MagicResistance']);\n\t\t$this->IgnoreShield->setDbValue($row['IgnoreShield']);\n\t\t$this->DATETIME->setDbValue($row['DATETIME']);\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->idservicio_medico_prestado->DbValue = $row['idservicio_medico_prestado'];\n\t\t$this->idcuenta->DbValue = $row['idcuenta'];\n\t\t$this->fecha_inicio->DbValue = $row['fecha_inicio'];\n\t\t$this->fecha_final->DbValue = $row['fecha_final'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\t$this->master_id->setDbValue($row['master_id']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->jenis->setDbValue($row['jenis']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->currency->setDbValue($row['currency']);\n\t\t$this->bid_step->setDbValue($row['bid_step']);\n\t\t$this->rate->setDbValue($row['rate']);\n\t\t$this->winner_id->setDbValue($row['winner_id']);\n\t\t$this->sold_bid->setDbValue($row['sold_bid']);\n\t\t$this->proforma_number->setDbValue($row['proforma_number']);\n\t\t$this->proforma_amount->setDbValue($row['proforma_amount']);\n\t\t$this->proforma_status->setDbValue($row['proforma_status']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Pase->setDbValue($rs->fields('Id_Pase'));\r\n\t\t$this->Serie_Equipo->setDbValue($rs->fields('Serie_Equipo'));\r\n\t\t$this->Id_Hardware->setDbValue($rs->fields('Id_Hardware'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Modelo_Net->setDbValue($rs->fields('Modelo_Net'));\r\n\t\t$this->Marca_Arranque->setDbValue($rs->fields('Marca_Arranque'));\r\n\t\t$this->Nombre_Titular->setDbValue($rs->fields('Nombre_Titular'));\r\n\t\t$this->Dni_Titular->setDbValue($rs->fields('Dni_Titular'));\r\n\t\t$this->Cuil_Titular->setDbValue($rs->fields('Cuil_Titular'));\r\n\t\t$this->Nombre_Tutor->setDbValue($rs->fields('Nombre_Tutor'));\r\n\t\t$this->DniTutor->setDbValue($rs->fields('DniTutor'));\r\n\t\t$this->Domicilio->setDbValue($rs->fields('Domicilio'));\r\n\t\t$this->Tel_Tutor->setDbValue($rs->fields('Tel_Tutor'));\r\n\t\t$this->CelTutor->setDbValue($rs->fields('CelTutor'));\r\n\t\t$this->Cue_Establecimiento_Alta->setDbValue($rs->fields('Cue_Establecimiento_Alta'));\r\n\t\t$this->Escuela_Alta->setDbValue($rs->fields('Escuela_Alta'));\r\n\t\t$this->Directivo_Alta->setDbValue($rs->fields('Directivo_Alta'));\r\n\t\t$this->Cuil_Directivo_Alta->setDbValue($rs->fields('Cuil_Directivo_Alta'));\r\n\t\t$this->Dpto_Esc_alta->setDbValue($rs->fields('Dpto_Esc_alta'));\r\n\t\t$this->Localidad_Esc_Alta->setDbValue($rs->fields('Localidad_Esc_Alta'));\r\n\t\t$this->Domicilio_Esc_Alta->setDbValue($rs->fields('Domicilio_Esc_Alta'));\r\n\t\t$this->Rte_Alta->setDbValue($rs->fields('Rte_Alta'));\r\n\t\t$this->Tel_Rte_Alta->setDbValue($rs->fields('Tel_Rte_Alta'));\r\n\t\t$this->Email_Rte_Alta->setDbValue($rs->fields('Email_Rte_Alta'));\r\n\t\t$this->Serie_Server_Alta->setDbValue($rs->fields('Serie_Server_Alta'));\r\n\t\t$this->Cue_Establecimiento_Baja->setDbValue($rs->fields('Cue_Establecimiento_Baja'));\r\n\t\t$this->Escuela_Baja->setDbValue($rs->fields('Escuela_Baja'));\r\n\t\t$this->Directivo_Baja->setDbValue($rs->fields('Directivo_Baja'));\r\n\t\t$this->Cuil_Directivo_Baja->setDbValue($rs->fields('Cuil_Directivo_Baja'));\r\n\t\t$this->Dpto_Esc_Baja->setDbValue($rs->fields('Dpto_Esc_Baja'));\r\n\t\t$this->Localidad_Esc_Baja->setDbValue($rs->fields('Localidad_Esc_Baja'));\r\n\t\t$this->Domicilio_Esc_Baja->setDbValue($rs->fields('Domicilio_Esc_Baja'));\r\n\t\t$this->Rte_Baja->setDbValue($rs->fields('Rte_Baja'));\r\n\t\t$this->Tel_Rte_Baja->setDbValue($rs->fields('Tel_Rte_Baja'));\r\n\t\t$this->Email_Rte_Baja->setDbValue($rs->fields('Email_Rte_Baja'));\r\n\t\t$this->Serie_Server_Baja->setDbValue($rs->fields('Serie_Server_Baja'));\r\n\t\t$this->Fecha_Pase->setDbValue($rs->fields('Fecha_Pase'));\r\n\t\t$this->Id_Estado_Pase->setDbValue($rs->fields('Id_Estado_Pase'));\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $rs->fields('Ruta_Archivo');\r\n\t\t$this->Ruta_Archivo->CurrentValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn, $rekeningju;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row =& $rs->fields;\r\n\t\t$rekeningju->Row_Selected($row);\r\n\t\t$rekeningju->NoRek->setDbValue($rs->fields('NoRek'));\r\n\t\t$rekeningju->Keterangan->setDbValue($rs->fields('Keterangan'));\r\n\t\t$rekeningju->debet->setDbValue($rs->fields('debet'));\r\n\t\t$rekeningju->kredit->setDbValue($rs->fields('kredit'));\r\n\t\t$rekeningju->kode_bukti->setDbValue($rs->fields('kode_bukti'));\r\n\t\t$rekeningju->tanggal->setDbValue($rs->fields('tanggal'));\r\n\t\t$rekeningju->kode_otomatis_master->setDbValue($rs->fields('kode_otomatis_master'));\r\n\t\t$rekeningju->tanggal_nota->setDbValue($rs->fields('tanggal_nota'));\r\n\t\t$rekeningju->kode_otomatis->setDbValue($rs->fields('kode_otomatis'));\r\n\t\t$rekeningju->kode_otomatis_tingkat->setDbValue($rs->fields('kode_otomatis_tingkat'));\r\n\t\t$rekeningju->id->setDbValue($rs->fields('id'));\r\n\t\t$rekeningju->apakah_original->setDbValue($rs->fields('apakah_original'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->_email->setDbValue($rs->fields('email'));\n\t\t$this->password->setDbValue($rs->fields('password'));\n\t\t$this->companyname->setDbValue($rs->fields('companyname'));\n\t\t$this->servicetime->setDbValue($rs->fields('servicetime'));\n\t\t$this->country->setDbValue($rs->fields('country'));\n\t\t$this->phone->setDbValue($rs->fields('phone'));\n\t\t$this->skype->setDbValue($rs->fields('skype'));\n\t\t$this->website->setDbValue($rs->fields('website'));\n\t\t$this->linkedin->setDbValue($rs->fields('linkedin'));\n\t\t$this->facebook->setDbValue($rs->fields('facebook'));\n\t\t$this->twitter->setDbValue($rs->fields('twitter'));\n\t\t$this->active_code->setDbValue($rs->fields('active_code'));\n\t\t$this->identification->setDbValue($rs->fields('identification'));\n\t\t$this->link_expired->setDbValue($rs->fields('link_expired'));\n\t\t$this->isactive->setDbValue($rs->fields('isactive'));\n\t\t$this->pio->setDbValue($rs->fields('pio'));\n\t\t$this->google->setDbValue($rs->fields('google'));\n\t\t$this->instagram->setDbValue($rs->fields('instagram'));\n\t\t$this->account_type->setDbValue($rs->fields('account_type'));\n\t\t$this->logo->setDbValue($rs->fields('logo'));\n\t\t$this->profilepic->setDbValue($rs->fields('profilepic'));\n\t\t$this->mailref->setDbValue($rs->fields('mailref'));\n\t\t$this->deleted->setDbValue($rs->fields('deleted'));\n\t\t$this->deletefeedback->setDbValue($rs->fields('deletefeedback'));\n\t\t$this->account_id->setDbValue($rs->fields('account_id'));\n\t\t$this->start_date->setDbValue($rs->fields('start_date'));\n\t\t$this->end_date->setDbValue($rs->fields('end_date'));\n\t\t$this->year_moth->setDbValue($rs->fields('year_moth'));\n\t\t$this->registerdate->setDbValue($rs->fields('registerdate'));\n\t\t$this->login_type->setDbValue($rs->fields('login_type'));\n\t\t$this->accountstatus->setDbValue($rs->fields('accountstatus'));\n\t\t$this->ispay->setDbValue($rs->fields('ispay'));\n\t\t$this->profilelink->setDbValue($rs->fields('profilelink'));\n\t\t$this->source->setDbValue($rs->fields('source'));\n\t\t$this->agree->setDbValue($rs->fields('agree'));\n\t\t$this->balance->setDbValue($rs->fields('balance'));\n\t\t$this->job_title->setDbValue($rs->fields('job_title'));\n\t\t$this->projects->setDbValue($rs->fields('projects'));\n\t\t$this->opportunities->setDbValue($rs->fields('opportunities'));\n\t\t$this->isconsaltant->setDbValue($rs->fields('isconsaltant'));\n\t\t$this->isagent->setDbValue($rs->fields('isagent'));\n\t\t$this->isinvestor->setDbValue($rs->fields('isinvestor'));\n\t\t$this->isbusinessman->setDbValue($rs->fields('isbusinessman'));\n\t\t$this->isprovider->setDbValue($rs->fields('isprovider'));\n\t\t$this->isproductowner->setDbValue($rs->fields('isproductowner'));\n\t\t$this->states->setDbValue($rs->fields('states'));\n\t\t$this->cities->setDbValue($rs->fields('cities'));\n\t\t$this->offers->setDbValue($rs->fields('offers'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->fecha_tamizaje->setDbValue($row['fecha_tamizaje']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->dias->setDbValue($row['dias']);\n\t\t$this->semanas->setDbValue($row['semanas']);\n\t\t$this->meses->setDbValue($row['meses']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->discapacidad->setDbValue($row['discapacidad']);\n\t\t$this->id_tipodiscapacidad->setDbValue($row['id_tipodiscapacidad']);\n\t\t$this->resultado->setDbValue($row['resultado']);\n\t\t$this->resultadotamizaje->setDbValue($row['resultadotamizaje']);\n\t\t$this->tapon->setDbValue($row['tapon']);\n\t\t$this->tipo->setDbValue($row['tipo']);\n\t\t$this->repetirprueba->setDbValue($row['repetirprueba']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_apoderado->setDbValue($row['id_apoderado']);\n\t\tif (array_key_exists('EV__id_apoderado', $rs->fields)) {\n\t\t\t$this->id_apoderado->VirtualValue = $rs->fields('EV__id_apoderado'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_apoderado->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->id_referencia->setDbValue($row['id_referencia']);\n\t\tif (array_key_exists('EV__id_referencia', $rs->fields)) {\n\t\t\t$this->id_referencia->VirtualValue = $rs->fields('EV__id_referencia'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->id_referencia->VirtualValue = \"\"; // Clear value\n\t\t}\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $conn;\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Id_Proveedor->setDbValue($rs->fields('Id_Proveedor'));\r\n\t\t$this->RazonSocial->setDbValue($rs->fields('RazonSocial'));\r\n\t\t$this->RFC->setDbValue($rs->fields('RFC'));\r\n\t\t$this->NombreContacto->setDbValue($rs->fields('NombreContacto'));\r\n\t\t$this->CalleYNumero->setDbValue($rs->fields('CalleYNumero'));\r\n\t\t$this->Colonia->setDbValue($rs->fields('Colonia'));\r\n\t\t$this->Poblacion->setDbValue($rs->fields('Poblacion'));\r\n\t\t$this->Municipio_Delegacion->setDbValue($rs->fields('Municipio_Delegacion'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->CP->setDbValue($rs->fields('CP'));\r\n\t\t$this->_EMail->setDbValue($rs->fields('EMail'));\r\n\t\t$this->Telefonos->setDbValue($rs->fields('Telefonos'));\r\n\t\t$this->Celular->setDbValue($rs->fields('Celular'));\r\n\t\t$this->Fax->setDbValue($rs->fields('Fax'));\r\n\t\t$this->Banco->setDbValue($rs->fields('Banco'));\r\n\t\t$this->NumCuenta->setDbValue($rs->fields('NumCuenta'));\r\n\t\t$this->CLABE->setDbValue($rs->fields('CLABE'));\r\n\t\t$this->Maneja_Papeleta->setDbValue($rs->fields('Maneja_Papeleta'));\r\n\t\t$this->Observaciones->setDbValue($rs->fields('Observaciones'));\r\n\t\t$this->Maneja_Activacion_Movi->setDbValue($rs->fields('Maneja_Activacion_Movi'));\r\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->replid->setDbValue($row['replid']);\n\t\t$this->nama->setDbValue($row['nama']);\n\t\t$this->besar->setDbValue($row['besar']);\n\t\t$this->idkategori->setDbValue($row['idkategori']);\n\t\t$this->rekkas->setDbValue($row['rekkas']);\n\t\t$this->rekpendapatan->setDbValue($row['rekpendapatan']);\n\t\t$this->rekpiutang->setDbValue($row['rekpiutang']);\n\t\t$this->aktif->setDbValue($row['aktif']);\n\t\t$this->keterangan->setDbValue($row['keterangan']);\n\t\t$this->departemen->setDbValue($row['departemen']);\n\t\t$this->info1->setDbValue($row['info1']);\n\t\t$this->info2->setDbValue($row['info2']);\n\t\t$this->info3->setDbValue($row['info3']);\n\t\t$this->ts->setDbValue($row['ts']);\n\t\t$this->token->setDbValue($row['token']);\n\t\t$this->issync->setDbValue($row['issync']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id_admission->setDbValue($rs->fields('id_admission'));\n\t\t$this->nomr->setDbValue($rs->fields('nomr'));\n\t\t$this->ket_nama->setDbValue($rs->fields('ket_nama'));\n\t\t$this->ket_tgllahir->setDbValue($rs->fields('ket_tgllahir'));\n\t\t$this->ket_alamat->setDbValue($rs->fields('ket_alamat'));\n\t\t$this->ket_jeniskelamin->setDbValue($rs->fields('ket_jeniskelamin'));\n\t\t$this->ket_title->setDbValue($rs->fields('ket_title'));\n\t\t$this->dokterpengirim->setDbValue($rs->fields('dokterpengirim'));\n\t\t$this->statusbayar->setDbValue($rs->fields('statusbayar'));\n\t\t$this->kirimdari->setDbValue($rs->fields('kirimdari'));\n\t\t$this->keluargadekat->setDbValue($rs->fields('keluargadekat'));\n\t\t$this->panggungjawab->setDbValue($rs->fields('panggungjawab'));\n\t\t$this->masukrs->setDbValue($rs->fields('masukrs'));\n\t\t$this->noruang->setDbValue($rs->fields('noruang'));\n\t\t$this->tempat_tidur_id->setDbValue($rs->fields('tempat_tidur_id'));\n\t\t$this->nott->setDbValue($rs->fields('nott'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->dokter_penanggungjawab->setDbValue($rs->fields('dokter_penanggungjawab'));\n\t\t$this->KELASPERAWATAN_ID->setDbValue($rs->fields('KELASPERAWATAN_ID'));\n\t\t$this->NO_SKP->setDbValue($rs->fields('NO_SKP'));\n\t\t$this->sep_tglsep->setDbValue($rs->fields('sep_tglsep'));\n\t\t$this->sep_tglrujuk->setDbValue($rs->fields('sep_tglrujuk'));\n\t\t$this->sep_kodekelasrawat->setDbValue($rs->fields('sep_kodekelasrawat'));\n\t\t$this->sep_norujukan->setDbValue($rs->fields('sep_norujukan'));\n\t\t$this->sep_kodeppkasal->setDbValue($rs->fields('sep_kodeppkasal'));\n\t\t$this->sep_namappkasal->setDbValue($rs->fields('sep_namappkasal'));\n\t\t$this->sep_kodeppkpelayanan->setDbValue($rs->fields('sep_kodeppkpelayanan'));\n\t\t$this->sep_jenisperawatan->setDbValue($rs->fields('sep_jenisperawatan'));\n\t\t$this->sep_catatan->setDbValue($rs->fields('sep_catatan'));\n\t\t$this->sep_kodediagnosaawal->setDbValue($rs->fields('sep_kodediagnosaawal'));\n\t\t$this->sep_namadiagnosaawal->setDbValue($rs->fields('sep_namadiagnosaawal'));\n\t\t$this->sep_lakalantas->setDbValue($rs->fields('sep_lakalantas'));\n\t\t$this->sep_lokasilaka->setDbValue($rs->fields('sep_lokasilaka'));\n\t\t$this->sep_user->setDbValue($rs->fields('sep_user'));\n\t\t$this->sep_flag_cekpeserta->setDbValue($rs->fields('sep_flag_cekpeserta'));\n\t\t$this->sep_flag_generatesep->setDbValue($rs->fields('sep_flag_generatesep'));\n\t\t$this->sep_nik->setDbValue($rs->fields('sep_nik'));\n\t\t$this->sep_namapeserta->setDbValue($rs->fields('sep_namapeserta'));\n\t\t$this->sep_jeniskelamin->setDbValue($rs->fields('sep_jeniskelamin'));\n\t\t$this->sep_pisat->setDbValue($rs->fields('sep_pisat'));\n\t\t$this->sep_tgllahir->setDbValue($rs->fields('sep_tgllahir'));\n\t\t$this->sep_kodejeniskepesertaan->setDbValue($rs->fields('sep_kodejeniskepesertaan'));\n\t\t$this->sep_namajeniskepesertaan->setDbValue($rs->fields('sep_namajeniskepesertaan'));\n\t\t$this->sep_nokabpjs->setDbValue($rs->fields('sep_nokabpjs'));\n\t\t$this->sep_status_peserta->setDbValue($rs->fields('sep_status_peserta'));\n\t\t$this->sep_umur_pasien_sekarang->setDbValue($rs->fields('sep_umur_pasien_sekarang'));\n\t\t$this->statuskeluarranap_id->setDbValue($rs->fields('statuskeluarranap_id'));\n\t\t$this->keluarrs->setDbValue($rs->fields('keluarrs'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Supplier_ID->setDbValue($rs->fields('Supplier_ID'));\n\t\t$this->Supplier_Number->setDbValue($rs->fields('Supplier_Number'));\n\t\t$this->Supplier_Name->setDbValue($rs->fields('Supplier_Name'));\n\t\t$this->Address->setDbValue($rs->fields('Address'));\n\t\t$this->City->setDbValue($rs->fields('City'));\n\t\t$this->Country->setDbValue($rs->fields('Country'));\n\t\t$this->Contact_Person->setDbValue($rs->fields('Contact_Person'));\n\t\t$this->Phone_Number->setDbValue($rs->fields('Phone_Number'));\n\t\t$this->_Email->setDbValue($rs->fields('Email'));\n\t\t$this->Mobile_Number->setDbValue($rs->fields('Mobile_Number'));\n\t\t$this->Notes->setDbValue($rs->fields('Notes'));\n\t\t$this->Balance->setDbValue($rs->fields('Balance'));\n\t\t$this->Is_Stock_Available->setDbValue($rs->fields('Is_Stock_Available'));\n\t\t$this->Date_Added->setDbValue($rs->fields('Date_Added'));\n\t\t$this->Added_By->setDbValue($rs->fields('Added_By'));\n\t\t$this->Date_Updated->setDbValue($rs->fields('Date_Updated'));\n\t\t$this->Updated_By->setDbValue($rs->fields('Updated_By'));\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->id->setDbValue($row['id']);\n\t\t$this->id_sector->setDbValue($row['id_sector']);\n\t\t$this->id_actividad->setDbValue($row['id_actividad']);\n\t\t$this->id_categoria->setDbValue($row['id_categoria']);\n\t\t$this->apellidopaterno->setDbValue($row['apellidopaterno']);\n\t\t$this->apellidomaterno->setDbValue($row['apellidomaterno']);\n\t\t$this->nombre->setDbValue($row['nombre']);\n\t\t$this->fecha_nacimiento->setDbValue($row['fecha_nacimiento']);\n\t\t$this->sexo->setDbValue($row['sexo']);\n\t\t$this->ci->setDbValue($row['ci']);\n\t\t$this->nrodiscapacidad->setDbValue($row['nrodiscapacidad']);\n\t\t$this->celular->setDbValue($row['celular']);\n\t\t$this->direcciondomicilio->setDbValue($row['direcciondomicilio']);\n\t\t$this->ocupacion->setDbValue($row['ocupacion']);\n\t\t$this->_email->setDbValue($row['email']);\n\t\t$this->cargo->setDbValue($row['cargo']);\n\t\t$this->nivelestudio->setDbValue($row['nivelestudio']);\n\t\t$this->id_institucion->setDbValue($row['id_institucion']);\n\t\t$this->observaciones->setDbValue($row['observaciones']);\n\t\t$this->id_centro->setDbValue($row['id_centro']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->pegawai_id->setDbValue($rs->fields('pegawai_id'));\n\t\t$this->tgl_shift->setDbValue($rs->fields('tgl_shift'));\n\t\t$this->khusus_lembur->setDbValue($rs->fields('khusus_lembur'));\n\t\t$this->khusus_extra->setDbValue($rs->fields('khusus_extra'));\n\t\t$this->temp_id_auto->setDbValue($rs->fields('temp_id_auto'));\n\t\t$this->jdw_kerja_m_id->setDbValue($rs->fields('jdw_kerja_m_id'));\n\t\t$this->jk_id->setDbValue($rs->fields('jk_id'));\n\t\t$this->jns_dok->setDbValue($rs->fields('jns_dok'));\n\t\t$this->izin_jenis_id->setDbValue($rs->fields('izin_jenis_id'));\n\t\t$this->cuti_n_id->setDbValue($rs->fields('cuti_n_id'));\n\t\t$this->libur_umum->setDbValue($rs->fields('libur_umum'));\n\t\t$this->libur_rutin->setDbValue($rs->fields('libur_rutin'));\n\t\t$this->jk_ot->setDbValue($rs->fields('jk_ot'));\n\t\t$this->scan_in->setDbValue($rs->fields('scan_in'));\n\t\t$this->att_id_in->setDbValue($rs->fields('att_id_in'));\n\t\t$this->late_permission->setDbValue($rs->fields('late_permission'));\n\t\t$this->late_minute->setDbValue($rs->fields('late_minute'));\n\t\t$this->late->setDbValue($rs->fields('late'));\n\t\t$this->break_out->setDbValue($rs->fields('break_out'));\n\t\t$this->att_id_break1->setDbValue($rs->fields('att_id_break1'));\n\t\t$this->break_in->setDbValue($rs->fields('break_in'));\n\t\t$this->att_id_break2->setDbValue($rs->fields('att_id_break2'));\n\t\t$this->break_minute->setDbValue($rs->fields('break_minute'));\n\t\t$this->break->setDbValue($rs->fields('break'));\n\t\t$this->break_ot_minute->setDbValue($rs->fields('break_ot_minute'));\n\t\t$this->break_ot->setDbValue($rs->fields('break_ot'));\n\t\t$this->early_permission->setDbValue($rs->fields('early_permission'));\n\t\t$this->early_minute->setDbValue($rs->fields('early_minute'));\n\t\t$this->early->setDbValue($rs->fields('early'));\n\t\t$this->scan_out->setDbValue($rs->fields('scan_out'));\n\t\t$this->att_id_out->setDbValue($rs->fields('att_id_out'));\n\t\t$this->durasi_minute->setDbValue($rs->fields('durasi_minute'));\n\t\t$this->durasi->setDbValue($rs->fields('durasi'));\n\t\t$this->durasi_eot_minute->setDbValue($rs->fields('durasi_eot_minute'));\n\t\t$this->jk_count_as->setDbValue($rs->fields('jk_count_as'));\n\t\t$this->status_jk->setDbValue($rs->fields('status_jk'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tglobal $filesystem;\r\n\t\t$filesystem->id->setDbValue($rs->fields('id'));\r\n\t\t$filesystem->mount->setDbValue($rs->fields('mount'));\r\n\t\t$filesystem->path->setDbValue($rs->fields('path'));\r\n\t\t$filesystem->parent->setDbValue($rs->fields('parent'));\r\n\t\t$filesystem->deprecated->setDbValue($rs->fields('deprecated'));\r\n\t\t$filesystem->gid->setDbValue($rs->fields('gid'));\r\n\t\t$filesystem->snapshot->setDbValue($rs->fields('snapshot'));\r\n\t\t$filesystem->tapebackup->setDbValue($rs->fields('tapebackup'));\r\n\t\t$filesystem->diskbackup->setDbValue($rs->fields('diskbackup'));\r\n\t\t$filesystem->type->setDbValue($rs->fields('type'));\r\n\t\t$filesystem->contact->setDbValue($rs->fields('contact'));\r\n\t\t$filesystem->contact2->setDbValue($rs->fields('contact2'));\r\n\t\t$filesystem->rescomp->setDbValue($rs->fields('rescomp'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $archv_finished;\n\t\t$archv_finished->ID->setDbValue($rs->fields('ID'));\n\t\t$archv_finished->strjrfnum->setDbValue($rs->fields('strjrfnum'));\n\t\t$archv_finished->strquarter->setDbValue($rs->fields('strquarter'));\n\t\t$archv_finished->strmon->setDbValue($rs->fields('strmon'));\n\t\t$archv_finished->stryear->setDbValue($rs->fields('stryear'));\n\t\t$archv_finished->strdate->setDbValue($rs->fields('strdate'));\n\t\t$archv_finished->strtime->setDbValue($rs->fields('strtime'));\n\t\t$archv_finished->strusername->setDbValue($rs->fields('strusername'));\n\t\t$archv_finished->strusereadd->setDbValue($rs->fields('strusereadd'));\n\t\t$archv_finished->strcompany->setDbValue($rs->fields('strcompany'));\n\t\t$archv_finished->strdepartment->setDbValue($rs->fields('strdepartment'));\n\t\t$archv_finished->strloc->setDbValue($rs->fields('strloc'));\n\t\t$archv_finished->strposition->setDbValue($rs->fields('strposition'));\n\t\t$archv_finished->strtelephone->setDbValue($rs->fields('strtelephone'));\n\t\t$archv_finished->strcostcent->setDbValue($rs->fields('strcostcent'));\n\t\t$archv_finished->strsubject->setDbValue($rs->fields('strsubject'));\n\t\t$archv_finished->strnature->setDbValue($rs->fields('strnature'));\n\t\t$archv_finished->strdescript->setDbValue($rs->fields('strdescript'));\n\t\t$archv_finished->strarea->setDbValue($rs->fields('strarea'));\n\t\t$archv_finished->strattach->setDbValue($rs->fields('strattach'));\n\t\t$archv_finished->strpriority->setDbValue($rs->fields('strpriority'));\n\t\t$archv_finished->strduedate->setDbValue($rs->fields('strduedate'));\n\t\t$archv_finished->strstatus->setDbValue($rs->fields('strstatus'));\n\t\t$archv_finished->strlastedit->setDbValue($rs->fields('strlastedit'));\n\t\t$archv_finished->strcategory->setDbValue($rs->fields('strcategory'));\n\t\t$archv_finished->strassigned->setDbValue($rs->fields('strassigned'));\n\t\t$archv_finished->strdatecomplete->setDbValue($rs->fields('strdatecomplete'));\n\t\t$archv_finished->strwithpr->setDbValue($rs->fields('strwithpr'));\n\t\t$archv_finished->strremarks->setDbValue($rs->fields('strremarks'));\n\t\t$archv_finished->sap_num->setDbValue($rs->fields('sap_num'));\n\t\t$archv_finished->work_days->setDbValue($rs->fields('work_days'));\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->rid->setDbValue($rs->fields('rid'));\n\t\t$this->usn->setDbValue($rs->fields('usn'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->sc1->setDbValue($rs->fields('sc1'));\n\t\t$this->s1->setDbValue($rs->fields('s1'));\n\t\t$this->sc2->setDbValue($rs->fields('sc2'));\n\t\t$this->s2->setDbValue($rs->fields('s2'));\n\t\t$this->sc3->setDbValue($rs->fields('sc3'));\n\t\t$this->s3->setDbValue($rs->fields('s3'));\n\t\t$this->sc4->setDbValue($rs->fields('sc4'));\n\t\t$this->s4->setDbValue($rs->fields('s4'));\n\t\t$this->sc5->setDbValue($rs->fields('sc5'));\n\t\t$this->s5->setDbValue($rs->fields('s5'));\n\t\t$this->sc6->setDbValue($rs->fields('sc6'));\n\t\t$this->s6->setDbValue($rs->fields('s6'));\n\t\t$this->sc7->setDbValue($rs->fields('sc7'));\n\t\t$this->s7->setDbValue($rs->fields('s7'));\n\t\t$this->sc8->setDbValue($rs->fields('sc8'));\n\t\t$this->s8->setDbValue($rs->fields('s8'));\n\t\t$this->total->setDbValue($rs->fields('total'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Supplier_ID->DbValue = $row['Supplier_ID'];\n\t\t$this->Supplier_Number->DbValue = $row['Supplier_Number'];\n\t\t$this->Supplier_Name->DbValue = $row['Supplier_Name'];\n\t\t$this->Address->DbValue = $row['Address'];\n\t\t$this->City->DbValue = $row['City'];\n\t\t$this->Country->DbValue = $row['Country'];\n\t\t$this->Contact_Person->DbValue = $row['Contact_Person'];\n\t\t$this->Phone_Number->DbValue = $row['Phone_Number'];\n\t\t$this->_Email->DbValue = $row['Email'];\n\t\t$this->Mobile_Number->DbValue = $row['Mobile_Number'];\n\t\t$this->Notes->DbValue = $row['Notes'];\n\t\t$this->Balance->DbValue = $row['Balance'];\n\t\t$this->Is_Stock_Available->DbValue = $row['Is_Stock_Available'];\n\t\t$this->Date_Added->DbValue = $row['Date_Added'];\n\t\t$this->Added_By->DbValue = $row['Added_By'];\n\t\t$this->Date_Updated->DbValue = $row['Date_Updated'];\n\t\t$this->Updated_By->DbValue = $row['Updated_By'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->generate_sep->setDbValue($rs->fields('generate_sep'));\n\t\t$this->PESERTANIK_SEP->setDbValue($rs->fields('PESERTANIK_SEP'));\n\t\t$this->PESERTANAMA_SEP->setDbValue($rs->fields('PESERTANAMA_SEP'));\n\t\t$this->PESERTAJENISKELAMIN_SEP->setDbValue($rs->fields('PESERTAJENISKELAMIN_SEP'));\n\t\t$this->PESERTANAMAKELAS_SEP->setDbValue($rs->fields('PESERTANAMAKELAS_SEP'));\n\t\t$this->PESERTAPISAT->setDbValue($rs->fields('PESERTAPISAT'));\n\t\t$this->PESERTATGLLAHIR->setDbValue($rs->fields('PESERTATGLLAHIR'));\n\t\t$this->PESERTAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTAJENISPESERTA_SEP'));\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->setDbValue($rs->fields('PESERTANAMAJENISPESERTA_SEP'));\n\t\t$this->POLITUJUAN_SEP->setDbValue($rs->fields('POLITUJUAN_SEP'));\n\t\t$this->NAMAPOLITUJUAN_SEP->setDbValue($rs->fields('NAMAPOLITUJUAN_SEP'));\n\t\t$this->KDPPKRUJUKAN_SEP->setDbValue($rs->fields('KDPPKRUJUKAN_SEP'));\n\t\t$this->NMPPKRUJUKAN_SEP->setDbValue($rs->fields('NMPPKRUJUKAN_SEP'));\n\t\t$this->mapingtransaksi->setDbValue($rs->fields('mapingtransaksi'));\n\t\t$this->bridging_kepesertaan_by_no_ka->setDbValue($rs->fields('bridging_kepesertaan_by_no_ka'));\n\t\t$this->pasien_NOTELP->setDbValue($rs->fields('pasien_NOTELP'));\n\t\t$this->penjamin_kkl_id->setDbValue($rs->fields('penjamin_kkl_id'));\n\t\t$this->asalfaskesrujukan_id->setDbValue($rs->fields('asalfaskesrujukan_id'));\n\t\t$this->peserta_cob->setDbValue($rs->fields('peserta_cob'));\n\t\t$this->poli_eksekutif->setDbValue($rs->fields('poli_eksekutif'));\n\t\t$this->status_kepesertaan_BPJS->setDbValue($rs->fields('status_kepesertaan_BPJS'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\t$this->Nro_Serie->setDbValue($rs->fields('Nro_Serie'));\r\n\t\t$this->SN->setDbValue($rs->fields('SN'));\r\n\t\t$this->Cant_Net_Asoc->setDbValue($rs->fields('Cant_Net_Asoc'));\r\n\t\t$this->Id_Marca->setDbValue($rs->fields('Id_Marca'));\r\n\t\t$this->Id_Modelo->setDbValue($rs->fields('Id_Modelo'));\r\n\t\t$this->Id_SO->setDbValue($rs->fields('Id_SO'));\r\n\t\t$this->Id_Estado->setDbValue($rs->fields('Id_Estado'));\r\n\t\t$this->User_Server->setDbValue($rs->fields('User_Server'));\r\n\t\t$this->Pass_Server->setDbValue($rs->fields('Pass_Server'));\r\n\t\t$this->User_TdServer->setDbValue($rs->fields('User_TdServer'));\r\n\t\t$this->Pass_TdServer->setDbValue($rs->fields('Pass_TdServer'));\r\n\t\t$this->Cue->setDbValue($rs->fields('Cue'));\r\n\t\t$this->Fecha_Actualizacion->setDbValue($rs->fields('Fecha_Actualizacion'));\r\n\t\t$this->Usuario->setDbValue($rs->fields('Usuario'));\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->empleado_id->setDbValue($rs->fields('empleado_id'));\n\t\t$this->codigo->setDbValue($rs->fields('codigo'));\n\t\t$this->cui->setDbValue($rs->fields('cui'));\n\t\t$this->nombre->setDbValue($rs->fields('nombre'));\n\t\t$this->apellido->setDbValue($rs->fields('apellido'));\n\t\t$this->direccion->setDbValue($rs->fields('direccion'));\n\t\t$this->departamento_origen_id->setDbValue($rs->fields('departamento_origen_id'));\n\t\t$this->municipio_id->setDbValue($rs->fields('municipio_id'));\n\t\t$this->telefono_residencia->setDbValue($rs->fields('telefono_residencia'));\n\t\t$this->telefono_celular->setDbValue($rs->fields('telefono_celular'));\n\t\t$this->fecha_nacimiento->setDbValue($rs->fields('fecha_nacimiento'));\n\t\t$this->nacionalidad->setDbValue($rs->fields('nacionalidad'));\n\t\t$this->estado_civil->setDbValue($rs->fields('estado_civil'));\n\t\t$this->sexo->setDbValue($rs->fields('sexo'));\n\t\t$this->igss->setDbValue($rs->fields('igss'));\n\t\t$this->nit->setDbValue($rs->fields('nit'));\n\t\t$this->licencia_conducir->setDbValue($rs->fields('licencia_conducir'));\n\t\t$this->area_id->setDbValue($rs->fields('area_id'));\n\t\t$this->departmento_id->setDbValue($rs->fields('departmento_id'));\n\t\t$this->seccion_id->setDbValue($rs->fields('seccion_id'));\n\t\t$this->puesto_id->setDbValue($rs->fields('puesto_id'));\n\t\t$this->observaciones->setDbValue($rs->fields('observaciones'));\n\t\t$this->tipo_sangre_id->setDbValue($rs->fields('tipo_sangre_id'));\n\t\t$this->estado->setDbValue($rs->fields('estado'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Title->DbValue = $row['Title'];\n\t\t$this->LV->DbValue = $row['LV'];\n\t\t$this->Type->DbValue = $row['Type'];\n\t\t$this->ResetTime->DbValue = $row['ResetTime'];\n\t\t$this->ResetType->DbValue = $row['ResetType'];\n\t\t$this->CompleteTask->DbValue = $row['CompleteTask'];\n\t\t$this->Occupation->DbValue = $row['Occupation'];\n\t\t$this->Target->DbValue = $row['Target'];\n\t\t$this->Data->DbValue = $row['Data'];\n\t\t$this->Reward_Gold->DbValue = $row['Reward_Gold'];\n\t\t$this->Reward_Diamonds->DbValue = $row['Reward_Diamonds'];\n\t\t$this->Reward_EXP->DbValue = $row['Reward_EXP'];\n\t\t$this->Reward_Goods->DbValue = $row['Reward_Goods'];\n\t\t$this->Info->DbValue = $row['Info'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->tanggal->setDbValue($row['tanggal']);\n\t\t$this->auc_number->setDbValue($row['auc_number']);\n\t\t$this->start_bid->setDbValue($row['start_bid']);\n\t\t$this->close_bid->setDbValue($row['close_bid']);\n\t\t$this->lot_number->setDbValue($row['lot_number']);\n\t\t$this->chop->setDbValue($row['chop']);\n\t\t$this->grade->setDbValue($row['grade']);\n\t\t$this->estate->setDbValue($row['estate']);\n\t\t$this->sack->setDbValue($row['sack']);\n\t\t$this->netto->setDbValue($row['netto']);\n\t\t$this->open_bid->setDbValue($row['open_bid']);\n\t\t$this->last_bid->setDbValue($row['last_bid']);\n\t\t$this->highest_bid->setDbValue($row['highest_bid']);\n\t\t$this->enter_bid->setDbValue($row['enter_bid']);\n\t\t$this->auction_status->setDbValue($row['auction_status']);\n\t\t$this->gross->setDbValue($row['gross']);\n\t\t$this->row_id->setDbValue($row['row_id']);\n\t\tif (!isset($GLOBALS[\"v_bid_histories_admin_grid\"])) $GLOBALS[\"v_bid_histories_admin_grid\"] = new cv_bid_histories_admin_grid;\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->SqlDetailFilter_v_auction_list_admin();\n\t\t$sDetailFilter = str_replace(\"@master_id@\", ew_AdjustSql($this->row_id->DbValue, \"DB\"), $sDetailFilter);\n\t\t$GLOBALS[\"v_bid_histories_admin\"]->setCurrentMasterTable(\"v_auction_list_admin\");\n\t\t$sDetailFilter = $GLOBALS[\"v_bid_histories_admin\"]->ApplyUserIDFilters($sDetailFilter);\n\t\t$this->v_bid_histories_admin_Count = $GLOBALS[\"v_bid_histories_admin\"]->LoadRecordCount($sDetailFilter);\n\t}", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->fecha->setDbValue($rs->fields('fecha'));\n\t\t$this->hora->setDbValue($rs->fields('hora'));\n\t\t$this->audio->setDbValue($rs->fields('audio'));\n\t\t$this->st->setDbValue($rs->fields('st'));\n\t\t$this->fechaHoraIni->setDbValue($rs->fields('fechaHoraIni'));\n\t\t$this->fechaHoraFin->setDbValue($rs->fields('fechaHoraFin'));\n\t\t$this->telefono->setDbValue($rs->fields('telefono'));\n\t\t$this->agente->setDbValue($rs->fields('agente'));\n\t\t$this->fechabo->setDbValue($rs->fields('fechabo'));\n\t\t$this->agentebo->setDbValue($rs->fields('agentebo'));\n\t\t$this->comentariosbo->setDbValue($rs->fields('comentariosbo'));\n\t\t$this->IP->setDbValue($rs->fields('IP'));\n\t\t$this->actual->setDbValue($rs->fields('actual'));\n\t\t$this->completado->setDbValue($rs->fields('completado'));\n\t\t$this->_2_1_R->setDbValue($rs->fields('2_1_R'));\n\t\t$this->_2_2_R->setDbValue($rs->fields('2_2_R'));\n\t\t$this->_2_3_R->setDbValue($rs->fields('2_3_R'));\n\t\t$this->_3_4_R->setDbValue($rs->fields('3_4_R'));\n\t\t$this->_4_5_R->setDbValue($rs->fields('4_5_R'));\n\t\t$this->_4_6_R->setDbValue($rs->fields('4_6_R'));\n\t\t$this->_4_7_R->setDbValue($rs->fields('4_7_R'));\n\t\t$this->_4_8_R->setDbValue($rs->fields('4_8_R'));\n\t\t$this->_5_9_R->setDbValue($rs->fields('5_9_R'));\n\t\t$this->_5_10_R->setDbValue($rs->fields('5_10_R'));\n\t\t$this->_5_11_R->setDbValue($rs->fields('5_11_R'));\n\t\t$this->_5_12_R->setDbValue($rs->fields('5_12_R'));\n\t\t$this->_5_13_R->setDbValue($rs->fields('5_13_R'));\n\t\t$this->_5_14_R->setDbValue($rs->fields('5_14_R'));\n\t\t$this->_5_51_R->setDbValue($rs->fields('5_51_R'));\n\t\t$this->_6_15_R->setDbValue($rs->fields('6_15_R'));\n\t\t$this->_6_16_R->setDbValue($rs->fields('6_16_R'));\n\t\t$this->_6_17_R->setDbValue($rs->fields('6_17_R'));\n\t\t$this->_6_18_R->setDbValue($rs->fields('6_18_R'));\n\t\t$this->_6_19_R->setDbValue($rs->fields('6_19_R'));\n\t\t$this->_6_20_R->setDbValue($rs->fields('6_20_R'));\n\t\t$this->_6_52_R->setDbValue($rs->fields('6_52_R'));\n\t\t$this->_7_21_R->setDbValue($rs->fields('7_21_R'));\n\t\t$this->_8_22_R->setDbValue($rs->fields('8_22_R'));\n\t\t$this->_8_23_R->setDbValue($rs->fields('8_23_R'));\n\t\t$this->_8_24_R->setDbValue($rs->fields('8_24_R'));\n\t\t$this->_8_25_R->setDbValue($rs->fields('8_25_R'));\n\t\t$this->_9_26_R->setDbValue($rs->fields('9_26_R'));\n\t\t$this->_9_27_R->setDbValue($rs->fields('9_27_R'));\n\t\t$this->_9_28_R->setDbValue($rs->fields('9_28_R'));\n\t\t$this->_9_29_R->setDbValue($rs->fields('9_29_R'));\n\t\t$this->_9_30_R->setDbValue($rs->fields('9_30_R'));\n\t\t$this->_9_31_R->setDbValue($rs->fields('9_31_R'));\n\t\t$this->_9_32_R->setDbValue($rs->fields('9_32_R'));\n\t\t$this->_9_33_R->setDbValue($rs->fields('9_33_R'));\n\t\t$this->_9_34_R->setDbValue($rs->fields('9_34_R'));\n\t\t$this->_9_35_R->setDbValue($rs->fields('9_35_R'));\n\t\t$this->_9_36_R->setDbValue($rs->fields('9_36_R'));\n\t\t$this->_9_37_R->setDbValue($rs->fields('9_37_R'));\n\t\t$this->_9_38_R->setDbValue($rs->fields('9_38_R'));\n\t\t$this->_9_39_R->setDbValue($rs->fields('9_39_R'));\n\t\t$this->_10_40_R->setDbValue($rs->fields('10_40_R'));\n\t\t$this->_10_41_R->setDbValue($rs->fields('10_41_R'));\n\t\t$this->_11_42_R->setDbValue($rs->fields('11_42_R'));\n\t\t$this->_11_43_R->setDbValue($rs->fields('11_43_R'));\n\t\t$this->_12_44_R->setDbValue($rs->fields('12_44_R'));\n\t\t$this->_12_45_R->setDbValue($rs->fields('12_45_R'));\n\t\t$this->_12_46_R->setDbValue($rs->fields('12_46_R'));\n\t\t$this->_12_47_R->setDbValue($rs->fields('12_47_R'));\n\t\t$this->_12_48_R->setDbValue($rs->fields('12_48_R'));\n\t\t$this->_12_49_R->setDbValue($rs->fields('12_49_R'));\n\t\t$this->_12_50_R->setDbValue($rs->fields('12_50_R'));\n\t\t$this->_1__R->setDbValue($rs->fields('1__R'));\n\t\t$this->_13_54_R->setDbValue($rs->fields('13_54_R'));\n\t\t$this->_13_54_1_R->setDbValue($rs->fields('13_54_1_R'));\n\t\t$this->_13_54_2_R->setDbValue($rs->fields('13_54_2_R'));\n\t\t$this->_13_55_R->setDbValue($rs->fields('13_55_R'));\n\t\t$this->_13_55_1_R->setDbValue($rs->fields('13_55_1_R'));\n\t\t$this->_13_55_2_R->setDbValue($rs->fields('13_55_2_R'));\n\t\t$this->_13_56_R->setDbValue($rs->fields('13_56_R'));\n\t\t$this->_13_56_1_R->setDbValue($rs->fields('13_56_1_R'));\n\t\t$this->_13_56_2_R->setDbValue($rs->fields('13_56_2_R'));\n\t\t$this->_12_53_R->setDbValue($rs->fields('12_53_R'));\n\t\t$this->_12_53_1_R->setDbValue($rs->fields('12_53_1_R'));\n\t\t$this->_12_53_2_R->setDbValue($rs->fields('12_53_2_R'));\n\t\t$this->_12_53_3_R->setDbValue($rs->fields('12_53_3_R'));\n\t\t$this->_12_53_4_R->setDbValue($rs->fields('12_53_4_R'));\n\t\t$this->_12_53_5_R->setDbValue($rs->fields('12_53_5_R'));\n\t\t$this->_12_53_6_R->setDbValue($rs->fields('12_53_6_R'));\n\t\t$this->_13_57_R->setDbValue($rs->fields('13_57_R'));\n\t\t$this->_13_57_1_R->setDbValue($rs->fields('13_57_1_R'));\n\t\t$this->_13_57_2_R->setDbValue($rs->fields('13_57_2_R'));\n\t\t$this->_13_58_R->setDbValue($rs->fields('13_58_R'));\n\t\t$this->_13_58_1_R->setDbValue($rs->fields('13_58_1_R'));\n\t\t$this->_13_58_2_R->setDbValue($rs->fields('13_58_2_R'));\n\t\t$this->_13_59_R->setDbValue($rs->fields('13_59_R'));\n\t\t$this->_13_59_1_R->setDbValue($rs->fields('13_59_1_R'));\n\t\t$this->_13_59_2_R->setDbValue($rs->fields('13_59_2_R'));\n\t\t$this->_13_60_R->setDbValue($rs->fields('13_60_R'));\n\t\t$this->_12_53_7_R->setDbValue($rs->fields('12_53_7_R'));\n\t\t$this->_12_53_8_R->setDbValue($rs->fields('12_53_8_R'));\n\t}", "function LoadRowValues(&$rs) {\r\n\t\tif (!$rs || $rs->EOF) return;\r\n\r\n\t\t// Call Row Selected event\r\n\t\t$row = &$rs->fields;\r\n\t\t$this->Row_Selected($row);\r\n\t\tif ($this->AuditTrailOnView) $this->WriteAuditTrailOnView($row);\r\n\t\t$this->Dni_Tutor->setDbValue($rs->fields('Dni_Tutor'));\r\n\t\t$this->Apellidos_Nombres->setDbValue($rs->fields('Apellidos_Nombres'));\r\n\t\t$this->Edad->setDbValue($rs->fields('Edad'));\r\n\t\t$this->Domicilio->setDbValue($rs->fields('Domicilio'));\r\n\t\t$this->Tel_Contacto->setDbValue($rs->fields('Tel_Contacto'));\r\n\t\t$this->Fecha_Nac->setDbValue($rs->fields('Fecha_Nac'));\r\n\t\t$this->Cuil->setDbValue($rs->fields('Cuil'));\r\n\t\t$this->MasHijos->setDbValue($rs->fields('MasHijos'));\r\n\t\t$this->Id_Estado_Civil->setDbValue($rs->fields('Id_Estado_Civil'));\r\n\t\t$this->Id_Sexo->setDbValue($rs->fields('Id_Sexo'));\r\n\t\t$this->Id_Relacion->setDbValue($rs->fields('Id_Relacion'));\r\n\t\t$this->Id_Ocupacion->setDbValue($rs->fields('Id_Ocupacion'));\r\n\t\t$this->Lugar_Nacimiento->setDbValue($rs->fields('Lugar_Nacimiento'));\r\n\t\t$this->Id_Provincia->setDbValue($rs->fields('Id_Provincia'));\r\n\t\t$this->Id_Departamento->setDbValue($rs->fields('Id_Departamento'));\r\n\t\t$this->Id_Localidad->setDbValue($rs->fields('Id_Localidad'));\r\n\t\t$this->Fecha_Actualizacion->setDbValue($rs->fields('Fecha_Actualizacion'));\r\n\t\t$this->Usuario->setDbValue($rs->fields('Usuario'));\r\n\t\tif (!isset($GLOBALS[\"observacion_tutor_grid\"])) $GLOBALS[\"observacion_tutor_grid\"] = new cobservacion_tutor_grid;\r\n\t\t$sDetailFilter = $GLOBALS[\"observacion_tutor\"]->SqlDetailFilter_tutores();\r\n\t\t$sDetailFilter = str_replace(\"@Dni_Tutor@\", ew_AdjustSql($this->Dni_Tutor->DbValue, \"DB\"), $sDetailFilter);\r\n\t\t$GLOBALS[\"observacion_tutor\"]->setCurrentMasterTable(\"tutores\");\r\n\t\t$sDetailFilter = $GLOBALS[\"observacion_tutor\"]->ApplyUserIDFilters($sDetailFilter);\r\n\t\t$this->observacion_tutor_Count = $GLOBALS[\"observacion_tutor\"]->LoadRecordCount($sDetailFilter);\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->id->setDbValue($rs->fields('id'));\n\t\t$this->detail_jenis_spp->setDbValue($rs->fields('detail_jenis_spp'));\n\t\t$this->id_jenis_spp->setDbValue($rs->fields('id_jenis_spp'));\n\t\t$this->status_spp->setDbValue($rs->fields('status_spp'));\n\t\t$this->no_spp->setDbValue($rs->fields('no_spp'));\n\t\t$this->tgl_spp->setDbValue($rs->fields('tgl_spp'));\n\t\t$this->keterangan->setDbValue($rs->fields('keterangan'));\n\t\t$this->jumlah_up->setDbValue($rs->fields('jumlah_up'));\n\t\t$this->bendahara->setDbValue($rs->fields('bendahara'));\n\t\t$this->nama_pptk->setDbValue($rs->fields('nama_pptk'));\n\t\t$this->nip_pptk->setDbValue($rs->fields('nip_pptk'));\n\t\t$this->kode_program->setDbValue($rs->fields('kode_program'));\n\t\t$this->kode_kegiatan->setDbValue($rs->fields('kode_kegiatan'));\n\t\t$this->kode_sub_kegiatan->setDbValue($rs->fields('kode_sub_kegiatan'));\n\t\t$this->tahun_anggaran->setDbValue($rs->fields('tahun_anggaran'));\n\t\t$this->jumlah_spd->setDbValue($rs->fields('jumlah_spd'));\n\t\t$this->nomer_dasar_spd->setDbValue($rs->fields('nomer_dasar_spd'));\n\t\t$this->tanggal_spd->setDbValue($rs->fields('tanggal_spd'));\n\t\t$this->id_spd->setDbValue($rs->fields('id_spd'));\n\t\t$this->kode_rekening->setDbValue($rs->fields('kode_rekening'));\n\t\t$this->nama_bendahara->setDbValue($rs->fields('nama_bendahara'));\n\t\t$this->nip_bendahara->setDbValue($rs->fields('nip_bendahara'));\n\t\t$this->no_spm->setDbValue($rs->fields('no_spm'));\n\t\t$this->tgl_spm->setDbValue($rs->fields('tgl_spm'));\n\t\t$this->status_spm->setDbValue($rs->fields('status_spm'));\n\t\t$this->nama_bank->setDbValue($rs->fields('nama_bank'));\n\t\t$this->nomer_rekening_bank->setDbValue($rs->fields('nomer_rekening_bank'));\n\t\t$this->npwp->setDbValue($rs->fields('npwp'));\n\t\t$this->pimpinan_blud->setDbValue($rs->fields('pimpinan_blud'));\n\t\t$this->nip_pimpinan->setDbValue($rs->fields('nip_pimpinan'));\n\t\t$this->no_sptb->setDbValue($rs->fields('no_sptb'));\n\t\t$this->tgl_sptb->setDbValue($rs->fields('tgl_sptb'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t\t$this->master_id->DbValue = $row['master_id'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->jenis->DbValue = $row['jenis'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->currency->DbValue = $row['currency'];\n\t\t$this->bid_step->DbValue = $row['bid_step'];\n\t\t$this->rate->DbValue = $row['rate'];\n\t\t$this->winner_id->DbValue = $row['winner_id'];\n\t\t$this->sold_bid->DbValue = $row['sold_bid'];\n\t\t$this->proforma_number->DbValue = $row['proforma_number'];\n\t\t$this->proforma_amount->DbValue = $row['proforma_amount'];\n\t\t$this->proforma_status->DbValue = $row['proforma_status'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->C_EVENT_ID->setDbValue($rs->fields('C_EVENT_ID'));\n\t\t$this->FK_CONGTY_ID->setDbValue($rs->fields('FK_CONGTY_ID'));\n\t\t$this->C_EVENT_NAME->setDbValue($rs->fields('C_EVENT_NAME'));\n\t\t$this->C_TYPE_EVENT->setDbValue($rs->fields('C_TYPE_EVENT'));\n\t\t$this->C_POST->setDbValue($rs->fields('C_POST'));\n\t\t$this->C_URL_IMAGES->setDbValue($rs->fields('C_URL_IMAGES'));\n\t\t$this->C_URL_LINK->setDbValue($rs->fields('C_URL_LINK'));\n\t\t$this->C_DATETIME_BEGIN->setDbValue($rs->fields('C_DATETIME_BEGIN'));\n\t\t$this->C_DATETIME_END->setDbValue($rs->fields('C_DATETIME_END'));\n\t\t$this->C_ODER->setDbValue($rs->fields('C_ODER'));\n\t\t$this->C_NOTE->setDbValue($rs->fields('C_NOTE'));\n\t\t$this->C_USER_ADD->setDbValue($rs->fields('C_USER_ADD'));\n\t\t$this->C_ADD_TIME->setDbValue($rs->fields('C_ADD_TIME'));\n\t\t$this->C_USER_EDIT->setDbValue($rs->fields('C_USER_EDIT'));\n\t\t$this->C_EDIT_TIME->setDbValue($rs->fields('C_EDIT_TIME'));\n\t\t$this->C_ACTIVE_LEVELSITE->setDbValue($rs->fields('C_ACTIVE_LEVELSITE'));\n\t\t$this->C_TIME_ACTIVE->setDbValue($rs->fields('C_TIME_ACTIVE'));\n\t\t$this->C_SEND_MAIL->setDbValue($rs->fields('C_SEND_MAIL'));\n\t\t$this->C_CONTENT_MAIL->setDbValue($rs->fields('C_CONTENT_MAIL'));\n\t\t$this->C_FK_BROWSE->setDbValue($rs->fields('C_FK_BROWSE'));\n\t\t$this->FK_ARRAY_TINBAI->setDbValue($rs->fields('FK_ARRAY_TINBAI'));\n\t\t$this->FK_ARRAY_CONGTY->setDbValue($rs->fields('FK_ARRAY_CONGTY'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->userlevelid->setDbValue($rs->fields('userlevelid'));\n\t\tif (is_null($this->userlevelid->CurrentValue)) {\n\t\t\t$this->userlevelid->CurrentValue = 0;\n\t\t} else {\n\t\t\t$this->userlevelid->CurrentValue = intval($this->userlevelid->CurrentValue);\n\t\t}\n\t\t$this->userlevelname->setDbValue($rs->fields('userlevelname'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->auc_number->DbValue = $row['auc_number'];\n\t\t$this->start_bid->DbValue = $row['start_bid'];\n\t\t$this->close_bid->DbValue = $row['close_bid'];\n\t\t$this->lot_number->DbValue = $row['lot_number'];\n\t\t$this->chop->DbValue = $row['chop'];\n\t\t$this->grade->DbValue = $row['grade'];\n\t\t$this->estate->DbValue = $row['estate'];\n\t\t$this->sack->DbValue = $row['sack'];\n\t\t$this->netto->DbValue = $row['netto'];\n\t\t$this->open_bid->DbValue = $row['open_bid'];\n\t\t$this->last_bid->DbValue = $row['last_bid'];\n\t\t$this->highest_bid->DbValue = $row['highest_bid'];\n\t\t$this->enter_bid->DbValue = $row['enter_bid'];\n\t\t$this->auction_status->DbValue = $row['auction_status'];\n\t\t$this->gross->DbValue = $row['gross'];\n\t\t$this->row_id->DbValue = $row['row_id'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->tgl->setDbValue($rs->fields('tgl'));\n\t\t$this->no_spp->setDbValue($rs->fields('no_spp'));\n\t\t$this->jns_spp->setDbValue($rs->fields('jns_spp'));\n\t\t$this->kd_mata->setDbValue($rs->fields('kd_mata'));\n\t\t$this->urai->setDbValue($rs->fields('urai'));\n\t\t$this->jmlh->setDbValue($rs->fields('jmlh'));\n\t\t$this->jmlh1->setDbValue($rs->fields('jmlh1'));\n\t\t$this->jmlh2->setDbValue($rs->fields('jmlh2'));\n\t\t$this->jmlh3->setDbValue($rs->fields('jmlh3'));\n\t\t$this->jmlh4->setDbValue($rs->fields('jmlh4'));\n\t\t$this->nm_perus->setDbValue($rs->fields('nm_perus'));\n\t\t$this->alamat->setDbValue($rs->fields('alamat'));\n\t\t$this->npwp->setDbValue($rs->fields('npwp'));\n\t\t$this->pimpinan->setDbValue($rs->fields('pimpinan'));\n\t\t$this->bank->setDbValue($rs->fields('bank'));\n\t\t$this->rek->setDbValue($rs->fields('rek'));\n\t\t$this->nospm->setDbValue($rs->fields('nospm'));\n\t\t$this->tglspm->setDbValue($rs->fields('tglspm'));\n\t\t$this->ppn->setDbValue($rs->fields('ppn'));\n\t\t$this->ps21->setDbValue($rs->fields('ps21'));\n\t\t$this->ps22->setDbValue($rs->fields('ps22'));\n\t\t$this->ps23->setDbValue($rs->fields('ps23'));\n\t\t$this->ps4->setDbValue($rs->fields('ps4'));\n\t\t$this->kodespm->setDbValue($rs->fields('kodespm'));\n\t\t$this->nambud->setDbValue($rs->fields('nambud'));\n\t\t$this->nppk->setDbValue($rs->fields('nppk'));\n\t\t$this->nipppk->setDbValue($rs->fields('nipppk'));\n\t\t$this->prog->setDbValue($rs->fields('prog'));\n\t\t$this->prog1->setDbValue($rs->fields('prog1'));\n\t\t$this->bayar->setDbValue($rs->fields('bayar'));\n\t}", "public function loadRowValues($rs = NULL)\n\t{\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->newRow();\n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->document_sequence->setDbValue($row['document_sequence']);\n\t\t$this->firelink_doc_no->setDbValue($row['firelink_doc_no']);\n\t\tif (array_key_exists('EV__firelink_doc_no', $rs->fields)) {\n\t\t\t$this->firelink_doc_no->VirtualValue = $rs->fields('EV__firelink_doc_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->firelink_doc_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->project_name->setDbValue($row['project_name']);\n\t\t$this->document_tittle->setDbValue($row['document_tittle']);\n\t\t$this->submit_no->setDbValue($row['submit_no']);\n\t\t$this->revision_no->setDbValue($row['revision_no']);\n\t\t$this->transmit_no->setDbValue($row['transmit_no']);\n\t\tif (array_key_exists('EV__transmit_no', $rs->fields)) {\n\t\t\t$this->transmit_no->VirtualValue = $rs->fields('EV__transmit_no'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->transmit_no->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->transmit_date->setDbValue($row['transmit_date']);\n\t\t$this->direction->setDbValue($row['direction']);\n\t\t$this->approval_status->setDbValue($row['approval_status']);\n\t\t$this->document_link->Upload->DbValue = $row['document_link'];\n\t\t$this->document_link->setDbValue($this->document_link->Upload->DbValue);\n\t\t$this->transaction_date->setDbValue($row['transaction_date']);\n\t\t$this->document_native->setDbValue($row['document_native']);\n\t\t$this->username->setDbValue($row['username']);\n\t\t$this->expiry_date->setDbValue($row['expiry_date']);\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->pegawai_id->DbValue = $row['pegawai_id'];\n\t\t$this->tgl_shift->DbValue = $row['tgl_shift'];\n\t\t$this->khusus_lembur->DbValue = $row['khusus_lembur'];\n\t\t$this->khusus_extra->DbValue = $row['khusus_extra'];\n\t\t$this->temp_id_auto->DbValue = $row['temp_id_auto'];\n\t\t$this->jdw_kerja_m_id->DbValue = $row['jdw_kerja_m_id'];\n\t\t$this->jk_id->DbValue = $row['jk_id'];\n\t\t$this->jns_dok->DbValue = $row['jns_dok'];\n\t\t$this->izin_jenis_id->DbValue = $row['izin_jenis_id'];\n\t\t$this->cuti_n_id->DbValue = $row['cuti_n_id'];\n\t\t$this->libur_umum->DbValue = $row['libur_umum'];\n\t\t$this->libur_rutin->DbValue = $row['libur_rutin'];\n\t\t$this->jk_ot->DbValue = $row['jk_ot'];\n\t\t$this->scan_in->DbValue = $row['scan_in'];\n\t\t$this->att_id_in->DbValue = $row['att_id_in'];\n\t\t$this->late_permission->DbValue = $row['late_permission'];\n\t\t$this->late_minute->DbValue = $row['late_minute'];\n\t\t$this->late->DbValue = $row['late'];\n\t\t$this->break_out->DbValue = $row['break_out'];\n\t\t$this->att_id_break1->DbValue = $row['att_id_break1'];\n\t\t$this->break_in->DbValue = $row['break_in'];\n\t\t$this->att_id_break2->DbValue = $row['att_id_break2'];\n\t\t$this->break_minute->DbValue = $row['break_minute'];\n\t\t$this->break->DbValue = $row['break'];\n\t\t$this->break_ot_minute->DbValue = $row['break_ot_minute'];\n\t\t$this->break_ot->DbValue = $row['break_ot'];\n\t\t$this->early_permission->DbValue = $row['early_permission'];\n\t\t$this->early_minute->DbValue = $row['early_minute'];\n\t\t$this->early->DbValue = $row['early'];\n\t\t$this->scan_out->DbValue = $row['scan_out'];\n\t\t$this->att_id_out->DbValue = $row['att_id_out'];\n\t\t$this->durasi_minute->DbValue = $row['durasi_minute'];\n\t\t$this->durasi->DbValue = $row['durasi'];\n\t\t$this->durasi_eot_minute->DbValue = $row['durasi_eot_minute'];\n\t\t$this->jk_count_as->DbValue = $row['jk_count_as'];\n\t\t$this->status_jk->DbValue = $row['status_jk'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kelas->DbValue = $row['kelas'];\n\t\t$this->tanggal->DbValue = $row['tanggal'];\n\t\t$this->kode_tindakan->DbValue = $row['kode_tindakan'];\n\t\t$this->qty->DbValue = $row['qty'];\n\t\t$this->tarif->DbValue = $row['tarif'];\n\t\t$this->bhp->DbValue = $row['bhp'];\n\t\t$this->user->DbValue = $row['user'];\n\t\t$this->nama_tindakan->DbValue = $row['nama_tindakan'];\n\t\t$this->kelompok_tindakan->DbValue = $row['kelompok_tindakan'];\n\t\t$this->kelompok1->DbValue = $row['kelompok1'];\n\t\t$this->kelompok2->DbValue = $row['kelompok2'];\n\t\t$this->kode_dokter->DbValue = $row['kode_dokter'];\n\t\t$this->no_ruang->DbValue = $row['no_ruang'];\n\t}", "function LoadRowValues($rs = NULL) {\n\t\tif ($rs && !$rs->EOF)\n\t\t\t$row = $rs->fields;\n\t\telse\n\t\t\t$row = $this->NewRow(); \n\n\t\t// Call Row Selected event\n\t\t$this->Row_Selected($row);\n\t\tif (!$rs || $rs->EOF)\n\t\t\treturn;\n\t\t$this->product_id->setDbValue($row['product_id']);\n\t\t$this->cat_id->setDbValue($row['cat_id']);\n\t\tif (array_key_exists('EV__cat_id', $rs->fields)) {\n\t\t\t$this->cat_id->VirtualValue = $rs->fields('EV__cat_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->cat_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->company_id->setDbValue($row['company_id']);\n\t\tif (array_key_exists('EV__company_id', $rs->fields)) {\n\t\t\t$this->company_id->VirtualValue = $rs->fields('EV__company_id'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->company_id->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_model->setDbValue($row['pro_model']);\n\t\tif (array_key_exists('EV__pro_model', $rs->fields)) {\n\t\t\t$this->pro_model->VirtualValue = $rs->fields('EV__pro_model'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->pro_model->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_name->setDbValue($row['pro_name']);\n\t\t$this->pro_description->setDbValue($row['pro_description']);\n\t\t$this->pro_condition->setDbValue($row['pro_condition']);\n\t\t$this->pro_features->setDbValue($row['pro_features']);\n\t\t$this->post_date->setDbValue($row['post_date']);\n\t\t$this->ads_id->setDbValue($row['ads_id']);\n\t\t$this->pro_base_price->setDbValue($row['pro_base_price']);\n\t\t$this->pro_sell_price->setDbValue($row['pro_sell_price']);\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->featured_image->setDbValue($this->featured_image->Upload->DbValue);\n\t\t$this->folder_image->setDbValue($row['folder_image']);\n\t\tif (array_key_exists('EV__folder_image', $rs->fields)) {\n\t\t\t$this->folder_image->VirtualValue = $rs->fields('EV__folder_image'); // Set up virtual field value\n\t\t} else {\n\t\t\t$this->folder_image->VirtualValue = \"\"; // Clear value\n\t\t}\n\t\t$this->pro_status->setDbValue($row['pro_status']);\n\t\t$this->branch_id->setDbValue($row['branch_id']);\n\t\t$this->lang->setDbValue($row['lang']);\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Id_Item->setDbValue($rs->fields('Id_Item'));\n\t\t$this->codigo_item->setDbValue($rs->fields('codigo_item'));\n\t\t$this->nombre_item->setDbValue($rs->fields('nombre_item'));\n\t\t$this->und_item->setDbValue($rs->fields('und_item'));\n\t\t$this->precio_item->setDbValue($rs->fields('precio_item'));\n\t\t$this->costo_item->setDbValue($rs->fields('costo_item'));\n\t\t$this->tipo_item->setDbValue($rs->fields('tipo_item'));\n\t\t$this->marca_item->setDbValue($rs->fields('marca_item'));\n\t\t$this->cod_marca_item->setDbValue($rs->fields('cod_marca_item'));\n\t\t$this->detalle_item->setDbValue($rs->fields('detalle_item'));\n\t\t$this->saldo_item->setDbValue($rs->fields('saldo_item'));\n\t\t$this->activo_item->setDbValue($rs->fields('activo_item'));\n\t\t$this->maneja_serial_item->setDbValue($rs->fields('maneja_serial_item'));\n\t\t$this->asignado_item->setDbValue($rs->fields('asignado_item'));\n\t\t$this->si_no_item->setDbValue($rs->fields('si_no_item'));\n\t\t$this->precio_old_item->setDbValue($rs->fields('precio_old_item'));\n\t\t$this->costo_old_item->setDbValue($rs->fields('costo_old_item'));\n\t\t$this->registra_item->setDbValue($rs->fields('registra_item'));\n\t\t$this->fecha_registro_item->setDbValue($rs->fields('fecha_registro_item'));\n\t\t$this->empresa_item->setDbValue($rs->fields('empresa_item'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$mst_vendor->kode->setDbValue($rs->fields('kode'));\n\t\t$mst_vendor->nama->setDbValue($rs->fields('nama'));\n\t\t$mst_vendor->alamat->setDbValue($rs->fields('alamat'));\n\t\t$mst_vendor->alamatpajak->setDbValue($rs->fields('alamatpajak'));\n\t\t$mst_vendor->npwp->setDbValue($rs->fields('npwp'));\n\t\t$mst_vendor->pic->setDbValue($rs->fields('pic'));\n\t\t$mst_vendor->phone->setDbValue($rs->fields('phone'));\n\t\t$mst_vendor->fax->setDbValue($rs->fields('fax'));\n\t\t$mst_vendor->zemail->setDbValue($rs->fields('email'));\n\t\t$mst_vendor->peruntukan->setDbValue($rs->fields('peruntukan'));\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Id_Pase->DbValue = $row['Id_Pase'];\r\n\t\t$this->Serie_Equipo->DbValue = $row['Serie_Equipo'];\r\n\t\t$this->Id_Hardware->DbValue = $row['Id_Hardware'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Modelo_Net->DbValue = $row['Modelo_Net'];\r\n\t\t$this->Marca_Arranque->DbValue = $row['Marca_Arranque'];\r\n\t\t$this->Nombre_Titular->DbValue = $row['Nombre_Titular'];\r\n\t\t$this->Dni_Titular->DbValue = $row['Dni_Titular'];\r\n\t\t$this->Cuil_Titular->DbValue = $row['Cuil_Titular'];\r\n\t\t$this->Nombre_Tutor->DbValue = $row['Nombre_Tutor'];\r\n\t\t$this->DniTutor->DbValue = $row['DniTutor'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Tutor->DbValue = $row['Tel_Tutor'];\r\n\t\t$this->CelTutor->DbValue = $row['CelTutor'];\r\n\t\t$this->Cue_Establecimiento_Alta->DbValue = $row['Cue_Establecimiento_Alta'];\r\n\t\t$this->Escuela_Alta->DbValue = $row['Escuela_Alta'];\r\n\t\t$this->Directivo_Alta->DbValue = $row['Directivo_Alta'];\r\n\t\t$this->Cuil_Directivo_Alta->DbValue = $row['Cuil_Directivo_Alta'];\r\n\t\t$this->Dpto_Esc_alta->DbValue = $row['Dpto_Esc_alta'];\r\n\t\t$this->Localidad_Esc_Alta->DbValue = $row['Localidad_Esc_Alta'];\r\n\t\t$this->Domicilio_Esc_Alta->DbValue = $row['Domicilio_Esc_Alta'];\r\n\t\t$this->Rte_Alta->DbValue = $row['Rte_Alta'];\r\n\t\t$this->Tel_Rte_Alta->DbValue = $row['Tel_Rte_Alta'];\r\n\t\t$this->Email_Rte_Alta->DbValue = $row['Email_Rte_Alta'];\r\n\t\t$this->Serie_Server_Alta->DbValue = $row['Serie_Server_Alta'];\r\n\t\t$this->Cue_Establecimiento_Baja->DbValue = $row['Cue_Establecimiento_Baja'];\r\n\t\t$this->Escuela_Baja->DbValue = $row['Escuela_Baja'];\r\n\t\t$this->Directivo_Baja->DbValue = $row['Directivo_Baja'];\r\n\t\t$this->Cuil_Directivo_Baja->DbValue = $row['Cuil_Directivo_Baja'];\r\n\t\t$this->Dpto_Esc_Baja->DbValue = $row['Dpto_Esc_Baja'];\r\n\t\t$this->Localidad_Esc_Baja->DbValue = $row['Localidad_Esc_Baja'];\r\n\t\t$this->Domicilio_Esc_Baja->DbValue = $row['Domicilio_Esc_Baja'];\r\n\t\t$this->Rte_Baja->DbValue = $row['Rte_Baja'];\r\n\t\t$this->Tel_Rte_Baja->DbValue = $row['Tel_Rte_Baja'];\r\n\t\t$this->Email_Rte_Baja->DbValue = $row['Email_Rte_Baja'];\r\n\t\t$this->Serie_Server_Baja->DbValue = $row['Serie_Server_Baja'];\r\n\t\t$this->Fecha_Pase->DbValue = $row['Fecha_Pase'];\r\n\t\t$this->Id_Estado_Pase->DbValue = $row['Id_Estado_Pase'];\r\n\t\t$this->Ruta_Archivo->Upload->DbValue = $row['Ruta_Archivo'];\r\n\t}", "function LoadRowValues(&$rs) {\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row = &$rs->fields;\n\t\t$this->Row_Selected($row);\n\t\t$this->Id_tercero->setDbValue($rs->fields('Id_tercero'));\n\t\t$this->nombre_tercero->setDbValue($rs->fields('nombre_tercero'));\n\t\t$this->direccion_tercero->setDbValue($rs->fields('direccion_tercero'));\n\t\t$this->telefono1_tercero->setDbValue($rs->fields('telefono1_tercero'));\n\t\t$this->telefono2_tercero->setDbValue($rs->fields('telefono2_tercero'));\n\t\t$this->fax_tercero->setDbValue($rs->fields('fax_tercero'));\n\t\t$this->nit_tercero->setDbValue($rs->fields('nit_tercero'));\n\t\t$this->tipo_tercero->setDbValue($rs->fields('tipo_tercero'));\n\t\t$this->e_mail_tercero->setDbValue($rs->fields('e_mail_tercero'));\n\t\t$this->Contacto_tercero->setDbValue($rs->fields('Contacto_tercero'));\n\t\t$this->gran_contrib_tercero->setDbValue($rs->fields('gran_contrib_tercero'));\n\t\t$this->autoretenedor_tercero->setDbValue($rs->fields('autoretenedor_tercero'));\n\t\t$this->activo_tercero->setDbValue($rs->fields('activo_tercero'));\n\t\t$this->tercero__registrado_por->setDbValue($rs->fields('tercero_ registrado_por'));\n\t\t$this->reg_comun_tercero->setDbValue($rs->fields('reg_comun_tercero'));\n\t\t$this->responsable_materiales_tercero->setDbValue($rs->fields('responsable_materiales_tercero'));\n\t\t$this->grupo_nomina_tercero->setDbValue($rs->fields('grupo_nomina_tercero'));\n\t\t$this->tercero__lider_Obra->setDbValue($rs->fields('tercero_ lider_Obra'));\n\t\t$this->tercero_nombre_lider->setDbValue($rs->fields('tercero_nombre_lider'));\n\t\t$this->empresa_tercero->setDbValue($rs->fields('empresa_tercero'));\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $frm_fp_units_accomplishment;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$frm_fp_units_accomplishment->Row_Selected($row);\n\t\t$frm_fp_units_accomplishment->units_id->setDbValue($rs->fields('units_id'));\n\t\t$frm_fp_units_accomplishment->focal_person_id->setDbValue($rs->fields('focal_person_id'));\n\t\t$frm_fp_units_accomplishment->unit_id->setDbValue($rs->fields('unit_id'));\n\t\t$frm_fp_units_accomplishment->cu_sequence->setDbValue($rs->fields('cu_sequence'));\n\t\t$frm_fp_units_accomplishment->cu_short_name->setDbValue($rs->fields('cu_short_name'));\n\t\t$frm_fp_units_accomplishment->cu_unit_name->setDbValue($rs->fields('cu_unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name->setDbValue($rs->fields('unit_name'));\n\t\t$frm_fp_units_accomplishment->unit_name_short->setDbValue($rs->fields('unit_name_short'));\n\t\t$frm_fp_units_accomplishment->personnel_count->setDbValue($rs->fields('personnel_count'));\n\t\t$frm_fp_units_accomplishment->mfo_1->setDbValue($rs->fields('mfo_1'));\n\t\t$frm_fp_units_accomplishment->mfo_2->setDbValue($rs->fields('mfo_2'));\n\t\t$frm_fp_units_accomplishment->mfo_3->setDbValue($rs->fields('mfo_3'));\n\t\t$frm_fp_units_accomplishment->mfo_4->setDbValue($rs->fields('mfo_4'));\n\t\t$frm_fp_units_accomplishment->mfo_5->setDbValue($rs->fields('mfo_5'));\n\t\t$frm_fp_units_accomplishment->sto->setDbValue($rs->fields('sto'));\n\t\t$frm_fp_units_accomplishment->gass->setDbValue($rs->fields('gass'));\n\t\t$frm_fp_units_accomplishment->users_name->setDbValue($rs->fields('users_name'));\n\t\t$frm_fp_units_accomplishment->users_nameLast->setDbValue($rs->fields('users_nameLast'));\n\t\t$frm_fp_units_accomplishment->users_nameFirst->setDbValue($rs->fields('users_nameFirst'));\n\t\t$frm_fp_units_accomplishment->users_nameMiddle->setDbValue($rs->fields('users_nameMiddle'));\n\t\t$frm_fp_units_accomplishment->users_userLoginName->setDbValue($rs->fields('users_userLoginName'));\n\t\t$frm_fp_units_accomplishment->users_password->setDbValue($rs->fields('users_password'));\n\t\t$frm_fp_units_accomplishment->users_email->setDbValue($rs->fields('users_email'));\n\t\t$frm_fp_units_accomplishment->users_contactNo->setDbValue($rs->fields('users_contactNo'));\n\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->setDbValue($rs->fields('tbl_cutOffDate_id'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate->setDbValue($rs->fields('t_cutOffDate'));\n\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->setDbValue($rs->fields('t_cutOffDate_remarks'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->product_id->DbValue = $row['product_id'];\n\t\t$this->cat_id->DbValue = $row['cat_id'];\n\t\t$this->company_id->DbValue = $row['company_id'];\n\t\t$this->pro_model->DbValue = $row['pro_model'];\n\t\t$this->pro_name->DbValue = $row['pro_name'];\n\t\t$this->pro_description->DbValue = $row['pro_description'];\n\t\t$this->pro_condition->DbValue = $row['pro_condition'];\n\t\t$this->pro_features->DbValue = $row['pro_features'];\n\t\t$this->post_date->DbValue = $row['post_date'];\n\t\t$this->ads_id->DbValue = $row['ads_id'];\n\t\t$this->pro_base_price->DbValue = $row['pro_base_price'];\n\t\t$this->pro_sell_price->DbValue = $row['pro_sell_price'];\n\t\t$this->featured_image->Upload->DbValue = $row['featured_image'];\n\t\t$this->folder_image->DbValue = $row['folder_image'];\n\t\t$this->pro_status->DbValue = $row['pro_status'];\n\t\t$this->branch_id->DbValue = $row['branch_id'];\n\t\t$this->lang->DbValue = $row['lang'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Nro_Serie->DbValue = $row['Nro_Serie'];\r\n\t\t$this->SN->DbValue = $row['SN'];\r\n\t\t$this->Cant_Net_Asoc->DbValue = $row['Cant_Net_Asoc'];\r\n\t\t$this->Id_Marca->DbValue = $row['Id_Marca'];\r\n\t\t$this->Id_Modelo->DbValue = $row['Id_Modelo'];\r\n\t\t$this->Id_SO->DbValue = $row['Id_SO'];\r\n\t\t$this->Id_Estado->DbValue = $row['Id_Estado'];\r\n\t\t$this->User_Server->DbValue = $row['User_Server'];\r\n\t\t$this->Pass_Server->DbValue = $row['Pass_Server'];\r\n\t\t$this->User_TdServer->DbValue = $row['User_TdServer'];\r\n\t\t$this->Pass_TdServer->DbValue = $row['Pass_TdServer'];\r\n\t\t$this->Cue->DbValue = $row['Cue'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->empleado_id->DbValue = $row['empleado_id'];\n\t\t$this->codigo->DbValue = $row['codigo'];\n\t\t$this->cui->DbValue = $row['cui'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->apellido->DbValue = $row['apellido'];\n\t\t$this->direccion->DbValue = $row['direccion'];\n\t\t$this->departamento_origen_id->DbValue = $row['departamento_origen_id'];\n\t\t$this->municipio_id->DbValue = $row['municipio_id'];\n\t\t$this->telefono_residencia->DbValue = $row['telefono_residencia'];\n\t\t$this->telefono_celular->DbValue = $row['telefono_celular'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->nacionalidad->DbValue = $row['nacionalidad'];\n\t\t$this->estado_civil->DbValue = $row['estado_civil'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->igss->DbValue = $row['igss'];\n\t\t$this->nit->DbValue = $row['nit'];\n\t\t$this->licencia_conducir->DbValue = $row['licencia_conducir'];\n\t\t$this->area_id->DbValue = $row['area_id'];\n\t\t$this->departmento_id->DbValue = $row['departmento_id'];\n\t\t$this->seccion_id->DbValue = $row['seccion_id'];\n\t\t$this->puesto_id->DbValue = $row['puesto_id'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->tipo_sangre_id->DbValue = $row['tipo_sangre_id'];\n\t\t$this->estado->DbValue = $row['estado'];\n\t}", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->IncomeCode->setDbValue($rs->fields('IncomeCode'));\n\t\t$this->IncomeName->setDbValue($rs->fields('IncomeName'));\n\t\t$this->IncomeDescription->setDbValue($rs->fields('IncomeDescription'));\n\t\t$this->Division->setDbValue($rs->fields('Division'));\n\t\t$this->IncomeAmount->setDbValue($rs->fields('IncomeAmount'));\n\t\t$this->IncomeBasicRate->setDbValue($rs->fields('IncomeBasicRate'));\n\t\t$this->BaseIncomeCode->setDbValue($rs->fields('BaseIncomeCode'));\n\t\t$this->Taxable->setDbValue($rs->fields('Taxable'));\n\t\t$this->AccountNo->setDbValue($rs->fields('AccountNo'));\n\t\t$this->JobIncluded->setDbValue($rs->fields('JobIncluded'));\n\t\t$this->Application->setDbValue($rs->fields('Application'));\n\t\t$this->JobExcluded->setDbValue($rs->fields('JobExcluded'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->replid->DbValue = $row['replid'];\n\t\t$this->nama->DbValue = $row['nama'];\n\t\t$this->besar->DbValue = $row['besar'];\n\t\t$this->idkategori->DbValue = $row['idkategori'];\n\t\t$this->rekkas->DbValue = $row['rekkas'];\n\t\t$this->rekpendapatan->DbValue = $row['rekpendapatan'];\n\t\t$this->rekpiutang->DbValue = $row['rekpiutang'];\n\t\t$this->aktif->DbValue = $row['aktif'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->departemen->DbValue = $row['departemen'];\n\t\t$this->info1->DbValue = $row['info1'];\n\t\t$this->info2->DbValue = $row['info2'];\n\t\t$this->info3->DbValue = $row['info3'];\n\t\t$this->ts->DbValue = $row['ts'];\n\t\t$this->token->DbValue = $row['token'];\n\t\t$this->issync->DbValue = $row['issync'];\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->IDXDAFTAR->setDbValue($rs->fields('IDXDAFTAR'));\n\t\t$this->TGLREG->setDbValue($rs->fields('TGLREG'));\n\t\t$this->NOMR->setDbValue($rs->fields('NOMR'));\n\t\t$this->KETERANGAN->setDbValue($rs->fields('KETERANGAN'));\n\t\t$this->NOKARTU_BPJS->setDbValue($rs->fields('NOKARTU_BPJS'));\n\t\t$this->NOKTP->setDbValue($rs->fields('NOKTP'));\n\t\t$this->KDDOKTER->setDbValue($rs->fields('KDDOKTER'));\n\t\t$this->KDPOLY->setDbValue($rs->fields('KDPOLY'));\n\t\t$this->KDRUJUK->setDbValue($rs->fields('KDRUJUK'));\n\t\t$this->KDCARABAYAR->setDbValue($rs->fields('KDCARABAYAR'));\n\t\t$this->NOJAMINAN->setDbValue($rs->fields('NOJAMINAN'));\n\t\t$this->SHIFT->setDbValue($rs->fields('SHIFT'));\n\t\t$this->STATUS->setDbValue($rs->fields('STATUS'));\n\t\t$this->KETERANGAN_STATUS->setDbValue($rs->fields('KETERANGAN_STATUS'));\n\t\t$this->PASIENBARU->setDbValue($rs->fields('PASIENBARU'));\n\t\t$this->NIP->setDbValue($rs->fields('NIP'));\n\t\t$this->MASUKPOLY->setDbValue($rs->fields('MASUKPOLY'));\n\t\t$this->KELUARPOLY->setDbValue($rs->fields('KELUARPOLY'));\n\t\t$this->KETRUJUK->setDbValue($rs->fields('KETRUJUK'));\n\t\t$this->KETBAYAR->setDbValue($rs->fields('KETBAYAR'));\n\t\t$this->PENANGGUNGJAWAB_NAMA->setDbValue($rs->fields('PENANGGUNGJAWAB_NAMA'));\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->setDbValue($rs->fields('PENANGGUNGJAWAB_HUBUNGAN'));\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->setDbValue($rs->fields('PENANGGUNGJAWAB_ALAMAT'));\n\t\t$this->PENANGGUNGJAWAB_PHONE->setDbValue($rs->fields('PENANGGUNGJAWAB_PHONE'));\n\t\t$this->JAMREG->setDbValue($rs->fields('JAMREG'));\n\t\t$this->BATAL->setDbValue($rs->fields('BATAL'));\n\t\t$this->NO_SJP->setDbValue($rs->fields('NO_SJP'));\n\t\t$this->NO_PESERTA->setDbValue($rs->fields('NO_PESERTA'));\n\t\t$this->NOKARTU->setDbValue($rs->fields('NOKARTU'));\n\t\t$this->TANGGAL_SEP->setDbValue($rs->fields('TANGGAL_SEP'));\n\t\t$this->TANGGALRUJUK_SEP->setDbValue($rs->fields('TANGGALRUJUK_SEP'));\n\t\t$this->KELASRAWAT_SEP->setDbValue($rs->fields('KELASRAWAT_SEP'));\n\t\t$this->MINTA_RUJUKAN->setDbValue($rs->fields('MINTA_RUJUKAN'));\n\t\t$this->NORUJUKAN_SEP->setDbValue($rs->fields('NORUJUKAN_SEP'));\n\t\t$this->PPKRUJUKANASAL_SEP->setDbValue($rs->fields('PPKRUJUKANASAL_SEP'));\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->setDbValue($rs->fields('NAMAPPKRUJUKANASAL_SEP'));\n\t\t$this->PPKPELAYANAN_SEP->setDbValue($rs->fields('PPKPELAYANAN_SEP'));\n\t\t$this->JENISPERAWATAN_SEP->setDbValue($rs->fields('JENISPERAWATAN_SEP'));\n\t\t$this->CATATAN_SEP->setDbValue($rs->fields('CATATAN_SEP'));\n\t\t$this->DIAGNOSAAWAL_SEP->setDbValue($rs->fields('DIAGNOSAAWAL_SEP'));\n\t\t$this->NAMADIAGNOSA_SEP->setDbValue($rs->fields('NAMADIAGNOSA_SEP'));\n\t\t$this->LAKALANTAS_SEP->setDbValue($rs->fields('LAKALANTAS_SEP'));\n\t\t$this->LOKASILAKALANTAS->setDbValue($rs->fields('LOKASILAKALANTAS'));\n\t\t$this->USER->setDbValue($rs->fields('USER'));\n\t\t$this->tanggal->setDbValue($rs->fields('tanggal'));\n\t\t$this->bulan->setDbValue($rs->fields('bulan'));\n\t\t$this->tahun->setDbValue($rs->fields('tahun'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Id_Item->DbValue = $row['Id_Item'];\n\t\t$this->codigo_item->DbValue = $row['codigo_item'];\n\t\t$this->nombre_item->DbValue = $row['nombre_item'];\n\t\t$this->und_item->DbValue = $row['und_item'];\n\t\t$this->precio_item->DbValue = $row['precio_item'];\n\t\t$this->costo_item->DbValue = $row['costo_item'];\n\t\t$this->tipo_item->DbValue = $row['tipo_item'];\n\t\t$this->marca_item->DbValue = $row['marca_item'];\n\t\t$this->cod_marca_item->DbValue = $row['cod_marca_item'];\n\t\t$this->detalle_item->DbValue = $row['detalle_item'];\n\t\t$this->saldo_item->DbValue = $row['saldo_item'];\n\t\t$this->activo_item->DbValue = $row['activo_item'];\n\t\t$this->maneja_serial_item->DbValue = $row['maneja_serial_item'];\n\t\t$this->asignado_item->DbValue = $row['asignado_item'];\n\t\t$this->si_no_item->DbValue = $row['si_no_item'];\n\t\t$this->precio_old_item->DbValue = $row['precio_old_item'];\n\t\t$this->costo_old_item->DbValue = $row['costo_old_item'];\n\t\t$this->registra_item->DbValue = $row['registra_item'];\n\t\t$this->fecha_registro_item->DbValue = $row['fecha_registro_item'];\n\t\t$this->empresa_item->DbValue = $row['empresa_item'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->id_sector->DbValue = $row['id_sector'];\n\t\t$this->id_actividad->DbValue = $row['id_actividad'];\n\t\t$this->id_categoria->DbValue = $row['id_categoria'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->nrodiscapacidad->DbValue = $row['nrodiscapacidad'];\n\t\t$this->celular->DbValue = $row['celular'];\n\t\t$this->direcciondomicilio->DbValue = $row['direcciondomicilio'];\n\t\t$this->ocupacion->DbValue = $row['ocupacion'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->cargo->DbValue = $row['cargo'];\n\t\t$this->nivelestudio->DbValue = $row['nivelestudio'];\n\t\t$this->id_institucion->DbValue = $row['id_institucion'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->unid->DbValue = $row['unid'];\n\t\t$this->u_id->DbValue = $row['u_id'];\n\t\t$this->acl_id->DbValue = $row['acl_id'];\n\t\t$this->Name->DbValue = $row['Name'];\n\t\t$this->Basics->DbValue = $row['Basics'];\n\t\t$this->HP->DbValue = $row['HP'];\n\t\t$this->MP->DbValue = $row['MP'];\n\t\t$this->AD->DbValue = $row['AD'];\n\t\t$this->AP->DbValue = $row['AP'];\n\t\t$this->Defense->DbValue = $row['Defense'];\n\t\t$this->Hit->DbValue = $row['Hit'];\n\t\t$this->Dodge->DbValue = $row['Dodge'];\n\t\t$this->Crit->DbValue = $row['Crit'];\n\t\t$this->AbsorbHP->DbValue = $row['AbsorbHP'];\n\t\t$this->ADPTV->DbValue = $row['ADPTV'];\n\t\t$this->ADPTR->DbValue = $row['ADPTR'];\n\t\t$this->APPTR->DbValue = $row['APPTR'];\n\t\t$this->APPTV->DbValue = $row['APPTV'];\n\t\t$this->ImmuneDamage->DbValue = $row['ImmuneDamage'];\n\t\t$this->Intro->DbValue = $row['Intro'];\n\t\t$this->ExclusiveSkills->DbValue = $row['ExclusiveSkills'];\n\t\t$this->TransferDemand->DbValue = $row['TransferDemand'];\n\t\t$this->TransferLevel->DbValue = $row['TransferLevel'];\n\t\t$this->FormerOccupation->DbValue = $row['FormerOccupation'];\n\t\t$this->Belong->DbValue = $row['Belong'];\n\t\t$this->AttackEffect->DbValue = $row['AttackEffect'];\n\t\t$this->AttackTips->DbValue = $row['AttackTips'];\n\t\t$this->MagicResistance->DbValue = $row['MagicResistance'];\n\t\t$this->IgnoreShield->DbValue = $row['IgnoreShield'];\n\t\t$this->DATETIME->DbValue = $row['DATETIME'];\n\t}", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IncomeCode->DbValue = $row['IncomeCode'];\n\t\t$this->IncomeName->DbValue = $row['IncomeName'];\n\t\t$this->IncomeDescription->DbValue = $row['IncomeDescription'];\n\t\t$this->Division->DbValue = $row['Division'];\n\t\t$this->IncomeAmount->DbValue = $row['IncomeAmount'];\n\t\t$this->IncomeBasicRate->DbValue = $row['IncomeBasicRate'];\n\t\t$this->BaseIncomeCode->DbValue = $row['BaseIncomeCode'];\n\t\t$this->Taxable->DbValue = $row['Taxable'];\n\t\t$this->AccountNo->DbValue = $row['AccountNo'];\n\t\t$this->JobIncluded->DbValue = $row['JobIncluded'];\n\t\t$this->Application->DbValue = $row['Application'];\n\t\t$this->JobExcluded->DbValue = $row['JobExcluded'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->Id_tercero->DbValue = $row['Id_tercero'];\n\t\t$this->nombre_tercero->DbValue = $row['nombre_tercero'];\n\t\t$this->direccion_tercero->DbValue = $row['direccion_tercero'];\n\t\t$this->telefono1_tercero->DbValue = $row['telefono1_tercero'];\n\t\t$this->telefono2_tercero->DbValue = $row['telefono2_tercero'];\n\t\t$this->fax_tercero->DbValue = $row['fax_tercero'];\n\t\t$this->nit_tercero->DbValue = $row['nit_tercero'];\n\t\t$this->tipo_tercero->DbValue = $row['tipo_tercero'];\n\t\t$this->e_mail_tercero->DbValue = $row['e_mail_tercero'];\n\t\t$this->Contacto_tercero->DbValue = $row['Contacto_tercero'];\n\t\t$this->gran_contrib_tercero->DbValue = $row['gran_contrib_tercero'];\n\t\t$this->autoretenedor_tercero->DbValue = $row['autoretenedor_tercero'];\n\t\t$this->activo_tercero->DbValue = $row['activo_tercero'];\n\t\t$this->tercero__registrado_por->DbValue = $row['tercero_ registrado_por'];\n\t\t$this->reg_comun_tercero->DbValue = $row['reg_comun_tercero'];\n\t\t$this->responsable_materiales_tercero->DbValue = $row['responsable_materiales_tercero'];\n\t\t$this->grupo_nomina_tercero->DbValue = $row['grupo_nomina_tercero'];\n\t\t$this->tercero__lider_Obra->DbValue = $row['tercero_ lider_Obra'];\n\t\t$this->tercero_nombre_lider->DbValue = $row['tercero_nombre_lider'];\n\t\t$this->empresa_tercero->DbValue = $row['empresa_tercero'];\n\t}", "function LoadRowValues(&$rs) {\n\t\tglobal $conn, $tbl_profile;\n\t\tif (!$rs || $rs->EOF) return;\n\n\t\t// Call Row Selected event\n\t\t$row =& $rs->fields;\n\t\t$tbl_profile->Row_Selected($row);\n\t\t$tbl_profile->facultyprofile_ID->setDbValue($rs->fields('facultyprofile_ID'));\n\t\t$tbl_profile->faculty_ID->setDbValue($rs->fields('faculty_ID'));\n\t\t$tbl_profile->faculty_name->setDbValue($rs->fields('faculty_name'));\n\t\t$tbl_profile->collectionPeriod_ID->setDbValue($rs->fields('collectionPeriod_ID'));\n\t\t$tbl_profile->cu->setDbValue($rs->fields('cu'));\n\t\t$tbl_profile->collectionPeriod_ay->setDbValue($rs->fields('collectionPeriod_ay'));\n\t\t$tbl_profile->collectionPeriod_sem->setDbValue($rs->fields('collectionPeriod_sem'));\n\t\t$tbl_profile->collectionPeriod_cutOffDate->setDbValue($rs->fields('collectionPeriod_cutOffDate'));\n\t\t$tbl_profile->unitID->setDbValue($rs->fields('unitID'));\n\t\t$tbl_profile->facultyprofile_homeUnit_ID->setDbValue($rs->fields('facultyprofile_homeUnit_ID'));\n\t\t$tbl_profile->facultyprofile_isHomeUnit->setDbValue($rs->fields('facultyprofile_isHomeUnit'));\n\t\t$tbl_profile->facultyGroup_CHEDCode->setDbValue($rs->fields('facultyGroup_CHEDCode'));\n\t\t$tbl_profile->facultyRank_ID->setDbValue($rs->fields('facultyRank_ID'));\n\t\t$tbl_profile->facultyprofile_sg->setDbValue($rs->fields('facultyprofile_sg'));\n\t\t$tbl_profile->facultyprofile_annualSalary->setDbValue($rs->fields('facultyprofile_annualSalary'));\n\t\t$tbl_profile->facultyprofile_fte->setDbValue($rs->fields('facultyprofile_fte'));\n\t\t$tbl_profile->facultyprofile_tenureCode->setDbValue($rs->fields('facultyprofile_tenureCode'));\n\t\t$tbl_profile->facultyprofile_leaveCode->setDbValue($rs->fields('facultyprofile_leaveCode'));\n\t\t$tbl_profile->facultyprofile_disCHED_disciplineMajorCode_gen->setDbValue($rs->fields('facultyprofile_disCHED_disciplineMajorCode_gen'));\n\t\t$tbl_profile->disCHED_disciplineCode_gen->setDbValue($rs->fields('disCHED_disciplineCode_gen'));\n\t\t$tbl_profile->facultyprofile_specificDiscipline_1_primaryTeachingLoad->setDbValue($rs->fields('facultyprofile_specificDiscipline_1_primaryTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_specificDiscipline_2_primaryTeachingLoad->setDbValue($rs->fields('facultyprofile_specificDiscipline_2_primaryTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_labHrs_basic->setDbValue($rs->fields('facultyprofile_labHrs_basic'));\n\t\t$tbl_profile->facultyprofile_lecHrs_basic->setDbValue($rs->fields('facultyprofile_lecHrs_basic'));\n\t\t$tbl_profile->facultyprofile_totalHrs_basic->setDbValue($rs->fields('facultyprofile_totalHrs_basic'));\n\t\t$tbl_profile->facultyprofile_labSCH_basic->setDbValue($rs->fields('facultyprofile_labSCH_basic'));\n\t\t$tbl_profile->facultyprofile_lecSCH_basic->setDbValue($rs->fields('facultyprofile_lecSCH_basic'));\n\t\t$tbl_profile->facultyprofile_totalSCH_basic->setDbValue($rs->fields('facultyprofile_totalSCH_basic'));\n\t\t$tbl_profile->facultyprofile_labCr_ugrad->setDbValue($rs->fields('facultyprofile_labCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecCr_ugrad->setDbValue($rs->fields('facultyprofile_lecCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalCr_ugrad->setDbValue($rs->fields('facultyprofile_totalCr_ugrad'));\n\t\t$tbl_profile->facultyprofile_labHrs_ugrad->setDbValue($rs->fields('facultyprofile_labHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecHrs_ugrad->setDbValue($rs->fields('facultyprofile_lecHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalHrs_ugrad->setDbValue($rs->fields('facultyprofile_totalHrs_ugrad'));\n\t\t$tbl_profile->facultyprofile_labSCH_ugrad->setDbValue($rs->fields('facultyprofile_labSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_lecSCH_ugrad->setDbValue($rs->fields('facultyprofile_lecSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_ugrad->setDbValue($rs->fields('facultyprofile_mixedLabLecSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_totalSCH_ugrad->setDbValue($rs->fields('facultyprofile_totalSCH_ugrad'));\n\t\t$tbl_profile->facultyprofile_labCr_graduate->setDbValue($rs->fields('facultyprofile_labCr_graduate'));\n\t\t$tbl_profile->facultyprofile_lecCr_graduate->setDbValue($rs->fields('facultyprofile_lecCr_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecCr_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecCr_graduate'));\n\t\t$tbl_profile->facultyprofile_totalCr_graduate->setDbValue($rs->fields('facultyprofile_totalCr_graduate'));\n\t\t$tbl_profile->facultyprofile_labHrs_graduate->setDbValue($rs->fields('facultyprofile_labHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_lecHrs_graduate->setDbValue($rs->fields('facultyprofile_lecHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecHrs_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_totalHrs_graduate->setDbValue($rs->fields('facultyprofile_totalHrs_graduate'));\n\t\t$tbl_profile->facultyprofile_labSCH_graduate->setDbValue($rs->fields('facultyprofile_labSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_lecSCH_graduate->setDbValue($rs->fields('facultyprofile_lecSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_mixedLabLecSCH_graduate->setDbValue($rs->fields('facultyprofile_mixedLabLecSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_totalSCH_graduate->setDbValue($rs->fields('facultyprofile_totalSCH_graduate'));\n\t\t$tbl_profile->facultyprofile_researchLoad->setDbValue($rs->fields('facultyprofile_researchLoad'));\n\t\t$tbl_profile->facultyprofile_extensionServicesLoad->setDbValue($rs->fields('facultyprofile_extensionServicesLoad'));\n\t\t$tbl_profile->facultyprofile_studyLoad->setDbValue($rs->fields('facultyprofile_studyLoad'));\n\t\t$tbl_profile->facultyprofile_forProductionLoad->setDbValue($rs->fields('facultyprofile_forProductionLoad'));\n\t\t$tbl_profile->facultyprofile_administrativeLoad->setDbValue($rs->fields('facultyprofile_administrativeLoad'));\n\t\t$tbl_profile->facultyprofile_otherLoadCredits->setDbValue($rs->fields('facultyprofile_otherLoadCredits'));\n\t\t$tbl_profile->facultyprofile_total_nonTeachingLoad->setDbValue($rs->fields('facultyprofile_total_nonTeachingLoad'));\n\t\t$tbl_profile->facultyprofile_totalWorkloadInCreditUnits_gen->setDbValue($rs->fields('facultyprofile_totalWorkloadInCreditUnits_gen'));\n\t\t$tbl_profile->facultyprofile_remarks->setDbValue($rs->fields('facultyprofile_remarks'));\n\t\t$tbl_profile->collectionPeriod_status->setDbValue($rs->fields('collectionPeriod_status'));\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id_admission->DbValue = $row['id_admission'];\n\t\t$this->nomr->DbValue = $row['nomr'];\n\t\t$this->ket_nama->DbValue = $row['ket_nama'];\n\t\t$this->ket_tgllahir->DbValue = $row['ket_tgllahir'];\n\t\t$this->ket_alamat->DbValue = $row['ket_alamat'];\n\t\t$this->ket_jeniskelamin->DbValue = $row['ket_jeniskelamin'];\n\t\t$this->ket_title->DbValue = $row['ket_title'];\n\t\t$this->dokterpengirim->DbValue = $row['dokterpengirim'];\n\t\t$this->statusbayar->DbValue = $row['statusbayar'];\n\t\t$this->kirimdari->DbValue = $row['kirimdari'];\n\t\t$this->keluargadekat->DbValue = $row['keluargadekat'];\n\t\t$this->panggungjawab->DbValue = $row['panggungjawab'];\n\t\t$this->masukrs->DbValue = $row['masukrs'];\n\t\t$this->noruang->DbValue = $row['noruang'];\n\t\t$this->tempat_tidur_id->DbValue = $row['tempat_tidur_id'];\n\t\t$this->nott->DbValue = $row['nott'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->dokter_penanggungjawab->DbValue = $row['dokter_penanggungjawab'];\n\t\t$this->KELASPERAWATAN_ID->DbValue = $row['KELASPERAWATAN_ID'];\n\t\t$this->NO_SKP->DbValue = $row['NO_SKP'];\n\t\t$this->sep_tglsep->DbValue = $row['sep_tglsep'];\n\t\t$this->sep_tglrujuk->DbValue = $row['sep_tglrujuk'];\n\t\t$this->sep_kodekelasrawat->DbValue = $row['sep_kodekelasrawat'];\n\t\t$this->sep_norujukan->DbValue = $row['sep_norujukan'];\n\t\t$this->sep_kodeppkasal->DbValue = $row['sep_kodeppkasal'];\n\t\t$this->sep_namappkasal->DbValue = $row['sep_namappkasal'];\n\t\t$this->sep_kodeppkpelayanan->DbValue = $row['sep_kodeppkpelayanan'];\n\t\t$this->sep_jenisperawatan->DbValue = $row['sep_jenisperawatan'];\n\t\t$this->sep_catatan->DbValue = $row['sep_catatan'];\n\t\t$this->sep_kodediagnosaawal->DbValue = $row['sep_kodediagnosaawal'];\n\t\t$this->sep_namadiagnosaawal->DbValue = $row['sep_namadiagnosaawal'];\n\t\t$this->sep_lakalantas->DbValue = $row['sep_lakalantas'];\n\t\t$this->sep_lokasilaka->DbValue = $row['sep_lokasilaka'];\n\t\t$this->sep_user->DbValue = $row['sep_user'];\n\t\t$this->sep_flag_cekpeserta->DbValue = $row['sep_flag_cekpeserta'];\n\t\t$this->sep_flag_generatesep->DbValue = $row['sep_flag_generatesep'];\n\t\t$this->sep_nik->DbValue = $row['sep_nik'];\n\t\t$this->sep_namapeserta->DbValue = $row['sep_namapeserta'];\n\t\t$this->sep_jeniskelamin->DbValue = $row['sep_jeniskelamin'];\n\t\t$this->sep_pisat->DbValue = $row['sep_pisat'];\n\t\t$this->sep_tgllahir->DbValue = $row['sep_tgllahir'];\n\t\t$this->sep_kodejeniskepesertaan->DbValue = $row['sep_kodejeniskepesertaan'];\n\t\t$this->sep_namajeniskepesertaan->DbValue = $row['sep_namajeniskepesertaan'];\n\t\t$this->sep_nokabpjs->DbValue = $row['sep_nokabpjs'];\n\t\t$this->sep_status_peserta->DbValue = $row['sep_status_peserta'];\n\t\t$this->sep_umur_pasien_sekarang->DbValue = $row['sep_umur_pasien_sekarang'];\n\t\t$this->statuskeluarranap_id->DbValue = $row['statuskeluarranap_id'];\n\t\t$this->keluarrs->DbValue = $row['keluarrs'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->nombre_contacto->DbValue = $row['nombre_contacto'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->lastname->DbValue = $row['lastname'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->address->DbValue = $row['address'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->cell->DbValue = $row['cell'];\n\t\t$this->is_active->DbValue = $row['is_active'];\n\t\t$this->created_at->DbValue = $row['created_at'];\n\t\t$this->id_sucursal->DbValue = $row['id_sucursal'];\n\t\t$this->documentos->DbValue = $row['documentos'];\n\t\t$this->DateModified->DbValue = $row['DateModified'];\n\t\t$this->DateDeleted->DbValue = $row['DateDeleted'];\n\t\t$this->CreatedBy->DbValue = $row['CreatedBy'];\n\t\t$this->ModifiedBy->DbValue = $row['ModifiedBy'];\n\t\t$this->DeletedBy->DbValue = $row['DeletedBy'];\n\t\t$this->latitud->DbValue = $row['latitud'];\n\t\t$this->longitud->DbValue = $row['longitud'];\n\t\t$this->tipoinmueble->DbValue = $row['tipoinmueble'];\n\t\t$this->id_ciudad_inmueble->DbValue = $row['id_ciudad_inmueble'];\n\t\t$this->id_provincia_inmueble->DbValue = $row['id_provincia_inmueble'];\n\t\t$this->imagen_inmueble01->Upload->DbValue = $row['imagen_inmueble01'];\n\t\t$this->imagen_inmueble02->Upload->DbValue = $row['imagen_inmueble02'];\n\t\t$this->imagen_inmueble03->Upload->DbValue = $row['imagen_inmueble03'];\n\t\t$this->imagen_inmueble04->Upload->DbValue = $row['imagen_inmueble04'];\n\t\t$this->imagen_inmueble05->Upload->DbValue = $row['imagen_inmueble05'];\n\t\t$this->imagen_inmueble06->Upload->DbValue = $row['imagen_inmueble06'];\n\t\t$this->imagen_inmueble07->Upload->DbValue = $row['imagen_inmueble07'];\n\t\t$this->imagen_inmueble08->Upload->DbValue = $row['imagen_inmueble08'];\n\t\t$this->tipovehiculo->DbValue = $row['tipovehiculo'];\n\t\t$this->id_ciudad_vehiculo->DbValue = $row['id_ciudad_vehiculo'];\n\t\t$this->id_provincia_vehiculo->DbValue = $row['id_provincia_vehiculo'];\n\t\t$this->imagen_vehiculo01->Upload->DbValue = $row['imagen_vehiculo01'];\n\t\t$this->imagen_vehiculo02->Upload->DbValue = $row['imagen_vehiculo02'];\n\t\t$this->imagen_vehiculo03->Upload->DbValue = $row['imagen_vehiculo03'];\n\t\t$this->imagen_vehiculo04->Upload->DbValue = $row['imagen_vehiculo04'];\n\t\t$this->imagen_vehiculo05->Upload->DbValue = $row['imagen_vehiculo05'];\n\t\t$this->imagen_vehiculo06->Upload->DbValue = $row['imagen_vehiculo06'];\n\t\t$this->imagen_vehiculo07->Upload->DbValue = $row['imagen_vehiculo07'];\n\t\t$this->imagen_vehiculo08->Upload->DbValue = $row['imagen_vehiculo08'];\n\t\t$this->tipomaquinaria->DbValue = $row['tipomaquinaria'];\n\t\t$this->id_ciudad_maquinaria->DbValue = $row['id_ciudad_maquinaria'];\n\t\t$this->id_provincia_maquinaria->DbValue = $row['id_provincia_maquinaria'];\n\t\t$this->imagen_maquinaria01->Upload->DbValue = $row['imagen_maquinaria01'];\n\t\t$this->imagen_maquinaria02->Upload->DbValue = $row['imagen_maquinaria02'];\n\t\t$this->imagen_maquinaria03->Upload->DbValue = $row['imagen_maquinaria03'];\n\t\t$this->imagen_maquinaria04->Upload->DbValue = $row['imagen_maquinaria04'];\n\t\t$this->imagen_maquinaria05->Upload->DbValue = $row['imagen_maquinaria05'];\n\t\t$this->imagen_maquinaria06->Upload->DbValue = $row['imagen_maquinaria06'];\n\t\t$this->imagen_maquinaria07->Upload->DbValue = $row['imagen_maquinaria07'];\n\t\t$this->imagen_maquinaria08->Upload->DbValue = $row['imagen_maquinaria08'];\n\t\t$this->tipomercaderia->DbValue = $row['tipomercaderia'];\n\t\t$this->imagen_mercaderia01->Upload->DbValue = $row['imagen_mercaderia01'];\n\t\t$this->documento_mercaderia->DbValue = $row['documento_mercaderia'];\n\t\t$this->tipoespecial->DbValue = $row['tipoespecial'];\n\t\t$this->imagen_tipoespecial01->Upload->DbValue = $row['imagen_tipoespecial01'];\n\t\t$this->email_contacto->DbValue = $row['email_contacto'];\n\t}", "public abstract function fetchRow($result_set);", "protected function loadDbValues(&$rs)\n\t{\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha->DbValue = $row['fecha'];\n\t\t$this->hora->DbValue = $row['hora'];\n\t\t$this->audio->DbValue = $row['audio'];\n\t\t$this->st->DbValue = $row['st'];\n\t\t$this->fechaHoraIni->DbValue = $row['fechaHoraIni'];\n\t\t$this->fechaHoraFin->DbValue = $row['fechaHoraFin'];\n\t\t$this->telefono->DbValue = $row['telefono'];\n\t\t$this->agente->DbValue = $row['agente'];\n\t\t$this->fechabo->DbValue = $row['fechabo'];\n\t\t$this->agentebo->DbValue = $row['agentebo'];\n\t\t$this->comentariosbo->DbValue = $row['comentariosbo'];\n\t\t$this->IP->DbValue = $row['IP'];\n\t\t$this->actual->DbValue = $row['actual'];\n\t\t$this->completado->DbValue = $row['completado'];\n\t\t$this->_2_1_R->DbValue = $row['2_1_R'];\n\t\t$this->_2_2_R->DbValue = $row['2_2_R'];\n\t\t$this->_2_3_R->DbValue = $row['2_3_R'];\n\t\t$this->_3_4_R->DbValue = $row['3_4_R'];\n\t\t$this->_4_5_R->DbValue = $row['4_5_R'];\n\t\t$this->_4_6_R->DbValue = $row['4_6_R'];\n\t\t$this->_4_7_R->DbValue = $row['4_7_R'];\n\t\t$this->_4_8_R->DbValue = $row['4_8_R'];\n\t\t$this->_5_9_R->DbValue = $row['5_9_R'];\n\t\t$this->_5_10_R->DbValue = $row['5_10_R'];\n\t\t$this->_5_11_R->DbValue = $row['5_11_R'];\n\t\t$this->_5_12_R->DbValue = $row['5_12_R'];\n\t\t$this->_5_13_R->DbValue = $row['5_13_R'];\n\t\t$this->_5_14_R->DbValue = $row['5_14_R'];\n\t\t$this->_5_51_R->DbValue = $row['5_51_R'];\n\t\t$this->_6_15_R->DbValue = $row['6_15_R'];\n\t\t$this->_6_16_R->DbValue = $row['6_16_R'];\n\t\t$this->_6_17_R->DbValue = $row['6_17_R'];\n\t\t$this->_6_18_R->DbValue = $row['6_18_R'];\n\t\t$this->_6_19_R->DbValue = $row['6_19_R'];\n\t\t$this->_6_20_R->DbValue = $row['6_20_R'];\n\t\t$this->_6_52_R->DbValue = $row['6_52_R'];\n\t\t$this->_7_21_R->DbValue = $row['7_21_R'];\n\t\t$this->_8_22_R->DbValue = $row['8_22_R'];\n\t\t$this->_8_23_R->DbValue = $row['8_23_R'];\n\t\t$this->_8_24_R->DbValue = $row['8_24_R'];\n\t\t$this->_8_25_R->DbValue = $row['8_25_R'];\n\t\t$this->_9_26_R->DbValue = $row['9_26_R'];\n\t\t$this->_9_27_R->DbValue = $row['9_27_R'];\n\t\t$this->_9_28_R->DbValue = $row['9_28_R'];\n\t\t$this->_9_29_R->DbValue = $row['9_29_R'];\n\t\t$this->_9_30_R->DbValue = $row['9_30_R'];\n\t\t$this->_9_31_R->DbValue = $row['9_31_R'];\n\t\t$this->_9_32_R->DbValue = $row['9_32_R'];\n\t\t$this->_9_33_R->DbValue = $row['9_33_R'];\n\t\t$this->_9_34_R->DbValue = $row['9_34_R'];\n\t\t$this->_9_35_R->DbValue = $row['9_35_R'];\n\t\t$this->_9_36_R->DbValue = $row['9_36_R'];\n\t\t$this->_9_37_R->DbValue = $row['9_37_R'];\n\t\t$this->_9_38_R->DbValue = $row['9_38_R'];\n\t\t$this->_9_39_R->DbValue = $row['9_39_R'];\n\t\t$this->_10_40_R->DbValue = $row['10_40_R'];\n\t\t$this->_10_41_R->DbValue = $row['10_41_R'];\n\t\t$this->_11_42_R->DbValue = $row['11_42_R'];\n\t\t$this->_11_43_R->DbValue = $row['11_43_R'];\n\t\t$this->_12_44_R->DbValue = $row['12_44_R'];\n\t\t$this->_12_45_R->DbValue = $row['12_45_R'];\n\t\t$this->_12_46_R->DbValue = $row['12_46_R'];\n\t\t$this->_12_47_R->DbValue = $row['12_47_R'];\n\t\t$this->_12_48_R->DbValue = $row['12_48_R'];\n\t\t$this->_12_49_R->DbValue = $row['12_49_R'];\n\t\t$this->_12_50_R->DbValue = $row['12_50_R'];\n\t\t$this->_1__R->DbValue = $row['1__R'];\n\t\t$this->_13_54_R->DbValue = $row['13_54_R'];\n\t\t$this->_13_54_1_R->DbValue = $row['13_54_1_R'];\n\t\t$this->_13_54_2_R->DbValue = $row['13_54_2_R'];\n\t\t$this->_13_55_R->DbValue = $row['13_55_R'];\n\t\t$this->_13_55_1_R->DbValue = $row['13_55_1_R'];\n\t\t$this->_13_55_2_R->DbValue = $row['13_55_2_R'];\n\t\t$this->_13_56_R->DbValue = $row['13_56_R'];\n\t\t$this->_13_56_1_R->DbValue = $row['13_56_1_R'];\n\t\t$this->_13_56_2_R->DbValue = $row['13_56_2_R'];\n\t\t$this->_12_53_R->DbValue = $row['12_53_R'];\n\t\t$this->_12_53_1_R->DbValue = $row['12_53_1_R'];\n\t\t$this->_12_53_2_R->DbValue = $row['12_53_2_R'];\n\t\t$this->_12_53_3_R->DbValue = $row['12_53_3_R'];\n\t\t$this->_12_53_4_R->DbValue = $row['12_53_4_R'];\n\t\t$this->_12_53_5_R->DbValue = $row['12_53_5_R'];\n\t\t$this->_12_53_6_R->DbValue = $row['12_53_6_R'];\n\t\t$this->_13_57_R->DbValue = $row['13_57_R'];\n\t\t$this->_13_57_1_R->DbValue = $row['13_57_1_R'];\n\t\t$this->_13_57_2_R->DbValue = $row['13_57_2_R'];\n\t\t$this->_13_58_R->DbValue = $row['13_58_R'];\n\t\t$this->_13_58_1_R->DbValue = $row['13_58_1_R'];\n\t\t$this->_13_58_2_R->DbValue = $row['13_58_2_R'];\n\t\t$this->_13_59_R->DbValue = $row['13_59_R'];\n\t\t$this->_13_59_1_R->DbValue = $row['13_59_1_R'];\n\t\t$this->_13_59_2_R->DbValue = $row['13_59_2_R'];\n\t\t$this->_13_60_R->DbValue = $row['13_60_R'];\n\t\t$this->_12_53_7_R->DbValue = $row['12_53_7_R'];\n\t\t$this->_12_53_8_R->DbValue = $row['12_53_8_R'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->tgl->DbValue = $row['tgl'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->jns_spp->DbValue = $row['jns_spp'];\n\t\t$this->kd_mata->DbValue = $row['kd_mata'];\n\t\t$this->urai->DbValue = $row['urai'];\n\t\t$this->jmlh->DbValue = $row['jmlh'];\n\t\t$this->jmlh1->DbValue = $row['jmlh1'];\n\t\t$this->jmlh2->DbValue = $row['jmlh2'];\n\t\t$this->jmlh3->DbValue = $row['jmlh3'];\n\t\t$this->jmlh4->DbValue = $row['jmlh4'];\n\t\t$this->nm_perus->DbValue = $row['nm_perus'];\n\t\t$this->alamat->DbValue = $row['alamat'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan->DbValue = $row['pimpinan'];\n\t\t$this->bank->DbValue = $row['bank'];\n\t\t$this->rek->DbValue = $row['rek'];\n\t\t$this->nospm->DbValue = $row['nospm'];\n\t\t$this->tglspm->DbValue = $row['tglspm'];\n\t\t$this->ppn->DbValue = $row['ppn'];\n\t\t$this->ps21->DbValue = $row['ps21'];\n\t\t$this->ps22->DbValue = $row['ps22'];\n\t\t$this->ps23->DbValue = $row['ps23'];\n\t\t$this->ps4->DbValue = $row['ps4'];\n\t\t$this->kodespm->DbValue = $row['kodespm'];\n\t\t$this->nambud->DbValue = $row['nambud'];\n\t\t$this->nppk->DbValue = $row['nppk'];\n\t\t$this->nipppk->DbValue = $row['nipppk'];\n\t\t$this->prog->DbValue = $row['prog'];\n\t\t$this->prog1->DbValue = $row['prog1'];\n\t\t$this->bayar->DbValue = $row['bayar'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF)\n\t\t\treturn;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->fecha_tamizaje->DbValue = $row['fecha_tamizaje'];\n\t\t$this->id_centro->DbValue = $row['id_centro'];\n\t\t$this->apellidopaterno->DbValue = $row['apellidopaterno'];\n\t\t$this->apellidomaterno->DbValue = $row['apellidomaterno'];\n\t\t$this->nombre->DbValue = $row['nombre'];\n\t\t$this->ci->DbValue = $row['ci'];\n\t\t$this->fecha_nacimiento->DbValue = $row['fecha_nacimiento'];\n\t\t$this->dias->DbValue = $row['dias'];\n\t\t$this->semanas->DbValue = $row['semanas'];\n\t\t$this->meses->DbValue = $row['meses'];\n\t\t$this->sexo->DbValue = $row['sexo'];\n\t\t$this->discapacidad->DbValue = $row['discapacidad'];\n\t\t$this->id_tipodiscapacidad->DbValue = $row['id_tipodiscapacidad'];\n\t\t$this->resultado->DbValue = $row['resultado'];\n\t\t$this->resultadotamizaje->DbValue = $row['resultadotamizaje'];\n\t\t$this->tapon->DbValue = $row['tapon'];\n\t\t$this->tipo->DbValue = $row['tipo'];\n\t\t$this->repetirprueba->DbValue = $row['repetirprueba'];\n\t\t$this->observaciones->DbValue = $row['observaciones'];\n\t\t$this->id_apoderado->DbValue = $row['id_apoderado'];\n\t\t$this->id_referencia->DbValue = $row['id_referencia'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->detail_jenis_spp->DbValue = $row['detail_jenis_spp'];\n\t\t$this->id_jenis_spp->DbValue = $row['id_jenis_spp'];\n\t\t$this->status_spp->DbValue = $row['status_spp'];\n\t\t$this->no_spp->DbValue = $row['no_spp'];\n\t\t$this->tgl_spp->DbValue = $row['tgl_spp'];\n\t\t$this->keterangan->DbValue = $row['keterangan'];\n\t\t$this->jumlah_up->DbValue = $row['jumlah_up'];\n\t\t$this->bendahara->DbValue = $row['bendahara'];\n\t\t$this->nama_pptk->DbValue = $row['nama_pptk'];\n\t\t$this->nip_pptk->DbValue = $row['nip_pptk'];\n\t\t$this->kode_program->DbValue = $row['kode_program'];\n\t\t$this->kode_kegiatan->DbValue = $row['kode_kegiatan'];\n\t\t$this->kode_sub_kegiatan->DbValue = $row['kode_sub_kegiatan'];\n\t\t$this->tahun_anggaran->DbValue = $row['tahun_anggaran'];\n\t\t$this->jumlah_spd->DbValue = $row['jumlah_spd'];\n\t\t$this->nomer_dasar_spd->DbValue = $row['nomer_dasar_spd'];\n\t\t$this->tanggal_spd->DbValue = $row['tanggal_spd'];\n\t\t$this->id_spd->DbValue = $row['id_spd'];\n\t\t$this->kode_rekening->DbValue = $row['kode_rekening'];\n\t\t$this->nama_bendahara->DbValue = $row['nama_bendahara'];\n\t\t$this->nip_bendahara->DbValue = $row['nip_bendahara'];\n\t\t$this->no_spm->DbValue = $row['no_spm'];\n\t\t$this->tgl_spm->DbValue = $row['tgl_spm'];\n\t\t$this->status_spm->DbValue = $row['status_spm'];\n\t\t$this->nama_bank->DbValue = $row['nama_bank'];\n\t\t$this->nomer_rekening_bank->DbValue = $row['nomer_rekening_bank'];\n\t\t$this->npwp->DbValue = $row['npwp'];\n\t\t$this->pimpinan_blud->DbValue = $row['pimpinan_blud'];\n\t\t$this->nip_pimpinan->DbValue = $row['nip_pimpinan'];\n\t\t$this->no_sptb->DbValue = $row['no_sptb'];\n\t\t$this->tgl_sptb->DbValue = $row['tgl_sptb'];\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$rekeningju->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->IDXDAFTAR->DbValue = $row['IDXDAFTAR'];\n\t\t$this->NOMR->DbValue = $row['NOMR'];\n\t\t$this->KDPOLY->DbValue = $row['KDPOLY'];\n\t\t$this->KDCARABAYAR->DbValue = $row['KDCARABAYAR'];\n\t\t$this->NIP->DbValue = $row['NIP'];\n\t\t$this->TGLREG->DbValue = $row['TGLREG'];\n\t\t$this->JAMREG->DbValue = $row['JAMREG'];\n\t\t$this->NO_SJP->DbValue = $row['NO_SJP'];\n\t\t$this->NOKARTU->DbValue = $row['NOKARTU'];\n\t\t$this->TANGGAL_SEP->DbValue = $row['TANGGAL_SEP'];\n\t\t$this->TANGGALRUJUK_SEP->DbValue = $row['TANGGALRUJUK_SEP'];\n\t\t$this->KELASRAWAT_SEP->DbValue = $row['KELASRAWAT_SEP'];\n\t\t$this->NORUJUKAN_SEP->DbValue = $row['NORUJUKAN_SEP'];\n\t\t$this->PPKPELAYANAN_SEP->DbValue = $row['PPKPELAYANAN_SEP'];\n\t\t$this->JENISPERAWATAN_SEP->DbValue = $row['JENISPERAWATAN_SEP'];\n\t\t$this->CATATAN_SEP->DbValue = $row['CATATAN_SEP'];\n\t\t$this->DIAGNOSAAWAL_SEP->DbValue = $row['DIAGNOSAAWAL_SEP'];\n\t\t$this->NAMADIAGNOSA_SEP->DbValue = $row['NAMADIAGNOSA_SEP'];\n\t\t$this->LAKALANTAS_SEP->DbValue = $row['LAKALANTAS_SEP'];\n\t\t$this->LOKASILAKALANTAS->DbValue = $row['LOKASILAKALANTAS'];\n\t\t$this->USER->DbValue = $row['USER'];\n\t\t$this->generate_sep->DbValue = $row['generate_sep'];\n\t\t$this->PESERTANIK_SEP->DbValue = $row['PESERTANIK_SEP'];\n\t\t$this->PESERTANAMA_SEP->DbValue = $row['PESERTANAMA_SEP'];\n\t\t$this->PESERTAJENISKELAMIN_SEP->DbValue = $row['PESERTAJENISKELAMIN_SEP'];\n\t\t$this->PESERTANAMAKELAS_SEP->DbValue = $row['PESERTANAMAKELAS_SEP'];\n\t\t$this->PESERTAPISAT->DbValue = $row['PESERTAPISAT'];\n\t\t$this->PESERTATGLLAHIR->DbValue = $row['PESERTATGLLAHIR'];\n\t\t$this->PESERTAJENISPESERTA_SEP->DbValue = $row['PESERTAJENISPESERTA_SEP'];\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->DbValue = $row['PESERTANAMAJENISPESERTA_SEP'];\n\t\t$this->POLITUJUAN_SEP->DbValue = $row['POLITUJUAN_SEP'];\n\t\t$this->NAMAPOLITUJUAN_SEP->DbValue = $row['NAMAPOLITUJUAN_SEP'];\n\t\t$this->KDPPKRUJUKAN_SEP->DbValue = $row['KDPPKRUJUKAN_SEP'];\n\t\t$this->NMPPKRUJUKAN_SEP->DbValue = $row['NMPPKRUJUKAN_SEP'];\n\t\t$this->mapingtransaksi->DbValue = $row['mapingtransaksi'];\n\t\t$this->bridging_kepesertaan_by_no_ka->DbValue = $row['bridging_kepesertaan_by_no_ka'];\n\t\t$this->pasien_NOTELP->DbValue = $row['pasien_NOTELP'];\n\t\t$this->penjamin_kkl_id->DbValue = $row['penjamin_kkl_id'];\n\t\t$this->asalfaskesrujukan_id->DbValue = $row['asalfaskesrujukan_id'];\n\t\t$this->peserta_cob->DbValue = $row['peserta_cob'];\n\t\t$this->poli_eksekutif->DbValue = $row['poli_eksekutif'];\n\t\t$this->status_kepesertaan_BPJS->DbValue = $row['status_kepesertaan_BPJS'];\n\t}", "function LoadDbValues(&$rs) {\r\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\r\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\r\n\t\t$this->Dni_Tutor->DbValue = $row['Dni_Tutor'];\r\n\t\t$this->Apellidos_Nombres->DbValue = $row['Apellidos_Nombres'];\r\n\t\t$this->Edad->DbValue = $row['Edad'];\r\n\t\t$this->Domicilio->DbValue = $row['Domicilio'];\r\n\t\t$this->Tel_Contacto->DbValue = $row['Tel_Contacto'];\r\n\t\t$this->Fecha_Nac->DbValue = $row['Fecha_Nac'];\r\n\t\t$this->Cuil->DbValue = $row['Cuil'];\r\n\t\t$this->MasHijos->DbValue = $row['MasHijos'];\r\n\t\t$this->Id_Estado_Civil->DbValue = $row['Id_Estado_Civil'];\r\n\t\t$this->Id_Sexo->DbValue = $row['Id_Sexo'];\r\n\t\t$this->Id_Relacion->DbValue = $row['Id_Relacion'];\r\n\t\t$this->Id_Ocupacion->DbValue = $row['Id_Ocupacion'];\r\n\t\t$this->Lugar_Nacimiento->DbValue = $row['Lugar_Nacimiento'];\r\n\t\t$this->Id_Provincia->DbValue = $row['Id_Provincia'];\r\n\t\t$this->Id_Departamento->DbValue = $row['Id_Departamento'];\r\n\t\t$this->Id_Localidad->DbValue = $row['Id_Localidad'];\r\n\t\t$this->Fecha_Actualizacion->DbValue = $row['Fecha_Actualizacion'];\r\n\t\t$this->Usuario->DbValue = $row['Usuario'];\r\n\t}", "abstract protected function _getRowAssoc($rs);", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $fs_multijoin_v;\r\n\t\t$sFilter = $fs_multijoin_v->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$fs_multijoin_v->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$fs_multijoin_v->CurrentFilter = $sFilter;\r\n\t\t$sSql = $fs_multijoin_v->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t// Call Row Selected event\r\n\t\t\t$fs_multijoin_v->Row_Selected($rs);\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadDbValues(&$rs) {\n\t\tif (!$rs || !is_array($rs) && $rs->EOF) return;\n\t\t$row = is_array($rs) ? $rs : $rs->fields;\n\t\t$this->id->DbValue = $row['id'];\n\t\t$this->name->DbValue = $row['name'];\n\t\t$this->_email->DbValue = $row['email'];\n\t\t$this->password->DbValue = $row['password'];\n\t\t$this->companyname->DbValue = $row['companyname'];\n\t\t$this->servicetime->DbValue = $row['servicetime'];\n\t\t$this->country->DbValue = $row['country'];\n\t\t$this->phone->DbValue = $row['phone'];\n\t\t$this->skype->DbValue = $row['skype'];\n\t\t$this->website->DbValue = $row['website'];\n\t\t$this->linkedin->DbValue = $row['linkedin'];\n\t\t$this->facebook->DbValue = $row['facebook'];\n\t\t$this->twitter->DbValue = $row['twitter'];\n\t\t$this->active_code->DbValue = $row['active_code'];\n\t\t$this->identification->DbValue = $row['identification'];\n\t\t$this->link_expired->DbValue = $row['link_expired'];\n\t\t$this->isactive->DbValue = $row['isactive'];\n\t\t$this->pio->DbValue = $row['pio'];\n\t\t$this->google->DbValue = $row['google'];\n\t\t$this->instagram->DbValue = $row['instagram'];\n\t\t$this->account_type->DbValue = $row['account_type'];\n\t\t$this->logo->DbValue = $row['logo'];\n\t\t$this->profilepic->DbValue = $row['profilepic'];\n\t\t$this->mailref->DbValue = $row['mailref'];\n\t\t$this->deleted->DbValue = $row['deleted'];\n\t\t$this->deletefeedback->DbValue = $row['deletefeedback'];\n\t\t$this->account_id->DbValue = $row['account_id'];\n\t\t$this->start_date->DbValue = $row['start_date'];\n\t\t$this->end_date->DbValue = $row['end_date'];\n\t\t$this->year_moth->DbValue = $row['year_moth'];\n\t\t$this->registerdate->DbValue = $row['registerdate'];\n\t\t$this->login_type->DbValue = $row['login_type'];\n\t\t$this->accountstatus->DbValue = $row['accountstatus'];\n\t\t$this->ispay->DbValue = $row['ispay'];\n\t\t$this->profilelink->DbValue = $row['profilelink'];\n\t\t$this->source->DbValue = $row['source'];\n\t\t$this->agree->DbValue = $row['agree'];\n\t\t$this->balance->DbValue = $row['balance'];\n\t\t$this->job_title->DbValue = $row['job_title'];\n\t\t$this->projects->DbValue = $row['projects'];\n\t\t$this->opportunities->DbValue = $row['opportunities'];\n\t\t$this->isconsaltant->DbValue = $row['isconsaltant'];\n\t\t$this->isagent->DbValue = $row['isagent'];\n\t\t$this->isinvestor->DbValue = $row['isinvestor'];\n\t\t$this->isbusinessman->DbValue = $row['isbusinessman'];\n\t\t$this->isprovider->DbValue = $row['isprovider'];\n\t\t$this->isproductowner->DbValue = $row['isproductowner'];\n\t\t$this->states->DbValue = $row['states'];\n\t\t$this->cities->DbValue = $row['cities'];\n\t\t$this->offers->DbValue = $row['offers'];\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$this->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}" ]
[ "0.7389275", "0.73217857", "0.7303611", "0.72863", "0.7282693", "0.7209876", "0.7209876", "0.71737766", "0.7168146", "0.7162371", "0.7162371", "0.7152201", "0.714214", "0.714214", "0.71417767", "0.7127528", "0.7094694", "0.70793027", "0.7076669", "0.7076019", "0.7071033", "0.7057916", "0.70534873", "0.7020043", "0.70054424", "0.69995934", "0.69991744", "0.6987693", "0.6969372", "0.6965423", "0.69642013", "0.69604945", "0.6951176", "0.69450027", "0.6943015", "0.6938732", "0.6938732", "0.6932942", "0.69315404", "0.6926421", "0.6910367", "0.6908802", "0.6905244", "0.6892408", "0.6885115", "0.68723506", "0.68663037", "0.6864424", "0.6863823", "0.68426186", "0.68395805", "0.68331295", "0.68199575", "0.6818638", "0.6814648", "0.68021655", "0.6785377", "0.6775594", "0.6767261", "0.67587954", "0.67481196", "0.6740892", "0.673392", "0.67241937", "0.6720117", "0.6718276", "0.6717603", "0.66876596", "0.6662922", "0.6636257", "0.66339064", "0.6631501", "0.6623039", "0.6601243", "0.6595668", "0.65866226", "0.65705204", "0.65605086", "0.65586954", "0.6550713", "0.6550611", "0.65440553", "0.6539059", "0.6536284", "0.6526991", "0.6515273", "0.6509071", "0.6506333", "0.6479519", "0.64190495", "0.63976896", "0.6347786", "0.6327512", "0.6316368", "0.6315682", "0.6315682", "0.6312715", "0.6312715", "0.6312715", "0.6312715" ]
0.6831923
52
Render list row values
function RenderListRow() { global $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // Common render codes // gjd_id // gjm_id // peg_id // b_mn // b_sn // b_sl // b_rb // b_km // b_jm // b_sb // l_mn // l_sn // l_sl // l_rb // l_km // l_jm // l_sb // gjd_id $this->gjd_id->ViewValue = $this->gjd_id->CurrentValue; $this->gjd_id->ViewCustomAttributes = ""; // gjm_id $this->gjm_id->ViewValue = $this->gjm_id->CurrentValue; $this->gjm_id->ViewCustomAttributes = ""; // peg_id if (strval($this->peg_id->CurrentValue) <> "") { $sFilterWrk = "`peg_id`" . ew_SearchString("=", $this->peg_id->CurrentValue, EW_DATATYPE_NUMBER, ""); $sSqlWrk = "SELECT `peg_id`, `peg_nama` AS `DispFld`, `peg_jabatan` AS `Disp2Fld`, `peg_upah` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `t_pegawai`"; $sWhereWrk = ""; $this->peg_id->LookupFilters = array("dx1" => '`peg_nama`', "dx2" => '`peg_jabatan`', "dx3" => '`peg_upah`'); ew_AddFilter($sWhereWrk, $sFilterWrk); $this->Lookup_Selecting($this->peg_id, $sWhereWrk); // Call Lookup selecting if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk; $rswrk = Conn()->Execute($sSqlWrk); if ($rswrk && !$rswrk->EOF) { // Lookup values found $arwrk = array(); $arwrk[1] = $rswrk->fields('DispFld'); $arwrk[2] = $rswrk->fields('Disp2Fld'); $arwrk[3] = ew_FormatNumber($rswrk->fields('Disp3Fld'), 0, -2, -2, -1); $this->peg_id->ViewValue = $this->peg_id->DisplayValue($arwrk); $rswrk->Close(); } else { $this->peg_id->ViewValue = $this->peg_id->CurrentValue; } } else { $this->peg_id->ViewValue = NULL; } $this->peg_id->ViewCustomAttributes = ""; // b_mn $this->b_mn->ViewValue = $this->b_mn->CurrentValue; $this->b_mn->ViewCustomAttributes = ""; // b_sn $this->b_sn->ViewValue = $this->b_sn->CurrentValue; $this->b_sn->ViewCustomAttributes = ""; // b_sl $this->b_sl->ViewValue = $this->b_sl->CurrentValue; $this->b_sl->ViewCustomAttributes = ""; // b_rb $this->b_rb->ViewValue = $this->b_rb->CurrentValue; $this->b_rb->ViewCustomAttributes = ""; // b_km $this->b_km->ViewValue = $this->b_km->CurrentValue; $this->b_km->ViewCustomAttributes = ""; // b_jm $this->b_jm->ViewValue = $this->b_jm->CurrentValue; $this->b_jm->ViewCustomAttributes = ""; // b_sb $this->b_sb->ViewValue = $this->b_sb->CurrentValue; $this->b_sb->ViewCustomAttributes = ""; // l_mn $this->l_mn->ViewValue = $this->l_mn->CurrentValue; $this->l_mn->ViewCustomAttributes = ""; // l_sn $this->l_sn->ViewValue = $this->l_sn->CurrentValue; $this->l_sn->ViewCustomAttributes = ""; // l_sl $this->l_sl->ViewValue = $this->l_sl->CurrentValue; $this->l_sl->ViewCustomAttributes = ""; // l_rb $this->l_rb->ViewValue = $this->l_rb->CurrentValue; $this->l_rb->ViewCustomAttributes = ""; // l_km $this->l_km->ViewValue = $this->l_km->CurrentValue; $this->l_km->ViewCustomAttributes = ""; // l_jm $this->l_jm->ViewValue = $this->l_jm->CurrentValue; $this->l_jm->ViewCustomAttributes = ""; // l_sb $this->l_sb->ViewValue = $this->l_sb->CurrentValue; $this->l_sb->ViewCustomAttributes = ""; // gjd_id $this->gjd_id->LinkCustomAttributes = ""; $this->gjd_id->HrefValue = ""; $this->gjd_id->TooltipValue = ""; // gjm_id $this->gjm_id->LinkCustomAttributes = ""; $this->gjm_id->HrefValue = ""; $this->gjm_id->TooltipValue = ""; // peg_id $this->peg_id->LinkCustomAttributes = ""; $this->peg_id->HrefValue = ""; $this->peg_id->TooltipValue = ""; // b_mn $this->b_mn->LinkCustomAttributes = ""; $this->b_mn->HrefValue = ""; $this->b_mn->TooltipValue = ""; // b_sn $this->b_sn->LinkCustomAttributes = ""; $this->b_sn->HrefValue = ""; $this->b_sn->TooltipValue = ""; // b_sl $this->b_sl->LinkCustomAttributes = ""; $this->b_sl->HrefValue = ""; $this->b_sl->TooltipValue = ""; // b_rb $this->b_rb->LinkCustomAttributes = ""; $this->b_rb->HrefValue = ""; $this->b_rb->TooltipValue = ""; // b_km $this->b_km->LinkCustomAttributes = ""; $this->b_km->HrefValue = ""; $this->b_km->TooltipValue = ""; // b_jm $this->b_jm->LinkCustomAttributes = ""; $this->b_jm->HrefValue = ""; $this->b_jm->TooltipValue = ""; // b_sb $this->b_sb->LinkCustomAttributes = ""; $this->b_sb->HrefValue = ""; $this->b_sb->TooltipValue = ""; // l_mn $this->l_mn->LinkCustomAttributes = ""; $this->l_mn->HrefValue = ""; $this->l_mn->TooltipValue = ""; // l_sn $this->l_sn->LinkCustomAttributes = ""; $this->l_sn->HrefValue = ""; $this->l_sn->TooltipValue = ""; // l_sl $this->l_sl->LinkCustomAttributes = ""; $this->l_sl->HrefValue = ""; $this->l_sl->TooltipValue = ""; // l_rb $this->l_rb->LinkCustomAttributes = ""; $this->l_rb->HrefValue = ""; $this->l_rb->TooltipValue = ""; // l_km $this->l_km->LinkCustomAttributes = ""; $this->l_km->HrefValue = ""; $this->l_km->TooltipValue = ""; // l_jm $this->l_jm->LinkCustomAttributes = ""; $this->l_jm->HrefValue = ""; $this->l_jm->TooltipValue = ""; // l_sb $this->l_sb->LinkCustomAttributes = ""; $this->l_sb->HrefValue = ""; $this->l_sb->TooltipValue = ""; // Call Row Rendered event $this->Row_Rendered(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t// Common render codes\n\t\t// rid\n\t\t// usn\n\t\t// name\n\t\t// sc1\n\t\t// s1\n\t\t// sc2\n\t\t// s2\n\t\t// sc3\n\t\t// s3\n\t\t// sc4\n\t\t// s4\n\t\t// sc5\n\t\t// s5\n\t\t// sc6\n\t\t// s6\n\t\t// sc7\n\t\t// s7\n\t\t// sc8\n\t\t// s8\n\t\t// total\n\t\t// rid\n\n\t\t$this->rid->ViewValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->ViewValue = $this->usn->CurrentValue;\n\t\t$this->usn->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->ViewValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->ViewCustomAttributes = \"\";\n\n\t\t// s1\n\t\t$this->s1->ViewValue = $this->s1->CurrentValue;\n\t\t$this->s1->ViewCustomAttributes = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->ViewValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->ViewCustomAttributes = \"\";\n\n\t\t// s2\n\t\t$this->s2->ViewValue = $this->s2->CurrentValue;\n\t\t$this->s2->ViewCustomAttributes = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->ViewValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->ViewCustomAttributes = \"\";\n\n\t\t// s3\n\t\t$this->s3->ViewValue = $this->s3->CurrentValue;\n\t\t$this->s3->ViewCustomAttributes = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->ViewValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->ViewCustomAttributes = \"\";\n\n\t\t// s4\n\t\t$this->s4->ViewValue = $this->s4->CurrentValue;\n\t\t$this->s4->ViewCustomAttributes = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->ViewValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->ViewCustomAttributes = \"\";\n\n\t\t// s5\n\t\t$this->s5->ViewValue = $this->s5->CurrentValue;\n\t\t$this->s5->ViewCustomAttributes = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->ViewValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->ViewCustomAttributes = \"\";\n\n\t\t// s6\n\t\t$this->s6->ViewValue = $this->s6->CurrentValue;\n\t\t$this->s6->ViewCustomAttributes = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->ViewValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->ViewCustomAttributes = \"\";\n\n\t\t// s7\n\t\t$this->s7->ViewValue = $this->s7->CurrentValue;\n\t\t$this->s7->ViewCustomAttributes = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->ViewValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->ViewCustomAttributes = \"\";\n\n\t\t// s8\n\t\t$this->s8->ViewValue = $this->s8->CurrentValue;\n\t\t$this->s8->ViewCustomAttributes = \"\";\n\n\t\t// total\n\t\t$this->total->ViewValue = $this->total->CurrentValue;\n\t\t$this->total->ViewCustomAttributes = \"\";\n\n\t\t// rid\n\t\t$this->rid->LinkCustomAttributes = \"\";\n\t\t$this->rid->HrefValue = \"\";\n\t\t$this->rid->TooltipValue = \"\";\n\n\t\t// usn\n\t\t$this->usn->LinkCustomAttributes = \"\";\n\t\t$this->usn->HrefValue = \"\";\n\t\t$this->usn->TooltipValue = \"\";\n\n\t\t// name\n\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t$this->name->HrefValue = \"\";\n\t\t$this->name->TooltipValue = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->LinkCustomAttributes = \"\";\n\t\t$this->sc1->HrefValue = \"\";\n\t\t$this->sc1->TooltipValue = \"\";\n\n\t\t// s1\n\t\t$this->s1->LinkCustomAttributes = \"\";\n\t\t$this->s1->HrefValue = \"\";\n\t\t$this->s1->TooltipValue = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->LinkCustomAttributes = \"\";\n\t\t$this->sc2->HrefValue = \"\";\n\t\t$this->sc2->TooltipValue = \"\";\n\n\t\t// s2\n\t\t$this->s2->LinkCustomAttributes = \"\";\n\t\t$this->s2->HrefValue = \"\";\n\t\t$this->s2->TooltipValue = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->LinkCustomAttributes = \"\";\n\t\t$this->sc3->HrefValue = \"\";\n\t\t$this->sc3->TooltipValue = \"\";\n\n\t\t// s3\n\t\t$this->s3->LinkCustomAttributes = \"\";\n\t\t$this->s3->HrefValue = \"\";\n\t\t$this->s3->TooltipValue = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->LinkCustomAttributes = \"\";\n\t\t$this->sc4->HrefValue = \"\";\n\t\t$this->sc4->TooltipValue = \"\";\n\n\t\t// s4\n\t\t$this->s4->LinkCustomAttributes = \"\";\n\t\t$this->s4->HrefValue = \"\";\n\t\t$this->s4->TooltipValue = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->LinkCustomAttributes = \"\";\n\t\t$this->sc5->HrefValue = \"\";\n\t\t$this->sc5->TooltipValue = \"\";\n\n\t\t// s5\n\t\t$this->s5->LinkCustomAttributes = \"\";\n\t\t$this->s5->HrefValue = \"\";\n\t\t$this->s5->TooltipValue = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->LinkCustomAttributes = \"\";\n\t\t$this->sc6->HrefValue = \"\";\n\t\t$this->sc6->TooltipValue = \"\";\n\n\t\t// s6\n\t\t$this->s6->LinkCustomAttributes = \"\";\n\t\t$this->s6->HrefValue = \"\";\n\t\t$this->s6->TooltipValue = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->LinkCustomAttributes = \"\";\n\t\t$this->sc7->HrefValue = \"\";\n\t\t$this->sc7->TooltipValue = \"\";\n\n\t\t// s7\n\t\t$this->s7->LinkCustomAttributes = \"\";\n\t\t$this->s7->HrefValue = \"\";\n\t\t$this->s7->TooltipValue = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->LinkCustomAttributes = \"\";\n\t\t$this->sc8->HrefValue = \"\";\n\t\t$this->sc8->TooltipValue = \"\";\n\n\t\t// s8\n\t\t$this->s8->LinkCustomAttributes = \"\";\n\t\t$this->s8->HrefValue = \"\";\n\t\t$this->s8->TooltipValue = \"\";\n\n\t\t// total\n\t\t$this->total->LinkCustomAttributes = \"\";\n\t\t$this->total->HrefValue = \"\";\n\t\t$this->total->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->CustomTemplateFieldValues();\n\t}", "public function renderListRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes\n\t\t// id\n\t\t// fecha\n\t\t// hora\n\t\t// audio\n\t\t// st\n\t\t// fechaHoraIni\n\t\t// fechaHoraFin\n\t\t// telefono\n\t\t// agente\n\t\t// fechabo\n\t\t// agentebo\n\t\t// comentariosbo\n\t\t// IP\n\t\t// actual\n\t\t// completado\n\t\t// 2_1_R\n\t\t// 2_2_R\n\t\t// 2_3_R\n\t\t// 3_4_R\n\t\t// 4_5_R\n\t\t// 4_6_R\n\t\t// 4_7_R\n\t\t// 4_8_R\n\t\t// 5_9_R\n\t\t// 5_10_R\n\t\t// 5_11_R\n\t\t// 5_12_R\n\t\t// 5_13_R\n\t\t// 5_14_R\n\t\t// 5_51_R\n\t\t// 6_15_R\n\t\t// 6_16_R\n\t\t// 6_17_R\n\t\t// 6_18_R\n\t\t// 6_19_R\n\t\t// 6_20_R\n\t\t// 6_52_R\n\t\t// 7_21_R\n\t\t// 8_22_R\n\t\t// 8_23_R\n\t\t// 8_24_R\n\t\t// 8_25_R\n\t\t// 9_26_R\n\t\t// 9_27_R\n\t\t// 9_28_R\n\t\t// 9_29_R\n\t\t// 9_30_R\n\t\t// 9_31_R\n\t\t// 9_32_R\n\t\t// 9_33_R\n\t\t// 9_34_R\n\t\t// 9_35_R\n\t\t// 9_36_R\n\t\t// 9_37_R\n\t\t// 9_38_R\n\t\t// 9_39_R\n\t\t// 10_40_R\n\t\t// 10_41_R\n\t\t// 11_42_R\n\t\t// 11_43_R\n\t\t// 12_44_R\n\t\t// 12_45_R\n\t\t// 12_46_R\n\t\t// 12_47_R\n\t\t// 12_48_R\n\t\t// 12_49_R\n\t\t// 12_50_R\n\t\t// 1__R\n\t\t// 13_54_R\n\t\t// 13_54_1_R\n\t\t// 13_54_2_R\n\t\t// 13_55_R\n\t\t// 13_55_1_R\n\t\t// 13_55_2_R\n\t\t// 13_56_R\n\t\t// 13_56_1_R\n\t\t// 13_56_2_R\n\t\t// 12_53_R\n\t\t// 12_53_1_R\n\t\t// 12_53_2_R\n\t\t// 12_53_3_R\n\t\t// 12_53_4_R\n\t\t// 12_53_5_R\n\t\t// 12_53_6_R\n\t\t// 13_57_R\n\t\t// 13_57_1_R\n\t\t// 13_57_2_R\n\t\t// 13_58_R\n\t\t// 13_58_1_R\n\t\t// 13_58_2_R\n\t\t// 13_59_R\n\t\t// 13_59_1_R\n\t\t// 13_59_2_R\n\t\t// 13_60_R\n\t\t// 12_53_7_R\n\t\t// 12_53_8_R\n\t\t// id\n\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->ViewValue = $this->fecha->CurrentValue;\n\t\t$this->fecha->ViewValue = FormatDateTime($this->fecha->ViewValue, 0);\n\t\t$this->fecha->ViewCustomAttributes = \"\";\n\n\t\t// hora\n\t\t$this->hora->ViewValue = $this->hora->CurrentValue;\n\t\t$this->hora->ViewValue = FormatDateTime($this->hora->ViewValue, 4);\n\t\t$this->hora->ViewCustomAttributes = \"\";\n\n\t\t// audio\n\t\t$this->audio->ViewValue = $this->audio->CurrentValue;\n\t\t$this->audio->ViewCustomAttributes = \"\";\n\n\t\t// st\n\t\t$this->st->ViewValue = $this->st->CurrentValue;\n\t\t$this->st->ViewCustomAttributes = \"\";\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->ViewValue = $this->fechaHoraIni->CurrentValue;\n\t\t$this->fechaHoraIni->ViewValue = FormatDateTime($this->fechaHoraIni->ViewValue, 0);\n\t\t$this->fechaHoraIni->ViewCustomAttributes = \"\";\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->ViewValue = $this->fechaHoraFin->CurrentValue;\n\t\t$this->fechaHoraFin->ViewValue = FormatDateTime($this->fechaHoraFin->ViewValue, 0);\n\t\t$this->fechaHoraFin->ViewCustomAttributes = \"\";\n\n\t\t// telefono\n\t\t$this->telefono->ViewValue = $this->telefono->CurrentValue;\n\t\t$this->telefono->ViewCustomAttributes = \"\";\n\n\t\t// agente\n\t\t$this->agente->ViewValue = $this->agente->CurrentValue;\n\t\t$this->agente->ViewValue = FormatNumber($this->agente->ViewValue, 0, -2, -2, -2);\n\t\t$this->agente->ViewCustomAttributes = \"\";\n\n\t\t// fechabo\n\t\t$this->fechabo->ViewValue = $this->fechabo->CurrentValue;\n\t\t$this->fechabo->ViewValue = FormatDateTime($this->fechabo->ViewValue, 0);\n\t\t$this->fechabo->ViewCustomAttributes = \"\";\n\n\t\t// agentebo\n\t\t$this->agentebo->ViewValue = $this->agentebo->CurrentValue;\n\t\t$this->agentebo->ViewValue = FormatNumber($this->agentebo->ViewValue, 0, -2, -2, -2);\n\t\t$this->agentebo->ViewCustomAttributes = \"\";\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->ViewValue = $this->comentariosbo->CurrentValue;\n\t\t$this->comentariosbo->ViewCustomAttributes = \"\";\n\n\t\t// IP\n\t\t$this->IP->ViewValue = $this->IP->CurrentValue;\n\t\t$this->IP->ViewCustomAttributes = \"\";\n\n\t\t// actual\n\t\t$this->actual->ViewValue = $this->actual->CurrentValue;\n\t\t$this->actual->ViewCustomAttributes = \"\";\n\n\t\t// completado\n\t\t$this->completado->ViewValue = $this->completado->CurrentValue;\n\t\t$this->completado->ViewCustomAttributes = \"\";\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->ViewValue = $this->_2_1_R->CurrentValue;\n\t\t$this->_2_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->ViewValue = $this->_2_2_R->CurrentValue;\n\t\t$this->_2_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->ViewValue = $this->_2_3_R->CurrentValue;\n\t\t$this->_2_3_R->ViewCustomAttributes = \"\";\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->ViewValue = $this->_3_4_R->CurrentValue;\n\t\t$this->_3_4_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->ViewValue = $this->_4_5_R->CurrentValue;\n\t\t$this->_4_5_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->ViewValue = $this->_4_6_R->CurrentValue;\n\t\t$this->_4_6_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->ViewValue = $this->_4_7_R->CurrentValue;\n\t\t$this->_4_7_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->ViewValue = $this->_4_8_R->CurrentValue;\n\t\t$this->_4_8_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->ViewValue = $this->_5_9_R->CurrentValue;\n\t\t$this->_5_9_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->ViewValue = $this->_5_10_R->CurrentValue;\n\t\t$this->_5_10_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->ViewValue = $this->_5_11_R->CurrentValue;\n\t\t$this->_5_11_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->ViewValue = $this->_5_12_R->CurrentValue;\n\t\t$this->_5_12_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->ViewValue = $this->_5_13_R->CurrentValue;\n\t\t$this->_5_13_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->ViewValue = $this->_5_14_R->CurrentValue;\n\t\t$this->_5_14_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->ViewValue = $this->_5_51_R->CurrentValue;\n\t\t$this->_5_51_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->ViewValue = $this->_6_15_R->CurrentValue;\n\t\t$this->_6_15_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->ViewValue = $this->_6_16_R->CurrentValue;\n\t\t$this->_6_16_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->ViewValue = $this->_6_17_R->CurrentValue;\n\t\t$this->_6_17_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->ViewValue = $this->_6_18_R->CurrentValue;\n\t\t$this->_6_18_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->ViewValue = $this->_6_19_R->CurrentValue;\n\t\t$this->_6_19_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->ViewValue = $this->_6_20_R->CurrentValue;\n\t\t$this->_6_20_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->ViewValue = $this->_6_52_R->CurrentValue;\n\t\t$this->_6_52_R->ViewCustomAttributes = \"\";\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->ViewValue = $this->_7_21_R->CurrentValue;\n\t\t$this->_7_21_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->ViewValue = $this->_8_22_R->CurrentValue;\n\t\t$this->_8_22_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->ViewValue = $this->_8_23_R->CurrentValue;\n\t\t$this->_8_23_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->ViewValue = $this->_8_24_R->CurrentValue;\n\t\t$this->_8_24_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->ViewValue = $this->_8_25_R->CurrentValue;\n\t\t$this->_8_25_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->ViewValue = $this->_9_26_R->CurrentValue;\n\t\t$this->_9_26_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->ViewValue = $this->_9_27_R->CurrentValue;\n\t\t$this->_9_27_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->ViewValue = $this->_9_28_R->CurrentValue;\n\t\t$this->_9_28_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->ViewValue = $this->_9_29_R->CurrentValue;\n\t\t$this->_9_29_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->ViewValue = $this->_9_30_R->CurrentValue;\n\t\t$this->_9_30_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->ViewValue = $this->_9_31_R->CurrentValue;\n\t\t$this->_9_31_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->ViewValue = $this->_9_32_R->CurrentValue;\n\t\t$this->_9_32_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->ViewValue = $this->_9_33_R->CurrentValue;\n\t\t$this->_9_33_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->ViewValue = $this->_9_34_R->CurrentValue;\n\t\t$this->_9_34_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->ViewValue = $this->_9_35_R->CurrentValue;\n\t\t$this->_9_35_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->ViewValue = $this->_9_36_R->CurrentValue;\n\t\t$this->_9_36_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->ViewValue = $this->_9_37_R->CurrentValue;\n\t\t$this->_9_37_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->ViewValue = $this->_9_38_R->CurrentValue;\n\t\t$this->_9_38_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->ViewValue = $this->_9_39_R->CurrentValue;\n\t\t$this->_9_39_R->ViewCustomAttributes = \"\";\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->ViewValue = $this->_10_40_R->CurrentValue;\n\t\t$this->_10_40_R->ViewCustomAttributes = \"\";\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->ViewValue = $this->_10_41_R->CurrentValue;\n\t\t$this->_10_41_R->ViewCustomAttributes = \"\";\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->ViewValue = $this->_11_42_R->CurrentValue;\n\t\t$this->_11_42_R->ViewCustomAttributes = \"\";\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->ViewValue = $this->_11_43_R->CurrentValue;\n\t\t$this->_11_43_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->ViewValue = $this->_12_44_R->CurrentValue;\n\t\t$this->_12_44_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->ViewValue = $this->_12_45_R->CurrentValue;\n\t\t$this->_12_45_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->ViewValue = $this->_12_46_R->CurrentValue;\n\t\t$this->_12_46_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->ViewValue = $this->_12_47_R->CurrentValue;\n\t\t$this->_12_47_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->ViewValue = $this->_12_48_R->CurrentValue;\n\t\t$this->_12_48_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->ViewValue = $this->_12_49_R->CurrentValue;\n\t\t$this->_12_49_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->ViewValue = $this->_12_50_R->CurrentValue;\n\t\t$this->_12_50_R->ViewCustomAttributes = \"\";\n\n\t\t// 1__R\n\t\t$this->_1__R->ViewValue = $this->_1__R->CurrentValue;\n\t\t$this->_1__R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->ViewValue = $this->_13_54_R->CurrentValue;\n\t\t$this->_13_54_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->ViewValue = $this->_13_54_1_R->CurrentValue;\n\t\t$this->_13_54_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->ViewValue = $this->_13_54_2_R->CurrentValue;\n\t\t$this->_13_54_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->ViewValue = $this->_13_55_R->CurrentValue;\n\t\t$this->_13_55_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->ViewValue = $this->_13_55_1_R->CurrentValue;\n\t\t$this->_13_55_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->ViewValue = $this->_13_55_2_R->CurrentValue;\n\t\t$this->_13_55_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->ViewValue = $this->_13_56_R->CurrentValue;\n\t\t$this->_13_56_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->ViewValue = $this->_13_56_1_R->CurrentValue;\n\t\t$this->_13_56_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->ViewValue = $this->_13_56_2_R->CurrentValue;\n\t\t$this->_13_56_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->ViewValue = $this->_12_53_R->CurrentValue;\n\t\t$this->_12_53_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->ViewValue = $this->_12_53_1_R->CurrentValue;\n\t\t$this->_12_53_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->ViewValue = $this->_12_53_2_R->CurrentValue;\n\t\t$this->_12_53_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->ViewValue = $this->_12_53_3_R->CurrentValue;\n\t\t$this->_12_53_3_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->ViewValue = $this->_12_53_4_R->CurrentValue;\n\t\t$this->_12_53_4_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->ViewValue = $this->_12_53_5_R->CurrentValue;\n\t\t$this->_12_53_5_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->ViewValue = $this->_12_53_6_R->CurrentValue;\n\t\t$this->_12_53_6_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->ViewValue = $this->_13_57_R->CurrentValue;\n\t\t$this->_13_57_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->ViewValue = $this->_13_57_1_R->CurrentValue;\n\t\t$this->_13_57_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->ViewValue = $this->_13_57_2_R->CurrentValue;\n\t\t$this->_13_57_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->ViewValue = $this->_13_58_R->CurrentValue;\n\t\t$this->_13_58_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->ViewValue = $this->_13_58_1_R->CurrentValue;\n\t\t$this->_13_58_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->ViewValue = $this->_13_58_2_R->CurrentValue;\n\t\t$this->_13_58_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->ViewValue = $this->_13_59_R->CurrentValue;\n\t\t$this->_13_59_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->ViewValue = $this->_13_59_1_R->CurrentValue;\n\t\t$this->_13_59_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->ViewValue = $this->_13_59_2_R->CurrentValue;\n\t\t$this->_13_59_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->ViewValue = $this->_13_60_R->CurrentValue;\n\t\t$this->_13_60_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->ViewValue = $this->_12_53_7_R->CurrentValue;\n\t\t$this->_12_53_7_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->ViewValue = $this->_12_53_8_R->CurrentValue;\n\t\t$this->_12_53_8_R->ViewCustomAttributes = \"\";\n\n\t\t// id\n\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t$this->id->HrefValue = \"\";\n\t\t$this->id->TooltipValue = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->LinkCustomAttributes = \"\";\n\t\t$this->fecha->HrefValue = \"\";\n\t\t$this->fecha->TooltipValue = \"\";\n\n\t\t// hora\n\t\t$this->hora->LinkCustomAttributes = \"\";\n\t\t$this->hora->HrefValue = \"\";\n\t\t$this->hora->TooltipValue = \"\";\n\n\t\t// audio\n\t\t$this->audio->LinkCustomAttributes = \"\";\n\t\t$this->audio->HrefValue = \"\";\n\t\t$this->audio->TooltipValue = \"\";\n\n\t\t// st\n\t\t$this->st->LinkCustomAttributes = \"\";\n\t\t$this->st->HrefValue = \"\";\n\t\t$this->st->TooltipValue = \"\";\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->LinkCustomAttributes = \"\";\n\t\t$this->fechaHoraIni->HrefValue = \"\";\n\t\t$this->fechaHoraIni->TooltipValue = \"\";\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->LinkCustomAttributes = \"\";\n\t\t$this->fechaHoraFin->HrefValue = \"\";\n\t\t$this->fechaHoraFin->TooltipValue = \"\";\n\n\t\t// telefono\n\t\t$this->telefono->LinkCustomAttributes = \"\";\n\t\t$this->telefono->HrefValue = \"\";\n\t\t$this->telefono->TooltipValue = \"\";\n\n\t\t// agente\n\t\t$this->agente->LinkCustomAttributes = \"\";\n\t\t$this->agente->HrefValue = \"\";\n\t\t$this->agente->TooltipValue = \"\";\n\n\t\t// fechabo\n\t\t$this->fechabo->LinkCustomAttributes = \"\";\n\t\t$this->fechabo->HrefValue = \"\";\n\t\t$this->fechabo->TooltipValue = \"\";\n\n\t\t// agentebo\n\t\t$this->agentebo->LinkCustomAttributes = \"\";\n\t\t$this->agentebo->HrefValue = \"\";\n\t\t$this->agentebo->TooltipValue = \"\";\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->LinkCustomAttributes = \"\";\n\t\t$this->comentariosbo->HrefValue = \"\";\n\t\t$this->comentariosbo->TooltipValue = \"\";\n\n\t\t// IP\n\t\t$this->IP->LinkCustomAttributes = \"\";\n\t\t$this->IP->HrefValue = \"\";\n\t\t$this->IP->TooltipValue = \"\";\n\n\t\t// actual\n\t\t$this->actual->LinkCustomAttributes = \"\";\n\t\t$this->actual->HrefValue = \"\";\n\t\t$this->actual->TooltipValue = \"\";\n\n\t\t// completado\n\t\t$this->completado->LinkCustomAttributes = \"\";\n\t\t$this->completado->HrefValue = \"\";\n\t\t$this->completado->TooltipValue = \"\";\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_1_R->HrefValue = \"\";\n\t\t$this->_2_1_R->TooltipValue = \"\";\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_2_R->HrefValue = \"\";\n\t\t$this->_2_2_R->TooltipValue = \"\";\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_3_R->HrefValue = \"\";\n\t\t$this->_2_3_R->TooltipValue = \"\";\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->LinkCustomAttributes = \"\";\n\t\t$this->_3_4_R->HrefValue = \"\";\n\t\t$this->_3_4_R->TooltipValue = \"\";\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_5_R->HrefValue = \"\";\n\t\t$this->_4_5_R->TooltipValue = \"\";\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_6_R->HrefValue = \"\";\n\t\t$this->_4_6_R->TooltipValue = \"\";\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_7_R->HrefValue = \"\";\n\t\t$this->_4_7_R->TooltipValue = \"\";\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_8_R->HrefValue = \"\";\n\t\t$this->_4_8_R->TooltipValue = \"\";\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_9_R->HrefValue = \"\";\n\t\t$this->_5_9_R->TooltipValue = \"\";\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_10_R->HrefValue = \"\";\n\t\t$this->_5_10_R->TooltipValue = \"\";\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_11_R->HrefValue = \"\";\n\t\t$this->_5_11_R->TooltipValue = \"\";\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_12_R->HrefValue = \"\";\n\t\t$this->_5_12_R->TooltipValue = \"\";\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_13_R->HrefValue = \"\";\n\t\t$this->_5_13_R->TooltipValue = \"\";\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_14_R->HrefValue = \"\";\n\t\t$this->_5_14_R->TooltipValue = \"\";\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_51_R->HrefValue = \"\";\n\t\t$this->_5_51_R->TooltipValue = \"\";\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_15_R->HrefValue = \"\";\n\t\t$this->_6_15_R->TooltipValue = \"\";\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_16_R->HrefValue = \"\";\n\t\t$this->_6_16_R->TooltipValue = \"\";\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_17_R->HrefValue = \"\";\n\t\t$this->_6_17_R->TooltipValue = \"\";\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_18_R->HrefValue = \"\";\n\t\t$this->_6_18_R->TooltipValue = \"\";\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_19_R->HrefValue = \"\";\n\t\t$this->_6_19_R->TooltipValue = \"\";\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_20_R->HrefValue = \"\";\n\t\t$this->_6_20_R->TooltipValue = \"\";\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_52_R->HrefValue = \"\";\n\t\t$this->_6_52_R->TooltipValue = \"\";\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->LinkCustomAttributes = \"\";\n\t\t$this->_7_21_R->HrefValue = \"\";\n\t\t$this->_7_21_R->TooltipValue = \"\";\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_22_R->HrefValue = \"\";\n\t\t$this->_8_22_R->TooltipValue = \"\";\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_23_R->HrefValue = \"\";\n\t\t$this->_8_23_R->TooltipValue = \"\";\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_24_R->HrefValue = \"\";\n\t\t$this->_8_24_R->TooltipValue = \"\";\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_25_R->HrefValue = \"\";\n\t\t$this->_8_25_R->TooltipValue = \"\";\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_26_R->HrefValue = \"\";\n\t\t$this->_9_26_R->TooltipValue = \"\";\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_27_R->HrefValue = \"\";\n\t\t$this->_9_27_R->TooltipValue = \"\";\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_28_R->HrefValue = \"\";\n\t\t$this->_9_28_R->TooltipValue = \"\";\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_29_R->HrefValue = \"\";\n\t\t$this->_9_29_R->TooltipValue = \"\";\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_30_R->HrefValue = \"\";\n\t\t$this->_9_30_R->TooltipValue = \"\";\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_31_R->HrefValue = \"\";\n\t\t$this->_9_31_R->TooltipValue = \"\";\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_32_R->HrefValue = \"\";\n\t\t$this->_9_32_R->TooltipValue = \"\";\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_33_R->HrefValue = \"\";\n\t\t$this->_9_33_R->TooltipValue = \"\";\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_34_R->HrefValue = \"\";\n\t\t$this->_9_34_R->TooltipValue = \"\";\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_35_R->HrefValue = \"\";\n\t\t$this->_9_35_R->TooltipValue = \"\";\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_36_R->HrefValue = \"\";\n\t\t$this->_9_36_R->TooltipValue = \"\";\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_37_R->HrefValue = \"\";\n\t\t$this->_9_37_R->TooltipValue = \"\";\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_38_R->HrefValue = \"\";\n\t\t$this->_9_38_R->TooltipValue = \"\";\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_39_R->HrefValue = \"\";\n\t\t$this->_9_39_R->TooltipValue = \"\";\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->LinkCustomAttributes = \"\";\n\t\t$this->_10_40_R->HrefValue = \"\";\n\t\t$this->_10_40_R->TooltipValue = \"\";\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->LinkCustomAttributes = \"\";\n\t\t$this->_10_41_R->HrefValue = \"\";\n\t\t$this->_10_41_R->TooltipValue = \"\";\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->LinkCustomAttributes = \"\";\n\t\t$this->_11_42_R->HrefValue = \"\";\n\t\t$this->_11_42_R->TooltipValue = \"\";\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->LinkCustomAttributes = \"\";\n\t\t$this->_11_43_R->HrefValue = \"\";\n\t\t$this->_11_43_R->TooltipValue = \"\";\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_44_R->HrefValue = \"\";\n\t\t$this->_12_44_R->TooltipValue = \"\";\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_45_R->HrefValue = \"\";\n\t\t$this->_12_45_R->TooltipValue = \"\";\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_46_R->HrefValue = \"\";\n\t\t$this->_12_46_R->TooltipValue = \"\";\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_47_R->HrefValue = \"\";\n\t\t$this->_12_47_R->TooltipValue = \"\";\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_48_R->HrefValue = \"\";\n\t\t$this->_12_48_R->TooltipValue = \"\";\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_49_R->HrefValue = \"\";\n\t\t$this->_12_49_R->TooltipValue = \"\";\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_50_R->HrefValue = \"\";\n\t\t$this->_12_50_R->TooltipValue = \"\";\n\n\t\t// 1__R\n\t\t$this->_1__R->LinkCustomAttributes = \"\";\n\t\t$this->_1__R->HrefValue = \"\";\n\t\t$this->_1__R->TooltipValue = \"\";\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_R->HrefValue = \"\";\n\t\t$this->_13_54_R->TooltipValue = \"\";\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_1_R->HrefValue = \"\";\n\t\t$this->_13_54_1_R->TooltipValue = \"\";\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_2_R->HrefValue = \"\";\n\t\t$this->_13_54_2_R->TooltipValue = \"\";\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_R->HrefValue = \"\";\n\t\t$this->_13_55_R->TooltipValue = \"\";\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_1_R->HrefValue = \"\";\n\t\t$this->_13_55_1_R->TooltipValue = \"\";\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_2_R->HrefValue = \"\";\n\t\t$this->_13_55_2_R->TooltipValue = \"\";\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_R->HrefValue = \"\";\n\t\t$this->_13_56_R->TooltipValue = \"\";\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_1_R->HrefValue = \"\";\n\t\t$this->_13_56_1_R->TooltipValue = \"\";\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_2_R->HrefValue = \"\";\n\t\t$this->_13_56_2_R->TooltipValue = \"\";\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_R->HrefValue = \"\";\n\t\t$this->_12_53_R->TooltipValue = \"\";\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_1_R->HrefValue = \"\";\n\t\t$this->_12_53_1_R->TooltipValue = \"\";\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_2_R->HrefValue = \"\";\n\t\t$this->_12_53_2_R->TooltipValue = \"\";\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_3_R->HrefValue = \"\";\n\t\t$this->_12_53_3_R->TooltipValue = \"\";\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_4_R->HrefValue = \"\";\n\t\t$this->_12_53_4_R->TooltipValue = \"\";\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_5_R->HrefValue = \"\";\n\t\t$this->_12_53_5_R->TooltipValue = \"\";\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_6_R->HrefValue = \"\";\n\t\t$this->_12_53_6_R->TooltipValue = \"\";\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_R->HrefValue = \"\";\n\t\t$this->_13_57_R->TooltipValue = \"\";\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_1_R->HrefValue = \"\";\n\t\t$this->_13_57_1_R->TooltipValue = \"\";\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_2_R->HrefValue = \"\";\n\t\t$this->_13_57_2_R->TooltipValue = \"\";\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_R->HrefValue = \"\";\n\t\t$this->_13_58_R->TooltipValue = \"\";\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_1_R->HrefValue = \"\";\n\t\t$this->_13_58_1_R->TooltipValue = \"\";\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_2_R->HrefValue = \"\";\n\t\t$this->_13_58_2_R->TooltipValue = \"\";\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_R->HrefValue = \"\";\n\t\t$this->_13_59_R->TooltipValue = \"\";\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_1_R->HrefValue = \"\";\n\t\t$this->_13_59_1_R->TooltipValue = \"\";\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_2_R->HrefValue = \"\";\n\t\t$this->_13_59_2_R->TooltipValue = \"\";\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_60_R->HrefValue = \"\";\n\t\t$this->_13_60_R->TooltipValue = \"\";\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_7_R->HrefValue = \"\";\n\t\t$this->_12_53_7_R->TooltipValue = \"\";\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_8_R->HrefValue = \"\";\n\t\t$this->_12_53_8_R->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->customTemplateFieldValues();\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// IDXDAFTAR\n\t\t// TGLREG\n\t\t// NOMR\n\t\t// KETERANGAN\n\t\t// NOKARTU_BPJS\n\t\t// NOKTP\n\t\t// KDDOKTER\n\t\t// KDPOLY\n\t\t// KDRUJUK\n\t\t// KDCARABAYAR\n\t\t// NOJAMINAN\n\t\t// SHIFT\n\t\t// STATUS\n\t\t// KETERANGAN_STATUS\n\t\t// PASIENBARU\n\t\t// NIP\n\t\t// MASUKPOLY\n\t\t// KELUARPOLY\n\t\t// KETRUJUK\n\t\t// KETBAYAR\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t// JAMREG\n\t\t// BATAL\n\t\t// NO_SJP\n\t\t// NO_PESERTA\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// MINTA_RUJUKAN\n\t\t// NORUJUKAN_SEP\n\t\t// PPKRUJUKANASAL_SEP\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// tanggal\n\t\t// bulan\n\t\t// tahun\n\t\t// IDXDAFTAR\n\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->ViewValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->ViewValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->ViewValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->ViewValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->ViewValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->ViewValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->ViewValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->ViewValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->ViewValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->ViewValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->ViewValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->ViewValue = ew_FormatDateTime($this->MASUKPOLY->ViewValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->ViewValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->ViewValue = ew_FormatDateTime($this->KELUARPOLY->ViewValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->ViewValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->ViewValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->ViewValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->ViewValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->ViewValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->ViewValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->ViewValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->ViewValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->LinkCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->HrefValue = \"\";\n\t\t$this->IDXDAFTAR->TooltipValue = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t$this->TGLREG->HrefValue = \"\";\n\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t$this->NOMR->HrefValue = \"\";\n\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN->HrefValue = \"\";\n\t\t$this->KETERANGAN->TooltipValue = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->HrefValue = \"\";\n\t\t$this->NOKARTU_BPJS->TooltipValue = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->LinkCustomAttributes = \"\";\n\t\t$this->NOKTP->HrefValue = \"\";\n\t\t$this->NOKTP->TooltipValue = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->LinkCustomAttributes = \"\";\n\t\t$this->KDDOKTER->HrefValue = \"\";\n\t\t$this->KDDOKTER->TooltipValue = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KDRUJUK->HrefValue = \"\";\n\t\t$this->KDRUJUK->TooltipValue = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->LinkCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->HrefValue = \"\";\n\t\t$this->NOJAMINAN->TooltipValue = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->LinkCustomAttributes = \"\";\n\t\t$this->SHIFT->HrefValue = \"\";\n\t\t$this->SHIFT->TooltipValue = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->LinkCustomAttributes = \"\";\n\t\t$this->STATUS->HrefValue = \"\";\n\t\t$this->STATUS->TooltipValue = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->HrefValue = \"\";\n\t\t$this->KETERANGAN_STATUS->TooltipValue = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->LinkCustomAttributes = \"\";\n\t\t$this->PASIENBARU->HrefValue = \"\";\n\t\t$this->PASIENBARU->TooltipValue = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t$this->NIP->HrefValue = \"\";\n\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->LinkCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->HrefValue = \"\";\n\t\t$this->MASUKPOLY->TooltipValue = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->HrefValue = \"\";\n\t\t$this->KELUARPOLY->TooltipValue = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KETRUJUK->HrefValue = \"\";\n\t\t$this->KETRUJUK->TooltipValue = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KETBAYAR->HrefValue = \"\";\n\t\t$this->KETBAYAR->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->TooltipValue = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t$this->JAMREG->HrefValue = \"\";\n\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->LinkCustomAttributes = \"\";\n\t\t$this->BATAL->HrefValue = \"\";\n\t\t$this->BATAL->TooltipValue = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->LinkCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->HrefValue = \"\";\n\t\t$this->NO_PESERTA->TooltipValue = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->LinkCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->HrefValue = \"\";\n\t\t$this->MINTA_RUJUKAN->TooltipValue = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t// USER\n\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t$this->USER->HrefValue = \"\";\n\t\t$this->USER->TooltipValue = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t$this->tanggal->HrefValue = \"\";\n\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->LinkCustomAttributes = \"\";\n\t\t$this->bulan->HrefValue = \"\";\n\t\t$this->bulan->TooltipValue = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->LinkCustomAttributes = \"\";\n\t\t$this->tahun->HrefValue = \"\";\n\t\t$this->tahun->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function renderListRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes\n\t\t// IncomeCode\n\t\t// IncomeName\n\t\t// IncomeDescription\n\t\t// Division\n\t\t// IncomeAmount\n\t\t// IncomeBasicRate\n\t\t// BaseIncomeCode\n\t\t// Taxable\n\t\t// AccountNo\n\t\t// JobIncluded\n\t\t// Application\n\t\t// JobExcluded\n\t\t// IncomeCode\n\n\t\t$this->IncomeCode->ViewValue = $this->IncomeCode->CurrentValue;\n\t\t$this->IncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->ViewValue = $this->IncomeName->CurrentValue;\n\t\t$this->IncomeName->ViewCustomAttributes = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->ViewValue = $this->IncomeDescription->CurrentValue;\n\t\t$this->IncomeDescription->ViewCustomAttributes = \"\";\n\n\t\t// Division\n\t\t$curVal = strval($this->Division->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Division->ViewValue = $this->Division->lookupCacheOption($curVal);\n\t\t\tif ($this->Division->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`Division`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->Division->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Division->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->Division->ViewValue->add($this->Division->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Division->ViewValue = $this->Division->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Division->ViewValue = NULL;\n\t\t}\n\t\t$this->Division->ViewCustomAttributes = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->ViewValue = $this->IncomeAmount->CurrentValue;\n\t\t$this->IncomeAmount->ViewValue = FormatNumber($this->IncomeAmount->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeAmount->ViewCustomAttributes = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->ViewValue = $this->IncomeBasicRate->CurrentValue;\n\t\t$this->IncomeBasicRate->ViewValue = FormatNumber($this->IncomeBasicRate->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeBasicRate->ViewCustomAttributes = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$curVal = strval($this->BaseIncomeCode->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->lookupCacheOption($curVal);\n\t\t\tif ($this->BaseIncomeCode->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`IncomeCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->BaseIncomeCode->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->BaseIncomeCode->ViewValue = NULL;\n\t\t}\n\t\t$this->BaseIncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// Taxable\n\t\t$curVal = strval($this->Taxable->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Taxable->ViewValue = $this->Taxable->lookupCacheOption($curVal);\n\t\t\tif ($this->Taxable->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Taxable->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Taxable->ViewValue = NULL;\n\t\t}\n\t\t$this->Taxable->ViewCustomAttributes = \"\";\n\n\t\t// AccountNo\n\t\t$curVal = strval($this->AccountNo->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->lookupCacheOption($curVal);\n\t\t\tif ($this->AccountNo->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`AccountCode`\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t$sqlWrk = $this->AccountNo->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->AccountNo->ViewValue = NULL;\n\t\t}\n\t\t$this->AccountNo->ViewCustomAttributes = \"\";\n\n\t\t// JobIncluded\n\t\t$curVal = strval($this->JobIncluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobIncluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobIncluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobIncluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobIncluded->ViewValue->add($this->JobIncluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobIncluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobIncluded->ViewCustomAttributes = \"\";\n\n\t\t// Application\n\t\t$curVal = strval($this->Application->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Application->ViewValue = $this->Application->lookupCacheOption($curVal);\n\t\t\tif ($this->Application->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Application->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Application->ViewValue = NULL;\n\t\t}\n\t\t$this->Application->ViewCustomAttributes = \"\";\n\n\t\t// JobExcluded\n\t\t$curVal = strval($this->JobExcluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobExcluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobExcluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobExcluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobExcluded->ViewValue->add($this->JobExcluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobExcluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobExcluded->ViewCustomAttributes = \"\";\n\n\t\t// IncomeCode\n\t\t$this->IncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->IncomeCode->HrefValue = \"\";\n\t\t$this->IncomeCode->TooltipValue = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->LinkCustomAttributes = \"\";\n\t\t$this->IncomeName->HrefValue = \"\";\n\t\t$this->IncomeName->TooltipValue = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->LinkCustomAttributes = \"\";\n\t\t$this->IncomeDescription->HrefValue = \"\";\n\t\t$this->IncomeDescription->TooltipValue = \"\";\n\n\t\t// Division\n\t\t$this->Division->LinkCustomAttributes = \"\";\n\t\t$this->Division->HrefValue = \"\";\n\t\t$this->Division->TooltipValue = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->LinkCustomAttributes = \"\";\n\t\t$this->IncomeAmount->HrefValue = \"\";\n\t\t$this->IncomeAmount->TooltipValue = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->LinkCustomAttributes = \"\";\n\t\t$this->IncomeBasicRate->HrefValue = \"\";\n\t\t$this->IncomeBasicRate->TooltipValue = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$this->BaseIncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->BaseIncomeCode->HrefValue = \"\";\n\t\t$this->BaseIncomeCode->TooltipValue = \"\";\n\n\t\t// Taxable\n\t\t$this->Taxable->LinkCustomAttributes = \"\";\n\t\t$this->Taxable->HrefValue = \"\";\n\t\t$this->Taxable->TooltipValue = \"\";\n\n\t\t// AccountNo\n\t\t$this->AccountNo->LinkCustomAttributes = \"\";\n\t\t$this->AccountNo->HrefValue = \"\";\n\t\t$this->AccountNo->TooltipValue = \"\";\n\n\t\t// JobIncluded\n\t\t$this->JobIncluded->LinkCustomAttributes = \"\";\n\t\t$this->JobIncluded->HrefValue = \"\";\n\t\t$this->JobIncluded->TooltipValue = \"\";\n\n\t\t// Application\n\t\t$this->Application->LinkCustomAttributes = \"\";\n\t\t$this->Application->HrefValue = \"\";\n\t\t$this->Application->TooltipValue = \"\";\n\n\t\t// JobExcluded\n\t\t$this->JobExcluded->LinkCustomAttributes = \"\";\n\t\t$this->JobExcluded->HrefValue = \"\";\n\t\t$this->JobExcluded->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->customTemplateFieldValues();\n\t}", "public function renderListContent() {}", "public function renderItems()\n {\n $this->dataProvider->setPagination(false);\n\n $rows=[];\n $this->renderLevel($rows,0,0);\n\n return implode($this->separator, $rows);\n }", "public function renderList()\n {\n $html = '';\n foreach ($this->data as $listItem) {\n $html .= $this->render($listItem);\n }\n return $html;\n }", "function RenderListRow() {\n\t\tglobal $conn, $Security;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// C_EVENT_ID\n\n\t\t$this->C_EVENT_ID->CellCssStyle = \"\"; $this->C_EVENT_ID->CellCssClass = \"\";\n\t\t$this->C_EVENT_ID->CellAttrs = array(); $this->C_EVENT_ID->ViewAttrs = array(); $this->C_EVENT_ID->EditAttrs = array();\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->CellCssStyle = \"\"; $this->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$this->FK_CONGTY_ID->CellAttrs = array(); $this->FK_CONGTY_ID->ViewAttrs = array(); $this->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->CellCssStyle = \"\"; $this->C_TYPE_EVENT->CellCssClass = \"\";\n\t\t$this->C_TYPE_EVENT->CellAttrs = array(); $this->C_TYPE_EVENT->ViewAttrs = array(); $this->C_TYPE_EVENT->EditAttrs = array();\n\n\t\t// C_POST\n\t\t$this->C_POST->CellCssStyle = \"\"; $this->C_POST->CellCssClass = \"\";\n\t\t$this->C_POST->CellAttrs = array(); $this->C_POST->ViewAttrs = array(); $this->C_POST->EditAttrs = array();\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->CellCssStyle = \"\"; $this->C_DATETIME_BEGIN->CellCssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->CellAttrs = array(); $this->C_DATETIME_BEGIN->ViewAttrs = array(); $this->C_DATETIME_BEGIN->EditAttrs = array();\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->CellCssStyle = \"\"; $this->C_DATETIME_END->CellCssClass = \"\";\n\t\t$this->C_DATETIME_END->CellAttrs = array(); $this->C_DATETIME_END->ViewAttrs = array(); $this->C_DATETIME_END->EditAttrs = array();\n\n\t\t// C_ODER\n\t\t$this->C_ODER->CellCssStyle = \"\"; $this->C_ODER->CellCssClass = \"\";\n\t\t$this->C_ODER->CellAttrs = array(); $this->C_ODER->ViewAttrs = array(); $this->C_ODER->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->CellCssStyle = \"\"; $this->C_USER_ADD->CellCssClass = \"\";\n\t\t$this->C_USER_ADD->CellAttrs = array(); $this->C_USER_ADD->ViewAttrs = array(); $this->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->CellCssStyle = \"\"; $this->C_ADD_TIME->CellCssClass = \"\";\n\t\t$this->C_ADD_TIME->CellAttrs = array(); $this->C_ADD_TIME->ViewAttrs = array(); $this->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->CellCssStyle = \"\"; $this->C_USER_EDIT->CellCssClass = \"\";\n\t\t$this->C_USER_EDIT->CellAttrs = array(); $this->C_USER_EDIT->ViewAttrs = array(); $this->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->CellCssStyle = \"\"; $this->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$this->C_EDIT_TIME->CellAttrs = array(); $this->C_EDIT_TIME->ViewAttrs = array(); $this->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->CellCssStyle = \"\"; $this->C_ACTIVE_LEVELSITE->CellCssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CellAttrs = array(); $this->C_ACTIVE_LEVELSITE->ViewAttrs = array(); $this->C_ACTIVE_LEVELSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->CellCssStyle = \"\"; $this->C_TIME_ACTIVE->CellCssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->CellAttrs = array(); $this->C_TIME_ACTIVE->ViewAttrs = array(); $this->C_TIME_ACTIVE->EditAttrs = array();\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->CellCssStyle = \"\"; $this->C_SEND_MAIL->CellCssClass = \"\";\n\t\t$this->C_SEND_MAIL->CellAttrs = array(); $this->C_SEND_MAIL->ViewAttrs = array(); $this->C_SEND_MAIL->EditAttrs = array();\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->CellCssStyle = \"\"; $this->C_FK_BROWSE->CellCssClass = \"\";\n\t\t$this->C_FK_BROWSE->CellAttrs = array(); $this->C_FK_BROWSE->ViewAttrs = array(); $this->C_FK_BROWSE->EditAttrs = array();\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->CellCssStyle = \"\"; $this->FK_ARRAY_TINBAI->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CellAttrs = array(); $this->FK_ARRAY_TINBAI->ViewAttrs = array(); $this->FK_ARRAY_TINBAI->EditAttrs = array();\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->CellCssStyle = \"\"; $this->FK_ARRAY_CONGTY->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CellAttrs = array(); $this->FK_ARRAY_CONGTY->ViewAttrs = array(); $this->FK_ARRAY_CONGTY->EditAttrs = array();\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->ViewValue = $this->C_EVENT_ID->CurrentValue;\n\t\t$this->C_EVENT_ID->CssStyle = \"\";\n\t\t$this->C_EVENT_ID->CssClass = \"\";\n\t\t$this->C_EVENT_ID->ViewCustomAttributes = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\tif (strval($this->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($this->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $this->FK_CONGTY_ID->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_CONGTY_ID->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_CONGTY_ID->CssStyle = \"\";\n\t\t$this->FK_CONGTY_ID->CssClass = \"\";\n\t\t$this->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\tif (strval($this->C_TYPE_EVENT->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_TYPE_EVENT->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai Popup\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien theo bai viet\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"3\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien lien ket\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = $this->C_TYPE_EVENT->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_TYPE_EVENT->ViewValue = NULL;\n\t\t}\n\t\t$this->C_TYPE_EVENT->CssStyle = \"\";\n\t\t$this->C_TYPE_EVENT->CssClass = \"\";\n\t\t$this->C_TYPE_EVENT->ViewCustomAttributes = \"\";\n\n\t\t// C_POST\n\t\tif (strval($this->C_POST->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_POST->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang chu\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang tuyen sinh\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_POST->ViewValue = $this->C_POST->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_POST->ViewValue = NULL;\n\t\t}\n\t\t$this->C_POST->CssStyle = \"\";\n\t\t$this->C_POST->CssClass = \"\";\n\t\t$this->C_POST->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->ViewValue = $this->C_DATETIME_BEGIN->CurrentValue;\n\t\t$this->C_DATETIME_BEGIN->ViewValue = ew_FormatDateTime($this->C_DATETIME_BEGIN->ViewValue, 7);\n\t\t$this->C_DATETIME_BEGIN->CssStyle = \"\";\n\t\t$this->C_DATETIME_BEGIN->CssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->ViewValue = $this->C_DATETIME_END->CurrentValue;\n\t\t$this->C_DATETIME_END->ViewValue = ew_FormatDateTime($this->C_DATETIME_END->ViewValue, 7);\n\t\t$this->C_DATETIME_END->CssStyle = \"\";\n\t\t$this->C_DATETIME_END->CssClass = \"\";\n\t\t$this->C_DATETIME_END->ViewCustomAttributes = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->ViewValue = $this->C_ODER->CurrentValue;\n\t\t$this->C_ODER->ViewValue = ew_FormatDateTime($this->C_ODER->ViewValue, 7);\n\t\t$this->C_ODER->CssStyle = \"\";\n\t\t$this->C_ODER->CssClass = \"\";\n\t\t$this->C_ODER->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->ViewValue = $this->C_USER_ADD->CurrentValue;\n\t\t$this->C_USER_ADD->CssStyle = \"\";\n\t\t$this->C_USER_ADD->CssClass = \"\";\n\t\t$this->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->ViewValue = $this->C_ADD_TIME->CurrentValue;\n\t\t$this->C_ADD_TIME->ViewValue = ew_FormatDateTime($this->C_ADD_TIME->ViewValue, 7);\n\t\t$this->C_ADD_TIME->CssStyle = \"\";\n\t\t$this->C_ADD_TIME->CssClass = \"\";\n\t\t$this->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->ViewValue = $this->C_USER_EDIT->CurrentValue;\n\t\t$this->C_USER_EDIT->CssStyle = \"\";\n\t\t$this->C_USER_EDIT->CssClass = \"\";\n\t\t$this->C_USER_EDIT->ViewCustomAttributes = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->ViewValue = $this->C_EDIT_TIME->CurrentValue;\n\t\t$this->C_EDIT_TIME->ViewValue = ew_FormatDateTime($this->C_EDIT_TIME->ViewValue, 7);\n\t\t$this->C_EDIT_TIME->CssStyle = \"\";\n\t\t$this->C_EDIT_TIME->CssClass = \"\";\n\t\t$this->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\tif (strval($this->C_ACTIVE_LEVELSITE->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_ACTIVE_LEVELSITE->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"khong kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"Kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = $this->C_ACTIVE_LEVELSITE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_ACTIVE_LEVELSITE->CssStyle = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->ViewCustomAttributes = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->ViewValue = $this->C_TIME_ACTIVE->CurrentValue;\n\t\t$this->C_TIME_ACTIVE->ViewValue = ew_FormatDateTime($this->C_TIME_ACTIVE->ViewValue, 7);\n\t\t$this->C_TIME_ACTIVE->CssStyle = \"\";\n\t\t$this->C_TIME_ACTIVE->CssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->ViewCustomAttributes = \"\";\n\n\t\t// C_SEND_MAIL\n\t\tif (strval($this->C_SEND_MAIL->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_SEND_MAIL->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"khong gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = $this->C_SEND_MAIL->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_SEND_MAIL->ViewValue = NULL;\n\t\t}\n\t\t$this->C_SEND_MAIL->CssStyle = \"\";\n\t\t$this->C_SEND_MAIL->CssClass = \"\";\n\t\t$this->C_SEND_MAIL->ViewCustomAttributes = \"\";\n\n\t\t// C_FK_BROWSE\n\t\tif (strval($this->C_FK_BROWSE->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->C_FK_BROWSE->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`C_HOTEN` = '\" . ew_AdjustSql(trim($wrk)) . \"'\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_EMAIL` FROM `t_nguoidung`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->C_FK_BROWSE->ViewValue .= $rswrk->fields('C_EMAIL');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->C_FK_BROWSE->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = $this->C_FK_BROWSE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_FK_BROWSE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_FK_BROWSE->CssStyle = \"\";\n\t\t$this->C_FK_BROWSE->CssClass = \"\";\n\t\t$this->C_FK_BROWSE->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\tif (strval($this->FK_ARRAY_TINBAI->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_TINBAI->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_TINBAI_ID` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TITLE` FROM `t_tinbai_levelsite`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue .= $rswrk->fields('C_TITLE');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_TINBAI->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = $this->FK_ARRAY_TINBAI->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_TINBAI->CssStyle = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\tif (strval($this->FK_ARRAY_CONGTY->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_CONGTY->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_MACONGTY` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue .= $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_CONGTY->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = $this->FK_ARRAY_CONGTY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_CONGTY->CssStyle = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->ViewCustomAttributes = \"\";\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->HrefValue = \"\";\n\t\t$this->C_EVENT_ID->TooltipValue = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->HrefValue = \"\";\n\t\t$this->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->HrefValue = \"\";\n\t\t$this->C_TYPE_EVENT->TooltipValue = \"\";\n\n\t\t// C_POST\n\t\t$this->C_POST->HrefValue = \"\";\n\t\t$this->C_POST->TooltipValue = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->HrefValue = \"\";\n\t\t$this->C_DATETIME_BEGIN->TooltipValue = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->HrefValue = \"\";\n\t\t$this->C_DATETIME_END->TooltipValue = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->HrefValue = \"\";\n\t\t$this->C_ODER->TooltipValue = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->HrefValue = \"\";\n\t\t$this->C_USER_ADD->TooltipValue = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->HrefValue = \"\";\n\t\t$this->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->HrefValue = \"\";\n\t\t$this->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->HrefValue = \"\";\n\t\t$this->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->HrefValue = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->TooltipValue = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->HrefValue = \"\";\n\t\t$this->C_TIME_ACTIVE->TooltipValue = \"\";\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->HrefValue = \"\";\n\t\t$this->C_SEND_MAIL->TooltipValue = \"\";\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->HrefValue = \"\";\n\t\t$this->C_FK_BROWSE->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->HrefValue = \"\";\n\t\t$this->FK_ARRAY_TINBAI->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->HrefValue = \"\";\n\t\t$this->FK_ARRAY_CONGTY->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function ddrowList(){\n\n\t\tdd($this->rowlist);\n\n\t}", "public function render()\n {\n foreach ($this->arrayList as $item)\n {\n $this->render .= $item->render();\n }\n return $this->render;\n }", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function enumerate_values_table_row(){\n\t\treturn \"\n\t\t\t<tr>\n\t\t\t\t<td>$this->avg_reaction_time_m_no_faces</td> \n\t\t\t\t<td>$this->accuracy_m_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_m_faces</td> \n\t\t\t\t<td>$this->accuracy_m_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_aba_no_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_aba_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_faces</td> \n\t\t\t\t<td>$this->accuracy_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_no_faces</td> \n\t\t\t\t<td>$this->accuracy_no_faces</td> \n\t\t\t</tr>\n\t\t\";\n\t}", "public function renderItems() {\n\n \t $caption = $this->renderCaption();\n \t $columnGroup = $this->renderColumnGroup();\n \t $tableHeader = $this->showHeader ? $this->renderTableHeader() : false;\n \t $tableBody = $this->renderTableBody();\n \t $tableFooter = $this->showFooter ? $this->renderTableFooter() : false;\n \t $content = array_filter([\n \t$caption,\n \t$columnGroup,\n \t$tableHeader,\n \t$tableFooter,\n \t$tableBody,\n \t ]);\n\n\t return self::html()->tag('table', array('options' => $this->tableOptions, 'content' => implode(\"\\n\", $content)), $this->tableOptions);\n }", "public function aggregateListRowValues()\n\t{\n\t}", "public function aggregateListRowValues()\n\t{\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->tarif->FormValue == $this->tarif->CurrentValue && is_numeric(ew_StrToFloat($this->tarif->CurrentValue)))\n\t\t\t$this->tarif->CurrentValue = ew_StrToFloat($this->tarif->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bhp->FormValue == $this->bhp->CurrentValue && is_numeric(ew_StrToFloat($this->bhp->CurrentValue)))\n\t\t\t$this->bhp->CurrentValue = ew_StrToFloat($this->bhp->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_admission\n\t\t// nomr\n\t\t// statusbayar\n\t\t// kelas\n\t\t// tanggal\n\t\t// kode_tindakan\n\t\t// qty\n\t\t// tarif\n\t\t// bhp\n\t\t// user\n\t\t// nama_tindakan\n\t\t// kelompok_tindakan\n\t\t// kelompok1\n\t\t// kelompok2\n\t\t// kode_dokter\n\t\t// no_ruang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kelas\n\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// kode_tindakan\n\t\tif (strval($this->kode_tindakan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kode_tindakan->ViewValue = NULL;\n\t\t}\n\t\t$this->kode_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// qty\n\t\t$this->qty->ViewValue = $this->qty->CurrentValue;\n\t\t$this->qty->ViewCustomAttributes = \"\";\n\n\t\t// tarif\n\t\t$this->tarif->ViewValue = $this->tarif->CurrentValue;\n\t\t$this->tarif->ViewCustomAttributes = \"\";\n\n\t\t// bhp\n\t\t$this->bhp->ViewValue = $this->bhp->CurrentValue;\n\t\t$this->bhp->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// nama_tindakan\n\t\t$this->nama_tindakan->ViewValue = $this->nama_tindakan->CurrentValue;\n\t\t$this->nama_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok_tindakan\n\t\t$this->kelompok_tindakan->ViewValue = $this->kelompok_tindakan->CurrentValue;\n\t\t$this->kelompok_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok1\n\t\t$this->kelompok1->ViewValue = $this->kelompok1->CurrentValue;\n\t\t$this->kelompok1->ViewCustomAttributes = \"\";\n\n\t\t// kelompok2\n\t\t$this->kelompok2->ViewValue = $this->kelompok2->CurrentValue;\n\t\t$this->kelompok2->ViewCustomAttributes = \"\";\n\n\t\t// kode_dokter\n\t\t$this->kode_dokter->ViewValue = $this->kode_dokter->CurrentValue;\n\t\t$this->kode_dokter->ViewCustomAttributes = \"\";\n\n\t\t// no_ruang\n\t\t$this->no_ruang->ViewValue = $this->no_ruang->CurrentValue;\n\t\t$this->no_ruang->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\t\t\t$this->kelas->TooltipValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\t\t\t$this->kode_tindakan->TooltipValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\t\t\t$this->qty->TooltipValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\t\t\t$this->tarif->TooltipValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\t\t\t$this->bhp->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\t\t\t$this->nama_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\t\t\t$this->kelompok_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\t\t\t$this->kelompok1->TooltipValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\t\t\t$this->kelompok2->TooltipValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\t\t\t$this->kode_dokter->TooltipValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t\t$this->no_ruang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\tif ($this->id_admission->getSessionValue() <> \"\") {\n\t\t\t\t$this->id_admission->CurrentValue = $this->id_admission->getSessionValue();\n\t\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\t\t\t}\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\tif ($this->nomr->getSessionValue() <> \"\") {\n\t\t\t\t$this->nomr->CurrentValue = $this->nomr->getSessionValue();\n\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t$this->nomr->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\t\t\t}\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif ($this->statusbayar->getSessionValue() <> \"\") {\n\t\t\t\t$this->statusbayar->CurrentValue = $this->statusbayar->getSessionValue();\n\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\t\t\t}\n\n\t\t\t// kelas\n\t\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t\tif ($this->kelas->getSessionValue() <> \"\") {\n\t\t\t\t$this->kelas->CurrentValue = $this->kelas->getSessionValue();\n\t\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t\t$this->kelas->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->kelas->EditValue = ew_HtmlEncode($this->kelas->CurrentValue);\n\t\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\t\t\t}\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal->CurrentValue, 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_tindakan->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kode_tindakan->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kode_tindakan->EditValue = $arwrk;\n\n\t\t\t// qty\n\t\t\t$this->qty->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->qty->EditCustomAttributes = \"\";\n\t\t\t$this->qty->EditValue = ew_HtmlEncode($this->qty->CurrentValue);\n\t\t\t$this->qty->PlaceHolder = ew_RemoveHtml($this->qty->FldCaption());\n\n\t\t\t// tarif\n\t\t\t$this->tarif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tarif->EditCustomAttributes = \"\";\n\t\t\t$this->tarif->EditValue = ew_HtmlEncode($this->tarif->CurrentValue);\n\t\t\t$this->tarif->PlaceHolder = ew_RemoveHtml($this->tarif->FldCaption());\n\t\t\tif (strval($this->tarif->EditValue) <> \"\" && is_numeric($this->tarif->EditValue)) $this->tarif->EditValue = ew_FormatNumber($this->tarif->EditValue, -2, -1, -2, 0);\n\n\t\t\t// bhp\n\t\t\t$this->bhp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bhp->EditCustomAttributes = \"\";\n\t\t\t$this->bhp->EditValue = ew_HtmlEncode($this->bhp->CurrentValue);\n\t\t\t$this->bhp->PlaceHolder = ew_RemoveHtml($this->bhp->FldCaption());\n\t\t\tif (strval($this->bhp->EditValue) <> \"\" && is_numeric($this->bhp->EditValue)) $this->bhp->EditValue = ew_FormatNumber($this->bhp->EditValue, -2, -1, -2, 0);\n\n\t\t\t// user\n\t\t\t$this->user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->user->EditCustomAttributes = \"\";\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\n\t\t\t$this->user->PlaceHolder = ew_RemoveHtml($this->user->FldCaption());\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->EditValue = ew_HtmlEncode($this->nama_tindakan->CurrentValue);\n\t\t\t$this->nama_tindakan->PlaceHolder = ew_RemoveHtml($this->nama_tindakan->FldCaption());\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->EditValue = ew_HtmlEncode($this->kelompok_tindakan->CurrentValue);\n\t\t\t$this->kelompok_tindakan->PlaceHolder = ew_RemoveHtml($this->kelompok_tindakan->FldCaption());\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok1->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok1->EditValue = ew_HtmlEncode($this->kelompok1->CurrentValue);\n\t\t\t$this->kelompok1->PlaceHolder = ew_RemoveHtml($this->kelompok1->FldCaption());\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok2->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok2->EditValue = ew_HtmlEncode($this->kelompok2->CurrentValue);\n\t\t\t$this->kelompok2->PlaceHolder = ew_RemoveHtml($this->kelompok2->FldCaption());\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_dokter->EditCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->EditValue = ew_HtmlEncode($this->kode_dokter->CurrentValue);\n\t\t\t$this->kode_dokter->PlaceHolder = ew_RemoveHtml($this->kode_dokter->FldCaption());\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->no_ruang->EditCustomAttributes = \"\";\n\t\t\t$this->no_ruang->EditValue = ew_HtmlEncode($this->no_ruang->CurrentValue);\n\t\t\t$this->no_ruang->PlaceHolder = ew_RemoveHtml($this->no_ruang->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function scrappy_renderList( $data ) {\n if ( !is_array( $data ) ) return; \n $html = '';\n foreach ( $data as $key => $value ) {\n $html .= '<ul style=\"padding-left:15px\">';\n if (is_object( $value ) ) $value = get_object_vars( $value );\n if (is_array( $value ) ) {\n $html .= '<li><strong>' . $key .':</strong> ';\n $html .= scrappy_renderList( $value );\n $html .= '</li>';\n } else {\n $html .= '<li><strong>' . $key .':</strong> '. $value . '</li>';\n }\n $html .= '</ul>'; \n }\n return $html;\n}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->precio_item->FormValue == $this->precio_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_item->CurrentValue)))\n\t\t\t$this->precio_item->CurrentValue = ew_StrToFloat($this->precio_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_item->FormValue == $this->costo_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_item->CurrentValue)))\n\t\t\t$this->costo_item->CurrentValue = ew_StrToFloat($this->costo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldo_item->FormValue == $this->saldo_item->CurrentValue && is_numeric(ew_StrToFloat($this->saldo_item->CurrentValue)))\n\t\t\t$this->saldo_item->CurrentValue = ew_StrToFloat($this->saldo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->precio_old_item->FormValue == $this->precio_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_old_item->CurrentValue)))\n\t\t\t$this->precio_old_item->CurrentValue = ew_StrToFloat($this->precio_old_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_old_item->FormValue == $this->costo_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_old_item->CurrentValue)))\n\t\t\t$this->costo_old_item->CurrentValue = ew_StrToFloat($this->costo_old_item->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_Item\n\t\t// codigo_item\n\t\t// nombre_item\n\t\t// und_item\n\t\t// precio_item\n\t\t// costo_item\n\t\t// tipo_item\n\t\t// marca_item\n\t\t// cod_marca_item\n\t\t// detalle_item\n\t\t// saldo_item\n\t\t// activo_item\n\t\t// maneja_serial_item\n\t\t// asignado_item\n\t\t// si_no_item\n\t\t// precio_old_item\n\t\t// costo_old_item\n\t\t// registra_item\n\t\t// fecha_registro_item\n\t\t// empresa_item\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_Item\n\t\t$this->Id_Item->ViewValue = $this->Id_Item->CurrentValue;\n\t\t$this->Id_Item->ViewCustomAttributes = \"\";\n\n\t\t// codigo_item\n\t\t$this->codigo_item->ViewValue = $this->codigo_item->CurrentValue;\n\t\t$this->codigo_item->ViewCustomAttributes = \"\";\n\n\t\t// nombre_item\n\t\t$this->nombre_item->ViewValue = $this->nombre_item->CurrentValue;\n\t\t$this->nombre_item->ViewCustomAttributes = \"\";\n\n\t\t// und_item\n\t\t$this->und_item->ViewValue = $this->und_item->CurrentValue;\n\t\t$this->und_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_item\n\t\t$this->precio_item->ViewValue = $this->precio_item->CurrentValue;\n\t\t$this->precio_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_item\n\t\t$this->costo_item->ViewValue = $this->costo_item->CurrentValue;\n\t\t$this->costo_item->ViewCustomAttributes = \"\";\n\n\t\t// tipo_item\n\t\t$this->tipo_item->ViewValue = $this->tipo_item->CurrentValue;\n\t\t$this->tipo_item->ViewCustomAttributes = \"\";\n\n\t\t// marca_item\n\t\t$this->marca_item->ViewValue = $this->marca_item->CurrentValue;\n\t\t$this->marca_item->ViewCustomAttributes = \"\";\n\n\t\t// cod_marca_item\n\t\t$this->cod_marca_item->ViewValue = $this->cod_marca_item->CurrentValue;\n\t\t$this->cod_marca_item->ViewCustomAttributes = \"\";\n\n\t\t// detalle_item\n\t\t$this->detalle_item->ViewValue = $this->detalle_item->CurrentValue;\n\t\t$this->detalle_item->ViewCustomAttributes = \"\";\n\n\t\t// saldo_item\n\t\t$this->saldo_item->ViewValue = $this->saldo_item->CurrentValue;\n\t\t$this->saldo_item->ViewCustomAttributes = \"\";\n\n\t\t// activo_item\n\t\t$this->activo_item->ViewValue = $this->activo_item->CurrentValue;\n\t\t$this->activo_item->ViewCustomAttributes = \"\";\n\n\t\t// maneja_serial_item\n\t\t$this->maneja_serial_item->ViewValue = $this->maneja_serial_item->CurrentValue;\n\t\t$this->maneja_serial_item->ViewCustomAttributes = \"\";\n\n\t\t// asignado_item\n\t\t$this->asignado_item->ViewValue = $this->asignado_item->CurrentValue;\n\t\t$this->asignado_item->ViewCustomAttributes = \"\";\n\n\t\t// si_no_item\n\t\t$this->si_no_item->ViewValue = $this->si_no_item->CurrentValue;\n\t\t$this->si_no_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_old_item\n\t\t$this->precio_old_item->ViewValue = $this->precio_old_item->CurrentValue;\n\t\t$this->precio_old_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_old_item\n\t\t$this->costo_old_item->ViewValue = $this->costo_old_item->CurrentValue;\n\t\t$this->costo_old_item->ViewCustomAttributes = \"\";\n\n\t\t// registra_item\n\t\t$this->registra_item->ViewValue = $this->registra_item->CurrentValue;\n\t\t$this->registra_item->ViewCustomAttributes = \"\";\n\n\t\t// fecha_registro_item\n\t\t$this->fecha_registro_item->ViewValue = $this->fecha_registro_item->CurrentValue;\n\t\t$this->fecha_registro_item->ViewValue = ew_FormatDateTime($this->fecha_registro_item->ViewValue, 0);\n\t\t$this->fecha_registro_item->ViewCustomAttributes = \"\";\n\n\t\t// empresa_item\n\t\t$this->empresa_item->ViewValue = $this->empresa_item->CurrentValue;\n\t\t$this->empresa_item->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_Item\n\t\t\t$this->Id_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_Item->HrefValue = \"\";\n\t\t\t$this->Id_Item->TooltipValue = \"\";\n\n\t\t\t// codigo_item\n\t\t\t$this->codigo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo_item->HrefValue = \"\";\n\t\t\t$this->codigo_item->TooltipValue = \"\";\n\n\t\t\t// nombre_item\n\t\t\t$this->nombre_item->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_item->HrefValue = \"\";\n\t\t\t$this->nombre_item->TooltipValue = \"\";\n\n\t\t\t// und_item\n\t\t\t$this->und_item->LinkCustomAttributes = \"\";\n\t\t\t$this->und_item->HrefValue = \"\";\n\t\t\t$this->und_item->TooltipValue = \"\";\n\n\t\t\t// precio_item\n\t\t\t$this->precio_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_item->HrefValue = \"\";\n\t\t\t$this->precio_item->TooltipValue = \"\";\n\n\t\t\t// costo_item\n\t\t\t$this->costo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_item->HrefValue = \"\";\n\t\t\t$this->costo_item->TooltipValue = \"\";\n\n\t\t\t// tipo_item\n\t\t\t$this->tipo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_item->HrefValue = \"\";\n\t\t\t$this->tipo_item->TooltipValue = \"\";\n\n\t\t\t// marca_item\n\t\t\t$this->marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->marca_item->HrefValue = \"\";\n\t\t\t$this->marca_item->TooltipValue = \"\";\n\n\t\t\t// cod_marca_item\n\t\t\t$this->cod_marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->cod_marca_item->HrefValue = \"\";\n\t\t\t$this->cod_marca_item->TooltipValue = \"\";\n\n\t\t\t// detalle_item\n\t\t\t$this->detalle_item->LinkCustomAttributes = \"\";\n\t\t\t$this->detalle_item->HrefValue = \"\";\n\t\t\t$this->detalle_item->TooltipValue = \"\";\n\n\t\t\t// saldo_item\n\t\t\t$this->saldo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->saldo_item->HrefValue = \"\";\n\t\t\t$this->saldo_item->TooltipValue = \"\";\n\n\t\t\t// activo_item\n\t\t\t$this->activo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_item->HrefValue = \"\";\n\t\t\t$this->activo_item->TooltipValue = \"\";\n\n\t\t\t// maneja_serial_item\n\t\t\t$this->maneja_serial_item->LinkCustomAttributes = \"\";\n\t\t\t$this->maneja_serial_item->HrefValue = \"\";\n\t\t\t$this->maneja_serial_item->TooltipValue = \"\";\n\n\t\t\t// asignado_item\n\t\t\t$this->asignado_item->LinkCustomAttributes = \"\";\n\t\t\t$this->asignado_item->HrefValue = \"\";\n\t\t\t$this->asignado_item->TooltipValue = \"\";\n\n\t\t\t// si_no_item\n\t\t\t$this->si_no_item->LinkCustomAttributes = \"\";\n\t\t\t$this->si_no_item->HrefValue = \"\";\n\t\t\t$this->si_no_item->TooltipValue = \"\";\n\n\t\t\t// precio_old_item\n\t\t\t$this->precio_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_old_item->HrefValue = \"\";\n\t\t\t$this->precio_old_item->TooltipValue = \"\";\n\n\t\t\t// costo_old_item\n\t\t\t$this->costo_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_old_item->HrefValue = \"\";\n\t\t\t$this->costo_old_item->TooltipValue = \"\";\n\n\t\t\t// registra_item\n\t\t\t$this->registra_item->LinkCustomAttributes = \"\";\n\t\t\t$this->registra_item->HrefValue = \"\";\n\t\t\t$this->registra_item->TooltipValue = \"\";\n\n\t\t\t// fecha_registro_item\n\t\t\t$this->fecha_registro_item->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_registro_item->HrefValue = \"\";\n\t\t\t$this->fecha_registro_item->TooltipValue = \"\";\n\n\t\t\t// empresa_item\n\t\t\t$this->empresa_item->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_item->HrefValue = \"\";\n\t\t\t$this->empresa_item->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function renderContentBody()\n {\n $models = array_values($this->dataProvider->getModels());\n $keys = $this->dataProvider->getKeys();\n $rows = [];\n foreach ($models as $index => $model) {\n $key = $keys[$index];\n if ($this->beforeRow !== null) {\n $row = call_user_func($this->beforeRow, $model, $key, $index, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n\n $rows[] = $this->renderBodyRow($model, $key, $index);\n\n if ($this->afterRow !== null) {\n $row = call_user_func($this->afterRow, $model, $key, $index, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n }\n return \"<ul class='product-list'>\\n\" . implode(\"\\n\", $rows) . \"\\n</ul>\";\n }", "public function display_rows()\n {\n }", "public function display_rows()\n {\n }", "public function auto_build_list_tbody($data){\r\n\t\t$list_tbody = \"<tbody>\";\r\n\t\t$i = 1;\r\n\t\tforeach ($data as $row) {\r\n\t\t\t$list_tbody .= '<tr>' .\r\n\t\t\t\t\"<td>\" . $i++ . \"</td>\";\r\n\t\t\tforeach ($this->model->table_fields as $list_field) {\r\n\t\t\t\tif ($list_field->get_visible_grid()) {\r\n\t\t\t\t\t//if($list_field->get_type()==Column::$COLUMN_TYPE_SELECT)\r\n\t\t\t\t\tif ($list_field->get_foreing_key()) {\r\n\t\t\t\t\t\t$select_data = $list_field->get_fk_entity()->get_select_data($row[$list_field->get_name()]);\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $select_data[0]['name'] . \"</td>\";\r\n\t\t\t\t\t} else if ($list_field->get_type() == Column::$COLUMN_TYPE_PASS) {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . (str_repeat('*', strlen($row[$list_field->get_name()]))) . \"</td>\";\r\n\t\t\t\t\t} else if (Column::$COLUMN_TYPE_ICONPICKER) {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $row[$list_field->get_name()] .\r\n\t\t\t\t\t\t\t\" <i class='\" . $row[$list_field->get_name()] . \"'></i></td>\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $row[$list_field->get_name()] . \"</td>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$list_tbody .= \"<td class='text-center'>\" . ($this->model->crud_config['can_update'] ?\r\n\t\t\t\t\t\tComponent::edit_button($this->model->table_name, $row[$this->model->id_field]) : '') . \r\n\t\t\t\t\t($this->model->crud_config['can_delete'] ?\r\n\t\t\t\t\t\tComponent::delete_button($this->model->table_name, $row[$this->model->id_field]) : '') .\r\n\t\t\t\t\"</td>\" .\r\n\t\t\t\t\"</tr>\";\r\n\r\n\t\t}\r\n\t\treturn $list_tbody . \"</tbody>\";\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->besar->FormValue == $this->besar->CurrentValue && is_numeric(ew_StrToFloat($this->besar->CurrentValue)))\n\t\t\t$this->besar->CurrentValue = ew_StrToFloat($this->besar->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// replid\n\t\t// nama\n\t\t// besar\n\t\t// idkategori\n\t\t// rekkas\n\t\t// rekpendapatan\n\t\t// rekpiutang\n\t\t// aktif\n\t\t// keterangan\n\t\t// departemen\n\t\t// info1\n\t\t// info2\n\t\t// info3\n\t\t// ts\n\t\t// token\n\t\t// issync\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// replid\n\t\t$this->replid->ViewValue = $this->replid->CurrentValue;\n\t\t$this->replid->ViewCustomAttributes = \"\";\n\n\t\t// nama\n\t\t$this->nama->ViewValue = $this->nama->CurrentValue;\n\t\t$this->nama->ViewCustomAttributes = \"\";\n\n\t\t// besar\n\t\t$this->besar->ViewValue = $this->besar->CurrentValue;\n\t\t$this->besar->ViewCustomAttributes = \"\";\n\n\t\t// idkategori\n\t\t$this->idkategori->ViewValue = $this->idkategori->CurrentValue;\n\t\t$this->idkategori->ViewCustomAttributes = \"\";\n\n\t\t// rekkas\n\t\t$this->rekkas->ViewValue = $this->rekkas->CurrentValue;\n\t\t$this->rekkas->ViewCustomAttributes = \"\";\n\n\t\t// rekpendapatan\n\t\t$this->rekpendapatan->ViewValue = $this->rekpendapatan->CurrentValue;\n\t\t$this->rekpendapatan->ViewCustomAttributes = \"\";\n\n\t\t// rekpiutang\n\t\t$this->rekpiutang->ViewValue = $this->rekpiutang->CurrentValue;\n\t\t$this->rekpiutang->ViewCustomAttributes = \"\";\n\n\t\t// aktif\n\t\t$this->aktif->ViewValue = $this->aktif->CurrentValue;\n\t\t$this->aktif->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// departemen\n\t\t$this->departemen->ViewValue = $this->departemen->CurrentValue;\n\t\t$this->departemen->ViewCustomAttributes = \"\";\n\n\t\t// info1\n\t\t$this->info1->ViewValue = $this->info1->CurrentValue;\n\t\t$this->info1->ViewCustomAttributes = \"\";\n\n\t\t// info2\n\t\t$this->info2->ViewValue = $this->info2->CurrentValue;\n\t\t$this->info2->ViewCustomAttributes = \"\";\n\n\t\t// info3\n\t\t$this->info3->ViewValue = $this->info3->CurrentValue;\n\t\t$this->info3->ViewCustomAttributes = \"\";\n\n\t\t// ts\n\t\t$this->ts->ViewValue = $this->ts->CurrentValue;\n\t\t$this->ts->ViewValue = ew_FormatDateTime($this->ts->ViewValue, 0);\n\t\t$this->ts->ViewCustomAttributes = \"\";\n\n\t\t// token\n\t\t$this->token->ViewValue = $this->token->CurrentValue;\n\t\t$this->token->ViewCustomAttributes = \"\";\n\n\t\t// issync\n\t\t$this->issync->ViewValue = $this->issync->CurrentValue;\n\t\t$this->issync->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\t\t\t$this->nama->TooltipValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\t\t\t$this->besar->TooltipValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\t\t\t$this->idkategori->TooltipValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\t\t\t$this->rekkas->TooltipValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\t\t\t$this->rekpendapatan->TooltipValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\t\t\t$this->rekpiutang->TooltipValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\t\t\t$this->aktif->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\t\t\t$this->departemen->TooltipValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\t\t\t$this->info1->TooltipValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\t\t\t$this->info2->TooltipValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\t\t\t$this->info3->TooltipValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\t\t\t$this->ts->TooltipValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\t\t\t$this->token->TooltipValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t\t$this->issync->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// nama\n\t\t\t$this->nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama->EditCustomAttributes = \"\";\n\t\t\t$this->nama->EditValue = ew_HtmlEncode($this->nama->CurrentValue);\n\t\t\t$this->nama->PlaceHolder = ew_RemoveHtml($this->nama->FldCaption());\n\n\t\t\t// besar\n\t\t\t$this->besar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->besar->EditCustomAttributes = \"\";\n\t\t\t$this->besar->EditValue = ew_HtmlEncode($this->besar->CurrentValue);\n\t\t\t$this->besar->PlaceHolder = ew_RemoveHtml($this->besar->FldCaption());\n\t\t\tif (strval($this->besar->EditValue) <> \"\" && is_numeric($this->besar->EditValue)) $this->besar->EditValue = ew_FormatNumber($this->besar->EditValue, -2, -1, -2, 0);\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->idkategori->EditCustomAttributes = \"\";\n\t\t\t$this->idkategori->EditValue = ew_HtmlEncode($this->idkategori->CurrentValue);\n\t\t\t$this->idkategori->PlaceHolder = ew_RemoveHtml($this->idkategori->FldCaption());\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekkas->EditCustomAttributes = \"\";\n\t\t\t$this->rekkas->EditValue = ew_HtmlEncode($this->rekkas->CurrentValue);\n\t\t\t$this->rekkas->PlaceHolder = ew_RemoveHtml($this->rekkas->FldCaption());\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpendapatan->EditCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->EditValue = ew_HtmlEncode($this->rekpendapatan->CurrentValue);\n\t\t\t$this->rekpendapatan->PlaceHolder = ew_RemoveHtml($this->rekpendapatan->FldCaption());\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpiutang->EditCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->EditValue = ew_HtmlEncode($this->rekpiutang->CurrentValue);\n\t\t\t$this->rekpiutang->PlaceHolder = ew_RemoveHtml($this->rekpiutang->FldCaption());\n\n\t\t\t// aktif\n\t\t\t$this->aktif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->aktif->EditCustomAttributes = \"\";\n\t\t\t$this->aktif->EditValue = ew_HtmlEncode($this->aktif->CurrentValue);\n\t\t\t$this->aktif->PlaceHolder = ew_RemoveHtml($this->aktif->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// departemen\n\t\t\t$this->departemen->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->departemen->EditCustomAttributes = \"\";\n\t\t\t$this->departemen->EditValue = ew_HtmlEncode($this->departemen->CurrentValue);\n\t\t\t$this->departemen->PlaceHolder = ew_RemoveHtml($this->departemen->FldCaption());\n\n\t\t\t// info1\n\t\t\t$this->info1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info1->EditCustomAttributes = \"\";\n\t\t\t$this->info1->EditValue = ew_HtmlEncode($this->info1->CurrentValue);\n\t\t\t$this->info1->PlaceHolder = ew_RemoveHtml($this->info1->FldCaption());\n\n\t\t\t// info2\n\t\t\t$this->info2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info2->EditCustomAttributes = \"\";\n\t\t\t$this->info2->EditValue = ew_HtmlEncode($this->info2->CurrentValue);\n\t\t\t$this->info2->PlaceHolder = ew_RemoveHtml($this->info2->FldCaption());\n\n\t\t\t// info3\n\t\t\t$this->info3->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info3->EditCustomAttributes = \"\";\n\t\t\t$this->info3->EditValue = ew_HtmlEncode($this->info3->CurrentValue);\n\t\t\t$this->info3->PlaceHolder = ew_RemoveHtml($this->info3->FldCaption());\n\n\t\t\t// ts\n\t\t\t$this->ts->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ts->EditCustomAttributes = \"\";\n\t\t\t$this->ts->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ts->CurrentValue, 8));\n\t\t\t$this->ts->PlaceHolder = ew_RemoveHtml($this->ts->FldCaption());\n\n\t\t\t// token\n\t\t\t$this->token->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->token->EditCustomAttributes = \"\";\n\t\t\t$this->token->EditValue = ew_HtmlEncode($this->token->CurrentValue);\n\t\t\t$this->token->PlaceHolder = ew_RemoveHtml($this->token->FldCaption());\n\n\t\t\t// issync\n\t\t\t$this->issync->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->issync->EditCustomAttributes = \"\";\n\t\t\t$this->issync->EditValue = ew_HtmlEncode($this->issync->CurrentValue);\n\t\t\t$this->issync->PlaceHolder = ew_RemoveHtml($this->issync->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// nama\n\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function render()\n {\n return view('components.table.row');\n }", "function AggregateListRow() {\n\t}", "public function getOutput ()\n {\n \t//colspan\n $this->colspan = count($this->getFields());//количество полей\n if (count($this->getOptions()) >0) $this->colspan ++ ;//столбец опций\n if ($this->PARAM_EL_CHECKBOX && $this->getPrimaryField() && count($this->getButtons()) >0) $this->colspan ++ ;//столбец чекбоксов\n if ($this->PARAM_EL_SORTING && $this->getPrimaryField() && $this->getSortingField() && count($this->getButtons()) >0) $this->colspan ++ ;//столбец чекбоксов\n \n \n //ORDER\n if (!empty($_SESSION['LISTER'][$this->namespace]['SORT']['ORDER']) ) {\n $_direction = empty($_SESSION['LISTER'][$this->namespace]['SORT']['DIRECTION'])?'':' '.$_SESSION['LISTER'][$this->namespace]['SORT']['DIRECTION'];\n \n if (!in_array($_direction, array(' ASC', ' DESC') )) $_direction = '';\n //print $this->getSQLFieldByFieldTitle($_SESSION['LISTER'][$this->namespace]['SORT']['ORDER']);\n $this->list->setOrder($this->getSQLFieldByFieldTitle($_SESSION['LISTER'][$this->namespace]['SORT']['ORDER']).$_direction);\n \n if (!empty($_SESSION['LISTER'][$this->namespace]['SORT']['DIRECTION']) ) $this->setSortDirection($_SESSION['LISTER'][$this->namespace]['SORT']['DIRECTION']);\n if (!empty($_SESSION['LISTER'][$this->namespace]['SORT']['ORDER']) ) $this->setSortOrder($_SESSION['LISTER'][$this->namespace]['SORT']['ORDER']);\n }\n //print_r($_SESSION['LISTER'][$this->namespace]);\n \n //PAGINATOR\n if ($this->PARAM_PAG_PANEL && !empty($_SESSION['LISTER'][$this->namespace]['PAGINATOR']['PERPAGE']) ){\n $this->list->setListSize($_SESSION['LISTER'][$this->namespace]['PAGINATOR']['PERPAGE']);\n \n // print $this->list->getPagesCount(); \n if (!empty($_SESSION['LISTER'][$this->namespace]['PAGINATOR']['PAGENUM']) && $_SESSION['LISTER'][$this->namespace]['PAGINATOR']['PAGENUM'] <= $this->list->getPagesCount())\n {\n //print 777;\n $this->list->setCurrentPage($_SESSION['LISTER'][$this->namespace]['PAGINATOR']['PAGENUM']); \n } else {//print 88;\n $this->list->setCurrentPage(1);\n } \n \n }\n //print($this->list->getOrder());\n \n //FILTER\n if (!empty($_SESSION['LISTER'][$this->namespace]['FILTER']['FIELD']) && isset($_SESSION['LISTER'][$this->namespace]['FILTER']['VALUE']) ) {\n $this->list->addWhere($this->getFilterWhereByField($_SESSION['LISTER'][$this->namespace]['FILTER']['FIELD']), ($_SESSION['LISTER'][$this->namespace]['FILTER']['VALUE']));\n $this->currentFilterField = $_SESSION['LISTER'][$this->namespace]['FILTER']['FIELD'];\n $this->currentFilterValue = ($_SESSION['LISTER'][$this->namespace]['FILTER']['VALUE']);\n $this->filterEnabled = true; \n }\n \n \n $this->records = $this->list->getList();\n \t $this->templatesEngine->assign(\"LISTER\", $this);\n \t \n \t $this->templatesEngine->assign(\"MODULE_URL\", MODULE_URL);\n \n \n //print_r($_SESSION['LISTER'][$this->namespace]);\n //getCurrentPage(), $this->getListSize());\n \n \n \n \treturn $this->templatesEngine->fetch($this->template);\n \t\n \t\n \t\n \n }", "public function renderListRow($table, $row, $cc, $titleCol, $thumbsCol, $indent = 0)\n { \n if (!is_array($row)) {\n return '';\n } \n \n $this->fieldArray[] = '_CONTROL_';\n $this->fieldArray[] = '_CLIPBOARD_';\n $rowOutput = '';\n $id_orig = null;\n // If in search mode, make sure the preview will show the correct page\n if ((string)$this->searchString !== '') {\n $id_orig = $this->id;\n $this->id = $row['pid'];\n }\n \n $tagAttributes = [\n 'class' => ['t3js-entity'],\n 'data-table' => $table,\n 'title' => 'id=' . $row['uid'],\n ];\n \n // Add special classes for first and last row\n if ($cc == 1 && $indent == 0) {\n $tagAttributes['class'][] = 'firstcol';\n }\n if ($cc == $this->totalRowCount || $cc == $this->iLimit) {\n $tagAttributes['class'][] = 'lastcol';\n }\n // Overriding with versions background color if any:\n if (!empty($row['_CSSCLASS'])) {\n $tagAttributes['class'] = [$row['_CSSCLASS']];\n }\n // Incr. counter.\n $this->counter++;\n // The icon with link\n $toolTip = BackendUtility::getRecordToolTip($row, $table);\n\n \n\n $additionalStyle = $indent ? ' style=\"margin-left: ' . $indent . 'px;\"' : '';\n $iconImg = '<span ' . $toolTip . ' ' . $additionalStyle . '>'\n . $this->iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render()\n . '</span>'; \n $theIcon = $this->clickMenuEnabled ? BackendUtility::wrapClickMenuOnIcon($iconImg, $table, $row['uid']) : $iconImg;\n // Preparing and getting the data-array\n $theData = [];\n $localizationMarkerClass = '';\n foreach ($this->fieldArray as $fCol) {\n \n if ($fCol == $titleCol) {\n $recTitle = BackendUtility::getRecordTitle($table, $row, false, true);\n $warning = '';\n // If the record is edit-locked\tby another user, we will show a little warning sign:\n $lockInfo = BackendUtility::isRecordLocked($table, $row['uid']);\n if ($lockInfo) {\n $warning = '<span data-toggle=\"tooltip\" data-placement=\"right\" data-title=\"' . htmlspecialchars($lockInfo['msg']) . '\">'\n . $this->iconFactory->getIcon('status-warning-in-use', Icon::SIZE_SMALL)->render() . '</span>';\n }\n $theData[$fCol] = $theData['__label'] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);\n // Render thumbnails, if:\n // - a thumbnail column exists\n // - there is content in it\n // - the thumbnail column is visible for the current type\n $type = 0;\n if (isset($GLOBALS['TCA'][$table]['ctrl']['type'])) {\n $typeColumn = $GLOBALS['TCA'][$table]['ctrl']['type'];\n $type = $row[$typeColumn];\n }\n // If current type doesn't exist, set it to 0 (or to 1 for historical reasons,\n // if 0 doesn't exist)\n if (!isset($GLOBALS['TCA'][$table]['types'][$type])) {\n $type = isset($GLOBALS['TCA'][$table]['types'][0]) ? 0 : 1;\n }\n $visibleColumns = $GLOBALS['TCA'][$table]['types'][$type]['showitem'];\n \n if ($this->thumbs &&\n trim($row[$thumbsCol]) &&\n preg_match('/(^|(.*(;|,)?))' . $thumbsCol . '(((;|,).*)|$)/', $visibleColumns) === 1\n ) {\n $thumbCode = '<br />' . $this->thumbCode($row, $table, $thumbsCol);\n $theData[$fCol] .= $thumbCode;\n $theData['__label'] .= $thumbCode;\n }\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0\n && $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] != 0\n ) {\n // It's a translated record with a language parent\n $localizationMarkerClass = ' localization';\n }\n } elseif ($fCol === 'pid') {\n $theData[$fCol] = $row[$fCol];\n } elseif ($fCol === '_PATH_') {\n $theData[$fCol] = $this->recPath($row['pid']);\n } elseif ($fCol === '_REF_') {\n $theData[$fCol] = $this->createReferenceHtml($table, $row['uid']);\n } elseif ($fCol === '_CONTROL_') {\n $theData[$fCol] = $this->makeControl($table, $row);\n } elseif ($fCol === '_CLIPBOARD_') {\n $theData[$fCol] = $this->makeClip($table, $row);\n } elseif ($fCol === '_LOCALIZATION_') {\n list($lC1, $lC2) = $this->makeLocalizationPanel($table, $row);\n $theData[$fCol] = $lC1;\n $theData[$fCol . 'b'] = '<div class=\"btn-group\">' . $lC2 . '</div>';\n } elseif ($fCol === '_LOCALIZATION_b') {\n // deliberately empty\n } else {\n $pageId = $table === 'pages' ? $row['uid'] : $row['pid'];\n $tmpProc = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 100, $row['uid'], true, $pageId);\n $theData[$fCol] = $this->linkUrlMail(htmlspecialchars($tmpProc), $row[$fCol]);\n if ($this->csvOutput) {\n $row[$fCol] = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 0, $row['uid']);\n }\n }\n }\n // Reset the ID if it was overwritten\n if ((string)$this->searchString !== '') {\n $this->id = $id_orig;\n }\n // Add row to CSV list:\n if ($this->csvOutput) {\n $this->addToCSV($row);\n }\n // Add classes to table cells\n $this->addElement_tdCssClass[$titleCol] = 'col-title col-responsive' . $localizationMarkerClass;\n $this->addElement_tdCssClass['__label'] = $this->addElement_tdCssClass[$titleCol];\n $this->addElement_tdCssClass['_CONTROL_'] = 'col-control';\n if ($this->getModule()->MOD_SETTINGS['clipBoard']) {\n $this->addElement_tdCssClass['_CLIPBOARD_'] = 'col-clipboard';\n }\n $this->addElement_tdCssClass['_PATH_'] = 'col-path';\n $this->addElement_tdCssClass['_LOCALIZATION_'] = 'col-localizationa';\n $this->addElement_tdCssClass['_LOCALIZATION_b'] = 'col-localizationb';\n // Create element in table cells:\n $theData['uid'] = $row['uid'];\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && isset($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])\n && $table !== 'pages_language_overlay'\n ) {\n $theData['_l10nparent_'] = $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']];\n }\n \n $tagAttributes = array_map(\n function ($attributeValue) {\n if (is_array($attributeValue)) {\n return implode(' ', $attributeValue);\n }\n return $attributeValue;\n },\n $tagAttributes\n );\n \n $rowOutput .= $this->addElement(1, $theIcon, $theData, GeneralUtility::implodeAttributes($tagAttributes, true));\n // Finally, return table row element:\n return $rowOutput;\n }", "function ods_render_row($row, $data = array()) {\n $cells = $row->getElementsByTagName('table-cell');\n\n foreach ($cells as $cell) {\n $value_type = $cell\n ->getAttribute('office:value-type');\n\n //get text data\n $p1 = $cell\n ->getElementsByTagName('p'); \n\n foreach ($p1 as $p) {\n\n $orig_cell_text = $p->nodeValue;\n\n $data_val = false;\n\n if (!empty($orig_cell_text)) {\n if ($this->string_has_params($orig_cell_text)) {\n\n if ($this->parse_string_is_once_param($orig_cell_text)) {\n $param_key = $this->parse_string_extract_param($orig_cell_text);\n\n if ($this->parse_param_exists($param_key, $data)) {\n\n $data_val = $this->parse_param_value(\n $param_key, $data\n );\n $this->ods_cell_set_val($cell, $p, $data_val, array());\n }\n } else {\n $p->nodeValue = $this->parse_string($orig_cell_text, $data);\n }\n }\n }\n }\n \n $this->ods_render_cell_images($cell, $data); \n \n }\n return $row;\n }", "public function renderItems()\n {\n $caption = $this->renderCaption();\n $columnGroup = $this->renderColumnGroup();\n $tableHeader = $this->showHeader ? $this->renderTableHeader() : false;\n $tableBody = $this->renderTableBody();\n\n $tableFooter = false;\n $tableFooterAfterBody = false;\n\n if ($this->showFooter) {\n if ($this->placeFooterAfterBody) {\n $tableFooterAfterBody = $this->renderTableFooter();\n } else {\n $tableFooter = $this->renderTableFooter();\n }\n }\n\n $content = array_filter([\n $caption,\n $columnGroup,\n $tableHeader,\n $tableFooter,\n $tableBody,\n $tableFooterAfterBody,\n ]);\n\n return Html::tag('table', implode(\"\\n\", $content), $this->tableOptions);\n }", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function show_list()\n\t{\n\t\t$out = $this->get_value_list();\n\t\treturn $out;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// empleado_id\n\t\t// codigo\n\t\t// cui\n\t\t// nombre\n\t\t// apellido\n\t\t// direccion\n\t\t// departamento_origen_id\n\t\t// municipio_id\n\t\t// telefono_residencia\n\t\t// telefono_celular\n\t\t// fecha_nacimiento\n\t\t// nacionalidad\n\t\t// estado_civil\n\t\t// sexo\n\t\t// igss\n\t\t// nit\n\t\t// licencia_conducir\n\t\t// area_id\n\t\t// departmento_id\n\t\t// seccion_id\n\t\t// puesto_id\n\t\t// observaciones\n\t\t// tipo_sangre_id\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// codigo\n\t\t$this->codigo->ViewValue = $this->codigo->CurrentValue;\n\t\t$this->codigo->ViewCustomAttributes = \"\";\n\n\t\t// cui\n\t\t$this->cui->ViewValue = $this->cui->CurrentValue;\n\t\t$this->cui->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// apellido\n\t\t$this->apellido->ViewValue = $this->apellido->CurrentValue;\n\t\t$this->apellido->ViewCustomAttributes = \"\";\n\n\t\t// direccion\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\n\t\t$this->direccion->ViewCustomAttributes = \"\";\n\n\t\t// departamento_origen_id\n\t\tif (strval($this->departamento_origen_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_origen_id`\" . ew_SearchString(\"=\", $this->departamento_origen_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_origen_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento_origen`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departamento_origen_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departamento_origen_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departamento_origen_id->ViewCustomAttributes = \"\";\n\n\t\t// municipio_id\n\t\tif (strval($this->municipio_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`municipio_id`\" . ew_SearchString(\"=\", $this->municipio_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `municipio_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `municipio`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->municipio_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->municipio_id->ViewValue = NULL;\n\t\t}\n\t\t$this->municipio_id->ViewCustomAttributes = \"\";\n\n\t\t// telefono_residencia\n\t\t$this->telefono_residencia->ViewValue = $this->telefono_residencia->CurrentValue;\n\t\t$this->telefono_residencia->ViewCustomAttributes = \"\";\n\n\t\t// telefono_celular\n\t\t$this->telefono_celular->ViewValue = $this->telefono_celular->CurrentValue;\n\t\t$this->telefono_celular->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// nacionalidad\n\t\tif (strval($this->nacionalidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`nacionalidad_id`\" . ew_SearchString(\"=\", $this->nacionalidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `nacionalidad_id`, `nacionalidad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `nacionalidad`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nacionalidad, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nacionalidad->ViewValue = NULL;\n\t\t}\n\t\t$this->nacionalidad->ViewCustomAttributes = \"\";\n\n\t\t// estado_civil\n\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\tif (strval($this->estado_civil->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`estado_civil_id`\" . ew_SearchString(\"=\", $this->estado_civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `estado_civil_id`, `estado_civil` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->estado_civil, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->estado_civil->ViewValue = NULL;\n\t\t}\n\t\t$this->estado_civil->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`sexo_id`\" . ew_SearchString(\"=\", $this->sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `sexo_id`, `sexo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sexo, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// igss\n\t\t$this->igss->ViewValue = $this->igss->CurrentValue;\n\t\t$this->igss->ViewCustomAttributes = \"\";\n\n\t\t// nit\n\t\t$this->nit->ViewValue = $this->nit->CurrentValue;\n\t\t$this->nit->ViewCustomAttributes = \"\";\n\n\t\t// licencia_conducir\n\t\t$this->licencia_conducir->ViewValue = $this->licencia_conducir->CurrentValue;\n\t\t$this->licencia_conducir->ViewCustomAttributes = \"\";\n\n\t\t// area_id\n\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\tif (strval($this->area_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`area_id`\" . ew_SearchString(\"=\", $this->area_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `area_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `area`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->area_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->area_id->ViewValue = NULL;\n\t\t}\n\t\t$this->area_id->ViewCustomAttributes = \"\";\n\n\t\t// departmento_id\n\t\tif (strval($this->departmento_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_id`\" . ew_SearchString(\"=\", $this->departmento_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departmento_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departmento_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departmento_id->ViewCustomAttributes = \"\";\n\n\t\t// seccion_id\n\t\tif (strval($this->seccion_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`seccion_id`\" . ew_SearchString(\"=\", $this->seccion_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `seccion_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->seccion_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->seccion_id->ViewValue = NULL;\n\t\t}\n\t\t$this->seccion_id->ViewCustomAttributes = \"\";\n\n\t\t// puesto_id\n\t\tif (strval($this->puesto_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`puesto_id`\" . ew_SearchString(\"=\", $this->puesto_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `puesto_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `puesto`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->puesto_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->puesto_id->ViewValue = NULL;\n\t\t}\n\t\t$this->puesto_id->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// tipo_sangre_id\n\t\tif (strval($this->tipo_sangre_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`tipo_sangre_id`\" . ew_SearchString(\"=\", $this->tipo_sangre_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `tipo_sangre_id`, `tipo_sangre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_sangre`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipo_sangre_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipo_sangre_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo_sangre_id->ViewCustomAttributes = \"\";\n\n\t\t// estado\n\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// codigo\n\t\t\t$this->codigo->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo->HrefValue = \"\";\n\t\t\t$this->codigo->TooltipValue = \"\";\n\n\t\t\t// cui\n\t\t\t$this->cui->LinkCustomAttributes = \"\";\n\t\t\t$this->cui->HrefValue = \"\";\n\t\t\t$this->cui->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// apellido\n\t\t\t$this->apellido->LinkCustomAttributes = \"\";\n\t\t\t$this->apellido->HrefValue = \"\";\n\t\t\t$this->apellido->TooltipValue = \"\";\n\n\t\t\t// direccion\n\t\t\t$this->direccion->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion->HrefValue = \"\";\n\t\t\t$this->direccion->TooltipValue = \"\";\n\n\t\t\t// departamento_origen_id\n\t\t\t$this->departamento_origen_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departamento_origen_id->HrefValue = \"\";\n\t\t\t$this->departamento_origen_id->TooltipValue = \"\";\n\n\t\t\t// municipio_id\n\t\t\t$this->municipio_id->LinkCustomAttributes = \"\";\n\t\t\t$this->municipio_id->HrefValue = \"\";\n\t\t\t$this->municipio_id->TooltipValue = \"\";\n\n\t\t\t// telefono_residencia\n\t\t\t$this->telefono_residencia->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_residencia->HrefValue = \"\";\n\t\t\t$this->telefono_residencia->TooltipValue = \"\";\n\n\t\t\t// telefono_celular\n\t\t\t$this->telefono_celular->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_celular->HrefValue = \"\";\n\t\t\t$this->telefono_celular->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// nacionalidad\n\t\t\t$this->nacionalidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nacionalidad->HrefValue = \"\";\n\t\t\t$this->nacionalidad->TooltipValue = \"\";\n\n\t\t\t// estado_civil\n\t\t\t$this->estado_civil->LinkCustomAttributes = \"\";\n\t\t\t$this->estado_civil->HrefValue = \"\";\n\t\t\t$this->estado_civil->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// igss\n\t\t\t$this->igss->LinkCustomAttributes = \"\";\n\t\t\t$this->igss->HrefValue = \"\";\n\t\t\t$this->igss->TooltipValue = \"\";\n\n\t\t\t// nit\n\t\t\t$this->nit->LinkCustomAttributes = \"\";\n\t\t\t$this->nit->HrefValue = \"\";\n\t\t\t$this->nit->TooltipValue = \"\";\n\n\t\t\t// licencia_conducir\n\t\t\t$this->licencia_conducir->LinkCustomAttributes = \"\";\n\t\t\t$this->licencia_conducir->HrefValue = \"\";\n\t\t\t$this->licencia_conducir->TooltipValue = \"\";\n\n\t\t\t// area_id\n\t\t\t$this->area_id->LinkCustomAttributes = \"\";\n\t\t\t$this->area_id->HrefValue = \"\";\n\t\t\t$this->area_id->TooltipValue = \"\";\n\n\t\t\t// departmento_id\n\t\t\t$this->departmento_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departmento_id->HrefValue = \"\";\n\t\t\t$this->departmento_id->TooltipValue = \"\";\n\n\t\t\t// seccion_id\n\t\t\t$this->seccion_id->LinkCustomAttributes = \"\";\n\t\t\t$this->seccion_id->HrefValue = \"\";\n\t\t\t$this->seccion_id->TooltipValue = \"\";\n\n\t\t\t// puesto_id\n\t\t\t$this->puesto_id->LinkCustomAttributes = \"\";\n\t\t\t$this->puesto_id->HrefValue = \"\";\n\t\t\t$this->puesto_id->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// tipo_sangre_id\n\t\t\t$this->tipo_sangre_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_sangre_id->HrefValue = \"\";\n\t\t\t$this->tipo_sangre_id->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Title\n\t\t// LV\n\t\t// Type\n\t\t// ResetTime\n\t\t// ResetType\n\t\t// CompleteTask\n\t\t// Occupation\n\t\t// Target\n\t\t// Data\n\t\t// Reward_Gold\n\t\t// Reward_Diamonds\n\t\t// Reward_EXP\n\t\t// Reward_Goods\n\t\t// Info\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Title\n\t\t$this->Title->ViewValue = $this->Title->CurrentValue;\n\t\t$this->Title->ViewCustomAttributes = \"\";\n\n\t\t// LV\n\t\t$this->LV->ViewValue = $this->LV->CurrentValue;\n\t\t$this->LV->ViewCustomAttributes = \"\";\n\n\t\t// Type\n\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\n\t\t$this->Type->ViewCustomAttributes = \"\";\n\n\t\t// ResetTime\n\t\t$this->ResetTime->ViewValue = $this->ResetTime->CurrentValue;\n\t\t$this->ResetTime->ViewCustomAttributes = \"\";\n\n\t\t// ResetType\n\t\t$this->ResetType->ViewValue = $this->ResetType->CurrentValue;\n\t\t$this->ResetType->ViewCustomAttributes = \"\";\n\n\t\t// CompleteTask\n\t\t$this->CompleteTask->ViewValue = $this->CompleteTask->CurrentValue;\n\t\t$this->CompleteTask->ViewCustomAttributes = \"\";\n\n\t\t// Occupation\n\t\t$this->Occupation->ViewValue = $this->Occupation->CurrentValue;\n\t\t$this->Occupation->ViewCustomAttributes = \"\";\n\n\t\t// Target\n\t\t$this->Target->ViewValue = $this->Target->CurrentValue;\n\t\t$this->Target->ViewCustomAttributes = \"\";\n\n\t\t// Data\n\t\t$this->Data->ViewValue = $this->Data->CurrentValue;\n\t\t$this->Data->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Gold\n\t\t$this->Reward_Gold->ViewValue = $this->Reward_Gold->CurrentValue;\n\t\t$this->Reward_Gold->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Diamonds\n\t\t$this->Reward_Diamonds->ViewValue = $this->Reward_Diamonds->CurrentValue;\n\t\t$this->Reward_Diamonds->ViewCustomAttributes = \"\";\n\n\t\t// Reward_EXP\n\t\t$this->Reward_EXP->ViewValue = $this->Reward_EXP->CurrentValue;\n\t\t$this->Reward_EXP->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Goods\n\t\t$this->Reward_Goods->ViewValue = $this->Reward_Goods->CurrentValue;\n\t\t$this->Reward_Goods->ViewCustomAttributes = \"\";\n\n\t\t// Info\n\t\t$this->Info->ViewValue = $this->Info->CurrentValue;\n\t\t$this->Info->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Title\n\t\t\t$this->Title->LinkCustomAttributes = \"\";\n\t\t\t$this->Title->HrefValue = \"\";\n\t\t\t$this->Title->TooltipValue = \"\";\n\n\t\t\t// LV\n\t\t\t$this->LV->LinkCustomAttributes = \"\";\n\t\t\t$this->LV->HrefValue = \"\";\n\t\t\t$this->LV->TooltipValue = \"\";\n\n\t\t\t// Type\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\n\t\t\t$this->Type->HrefValue = \"\";\n\t\t\t$this->Type->TooltipValue = \"\";\n\n\t\t\t// ResetTime\n\t\t\t$this->ResetTime->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetTime->HrefValue = \"\";\n\t\t\t$this->ResetTime->TooltipValue = \"\";\n\n\t\t\t// ResetType\n\t\t\t$this->ResetType->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetType->HrefValue = \"\";\n\t\t\t$this->ResetType->TooltipValue = \"\";\n\n\t\t\t// CompleteTask\n\t\t\t$this->CompleteTask->LinkCustomAttributes = \"\";\n\t\t\t$this->CompleteTask->HrefValue = \"\";\n\t\t\t$this->CompleteTask->TooltipValue = \"\";\n\n\t\t\t// Occupation\n\t\t\t$this->Occupation->LinkCustomAttributes = \"\";\n\t\t\t$this->Occupation->HrefValue = \"\";\n\t\t\t$this->Occupation->TooltipValue = \"\";\n\n\t\t\t// Target\n\t\t\t$this->Target->LinkCustomAttributes = \"\";\n\t\t\t$this->Target->HrefValue = \"\";\n\t\t\t$this->Target->TooltipValue = \"\";\n\n\t\t\t// Data\n\t\t\t$this->Data->LinkCustomAttributes = \"\";\n\t\t\t$this->Data->HrefValue = \"\";\n\t\t\t$this->Data->TooltipValue = \"\";\n\n\t\t\t// Reward_Gold\n\t\t\t$this->Reward_Gold->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Gold->HrefValue = \"\";\n\t\t\t$this->Reward_Gold->TooltipValue = \"\";\n\n\t\t\t// Reward_Diamonds\n\t\t\t$this->Reward_Diamonds->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Diamonds->HrefValue = \"\";\n\t\t\t$this->Reward_Diamonds->TooltipValue = \"\";\n\n\t\t\t// Reward_EXP\n\t\t\t$this->Reward_EXP->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_EXP->HrefValue = \"\";\n\t\t\t$this->Reward_EXP->TooltipValue = \"\";\n\n\t\t\t// Reward_Goods\n\t\t\t$this->Reward_Goods->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Goods->HrefValue = \"\";\n\t\t\t$this->Reward_Goods->TooltipValue = \"\";\n\n\t\t\t// Info\n\t\t\t$this->Info->LinkCustomAttributes = \"\";\n\t\t\t$this->Info->HrefValue = \"\";\n\t\t\t$this->Info->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->late->FormValue == $this->late->CurrentValue && is_numeric(ew_StrToFloat($this->late->CurrentValue)))\n\t\t\t$this->late->CurrentValue = ew_StrToFloat($this->late->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break->FormValue == $this->break->CurrentValue && is_numeric(ew_StrToFloat($this->break->CurrentValue)))\n\t\t\t$this->break->CurrentValue = ew_StrToFloat($this->break->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break_ot->FormValue == $this->break_ot->CurrentValue && is_numeric(ew_StrToFloat($this->break_ot->CurrentValue)))\n\t\t\t$this->break_ot->CurrentValue = ew_StrToFloat($this->break_ot->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->early->FormValue == $this->early->CurrentValue && is_numeric(ew_StrToFloat($this->early->CurrentValue)))\n\t\t\t$this->early->CurrentValue = ew_StrToFloat($this->early->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->durasi->FormValue == $this->durasi->CurrentValue && is_numeric(ew_StrToFloat($this->durasi->CurrentValue)))\n\t\t\t$this->durasi->CurrentValue = ew_StrToFloat($this->durasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jk_count_as->FormValue == $this->jk_count_as->CurrentValue && is_numeric(ew_StrToFloat($this->jk_count_as->CurrentValue)))\n\t\t\t$this->jk_count_as->CurrentValue = ew_StrToFloat($this->jk_count_as->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pegawai_id\n\t\t// tgl_shift\n\t\t// khusus_lembur\n\t\t// khusus_extra\n\t\t// temp_id_auto\n\t\t// jdw_kerja_m_id\n\t\t// jk_id\n\t\t// jns_dok\n\t\t// izin_jenis_id\n\t\t// cuti_n_id\n\t\t// libur_umum\n\t\t// libur_rutin\n\t\t// jk_ot\n\t\t// scan_in\n\t\t// att_id_in\n\t\t// late_permission\n\t\t// late_minute\n\t\t// late\n\t\t// break_out\n\t\t// att_id_break1\n\t\t// break_in\n\t\t// att_id_break2\n\t\t// break_minute\n\t\t// break\n\t\t// break_ot_minute\n\t\t// break_ot\n\t\t// early_permission\n\t\t// early_minute\n\t\t// early\n\t\t// scan_out\n\t\t// att_id_out\n\t\t// durasi_minute\n\t\t// durasi\n\t\t// durasi_eot_minute\n\t\t// jk_count_as\n\t\t// status_jk\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pegawai_id\n\t\t$this->pegawai_id->ViewValue = $this->pegawai_id->CurrentValue;\n\t\t$this->pegawai_id->ViewCustomAttributes = \"\";\n\n\t\t// tgl_shift\n\t\t$this->tgl_shift->ViewValue = $this->tgl_shift->CurrentValue;\n\t\t$this->tgl_shift->ViewValue = ew_FormatDateTime($this->tgl_shift->ViewValue, 0);\n\t\t$this->tgl_shift->ViewCustomAttributes = \"\";\n\n\t\t// khusus_lembur\n\t\t$this->khusus_lembur->ViewValue = $this->khusus_lembur->CurrentValue;\n\t\t$this->khusus_lembur->ViewCustomAttributes = \"\";\n\n\t\t// khusus_extra\n\t\t$this->khusus_extra->ViewValue = $this->khusus_extra->CurrentValue;\n\t\t$this->khusus_extra->ViewCustomAttributes = \"\";\n\n\t\t// temp_id_auto\n\t\t$this->temp_id_auto->ViewValue = $this->temp_id_auto->CurrentValue;\n\t\t$this->temp_id_auto->ViewCustomAttributes = \"\";\n\n\t\t// jdw_kerja_m_id\n\t\t$this->jdw_kerja_m_id->ViewValue = $this->jdw_kerja_m_id->CurrentValue;\n\t\t$this->jdw_kerja_m_id->ViewCustomAttributes = \"\";\n\n\t\t// jk_id\n\t\t$this->jk_id->ViewValue = $this->jk_id->CurrentValue;\n\t\t$this->jk_id->ViewCustomAttributes = \"\";\n\n\t\t// jns_dok\n\t\t$this->jns_dok->ViewValue = $this->jns_dok->CurrentValue;\n\t\t$this->jns_dok->ViewCustomAttributes = \"\";\n\n\t\t// izin_jenis_id\n\t\t$this->izin_jenis_id->ViewValue = $this->izin_jenis_id->CurrentValue;\n\t\t$this->izin_jenis_id->ViewCustomAttributes = \"\";\n\n\t\t// cuti_n_id\n\t\t$this->cuti_n_id->ViewValue = $this->cuti_n_id->CurrentValue;\n\t\t$this->cuti_n_id->ViewCustomAttributes = \"\";\n\n\t\t// libur_umum\n\t\t$this->libur_umum->ViewValue = $this->libur_umum->CurrentValue;\n\t\t$this->libur_umum->ViewCustomAttributes = \"\";\n\n\t\t// libur_rutin\n\t\t$this->libur_rutin->ViewValue = $this->libur_rutin->CurrentValue;\n\t\t$this->libur_rutin->ViewCustomAttributes = \"\";\n\n\t\t// jk_ot\n\t\t$this->jk_ot->ViewValue = $this->jk_ot->CurrentValue;\n\t\t$this->jk_ot->ViewCustomAttributes = \"\";\n\n\t\t// scan_in\n\t\t$this->scan_in->ViewValue = $this->scan_in->CurrentValue;\n\t\t$this->scan_in->ViewValue = ew_FormatDateTime($this->scan_in->ViewValue, 0);\n\t\t$this->scan_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_in\n\t\t$this->att_id_in->ViewValue = $this->att_id_in->CurrentValue;\n\t\t$this->att_id_in->ViewCustomAttributes = \"\";\n\n\t\t// late_permission\n\t\t$this->late_permission->ViewValue = $this->late_permission->CurrentValue;\n\t\t$this->late_permission->ViewCustomAttributes = \"\";\n\n\t\t// late_minute\n\t\t$this->late_minute->ViewValue = $this->late_minute->CurrentValue;\n\t\t$this->late_minute->ViewCustomAttributes = \"\";\n\n\t\t// late\n\t\t$this->late->ViewValue = $this->late->CurrentValue;\n\t\t$this->late->ViewCustomAttributes = \"\";\n\n\t\t// break_out\n\t\t$this->break_out->ViewValue = $this->break_out->CurrentValue;\n\t\t$this->break_out->ViewValue = ew_FormatDateTime($this->break_out->ViewValue, 0);\n\t\t$this->break_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break1\n\t\t$this->att_id_break1->ViewValue = $this->att_id_break1->CurrentValue;\n\t\t$this->att_id_break1->ViewCustomAttributes = \"\";\n\n\t\t// break_in\n\t\t$this->break_in->ViewValue = $this->break_in->CurrentValue;\n\t\t$this->break_in->ViewValue = ew_FormatDateTime($this->break_in->ViewValue, 0);\n\t\t$this->break_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break2\n\t\t$this->att_id_break2->ViewValue = $this->att_id_break2->CurrentValue;\n\t\t$this->att_id_break2->ViewCustomAttributes = \"\";\n\n\t\t// break_minute\n\t\t$this->break_minute->ViewValue = $this->break_minute->CurrentValue;\n\t\t$this->break_minute->ViewCustomAttributes = \"\";\n\n\t\t// break\n\t\t$this->break->ViewValue = $this->break->CurrentValue;\n\t\t$this->break->ViewCustomAttributes = \"\";\n\n\t\t// break_ot_minute\n\t\t$this->break_ot_minute->ViewValue = $this->break_ot_minute->CurrentValue;\n\t\t$this->break_ot_minute->ViewCustomAttributes = \"\";\n\n\t\t// break_ot\n\t\t$this->break_ot->ViewValue = $this->break_ot->CurrentValue;\n\t\t$this->break_ot->ViewCustomAttributes = \"\";\n\n\t\t// early_permission\n\t\t$this->early_permission->ViewValue = $this->early_permission->CurrentValue;\n\t\t$this->early_permission->ViewCustomAttributes = \"\";\n\n\t\t// early_minute\n\t\t$this->early_minute->ViewValue = $this->early_minute->CurrentValue;\n\t\t$this->early_minute->ViewCustomAttributes = \"\";\n\n\t\t// early\n\t\t$this->early->ViewValue = $this->early->CurrentValue;\n\t\t$this->early->ViewCustomAttributes = \"\";\n\n\t\t// scan_out\n\t\t$this->scan_out->ViewValue = $this->scan_out->CurrentValue;\n\t\t$this->scan_out->ViewValue = ew_FormatDateTime($this->scan_out->ViewValue, 0);\n\t\t$this->scan_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_out\n\t\t$this->att_id_out->ViewValue = $this->att_id_out->CurrentValue;\n\t\t$this->att_id_out->ViewCustomAttributes = \"\";\n\n\t\t// durasi_minute\n\t\t$this->durasi_minute->ViewValue = $this->durasi_minute->CurrentValue;\n\t\t$this->durasi_minute->ViewCustomAttributes = \"\";\n\n\t\t// durasi\n\t\t$this->durasi->ViewValue = $this->durasi->CurrentValue;\n\t\t$this->durasi->ViewCustomAttributes = \"\";\n\n\t\t// durasi_eot_minute\n\t\t$this->durasi_eot_minute->ViewValue = $this->durasi_eot_minute->CurrentValue;\n\t\t$this->durasi_eot_minute->ViewCustomAttributes = \"\";\n\n\t\t// jk_count_as\n\t\t$this->jk_count_as->ViewValue = $this->jk_count_as->CurrentValue;\n\t\t$this->jk_count_as->ViewCustomAttributes = \"\";\n\n\t\t// status_jk\n\t\t$this->status_jk->ViewValue = $this->status_jk->CurrentValue;\n\t\t$this->status_jk->ViewCustomAttributes = \"\";\n\n\t\t\t// pegawai_id\n\t\t\t$this->pegawai_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pegawai_id->HrefValue = \"\";\n\t\t\t$this->pegawai_id->TooltipValue = \"\";\n\n\t\t\t// tgl_shift\n\t\t\t$this->tgl_shift->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_shift->HrefValue = \"\";\n\t\t\t$this->tgl_shift->TooltipValue = \"\";\n\n\t\t\t// khusus_lembur\n\t\t\t$this->khusus_lembur->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_lembur->HrefValue = \"\";\n\t\t\t$this->khusus_lembur->TooltipValue = \"\";\n\n\t\t\t// khusus_extra\n\t\t\t$this->khusus_extra->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_extra->HrefValue = \"\";\n\t\t\t$this->khusus_extra->TooltipValue = \"\";\n\n\t\t\t// temp_id_auto\n\t\t\t$this->temp_id_auto->LinkCustomAttributes = \"\";\n\t\t\t$this->temp_id_auto->HrefValue = \"\";\n\t\t\t$this->temp_id_auto->TooltipValue = \"\";\n\n\t\t\t// jdw_kerja_m_id\n\t\t\t$this->jdw_kerja_m_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jdw_kerja_m_id->HrefValue = \"\";\n\t\t\t$this->jdw_kerja_m_id->TooltipValue = \"\";\n\n\t\t\t// jk_id\n\t\t\t$this->jk_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_id->HrefValue = \"\";\n\t\t\t$this->jk_id->TooltipValue = \"\";\n\n\t\t\t// jns_dok\n\t\t\t$this->jns_dok->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_dok->HrefValue = \"\";\n\t\t\t$this->jns_dok->TooltipValue = \"\";\n\n\t\t\t// izin_jenis_id\n\t\t\t$this->izin_jenis_id->LinkCustomAttributes = \"\";\n\t\t\t$this->izin_jenis_id->HrefValue = \"\";\n\t\t\t$this->izin_jenis_id->TooltipValue = \"\";\n\n\t\t\t// cuti_n_id\n\t\t\t$this->cuti_n_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cuti_n_id->HrefValue = \"\";\n\t\t\t$this->cuti_n_id->TooltipValue = \"\";\n\n\t\t\t// libur_umum\n\t\t\t$this->libur_umum->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_umum->HrefValue = \"\";\n\t\t\t$this->libur_umum->TooltipValue = \"\";\n\n\t\t\t// libur_rutin\n\t\t\t$this->libur_rutin->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_rutin->HrefValue = \"\";\n\t\t\t$this->libur_rutin->TooltipValue = \"\";\n\n\t\t\t// jk_ot\n\t\t\t$this->jk_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_ot->HrefValue = \"\";\n\t\t\t$this->jk_ot->TooltipValue = \"\";\n\n\t\t\t// scan_in\n\t\t\t$this->scan_in->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_in->HrefValue = \"\";\n\t\t\t$this->scan_in->TooltipValue = \"\";\n\n\t\t\t// att_id_in\n\t\t\t$this->att_id_in->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_in->HrefValue = \"\";\n\t\t\t$this->att_id_in->TooltipValue = \"\";\n\n\t\t\t// late_permission\n\t\t\t$this->late_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->late_permission->HrefValue = \"\";\n\t\t\t$this->late_permission->TooltipValue = \"\";\n\n\t\t\t// late_minute\n\t\t\t$this->late_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->late_minute->HrefValue = \"\";\n\t\t\t$this->late_minute->TooltipValue = \"\";\n\n\t\t\t// late\n\t\t\t$this->late->LinkCustomAttributes = \"\";\n\t\t\t$this->late->HrefValue = \"\";\n\t\t\t$this->late->TooltipValue = \"\";\n\n\t\t\t// break_out\n\t\t\t$this->break_out->LinkCustomAttributes = \"\";\n\t\t\t$this->break_out->HrefValue = \"\";\n\t\t\t$this->break_out->TooltipValue = \"\";\n\n\t\t\t// att_id_break1\n\t\t\t$this->att_id_break1->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break1->HrefValue = \"\";\n\t\t\t$this->att_id_break1->TooltipValue = \"\";\n\n\t\t\t// break_in\n\t\t\t$this->break_in->LinkCustomAttributes = \"\";\n\t\t\t$this->break_in->HrefValue = \"\";\n\t\t\t$this->break_in->TooltipValue = \"\";\n\n\t\t\t// att_id_break2\n\t\t\t$this->att_id_break2->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break2->HrefValue = \"\";\n\t\t\t$this->att_id_break2->TooltipValue = \"\";\n\n\t\t\t// break_minute\n\t\t\t$this->break_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_minute->HrefValue = \"\";\n\t\t\t$this->break_minute->TooltipValue = \"\";\n\n\t\t\t// break\n\t\t\t$this->break->LinkCustomAttributes = \"\";\n\t\t\t$this->break->HrefValue = \"\";\n\t\t\t$this->break->TooltipValue = \"\";\n\n\t\t\t// break_ot_minute\n\t\t\t$this->break_ot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot_minute->HrefValue = \"\";\n\t\t\t$this->break_ot_minute->TooltipValue = \"\";\n\n\t\t\t// break_ot\n\t\t\t$this->break_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot->HrefValue = \"\";\n\t\t\t$this->break_ot->TooltipValue = \"\";\n\n\t\t\t// early_permission\n\t\t\t$this->early_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->early_permission->HrefValue = \"\";\n\t\t\t$this->early_permission->TooltipValue = \"\";\n\n\t\t\t// early_minute\n\t\t\t$this->early_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->early_minute->HrefValue = \"\";\n\t\t\t$this->early_minute->TooltipValue = \"\";\n\n\t\t\t// early\n\t\t\t$this->early->LinkCustomAttributes = \"\";\n\t\t\t$this->early->HrefValue = \"\";\n\t\t\t$this->early->TooltipValue = \"\";\n\n\t\t\t// scan_out\n\t\t\t$this->scan_out->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_out->HrefValue = \"\";\n\t\t\t$this->scan_out->TooltipValue = \"\";\n\n\t\t\t// att_id_out\n\t\t\t$this->att_id_out->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_out->HrefValue = \"\";\n\t\t\t$this->att_id_out->TooltipValue = \"\";\n\n\t\t\t// durasi_minute\n\t\t\t$this->durasi_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_minute->HrefValue = \"\";\n\t\t\t$this->durasi_minute->TooltipValue = \"\";\n\n\t\t\t// durasi\n\t\t\t$this->durasi->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi->HrefValue = \"\";\n\t\t\t$this->durasi->TooltipValue = \"\";\n\n\t\t\t// durasi_eot_minute\n\t\t\t$this->durasi_eot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_eot_minute->HrefValue = \"\";\n\t\t\t$this->durasi_eot_minute->TooltipValue = \"\";\n\n\t\t\t// jk_count_as\n\t\t\t$this->jk_count_as->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_count_as->HrefValue = \"\";\n\t\t\t$this->jk_count_as->TooltipValue = \"\";\n\n\t\t\t// status_jk\n\t\t\t$this->status_jk->LinkCustomAttributes = \"\";\n\t\t\t$this->status_jk->HrefValue = \"\";\n\t\t\t$this->status_jk->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function render($values) {\n if (isset($values->{$this->field_alias})) {\n $rendered_identifiers = array();\n $identifiers = $values->{$this->field_alias};\n foreach ($identifiers as $identifier) {\n switch ($this->field) {\n case 'identifier-1':\n if (in_array($identifier['linktype'], array('fulltext', 'restricted', 'unknown', 'notonline'))) {\n $rendered_identifiers[] = $this->build_identifier($identifier);\n }\n break;\n\n case 'identifier-2':\n if (in_array('subscription', $identifier)) {\n $rendered_identifiers[] = $this->build_identifier($identifier);\n }\n break;\n\n case 'identifier-3':\n if (in_array('thumbnail', $identifier)) {\n $rendered_identifiers[] = $this->build_identifier($identifier);\n }\n break;\n\n default:\n break;\n }\n }\n return theme('item_list', array(\n 'items' => $rendered_identifiers,\n 'type' => $this->options['multi_type'],\n 'title' => NULL,\n 'attributes' => array('class' => $this->options['list_class'])\n )\n );\n }\n }", "public function buildListLayout(): void\n {\n $this->addColumn('name', 3)\n ->addColumn('pseudo', 3)\n ->addColumn('role_id', 3)\n ->addColumn('created_at', 3);\n }", "public function editable_list_tbody($data){\r\n\t\t$list_tbody = \"<tbody>\";\r\n\t\t$i = 0;\r\n\t\tforeach ($data as $row) {\r\n\t\t\t++$i;\r\n\t\t\t$list_tbody .= \"<tr class='\".$this->model->table_name.\"_row_\".$i.\"' \r\n\t\t\t\".($this->model->crud_config['can_update'] ? \r\n\t\t\t\t/*\" onmouseover='editable_switch_on(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \".\r\n\t\t\t\t\" onmouseout='editable_switch_off(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \".*/\r\n\t\t\t\t\" onclick='editable_switch_on(\\\"\".SERVER_DIR.\"\\\",\\\"\".$this->model->table_name.\"\\\",\".$i.\")' \" : \"\").\r\n\t\t\t\t\">\" .\r\n\t\t\t\t\"<td><div class='tr_index' ><span>\" . $i . \"</span></div></td>\";\r\n\t\t\t\t\r\n\t\t\tforeach ($this->model->table_fields as $list_field) {\r\n\t\t\t\tif ($list_field->get_visible_grid()) {\r\n\t\t\t\t\t$list_tbody .= \"<td>\";\r\n\t\t\t\t\t//if($list_field->get_type()==Column::$COLUMN_TYPE_SELECT)\r\n\t\t\t\t\tif ($list_field->get_foreing_key()) {\r\n\t\t\t\t\t\t$select_data = $list_field->get_fk_entity()->get_select_data($row[$list_field->get_name()]);\r\n\t\t\t\t\t\t$value = $select_data[0]['name'] ;\r\n\t\t\t\t\t\t$text = $select_data[0]['name'] ;\r\n\t\t\t\t\t} else if ($list_field->get_type() == Column::$COLUMN_TYPE_PASS) {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = (str_repeat('*', strlen($row[$list_field->get_name()]))) ;\r\n\t\t\t\t\t} else if (Column::$COLUMN_TYPE_ICONPICKER) {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = $row[$list_field->get_name()] . \" <i class='\" . $row[$list_field->get_name()] . \"'></i>\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$value = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t\t$text = $row[$list_field->get_name()] ;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t$list_field->set_label('');\r\n\t\t\t\t\t$list_field->set_field_html(' \r\n\t\t\t\t\t\tonblur=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\tonkeyup=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\tonchange=\"update_label(\\''.$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.'\\',$(this).val(),$(this))\" \r\n\t\t\t\t\t\told_value=\"'.$value.'\" new_value=\"'.$value.'\" ');\r\n\t\t\t\t\t\r\n\t\t\t\t\t$list_tbody .= \r\n\t\t\t\t\t\t\"<div \r\n\t\t\t\t\t\t\tclass='\".$this->model->table_name.\"_label_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_label_row_\".$i.\"\r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_\".$list_field->get_name().\"_label_row_\".$i.\"' \r\n\t\t\t\t\t\t\tfield_name='\".$list_field->get_name().\"'>\". \r\n\t\t\t\t\t\t\t$text .\"</div>\" . \r\n\t\t\t\t\t\t\"<div \r\n\t\t\t\t\t\t\tclass='\".$this->model->table_name.\"_field_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_field_row_\".$i.\"' \r\n\t\t\t\t\t\t\tfield_name='\".$list_field->get_name().\"\r\n\t\t\t\t\t\t\trow_index='\".$i.\"' \r\n\t\t\t\t\t\t\tstyle='display:none;'>\".\r\n\t\t\t\t\t\t\t$this->build_element($list_field, array($list_field->get_name() => $value)).\"</div>\";\r\n\t\t\t\t\t$list_tbody .= \"</td>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$list_tbody .= \"<td class='text-center'>\" . \r\n\t\t\t\t('<input \r\n\t\t\t\ttype=\"hidden\" \r\n\t\t\t\tname=\"'.$this->model->id_field.'\" \r\n\t\t\t\tid=\"'.$this->model->id_field.'\"\r\n\t\t\t\tvalue=\"'.$row[$this->model->id_field].'\"\t\t\t\t\r\n\t\t\t\t/>').\r\n\t\t\t\t\t($this->model->crud_config['can_update'] ?\r\n\t\t\t\t\t\t\"<div class='\".$this->model->table_name.\"_field_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_field_row_\".$i.\"' style='display:none;'>\".\r\n\t\t\t\t\t\t\t('<a id=\"link_cancel\" \r\n\t\t\t\t\t\t\t\thref=\"javascript:editable_switch_off(\\''.SERVER_DIR.'\\',\\''.$this->model->table_name.'\\','.$i.')\" \r\n\t\t\t\t\t\t\t\tclass=\"m-1 btn btn-secondary \">\r\n\t\t\t\t\t\t\t\t<i class=\"fas fa-times-circle \"></i></a>').\r\n\t\t\t\t\t\t\t//Component::save_button($this->model->table_name, $row[$this->model->id_field]) .\r\n\t\t\t\t\t\t\t\"</div>\" : '') .\r\n\t\t\t\t\t($this->model->crud_config['can_delete'] ?\r\n\t\t\t\t\t\t\"<div class='\".$this->model->table_name.\"_label_row \r\n\t\t\t\t\t\t\t\".$this->model->table_name.\"_label_row_\".$i.\"' >\". \r\n\t\t\t\t\t\t\tComponent::delete_button($this->model->table_name, $row[$this->model->id_field]) \r\n\t\t\t\t\t\t\t.\"</div>\" : '') .\r\n\t\t\t\t\"</td>\" ;\r\n\t\t\t\t\r\n\t\t\t$list_tbody .= \"</tr>\";\r\n\t\t}\r\n\t\treturn $list_tbody . \"</tbody> \r\n\t\t\t<input type='hidden' \r\n\t\t\tname='\".$this->model->table_name.\"_rows' \r\n\t\t\tid='\".$this->model->table_name.\"_rows'\r\n\t\t\tvalue='\".$i.\"'\r\n\t\t\t/>\";\r\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->AddUrl = $this->GetAddUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\t\t$this->ListUrl = $this->GetListUrl();\r\n\t\t$this->SetupOtherOptions();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Dni_Tutor\r\n\t\t// Apellidos_Nombres\r\n\t\t// Edad\r\n\t\t// Domicilio\r\n\t\t// Tel_Contacto\r\n\t\t// Fecha_Nac\r\n\t\t// Cuil\r\n\t\t// MasHijos\r\n\t\t// Id_Estado_Civil\r\n\t\t// Id_Sexo\r\n\t\t// Id_Relacion\r\n\t\t// Id_Ocupacion\r\n\t\t// Lugar_Nacimiento\r\n\t\t// Id_Provincia\r\n\t\t// Id_Departamento\r\n\t\t// Id_Localidad\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Dni_Tutor\r\n\t\t$this->Dni_Tutor->ViewValue = $this->Dni_Tutor->CurrentValue;\r\n\t\t$this->Dni_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Apellidos_Nombres\r\n\t\t$this->Apellidos_Nombres->ViewValue = $this->Apellidos_Nombres->CurrentValue;\r\n\t\t$this->Apellidos_Nombres->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Edad\r\n\t\t$this->Edad->ViewValue = $this->Edad->CurrentValue;\r\n\t\t$this->Edad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Contacto\r\n\t\t$this->Tel_Contacto->ViewValue = $this->Tel_Contacto->CurrentValue;\r\n\t\t$this->Tel_Contacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Nac\r\n\t\t$this->Fecha_Nac->ViewValue = $this->Fecha_Nac->CurrentValue;\r\n\t\t$this->Fecha_Nac->ViewValue = ew_FormatDateTime($this->Fecha_Nac->ViewValue, 7);\r\n\t\t$this->Fecha_Nac->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil\r\n\t\t$this->Cuil->ViewValue = $this->Cuil->CurrentValue;\r\n\t\t$this->Cuil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// MasHijos\r\n\t\tif (strval($this->MasHijos->CurrentValue) <> \"\") {\r\n\t\t\t$this->MasHijos->ViewValue = $this->MasHijos->OptionCaption($this->MasHijos->CurrentValue);\r\n\t\t} else {\r\n\t\t\t$this->MasHijos->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->MasHijos->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Civil\r\n\t\tif (strval($this->Id_Estado_Civil->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Civil`\" . ew_SearchString(\"=\", $this->Id_Estado_Civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Civil`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Civil->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Civil, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Civil->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Civil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Sexo\r\n\t\tif (strval($this->Id_Sexo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Sexo`\" . ew_SearchString(\"=\", $this->Id_Sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Sexo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo_personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Sexo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Sexo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Sexo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Sexo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Relacion\r\n\t\tif (strval($this->Id_Relacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Relacion`\" . ew_SearchString(\"=\", $this->Id_Relacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Relacion`, `Desripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_relacion_alumno_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Relacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Relacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Desripcion` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Relacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Relacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Ocupacion\r\n\t\tif (strval($this->Id_Ocupacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Ocupacion`\" . ew_SearchString(\"=\", $this->Id_Ocupacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Ocupacion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ocupacion_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Ocupacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Ocupacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Ocupacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Ocupacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Lugar_Nacimiento\r\n\t\t$this->Lugar_Nacimiento->ViewValue = $this->Lugar_Nacimiento->CurrentValue;\r\n\t\t$this->Lugar_Nacimiento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Provincia\r\n\t\tif (strval($this->Id_Provincia->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Provincia`\" . ew_SearchString(\"=\", $this->Id_Provincia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Provincia`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincias`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Provincia->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Provincia, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Provincia->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Provincia->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Departamento\r\n\t\tif (strval($this->Id_Departamento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Departamento`\" . ew_SearchString(\"=\", $this->Id_Departamento->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Departamento`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Departamento->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Departamento, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Departamento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Departamento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Localidad\r\n\t\tif (strval($this->Id_Localidad->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Localidad`\" . ew_SearchString(\"=\", $this->Id_Localidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Localidad`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Localidad->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Localidad, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Localidad->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Localidad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Dni_Tutor\r\n\t\t\t$this->Dni_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Dni_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Apellidos_Nombres\r\n\t\t\t$this->Apellidos_Nombres->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Apellidos_Nombres->HrefValue = \"\";\r\n\t\t\t$this->Apellidos_Nombres->TooltipValue = \"\";\r\n\r\n\t\t\t// Edad\r\n\t\t\t$this->Edad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Edad->HrefValue = \"\";\r\n\t\t\t$this->Edad->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Contacto\r\n\t\t\t$this->Tel_Contacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Contacto->HrefValue = \"\";\r\n\t\t\t$this->Tel_Contacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Nac\r\n\t\t\t$this->Fecha_Nac->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Nac->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Nac->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil\r\n\t\t\t$this->Cuil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil->HrefValue = \"\";\r\n\t\t\t$this->Cuil->TooltipValue = \"\";\r\n\r\n\t\t\t// MasHijos\r\n\t\t\t$this->MasHijos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MasHijos->HrefValue = \"\";\r\n\t\t\t$this->MasHijos->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Civil\r\n\t\t\t$this->Id_Estado_Civil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Civil->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Civil->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Sexo\r\n\t\t\t$this->Id_Sexo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Sexo->HrefValue = \"\";\r\n\t\t\t$this->Id_Sexo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Relacion\r\n\t\t\t$this->Id_Relacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Relacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Relacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Ocupacion\r\n\t\t\t$this->Id_Ocupacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Ocupacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Ocupacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Lugar_Nacimiento\r\n\t\t\t$this->Lugar_Nacimiento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->HrefValue = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Provincia\r\n\t\t\t$this->Id_Provincia->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Provincia->HrefValue = \"\";\r\n\t\t\t$this->Id_Provincia->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Departamento\r\n\t\t\t$this->Id_Departamento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Departamento->HrefValue = \"\";\r\n\t\t\t$this->Id_Departamento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Localidad\r\n\t\t\t$this->Id_Localidad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Localidad->HrefValue = \"\";\r\n\t\t\t$this->Id_Localidad->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function makelist($res) {\n\t\t$items=Array();\n\t\t$listItems=Array();\n\n\t\t// Make table header\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader ( 'type' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'brand' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'model' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'mileage' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'price' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'initial_registration' ), $this->conf['listView.']['headDataWrap1.'] );\n\n\t\t$items[] = $this->cObj->stdWrap ( implode( chr ( 10 ),$listItems ), $this->conf['listView.']['headWrap.'] );\n\n\t\t// Make list table rows\n\t\t$i = 1;\n\t\twhile($this->internal[\"currentRow\"] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\tif ( $i % 2 ){\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap1.' );\n\t\t\t}else{\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap2.' );\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\t$out = sprintf ('\n\t\t<div%s>\n\t\t\t%s\n\t\t</div>',\n\t\t\t$this->pi_classParam ( 'listrow' ),\n\t\t\t$this->cObj->stdWrap ( implode( chr ( 10 ),$items ), $this->conf['listView.']['resultWrap.'] )\n\t\t);\n\t\treturn $out;\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Convert decimal values if posted back\r\n\r\n\t\tif ($this->PrecioUnitario->FormValue == $this->PrecioUnitario->CurrentValue && is_numeric(ew_StrToFloat($this->PrecioUnitario->CurrentValue)))\r\n\t\t\t$this->PrecioUnitario->CurrentValue = ew_StrToFloat($this->PrecioUnitario->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->MontoDescuento->FormValue == $this->MontoDescuento->CurrentValue && is_numeric(ew_StrToFloat($this->MontoDescuento->CurrentValue)))\r\n\t\t\t$this->MontoDescuento->CurrentValue = ew_StrToFloat($this->MontoDescuento->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Precio_SIM->FormValue == $this->Precio_SIM->CurrentValue && is_numeric(ew_StrToFloat($this->Precio_SIM->CurrentValue)))\r\n\t\t\t$this->Precio_SIM->CurrentValue = ew_StrToFloat($this->Precio_SIM->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Monto->FormValue == $this->Monto->CurrentValue && is_numeric(ew_StrToFloat($this->Monto->CurrentValue)))\r\n\t\t\t$this->Monto->CurrentValue = ew_StrToFloat($this->Monto->CurrentValue);\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Venta_Eq\r\n\t\t// CLIENTE\r\n\t\t// Id_Articulo\r\n\t\t// Acabado_eq\r\n\t\t// Num_IMEI\r\n\t\t// Num_ICCID\r\n\t\t// Num_CEL\r\n\t\t// Causa\r\n\t\t// Con_SIM\r\n\t\t// Observaciones\r\n\t\t// PrecioUnitario\r\n\t\t// MontoDescuento\r\n\t\t// Precio_SIM\r\n\t\t// Monto\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id_Venta_Eq\r\n\t\t\t$this->Id_Venta_Eq->ViewValue = $this->Id_Venta_Eq->CurrentValue;\r\n\t\t\t$this->Id_Venta_Eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->ViewValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->ViewValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->ViewValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->ViewValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->ViewValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\tif (strval($this->Con_SIM->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Con_SIM->CurrentValue) {\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Con_SIM->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Con_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->ViewValue = $this->Observaciones->CurrentValue;\r\n\t\t\t$this->Observaciones->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->ViewValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->ViewValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->ViewValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->ViewValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\t\t\t$this->CLIENTE->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\t\t\t$this->Id_Articulo->TooltipValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\t\t\t$this->Acabado_eq->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\t\t\t$this->Num_IMEI->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\t\t\t$this->Num_ICCID->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\t\t\t$this->Num_CEL->TooltipValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\t\t\t$this->Causa->TooltipValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\t\t\t$this->Con_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\t\t\t$this->Observaciones->TooltipValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\t\t\t$this->PrecioUnitario->TooltipValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\t\t\t$this->MontoDescuento->TooltipValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\t\t\t$this->Precio_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t\t$this->Monto->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->EditCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->EditValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->EditCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->EditValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->EditValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->EditCustomAttributes = \"onchange= 'ValidaICCID(this);' \";\r\n\t\t\t$this->Num_ICCID->EditValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->EditValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(1), $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(2), $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->FldTagValue(2));\r\n\t\t\t$this->Con_SIM->EditValue = $arwrk;\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->EditCustomAttributes = 'class=\"mayusculas\" onchange=\"conMayusculas(this)\" autocomplete=\"off\" ';\r\n\t\t\t$this->Observaciones->EditValue = ew_HtmlEncode($this->Observaciones->CurrentValue);\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->EditCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->EditValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->EditCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->EditValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->EditValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->EditCustomAttributes = \"\";\r\n\t\t\t$this->Monto->EditValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// CLIENTE\r\n\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "public function display_rows() {\n\n\t\t// Get the records registered in the prepare_items method\n\t\t$records = $this->items;\n\n\t\t// Get the columns registered in the get_columns and get_sortable_columns methods\n\t\tlist( $columns, $hidden ) = $this->get_column_info();\n\n\t\t// Loop for each record\n\t\tif ( ! empty( $records ) ) {\n\t\t\tforeach ( $records as $rec ) {\n\n\t\t\t\t// Open the line\n\t\t\t\techo '<tr id=\"record_' . $rec->ID . '\">';\n\t\t\t\tforeach ( $columns as $column_name => $column_display_name ) {\n\n\t\t\t\t\t// Style attributes for each col\n\t\t\t\t\t$class = \"class='$column_name column-$column_name'\";\n\t\t\t\t\t$style = '';\n\t\t\t\t\tif ( in_array( $column_name, $hidden ) ) {\n\t\t\t\t\t\t$style = ' style=\"display:none;\"';\n\t\t\t\t\t}\n\t\t\t\t\t$attributes = $class . $style;\n\n\t\t\t\t\tswitch ( $column_name ) {\n\t\t\t\t\t\tcase 'title':\n\t\t\t\t\t\t\t$edit_link = admin_url( 'admin.php?page=wo_edit_client&id=' . $rec->ID );\n\t\t\t\t\t\t\techo '<td ' . $attributes . '><strong><a href=\"' . $edit_link . '\" title=\"Edit\">' . stripslashes( $rec->post_title ) . '</a></strong>\n\t\t\t\t\t\t<div class=\"row-actions\">\n\t\t\t\t\t\t<span class=\"edit\"><a href=\"' . $edit_link . '\" title=\"' . __( 'Edit Client', 'wp-oauth' ) . '\">' . __( 'Edit', 'wp-oauth' ) . '</a> | </span>\n\t\t\t\t\t\t<span class=\"trash\"><a class=\"submitdelete\" title=\"' . __( 'delete this client', 'wp-oauth' ) . '\" onclick=\"wo_remove_client(\\'' . $rec->ID . '\\');\" href=\"#\">' . __( 'Delete', 'wp-oauth' ) . '</a> </span>';\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t// case \"user_id\": echo '<td '.$attributes.'>'.stripslashes($rec->user_id).'</td>'; break;\n\t\t\t\t\t\tcase 'client_id':\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . get_post_meta( $rec->ID, 'client_id', true ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Close the line\n\t\t\t\techo '</tr>';\n\t\t\t}\n\t\t}\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Name\n\t\t// Basics\n\t\t// HP\n\t\t// MP\n\t\t// AD\n\t\t// AP\n\t\t// Defense\n\t\t// Hit\n\t\t// Dodge\n\t\t// Crit\n\t\t// AbsorbHP\n\t\t// ADPTV\n\t\t// ADPTR\n\t\t// APPTR\n\t\t// APPTV\n\t\t// ImmuneDamage\n\t\t// Intro\n\t\t// ExclusiveSkills\n\t\t// TransferDemand\n\t\t// TransferLevel\n\t\t// FormerOccupation\n\t\t// Belong\n\t\t// AttackEffect\n\t\t// AttackTips\n\t\t// MagicResistance\n\t\t// IgnoreShield\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Name\n\t\t$this->Name->ViewValue = $this->Name->CurrentValue;\n\t\t$this->Name->ViewCustomAttributes = \"\";\n\n\t\t// Basics\n\t\t$this->Basics->ViewValue = $this->Basics->CurrentValue;\n\t\t$this->Basics->ViewCustomAttributes = \"\";\n\n\t\t// HP\n\t\t$this->HP->ViewValue = $this->HP->CurrentValue;\n\t\t$this->HP->ViewCustomAttributes = \"\";\n\n\t\t// MP\n\t\t$this->MP->ViewValue = $this->MP->CurrentValue;\n\t\t$this->MP->ViewCustomAttributes = \"\";\n\n\t\t// AD\n\t\t$this->AD->ViewValue = $this->AD->CurrentValue;\n\t\t$this->AD->ViewCustomAttributes = \"\";\n\n\t\t// AP\n\t\t$this->AP->ViewValue = $this->AP->CurrentValue;\n\t\t$this->AP->ViewCustomAttributes = \"\";\n\n\t\t// Defense\n\t\t$this->Defense->ViewValue = $this->Defense->CurrentValue;\n\t\t$this->Defense->ViewCustomAttributes = \"\";\n\n\t\t// Hit\n\t\t$this->Hit->ViewValue = $this->Hit->CurrentValue;\n\t\t$this->Hit->ViewCustomAttributes = \"\";\n\n\t\t// Dodge\n\t\t$this->Dodge->ViewValue = $this->Dodge->CurrentValue;\n\t\t$this->Dodge->ViewCustomAttributes = \"\";\n\n\t\t// Crit\n\t\t$this->Crit->ViewValue = $this->Crit->CurrentValue;\n\t\t$this->Crit->ViewCustomAttributes = \"\";\n\n\t\t// AbsorbHP\n\t\t$this->AbsorbHP->ViewValue = $this->AbsorbHP->CurrentValue;\n\t\t$this->AbsorbHP->ViewCustomAttributes = \"\";\n\n\t\t// ADPTV\n\t\t$this->ADPTV->ViewValue = $this->ADPTV->CurrentValue;\n\t\t$this->ADPTV->ViewCustomAttributes = \"\";\n\n\t\t// ADPTR\n\t\t$this->ADPTR->ViewValue = $this->ADPTR->CurrentValue;\n\t\t$this->ADPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTR\n\t\t$this->APPTR->ViewValue = $this->APPTR->CurrentValue;\n\t\t$this->APPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTV\n\t\t$this->APPTV->ViewValue = $this->APPTV->CurrentValue;\n\t\t$this->APPTV->ViewCustomAttributes = \"\";\n\n\t\t// ImmuneDamage\n\t\t$this->ImmuneDamage->ViewValue = $this->ImmuneDamage->CurrentValue;\n\t\t$this->ImmuneDamage->ViewCustomAttributes = \"\";\n\n\t\t// Intro\n\t\t$this->Intro->ViewValue = $this->Intro->CurrentValue;\n\t\t$this->Intro->ViewCustomAttributes = \"\";\n\n\t\t// ExclusiveSkills\n\t\t$this->ExclusiveSkills->ViewValue = $this->ExclusiveSkills->CurrentValue;\n\t\t$this->ExclusiveSkills->ViewCustomAttributes = \"\";\n\n\t\t// TransferDemand\n\t\t$this->TransferDemand->ViewValue = $this->TransferDemand->CurrentValue;\n\t\t$this->TransferDemand->ViewCustomAttributes = \"\";\n\n\t\t// TransferLevel\n\t\t$this->TransferLevel->ViewValue = $this->TransferLevel->CurrentValue;\n\t\t$this->TransferLevel->ViewCustomAttributes = \"\";\n\n\t\t// FormerOccupation\n\t\t$this->FormerOccupation->ViewValue = $this->FormerOccupation->CurrentValue;\n\t\t$this->FormerOccupation->ViewCustomAttributes = \"\";\n\n\t\t// Belong\n\t\t$this->Belong->ViewValue = $this->Belong->CurrentValue;\n\t\t$this->Belong->ViewCustomAttributes = \"\";\n\n\t\t// AttackEffect\n\t\t$this->AttackEffect->ViewValue = $this->AttackEffect->CurrentValue;\n\t\t$this->AttackEffect->ViewCustomAttributes = \"\";\n\n\t\t// AttackTips\n\t\t$this->AttackTips->ViewValue = $this->AttackTips->CurrentValue;\n\t\t$this->AttackTips->ViewCustomAttributes = \"\";\n\n\t\t// MagicResistance\n\t\t$this->MagicResistance->ViewValue = $this->MagicResistance->CurrentValue;\n\t\t$this->MagicResistance->ViewCustomAttributes = \"\";\n\n\t\t// IgnoreShield\n\t\t$this->IgnoreShield->ViewValue = $this->IgnoreShield->CurrentValue;\n\t\t$this->IgnoreShield->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Name\n\t\t\t$this->Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Name->HrefValue = \"\";\n\t\t\t$this->Name->TooltipValue = \"\";\n\n\t\t\t// Basics\n\t\t\t$this->Basics->LinkCustomAttributes = \"\";\n\t\t\t$this->Basics->HrefValue = \"\";\n\t\t\t$this->Basics->TooltipValue = \"\";\n\n\t\t\t// HP\n\t\t\t$this->HP->LinkCustomAttributes = \"\";\n\t\t\t$this->HP->HrefValue = \"\";\n\t\t\t$this->HP->TooltipValue = \"\";\n\n\t\t\t// MP\n\t\t\t$this->MP->LinkCustomAttributes = \"\";\n\t\t\t$this->MP->HrefValue = \"\";\n\t\t\t$this->MP->TooltipValue = \"\";\n\n\t\t\t// AD\n\t\t\t$this->AD->LinkCustomAttributes = \"\";\n\t\t\t$this->AD->HrefValue = \"\";\n\t\t\t$this->AD->TooltipValue = \"\";\n\n\t\t\t// AP\n\t\t\t$this->AP->LinkCustomAttributes = \"\";\n\t\t\t$this->AP->HrefValue = \"\";\n\t\t\t$this->AP->TooltipValue = \"\";\n\n\t\t\t// Defense\n\t\t\t$this->Defense->LinkCustomAttributes = \"\";\n\t\t\t$this->Defense->HrefValue = \"\";\n\t\t\t$this->Defense->TooltipValue = \"\";\n\n\t\t\t// Hit\n\t\t\t$this->Hit->LinkCustomAttributes = \"\";\n\t\t\t$this->Hit->HrefValue = \"\";\n\t\t\t$this->Hit->TooltipValue = \"\";\n\n\t\t\t// Dodge\n\t\t\t$this->Dodge->LinkCustomAttributes = \"\";\n\t\t\t$this->Dodge->HrefValue = \"\";\n\t\t\t$this->Dodge->TooltipValue = \"\";\n\n\t\t\t// Crit\n\t\t\t$this->Crit->LinkCustomAttributes = \"\";\n\t\t\t$this->Crit->HrefValue = \"\";\n\t\t\t$this->Crit->TooltipValue = \"\";\n\n\t\t\t// AbsorbHP\n\t\t\t$this->AbsorbHP->LinkCustomAttributes = \"\";\n\t\t\t$this->AbsorbHP->HrefValue = \"\";\n\t\t\t$this->AbsorbHP->TooltipValue = \"\";\n\n\t\t\t// ADPTV\n\t\t\t$this->ADPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTV->HrefValue = \"\";\n\t\t\t$this->ADPTV->TooltipValue = \"\";\n\n\t\t\t// ADPTR\n\t\t\t$this->ADPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTR->HrefValue = \"\";\n\t\t\t$this->ADPTR->TooltipValue = \"\";\n\n\t\t\t// APPTR\n\t\t\t$this->APPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTR->HrefValue = \"\";\n\t\t\t$this->APPTR->TooltipValue = \"\";\n\n\t\t\t// APPTV\n\t\t\t$this->APPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTV->HrefValue = \"\";\n\t\t\t$this->APPTV->TooltipValue = \"\";\n\n\t\t\t// ImmuneDamage\n\t\t\t$this->ImmuneDamage->LinkCustomAttributes = \"\";\n\t\t\t$this->ImmuneDamage->HrefValue = \"\";\n\t\t\t$this->ImmuneDamage->TooltipValue = \"\";\n\n\t\t\t// Intro\n\t\t\t$this->Intro->LinkCustomAttributes = \"\";\n\t\t\t$this->Intro->HrefValue = \"\";\n\t\t\t$this->Intro->TooltipValue = \"\";\n\n\t\t\t// ExclusiveSkills\n\t\t\t$this->ExclusiveSkills->LinkCustomAttributes = \"\";\n\t\t\t$this->ExclusiveSkills->HrefValue = \"\";\n\t\t\t$this->ExclusiveSkills->TooltipValue = \"\";\n\n\t\t\t// TransferDemand\n\t\t\t$this->TransferDemand->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferDemand->HrefValue = \"\";\n\t\t\t$this->TransferDemand->TooltipValue = \"\";\n\n\t\t\t// TransferLevel\n\t\t\t$this->TransferLevel->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferLevel->HrefValue = \"\";\n\t\t\t$this->TransferLevel->TooltipValue = \"\";\n\n\t\t\t// FormerOccupation\n\t\t\t$this->FormerOccupation->LinkCustomAttributes = \"\";\n\t\t\t$this->FormerOccupation->HrefValue = \"\";\n\t\t\t$this->FormerOccupation->TooltipValue = \"\";\n\n\t\t\t// Belong\n\t\t\t$this->Belong->LinkCustomAttributes = \"\";\n\t\t\t$this->Belong->HrefValue = \"\";\n\t\t\t$this->Belong->TooltipValue = \"\";\n\n\t\t\t// AttackEffect\n\t\t\t$this->AttackEffect->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackEffect->HrefValue = \"\";\n\t\t\t$this->AttackEffect->TooltipValue = \"\";\n\n\t\t\t// AttackTips\n\t\t\t$this->AttackTips->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackTips->HrefValue = \"\";\n\t\t\t$this->AttackTips->TooltipValue = \"\";\n\n\t\t\t// MagicResistance\n\t\t\t$this->MagicResistance->LinkCustomAttributes = \"\";\n\t\t\t$this->MagicResistance->HrefValue = \"\";\n\t\t\t$this->MagicResistance->TooltipValue = \"\";\n\n\t\t\t// IgnoreShield\n\t\t\t$this->IgnoreShield->LinkCustomAttributes = \"\";\n\t\t\t$this->IgnoreShield->HrefValue = \"\";\n\t\t\t$this->IgnoreShield->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function render()\n\t{\n\n\t\t$table = \"<table\";\n\n\t\t// Add all attributes\n\t\tforeach ($this->attributes as $key => $value) {\n\t\t\t$table .= ' ' . $key . '=\"' . $value .'\"';\n\t\t}\n\n\t\t$table .= \">\"; // Close table\n\n\t\t// Add the head\n\t\tif ($this->showHeadRow) {\n\t\t\t$table .= \"<thead><tr>\";\n\n\t\t\t// Show the number header.\n\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t$table .= \"<th>#</th>\";\n\t\t\t}\n\n\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t$columnHeadTitle = isset($column['headTitle']) ? $column['headTitle'] : $column[0];\n\t\t\t\t$table .= \"<th>\" . $columnHeadTitle . \"</th>\";\n\t\t\t}\n\n\t\t\t$table .= \"</tr></thead>\"; // finish head\n\t\t}\n\n\t\t// Body\n\t\t$table .= \"<tbody>\";\n\n\t\t$row = $this->numberColumnOffset;\n\n\t\tif (count($this->data) == 0) {\n\t\t\t// Show a no data entry\n\t\t\t$colspan = count($this->columns) + ($this->showNumberColumn ? 1 : 0);\n\t\t\t$table .= '<tr><td colspan=\"'.$colspan.'\"><p align=\"center\" style=\"font-weight:bold;\">Keine Einträge</p></td></tr>';\n\t\t}\n\t\telse {\n\t\t\tforeach ($this->data as $dataObject) {\n\n\t\t\t\t// Row attributes\n\t\t\t\t$attributes = $this->rowAttributes;\n\t\t\t\tif (!is_array($attributes)) {\n\t\t\t\t\tif (is_callable($this->rowAttributes)) {\n\t\t\t\t\t\t$callable = $this->rowAttributes;\n\t\t\t\t\t\t$attributes = $callable($dataObject);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$attributeString = '';\n\t\t\t\tif ($attributes) {\t\t// Add attributes if we have some\n\t\t\t\t\tforeach ($attributes as $attributeName => $attributeValue) {\n\t\t\t\t\t\t$attributeString .= $attributeName . '=\"' . $attributeValue . '\" ' ;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif ($this->rowIdDataMethod) {\n\t\t\t\t\t// method name or closure?\n\t\t\t\t\t$id = '';\n\t\t\t\t\tif (is_string($this->rowIdDataMethod)) {\n\t\t\t\t\t\t$id = $dataObject->{$this->rowIdDataMethod}(); // Call the row data method\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($this->rowIdDataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\t\t\t\t\t\t\t// we got a closure\n\t\t\t\t\t\t\t$closure = $this->rowIdDataMethod;\n\t\t\t\t\t\t\t$id = $closure($dataObject);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\n\n\t\t\t\t\t$table .= '<tr id=\"'. $id .'\" ' . $attributeString . '>'; // Start row with id\n\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$table .= \"<tr \". $attributeString .\">\";\t// Start row without id\n\t\t\t\t}\n\n\t\t\t\t// Number?\n\t\t\t\tif ($this->showNumberColumn) {\n\t\t\t\t\t$table .= \"<td>\" . $row . \"</td>\";\n\t\t\t\t}\n\n\t\t\t\tforeach ($this->columns as $column) {\n\t\t\t\t\t$dataMethod = isset($column['dataMethod']) ? $column['dataMethod'] : $column[1];\n\t\t\t\t\tif (is_string($dataMethod)) {\n\t\t\t\t\t\t// Just call the method an insert the return value into the table cell\n\t\t\t\t\t\t$table .= \"<td>\". $dataObject->$dataMethod() .\"</td>\";\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t$rf = new \\ReflectionFunction($dataMethod);\n\t\t\t\t\t\tif ($rf->isClosure()) {\n\n\t\t\t\t\t\t\t// Call the closure and get the result\n\t\t\t\t\t\t\t$value = $dataMethod($dataObject, $this);\n\n\t\t\t\t\t\t\t$table .= \"<td>\". $value .\"</td>\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$table .= \"</tr>\";\t// End the table row\n\t\t\t\t$row++;\n\t\t\t}\n\n\t\t\t// Render the footer row\n\t\t\t$table = $this->renderFooter($table);\n\n\t\t}\n\n\t\t$table .= \"</tbody>\";\n\n\t\t$table .= \"</table>\";\n\t\treturn $table;\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\t\t// datetime\r\n\t\t// script\r\n\t\t// user\r\n\t\t// action\r\n\t\t// table\r\n\t\t// field\r\n\t\t// keyvalue\r\n\t\t// oldvalue\r\n\t\t// newvalue\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->ViewValue = $this->datetime->CurrentValue;\r\n\t\t\t$this->datetime->ViewValue = ew_FormatDateTime($this->datetime->ViewValue, 5);\r\n\t\t\t$this->datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->ViewValue = $this->script->CurrentValue;\r\n\t\t\t$this->script->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->ViewValue = $this->user->CurrentValue;\r\n\t\t\t$this->user->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->ViewValue = $this->action->CurrentValue;\r\n\t\t\t$this->action->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->ViewValue = $this->_table->CurrentValue;\r\n\t\t\t$this->_table->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->ViewValue = $this->_field->CurrentValue;\r\n\t\t\t$this->_field->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->ViewValue = $this->keyvalue->CurrentValue;\r\n\t\t\t$this->keyvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->ViewValue = $this->oldvalue->CurrentValue;\r\n\t\t\t$this->oldvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->ViewValue = $this->newvalue->CurrentValue;\r\n\t\t\t$this->newvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\t\t\t$this->datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->LinkCustomAttributes = \"\";\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\t\t\t$this->script->TooltipValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->LinkCustomAttributes = \"\";\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\t\t\t$this->user->TooltipValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->LinkCustomAttributes = \"\";\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\t\t\t$this->action->TooltipValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\t\t\t$this->_table->TooltipValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\t\t\t$this->_field->TooltipValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\t\t\t$this->keyvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\t\t\t$this->oldvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t\t$this->newvalue->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->datetime->CurrentValue, 5));\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->EditCustomAttributes = \"\";\r\n\t\t\t$this->script->EditValue = ew_HtmlEncode($this->script->CurrentValue);\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->EditCustomAttributes = \"\";\r\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->EditCustomAttributes = \"\";\r\n\t\t\t$this->action->EditValue = ew_HtmlEncode($this->action->CurrentValue);\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->EditCustomAttributes = \"\";\r\n\t\t\t$this->_table->EditValue = ew_HtmlEncode($this->_table->CurrentValue);\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->EditCustomAttributes = \"\";\r\n\t\t\t$this->_field->EditValue = ew_HtmlEncode($this->_field->CurrentValue);\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->EditValue = ew_HtmlEncode($this->keyvalue->CurrentValue);\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->EditValue = ew_HtmlEncode($this->oldvalue->CurrentValue);\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->EditValue = ew_HtmlEncode($this->newvalue->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// datetime\r\n\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $archv_finished;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->AddUrl = $archv_finished->AddUrl();\n\t\t$this->EditUrl = $archv_finished->EditUrl();\n\t\t$this->CopyUrl = $archv_finished->CopyUrl();\n\t\t$this->DeleteUrl = $archv_finished->DeleteUrl();\n\t\t$this->ListUrl = $archv_finished->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$archv_finished->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// ID\n\n\t\t$archv_finished->ID->CellCssStyle = \"\"; $archv_finished->ID->CellCssClass = \"\";\n\t\t$archv_finished->ID->CellAttrs = array(); $archv_finished->ID->ViewAttrs = array(); $archv_finished->ID->EditAttrs = array();\n\n\t\t// strjrfnum\n\t\t$archv_finished->strjrfnum->CellCssStyle = \"\"; $archv_finished->strjrfnum->CellCssClass = \"\";\n\t\t$archv_finished->strjrfnum->CellAttrs = array(); $archv_finished->strjrfnum->ViewAttrs = array(); $archv_finished->strjrfnum->EditAttrs = array();\n\n\t\t// strquarter\n\t\t$archv_finished->strquarter->CellCssStyle = \"\"; $archv_finished->strquarter->CellCssClass = \"\";\n\t\t$archv_finished->strquarter->CellAttrs = array(); $archv_finished->strquarter->ViewAttrs = array(); $archv_finished->strquarter->EditAttrs = array();\n\n\t\t// strmon\n\t\t$archv_finished->strmon->CellCssStyle = \"\"; $archv_finished->strmon->CellCssClass = \"\";\n\t\t$archv_finished->strmon->CellAttrs = array(); $archv_finished->strmon->ViewAttrs = array(); $archv_finished->strmon->EditAttrs = array();\n\n\t\t// stryear\n\t\t$archv_finished->stryear->CellCssStyle = \"\"; $archv_finished->stryear->CellCssClass = \"\";\n\t\t$archv_finished->stryear->CellAttrs = array(); $archv_finished->stryear->ViewAttrs = array(); $archv_finished->stryear->EditAttrs = array();\n\n\t\t// strdate\n\t\t$archv_finished->strdate->CellCssStyle = \"\"; $archv_finished->strdate->CellCssClass = \"\";\n\t\t$archv_finished->strdate->CellAttrs = array(); $archv_finished->strdate->ViewAttrs = array(); $archv_finished->strdate->EditAttrs = array();\n\n\t\t// strtime\n\t\t$archv_finished->strtime->CellCssStyle = \"\"; $archv_finished->strtime->CellCssClass = \"\";\n\t\t$archv_finished->strtime->CellAttrs = array(); $archv_finished->strtime->ViewAttrs = array(); $archv_finished->strtime->EditAttrs = array();\n\n\t\t// strusername\n\t\t$archv_finished->strusername->CellCssStyle = \"\"; $archv_finished->strusername->CellCssClass = \"\";\n\t\t$archv_finished->strusername->CellAttrs = array(); $archv_finished->strusername->ViewAttrs = array(); $archv_finished->strusername->EditAttrs = array();\n\n\t\t// strusereadd\n\t\t$archv_finished->strusereadd->CellCssStyle = \"\"; $archv_finished->strusereadd->CellCssClass = \"\";\n\t\t$archv_finished->strusereadd->CellAttrs = array(); $archv_finished->strusereadd->ViewAttrs = array(); $archv_finished->strusereadd->EditAttrs = array();\n\n\t\t// strcompany\n\t\t$archv_finished->strcompany->CellCssStyle = \"\"; $archv_finished->strcompany->CellCssClass = \"\";\n\t\t$archv_finished->strcompany->CellAttrs = array(); $archv_finished->strcompany->ViewAttrs = array(); $archv_finished->strcompany->EditAttrs = array();\n\n\t\t// strdepartment\n\t\t$archv_finished->strdepartment->CellCssStyle = \"\"; $archv_finished->strdepartment->CellCssClass = \"\";\n\t\t$archv_finished->strdepartment->CellAttrs = array(); $archv_finished->strdepartment->ViewAttrs = array(); $archv_finished->strdepartment->EditAttrs = array();\n\n\t\t// strloc\n\t\t$archv_finished->strloc->CellCssStyle = \"\"; $archv_finished->strloc->CellCssClass = \"\";\n\t\t$archv_finished->strloc->CellAttrs = array(); $archv_finished->strloc->ViewAttrs = array(); $archv_finished->strloc->EditAttrs = array();\n\n\t\t// strposition\n\t\t$archv_finished->strposition->CellCssStyle = \"\"; $archv_finished->strposition->CellCssClass = \"\";\n\t\t$archv_finished->strposition->CellAttrs = array(); $archv_finished->strposition->ViewAttrs = array(); $archv_finished->strposition->EditAttrs = array();\n\n\t\t// strtelephone\n\t\t$archv_finished->strtelephone->CellCssStyle = \"\"; $archv_finished->strtelephone->CellCssClass = \"\";\n\t\t$archv_finished->strtelephone->CellAttrs = array(); $archv_finished->strtelephone->ViewAttrs = array(); $archv_finished->strtelephone->EditAttrs = array();\n\n\t\t// strcostcent\n\t\t$archv_finished->strcostcent->CellCssStyle = \"\"; $archv_finished->strcostcent->CellCssClass = \"\";\n\t\t$archv_finished->strcostcent->CellAttrs = array(); $archv_finished->strcostcent->ViewAttrs = array(); $archv_finished->strcostcent->EditAttrs = array();\n\n\t\t// strsubject\n\t\t$archv_finished->strsubject->CellCssStyle = \"\"; $archv_finished->strsubject->CellCssClass = \"\";\n\t\t$archv_finished->strsubject->CellAttrs = array(); $archv_finished->strsubject->ViewAttrs = array(); $archv_finished->strsubject->EditAttrs = array();\n\n\t\t// strnature\n\t\t$archv_finished->strnature->CellCssStyle = \"\"; $archv_finished->strnature->CellCssClass = \"\";\n\t\t$archv_finished->strnature->CellAttrs = array(); $archv_finished->strnature->ViewAttrs = array(); $archv_finished->strnature->EditAttrs = array();\n\n\t\t// strdescript\n\t\t$archv_finished->strdescript->CellCssStyle = \"\"; $archv_finished->strdescript->CellCssClass = \"\";\n\t\t$archv_finished->strdescript->CellAttrs = array(); $archv_finished->strdescript->ViewAttrs = array(); $archv_finished->strdescript->EditAttrs = array();\n\n\t\t// strarea\n\t\t$archv_finished->strarea->CellCssStyle = \"\"; $archv_finished->strarea->CellCssClass = \"\";\n\t\t$archv_finished->strarea->CellAttrs = array(); $archv_finished->strarea->ViewAttrs = array(); $archv_finished->strarea->EditAttrs = array();\n\n\t\t// strattach\n\t\t$archv_finished->strattach->CellCssStyle = \"\"; $archv_finished->strattach->CellCssClass = \"\";\n\t\t$archv_finished->strattach->CellAttrs = array(); $archv_finished->strattach->ViewAttrs = array(); $archv_finished->strattach->EditAttrs = array();\n\n\t\t// strpriority\n\t\t$archv_finished->strpriority->CellCssStyle = \"\"; $archv_finished->strpriority->CellCssClass = \"\";\n\t\t$archv_finished->strpriority->CellAttrs = array(); $archv_finished->strpriority->ViewAttrs = array(); $archv_finished->strpriority->EditAttrs = array();\n\n\t\t// strduedate\n\t\t$archv_finished->strduedate->CellCssStyle = \"\"; $archv_finished->strduedate->CellCssClass = \"\";\n\t\t$archv_finished->strduedate->CellAttrs = array(); $archv_finished->strduedate->ViewAttrs = array(); $archv_finished->strduedate->EditAttrs = array();\n\n\t\t// strstatus\n\t\t$archv_finished->strstatus->CellCssStyle = \"\"; $archv_finished->strstatus->CellCssClass = \"\";\n\t\t$archv_finished->strstatus->CellAttrs = array(); $archv_finished->strstatus->ViewAttrs = array(); $archv_finished->strstatus->EditAttrs = array();\n\n\t\t// strlastedit\n\t\t$archv_finished->strlastedit->CellCssStyle = \"\"; $archv_finished->strlastedit->CellCssClass = \"\";\n\t\t$archv_finished->strlastedit->CellAttrs = array(); $archv_finished->strlastedit->ViewAttrs = array(); $archv_finished->strlastedit->EditAttrs = array();\n\n\t\t// strcategory\n\t\t$archv_finished->strcategory->CellCssStyle = \"\"; $archv_finished->strcategory->CellCssClass = \"\";\n\t\t$archv_finished->strcategory->CellAttrs = array(); $archv_finished->strcategory->ViewAttrs = array(); $archv_finished->strcategory->EditAttrs = array();\n\n\t\t// strassigned\n\t\t$archv_finished->strassigned->CellCssStyle = \"\"; $archv_finished->strassigned->CellCssClass = \"\";\n\t\t$archv_finished->strassigned->CellAttrs = array(); $archv_finished->strassigned->ViewAttrs = array(); $archv_finished->strassigned->EditAttrs = array();\n\n\t\t// strdatecomplete\n\t\t$archv_finished->strdatecomplete->CellCssStyle = \"\"; $archv_finished->strdatecomplete->CellCssClass = \"\";\n\t\t$archv_finished->strdatecomplete->CellAttrs = array(); $archv_finished->strdatecomplete->ViewAttrs = array(); $archv_finished->strdatecomplete->EditAttrs = array();\n\n\t\t// strwithpr\n\t\t$archv_finished->strwithpr->CellCssStyle = \"\"; $archv_finished->strwithpr->CellCssClass = \"\";\n\t\t$archv_finished->strwithpr->CellAttrs = array(); $archv_finished->strwithpr->ViewAttrs = array(); $archv_finished->strwithpr->EditAttrs = array();\n\n\t\t// strremarks\n\t\t$archv_finished->strremarks->CellCssStyle = \"\"; $archv_finished->strremarks->CellCssClass = \"\";\n\t\t$archv_finished->strremarks->CellAttrs = array(); $archv_finished->strremarks->ViewAttrs = array(); $archv_finished->strremarks->EditAttrs = array();\n\n\t\t// sap_num\n\t\t$archv_finished->sap_num->CellCssStyle = \"\"; $archv_finished->sap_num->CellCssClass = \"\";\n\t\t$archv_finished->sap_num->CellAttrs = array(); $archv_finished->sap_num->ViewAttrs = array(); $archv_finished->sap_num->EditAttrs = array();\n\n\t\t// work_days\n\t\t$archv_finished->work_days->CellCssStyle = \"\"; $archv_finished->work_days->CellCssClass = \"\";\n\t\t$archv_finished->work_days->CellAttrs = array(); $archv_finished->work_days->ViewAttrs = array(); $archv_finished->work_days->EditAttrs = array();\n\t\tif ($archv_finished->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->ViewValue = $archv_finished->ID->CurrentValue;\n\t\t\t$archv_finished->ID->CssStyle = \"\";\n\t\t\t$archv_finished->ID->CssClass = \"\";\n\t\t\t$archv_finished->ID->ViewCustomAttributes = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->ViewValue = $archv_finished->strjrfnum->CurrentValue;\n\t\t\t$archv_finished->strjrfnum->CssStyle = \"\";\n\t\t\t$archv_finished->strjrfnum->CssClass = \"\";\n\t\t\t$archv_finished->strjrfnum->ViewCustomAttributes = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->ViewValue = $archv_finished->strquarter->CurrentValue;\n\t\t\t$archv_finished->strquarter->CssStyle = \"\";\n\t\t\t$archv_finished->strquarter->CssClass = \"\";\n\t\t\t$archv_finished->strquarter->ViewCustomAttributes = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->ViewValue = $archv_finished->strmon->CurrentValue;\n\t\t\t$archv_finished->strmon->CssStyle = \"\";\n\t\t\t$archv_finished->strmon->CssClass = \"\";\n\t\t\t$archv_finished->strmon->ViewCustomAttributes = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->ViewValue = $archv_finished->stryear->CurrentValue;\n\t\t\t$archv_finished->stryear->CssStyle = \"\";\n\t\t\t$archv_finished->stryear->CssClass = \"\";\n\t\t\t$archv_finished->stryear->ViewCustomAttributes = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->ViewValue = $archv_finished->strdate->CurrentValue;\n\t\t\t$archv_finished->strdate->CssStyle = \"\";\n\t\t\t$archv_finished->strdate->CssClass = \"\";\n\t\t\t$archv_finished->strdate->ViewCustomAttributes = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->ViewValue = $archv_finished->strtime->CurrentValue;\n\t\t\t$archv_finished->strtime->CssStyle = \"\";\n\t\t\t$archv_finished->strtime->CssClass = \"\";\n\t\t\t$archv_finished->strtime->ViewCustomAttributes = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->ViewValue = $archv_finished->strusername->CurrentValue;\n\t\t\t$archv_finished->strusername->CssStyle = \"\";\n\t\t\t$archv_finished->strusername->CssClass = \"\";\n\t\t\t$archv_finished->strusername->ViewCustomAttributes = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->ViewValue = $archv_finished->strusereadd->CurrentValue;\n\t\t\t$archv_finished->strusereadd->CssStyle = \"\";\n\t\t\t$archv_finished->strusereadd->CssClass = \"\";\n\t\t\t$archv_finished->strusereadd->ViewCustomAttributes = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->ViewValue = $archv_finished->strcompany->CurrentValue;\n\t\t\t$archv_finished->strcompany->CssStyle = \"\";\n\t\t\t$archv_finished->strcompany->CssClass = \"\";\n\t\t\t$archv_finished->strcompany->ViewCustomAttributes = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->ViewValue = $archv_finished->strdepartment->CurrentValue;\n\t\t\t$archv_finished->strdepartment->CssStyle = \"\";\n\t\t\t$archv_finished->strdepartment->CssClass = \"\";\n\t\t\t$archv_finished->strdepartment->ViewCustomAttributes = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->ViewValue = $archv_finished->strloc->CurrentValue;\n\t\t\t$archv_finished->strloc->CssStyle = \"\";\n\t\t\t$archv_finished->strloc->CssClass = \"\";\n\t\t\t$archv_finished->strloc->ViewCustomAttributes = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->ViewValue = $archv_finished->strposition->CurrentValue;\n\t\t\t$archv_finished->strposition->CssStyle = \"\";\n\t\t\t$archv_finished->strposition->CssClass = \"\";\n\t\t\t$archv_finished->strposition->ViewCustomAttributes = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->ViewValue = $archv_finished->strtelephone->CurrentValue;\n\t\t\t$archv_finished->strtelephone->CssStyle = \"\";\n\t\t\t$archv_finished->strtelephone->CssClass = \"\";\n\t\t\t$archv_finished->strtelephone->ViewCustomAttributes = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->ViewValue = $archv_finished->strcostcent->CurrentValue;\n\t\t\t$archv_finished->strcostcent->CssStyle = \"\";\n\t\t\t$archv_finished->strcostcent->CssClass = \"\";\n\t\t\t$archv_finished->strcostcent->ViewCustomAttributes = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->ViewValue = $archv_finished->strsubject->CurrentValue;\n\t\t\t$archv_finished->strsubject->CssStyle = \"\";\n\t\t\t$archv_finished->strsubject->CssClass = \"\";\n\t\t\t$archv_finished->strsubject->ViewCustomAttributes = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->ViewValue = $archv_finished->strnature->CurrentValue;\n\t\t\t$archv_finished->strnature->CssStyle = \"\";\n\t\t\t$archv_finished->strnature->CssClass = \"\";\n\t\t\t$archv_finished->strnature->ViewCustomAttributes = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->ViewValue = $archv_finished->strdescript->CurrentValue;\n\t\t\t$archv_finished->strdescript->CssStyle = \"\";\n\t\t\t$archv_finished->strdescript->CssClass = \"\";\n\t\t\t$archv_finished->strdescript->ViewCustomAttributes = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->ViewValue = $archv_finished->strarea->CurrentValue;\n\t\t\t$archv_finished->strarea->CssStyle = \"\";\n\t\t\t$archv_finished->strarea->CssClass = \"\";\n\t\t\t$archv_finished->strarea->ViewCustomAttributes = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->ViewValue = $archv_finished->strattach->CurrentValue;\n\t\t\t$archv_finished->strattach->CssStyle = \"\";\n\t\t\t$archv_finished->strattach->CssClass = \"\";\n\t\t\t$archv_finished->strattach->ViewCustomAttributes = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->ViewValue = $archv_finished->strpriority->CurrentValue;\n\t\t\t$archv_finished->strpriority->CssStyle = \"\";\n\t\t\t$archv_finished->strpriority->CssClass = \"\";\n\t\t\t$archv_finished->strpriority->ViewCustomAttributes = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->ViewValue = $archv_finished->strduedate->CurrentValue;\n\t\t\t$archv_finished->strduedate->CssStyle = \"\";\n\t\t\t$archv_finished->strduedate->CssClass = \"\";\n\t\t\t$archv_finished->strduedate->ViewCustomAttributes = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->ViewValue = $archv_finished->strstatus->CurrentValue;\n\t\t\t$archv_finished->strstatus->CssStyle = \"\";\n\t\t\t$archv_finished->strstatus->CssClass = \"\";\n\t\t\t$archv_finished->strstatus->ViewCustomAttributes = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->ViewValue = $archv_finished->strlastedit->CurrentValue;\n\t\t\t$archv_finished->strlastedit->CssStyle = \"\";\n\t\t\t$archv_finished->strlastedit->CssClass = \"\";\n\t\t\t$archv_finished->strlastedit->ViewCustomAttributes = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->ViewValue = $archv_finished->strcategory->CurrentValue;\n\t\t\t$archv_finished->strcategory->CssStyle = \"\";\n\t\t\t$archv_finished->strcategory->CssClass = \"\";\n\t\t\t$archv_finished->strcategory->ViewCustomAttributes = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->ViewValue = $archv_finished->strassigned->CurrentValue;\n\t\t\t$archv_finished->strassigned->CssStyle = \"\";\n\t\t\t$archv_finished->strassigned->CssClass = \"\";\n\t\t\t$archv_finished->strassigned->ViewCustomAttributes = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->ViewValue = $archv_finished->strdatecomplete->CurrentValue;\n\t\t\t$archv_finished->strdatecomplete->CssStyle = \"\";\n\t\t\t$archv_finished->strdatecomplete->CssClass = \"\";\n\t\t\t$archv_finished->strdatecomplete->ViewCustomAttributes = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->ViewValue = $archv_finished->strwithpr->CurrentValue;\n\t\t\t$archv_finished->strwithpr->CssStyle = \"\";\n\t\t\t$archv_finished->strwithpr->CssClass = \"\";\n\t\t\t$archv_finished->strwithpr->ViewCustomAttributes = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->ViewValue = $archv_finished->strremarks->CurrentValue;\n\t\t\t$archv_finished->strremarks->CssStyle = \"\";\n\t\t\t$archv_finished->strremarks->CssClass = \"\";\n\t\t\t$archv_finished->strremarks->ViewCustomAttributes = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->ViewValue = $archv_finished->sap_num->CurrentValue;\n\t\t\t$archv_finished->sap_num->CssStyle = \"\";\n\t\t\t$archv_finished->sap_num->CssClass = \"\";\n\t\t\t$archv_finished->sap_num->ViewCustomAttributes = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->ViewValue = $archv_finished->work_days->CurrentValue;\n\t\t\t$archv_finished->work_days->CssStyle = \"\";\n\t\t\t$archv_finished->work_days->CssClass = \"\";\n\t\t\t$archv_finished->work_days->ViewCustomAttributes = \"\";\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->HrefValue = \"\";\n\t\t\t$archv_finished->ID->TooltipValue = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->HrefValue = \"\";\n\t\t\t$archv_finished->strjrfnum->TooltipValue = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->HrefValue = \"\";\n\t\t\t$archv_finished->strquarter->TooltipValue = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->HrefValue = \"\";\n\t\t\t$archv_finished->strmon->TooltipValue = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->HrefValue = \"\";\n\t\t\t$archv_finished->stryear->TooltipValue = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->HrefValue = \"\";\n\t\t\t$archv_finished->strdate->TooltipValue = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->HrefValue = \"\";\n\t\t\t$archv_finished->strtime->TooltipValue = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->HrefValue = \"\";\n\t\t\t$archv_finished->strusername->TooltipValue = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->HrefValue = \"\";\n\t\t\t$archv_finished->strusereadd->TooltipValue = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->HrefValue = \"\";\n\t\t\t$archv_finished->strcompany->TooltipValue = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->HrefValue = \"\";\n\t\t\t$archv_finished->strdepartment->TooltipValue = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->HrefValue = \"\";\n\t\t\t$archv_finished->strloc->TooltipValue = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->HrefValue = \"\";\n\t\t\t$archv_finished->strposition->TooltipValue = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->HrefValue = \"\";\n\t\t\t$archv_finished->strtelephone->TooltipValue = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->HrefValue = \"\";\n\t\t\t$archv_finished->strcostcent->TooltipValue = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->HrefValue = \"\";\n\t\t\t$archv_finished->strsubject->TooltipValue = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->HrefValue = \"\";\n\t\t\t$archv_finished->strnature->TooltipValue = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->HrefValue = \"\";\n\t\t\t$archv_finished->strdescript->TooltipValue = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->HrefValue = \"\";\n\t\t\t$archv_finished->strarea->TooltipValue = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->HrefValue = \"\";\n\t\t\t$archv_finished->strattach->TooltipValue = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->HrefValue = \"\";\n\t\t\t$archv_finished->strpriority->TooltipValue = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->HrefValue = \"\";\n\t\t\t$archv_finished->strduedate->TooltipValue = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->HrefValue = \"\";\n\t\t\t$archv_finished->strstatus->TooltipValue = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->HrefValue = \"\";\n\t\t\t$archv_finished->strlastedit->TooltipValue = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->HrefValue = \"\";\n\t\t\t$archv_finished->strcategory->TooltipValue = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->HrefValue = \"\";\n\t\t\t$archv_finished->strassigned->TooltipValue = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->HrefValue = \"\";\n\t\t\t$archv_finished->strdatecomplete->TooltipValue = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->HrefValue = \"\";\n\t\t\t$archv_finished->strwithpr->TooltipValue = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->HrefValue = \"\";\n\t\t\t$archv_finished->strremarks->TooltipValue = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->HrefValue = \"\";\n\t\t\t$archv_finished->sap_num->TooltipValue = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->HrefValue = \"\";\n\t\t\t$archv_finished->work_days->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($archv_finished->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$archv_finished->Row_Rendered();\n\t}", "protected function RenderArray()\n {\n if ($this->m_QueryONRender && !$this->m_ActiveRecord && $this->m_DataObjName) {\n if (!$this->_run_search($resultRecords, $this->m_ClearSearchRule))\n return $this->ProcessDataObjError($ok);\n $this->UpdateActiveRecord($resultRecords[0]);\n }\n\n $columns = $this->m_RecordRow->RenderColumn();\n foreach($columns as $key=>$val) {\n $fields[$key][\"label\"] = $val;\n $fields[$key][\"required\"] = $this->GetControl($key)->m_Required;\n $fields[$key][\"description\"] = $this->GetControl($key)->m_Description;\n $fields[$key][\"value\"] = $this->GetControl($key)->m_Value;\t \n }\n\n $controls = $this->m_RecordRow->Render();\n if ($this->CanShowData()) {\n foreach($controls as $key=>$val) {\n $fields[$key][\"control\"] = $val;\n }\n }\n return $fields;\n }", "function display_rows() {\r\n\r\n # Get the records registered in the prepare_items method\r\n $records = $this->items;\r\n\r\n //Loop for each record\r\n if(!empty($records)){foreach($records as $rec){\r\n $custom_data = unserialize($rec->custom_data);\r\n\r\n echo '<tr id=\"record_'.$rec->id.'\">';\r\n echo '<td>'.stripslashes($rec->created_on).'</td>';\r\n echo '<td>'.stripslashes($rec->type).'</td>';\r\n echo '<td>'.stripslashes($rec->ip).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['OS']['name']).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['browser']['name']).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['location']['name']).'</td>';\r\n echo '<td>\r\n <a href=\"\" data-post=\"action=detailed_log&type=' .$rec->type. '&id=' .$rec->id. '&detail=full&ip=' .$rec->ip. '\" data-type=\"modal\" data-toggle=\"tooltip\" title=\"Show details\"><div class=\"dashicons dashicons-list-view\"></div></a>\r\n <a href=\"admin.php?page=cybercure_security_detected_attacks&type=' .$rec->type. '&delete=' .$rec->id. '\" data-toggle=\"tooltip\" title=\"Delete entry\"><div class=\"dashicons dashicons-trash\"></div></a>\r\n </td></tr>';\r\n }}\r\n }", "public function renderRow()\n\t{\n\t\tglobal $Security, $Language, $CurrentLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// document_sequence\n\t\t// firelink_doc_no\n\t\t// project_name\n\t\t// document_tittle\n\t\t// submit_no\n\t\t// revision_no\n\t\t// transmit_no\n\t\t// transmit_date\n\t\t// direction\n\t\t// approval_status\n\t\t// document_link\n\t\t// transaction_date\n\t\t// document_native\n\t\t// username\n\t\t// expiry_date\n\n\t\tif ($this->RowType == ROWTYPE_VIEW) { // View row\n\n\t\t\t// document_sequence\n\t\t\t$this->document_sequence->ViewValue = $this->document_sequence->CurrentValue;\n\t\t\t$this->document_sequence->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\tif ($this->firelink_doc_no->VirtualValue <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->ViewValue = $this->firelink_doc_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->firelink_doc_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->firelink_doc_no->ViewCustomAttributes = \"\";\n\n\t\t\t// project_name\n\t\t\t$this->project_name->ViewValue = $this->project_name->CurrentValue;\n\t\t\t$this->project_name->ViewCustomAttributes = \"\";\n\n\t\t\t// document_tittle\n\t\t\t$this->document_tittle->ViewValue = $this->document_tittle->CurrentValue;\n\t\t\t$this->document_tittle->ViewValue = strtoupper($this->document_tittle->ViewValue);\n\t\t\t$this->document_tittle->ViewCustomAttributes = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->ViewValue = $this->submit_no->CurrentValue;\n\t\t\t$this->submit_no->ViewValue = FormatNumber($this->submit_no->ViewValue, 0, -1, -2, -2);\n\t\t\t$this->submit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->submit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->ViewValue = $this->revision_no->CurrentValue;\n\t\t\t$this->revision_no->ViewValue = strtoupper($this->revision_no->ViewValue);\n\t\t\t$this->revision_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_no\n\t\t\tif ($this->transmit_no->VirtualValue <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->VirtualValue;\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->ViewValue = $this->transmit_no->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->ViewValue = NULL;\n\t\t\t}\n\t\t\t}\n\t\t\t$this->transmit_no->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->transmit_no->ViewCustomAttributes = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->ViewValue = $this->transmit_date->CurrentValue;\n\t\t\t$this->transmit_date->ViewValue = FormatDateTime($this->transmit_date->ViewValue, 0);\n\t\t\t$this->transmit_date->ViewCustomAttributes = \"\";\n\n\t\t\t// direction\n\t\t\tif (strval($this->direction->CurrentValue) <> \"\") {\n\t\t\t\t$this->direction->ViewValue = $this->direction->optionCaption($this->direction->CurrentValue);\n\t\t\t} else {\n\t\t\t\t$this->direction->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->direction->ViewCustomAttributes = \"\";\n\n\t\t\t// approval_status\n\t\t\t$curVal = strval($this->approval_status->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\t\tif ($this->approval_status->ViewValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = strtoupper($rswrk->fields('df'));\n\t\t\t\t\t\t$arwrk[2] = strtoupper($rswrk->fields('df2'));\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->CurrentValue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->approval_status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->approval_status->ViewCustomAttributes = \"\";\n\n\t\t\t// document_link\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->ViewValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->ViewValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ViewCustomAttributes = \"\";\n\n\t\t\t// transaction_date\n\t\t\t$this->transaction_date->ViewValue = $this->transaction_date->CurrentValue;\n\t\t\t$this->transaction_date->ViewValue = FormatDateTime($this->transaction_date->ViewValue, 0);\n\t\t\t$this->transaction_date->ViewCustomAttributes = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->ViewValue = $this->document_native->CurrentValue;\n\t\t\t$this->document_native->CellCssStyle .= \"text-align: left;\";\n\t\t\t$this->document_native->ViewCustomAttributes = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->ViewValue = $this->expiry_date->CurrentValue;\n\t\t\t$this->expiry_date->ViewValue = FormatDateTime($this->expiry_date->ViewValue, 0);\n\t\t\t$this->expiry_date->ViewCustomAttributes = \"\";\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->firelink_doc_no->TooltipValue = \"\";\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\t\t\t$this->submit_no->TooltipValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\t\t\t$this->revision_no->TooltipValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\t\t\t$this->transmit_no->TooltipValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\t\t\t$this->transmit_date->TooltipValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\t\t\t$this->direction->TooltipValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\t\t\t$this->approval_status->TooltipValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\t\t\t$this->document_link->TooltipValue = \"\";\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\t\t\t$this->document_native->TooltipValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t\t$this->expiry_date->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == ROWTYPE_ADD) { // Add row\n\n\t\t\t// firelink_doc_no\n\t\t\t$this->firelink_doc_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->firelink_doc_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->firelink_doc_no->CurrentValue = HtmlDecode($this->firelink_doc_no->CurrentValue);\n\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t$curVal = strval($this->firelink_doc_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->firelink_doc_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"firelink_doc_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->firelink_doc_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$arwrk[2] = HtmlEncode(strtoupper($rswrk->fields('df2')));\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = $this->firelink_doc_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->firelink_doc_no->EditValue = HtmlEncode($this->firelink_doc_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->firelink_doc_no->PlaceHolder = RemoveHtml($this->firelink_doc_no->caption());\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->submit_no->EditCustomAttributes = \"\";\n\t\t\t$this->submit_no->EditValue = HtmlEncode($this->submit_no->CurrentValue);\n\t\t\t$this->submit_no->PlaceHolder = RemoveHtml($this->submit_no->caption());\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->revision_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->revision_no->CurrentValue = HtmlDecode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->EditValue = HtmlEncode($this->revision_no->CurrentValue);\n\t\t\t$this->revision_no->PlaceHolder = RemoveHtml($this->revision_no->caption());\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_no->EditCustomAttributes = \"\";\n\t\t\tif (REMOVE_XSS)\n\t\t\t\t$this->transmit_no->CurrentValue = HtmlDecode($this->transmit_no->CurrentValue);\n\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t$curVal = strval($this->transmit_no->CurrentValue);\n\t\t\tif ($curVal <> \"\") {\n\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->lookupCacheOption($curVal);\n\t\t\t\tif ($this->transmit_no->EditValue === NULL) { // Lookup from database\n\t\t\t\t\t$filterWrk = \"\\\"transmittal_no\\\"\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t\t$sqlWrk = $this->transmit_no->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t\t$arwrk[1] = HtmlEncode(strtoupper($rswrk->fields('df')));\n\t\t\t\t\t\t$this->transmit_no->EditValue = $this->transmit_no->displayValue($arwrk);\n\t\t\t\t\t\t$rswrk->Close();\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->transmit_no->EditValue = HtmlEncode($this->transmit_no->CurrentValue);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->transmit_no->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->transmit_no->PlaceHolder = RemoveHtml($this->transmit_no->caption());\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->transmit_date->EditCustomAttributes = \"\";\n\t\t\t$this->transmit_date->EditValue = HtmlEncode(FormatDateTime($this->transmit_date->CurrentValue, 8));\n\t\t\t$this->transmit_date->PlaceHolder = RemoveHtml($this->transmit_date->caption());\n\n\t\t\t// direction\n\t\t\t$this->direction->EditCustomAttributes = \"\";\n\t\t\t$this->direction->EditValue = $this->direction->options(FALSE);\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->approval_status->EditCustomAttributes = \"\";\n\t\t\t$curVal = trim(strval($this->approval_status->CurrentValue));\n\t\t\tif ($curVal <> \"\")\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->lookupCacheOption($curVal);\n\t\t\telse\n\t\t\t\t$this->approval_status->ViewValue = $this->approval_status->Lookup !== NULL && is_array($this->approval_status->Lookup->Options) ? $curVal : NULL;\n\t\t\tif ($this->approval_status->ViewValue !== NULL) { // Load from cache\n\t\t\t\t$this->approval_status->EditValue = array_values($this->approval_status->Lookup->Options);\n\t\t\t} else { // Lookup from database\n\t\t\t\tif ($curVal == \"\") {\n\t\t\t\t\t$filterWrk = \"0=1\";\n\t\t\t\t} else {\n\t\t\t\t\t$filterWrk = \"\\\"short_code\\\"\" . SearchString(\"=\", $this->approval_status->CurrentValue, DATATYPE_STRING, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->approval_status->Lookup->getSql(TRUE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t\t$rowcnt = count($arwrk);\n\t\t\t\tfor ($i = 0; $i < $rowcnt; $i++) {\n\t\t\t\t\t$arwrk[$i][1] = strtoupper($arwrk[$i][1]);\n\t\t\t\t\t$arwrk[$i][2] = strtoupper($arwrk[$i][2]);\n\t\t\t\t}\n\t\t\t\t$this->approval_status->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// document_link\n\t\t\t$this->document_link->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_link->EditCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->EditValue = $this->document_link->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->document_link->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!EmptyValue($this->document_link->CurrentValue))\n\t\t\t\t\t$this->document_link->Upload->FileName = $this->document_link->CurrentValue;\n\t\t\tif (($this->isShow() || $this->isCopy()) && !$this->EventCancelled)\n\t\t\t\tRenderUploadField($this->document_link);\n\n\t\t\t// document_native\n\t\t\t$this->document_native->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->document_native->EditCustomAttributes = \"\";\n\t\t\t$this->document_native->EditValue = HtmlEncode($this->document_native->CurrentValue);\n\t\t\t$this->document_native->PlaceHolder = RemoveHtml($this->document_native->caption());\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->expiry_date->EditCustomAttributes = \"\";\n\t\t\t$this->expiry_date->EditValue = HtmlEncode(FormatDateTime($this->expiry_date->CurrentValue, 8));\n\t\t\t$this->expiry_date->PlaceHolder = RemoveHtml($this->expiry_date->caption());\n\n\t\t\t// Add refer script\n\t\t\t// firelink_doc_no\n\n\t\t\t$this->firelink_doc_no->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->firelink_doc_no->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->firelink_doc_no->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->firelink_doc_no->HrefValue = FullUrl($this->firelink_doc_no->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->firelink_doc_no->HrefValue = \"\";\n\t\t\t}\n\n\t\t\t// submit_no\n\t\t\t$this->submit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->submit_no->HrefValue = \"\";\n\n\t\t\t// revision_no\n\t\t\t$this->revision_no->LinkCustomAttributes = \"\";\n\t\t\t$this->revision_no->HrefValue = \"\";\n\n\t\t\t// transmit_no\n\t\t\t$this->transmit_no->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_no->HrefValue = \"\";\n\n\t\t\t// transmit_date\n\t\t\t$this->transmit_date->LinkCustomAttributes = \"\";\n\t\t\t$this->transmit_date->HrefValue = \"\";\n\n\t\t\t// direction\n\t\t\t$this->direction->LinkCustomAttributes = \"\";\n\t\t\t$this->direction->HrefValue = \"\";\n\n\t\t\t// approval_status\n\t\t\t$this->approval_status->LinkCustomAttributes = \"\";\n\t\t\t$this->approval_status->HrefValue = \"\";\n\n\t\t\t// document_link\n\t\t\t$this->document_link->LinkCustomAttributes = \"\";\n\t\t\tif (!EmptyValue($this->document_link->Upload->DbValue)) {\n\t\t\t\t$this->document_link->HrefValue = GetFileUploadUrl($this->document_link, $this->document_link->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->document_link->LinkAttrs[\"target\"] = \"_blank\"; // Add target\n\t\t\t\tif ($this->isExport()) $this->document_link->HrefValue = FullUrl($this->document_link->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->document_link->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->document_link->ExportHrefValue = $this->document_link->UploadPath . $this->document_link->Upload->DbValue;\n\n\t\t\t// document_native\n\t\t\t$this->document_native->LinkCustomAttributes = \"\";\n\t\t\t$this->document_native->HrefValue = \"\";\n\n\t\t\t// expiry_date\n\t\t\t$this->expiry_date->LinkCustomAttributes = \"\";\n\t\t\t$this->expiry_date->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == ROWTYPE_ADD || $this->RowType == ROWTYPE_EDIT || $this->RowType == ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->setupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tgl\n\t\t// no_spp\n\t\t// jns_spp\n\t\t// kd_mata\n\t\t// urai\n\t\t// jmlh\n\t\t// jmlh1\n\t\t// jmlh2\n\t\t// jmlh3\n\t\t// jmlh4\n\t\t// nm_perus\n\t\t// alamat\n\t\t// npwp\n\t\t// pimpinan\n\t\t// bank\n\t\t// rek\n\t\t// nospm\n\t\t// tglspm\n\t\t// ppn\n\t\t// ps21\n\t\t// ps22\n\t\t// ps23\n\t\t// ps4\n\t\t// kodespm\n\t\t// nambud\n\t\t// nppk\n\t\t// nipppk\n\t\t// prog\n\t\t// prog1\n\t\t// bayar\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tgl\n\t\t$this->tgl->ViewValue = $this->tgl->CurrentValue;\n\t\t$this->tgl->ViewValue = ew_FormatDateTime($this->tgl->ViewValue, 0);\n\t\t$this->tgl->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// jns_spp\n\t\t$this->jns_spp->ViewValue = $this->jns_spp->CurrentValue;\n\t\t$this->jns_spp->ViewCustomAttributes = \"\";\n\n\t\t// kd_mata\n\t\t$this->kd_mata->ViewValue = $this->kd_mata->CurrentValue;\n\t\t$this->kd_mata->ViewCustomAttributes = \"\";\n\n\t\t// urai\n\t\t$this->urai->ViewValue = $this->urai->CurrentValue;\n\t\t$this->urai->ViewCustomAttributes = \"\";\n\n\t\t// jmlh\n\t\t$this->jmlh->ViewValue = $this->jmlh->CurrentValue;\n\t\t$this->jmlh->ViewCustomAttributes = \"\";\n\n\t\t// jmlh1\n\t\t$this->jmlh1->ViewValue = $this->jmlh1->CurrentValue;\n\t\t$this->jmlh1->ViewCustomAttributes = \"\";\n\n\t\t// jmlh2\n\t\t$this->jmlh2->ViewValue = $this->jmlh2->CurrentValue;\n\t\t$this->jmlh2->ViewCustomAttributes = \"\";\n\n\t\t// jmlh3\n\t\t$this->jmlh3->ViewValue = $this->jmlh3->CurrentValue;\n\t\t$this->jmlh3->ViewCustomAttributes = \"\";\n\n\t\t// jmlh4\n\t\t$this->jmlh4->ViewValue = $this->jmlh4->CurrentValue;\n\t\t$this->jmlh4->ViewCustomAttributes = \"\";\n\n\t\t// nm_perus\n\t\t$this->nm_perus->ViewValue = $this->nm_perus->CurrentValue;\n\t\t$this->nm_perus->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan\n\t\t$this->pimpinan->ViewValue = $this->pimpinan->CurrentValue;\n\t\t$this->pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// rek\n\t\t$this->rek->ViewValue = $this->rek->CurrentValue;\n\t\t$this->rek->ViewCustomAttributes = \"\";\n\n\t\t// nospm\n\t\t$this->nospm->ViewValue = $this->nospm->CurrentValue;\n\t\t$this->nospm->ViewCustomAttributes = \"\";\n\n\t\t// tglspm\n\t\t$this->tglspm->ViewValue = $this->tglspm->CurrentValue;\n\t\t$this->tglspm->ViewValue = ew_FormatDateTime($this->tglspm->ViewValue, 0);\n\t\t$this->tglspm->ViewCustomAttributes = \"\";\n\n\t\t// ppn\n\t\t$this->ppn->ViewValue = $this->ppn->CurrentValue;\n\t\t$this->ppn->ViewCustomAttributes = \"\";\n\n\t\t// ps21\n\t\t$this->ps21->ViewValue = $this->ps21->CurrentValue;\n\t\t$this->ps21->ViewCustomAttributes = \"\";\n\n\t\t// ps22\n\t\t$this->ps22->ViewValue = $this->ps22->CurrentValue;\n\t\t$this->ps22->ViewCustomAttributes = \"\";\n\n\t\t// ps23\n\t\t$this->ps23->ViewValue = $this->ps23->CurrentValue;\n\t\t$this->ps23->ViewCustomAttributes = \"\";\n\n\t\t// ps4\n\t\t$this->ps4->ViewValue = $this->ps4->CurrentValue;\n\t\t$this->ps4->ViewCustomAttributes = \"\";\n\n\t\t// kodespm\n\t\t$this->kodespm->ViewValue = $this->kodespm->CurrentValue;\n\t\t$this->kodespm->ViewCustomAttributes = \"\";\n\n\t\t// nambud\n\t\t$this->nambud->ViewValue = $this->nambud->CurrentValue;\n\t\t$this->nambud->ViewCustomAttributes = \"\";\n\n\t\t// nppk\n\t\t$this->nppk->ViewValue = $this->nppk->CurrentValue;\n\t\t$this->nppk->ViewCustomAttributes = \"\";\n\n\t\t// nipppk\n\t\t$this->nipppk->ViewValue = $this->nipppk->CurrentValue;\n\t\t$this->nipppk->ViewCustomAttributes = \"\";\n\n\t\t// prog\n\t\t$this->prog->ViewValue = $this->prog->CurrentValue;\n\t\t$this->prog->ViewCustomAttributes = \"\";\n\n\t\t// prog1\n\t\t$this->prog1->ViewValue = $this->prog1->CurrentValue;\n\t\t$this->prog1->ViewCustomAttributes = \"\";\n\n\t\t// bayar\n\t\t$this->bayar->ViewValue = $this->bayar->CurrentValue;\n\t\t$this->bayar->ViewCustomAttributes = \"\";\n\n\t\t\t// tgl\n\t\t\t$this->tgl->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl->HrefValue = \"\";\n\t\t\t$this->tgl->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// jns_spp\n\t\t\t$this->jns_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_spp->HrefValue = \"\";\n\t\t\t$this->jns_spp->TooltipValue = \"\";\n\n\t\t\t// kd_mata\n\t\t\t$this->kd_mata->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_mata->HrefValue = \"\";\n\t\t\t$this->kd_mata->TooltipValue = \"\";\n\n\t\t\t// urai\n\t\t\t$this->urai->LinkCustomAttributes = \"\";\n\t\t\t$this->urai->HrefValue = \"\";\n\t\t\t$this->urai->TooltipValue = \"\";\n\n\t\t\t// jmlh\n\t\t\t$this->jmlh->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh->HrefValue = \"\";\n\t\t\t$this->jmlh->TooltipValue = \"\";\n\n\t\t\t// jmlh1\n\t\t\t$this->jmlh1->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh1->HrefValue = \"\";\n\t\t\t$this->jmlh1->TooltipValue = \"\";\n\n\t\t\t// jmlh2\n\t\t\t$this->jmlh2->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh2->HrefValue = \"\";\n\t\t\t$this->jmlh2->TooltipValue = \"\";\n\n\t\t\t// jmlh3\n\t\t\t$this->jmlh3->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh3->HrefValue = \"\";\n\t\t\t$this->jmlh3->TooltipValue = \"\";\n\n\t\t\t// jmlh4\n\t\t\t$this->jmlh4->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh4->HrefValue = \"\";\n\t\t\t$this->jmlh4->TooltipValue = \"\";\n\n\t\t\t// nm_perus\n\t\t\t$this->nm_perus->LinkCustomAttributes = \"\";\n\t\t\t$this->nm_perus->HrefValue = \"\";\n\t\t\t$this->nm_perus->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$this->npwp->LinkCustomAttributes = \"\";\n\t\t\t$this->npwp->HrefValue = \"\";\n\t\t\t$this->npwp->TooltipValue = \"\";\n\n\t\t\t// pimpinan\n\t\t\t$this->pimpinan->LinkCustomAttributes = \"\";\n\t\t\t$this->pimpinan->HrefValue = \"\";\n\t\t\t$this->pimpinan->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// rek\n\t\t\t$this->rek->LinkCustomAttributes = \"\";\n\t\t\t$this->rek->HrefValue = \"\";\n\t\t\t$this->rek->TooltipValue = \"\";\n\n\t\t\t// nospm\n\t\t\t$this->nospm->LinkCustomAttributes = \"\";\n\t\t\t$this->nospm->HrefValue = \"\";\n\t\t\t$this->nospm->TooltipValue = \"\";\n\n\t\t\t// tglspm\n\t\t\t$this->tglspm->LinkCustomAttributes = \"\";\n\t\t\t$this->tglspm->HrefValue = \"\";\n\t\t\t$this->tglspm->TooltipValue = \"\";\n\n\t\t\t// ppn\n\t\t\t$this->ppn->LinkCustomAttributes = \"\";\n\t\t\t$this->ppn->HrefValue = \"\";\n\t\t\t$this->ppn->TooltipValue = \"\";\n\n\t\t\t// ps21\n\t\t\t$this->ps21->LinkCustomAttributes = \"\";\n\t\t\t$this->ps21->HrefValue = \"\";\n\t\t\t$this->ps21->TooltipValue = \"\";\n\n\t\t\t// ps22\n\t\t\t$this->ps22->LinkCustomAttributes = \"\";\n\t\t\t$this->ps22->HrefValue = \"\";\n\t\t\t$this->ps22->TooltipValue = \"\";\n\n\t\t\t// ps23\n\t\t\t$this->ps23->LinkCustomAttributes = \"\";\n\t\t\t$this->ps23->HrefValue = \"\";\n\t\t\t$this->ps23->TooltipValue = \"\";\n\n\t\t\t// ps4\n\t\t\t$this->ps4->LinkCustomAttributes = \"\";\n\t\t\t$this->ps4->HrefValue = \"\";\n\t\t\t$this->ps4->TooltipValue = \"\";\n\n\t\t\t// kodespm\n\t\t\t$this->kodespm->LinkCustomAttributes = \"\";\n\t\t\t$this->kodespm->HrefValue = \"\";\n\t\t\t$this->kodespm->TooltipValue = \"\";\n\n\t\t\t// nambud\n\t\t\t$this->nambud->LinkCustomAttributes = \"\";\n\t\t\t$this->nambud->HrefValue = \"\";\n\t\t\t$this->nambud->TooltipValue = \"\";\n\n\t\t\t// nppk\n\t\t\t$this->nppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nppk->HrefValue = \"\";\n\t\t\t$this->nppk->TooltipValue = \"\";\n\n\t\t\t// nipppk\n\t\t\t$this->nipppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nipppk->HrefValue = \"\";\n\t\t\t$this->nipppk->TooltipValue = \"\";\n\n\t\t\t// prog\n\t\t\t$this->prog->LinkCustomAttributes = \"\";\n\t\t\t$this->prog->HrefValue = \"\";\n\t\t\t$this->prog->TooltipValue = \"\";\n\n\t\t\t// prog1\n\t\t\t$this->prog1->LinkCustomAttributes = \"\";\n\t\t\t$this->prog1->HrefValue = \"\";\n\t\t\t$this->prog1->TooltipValue = \"\";\n\n\t\t\t// bayar\n\t\t\t$this->bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->bayar->HrefValue = \"\";\n\t\t\t$this->bayar->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function renderListData($data, $oAllRowsData)\r\n\t{\r\n\t\t$listModel = $this->getlistModel();\r\n\t\t$params = $this->getParams();\r\n\t\t$target = $params->get('link_target', '');\r\n\t\t$smart_link = $params->get('link_smart_link', false);\r\n\t\tif ($listModel->getOutPutFormat() != 'rss' && ($smart_link || $target == 'mediabox')) {\r\n\t\t\tFabrikHelperHTML::slimbox();\r\n\t\t}\r\n\t\t$data = FabrikWorker::JSONtoData($data, true);\r\n\t\t\r\n\t\tif (!empty($data)) {\r\n\t\t\tif (array_key_exists('label', $data)) {\r\n\t\t\t\t$data = (array)$this->_renderListData($data, $oAllRowsData);\r\n\t\t\t} else {\r\n\t\t\t\tfor ($i = 0; $i < count($data); $i++) {\r\n\t\t\t\t\t$data[$i] = JArrayHelper::fromObject($data[$i]);\r\n\t\t\t\t\t$data[$i] = $this->_renderListData($data[$i], $oAllRowsData);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$data = json_encode($data);\r\n\t\treturn parent::renderListData($data, $oAllRowsData);\r\n\t}", "public function visualizzazione(){\n $nameColumn = $this->getColumnName();\n $tuple = $this->read();\n foreach($nameColumn as $nome){\n $x = ' <td> '. $nome . ' </td> ';\n echo $x;\n }\n \n foreach($tuple as $ris){\n $str ='<tr> <td> '.$ris->getId(). ' </td> '.\n '<td> '.$ris->getNome(). '</td>'.\n '<td> '.$ris->getUsername(). '</td>'.\n '<td> '.$ris->getPassword(). '</td>'.\n '<td> '.$ris->getEmail(). '</td>'.\n '<td> '.$ris->getMuseo(). '</td>'.\n '</tr>';\n echo $str;\n };\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Balance->FormValue == $this->Balance->CurrentValue && is_numeric(ew_StrToFloat($this->Balance->CurrentValue)))\n\t\t\t$this->Balance->CurrentValue = ew_StrToFloat($this->Balance->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Supplier_ID\n\t\t// Supplier_Number\n\t\t// Supplier_Name\n\t\t// Address\n\t\t// City\n\t\t// Country\n\t\t// Contact_Person\n\t\t// Phone_Number\n\t\t// Email\n\t\t// Mobile_Number\n\t\t// Notes\n\t\t// Balance\n\t\t// Is_Stock_Available\n\t\t// Date_Added\n\t\t// Added_By\n\t\t// Date_Updated\n\t\t// Updated_By\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Supplier_ID\n\t\t$this->Supplier_ID->ViewValue = $this->Supplier_ID->CurrentValue;\n\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Number\n\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Name\n\t\t$this->Supplier_Name->ViewValue = $this->Supplier_Name->CurrentValue;\n\t\t$this->Supplier_Name->ViewCustomAttributes = \"\";\n\n\t\t// Address\n\t\t$this->Address->ViewValue = $this->Address->CurrentValue;\n\t\t$this->Address->ViewCustomAttributes = \"\";\n\n\t\t// City\n\t\t$this->City->ViewValue = $this->City->CurrentValue;\n\t\t$this->City->ViewCustomAttributes = \"\";\n\n\t\t// Country\n\t\t$this->Country->ViewValue = $this->Country->CurrentValue;\n\t\t$this->Country->ViewCustomAttributes = \"\";\n\n\t\t// Contact_Person\n\t\t$this->Contact_Person->ViewValue = $this->Contact_Person->CurrentValue;\n\t\t$this->Contact_Person->ViewCustomAttributes = \"\";\n\n\t\t// Phone_Number\n\t\t$this->Phone_Number->ViewValue = $this->Phone_Number->CurrentValue;\n\t\t$this->Phone_Number->ViewCustomAttributes = \"\";\n\n\t\t// Email\n\t\t$this->_Email->ViewValue = $this->_Email->CurrentValue;\n\t\t$this->_Email->ViewCustomAttributes = \"\";\n\n\t\t// Mobile_Number\n\t\t$this->Mobile_Number->ViewValue = $this->Mobile_Number->CurrentValue;\n\t\t$this->Mobile_Number->ViewCustomAttributes = \"\";\n\n\t\t// Notes\n\t\t$this->Notes->ViewValue = $this->Notes->CurrentValue;\n\t\t$this->Notes->ViewCustomAttributes = \"\";\n\n\t\t// Balance\n\t\t$this->Balance->ViewValue = $this->Balance->CurrentValue;\n\t\t$this->Balance->ViewValue = ew_FormatCurrency($this->Balance->ViewValue, 2, -2, -2, -2);\n\t\t$this->Balance->CellCssStyle .= \"text-align: right;\";\n\t\t$this->Balance->ViewCustomAttributes = \"\";\n\n\t\t// Is_Stock_Available\n\t\tif (ew_ConvertToBool($this->Is_Stock_Available->CurrentValue)) {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(2) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(2) : \"Y\";\n\t\t} else {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(1) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(1) : \"N\";\n\t\t}\n\t\t$this->Is_Stock_Available->ViewCustomAttributes = \"\";\n\n\t\t// Date_Added\n\t\t$this->Date_Added->ViewValue = $this->Date_Added->CurrentValue;\n\t\t$this->Date_Added->ViewCustomAttributes = \"\";\n\n\t\t// Added_By\n\t\t$this->Added_By->ViewValue = $this->Added_By->CurrentValue;\n\t\t$this->Added_By->ViewCustomAttributes = \"\";\n\n\t\t// Date_Updated\n\t\t$this->Date_Updated->ViewValue = $this->Date_Updated->CurrentValue;\n\t\t$this->Date_Updated->ViewCustomAttributes = \"\";\n\n\t\t// Updated_By\n\t\t$this->Updated_By->ViewValue = $this->Updated_By->CurrentValue;\n\t\t$this->Updated_By->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\t\t\t$this->Supplier_ID->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\t\t\t$this->Supplier_Name->TooltipValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\t\t\t$this->Address->TooltipValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\t\t\t$this->City->TooltipValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\t\t\t$this->Country->TooltipValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\t\t\t$this->Contact_Person->TooltipValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\t\t\t$this->Phone_Number->TooltipValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\t\t\t$this->_Email->TooltipValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\t\t\t$this->Mobile_Number->TooltipValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\t\t\t$this->Notes->TooltipValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\t\t\t$this->Balance->TooltipValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\t\t\t$this->Is_Stock_Available->TooltipValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\t\t\t$this->Date_Added->TooltipValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\t\t\t$this->Added_By->TooltipValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\t\t\t$this->Date_Updated->TooltipValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t\t$this->Updated_By->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->EditValue = $this->Supplier_ID->CurrentValue;\n\t\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->EditValue = ew_HtmlEncode($this->Supplier_Number->CurrentValue);\n\t\t\t$this->Supplier_Number->PlaceHolder = ew_RemoveHtml($this->Supplier_Number->FldCaption());\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Name->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->EditValue = ew_HtmlEncode($this->Supplier_Name->CurrentValue);\n\t\t\t$this->Supplier_Name->PlaceHolder = ew_RemoveHtml($this->Supplier_Name->FldCaption());\n\n\t\t\t// Address\n\t\t\t$this->Address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Address->EditCustomAttributes = \"\";\n\t\t\t$this->Address->EditValue = ew_HtmlEncode($this->Address->CurrentValue);\n\t\t\t$this->Address->PlaceHolder = ew_RemoveHtml($this->Address->FldCaption());\n\n\t\t\t// City\n\t\t\t$this->City->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->City->EditCustomAttributes = \"\";\n\t\t\t$this->City->EditValue = ew_HtmlEncode($this->City->CurrentValue);\n\t\t\t$this->City->PlaceHolder = ew_RemoveHtml($this->City->FldCaption());\n\n\t\t\t// Country\n\t\t\t$this->Country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Country->EditCustomAttributes = \"\";\n\t\t\t$this->Country->EditValue = ew_HtmlEncode($this->Country->CurrentValue);\n\t\t\t$this->Country->PlaceHolder = ew_RemoveHtml($this->Country->FldCaption());\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Contact_Person->EditCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->EditValue = ew_HtmlEncode($this->Contact_Person->CurrentValue);\n\t\t\t$this->Contact_Person->PlaceHolder = ew_RemoveHtml($this->Contact_Person->FldCaption());\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Phone_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->EditValue = ew_HtmlEncode($this->Phone_Number->CurrentValue);\n\t\t\t$this->Phone_Number->PlaceHolder = ew_RemoveHtml($this->Phone_Number->FldCaption());\n\n\t\t\t// Email\n\t\t\t$this->_Email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_Email->EditCustomAttributes = \"\";\n\t\t\t$this->_Email->EditValue = ew_HtmlEncode($this->_Email->CurrentValue);\n\t\t\t$this->_Email->PlaceHolder = ew_RemoveHtml($this->_Email->FldCaption());\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Mobile_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->EditValue = ew_HtmlEncode($this->Mobile_Number->CurrentValue);\n\t\t\t$this->Mobile_Number->PlaceHolder = ew_RemoveHtml($this->Mobile_Number->FldCaption());\n\n\t\t\t// Notes\n\t\t\t$this->Notes->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Notes->EditCustomAttributes = \"\";\n\t\t\t$this->Notes->EditValue = ew_HtmlEncode($this->Notes->CurrentValue);\n\t\t\t$this->Notes->PlaceHolder = ew_RemoveHtml($this->Notes->FldCaption());\n\n\t\t\t// Balance\n\t\t\t$this->Balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Balance->EditCustomAttributes = \"\";\n\t\t\t$this->Balance->EditValue = ew_HtmlEncode($this->Balance->CurrentValue);\n\t\t\t$this->Balance->PlaceHolder = ew_RemoveHtml($this->Balance->FldCaption());\n\t\t\tif (strval($this->Balance->EditValue) <> \"\" && is_numeric($this->Balance->EditValue)) $this->Balance->EditValue = ew_FormatNumber($this->Balance->EditValue, -2, -2, -2, -2);\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Is_Stock_Available->EditCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->EditValue = $this->Is_Stock_Available->Options(TRUE);\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Date_Added->EditCustomAttributes = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Added_By->EditCustomAttributes = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t// Updated_By\n\t\t\t// Edit refer script\n\t\t\t// Supplier_ID\n\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "protected function renderArray() {}", "public function renderItems()\n {\n $content = array_filter([\n $this->renderCaption(),\n $this->renderColumnGroup(),\n $this->showHeader ? $this->renderTableHeader() : false,\n $this->showFooter ? $this->renderTableFooter() : false,\n $this->renderTableBody(),\n ]);\n\n $table = Html::tag('table', implode(\"\\n\", $content), $this->tableOptions);\n if ($this->responsive)\n {\n $table = Html::tag('div', $table, ['class' => 'table-responsive']);\n }\n else\n {\n $table = Html::tag('div', $table, ['class' => 'table-scrollable']);\n }\n\n return $table;\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fbid\n\t\t// name\n\t\t// email\n\t\t// password\n\t\t// validated_mobile\n\t\t// role_id\n\t\t// image\n\t\t// newsletter\n\t\t// points\n\t\t// last_modified\n\t\t// p2\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// id\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->ViewValue = $this->fbid->CurrentValue;\n\t\t\t$this->fbid->ViewCustomAttributes = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->ViewValue = $this->password->CurrentValue;\n\t\t\t$this->password->ViewCustomAttributes = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->ViewValue = $this->validated_mobile->CurrentValue;\n\t\t\t$this->validated_mobile->ViewCustomAttributes = \"\";\n\n\t\t\t// role_id\n\t\t\tif (strval($this->role_id->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->role_id->CurrentValue) {\n\t\t\t\t\tcase $this->role_id->FldTagValue(1):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->role_id->FldTagValue(2):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->role_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->role_id->ViewCustomAttributes = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->ViewValue = $this->image->CurrentValue;\n\t\t\t$this->image->ViewCustomAttributes = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->ViewValue = $this->newsletter->CurrentValue;\n\t\t\t$this->newsletter->ViewCustomAttributes = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->ViewValue = $this->points->CurrentValue;\n\t\t\t$this->points->ViewCustomAttributes = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->ViewValue = $this->last_modified->CurrentValue;\n\t\t\t$this->last_modified->ViewValue = ew_FormatDateTime($this->last_modified->ViewValue, 7);\n\t\t\t$this->last_modified->ViewCustomAttributes = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->ViewValue = $this->p2->CurrentValue;\n\t\t\t$this->p2->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->LinkCustomAttributes = \"\";\n\t\t\t$this->fbid->HrefValue = \"\";\n\t\t\t$this->fbid->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->LinkCustomAttributes = \"\";\n\t\t\t$this->password->HrefValue = \"\";\n\t\t\t$this->password->TooltipValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->LinkCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\t\t\t$this->validated_mobile->TooltipValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->LinkCustomAttributes = \"\";\n\t\t\t$this->role_id->HrefValue = \"\";\n\t\t\t$this->role_id->TooltipValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->LinkCustomAttributes = \"\";\n\t\t\t$this->image->HrefValue = \"\";\n\t\t\t$this->image->TooltipValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->LinkCustomAttributes = \"\";\n\t\t\t$this->newsletter->HrefValue = \"\";\n\t\t\t$this->newsletter->TooltipValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->LinkCustomAttributes = \"\";\n\t\t\t$this->points->HrefValue = \"\";\n\t\t\t$this->points->TooltipValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->LinkCustomAttributes = \"\";\n\t\t\t$this->last_modified->HrefValue = \"\";\n\t\t\t$this->last_modified->TooltipValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->LinkCustomAttributes = \"\";\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t\t$this->p2->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// id\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->EditCustomAttributes = \"\";\n\t\t\t$this->fbid->EditValue = ew_HtmlEncode($this->fbid->CurrentValue);\n\n\t\t\t// name\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue);\n\n\t\t\t// email\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue);\n\n\t\t\t// password\n\t\t\t$this->password->EditCustomAttributes = \"\";\n\t\t\t$this->password->EditValue = ew_HtmlEncode($this->password->CurrentValue);\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->EditCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->EditValue = ew_HtmlEncode($this->validated_mobile->CurrentValue);\n\n\t\t\t// role_id\n\t\t\t$this->role_id->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(1), $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(2), $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->role_id->EditValue = $arwrk;\n\n\t\t\t// image\n\t\t\t$this->image->EditCustomAttributes = \"\";\n\t\t\t$this->image->EditValue = ew_HtmlEncode($this->image->CurrentValue);\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->EditCustomAttributes = \"\";\n\t\t\t$this->newsletter->EditValue = ew_HtmlEncode($this->newsletter->CurrentValue);\n\n\t\t\t// points\n\t\t\t$this->points->EditCustomAttributes = \"\";\n\t\t\t$this->points->EditValue = ew_HtmlEncode($this->points->CurrentValue);\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->EditCustomAttributes = \"\";\n\t\t\t$this->last_modified->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->last_modified->CurrentValue, 7));\n\n\t\t\t// p2\n\t\t\t$this->p2->EditCustomAttributes = \"\";\n\t\t\t$this->p2->EditValue = ew_HtmlEncode($this->p2->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// id\n\n\t\t\t$this->id->HrefValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->HrefValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->HrefValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->HrefValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->HrefValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->HrefValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->HrefValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->HrefValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->HrefValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function renderRow(& $data) \n {\n $title = $this->_highlightText($data['title']);\n $text = $this->_highlightText($data['text']);\n if ($data['persite'] != 0) {\n $row = str_replace('{title}', $title, $this->_rowTemplate);\n $row = str_replace('{text}', $text, $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\n $row = str_replace('{title}', \n $data['persite'].\" results\", \n $this->_rowDetailTemplate);\n $row = str_replace('{text}', $data['lastmod'], $row);\n $url = $_SERVER['PHP_SELF'].'?'.\n $this->_http_parameters['query'].'='.\n urlencode($this->_query).\n '&'.$this->_http_parameters['siteid'].'='.$data['siteid'];\n $row = str_replace('{url}', $url, $row);\n $this->_html .= $row;\n } else {\n $row = str_replace('{title}', $title, $this->_rowTemplate);\n $row = str_replace('{text}', $text, $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\n $row = str_replace('{title}', \"\", $this->_rowDetailTemplate);\n $row = str_replace('{text}', $data['lastmod'], $row);\n $row = str_replace('{url}', $data['url'], $row);\n $this->_html .= $row;\n }\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->gross->FormValue == $this->gross->CurrentValue && is_numeric(ew_StrToFloat($this->gross->CurrentValue)))\n\t\t\t$this->gross->CurrentValue = ew_StrToFloat($this->gross->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bid_step->FormValue == $this->bid_step->CurrentValue && is_numeric(ew_StrToFloat($this->bid_step->CurrentValue)))\n\t\t\t$this->bid_step->CurrentValue = ew_StrToFloat($this->bid_step->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->rate->FormValue == $this->rate->CurrentValue && is_numeric(ew_StrToFloat($this->rate->CurrentValue)))\n\t\t\t$this->rate->CurrentValue = ew_StrToFloat($this->rate->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->proforma_amount->FormValue == $this->proforma_amount->CurrentValue && is_numeric(ew_StrToFloat($this->proforma_amount->CurrentValue)))\n\t\t\t$this->proforma_amount->CurrentValue = ew_StrToFloat($this->proforma_amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\t\t// master_id\n\t\t// lot_number\n\t\t// chop\n\t\t// estate\n\t\t// grade\n\t\t// jenis\n\t\t// sack\n\t\t// netto\n\t\t// gross\n\t\t// open_bid\n\t\t// currency\n\t\t// bid_step\n\t\t// rate\n\t\t// winner_id\n\t\t// sold_bid\n\t\t// proforma_number\n\t\t// proforma_amount\n\t\t// proforma_status\n\t\t// auction_status\n\t\t// enter_bid\n\t\t// last_bid\n\t\t// highest_bid\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// jenis\n\t\t$this->jenis->ViewValue = $this->jenis->CurrentValue;\n\t\t$this->jenis->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewValue = ew_FormatNumber($this->gross->ViewValue, 2, -2, -2, -2);\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// currency\n\t\tif (strval($this->currency->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_currency`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->currency->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $this->currency->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->currency->ViewValue = NULL;\n\t\t}\n\t\t$this->currency->ViewCustomAttributes = \"\";\n\n\t\t// bid_step\n\t\t$this->bid_step->ViewValue = $this->bid_step->CurrentValue;\n\t\t$this->bid_step->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t// winner_id\n\t\t$this->winner_id->ViewValue = $this->winner_id->CurrentValue;\n\t\t$this->winner_id->ViewCustomAttributes = \"\";\n\n\t\t// sold_bid\n\t\t$this->sold_bid->ViewValue = $this->sold_bid->CurrentValue;\n\t\t$this->sold_bid->ViewCustomAttributes = \"\";\n\n\t\t// proforma_number\n\t\t$this->proforma_number->ViewValue = $this->proforma_number->CurrentValue;\n\t\t$this->proforma_number->ViewCustomAttributes = \"\";\n\n\t\t// proforma_amount\n\t\t$this->proforma_amount->ViewValue = $this->proforma_amount->CurrentValue;\n\t\t$this->proforma_amount->ViewCustomAttributes = \"\";\n\n\t\t// proforma_status\n\t\tif (strval($this->proforma_status->CurrentValue) <> \"\") {\n\t\t\t$this->proforma_status->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->proforma_status->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->proforma_status->ViewValue .= $this->proforma_status->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->proforma_status->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->proforma_status->ViewValue = NULL;\n\t\t}\n\t\t$this->proforma_status->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\t\t\t$this->jenis->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\t\t\t$this->gross->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\t\t\t$this->currency->TooltipValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\t\t\t$this->bid_step->TooltipValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\t\t\t$this->rate->TooltipValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\t\t\t$this->proforma_number->TooltipValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\t\t\t$this->proforma_amount->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->CurrentValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->CurrentValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->CurrentValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->CurrentValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// jenis\n\t\t\t$this->jenis->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jenis->EditCustomAttributes = \"\";\n\t\t\t$this->jenis->EditValue = ew_HtmlEncode($this->jenis->CurrentValue);\n\t\t\t$this->jenis->PlaceHolder = ew_RemoveHtml($this->jenis->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->CurrentValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->CurrentValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\t\t\tif (strval($this->netto->EditValue) <> \"\" && is_numeric($this->netto->EditValue)) $this->netto->EditValue = ew_FormatNumber($this->netto->EditValue, -2, -2, -2, -2);\n\n\t\t\t// gross\n\t\t\t$this->gross->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->gross->EditCustomAttributes = \"\";\n\t\t\t$this->gross->EditValue = ew_HtmlEncode($this->gross->CurrentValue);\n\t\t\t$this->gross->PlaceHolder = ew_RemoveHtml($this->gross->FldCaption());\n\t\t\tif (strval($this->gross->EditValue) <> \"\" && is_numeric($this->gross->EditValue)) $this->gross->EditValue = ew_FormatNumber($this->gross->EditValue, -2, -2, -2, -2);\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->CurrentValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\t\t\tif (strval($this->open_bid->EditValue) <> \"\" && is_numeric($this->open_bid->EditValue)) $this->open_bid->EditValue = ew_FormatNumber($this->open_bid->EditValue, -2, -2, -2, -2);\n\n\t\t\t// currency\n\t\t\t$this->currency->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->currency->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tbl_currency`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->currency->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->currency->EditValue = $arwrk;\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bid_step->EditCustomAttributes = \"\";\n\t\t\t$this->bid_step->EditValue = ew_HtmlEncode($this->bid_step->CurrentValue);\n\t\t\t$this->bid_step->PlaceHolder = ew_RemoveHtml($this->bid_step->FldCaption());\n\t\t\tif (strval($this->bid_step->EditValue) <> \"\" && is_numeric($this->bid_step->EditValue)) $this->bid_step->EditValue = ew_FormatNumber($this->bid_step->EditValue, -2, -1, -2, 0);\n\n\t\t\t// rate\n\t\t\t$this->rate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rate->EditCustomAttributes = \"\";\n\t\t\t$this->rate->EditValue = ew_HtmlEncode($this->rate->CurrentValue);\n\t\t\t$this->rate->PlaceHolder = ew_RemoveHtml($this->rate->FldCaption());\n\t\t\tif (strval($this->rate->EditValue) <> \"\" && is_numeric($this->rate->EditValue)) $this->rate->EditValue = ew_FormatNumber($this->rate->EditValue, -2, -1, -2, 0);\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_number->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_number->EditValue = ew_HtmlEncode($this->proforma_number->CurrentValue);\n\t\t\t$this->proforma_number->PlaceHolder = ew_RemoveHtml($this->proforma_number->FldCaption());\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_amount->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->EditValue = ew_HtmlEncode($this->proforma_amount->CurrentValue);\n\t\t\t$this->proforma_amount->PlaceHolder = ew_RemoveHtml($this->proforma_amount->FldCaption());\n\t\t\tif (strval($this->proforma_amount->EditValue) <> \"\" && is_numeric($this->proforma_amount->EditValue)) $this->proforma_amount->EditValue = ew_FormatNumber($this->proforma_amount->EditValue, -2, -1, -2, 0);\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(TRUE);\n\n\t\t\t// Add refer script\n\t\t\t// lot_number\n\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function display_rows() {\n\n //Récuperation des quotes\n $records = $this->items;\n\n //Récuperation des colonnes\n list( $columns, $hidden ) = $this->get_column_info();\n if(!empty($records)){\n //pour chaque quote\n foreach($records as $rec){\n\n echo '<tr id=\"record_'.$rec->id.'\">';\n foreach ( $columns as $column_name => $column_display_name ) {\n\n $class = \"class='$column_name column-$column_name'\";\n $style = \"\";\n if ( in_array( $column_name, $hidden ) ) $style = ' style=\"display:none;\"';\n $attributes = $class . $style;\n\n $editlink = '/wp-admin/link.php?action=edit&id='.(int)$rec->id;\n\n switch ( $column_name ) {\n case \"col_id\":\techo '<td '.$attributes.'>'.stripslashes($rec->id).'</td>';\tbreak;\n case \"col_author\": echo '<td '.$attributes.'>'.stripslashes($rec->author).'</td>'; break;\n case \"col_quote\": echo '<td '.$attributes.'>'.stripslashes($rec->quote).'</td>'; break;\n case \"col_action\": echo '<td '.$attributes.'><a class=\"button\" style=\"margin-right:10px;\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=edit\">Editer</a><a class=\"button\" onclick=\"return confirm(\\'Etes-vous sur de vouloir supprimer la quote ?\\')\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=delete\">Supprimer</a></td>'; break;\n }\n\n }\n\n echo'</tr>';\n\n }\n }\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function table_table_row($values,$escape=false)\n{\n\t$cells=new ocp_tempcode();\n\tforeach ($values as $value)\n\t{\n\t\tif (($escape) && ((!is_object($value)) || ($value->pure_lang!==true)))\n\t\t\t$value=make_string_tempcode(escape_html(is_object($value)?$value->evaluate():$value));\n\n\t\t$cells->attach(do_template('TABLE_TABLE_ROW_CELL',array('_GUID'=>'700a982eb2262149295816ddee91b0e7','VALUE'=>$value)));\n\t}\n\n\treturn do_template('TABLE_TABLE_ROW',array('_GUID'=>'a4efacc07ecb165e37c355559f476ae9','CELLS'=>$cells));\n}", "public function editable_list_content($data){\r\n\t\treturn $this->auto_build_list_thead() .\r\n\t\t\t$this->editable_list_tbody($data);\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// detail_jenis_spp\n\t\t// id_jenis_spp\n\t\t// status_spp\n\t\t// no_spp\n\t\t// tgl_spp\n\t\t// keterangan\n\t\t// jumlah_up\n\t\t// bendahara\n\t\t// nama_pptk\n\t\t// nip_pptk\n\t\t// kode_program\n\t\t// kode_kegiatan\n\t\t// kode_sub_kegiatan\n\t\t// tahun_anggaran\n\t\t// jumlah_spd\n\t\t// nomer_dasar_spd\n\t\t// tanggal_spd\n\t\t// id_spd\n\t\t// kode_rekening\n\t\t// nama_bendahara\n\t\t// nip_bendahara\n\t\t// no_spm\n\t\t// tgl_spm\n\t\t// status_spm\n\t\t// nama_bank\n\t\t// nomer_rekening_bank\n\t\t// npwp\n\t\t// pimpinan_blud\n\t\t// nip_pimpinan\n\t\t// no_sptb\n\t\t// tgl_sptb\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// detail_jenis_spp\n\t\tif (strval($this->detail_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->detail_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `detail_jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_detail_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->detail_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->detail_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->detail_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->detail_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// id_jenis_spp\n\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->CurrentValue;\n\t\t$this->id_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// status_spp\n\t\tif (strval($this->status_spp->CurrentValue) <> \"\") {\n\t\t\t$this->status_spp->ViewValue = $this->status_spp->OptionCaption($this->status_spp->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spp->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spp\n\t\t$this->tgl_spp->ViewValue = $this->tgl_spp->CurrentValue;\n\t\t$this->tgl_spp->ViewValue = ew_FormatDateTime($this->tgl_spp->ViewValue, 0);\n\t\t$this->tgl_spp->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_up\n\t\t$this->jumlah_up->ViewValue = $this->jumlah_up->CurrentValue;\n\t\t$this->jumlah_up->ViewCustomAttributes = \"\";\n\n\t\t// bendahara\n\t\t$this->bendahara->ViewValue = $this->bendahara->CurrentValue;\n\t\t$this->bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nama_pptk\n\t\t$this->nama_pptk->ViewValue = $this->nama_pptk->CurrentValue;\n\t\t$this->nama_pptk->ViewCustomAttributes = \"\";\n\n\t\t// nip_pptk\n\t\t$this->nip_pptk->ViewValue = $this->nip_pptk->CurrentValue;\n\t\t$this->nip_pptk->ViewCustomAttributes = \"\";\n\n\t\t// kode_program\n\t\t$this->kode_program->ViewValue = $this->kode_program->CurrentValue;\n\t\t$this->kode_program->ViewCustomAttributes = \"\";\n\n\t\t// kode_kegiatan\n\t\t$this->kode_kegiatan->ViewValue = $this->kode_kegiatan->CurrentValue;\n\t\t$this->kode_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// kode_sub_kegiatan\n\t\t$this->kode_sub_kegiatan->ViewValue = $this->kode_sub_kegiatan->CurrentValue;\n\t\t$this->kode_sub_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// tahun_anggaran\n\t\t$this->tahun_anggaran->ViewValue = $this->tahun_anggaran->CurrentValue;\n\t\t$this->tahun_anggaran->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_spd\n\t\t$this->jumlah_spd->ViewValue = $this->jumlah_spd->CurrentValue;\n\t\t$this->jumlah_spd->ViewCustomAttributes = \"\";\n\n\t\t// nomer_dasar_spd\n\t\t$this->nomer_dasar_spd->ViewValue = $this->nomer_dasar_spd->CurrentValue;\n\t\t$this->nomer_dasar_spd->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_spd\n\t\t$this->tanggal_spd->ViewValue = $this->tanggal_spd->CurrentValue;\n\t\t$this->tanggal_spd->ViewValue = ew_FormatDateTime($this->tanggal_spd->ViewValue, 0);\n\t\t$this->tanggal_spd->ViewCustomAttributes = \"\";\n\n\t\t// id_spd\n\t\t$this->id_spd->ViewValue = $this->id_spd->CurrentValue;\n\t\t$this->id_spd->ViewCustomAttributes = \"\";\n\n\t\t// kode_rekening\n\t\t$this->kode_rekening->ViewValue = $this->kode_rekening->CurrentValue;\n\t\t$this->kode_rekening->ViewCustomAttributes = \"\";\n\n\t\t// nama_bendahara\n\t\t$this->nama_bendahara->ViewValue = $this->nama_bendahara->CurrentValue;\n\t\t$this->nama_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nip_bendahara\n\t\t$this->nip_bendahara->ViewValue = $this->nip_bendahara->CurrentValue;\n\t\t$this->nip_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// no_spm\n\t\t$this->no_spm->ViewValue = $this->no_spm->CurrentValue;\n\t\t$this->no_spm->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spm\n\t\t$this->tgl_spm->ViewValue = $this->tgl_spm->CurrentValue;\n\t\t$this->tgl_spm->ViewValue = ew_FormatDateTime($this->tgl_spm->ViewValue, 7);\n\t\t$this->tgl_spm->ViewCustomAttributes = \"\";\n\n\t\t// status_spm\n\t\tif (strval($this->status_spm->CurrentValue) <> \"\") {\n\t\t\t$this->status_spm->ViewValue = $this->status_spm->OptionCaption($this->status_spm->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spm->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spm->ViewCustomAttributes = \"\";\n\n\t\t// nama_bank\n\t\tif (strval($this->nama_bank->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`rekening`\" . ew_SearchString(\"=\", $this->nama_bank->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `rekening`, `rekening` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_blud_rs`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->nama_bank->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nama_bank, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nama_bank->ViewValue = NULL;\n\t\t}\n\t\t$this->nama_bank->ViewCustomAttributes = \"\";\n\n\t\t// nomer_rekening_bank\n\t\t$this->nomer_rekening_bank->ViewValue = $this->nomer_rekening_bank->CurrentValue;\n\t\t$this->nomer_rekening_bank->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan_blud\n\t\t$this->pimpinan_blud->ViewValue = $this->pimpinan_blud->CurrentValue;\n\t\t$this->pimpinan_blud->ViewCustomAttributes = \"\";\n\n\t\t// nip_pimpinan\n\t\t$this->nip_pimpinan->ViewValue = $this->nip_pimpinan->CurrentValue;\n\t\t$this->nip_pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// no_sptb\n\t\t$this->no_sptb->ViewValue = $this->no_sptb->CurrentValue;\n\t\t$this->no_sptb->ViewCustomAttributes = \"\";\n\n\t\t// tgl_sptb\n\t\t$this->tgl_sptb->ViewValue = $this->tgl_sptb->CurrentValue;\n\t\t$this->tgl_sptb->ViewValue = ew_FormatDateTime($this->tgl_sptb->ViewValue, 7);\n\t\t$this->tgl_sptb->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// detail_jenis_spp\n\t\t\t$this->detail_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->detail_jenis_spp->HrefValue = \"\";\n\t\t\t$this->detail_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// tgl_spp\n\t\t\t$this->tgl_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spp->HrefValue = \"\";\n\t\t\t$this->tgl_spp->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// no_spm\n\t\t\t$this->no_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spm->HrefValue = \"\";\n\t\t\t$this->no_spm->TooltipValue = \"\";\n\n\t\t\t// tgl_spm\n\t\t\t$this->tgl_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spm->HrefValue = \"\";\n\t\t\t$this->tgl_spm->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function display_rows() {\n \n //Get the records registered in the prepare_items method\n $records = $this->items;\n \n //Get the columns registered in the get_columns and get_sortable_columns methods\n list( $columns, $hidden ) = $this->get_column_info();\n \n //Loop for each record\n if(!empty($records)){foreach($records as $rec){\n \n // Format the status output\n if ( strtotime($rec->until) <= 0 ) {\n $rec->until = false;\n } else {\n //$rec->until = __('Membership ended','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->until));\n $rec->until = '&nbsp;|&nbsp;Active until '.strftime('%Y-%m-%d',strtotime($rec->until));\n }\n $rec->since = __('Applied','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->since));\n \n // Pre-define the edit link\n //$editlink = '/wp-admin/link.php?action=edit&link_id='.(int)$rec->link_id;\n\n //Open the line\n echo \"<tr id=\\\"record_\".$rec->groupID.\"\\\" class=\\\"row-active-\".$rec->active.\"\\\">\\n\";\n foreach ( $columns as $column_name => $column_display_name ) {\n \n //Style attributes for each col\n $class = \"class='$column_name column-$column_name'\";\n \n // Create output in cell\n switch ( $column_name ) {\n case \"col_what\": echo \"<td \".$class.\">\".$this->show_what($rec).\"</td>\\n\"; break;\n case \"col_user\": echo \"<td \".$class.\">\".$this->add_actions($rec).\"</td>\\n\"; break;\n case \"col_groupName\": echo \"<td \".$class.\">\".$rec->groupName.\"</td>\\n\"; break;\n case \"col_application\": echo \"<td \".$class.\">\".$rec->application\n .\"<br><b>\".$rec->since.\"</b></td>\\n\"; break;\n }\n }\n \n //Close the line\n echo \"</tr>\\n\";\n }}\n }", "public function render()\n {\n return view('components.opp-org-chart-row');\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->pro_base_price->FormValue == $this->pro_base_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_base_price->CurrentValue)))\n\t\t\t$this->pro_base_price->CurrentValue = ew_StrToFloat($this->pro_base_price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pro_sell_price->FormValue == $this->pro_sell_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_sell_price->CurrentValue)))\n\t\t\t$this->pro_sell_price->CurrentValue = ew_StrToFloat($this->pro_sell_price->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// product_id\n\t\t// cat_id\n\t\t// company_id\n\t\t// pro_model\n\t\t// pro_name\n\t\t// pro_description\n\t\t// pro_condition\n\t\t// pro_features\n\t\t// post_date\n\t\t// ads_id\n\t\t// pro_base_price\n\t\t// pro_sell_price\n\t\t// featured_image\n\t\t// folder_image\n\t\t// pro_status\n\t\t// branch_id\n\t\t// lang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// product_id\n\t\t$this->product_id->ViewValue = $this->product_id->CurrentValue;\n\t\t$this->product_id->ViewCustomAttributes = \"\";\n\n\t\t// cat_id\n\t\tif ($this->cat_id->VirtualValue <> \"\") {\n\t\t\t$this->cat_id->ViewValue = $this->cat_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->cat_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categories`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->cat_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->cat_id->ViewCustomAttributes = \"\";\n\n\t\t// company_id\n\t\tif ($this->company_id->VirtualValue <> \"\") {\n\t\t\t$this->company_id->ViewValue = $this->company_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->company_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `company`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->company_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->company_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_model\n\t\tif ($this->pro_model->VirtualValue <> \"\") {\n\t\t\t$this->pro_model->ViewValue = $this->pro_model->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->pro_model->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->pro_model->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->pro_model->ViewCustomAttributes = \"\";\n\n\t\t// pro_name\n\t\t$this->pro_name->ViewValue = $this->pro_name->CurrentValue;\n\t\t$this->pro_name->ViewCustomAttributes = \"\";\n\n\t\t// pro_description\n\t\t$this->pro_description->ViewValue = $this->pro_description->CurrentValue;\n\t\t$this->pro_description->ViewCustomAttributes = \"\";\n\n\t\t// pro_condition\n\t\tif (strval($this->pro_condition->CurrentValue) <> \"\") {\n\t\t\t$this->pro_condition->ViewValue = $this->pro_condition->OptionCaption($this->pro_condition->CurrentValue);\n\t\t} else {\n\t\t\t$this->pro_condition->ViewValue = NULL;\n\t\t}\n\t\t$this->pro_condition->ViewCustomAttributes = \"\";\n\n\t\t// pro_features\n\t\t$this->pro_features->ViewValue = $this->pro_features->CurrentValue;\n\t\t$this->pro_features->ViewCustomAttributes = \"\";\n\n\t\t// post_date\n\t\t$this->post_date->ViewValue = $this->post_date->CurrentValue;\n\t\t$this->post_date->ViewValue = ew_FormatDateTime($this->post_date->ViewValue, 1);\n\t\t$this->post_date->ViewCustomAttributes = \"\";\n\n\t\t// ads_id\n\t\t$this->ads_id->ViewValue = $this->ads_id->CurrentValue;\n\t\t$this->ads_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_base_price\n\t\t$this->pro_base_price->ViewValue = $this->pro_base_price->CurrentValue;\n\t\t$this->pro_base_price->ViewCustomAttributes = \"\";\n\n\t\t// pro_sell_price\n\t\t$this->pro_sell_price->ViewValue = $this->pro_sell_price->CurrentValue;\n\t\t$this->pro_sell_price->ViewCustomAttributes = \"\";\n\n\t\t// featured_image\n\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t$this->featured_image->ViewValue = $this->featured_image->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->featured_image->ViewValue = \"\";\n\t\t}\n\t\t$this->featured_image->ViewCustomAttributes = \"\";\n\n\t\t// folder_image\n\t\tif ($this->folder_image->VirtualValue <> \"\") {\n\t\t\t$this->folder_image->ViewValue = $this->folder_image->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->folder_image->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `product_gallery`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $this->folder_image->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->folder_image->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->folder_image->ViewCustomAttributes = \"\";\n\n\t\t// pro_status\n\t\tif (ew_ConvertToBool($this->pro_status->CurrentValue)) {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(1) <> \"\" ? $this->pro_status->FldTagCaption(1) : \"Yes\";\n\t\t} else {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(2) <> \"\" ? $this->pro_status->FldTagCaption(2) : \"No\";\n\t\t}\n\t\t$this->pro_status->ViewCustomAttributes = \"\";\n\n\t\t// branch_id\n\t\tif (strval($this->branch_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `branch`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->branch_id->ViewValue = NULL;\n\t\t}\n\t\t$this->branch_id->ViewCustomAttributes = \"\";\n\n\t\t// lang\n\t\tif (strval($this->lang->CurrentValue) <> \"\") {\n\t\t\t$this->lang->ViewValue = $this->lang->OptionCaption($this->lang->CurrentValue);\n\t\t} else {\n\t\t\t$this->lang->ViewValue = NULL;\n\t\t}\n\t\t$this->lang->ViewCustomAttributes = \"\";\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\t\t\t$this->cat_id->TooltipValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\t\t\t$this->company_id->TooltipValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\t\t\t$this->pro_model->TooltipValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\t\t\t$this->pro_name->TooltipValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\t\t\t$this->pro_description->TooltipValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\t\t\t$this->pro_condition->TooltipValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\t\t\t$this->pro_features->TooltipValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\t\t\t$this->post_date->TooltipValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\t\t\t$this->ads_id->TooltipValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\t\t\t$this->pro_base_price->TooltipValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\t\t\t$this->pro_sell_price->TooltipValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\t\t\t$this->featured_image->TooltipValue = \"\";\n\t\t\tif ($this->featured_image->UseColorbox) {\n\t\t\t\tif (ew_Empty($this->featured_image->TooltipValue))\n\t\t\t\t\t$this->featured_image->LinkAttrs[\"title\"] = $Language->Phrase(\"ViewImageGallery\");\n\t\t\t\t$this->featured_image->LinkAttrs[\"data-rel\"] = \"products_x_featured_image\";\n\t\t\t\tew_AppendClass($this->featured_image->LinkAttrs[\"class\"], \"ewLightbox\");\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\t\t\t$this->folder_image->TooltipValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\t\t\t$this->pro_status->TooltipValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\t\t\t$this->branch_id->TooltipValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t\t$this->lang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->cat_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `categories`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->cat_id->EditValue = $arwrk;\n\n\t\t\t// company_id\n\t\t\t$this->company_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->company_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `company`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->company_id->EditValue = $arwrk;\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->pro_model->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->pro_model->EditValue = $arwrk;\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_name->EditCustomAttributes = \"\";\n\t\t\t$this->pro_name->EditValue = ew_HtmlEncode($this->pro_name->CurrentValue);\n\t\t\t$this->pro_name->PlaceHolder = ew_RemoveHtml($this->pro_name->FldCaption());\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_description->EditCustomAttributes = \"\";\n\t\t\t$this->pro_description->EditValue = ew_HtmlEncode($this->pro_description->CurrentValue);\n\t\t\t$this->pro_description->PlaceHolder = ew_RemoveHtml($this->pro_description->FldCaption());\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_condition->EditCustomAttributes = \"\";\n\t\t\t$this->pro_condition->EditValue = $this->pro_condition->Options(TRUE);\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_features->EditCustomAttributes = \"\";\n\t\t\t$this->pro_features->EditValue = ew_HtmlEncode($this->pro_features->CurrentValue);\n\t\t\t$this->pro_features->PlaceHolder = ew_RemoveHtml($this->pro_features->FldCaption());\n\n\t\t\t// post_date\n\t\t\t// ads_id\n\n\t\t\t$this->ads_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ads_id->EditCustomAttributes = \"\";\n\t\t\t$this->ads_id->EditValue = ew_HtmlEncode($this->ads_id->CurrentValue);\n\t\t\t$this->ads_id->PlaceHolder = ew_RemoveHtml($this->ads_id->FldCaption());\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_base_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->EditValue = ew_HtmlEncode($this->pro_base_price->CurrentValue);\n\t\t\t$this->pro_base_price->PlaceHolder = ew_RemoveHtml($this->pro_base_price->FldCaption());\n\t\t\tif (strval($this->pro_base_price->EditValue) <> \"\" && is_numeric($this->pro_base_price->EditValue)) $this->pro_base_price->EditValue = ew_FormatNumber($this->pro_base_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_sell_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->EditValue = ew_HtmlEncode($this->pro_sell_price->CurrentValue);\n\t\t\t$this->pro_sell_price->PlaceHolder = ew_RemoveHtml($this->pro_sell_price->FldCaption());\n\t\t\tif (strval($this->pro_sell_price->EditValue) <> \"\" && is_numeric($this->pro_sell_price->EditValue)) $this->pro_sell_price->EditValue = ew_FormatNumber($this->pro_sell_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->featured_image->EditCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t\t$this->featured_image->EditValue = $this->featured_image->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->featured_image->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!ew_Empty($this->featured_image->CurrentValue))\n\t\t\t\t\t$this->featured_image->Upload->FileName = $this->featured_image->CurrentValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->folder_image->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `product_gallery`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->MoveFirst();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->folder_image->EditValue = $arwrk;\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->EditCustomAttributes = \"\";\n\t\t\t$this->pro_status->EditValue = $this->pro_status->Options(FALSE);\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->branch_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `branch`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->branch_id->EditValue = $arwrk;\n\n\t\t\t// lang\n\t\t\t$this->lang->EditCustomAttributes = \"\";\n\t\t\t$this->lang->EditValue = $this->lang->Options(TRUE);\n\n\t\t\t// Edit refer script\n\t\t\t// cat_id\n\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function render()\n {\n return view('components.table-row');\n }", "public function render($data){\n $html = \"<html><body><table border = 1>\";\n\t $html .= \"<tr>\";\n\t foreach($data[0] as $header){\n\t $html .=\"<th>\" .$header. \"</th>\";\n\t }\n\t $html .= \"</tr>\";\n\t for ($i=1;$i<count($data);$i++){\n\t $html .= \"<tr>\";\n\t foreach ($data[$i] as $row) {\n\t $html .= \"<td>\" .$row. \"</td>\";\n\t }\n\t $html .=\"</tr>\";\n\t }\n\t $html .=\"</table>\";\n\t return $html; \n }", "function makeListItem( $rowWrap ) {\n\t\t$out = '';\n\t\t$this->templateCode = $this->cObj->fileResource ( $this->conf['templateFile'] );\n\t\t$template = $this->cObj->getSubpart ( $this->templateCode, '###LIST_VIEW###' );\n\t\t$markerArray = array();\n\t\t$markerArray['###type###']\t\t\t\t\t\t= $this->cObj->stdWrap ( $this->getFieldContent ( 'type' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###brand###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'brand' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###model###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'model' ), $this->conf['listView.']['cellDataWrap1.'] );\n\t\t$markerArray['###mileage###']\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'mileage' ), $this->conf['listView.']['cellDataWrap3.'] );\n\t\t$markerArray['###price###']\t\t\t\t\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'price' ), $this->conf['listView.']['cellDataWrap3.'] );\n\t\t$markerArray['###initial_registration###']\t\t= $this->cObj->stdWrap ($this->getFieldContent ( 'initial_registration' ), $this->conf['listView.']['cellDataWrap2.'] );\n\t\t$out = $this->cObj->stdWrap ($this->cObj->substituteMarkerArrayCached ( $template, $markerArray ), $this->conf['listView.'][$rowWrap] );\n\t\treturn $out;\n\t}", "public function output() {\n\t\treturn array_merge(\n\t\t\tarray(\"<ul data-divider-theme='b' id='list_{$this->options['id']}' \".($this->options['inset']?'data-inset=\"true\" ':'').($this->options['actions']?\"data-split-icon='{$this->options['icon']}' data-split-theme='a'\":\"\").\" data-role='listview'>\"),\n\t\t\t$this->items,\n\t\t\tarray(\"</ul>\"));\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// ContentDate\n\t\t$patient_detail->ContentDate->CellCssStyle = \"\";\n\t\t$patient_detail->ContentDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// ContentTime\n\t\t$patient_detail->ContentTime->CellCssStyle = \"\";\n\t\t$patient_detail->ContentTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fecha_tamizaje\n\t\t// id_centro\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// ci\n\t\t// fecha_nacimiento\n\t\t// dias\n\t\t// semanas\n\t\t// meses\n\t\t// sexo\n\t\t// discapacidad\n\t\t// id_tipodiscapacidad\n\t\t// resultado\n\t\t// resultadotamizaje\n\t\t// tapon\n\t\t// tipo\n\t\t// repetirprueba\n\t\t// observaciones\n\t\t// id_apoderado\n\t\t// id_referencia\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha_tamizaje\n\t\t$this->fecha_tamizaje->ViewValue = $this->fecha_tamizaje->CurrentValue;\n\t\t$this->fecha_tamizaje->ViewValue = ew_FormatDateTime($this->fecha_tamizaje->ViewValue, 0);\n\t\t$this->fecha_tamizaje->ViewCustomAttributes = \"\";\n\n\t\t// id_centro\n\t\tif (strval($this->id_centro->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_centro->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `institucionesdesalud`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_centro->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_centro, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_centro->ViewValue = NULL;\n\t\t}\n\t\t$this->id_centro->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 0);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// dias\n\t\t$this->dias->ViewValue = $this->dias->CurrentValue;\n\t\t$this->dias->ViewCustomAttributes = \"\";\n\n\t\t// semanas\n\t\t$this->semanas->ViewValue = $this->semanas->CurrentValue;\n\t\t$this->semanas->ViewCustomAttributes = \"\";\n\n\t\t// meses\n\t\t$this->meses->ViewValue = $this->meses->CurrentValue;\n\t\t$this->meses->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// discapacidad\n\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\tif (strval($this->discapacidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->discapacidad->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->discapacidad->ViewValue = NULL;\n\t\t}\n\t\t$this->discapacidad->ViewCustomAttributes = \"\";\n\n\t\t// id_tipodiscapacidad\n\t\t$this->id_tipodiscapacidad->ViewValue = $this->id_tipodiscapacidad->CurrentValue;\n\t\t$this->id_tipodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// resultado\n\t\t$this->resultado->ViewValue = $this->resultado->CurrentValue;\n\t\t$this->resultado->ViewCustomAttributes = \"\";\n\n\t\t// resultadotamizaje\n\t\t$this->resultadotamizaje->ViewValue = $this->resultadotamizaje->CurrentValue;\n\t\t$this->resultadotamizaje->ViewCustomAttributes = \"\";\n\n\t\t// tapon\n\t\tif (strval($this->tapon->CurrentValue) <> \"\") {\n\t\t\t$this->tapon->ViewValue = $this->tapon->OptionCaption($this->tapon->CurrentValue);\n\t\t} else {\n\t\t\t$this->tapon->ViewValue = NULL;\n\t\t}\n\t\t$this->tapon->ViewCustomAttributes = \"\";\n\n\t\t// tipo\n\t\tif (strval($this->tipo->CurrentValue) <> \"\") {\n\t\t\t$this->tipo->ViewValue = $this->tipo->OptionCaption($this->tipo->CurrentValue);\n\t\t} else {\n\t\t\t$this->tipo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo->ViewCustomAttributes = \"\";\n\n\t\t// repetirprueba\n\t\tif (strval($this->repetirprueba->CurrentValue) <> \"\") {\n\t\t\t$this->repetirprueba->ViewValue = $this->repetirprueba->OptionCaption($this->repetirprueba->CurrentValue);\n\t\t} else {\n\t\t\t$this->repetirprueba->ViewValue = NULL;\n\t\t}\n\t\t$this->repetirprueba->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// id_apoderado\n\t\tif ($this->id_apoderado->VirtualValue <> \"\") {\n\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_apoderado->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_apoderado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombres` AS `DispFld`, `apellidopaterno` AS `Disp2Fld`, `apellidopaterno` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `apoderado`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_apoderado->LookupFilters = array(\"dx1\" => '`nombres`', \"dx2\" => '`apellidopaterno`', \"dx3\" => '`apellidopaterno`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_apoderado, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_apoderado->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_apoderado->ViewCustomAttributes = \"\";\n\n\t\t// id_referencia\n\t\tif ($this->id_referencia->VirtualValue <> \"\") {\n\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_referencia->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_referencia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombrescentromedico` AS `DispFld`, `nombrescompleto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `referencia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_referencia->LookupFilters = array(\"dx1\" => '`nombrescentromedico`', \"dx2\" => '`nombrescompleto`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_referencia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_referencia->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_referencia->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->HrefValue = \"\";\n\t\t\t$this->fecha_tamizaje->TooltipValue = \"\";\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->LinkCustomAttributes = \"\";\n\t\t\t$this->id_centro->HrefValue = \"\";\n\t\t\t$this->id_centro->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// dias\n\t\t\t$this->dias->LinkCustomAttributes = \"\";\n\t\t\t$this->dias->HrefValue = \"\";\n\t\t\t$this->dias->TooltipValue = \"\";\n\n\t\t\t// semanas\n\t\t\t$this->semanas->LinkCustomAttributes = \"\";\n\t\t\t$this->semanas->HrefValue = \"\";\n\t\t\t$this->semanas->TooltipValue = \"\";\n\n\t\t\t// meses\n\t\t\t$this->meses->LinkCustomAttributes = \"\";\n\t\t\t$this->meses->HrefValue = \"\";\n\t\t\t$this->meses->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->discapacidad->HrefValue = \"\";\n\t\t\t$this->discapacidad->TooltipValue = \"\";\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->HrefValue = \"\";\n\t\t\t$this->id_tipodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// resultado\n\t\t\t$this->resultado->LinkCustomAttributes = \"\";\n\t\t\t$this->resultado->HrefValue = \"\";\n\t\t\t$this->resultado->TooltipValue = \"\";\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->HrefValue = \"\";\n\t\t\t$this->resultadotamizaje->TooltipValue = \"\";\n\n\t\t\t// tapon\n\t\t\t$this->tapon->LinkCustomAttributes = \"\";\n\t\t\t$this->tapon->HrefValue = \"\";\n\t\t\t$this->tapon->TooltipValue = \"\";\n\n\t\t\t// tipo\n\t\t\t$this->tipo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo->HrefValue = \"\";\n\t\t\t$this->tipo->TooltipValue = \"\";\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->LinkCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->HrefValue = \"\";\n\t\t\t$this->repetirprueba->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->LinkCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->HrefValue = \"\";\n\t\t\t$this->id_apoderado->TooltipValue = \"\";\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->LinkCustomAttributes = \"\";\n\t\t\t$this->id_referencia->HrefValue = \"\";\n\t\t\t$this->id_referencia->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_tamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_tamizaje->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_tamizaje->PlaceHolder = ew_RemoveHtml($this->fecha_tamizaje->FldCaption());\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_centro->EditCustomAttributes = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidopaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->EditValue = ew_HtmlEncode($this->apellidopaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidopaterno->PlaceHolder = ew_RemoveHtml($this->apellidopaterno->FldCaption());\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidomaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->EditValue = ew_HtmlEncode($this->apellidomaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidomaterno->PlaceHolder = ew_RemoveHtml($this->apellidomaterno->FldCaption());\n\n\t\t\t// nombre\n\t\t\t$this->nombre->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre->EditCustomAttributes = \"\";\n\t\t\t$this->nombre->EditValue = ew_HtmlEncode($this->nombre->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption());\n\n\t\t\t// ci\n\t\t\t$this->ci->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ci->EditCustomAttributes = \"\";\n\t\t\t$this->ci->EditValue = ew_HtmlEncode($this->ci->AdvancedSearch->SearchValue);\n\t\t\t$this->ci->PlaceHolder = ew_RemoveHtml($this->ci->FldCaption());\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_nacimiento->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_nacimiento->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_nacimiento->PlaceHolder = ew_RemoveHtml($this->fecha_nacimiento->FldCaption());\n\n\t\t\t// dias\n\t\t\t$this->dias->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dias->EditCustomAttributes = \"\";\n\t\t\t$this->dias->EditValue = ew_HtmlEncode($this->dias->AdvancedSearch->SearchValue);\n\t\t\t$this->dias->PlaceHolder = ew_RemoveHtml($this->dias->FldCaption());\n\n\t\t\t// semanas\n\t\t\t$this->semanas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->semanas->EditCustomAttributes = \"\";\n\t\t\t$this->semanas->EditValue = ew_HtmlEncode($this->semanas->AdvancedSearch->SearchValue);\n\t\t\t$this->semanas->PlaceHolder = ew_RemoveHtml($this->semanas->FldCaption());\n\n\t\t\t// meses\n\t\t\t$this->meses->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->meses->EditCustomAttributes = \"\";\n\t\t\t$this->meses->EditValue = ew_HtmlEncode($this->meses->AdvancedSearch->SearchValue);\n\t\t\t$this->meses->PlaceHolder = ew_RemoveHtml($this->meses->FldCaption());\n\n\t\t\t// sexo\n\t\t\t$this->sexo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sexo->EditCustomAttributes = \"\";\n\t\t\t$this->sexo->EditValue = $this->sexo->Options(TRUE);\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->discapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\tif (strval($this->discapacidad->AdvancedSearch->SearchValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->discapacidad->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->discapacidad->EditValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->discapacidad->PlaceHolder = ew_RemoveHtml($this->discapacidad->FldCaption());\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_tipodiscapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->EditValue = ew_HtmlEncode($this->id_tipodiscapacidad->AdvancedSearch->SearchValue);\n\t\t\t$this->id_tipodiscapacidad->PlaceHolder = ew_RemoveHtml($this->id_tipodiscapacidad->FldCaption());\n\n\t\t\t// resultado\n\t\t\t$this->resultado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultado->EditCustomAttributes = \"\";\n\t\t\t$this->resultado->EditValue = ew_HtmlEncode($this->resultado->AdvancedSearch->SearchValue);\n\t\t\t$this->resultado->PlaceHolder = ew_RemoveHtml($this->resultado->FldCaption());\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultadotamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->EditValue = ew_HtmlEncode($this->resultadotamizaje->AdvancedSearch->SearchValue);\n\t\t\t$this->resultadotamizaje->PlaceHolder = ew_RemoveHtml($this->resultadotamizaje->FldCaption());\n\n\t\t\t// tapon\n\t\t\t$this->tapon->EditCustomAttributes = \"\";\n\t\t\t$this->tapon->EditValue = $this->tapon->Options(FALSE);\n\n\t\t\t// tipo\n\t\t\t$this->tipo->EditCustomAttributes = \"\";\n\t\t\t$this->tipo->EditValue = $this->tipo->Options(FALSE);\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->EditCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->EditValue = $this->repetirprueba->Options(FALSE);\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->observaciones->EditCustomAttributes = \"\";\n\t\t\t$this->observaciones->EditValue = ew_HtmlEncode($this->observaciones->AdvancedSearch->SearchValue);\n\t\t\t$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_apoderado->EditCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->EditValue = ew_HtmlEncode($this->id_apoderado->AdvancedSearch->SearchValue);\n\t\t\t$this->id_apoderado->PlaceHolder = ew_RemoveHtml($this->id_apoderado->FldCaption());\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_referencia->EditCustomAttributes = \"\";\n\t\t\t$this->id_referencia->EditValue = ew_HtmlEncode($this->id_referencia->AdvancedSearch->SearchValue);\n\t\t\t$this->id_referencia->PlaceHolder = ew_RemoveHtml($this->id_referencia->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\n\t\t$this->id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// nombre_contacto\n\t\t// name\n\t\t// lastname\n\t\t// email\n\t\t// address\n\t\t// phone\n\t\t// cell\n\t\t// is_active\n\n\t\t$this->is_active->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// created_at\n\t\t// id_sucursal\n\t\t// documentos\n\n\t\t$this->documentos->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateModified\n\t\t$this->DateModified->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateDeleted\n\t\t$this->DateDeleted->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// CreatedBy\n\t\t$this->CreatedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// ModifiedBy\n\t\t$this->ModifiedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DeletedBy\n\t\t$this->DeletedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// latitud\n\t\t$this->latitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// longitud\n\t\t$this->longitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipoinmueble\n\t\t// id_ciudad_inmueble\n\t\t// id_provincia_inmueble\n\t\t// imagen_inmueble01\n\n\t\t$this->imagen_inmueble01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble02\n\t\t// imagen_inmueble03\n\t\t// imagen_inmueble04\n\t\t// imagen_inmueble05\n\t\t// imagen_inmueble06\n\n\t\t$this->imagen_inmueble06->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble07\n\t\t$this->imagen_inmueble07->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble08\n\t\t$this->imagen_inmueble08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipovehiculo\n\t\t// id_ciudad_vehiculo\n\t\t// id_provincia_vehiculo\n\t\t// imagen_vehiculo01\n\n\t\t$this->imagen_vehiculo01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo02\n\t\t// imagen_vehiculo03\n\n\t\t$this->imagen_vehiculo03->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo04\n\t\t$this->imagen_vehiculo04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo05\n\t\t// imagen_vehiculo06\n\t\t// imagen_vehiculo07\n\t\t// imagen_vehiculo08\n\n\t\t$this->imagen_vehiculo08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomaquinaria\n\t\t// id_ciudad_maquinaria\n\t\t// id_provincia_maquinaria\n\t\t// imagen_maquinaria01\n\n\t\t$this->imagen_maquinaria01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria02\n\t\t// imagen_maquinaria03\n\t\t// imagen_maquinaria04\n\n\t\t$this->imagen_maquinaria04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria05\n\t\t// imagen_maquinaria06\n\t\t// imagen_maquinaria07\n\t\t// imagen_maquinaria08\n\n\t\t$this->imagen_maquinaria08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomercaderia\n\t\t// imagen_mercaderia01\n\t\t// documento_mercaderia\n\t\t// tipoespecial\n\t\t// imagen_tipoespecial01\n\t\t// email_contacto\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// nombre_contacto\n\t\t$this->nombre_contacto->ViewValue = $this->nombre_contacto->CurrentValue;\n\t\t$this->nombre_contacto->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// lastname\n\t\t$this->lastname->ViewValue = $this->lastname->CurrentValue;\n\t\t$this->lastname->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// address\n\t\t$this->address->ViewValue = $this->address->CurrentValue;\n\t\t$this->address->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// cell\n\t\t$this->cell->ViewValue = $this->cell->CurrentValue;\n\t\t$this->cell->ViewCustomAttributes = \"\";\n\n\t\t// created_at\n\t\t$this->created_at->ViewValue = $this->created_at->CurrentValue;\n\t\t$this->created_at->ViewValue = ew_FormatDateTime($this->created_at->ViewValue, 17);\n\t\t$this->created_at->ViewCustomAttributes = \"\";\n\n\t\t// id_sucursal\n\t\tif (strval($this->id_sucursal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sucursal->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sucursal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sucursal->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`id`='\".$_SESSION[\"sucursal\"].\"'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sucursal, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sucursal->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sucursal->ViewCustomAttributes = \"\";\n\n\t\t// tipoinmueble\n\t\tif (strval($this->tipoinmueble->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoinmueble->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoinmueble->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='INMUEBLE'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoinmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoinmueble->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoinmueble->ViewValue .= $this->tipoinmueble->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoinmueble->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoinmueble->ViewValue = $this->tipoinmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoinmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoinmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_inmueble\n\t\tif (strval($this->id_ciudad_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_inmueble\n\t\tif (strval($this->id_provincia_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// tipovehiculo\n\t\tif (strval($this->tipovehiculo->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipovehiculo->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipovehiculo->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='VEHICULO'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipovehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipovehiculo->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipovehiculo->ViewValue .= $this->tipovehiculo->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipovehiculo->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipovehiculo->ViewValue = $this->tipovehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipovehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipovehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_vehiculo\n\t\tif (strval($this->id_ciudad_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_vehiculo\n\t\tif (strval($this->id_provincia_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// tipomaquinaria\n\t\tif (strval($this->tipomaquinaria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomaquinaria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomaquinaria->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='MAQUINARIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomaquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomaquinaria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomaquinaria->ViewValue .= $this->tipomaquinaria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomaquinaria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomaquinaria->ViewValue = $this->tipomaquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomaquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomaquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_maquinaria\n\t\tif (strval($this->id_ciudad_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_maquinaria\n\t\tif (strval($this->id_provincia_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// tipomercaderia\n\t\tif (strval($this->tipomercaderia->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomercaderia->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomercaderia->LookupFilters = array();\n\t\t$lookuptblfilter = \"`tipo`='MERCADERIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomercaderia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomercaderia->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomercaderia->ViewValue .= $this->tipomercaderia->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomercaderia->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomercaderia->ViewValue = $this->tipomercaderia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomercaderia->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomercaderia->ViewCustomAttributes = \"\";\n\n\t\t// documento_mercaderia\n\t\t$this->documento_mercaderia->ViewValue = $this->documento_mercaderia->CurrentValue;\n\t\t$this->documento_mercaderia->ViewCustomAttributes = \"\";\n\n\t\t// tipoespecial\n\t\tif (strval($this->tipoespecial->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoespecial->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoespecial->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='ESPECIAL'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoespecial, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoespecial->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoespecial->ViewValue .= $this->tipoespecial->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoespecial->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoespecial->ViewValue = $this->tipoespecial->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoespecial->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoespecial->ViewCustomAttributes = \"\";\n\n\t\t// email_contacto\n\t\tif (strval($this->email_contacto->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`login`\" . ew_SearchString(\"=\", $this->email_contacto->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `login`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `oficialcredito`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->email_contacto->LookupFilters = array(\"dx1\" => '`nombre`', \"dx2\" => '`apellido`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->email_contacto, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->email_contacto->ViewValue = NULL;\n\t\t}\n\t\t$this->email_contacto->ViewCustomAttributes = \"\";\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->HrefValue = \"\";\n\t\t\t$this->nombre_contacto->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// lastname\n\t\t\t$this->lastname->LinkCustomAttributes = \"\";\n\t\t\t$this->lastname->HrefValue = \"\";\n\t\t\t$this->lastname->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// address\n\t\t\t$this->address->LinkCustomAttributes = \"\";\n\t\t\t$this->address->HrefValue = \"\";\n\t\t\t$this->address->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// cell\n\t\t\t$this->cell->LinkCustomAttributes = \"\";\n\t\t\t$this->cell->HrefValue = \"\";\n\t\t\t$this->cell->TooltipValue = \"\";\n\n\t\t\t// created_at\n\t\t\t$this->created_at->LinkCustomAttributes = \"\";\n\t\t\t$this->created_at->HrefValue = \"\";\n\t\t\t$this->created_at->TooltipValue = \"\";\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sucursal->HrefValue = \"\";\n\t\t\t$this->id_sucursal->TooltipValue = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoinmueble->HrefValue = \"\";\n\t\t\t$this->tipoinmueble->TooltipValue = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipovehiculo->HrefValue = \"\";\n\t\t\t$this->tipovehiculo->TooltipValue = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomaquinaria->HrefValue = \"\";\n\t\t\t$this->tipomaquinaria->TooltipValue = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomercaderia->HrefValue = \"\";\n\t\t\t$this->tipomercaderia->TooltipValue = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoespecial->HrefValue = \"\";\n\t\t\t$this->tipoespecial->TooltipValue = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->email_contacto->HrefValue = \"\";\n\t\t\t$this->email_contacto->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre_contacto->EditCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->EditValue = ew_HtmlEncode($this->nombre_contacto->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre_contacto->PlaceHolder = ew_RemoveHtml($this->nombre_contacto->FldTitle());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldTitle());\n\n\t\t\t// lastname\n\t\t\t$this->lastname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lastname->EditCustomAttributes = \"\";\n\t\t\t$this->lastname->EditValue = ew_HtmlEncode($this->lastname->AdvancedSearch->SearchValue);\n\t\t\t$this->lastname->PlaceHolder = ew_RemoveHtml($this->lastname->FldTitle());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldTitle());\n\n\t\t\t// address\n\t\t\t$this->address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->address->EditCustomAttributes = \"\";\n\t\t\t$this->address->EditValue = ew_HtmlEncode($this->address->AdvancedSearch->SearchValue);\n\t\t\t$this->address->PlaceHolder = ew_RemoveHtml($this->address->FldTitle());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldTitle());\n\n\t\t\t// cell\n\t\t\t$this->cell->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cell->EditCustomAttributes = \"\";\n\t\t\t$this->cell->EditValue = ew_HtmlEncode($this->cell->AdvancedSearch->SearchValue);\n\t\t\t$this->cell->PlaceHolder = ew_RemoveHtml($this->cell->FldTitle());\n\n\t\t\t// created_at\n\t\t\t$this->created_at->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->created_at->EditCustomAttributes = \"\";\n\t\t\t$this->created_at->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->created_at->AdvancedSearch->SearchValue, 17), 17));\n\t\t\t$this->created_at->PlaceHolder = ew_RemoveHtml($this->created_at->FldTitle());\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_sucursal->EditCustomAttributes = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoinmueble->EditCustomAttributes = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipovehiculo->EditCustomAttributes = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomaquinaria->EditCustomAttributes = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomercaderia->EditCustomAttributes = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoespecial->EditCustomAttributes = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->email_contacto->EditCustomAttributes = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function __toString()\n\t{\n\t\t$list_html = $this->build_list($this->data);\n\t\t\n\t\treturn $list_html;\n\t}", "abstract protected function renderItems(): string;", "public static function renderList(ListView $list)\n { ?>\n<div id=\"content\">\n <h1><?php echo $list->getTitle() ;?></h1>\n <div class=\"toolbar\">\n <ul>\n <?php foreach($list->getTools() as $objTool ) : ?>\n <li>\n <?php $objTool->generate(); ?>\n </li>\n <?php endforeach; ?>\n </ul>\n </div>\n <table>\n <thead>\n <tr>\n <?php foreach($list->getColumn() as $column ): ?>\n <th> <?php echo $column->getLabel(); ?> </th>\n <?php endforeach; ?>\n </tr>\n </thead>\n <tbody>\n <?php foreach ($list->getRegistros() as $arrRegistro ): ?>\n <tr>\n <?php foreach($list->getColumn() as $column ): ?>\n <td> <a <?php echo !is_null($column->getAlert())?'onclick=\"return confirm(\\' '.$column->getAlert().' \\');\"':''; ?> href=\"<?php echo is_null($column->getLinkURL())?HOME.$list->getControllerName().'/'.$column->getAction().'/'.$arrRegistro['id'] : $column->getLinkURL(); ?>\"> <?php if(is_null($column->getIcon()) ) { echo $arrRegistro[$column->getName()]; }else{ echo \"<img src=\\\"{$column->getIcon()} \\\" />\"; }; ?></a> </td>\n <?php endforeach; ?>\n </tr>\n <?php endforeach; ?>\n </tbody>\n </table>\n</div>\n <?php }", "function display_rows(){\n\n\t\t//Get the records registered in the prepare_items method\n\t\t$records = $this->items;\n\n\t\t//Get the columns registered in the get_columns and get_sortable_columns methods\n\t\tlist( $columns ) = $this->get_column_info();\n\n\t\t//Loop for each record\n\t\tif( ! empty( $records ) ){\n\n\t\t\tforeach( $records as $rec ){\n\n\t\t\t\t$position = ( $rec->post_order ) ? $rec->post_order : 0;\n\t\t\t\t$id = ( $rec->ID ) ? $rec->ID : 'N/A';\n\t\t\t\t$title = ( $rec->post_title ) ? $rec->post_title : 'N/A';\n\t\t\t\t$author = ( $rec->post_author ) ? $rec->post_author : 'N/A';\n\t\t\t\t$date = ( $rec->post_date ) ? $rec->post_date : 'N/A';\n\n\t\t\t\t//Open the line\n\t\t\t\techo '<tr id=\"record_' . $id . '\" class=\"draggable-tr\" data-order=\"' . $position . '\" data-post-id=\"' . $id . '\" draggable=\"true\">';\n\t\t\t\tforeach( $columns as $column_name => $column_display_name ){\n\n\n\t\t\t\t\t//Style attributes for each col\n\t\t\t\t\t$class = \"class='$column_name column-$column_name'\";\n\t\t\t\t\t$style = \"\";\n\t\t\t\t\tif( in_array( $column_name ) ){\n\t\t\t\t\t\t$style = ' style=\"display:none;\"';\n\t\t\t\t\t}\n\t\t\t\t\t$attributes = $class . $style;\n\n\n\t\t\t\t\t//Display the cell\n\t\t\t\t\tswitch( $column_name ){\n\t\t\t\t\t\tcase \"post_order\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $position ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_title\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $title ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_author\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( get_the_author_meta( 'nicename', $author ) ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_date\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . $date . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $id ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "public function renderList()\n {\n $listUnit = $this->interActor->listUnit($this->inputHandler->getArrayMap());\n\n $view = new \\View\\Model(\n \\View\\Customer::list($listUnit),\n $this->inputHandler->routeArrayMap()\n );\n return $view->render();\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idservicio_medico_prestado\n\t\t// idcuenta\n\t\t// fecha_inicio\n\t\t// fecha_final\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;\n\t\t\t$this->idservicio_medico_prestado->ViewCustomAttributes = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->ViewValue = $this->idcuenta->CurrentValue;\n\t\t\t$this->idcuenta->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;\n\t\t\t$this->fecha_inicio->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->ViewValue = $this->fecha_final->CurrentValue;\n\t\t\t$this->fecha_final->ViewCustomAttributes = \"\";\n\n\t\t\t// estado\n\t\t\tif (strval($this->estado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->estado->CurrentValue) {\n\t\t\t\t\tcase $this->estado->FldTagValue(1):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(1) <> \"\" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(2):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(2) <> \"\" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(3):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(3) <> \"\" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->estado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->LinkCustomAttributes = \"\";\n\t\t\t$this->idservicio_medico_prestado->HrefValue = \"\";\n\t\t\t$this->idservicio_medico_prestado->TooltipValue = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->LinkCustomAttributes = \"\";\n\t\t\t$this->idcuenta->HrefValue = \"\";\n\t\t\t$this->idcuenta->TooltipValue = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_inicio->HrefValue = \"\";\n\t\t\t$this->fecha_inicio->TooltipValue = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_final->HrefValue = \"\";\n\t\t\t$this->fecha_final->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$filesystem->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$filesystem->id->CellCssStyle = \"\";\r\n\t\t$filesystem->id->CellCssClass = \"\";\r\n\r\n\t\t// mount\r\n\t\t$filesystem->mount->CellCssStyle = \"\";\r\n\t\t$filesystem->mount->CellCssClass = \"\";\r\n\r\n\t\t// path\r\n\t\t$filesystem->path->CellCssStyle = \"\";\r\n\t\t$filesystem->path->CellCssClass = \"\";\r\n\r\n\t\t// parent\r\n\t\t$filesystem->parent->CellCssStyle = \"\";\r\n\t\t$filesystem->parent->CellCssClass = \"\";\r\n\r\n\t\t// deprecated\r\n\t\t$filesystem->deprecated->CellCssStyle = \"\";\r\n\t\t$filesystem->deprecated->CellCssClass = \"\";\r\n\r\n\t\t// gid\r\n\t\t$filesystem->gid->CellCssStyle = \"\";\r\n\t\t$filesystem->gid->CellCssClass = \"\";\r\n\r\n\t\t// snapshot\r\n\t\t$filesystem->snapshot->CellCssStyle = \"\";\r\n\t\t$filesystem->snapshot->CellCssClass = \"\";\r\n\r\n\t\t// tapebackup\r\n\t\t$filesystem->tapebackup->CellCssStyle = \"\";\r\n\t\t$filesystem->tapebackup->CellCssClass = \"\";\r\n\r\n\t\t// diskbackup\r\n\t\t$filesystem->diskbackup->CellCssStyle = \"\";\r\n\t\t$filesystem->diskbackup->CellCssClass = \"\";\r\n\r\n\t\t// type\r\n\t\t$filesystem->type->CellCssStyle = \"\";\r\n\t\t$filesystem->type->CellCssClass = \"\";\r\n\r\n\t\t// contact\r\n\t\t$filesystem->contact->CellCssStyle = \"\";\r\n\t\t$filesystem->contact->CellCssClass = \"\";\r\n\r\n\t\t// contact2\r\n\t\t$filesystem->contact2->CellCssStyle = \"\";\r\n\t\t$filesystem->contact2->CellCssClass = \"\";\r\n\r\n\t\t// rescomp\r\n\t\t$filesystem->rescomp->CellCssStyle = \"\";\r\n\t\t$filesystem->rescomp->CellCssClass = \"\";\r\n\t\tif ($filesystem->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->ViewValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->ViewValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->ViewValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->ViewValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->ViewValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->ViewValue = $filesystem->snapshot->CurrentValue;\r\n\t\t\t$filesystem->snapshot->CssStyle = \"\";\r\n\t\t\t$filesystem->snapshot->CssClass = \"\";\r\n\t\t\t$filesystem->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->ViewValue = $filesystem->tapebackup->CurrentValue;\r\n\t\t\t$filesystem->tapebackup->CssStyle = \"\";\r\n\t\t\t$filesystem->tapebackup->CssClass = \"\";\r\n\t\t\t$filesystem->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->ViewValue = $filesystem->diskbackup->CurrentValue;\r\n\t\t\t$filesystem->diskbackup->CssStyle = \"\";\r\n\t\t\t$filesystem->diskbackup->CssClass = \"\";\r\n\t\t\t$filesystem->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->ViewValue = $filesystem->contact2->CurrentValue;\r\n\t\t\t$filesystem->contact2->CssStyle = \"\";\r\n\t\t\t$filesystem->contact2->CssClass = \"\";\r\n\t\t\t$filesystem->contact2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->ViewValue = $filesystem->rescomp->CurrentValue;\r\n\t\t\t$filesystem->rescomp->CssStyle = \"\";\r\n\t\t\t$filesystem->rescomp->CssClass = \"\";\r\n\t\t\t$filesystem->rescomp->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t} elseif ($filesystem->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->id->EditValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->mount->EditValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->path->EditValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->parent->EditValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->deprecated->EditValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->gid->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->gid->CurrentValue = $filesystem->gid->getSessionValue();\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `grp`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->gid->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->snapshot->EditValue = ew_HtmlEncode($filesystem->snapshot->CurrentValue);\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->tapebackup->EditValue = ew_HtmlEncode($filesystem->tapebackup->CurrentValue);\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->diskbackup->EditValue = ew_HtmlEncode($filesystem->diskbackup->CurrentValue);\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->type->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->type->CurrentValue = $filesystem->type->getSessionValue();\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `server_type`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->type->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->contact->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->contact->CurrentValue = $filesystem->contact->getSessionValue();\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$filesystem->contact->EditValue = ew_HtmlEncode($filesystem->contact->CurrentValue);\r\n\t\t\t}\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->contact2->EditValue = ew_HtmlEncode($filesystem->contact2->CurrentValue);\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->rescomp->EditValue = ew_HtmlEncode($filesystem->rescomp->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// id\r\n\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$filesystem->Row_Rendered();\r\n\t}", "public function renderList()\n {\n return $this->renderAdminPage('Light_Kit_Admin_UserData/kit/zeroadmin/generated/luda_resource_has_tag_list', [], PageConfUpdator::create()->updateWidget(\"body.light_realist\", [\n 'vars' => [\n 'request_declaration_id' => 'Light_Kit_Admin_UserData:generated/luda_resource_has_tag',\n ],\n ]));\n }", "abstract protected function displayList($list);", "function makelist($res)\t{\r\n\t\t$items=\"\";\r\n\t\t$counter = $this->internal['res_count'];\r\n\t\twhile($this->internal['currentRow'] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\r\n\t\t\t$items .= $this->makeListItem($counter);\r\n\t\t\t$counter--;\r\n\t\t}\r\n\r\n\t\t$subpartArray = array();\r\n\t\t$subpartArray[\"###LIST_TABLE_ROW###\"] = $items;\r\n\t\t$out = $this->cObj->substituteMarkerArrayCached($this->templates[\"list_table\"], array(), $subpartArray, array());\r\n\t\treturn $out;\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id\r\n\t\t// Nama\r\n\t\t// Alamat\r\n\t\t// Jumlah\r\n\t\t// Provinsi\r\n\t\t// Area\r\n\t\t// CP\r\n\t\t// NoContact\r\n\t\t// Tanggal\r\n\t\t// Jam\r\n\t\t// Vechicle\r\n\t\t// Type\r\n\t\t// Site\r\n\t\t// Status\r\n\t\t// UserID\r\n\t\t// TglInput\r\n\t\t// visit\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id\r\n\t\t\t$this->Id->ViewValue = $this->Id->CurrentValue;\r\n\t\t\t$this->Id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->ViewValue = $this->Nama->CurrentValue;\r\n\t\t\t$this->Nama->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jumlah\r\n\t\t\t$this->Jumlah->ViewValue = $this->Jumlah->CurrentValue;\r\n\t\t\t$this->Jumlah->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\tif (strval($this->Provinsi->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Provinsi->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $this->Provinsi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Provinsi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Provinsi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\tif (strval($this->Area->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Area->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Area->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Area->ViewValue = $this->Area->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Area->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Area->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->ViewValue = $this->CP->CurrentValue;\r\n\t\t\t$this->CP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoContact\r\n\t\t\t$this->NoContact->ViewValue = $this->NoContact->CurrentValue;\r\n\t\t\t$this->NoContact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->ViewValue = $this->Tanggal->CurrentValue;\r\n\t\t\t$this->Tanggal->ViewValue = ew_FormatDateTime($this->Tanggal->ViewValue, 7);\r\n\t\t\t$this->Tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jam\r\n\t\t\t$this->Jam->ViewValue = $this->Jam->CurrentValue;\r\n\t\t\t$this->Jam->ViewValue = ew_FormatDateTime($this->Jam->ViewValue, 4);\r\n\t\t\t$this->Jam->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\tif (strval($this->Vechicle->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Vechicle->CurrentValue) {\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Vechicle->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Vechicle->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\tif (strval($this->Type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id`\" . ew_SearchString(\"=\", $this->Type->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Type->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\tif (strval($this->Site->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Site->CurrentValue) {\r\n\t\t\t\t\tcase $this->Site->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Site->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Site->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Site->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\tif (strval($this->Status->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Status->CurrentValue) {\r\n\t\t\t\t\tcase $this->Status->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Status->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Status->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// UserID\r\n\t\t\t$this->_UserID->ViewValue = $this->_UserID->CurrentValue;\r\n\t\t\t$this->_UserID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// TglInput\r\n\t\t\t$this->TglInput->ViewValue = $this->TglInput->CurrentValue;\r\n\t\t\t$this->TglInput->ViewValue = ew_FormatDateTime($this->TglInput->ViewValue, 7);\r\n\t\t\t$this->TglInput->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\tif (strval($this->visit->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->visit->CurrentValue) {\r\n\t\t\t\t\tcase $this->visit->FldTagValue(1):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->visit->FldTagValue(2):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->visit->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->visit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nama->HrefValue = \"\";\r\n\t\t\t$this->Nama->TooltipValue = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Provinsi->HrefValue = \"\";\r\n\t\t\t$this->Provinsi->TooltipValue = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Area->HrefValue = \"\";\r\n\t\t\t$this->Area->TooltipValue = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CP->HrefValue = \"\";\r\n\t\t\t$this->CP->TooltipValue = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->HrefValue = \"\";\r\n\t\t\t$this->Tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Vechicle->HrefValue = \"\";\r\n\t\t\t$this->Vechicle->TooltipValue = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Type->HrefValue = \"\";\r\n\t\t\t$this->Type->TooltipValue = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Site->HrefValue = \"\";\r\n\t\t\t$this->Site->TooltipValue = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Status->HrefValue = \"\";\r\n\t\t\t$this->Status->TooltipValue = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->visit->HrefValue = \"\";\r\n\t\t\t$this->visit->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nama->EditValue = ew_HtmlEncode($this->Nama->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Nama->PlaceHolder = ew_RemoveHtml($this->Nama->FldCaption());\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Provinsi->EditValue = $arwrk;\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Prov` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Area->EditValue = $arwrk;\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->EditCustomAttributes = \"\";\r\n\t\t\t$this->CP->EditValue = ew_HtmlEncode($this->CP->AdvancedSearch->SearchValue);\r\n\t\t\t$this->CP->PlaceHolder = ew_RemoveHtml($this->CP->FldCaption());\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue2, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(1), $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(2), $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Vechicle->EditValue = $arwrk;\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Type->EditValue = $arwrk;\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->EditCustomAttributes = \"\";\r\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn() && !$this->UserIDAllow(\"search\")) { // Non system admin\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sFilterWrk = $GLOBALS[\"user\"]->AddUserIDFilter(\"\");\r\n\t\t\t$sSqlWrk = \"SELECT `site`, `site` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `user`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Site, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t} else {\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(1), $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(2), $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(1), $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(2), $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->FldTagValue(2));\r\n\t\t\t$this->Status->EditValue = $arwrk;\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(1), $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(2), $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->FldTagValue(2));\r\n\t\t\t$this->visit->EditValue = $arwrk;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->highest_bid->FormValue == $this->highest_bid->CurrentValue && is_numeric(ew_StrToFloat($this->highest_bid->CurrentValue)))\n\t\t\t$this->highest_bid->CurrentValue = ew_StrToFloat($this->highest_bid->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// auc_number\n\t\t// start_bid\n\t\t// close_bid\n\t\t// lot_number\n\t\t// chop\n\t\t// grade\n\t\t// estate\n\t\t// sack\n\t\t// netto\n\t\t// open_bid\n\t\t// last_bid\n\t\t// highest_bid\n\t\t// enter_bid\n\t\t// auction_status\n\t\t// gross\n\t\t// row_id\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->CellCssStyle .= \"text-align: center;\";\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewValue = ew_FormatNumber($this->last_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->last_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewValue = ew_FormatNumber($this->highest_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->highest_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewValue = ew_FormatNumber($this->enter_bid->ViewValue, 0, -2, -2, -2);\n\t\t$this->enter_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// row_id\n\t\t$this->row_id->ViewValue = $this->row_id->CurrentValue;\n\t\t$this->row_id->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->highest_bid->HrefValue = \"\";\n\t\t\t$this->highest_bid->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->tanggal->AdvancedSearch->SearchValue, 7), 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->auc_number->EditCustomAttributes = \"\";\n\t\t\t$this->auc_number->EditValue = ew_HtmlEncode($this->auc_number->AdvancedSearch->SearchValue);\n\t\t\t$this->auc_number->PlaceHolder = ew_RemoveHtml($this->auc_number->FldCaption());\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_bid->EditCustomAttributes = \"\";\n\t\t\t$this->start_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->start_bid->PlaceHolder = ew_RemoveHtml($this->start_bid->FldCaption());\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->close_bid->EditCustomAttributes = \"\";\n\t\t\t$this->close_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->close_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->close_bid->PlaceHolder = ew_RemoveHtml($this->close_bid->FldCaption());\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->AdvancedSearch->SearchValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->AdvancedSearch->SearchValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->AdvancedSearch->SearchValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->AdvancedSearch->SearchValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->AdvancedSearch->SearchValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->AdvancedSearch->SearchValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->highest_bid->EditCustomAttributes = \"\";\n\t\t\t$this->highest_bid->EditValue = ew_HtmlEncode($this->highest_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->highest_bid->PlaceHolder = ew_RemoveHtml($this->highest_bid->FldCaption());\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(FALSE);\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function render()\n {\n $this->view->setData(call_user_func($this->getUrlGenerator(), $this->getGrid()->getCurrentRow()));\n return SolidRow::render();\n }", "function RenderRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\n\t// Call Row Rendering event\n\t$dpp_proveedores->Row_Rendering();\n\n\t// Common render codes for all row types\n\t// provee_id\n\n\t$dpp_proveedores->provee_id->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_id->CellCssClass = \"\";\n\n\t// provee_rut\n\t$dpp_proveedores->provee_rut->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_rut->CellCssClass = \"\";\n\n\t// provee_dig\n\t$dpp_proveedores->provee_dig->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dig->CellCssClass = \"\";\n\n\t// provee_cat_juri\n\t$dpp_proveedores->provee_cat_juri->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_cat_juri->CellCssClass = \"\";\n\n\t// provee_nombre\n\t$dpp_proveedores->provee_nombre->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_nombre->CellCssClass = \"\";\n\n\t// provee_paterno\n\t$dpp_proveedores->provee_paterno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_paterno->CellCssClass = \"\";\n\n\t// provee_materno\n\t$dpp_proveedores->provee_materno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_materno->CellCssClass = \"\";\n\n\t// provee_dir\n\t$dpp_proveedores->provee_dir->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dir->CellCssClass = \"\";\n\n\t// provee_fono\n\t$dpp_proveedores->provee_fono->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_fono->CellCssClass = \"\";\n\tif ($dpp_proveedores->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->ViewValue = $dpp_proveedores->provee_id->CurrentValue;\n\t\t$dpp_proveedores->provee_id->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_id->CssClass = \"\";\n\t\t$dpp_proveedores->provee_id->ViewCustomAttributes = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->ViewValue = $dpp_proveedores->provee_rut->CurrentValue;\n\t\t$dpp_proveedores->provee_rut->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_rut->CssClass = \"\";\n\t\t$dpp_proveedores->provee_rut->ViewCustomAttributes = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->ViewValue = $dpp_proveedores->provee_dig->CurrentValue;\n\t\t$dpp_proveedores->provee_dig->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dig->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dig->ViewCustomAttributes = \"\";\n\n\t\t// provee_cat_juri\n\t\tif (!is_null($dpp_proveedores->provee_cat_juri->CurrentValue)) {\n\t\t\tswitch ($dpp_proveedores->provee_cat_juri->CurrentValue) {\n\t\t\t\tcase \"Natural\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Natural\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Juridica\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Juridica\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = $dpp_proveedores->provee_cat_juri->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = NULL;\n\t\t}\n\t\t$dpp_proveedores->provee_cat_juri->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->CssClass = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->ViewCustomAttributes = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->ViewValue = $dpp_proveedores->provee_nombre->CurrentValue;\n\t\t$dpp_proveedores->provee_nombre->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_nombre->CssClass = \"\";\n\t\t$dpp_proveedores->provee_nombre->ViewCustomAttributes = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->ViewValue = $dpp_proveedores->provee_paterno->CurrentValue;\n\t\t$dpp_proveedores->provee_paterno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_paterno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_paterno->ViewCustomAttributes = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->ViewValue = $dpp_proveedores->provee_materno->CurrentValue;\n\t\t$dpp_proveedores->provee_materno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_materno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_materno->ViewCustomAttributes = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->ViewValue = $dpp_proveedores->provee_dir->CurrentValue;\n\t\t$dpp_proveedores->provee_dir->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dir->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dir->ViewCustomAttributes = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->ViewValue = $dpp_proveedores->provee_fono->CurrentValue;\n\t\t$dpp_proveedores->provee_fono->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_fono->CssClass = \"\";\n\t\t$dpp_proveedores->provee_fono->ViewCustomAttributes = \"\";\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->HrefValue = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->HrefValue = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->HrefValue = \"\";\n\n\t\t// provee_cat_juri\n\t\t$dpp_proveedores->provee_cat_juri->HrefValue = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->HrefValue = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->HrefValue = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->HrefValue = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->HrefValue = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->HrefValue = \"\";\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_ADD) { // Add row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\t}\n\n\t// Call Row Rendered event\n\t$dpp_proveedores->Row_Rendered();\n}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// idfb_posts\r\n\t\t// id\r\n\t\t// created_time\r\n\t\t// actions\r\n\t\t// icon\r\n\t\t// is_published\r\n\t\t// message\r\n\t\t// link\r\n\t\t// object_id\r\n\t\t// picture\r\n\t\t// privacy\r\n\t\t// promotion_status\r\n\t\t// timeline_visibility\r\n\t\t// type\r\n\t\t// updated_time\r\n\t\t// caption\r\n\t\t// description\r\n\t\t// name\r\n\t\t// source\r\n\t\t// from\r\n\t\t// to\r\n\t\t// comments\r\n\t\t// id_grupo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// idfb_posts\r\n\t\t\t$this->idfb_posts->ViewValue = $this->idfb_posts->CurrentValue;\r\n\t\t\t$this->idfb_posts->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->ViewValue = $this->created_time->CurrentValue;\r\n\t\t\t$this->created_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// actions\r\n\t\t\t$this->actions->ViewValue = $this->actions->CurrentValue;\r\n\t\t\t$this->actions->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// icon\r\n\t\t\t$this->icon->ViewValue = $this->icon->CurrentValue;\r\n\t\t\t$this->icon->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// is_published\r\n\t\t\t$this->is_published->ViewValue = $this->is_published->CurrentValue;\r\n\t\t\t$this->is_published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->ViewValue = $this->message->CurrentValue;\r\n\t\t\t$this->message->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->ViewValue = $this->link->CurrentValue;\r\n\t\t\t$this->link->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// object_id\r\n\t\t\t$this->object_id->ViewValue = $this->object_id->CurrentValue;\r\n\t\t\t$this->object_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// picture\r\n\t\t\t$this->picture->ViewValue = $this->picture->CurrentValue;\r\n\t\t\t$this->picture->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// privacy\r\n\t\t\t$this->privacy->ViewValue = $this->privacy->CurrentValue;\r\n\t\t\t$this->privacy->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// promotion_status\r\n\t\t\t$this->promotion_status->ViewValue = $this->promotion_status->CurrentValue;\r\n\t\t\t$this->promotion_status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// timeline_visibility\r\n\t\t\t$this->timeline_visibility->ViewValue = $this->timeline_visibility->CurrentValue;\r\n\t\t\t$this->timeline_visibility->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->ViewValue = $this->type->CurrentValue;\r\n\t\t\t$this->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated_time\r\n\t\t\t$this->updated_time->ViewValue = $this->updated_time->CurrentValue;\r\n\t\t\t$this->updated_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->ViewValue = $this->caption->CurrentValue;\r\n\t\t\t$this->caption->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\r\n\t\t\t$this->description->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\r\n\t\t\t$this->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->ViewValue = $this->source->CurrentValue;\r\n\t\t\t$this->source->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->ViewValue = $this->from->CurrentValue;\r\n\t\t\t$this->from->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// to\r\n\t\t\t$this->to->ViewValue = $this->to->CurrentValue;\r\n\t\t\t$this->to->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id_grupo\r\n\t\t\t$this->id_grupo->ViewValue = $this->id_grupo->CurrentValue;\r\n\t\t\t$this->id_grupo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->LinkCustomAttributes = \"\";\r\n\t\t\t$this->created_time->HrefValue = \"\";\r\n\t\t\t$this->created_time->TooltipValue = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->LinkCustomAttributes = \"\";\r\n\t\t\t$this->message->HrefValue = \"\";\r\n\t\t\t$this->message->TooltipValue = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->LinkCustomAttributes = \"\";\r\n\t\t\t$this->link->HrefValue = \"\";\r\n\t\t\t$this->link->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->type->HrefValue = \"\";\r\n\t\t\t$this->type->TooltipValue = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->LinkCustomAttributes = \"\";\r\n\t\t\t$this->caption->HrefValue = \"\";\r\n\t\t\t$this->caption->TooltipValue = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->LinkCustomAttributes = \"\";\r\n\t\t\t$this->description->HrefValue = \"\";\r\n\t\t\t$this->description->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->LinkCustomAttributes = \"\";\r\n\t\t\t$this->name->HrefValue = \"\";\r\n\t\t\t$this->name->TooltipValue = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->LinkCustomAttributes = \"\";\r\n\t\t\t$this->source->HrefValue = \"\";\r\n\t\t\t$this->source->TooltipValue = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->LinkCustomAttributes = \"\";\r\n\t\t\t$this->from->HrefValue = \"\";\r\n\t\t\t$this->from->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->rid->setDbValue($rs->fields('rid'));\n\t\t$this->usn->setDbValue($rs->fields('usn'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->sc1->setDbValue($rs->fields('sc1'));\n\t\t$this->s1->setDbValue($rs->fields('s1'));\n\t\t$this->sc2->setDbValue($rs->fields('sc2'));\n\t\t$this->s2->setDbValue($rs->fields('s2'));\n\t\t$this->sc3->setDbValue($rs->fields('sc3'));\n\t\t$this->s3->setDbValue($rs->fields('s3'));\n\t\t$this->sc4->setDbValue($rs->fields('sc4'));\n\t\t$this->s4->setDbValue($rs->fields('s4'));\n\t\t$this->sc5->setDbValue($rs->fields('sc5'));\n\t\t$this->s5->setDbValue($rs->fields('s5'));\n\t\t$this->sc6->setDbValue($rs->fields('sc6'));\n\t\t$this->s6->setDbValue($rs->fields('s6'));\n\t\t$this->sc7->setDbValue($rs->fields('sc7'));\n\t\t$this->s7->setDbValue($rs->fields('s7'));\n\t\t$this->sc8->setDbValue($rs->fields('sc8'));\n\t\t$this->s8->setDbValue($rs->fields('s8'));\n\t\t$this->total->setDbValue($rs->fields('total'));\n\t}" ]
[ "0.76958275", "0.742485", "0.734857", "0.71839106", "0.6912883", "0.68287766", "0.68023103", "0.6741595", "0.6559187", "0.6559187", "0.6504624", "0.6394419", "0.63505006", "0.63505006", "0.63505006", "0.63338166", "0.63185984", "0.6255023", "0.6255023", "0.62537533", "0.62344724", "0.6203155", "0.6196197", "0.61699444", "0.616931", "0.6142972", "0.61206883", "0.60816395", "0.60781", "0.60409564", "0.60401505", "0.60098016", "0.6004407", "0.5998211", "0.5998211", "0.59847295", "0.5983441", "0.598103", "0.59737974", "0.5950707", "0.59415257", "0.5935032", "0.5934523", "0.5934523", "0.5934523", "0.5934523", "0.59315777", "0.5928559", "0.5924391", "0.59070885", "0.5906885", "0.58976066", "0.58892757", "0.58882296", "0.5885558", "0.58818895", "0.5868383", "0.5864857", "0.5861774", "0.58531505", "0.58416885", "0.58328086", "0.58279616", "0.58220416", "0.5811613", "0.58114153", "0.5811377", "0.5803025", "0.58014053", "0.5797267", "0.57850295", "0.57820666", "0.57810247", "0.5779433", "0.57777894", "0.5774292", "0.5768813", "0.5768695", "0.5766773", "0.5761284", "0.5758988", "0.57582456", "0.57569665", "0.5756073", "0.5737846", "0.5734457", "0.57322353", "0.572411", "0.57205296", "0.5703757", "0.57026917", "0.5702352", "0.5696875", "0.5695505", "0.56950027", "0.5683569", "0.56803656", "0.5678693", "0.5674712", "0.5670699" ]
0.7173319
4
Render edit row values
function RenderEditRow() { global $Security, $gsLanguage, $Language; // Call Row Rendering event $this->Row_Rendering(); // gjd_id $this->gjd_id->EditAttrs["class"] = "form-control"; $this->gjd_id->EditCustomAttributes = ""; $this->gjd_id->EditValue = $this->gjd_id->CurrentValue; $this->gjd_id->ViewCustomAttributes = ""; // gjm_id $this->gjm_id->EditAttrs["class"] = "form-control"; $this->gjm_id->EditCustomAttributes = ""; if ($this->gjm_id->getSessionValue() <> "") { $this->gjm_id->CurrentValue = $this->gjm_id->getSessionValue(); $this->gjm_id->ViewValue = $this->gjm_id->CurrentValue; $this->gjm_id->ViewCustomAttributes = ""; } else { $this->gjm_id->EditValue = $this->gjm_id->CurrentValue; $this->gjm_id->PlaceHolder = ew_RemoveHtml($this->gjm_id->FldCaption()); } // peg_id $this->peg_id->EditAttrs["class"] = "form-control"; $this->peg_id->EditCustomAttributes = ""; // b_mn $this->b_mn->EditAttrs["class"] = "form-control"; $this->b_mn->EditCustomAttributes = ""; $this->b_mn->EditValue = $this->b_mn->CurrentValue; $this->b_mn->PlaceHolder = ew_RemoveHtml($this->b_mn->FldCaption()); // b_sn $this->b_sn->EditAttrs["class"] = "form-control"; $this->b_sn->EditCustomAttributes = ""; $this->b_sn->EditValue = $this->b_sn->CurrentValue; $this->b_sn->PlaceHolder = ew_RemoveHtml($this->b_sn->FldCaption()); // b_sl $this->b_sl->EditAttrs["class"] = "form-control"; $this->b_sl->EditCustomAttributes = ""; $this->b_sl->EditValue = $this->b_sl->CurrentValue; $this->b_sl->PlaceHolder = ew_RemoveHtml($this->b_sl->FldCaption()); // b_rb $this->b_rb->EditAttrs["class"] = "form-control"; $this->b_rb->EditCustomAttributes = ""; $this->b_rb->EditValue = $this->b_rb->CurrentValue; $this->b_rb->PlaceHolder = ew_RemoveHtml($this->b_rb->FldCaption()); // b_km $this->b_km->EditAttrs["class"] = "form-control"; $this->b_km->EditCustomAttributes = ""; $this->b_km->EditValue = $this->b_km->CurrentValue; $this->b_km->PlaceHolder = ew_RemoveHtml($this->b_km->FldCaption()); // b_jm $this->b_jm->EditAttrs["class"] = "form-control"; $this->b_jm->EditCustomAttributes = ""; $this->b_jm->EditValue = $this->b_jm->CurrentValue; $this->b_jm->PlaceHolder = ew_RemoveHtml($this->b_jm->FldCaption()); // b_sb $this->b_sb->EditAttrs["class"] = "form-control"; $this->b_sb->EditCustomAttributes = ""; $this->b_sb->EditValue = $this->b_sb->CurrentValue; $this->b_sb->PlaceHolder = ew_RemoveHtml($this->b_sb->FldCaption()); // l_mn $this->l_mn->EditAttrs["class"] = "form-control"; $this->l_mn->EditCustomAttributes = ""; $this->l_mn->EditValue = $this->l_mn->CurrentValue; $this->l_mn->PlaceHolder = ew_RemoveHtml($this->l_mn->FldCaption()); // l_sn $this->l_sn->EditAttrs["class"] = "form-control"; $this->l_sn->EditCustomAttributes = ""; $this->l_sn->EditValue = $this->l_sn->CurrentValue; $this->l_sn->PlaceHolder = ew_RemoveHtml($this->l_sn->FldCaption()); // l_sl $this->l_sl->EditAttrs["class"] = "form-control"; $this->l_sl->EditCustomAttributes = ""; $this->l_sl->EditValue = $this->l_sl->CurrentValue; $this->l_sl->PlaceHolder = ew_RemoveHtml($this->l_sl->FldCaption()); // l_rb $this->l_rb->EditAttrs["class"] = "form-control"; $this->l_rb->EditCustomAttributes = ""; $this->l_rb->EditValue = $this->l_rb->CurrentValue; $this->l_rb->PlaceHolder = ew_RemoveHtml($this->l_rb->FldCaption()); // l_km $this->l_km->EditAttrs["class"] = "form-control"; $this->l_km->EditCustomAttributes = ""; $this->l_km->EditValue = $this->l_km->CurrentValue; $this->l_km->PlaceHolder = ew_RemoveHtml($this->l_km->FldCaption()); // l_jm $this->l_jm->EditAttrs["class"] = "form-control"; $this->l_jm->EditCustomAttributes = ""; $this->l_jm->EditValue = $this->l_jm->CurrentValue; $this->l_jm->PlaceHolder = ew_RemoveHtml($this->l_jm->FldCaption()); // l_sb $this->l_sb->EditAttrs["class"] = "form-control"; $this->l_sb->EditCustomAttributes = ""; $this->l_sb->EditValue = $this->l_sb->CurrentValue; $this->l_sb->PlaceHolder = ew_RemoveHtml($this->l_sb->FldCaption()); // Call Row Rendered event $this->Row_Rendered(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// id\n\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->id->EditCustomAttributes = \"\";\n\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fecha->EditCustomAttributes = \"\";\n\t\t$this->fecha->EditValue = FormatDateTime($this->fecha->CurrentValue, 8);\n\t\t$this->fecha->PlaceHolder = RemoveHtml($this->fecha->caption());\n\n\t\t// hora\n\t\t$this->hora->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->hora->EditCustomAttributes = \"\";\n\t\t$this->hora->EditValue = $this->hora->CurrentValue;\n\t\t$this->hora->PlaceHolder = RemoveHtml($this->hora->caption());\n\n\t\t// audio\n\t\t$this->audio->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->audio->EditCustomAttributes = \"\";\n\t\tif (!$this->audio->Raw)\n\t\t\t$this->audio->CurrentValue = HtmlDecode($this->audio->CurrentValue);\n\t\t$this->audio->EditValue = $this->audio->CurrentValue;\n\t\t$this->audio->PlaceHolder = RemoveHtml($this->audio->caption());\n\n\t\t// st\n\t\t$this->st->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->st->EditCustomAttributes = \"\";\n\t\tif (!$this->st->Raw)\n\t\t\t$this->st->CurrentValue = HtmlDecode($this->st->CurrentValue);\n\t\t$this->st->EditValue = $this->st->CurrentValue;\n\t\t$this->st->PlaceHolder = RemoveHtml($this->st->caption());\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraIni->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraIni->EditValue = FormatDateTime($this->fechaHoraIni->CurrentValue, 8);\n\t\t$this->fechaHoraIni->PlaceHolder = RemoveHtml($this->fechaHoraIni->caption());\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechaHoraFin->EditCustomAttributes = \"\";\n\t\t$this->fechaHoraFin->EditValue = FormatDateTime($this->fechaHoraFin->CurrentValue, 8);\n\t\t$this->fechaHoraFin->PlaceHolder = RemoveHtml($this->fechaHoraFin->caption());\n\n\t\t// telefono\n\t\t$this->telefono->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->telefono->EditCustomAttributes = \"\";\n\t\tif (!$this->telefono->Raw)\n\t\t\t$this->telefono->CurrentValue = HtmlDecode($this->telefono->CurrentValue);\n\t\t$this->telefono->EditValue = $this->telefono->CurrentValue;\n\t\t$this->telefono->PlaceHolder = RemoveHtml($this->telefono->caption());\n\n\t\t// agente\n\t\t$this->agente->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agente->EditCustomAttributes = \"\";\n\t\t$this->agente->EditValue = $this->agente->CurrentValue;\n\t\t$this->agente->PlaceHolder = RemoveHtml($this->agente->caption());\n\n\t\t// fechabo\n\t\t$this->fechabo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->fechabo->EditCustomAttributes = \"\";\n\t\t$this->fechabo->EditValue = FormatDateTime($this->fechabo->CurrentValue, 8);\n\t\t$this->fechabo->PlaceHolder = RemoveHtml($this->fechabo->caption());\n\n\t\t// agentebo\n\t\t$this->agentebo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->agentebo->EditCustomAttributes = \"\";\n\t\t$this->agentebo->EditValue = $this->agentebo->CurrentValue;\n\t\t$this->agentebo->PlaceHolder = RemoveHtml($this->agentebo->caption());\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->comentariosbo->EditCustomAttributes = \"\";\n\t\t$this->comentariosbo->EditValue = $this->comentariosbo->CurrentValue;\n\t\t$this->comentariosbo->PlaceHolder = RemoveHtml($this->comentariosbo->caption());\n\n\t\t// IP\n\t\t$this->IP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IP->EditCustomAttributes = \"\";\n\t\tif (!$this->IP->Raw)\n\t\t\t$this->IP->CurrentValue = HtmlDecode($this->IP->CurrentValue);\n\t\t$this->IP->EditValue = $this->IP->CurrentValue;\n\t\t$this->IP->PlaceHolder = RemoveHtml($this->IP->caption());\n\n\t\t// actual\n\t\t$this->actual->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->actual->EditCustomAttributes = \"\";\n\t\tif (!$this->actual->Raw)\n\t\t\t$this->actual->CurrentValue = HtmlDecode($this->actual->CurrentValue);\n\t\t$this->actual->EditValue = $this->actual->CurrentValue;\n\t\t$this->actual->PlaceHolder = RemoveHtml($this->actual->caption());\n\n\t\t// completado\n\t\t$this->completado->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->completado->EditCustomAttributes = \"\";\n\t\tif (!$this->completado->Raw)\n\t\t\t$this->completado->CurrentValue = HtmlDecode($this->completado->CurrentValue);\n\t\t$this->completado->EditValue = $this->completado->CurrentValue;\n\t\t$this->completado->PlaceHolder = RemoveHtml($this->completado->caption());\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_1_R->EditCustomAttributes = \"\";\n\t\t$this->_2_1_R->EditValue = $this->_2_1_R->CurrentValue;\n\t\t$this->_2_1_R->PlaceHolder = RemoveHtml($this->_2_1_R->caption());\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_2_R->EditCustomAttributes = \"\";\n\t\t$this->_2_2_R->EditValue = $this->_2_2_R->CurrentValue;\n\t\t$this->_2_2_R->PlaceHolder = RemoveHtml($this->_2_2_R->caption());\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_2_3_R->EditCustomAttributes = \"\";\n\t\t$this->_2_3_R->EditValue = $this->_2_3_R->CurrentValue;\n\t\t$this->_2_3_R->PlaceHolder = RemoveHtml($this->_2_3_R->caption());\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_3_4_R->EditCustomAttributes = \"\";\n\t\t$this->_3_4_R->EditValue = $this->_3_4_R->CurrentValue;\n\t\t$this->_3_4_R->PlaceHolder = RemoveHtml($this->_3_4_R->caption());\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_5_R->EditCustomAttributes = \"\";\n\t\t$this->_4_5_R->EditValue = $this->_4_5_R->CurrentValue;\n\t\t$this->_4_5_R->PlaceHolder = RemoveHtml($this->_4_5_R->caption());\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_6_R->EditCustomAttributes = \"\";\n\t\t$this->_4_6_R->EditValue = $this->_4_6_R->CurrentValue;\n\t\t$this->_4_6_R->PlaceHolder = RemoveHtml($this->_4_6_R->caption());\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_7_R->EditCustomAttributes = \"\";\n\t\t$this->_4_7_R->EditValue = $this->_4_7_R->CurrentValue;\n\t\t$this->_4_7_R->PlaceHolder = RemoveHtml($this->_4_7_R->caption());\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_4_8_R->EditCustomAttributes = \"\";\n\t\t$this->_4_8_R->EditValue = $this->_4_8_R->CurrentValue;\n\t\t$this->_4_8_R->PlaceHolder = RemoveHtml($this->_4_8_R->caption());\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_9_R->EditCustomAttributes = \"\";\n\t\t$this->_5_9_R->EditValue = $this->_5_9_R->CurrentValue;\n\t\t$this->_5_9_R->PlaceHolder = RemoveHtml($this->_5_9_R->caption());\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_10_R->EditCustomAttributes = \"\";\n\t\t$this->_5_10_R->EditValue = $this->_5_10_R->CurrentValue;\n\t\t$this->_5_10_R->PlaceHolder = RemoveHtml($this->_5_10_R->caption());\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_11_R->EditCustomAttributes = \"\";\n\t\t$this->_5_11_R->EditValue = $this->_5_11_R->CurrentValue;\n\t\t$this->_5_11_R->PlaceHolder = RemoveHtml($this->_5_11_R->caption());\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_12_R->EditCustomAttributes = \"\";\n\t\t$this->_5_12_R->EditValue = $this->_5_12_R->CurrentValue;\n\t\t$this->_5_12_R->PlaceHolder = RemoveHtml($this->_5_12_R->caption());\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_13_R->EditCustomAttributes = \"\";\n\t\t$this->_5_13_R->EditValue = $this->_5_13_R->CurrentValue;\n\t\t$this->_5_13_R->PlaceHolder = RemoveHtml($this->_5_13_R->caption());\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_14_R->EditCustomAttributes = \"\";\n\t\t$this->_5_14_R->EditValue = $this->_5_14_R->CurrentValue;\n\t\t$this->_5_14_R->PlaceHolder = RemoveHtml($this->_5_14_R->caption());\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_5_51_R->EditCustomAttributes = \"\";\n\t\t$this->_5_51_R->EditValue = $this->_5_51_R->CurrentValue;\n\t\t$this->_5_51_R->PlaceHolder = RemoveHtml($this->_5_51_R->caption());\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_15_R->EditCustomAttributes = \"\";\n\t\t$this->_6_15_R->EditValue = $this->_6_15_R->CurrentValue;\n\t\t$this->_6_15_R->PlaceHolder = RemoveHtml($this->_6_15_R->caption());\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_16_R->EditCustomAttributes = \"\";\n\t\t$this->_6_16_R->EditValue = $this->_6_16_R->CurrentValue;\n\t\t$this->_6_16_R->PlaceHolder = RemoveHtml($this->_6_16_R->caption());\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_17_R->EditCustomAttributes = \"\";\n\t\t$this->_6_17_R->EditValue = $this->_6_17_R->CurrentValue;\n\t\t$this->_6_17_R->PlaceHolder = RemoveHtml($this->_6_17_R->caption());\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_18_R->EditCustomAttributes = \"\";\n\t\t$this->_6_18_R->EditValue = $this->_6_18_R->CurrentValue;\n\t\t$this->_6_18_R->PlaceHolder = RemoveHtml($this->_6_18_R->caption());\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_19_R->EditCustomAttributes = \"\";\n\t\t$this->_6_19_R->EditValue = $this->_6_19_R->CurrentValue;\n\t\t$this->_6_19_R->PlaceHolder = RemoveHtml($this->_6_19_R->caption());\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_20_R->EditCustomAttributes = \"\";\n\t\t$this->_6_20_R->EditValue = $this->_6_20_R->CurrentValue;\n\t\t$this->_6_20_R->PlaceHolder = RemoveHtml($this->_6_20_R->caption());\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_6_52_R->EditCustomAttributes = \"\";\n\t\t$this->_6_52_R->EditValue = $this->_6_52_R->CurrentValue;\n\t\t$this->_6_52_R->PlaceHolder = RemoveHtml($this->_6_52_R->caption());\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_7_21_R->EditCustomAttributes = \"\";\n\t\t$this->_7_21_R->EditValue = $this->_7_21_R->CurrentValue;\n\t\t$this->_7_21_R->PlaceHolder = RemoveHtml($this->_7_21_R->caption());\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_22_R->EditCustomAttributes = \"\";\n\t\t$this->_8_22_R->EditValue = $this->_8_22_R->CurrentValue;\n\t\t$this->_8_22_R->PlaceHolder = RemoveHtml($this->_8_22_R->caption());\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_23_R->EditCustomAttributes = \"\";\n\t\t$this->_8_23_R->EditValue = $this->_8_23_R->CurrentValue;\n\t\t$this->_8_23_R->PlaceHolder = RemoveHtml($this->_8_23_R->caption());\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_24_R->EditCustomAttributes = \"\";\n\t\t$this->_8_24_R->EditValue = $this->_8_24_R->CurrentValue;\n\t\t$this->_8_24_R->PlaceHolder = RemoveHtml($this->_8_24_R->caption());\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_8_25_R->EditCustomAttributes = \"\";\n\t\t$this->_8_25_R->EditValue = $this->_8_25_R->CurrentValue;\n\t\t$this->_8_25_R->PlaceHolder = RemoveHtml($this->_8_25_R->caption());\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_26_R->EditCustomAttributes = \"\";\n\t\t$this->_9_26_R->EditValue = $this->_9_26_R->CurrentValue;\n\t\t$this->_9_26_R->PlaceHolder = RemoveHtml($this->_9_26_R->caption());\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_27_R->EditCustomAttributes = \"\";\n\t\t$this->_9_27_R->EditValue = $this->_9_27_R->CurrentValue;\n\t\t$this->_9_27_R->PlaceHolder = RemoveHtml($this->_9_27_R->caption());\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_28_R->EditCustomAttributes = \"\";\n\t\t$this->_9_28_R->EditValue = $this->_9_28_R->CurrentValue;\n\t\t$this->_9_28_R->PlaceHolder = RemoveHtml($this->_9_28_R->caption());\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_29_R->EditCustomAttributes = \"\";\n\t\t$this->_9_29_R->EditValue = $this->_9_29_R->CurrentValue;\n\t\t$this->_9_29_R->PlaceHolder = RemoveHtml($this->_9_29_R->caption());\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_30_R->EditCustomAttributes = \"\";\n\t\t$this->_9_30_R->EditValue = $this->_9_30_R->CurrentValue;\n\t\t$this->_9_30_R->PlaceHolder = RemoveHtml($this->_9_30_R->caption());\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_31_R->EditCustomAttributes = \"\";\n\t\t$this->_9_31_R->EditValue = $this->_9_31_R->CurrentValue;\n\t\t$this->_9_31_R->PlaceHolder = RemoveHtml($this->_9_31_R->caption());\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_32_R->EditCustomAttributes = \"\";\n\t\t$this->_9_32_R->EditValue = $this->_9_32_R->CurrentValue;\n\t\t$this->_9_32_R->PlaceHolder = RemoveHtml($this->_9_32_R->caption());\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_33_R->EditCustomAttributes = \"\";\n\t\t$this->_9_33_R->EditValue = $this->_9_33_R->CurrentValue;\n\t\t$this->_9_33_R->PlaceHolder = RemoveHtml($this->_9_33_R->caption());\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_34_R->EditCustomAttributes = \"\";\n\t\t$this->_9_34_R->EditValue = $this->_9_34_R->CurrentValue;\n\t\t$this->_9_34_R->PlaceHolder = RemoveHtml($this->_9_34_R->caption());\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_35_R->EditCustomAttributes = \"\";\n\t\t$this->_9_35_R->EditValue = $this->_9_35_R->CurrentValue;\n\t\t$this->_9_35_R->PlaceHolder = RemoveHtml($this->_9_35_R->caption());\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_36_R->EditCustomAttributes = \"\";\n\t\t$this->_9_36_R->EditValue = $this->_9_36_R->CurrentValue;\n\t\t$this->_9_36_R->PlaceHolder = RemoveHtml($this->_9_36_R->caption());\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_37_R->EditCustomAttributes = \"\";\n\t\t$this->_9_37_R->EditValue = $this->_9_37_R->CurrentValue;\n\t\t$this->_9_37_R->PlaceHolder = RemoveHtml($this->_9_37_R->caption());\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_38_R->EditCustomAttributes = \"\";\n\t\t$this->_9_38_R->EditValue = $this->_9_38_R->CurrentValue;\n\t\t$this->_9_38_R->PlaceHolder = RemoveHtml($this->_9_38_R->caption());\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_9_39_R->EditCustomAttributes = \"\";\n\t\t$this->_9_39_R->EditValue = $this->_9_39_R->CurrentValue;\n\t\t$this->_9_39_R->PlaceHolder = RemoveHtml($this->_9_39_R->caption());\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_40_R->EditCustomAttributes = \"\";\n\t\t$this->_10_40_R->EditValue = $this->_10_40_R->CurrentValue;\n\t\t$this->_10_40_R->PlaceHolder = RemoveHtml($this->_10_40_R->caption());\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_10_41_R->EditCustomAttributes = \"\";\n\t\t$this->_10_41_R->EditValue = $this->_10_41_R->CurrentValue;\n\t\t$this->_10_41_R->PlaceHolder = RemoveHtml($this->_10_41_R->caption());\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_42_R->EditCustomAttributes = \"\";\n\t\t$this->_11_42_R->EditValue = $this->_11_42_R->CurrentValue;\n\t\t$this->_11_42_R->PlaceHolder = RemoveHtml($this->_11_42_R->caption());\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_11_43_R->EditCustomAttributes = \"\";\n\t\t$this->_11_43_R->EditValue = $this->_11_43_R->CurrentValue;\n\t\t$this->_11_43_R->PlaceHolder = RemoveHtml($this->_11_43_R->caption());\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_44_R->EditCustomAttributes = \"\";\n\t\t$this->_12_44_R->EditValue = $this->_12_44_R->CurrentValue;\n\t\t$this->_12_44_R->PlaceHolder = RemoveHtml($this->_12_44_R->caption());\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_45_R->EditCustomAttributes = \"\";\n\t\t$this->_12_45_R->EditValue = $this->_12_45_R->CurrentValue;\n\t\t$this->_12_45_R->PlaceHolder = RemoveHtml($this->_12_45_R->caption());\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_46_R->EditCustomAttributes = \"\";\n\t\t$this->_12_46_R->EditValue = $this->_12_46_R->CurrentValue;\n\t\t$this->_12_46_R->PlaceHolder = RemoveHtml($this->_12_46_R->caption());\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_47_R->EditCustomAttributes = \"\";\n\t\t$this->_12_47_R->EditValue = $this->_12_47_R->CurrentValue;\n\t\t$this->_12_47_R->PlaceHolder = RemoveHtml($this->_12_47_R->caption());\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_48_R->EditCustomAttributes = \"\";\n\t\t$this->_12_48_R->EditValue = $this->_12_48_R->CurrentValue;\n\t\t$this->_12_48_R->PlaceHolder = RemoveHtml($this->_12_48_R->caption());\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_49_R->EditCustomAttributes = \"\";\n\t\t$this->_12_49_R->EditValue = $this->_12_49_R->CurrentValue;\n\t\t$this->_12_49_R->PlaceHolder = RemoveHtml($this->_12_49_R->caption());\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_50_R->EditCustomAttributes = \"\";\n\t\t$this->_12_50_R->EditValue = $this->_12_50_R->CurrentValue;\n\t\t$this->_12_50_R->PlaceHolder = RemoveHtml($this->_12_50_R->caption());\n\n\t\t// 1__R\n\t\t$this->_1__R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_1__R->EditCustomAttributes = \"\";\n\t\t$this->_1__R->EditValue = $this->_1__R->CurrentValue;\n\t\t$this->_1__R->PlaceHolder = RemoveHtml($this->_1__R->caption());\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_R->EditValue = $this->_13_54_R->CurrentValue;\n\t\t$this->_13_54_R->PlaceHolder = RemoveHtml($this->_13_54_R->caption());\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_1_R->EditValue = $this->_13_54_1_R->CurrentValue;\n\t\t$this->_13_54_1_R->PlaceHolder = RemoveHtml($this->_13_54_1_R->caption());\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_54_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_54_2_R->EditValue = $this->_13_54_2_R->CurrentValue;\n\t\t$this->_13_54_2_R->PlaceHolder = RemoveHtml($this->_13_54_2_R->caption());\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_R->EditValue = $this->_13_55_R->CurrentValue;\n\t\t$this->_13_55_R->PlaceHolder = RemoveHtml($this->_13_55_R->caption());\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_1_R->EditValue = $this->_13_55_1_R->CurrentValue;\n\t\t$this->_13_55_1_R->PlaceHolder = RemoveHtml($this->_13_55_1_R->caption());\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_55_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_55_2_R->EditValue = $this->_13_55_2_R->CurrentValue;\n\t\t$this->_13_55_2_R->PlaceHolder = RemoveHtml($this->_13_55_2_R->caption());\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_R->EditValue = $this->_13_56_R->CurrentValue;\n\t\t$this->_13_56_R->PlaceHolder = RemoveHtml($this->_13_56_R->caption());\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_1_R->EditValue = $this->_13_56_1_R->CurrentValue;\n\t\t$this->_13_56_1_R->PlaceHolder = RemoveHtml($this->_13_56_1_R->caption());\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_56_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_56_2_R->EditValue = $this->_13_56_2_R->CurrentValue;\n\t\t$this->_13_56_2_R->PlaceHolder = RemoveHtml($this->_13_56_2_R->caption());\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_R->EditValue = $this->_12_53_R->CurrentValue;\n\t\t$this->_12_53_R->PlaceHolder = RemoveHtml($this->_12_53_R->caption());\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_1_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_1_R->EditValue = $this->_12_53_1_R->CurrentValue;\n\t\t$this->_12_53_1_R->PlaceHolder = RemoveHtml($this->_12_53_1_R->caption());\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_2_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_2_R->EditValue = $this->_12_53_2_R->CurrentValue;\n\t\t$this->_12_53_2_R->PlaceHolder = RemoveHtml($this->_12_53_2_R->caption());\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_3_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_3_R->EditValue = $this->_12_53_3_R->CurrentValue;\n\t\t$this->_12_53_3_R->PlaceHolder = RemoveHtml($this->_12_53_3_R->caption());\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_4_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_4_R->EditValue = $this->_12_53_4_R->CurrentValue;\n\t\t$this->_12_53_4_R->PlaceHolder = RemoveHtml($this->_12_53_4_R->caption());\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_5_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_5_R->EditValue = $this->_12_53_5_R->CurrentValue;\n\t\t$this->_12_53_5_R->PlaceHolder = RemoveHtml($this->_12_53_5_R->caption());\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_6_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_6_R->EditValue = $this->_12_53_6_R->CurrentValue;\n\t\t$this->_12_53_6_R->PlaceHolder = RemoveHtml($this->_12_53_6_R->caption());\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_R->EditValue = $this->_13_57_R->CurrentValue;\n\t\t$this->_13_57_R->PlaceHolder = RemoveHtml($this->_13_57_R->caption());\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_1_R->EditValue = $this->_13_57_1_R->CurrentValue;\n\t\t$this->_13_57_1_R->PlaceHolder = RemoveHtml($this->_13_57_1_R->caption());\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_57_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_57_2_R->EditValue = $this->_13_57_2_R->CurrentValue;\n\t\t$this->_13_57_2_R->PlaceHolder = RemoveHtml($this->_13_57_2_R->caption());\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_R->EditValue = $this->_13_58_R->CurrentValue;\n\t\t$this->_13_58_R->PlaceHolder = RemoveHtml($this->_13_58_R->caption());\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_1_R->EditValue = $this->_13_58_1_R->CurrentValue;\n\t\t$this->_13_58_1_R->PlaceHolder = RemoveHtml($this->_13_58_1_R->caption());\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_58_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_58_2_R->EditValue = $this->_13_58_2_R->CurrentValue;\n\t\t$this->_13_58_2_R->PlaceHolder = RemoveHtml($this->_13_58_2_R->caption());\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_R->EditValue = $this->_13_59_R->CurrentValue;\n\t\t$this->_13_59_R->PlaceHolder = RemoveHtml($this->_13_59_R->caption());\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_1_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_1_R->EditValue = $this->_13_59_1_R->CurrentValue;\n\t\t$this->_13_59_1_R->PlaceHolder = RemoveHtml($this->_13_59_1_R->caption());\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_59_2_R->EditCustomAttributes = \"\";\n\t\t$this->_13_59_2_R->EditValue = $this->_13_59_2_R->CurrentValue;\n\t\t$this->_13_59_2_R->PlaceHolder = RemoveHtml($this->_13_59_2_R->caption());\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_13_60_R->EditCustomAttributes = \"\";\n\t\t$this->_13_60_R->EditValue = $this->_13_60_R->CurrentValue;\n\t\t$this->_13_60_R->PlaceHolder = RemoveHtml($this->_13_60_R->caption());\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_7_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_7_R->EditValue = $this->_12_53_7_R->CurrentValue;\n\t\t$this->_12_53_7_R->PlaceHolder = RemoveHtml($this->_12_53_7_R->caption());\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->_12_53_8_R->EditCustomAttributes = \"\";\n\t\t$this->_12_53_8_R->EditValue = $this->_12_53_8_R->CurrentValue;\n\t\t$this->_12_53_8_R->PlaceHolder = RemoveHtml($this->_12_53_8_R->caption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IDXDAFTAR->EditCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->EditValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t$this->TGLREG->EditValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->EditValue = ew_FormatDateTime($this->TGLREG->EditValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->EditValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN->EditValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU_BPJS->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->EditValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKTP->EditCustomAttributes = \"\";\n\t\t$this->NOKTP->EditValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDDOKTER->EditCustomAttributes = \"\";\n\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->EditValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->EditValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->EditValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->EditValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->EditValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->EditValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->EditValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->EditValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOJAMINAN->EditCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->EditValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->SHIFT->EditCustomAttributes = \"\";\n\t\t$this->SHIFT->EditValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->STATUS->EditCustomAttributes = \"\";\n\t\t$this->STATUS->EditValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETERANGAN_STATUS->EditCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->EditValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PASIENBARU->EditCustomAttributes = \"\";\n\t\t$this->PASIENBARU->EditValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t$this->NIP->EditValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MASUKPOLY->EditCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->EditValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->EditValue = ew_FormatDateTime($this->MASUKPOLY->EditValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELUARPOLY->EditCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->EditValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->EditValue = ew_FormatDateTime($this->KELUARPOLY->EditValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETRUJUK->EditCustomAttributes = \"\";\n\t\t$this->KETRUJUK->EditValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KETBAYAR->EditCustomAttributes = \"\";\n\t\t$this->KETBAYAR->EditValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->EditValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->EditValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->EditValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->EditValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t$this->JAMREG->EditValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->EditValue = ew_FormatDateTime($this->JAMREG->EditValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BATAL->EditCustomAttributes = \"\";\n\t\t$this->BATAL->EditValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t$this->NO_SJP->EditValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NO_PESERTA->EditCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->EditValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t$this->NOKARTU->EditValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->EditValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->EditValue = ew_FormatDateTime($this->TANGGAL_SEP->EditValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->EditValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->EditValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->EditValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->MINTA_RUJUKAN->EditCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->EditValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->EditValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->EditValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->EditValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->EditValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->EditValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->EditValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->EditValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->EditValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->EditValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t$this->USER->EditValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t$this->tanggal->EditValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->bulan->EditCustomAttributes = \"\";\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->EditValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->EditValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->EditValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->tahun->EditCustomAttributes = \"\";\n\t\t$this->tahun->EditValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderEditRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// rid\n\t\t$this->rid->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->rid->EditCustomAttributes = \"\";\n\t\t$this->rid->EditValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->usn->EditCustomAttributes = \"\";\n\t\t$this->usn->EditValue = $this->usn->CurrentValue;\n\t\t$this->usn->PlaceHolder = ew_RemoveHtml($this->usn->FldCaption());\n\n\t\t// name\n\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->name->EditCustomAttributes = \"\";\n\t\t$this->name->EditValue = $this->name->CurrentValue;\n\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t// sc1\n\t\t$this->sc1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc1->EditCustomAttributes = \"\";\n\t\t$this->sc1->EditValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->PlaceHolder = ew_RemoveHtml($this->sc1->FldCaption());\n\n\t\t// s1\n\t\t$this->s1->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s1->EditCustomAttributes = \"\";\n\t\t$this->s1->EditValue = $this->s1->CurrentValue;\n\t\t$this->s1->PlaceHolder = ew_RemoveHtml($this->s1->FldCaption());\n\n\t\t// sc2\n\t\t$this->sc2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc2->EditCustomAttributes = \"\";\n\t\t$this->sc2->EditValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->PlaceHolder = ew_RemoveHtml($this->sc2->FldCaption());\n\n\t\t// s2\n\t\t$this->s2->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s2->EditCustomAttributes = \"\";\n\t\t$this->s2->EditValue = $this->s2->CurrentValue;\n\t\t$this->s2->PlaceHolder = ew_RemoveHtml($this->s2->FldCaption());\n\n\t\t// sc3\n\t\t$this->sc3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc3->EditCustomAttributes = \"\";\n\t\t$this->sc3->EditValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->PlaceHolder = ew_RemoveHtml($this->sc3->FldCaption());\n\n\t\t// s3\n\t\t$this->s3->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s3->EditCustomAttributes = \"\";\n\t\t$this->s3->EditValue = $this->s3->CurrentValue;\n\t\t$this->s3->PlaceHolder = ew_RemoveHtml($this->s3->FldCaption());\n\n\t\t// sc4\n\t\t$this->sc4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc4->EditCustomAttributes = \"\";\n\t\t$this->sc4->EditValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->PlaceHolder = ew_RemoveHtml($this->sc4->FldCaption());\n\n\t\t// s4\n\t\t$this->s4->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s4->EditCustomAttributes = \"\";\n\t\t$this->s4->EditValue = $this->s4->CurrentValue;\n\t\t$this->s4->PlaceHolder = ew_RemoveHtml($this->s4->FldCaption());\n\n\t\t// sc5\n\t\t$this->sc5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc5->EditCustomAttributes = \"\";\n\t\t$this->sc5->EditValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->PlaceHolder = ew_RemoveHtml($this->sc5->FldCaption());\n\n\t\t// s5\n\t\t$this->s5->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s5->EditCustomAttributes = \"\";\n\t\t$this->s5->EditValue = $this->s5->CurrentValue;\n\t\t$this->s5->PlaceHolder = ew_RemoveHtml($this->s5->FldCaption());\n\n\t\t// sc6\n\t\t$this->sc6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc6->EditCustomAttributes = \"\";\n\t\t$this->sc6->EditValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->PlaceHolder = ew_RemoveHtml($this->sc6->FldCaption());\n\n\t\t// s6\n\t\t$this->s6->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s6->EditCustomAttributes = \"\";\n\t\t$this->s6->EditValue = $this->s6->CurrentValue;\n\t\t$this->s6->PlaceHolder = ew_RemoveHtml($this->s6->FldCaption());\n\n\t\t// sc7\n\t\t$this->sc7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc7->EditCustomAttributes = \"\";\n\t\t$this->sc7->EditValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->PlaceHolder = ew_RemoveHtml($this->sc7->FldCaption());\n\n\t\t// s7\n\t\t$this->s7->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s7->EditCustomAttributes = \"\";\n\t\t$this->s7->EditValue = $this->s7->CurrentValue;\n\t\t$this->s7->PlaceHolder = ew_RemoveHtml($this->s7->FldCaption());\n\n\t\t// sc8\n\t\t$this->sc8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->sc8->EditCustomAttributes = \"\";\n\t\t$this->sc8->EditValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->PlaceHolder = ew_RemoveHtml($this->sc8->FldCaption());\n\n\t\t// s8\n\t\t$this->s8->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->s8->EditCustomAttributes = \"\";\n\t\t$this->s8->EditValue = $this->s8->CurrentValue;\n\t\t$this->s8->PlaceHolder = ew_RemoveHtml($this->s8->FldCaption());\n\n\t\t// total\n\t\t$this->total->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->total->EditCustomAttributes = \"\";\n\t\t$this->total->EditValue = $this->total->CurrentValue;\n\t\t$this->total->PlaceHolder = ew_RemoveHtml($this->total->FldCaption());\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "abstract protected function renderEdit();", "public function renderEditRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// IncomeCode\n\t\t$this->IncomeCode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeCode->EditCustomAttributes = \"\";\n\t\t$this->IncomeCode->EditValue = $this->IncomeCode->CurrentValue;\n\t\t$this->IncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeName->EditCustomAttributes = \"\";\n\t\tif (!$this->IncomeName->Raw)\n\t\t\t$this->IncomeName->CurrentValue = HtmlDecode($this->IncomeName->CurrentValue);\n\t\t$this->IncomeName->EditValue = $this->IncomeName->CurrentValue;\n\t\t$this->IncomeName->PlaceHolder = RemoveHtml($this->IncomeName->caption());\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeDescription->EditCustomAttributes = \"\";\n\t\tif (!$this->IncomeDescription->Raw)\n\t\t\t$this->IncomeDescription->CurrentValue = HtmlDecode($this->IncomeDescription->CurrentValue);\n\t\t$this->IncomeDescription->EditValue = $this->IncomeDescription->CurrentValue;\n\t\t$this->IncomeDescription->PlaceHolder = RemoveHtml($this->IncomeDescription->caption());\n\n\t\t// Division\n\t\t$this->Division->EditCustomAttributes = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeAmount->EditCustomAttributes = \"\";\n\t\t$this->IncomeAmount->EditValue = $this->IncomeAmount->CurrentValue;\n\t\t$this->IncomeAmount->PlaceHolder = RemoveHtml($this->IncomeAmount->caption());\n\t\tif (strval($this->IncomeAmount->EditValue) != \"\" && is_numeric($this->IncomeAmount->EditValue))\n\t\t\t$this->IncomeAmount->EditValue = FormatNumber($this->IncomeAmount->EditValue, -2, -2, -2, -2);\n\t\t\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->IncomeBasicRate->EditCustomAttributes = \"\";\n\t\t$this->IncomeBasicRate->EditValue = $this->IncomeBasicRate->CurrentValue;\n\t\t$this->IncomeBasicRate->PlaceHolder = RemoveHtml($this->IncomeBasicRate->caption());\n\t\tif (strval($this->IncomeBasicRate->EditValue) != \"\" && is_numeric($this->IncomeBasicRate->EditValue))\n\t\t\t$this->IncomeBasicRate->EditValue = FormatNumber($this->IncomeBasicRate->EditValue, -2, -2, -2, -2);\n\t\t\n\n\t\t// BaseIncomeCode\n\t\t$this->BaseIncomeCode->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->BaseIncomeCode->EditCustomAttributes = \"\";\n\n\t\t// Taxable\n\t\t$this->Taxable->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->Taxable->EditCustomAttributes = \"\";\n\n\t\t// AccountNo\n\t\t$this->AccountNo->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->AccountNo->EditCustomAttributes = \"\";\n\n\t\t// JobIncluded\n\t\t$this->JobIncluded->EditCustomAttributes = \"\";\n\n\t\t// Application\n\t\t$this->Application->EditAttrs[\"class\"] = \"form-control\";\n\t\t$this->Application->EditCustomAttributes = \"\";\n\n\t\t// JobExcluded\n\t\t$this->JobExcluded->EditCustomAttributes = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// empleado_id\n\t\t// codigo\n\t\t// cui\n\t\t// nombre\n\t\t// apellido\n\t\t// direccion\n\t\t// departamento_origen_id\n\t\t// municipio_id\n\t\t// telefono_residencia\n\t\t// telefono_celular\n\t\t// fecha_nacimiento\n\t\t// nacionalidad\n\t\t// estado_civil\n\t\t// sexo\n\t\t// igss\n\t\t// nit\n\t\t// licencia_conducir\n\t\t// area_id\n\t\t// departmento_id\n\t\t// seccion_id\n\t\t// puesto_id\n\t\t// observaciones\n\t\t// tipo_sangre_id\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// codigo\n\t\t$this->codigo->ViewValue = $this->codigo->CurrentValue;\n\t\t$this->codigo->ViewCustomAttributes = \"\";\n\n\t\t// cui\n\t\t$this->cui->ViewValue = $this->cui->CurrentValue;\n\t\t$this->cui->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// apellido\n\t\t$this->apellido->ViewValue = $this->apellido->CurrentValue;\n\t\t$this->apellido->ViewCustomAttributes = \"\";\n\n\t\t// direccion\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\n\t\t$this->direccion->ViewCustomAttributes = \"\";\n\n\t\t// departamento_origen_id\n\t\tif (strval($this->departamento_origen_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_origen_id`\" . ew_SearchString(\"=\", $this->departamento_origen_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_origen_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento_origen`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departamento_origen_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departamento_origen_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departamento_origen_id->ViewCustomAttributes = \"\";\n\n\t\t// municipio_id\n\t\tif (strval($this->municipio_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`municipio_id`\" . ew_SearchString(\"=\", $this->municipio_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `municipio_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `municipio`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->municipio_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->municipio_id->ViewValue = NULL;\n\t\t}\n\t\t$this->municipio_id->ViewCustomAttributes = \"\";\n\n\t\t// telefono_residencia\n\t\t$this->telefono_residencia->ViewValue = $this->telefono_residencia->CurrentValue;\n\t\t$this->telefono_residencia->ViewCustomAttributes = \"\";\n\n\t\t// telefono_celular\n\t\t$this->telefono_celular->ViewValue = $this->telefono_celular->CurrentValue;\n\t\t$this->telefono_celular->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// nacionalidad\n\t\tif (strval($this->nacionalidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`nacionalidad_id`\" . ew_SearchString(\"=\", $this->nacionalidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `nacionalidad_id`, `nacionalidad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `nacionalidad`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nacionalidad, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nacionalidad->ViewValue = NULL;\n\t\t}\n\t\t$this->nacionalidad->ViewCustomAttributes = \"\";\n\n\t\t// estado_civil\n\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\tif (strval($this->estado_civil->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`estado_civil_id`\" . ew_SearchString(\"=\", $this->estado_civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `estado_civil_id`, `estado_civil` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->estado_civil, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->estado_civil->ViewValue = NULL;\n\t\t}\n\t\t$this->estado_civil->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`sexo_id`\" . ew_SearchString(\"=\", $this->sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `sexo_id`, `sexo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sexo, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// igss\n\t\t$this->igss->ViewValue = $this->igss->CurrentValue;\n\t\t$this->igss->ViewCustomAttributes = \"\";\n\n\t\t// nit\n\t\t$this->nit->ViewValue = $this->nit->CurrentValue;\n\t\t$this->nit->ViewCustomAttributes = \"\";\n\n\t\t// licencia_conducir\n\t\t$this->licencia_conducir->ViewValue = $this->licencia_conducir->CurrentValue;\n\t\t$this->licencia_conducir->ViewCustomAttributes = \"\";\n\n\t\t// area_id\n\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\tif (strval($this->area_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`area_id`\" . ew_SearchString(\"=\", $this->area_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `area_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `area`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->area_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->area_id->ViewValue = NULL;\n\t\t}\n\t\t$this->area_id->ViewCustomAttributes = \"\";\n\n\t\t// departmento_id\n\t\tif (strval($this->departmento_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_id`\" . ew_SearchString(\"=\", $this->departmento_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departmento_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departmento_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departmento_id->ViewCustomAttributes = \"\";\n\n\t\t// seccion_id\n\t\tif (strval($this->seccion_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`seccion_id`\" . ew_SearchString(\"=\", $this->seccion_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `seccion_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->seccion_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->seccion_id->ViewValue = NULL;\n\t\t}\n\t\t$this->seccion_id->ViewCustomAttributes = \"\";\n\n\t\t// puesto_id\n\t\tif (strval($this->puesto_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`puesto_id`\" . ew_SearchString(\"=\", $this->puesto_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `puesto_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `puesto`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->puesto_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->puesto_id->ViewValue = NULL;\n\t\t}\n\t\t$this->puesto_id->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// tipo_sangre_id\n\t\tif (strval($this->tipo_sangre_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`tipo_sangre_id`\" . ew_SearchString(\"=\", $this->tipo_sangre_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `tipo_sangre_id`, `tipo_sangre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_sangre`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipo_sangre_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipo_sangre_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo_sangre_id->ViewCustomAttributes = \"\";\n\n\t\t// estado\n\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// codigo\n\t\t\t$this->codigo->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo->HrefValue = \"\";\n\t\t\t$this->codigo->TooltipValue = \"\";\n\n\t\t\t// cui\n\t\t\t$this->cui->LinkCustomAttributes = \"\";\n\t\t\t$this->cui->HrefValue = \"\";\n\t\t\t$this->cui->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// apellido\n\t\t\t$this->apellido->LinkCustomAttributes = \"\";\n\t\t\t$this->apellido->HrefValue = \"\";\n\t\t\t$this->apellido->TooltipValue = \"\";\n\n\t\t\t// direccion\n\t\t\t$this->direccion->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion->HrefValue = \"\";\n\t\t\t$this->direccion->TooltipValue = \"\";\n\n\t\t\t// departamento_origen_id\n\t\t\t$this->departamento_origen_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departamento_origen_id->HrefValue = \"\";\n\t\t\t$this->departamento_origen_id->TooltipValue = \"\";\n\n\t\t\t// municipio_id\n\t\t\t$this->municipio_id->LinkCustomAttributes = \"\";\n\t\t\t$this->municipio_id->HrefValue = \"\";\n\t\t\t$this->municipio_id->TooltipValue = \"\";\n\n\t\t\t// telefono_residencia\n\t\t\t$this->telefono_residencia->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_residencia->HrefValue = \"\";\n\t\t\t$this->telefono_residencia->TooltipValue = \"\";\n\n\t\t\t// telefono_celular\n\t\t\t$this->telefono_celular->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_celular->HrefValue = \"\";\n\t\t\t$this->telefono_celular->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// nacionalidad\n\t\t\t$this->nacionalidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nacionalidad->HrefValue = \"\";\n\t\t\t$this->nacionalidad->TooltipValue = \"\";\n\n\t\t\t// estado_civil\n\t\t\t$this->estado_civil->LinkCustomAttributes = \"\";\n\t\t\t$this->estado_civil->HrefValue = \"\";\n\t\t\t$this->estado_civil->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// igss\n\t\t\t$this->igss->LinkCustomAttributes = \"\";\n\t\t\t$this->igss->HrefValue = \"\";\n\t\t\t$this->igss->TooltipValue = \"\";\n\n\t\t\t// nit\n\t\t\t$this->nit->LinkCustomAttributes = \"\";\n\t\t\t$this->nit->HrefValue = \"\";\n\t\t\t$this->nit->TooltipValue = \"\";\n\n\t\t\t// licencia_conducir\n\t\t\t$this->licencia_conducir->LinkCustomAttributes = \"\";\n\t\t\t$this->licencia_conducir->HrefValue = \"\";\n\t\t\t$this->licencia_conducir->TooltipValue = \"\";\n\n\t\t\t// area_id\n\t\t\t$this->area_id->LinkCustomAttributes = \"\";\n\t\t\t$this->area_id->HrefValue = \"\";\n\t\t\t$this->area_id->TooltipValue = \"\";\n\n\t\t\t// departmento_id\n\t\t\t$this->departmento_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departmento_id->HrefValue = \"\";\n\t\t\t$this->departmento_id->TooltipValue = \"\";\n\n\t\t\t// seccion_id\n\t\t\t$this->seccion_id->LinkCustomAttributes = \"\";\n\t\t\t$this->seccion_id->HrefValue = \"\";\n\t\t\t$this->seccion_id->TooltipValue = \"\";\n\n\t\t\t// puesto_id\n\t\t\t$this->puesto_id->LinkCustomAttributes = \"\";\n\t\t\t$this->puesto_id->HrefValue = \"\";\n\t\t\t$this->puesto_id->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// tipo_sangre_id\n\t\t\t$this->tipo_sangre_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_sangre_id->HrefValue = \"\";\n\t\t\t$this->tipo_sangre_id->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->tarif->FormValue == $this->tarif->CurrentValue && is_numeric(ew_StrToFloat($this->tarif->CurrentValue)))\n\t\t\t$this->tarif->CurrentValue = ew_StrToFloat($this->tarif->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bhp->FormValue == $this->bhp->CurrentValue && is_numeric(ew_StrToFloat($this->bhp->CurrentValue)))\n\t\t\t$this->bhp->CurrentValue = ew_StrToFloat($this->bhp->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_admission\n\t\t// nomr\n\t\t// statusbayar\n\t\t// kelas\n\t\t// tanggal\n\t\t// kode_tindakan\n\t\t// qty\n\t\t// tarif\n\t\t// bhp\n\t\t// user\n\t\t// nama_tindakan\n\t\t// kelompok_tindakan\n\t\t// kelompok1\n\t\t// kelompok2\n\t\t// kode_dokter\n\t\t// no_ruang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kelas\n\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// kode_tindakan\n\t\tif (strval($this->kode_tindakan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kode_tindakan->ViewValue = NULL;\n\t\t}\n\t\t$this->kode_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// qty\n\t\t$this->qty->ViewValue = $this->qty->CurrentValue;\n\t\t$this->qty->ViewCustomAttributes = \"\";\n\n\t\t// tarif\n\t\t$this->tarif->ViewValue = $this->tarif->CurrentValue;\n\t\t$this->tarif->ViewCustomAttributes = \"\";\n\n\t\t// bhp\n\t\t$this->bhp->ViewValue = $this->bhp->CurrentValue;\n\t\t$this->bhp->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// nama_tindakan\n\t\t$this->nama_tindakan->ViewValue = $this->nama_tindakan->CurrentValue;\n\t\t$this->nama_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok_tindakan\n\t\t$this->kelompok_tindakan->ViewValue = $this->kelompok_tindakan->CurrentValue;\n\t\t$this->kelompok_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok1\n\t\t$this->kelompok1->ViewValue = $this->kelompok1->CurrentValue;\n\t\t$this->kelompok1->ViewCustomAttributes = \"\";\n\n\t\t// kelompok2\n\t\t$this->kelompok2->ViewValue = $this->kelompok2->CurrentValue;\n\t\t$this->kelompok2->ViewCustomAttributes = \"\";\n\n\t\t// kode_dokter\n\t\t$this->kode_dokter->ViewValue = $this->kode_dokter->CurrentValue;\n\t\t$this->kode_dokter->ViewCustomAttributes = \"\";\n\n\t\t// no_ruang\n\t\t$this->no_ruang->ViewValue = $this->no_ruang->CurrentValue;\n\t\t$this->no_ruang->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\t\t\t$this->kelas->TooltipValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\t\t\t$this->kode_tindakan->TooltipValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\t\t\t$this->qty->TooltipValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\t\t\t$this->tarif->TooltipValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\t\t\t$this->bhp->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\t\t\t$this->nama_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\t\t\t$this->kelompok_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\t\t\t$this->kelompok1->TooltipValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\t\t\t$this->kelompok2->TooltipValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\t\t\t$this->kode_dokter->TooltipValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t\t$this->no_ruang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\tif ($this->id_admission->getSessionValue() <> \"\") {\n\t\t\t\t$this->id_admission->CurrentValue = $this->id_admission->getSessionValue();\n\t\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\t\t\t}\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\tif ($this->nomr->getSessionValue() <> \"\") {\n\t\t\t\t$this->nomr->CurrentValue = $this->nomr->getSessionValue();\n\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t$this->nomr->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\t\t\t}\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif ($this->statusbayar->getSessionValue() <> \"\") {\n\t\t\t\t$this->statusbayar->CurrentValue = $this->statusbayar->getSessionValue();\n\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\t\t\t}\n\n\t\t\t// kelas\n\t\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t\tif ($this->kelas->getSessionValue() <> \"\") {\n\t\t\t\t$this->kelas->CurrentValue = $this->kelas->getSessionValue();\n\t\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t\t$this->kelas->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->kelas->EditValue = ew_HtmlEncode($this->kelas->CurrentValue);\n\t\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\t\t\t}\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal->CurrentValue, 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_tindakan->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kode_tindakan->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kode_tindakan->EditValue = $arwrk;\n\n\t\t\t// qty\n\t\t\t$this->qty->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->qty->EditCustomAttributes = \"\";\n\t\t\t$this->qty->EditValue = ew_HtmlEncode($this->qty->CurrentValue);\n\t\t\t$this->qty->PlaceHolder = ew_RemoveHtml($this->qty->FldCaption());\n\n\t\t\t// tarif\n\t\t\t$this->tarif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tarif->EditCustomAttributes = \"\";\n\t\t\t$this->tarif->EditValue = ew_HtmlEncode($this->tarif->CurrentValue);\n\t\t\t$this->tarif->PlaceHolder = ew_RemoveHtml($this->tarif->FldCaption());\n\t\t\tif (strval($this->tarif->EditValue) <> \"\" && is_numeric($this->tarif->EditValue)) $this->tarif->EditValue = ew_FormatNumber($this->tarif->EditValue, -2, -1, -2, 0);\n\n\t\t\t// bhp\n\t\t\t$this->bhp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bhp->EditCustomAttributes = \"\";\n\t\t\t$this->bhp->EditValue = ew_HtmlEncode($this->bhp->CurrentValue);\n\t\t\t$this->bhp->PlaceHolder = ew_RemoveHtml($this->bhp->FldCaption());\n\t\t\tif (strval($this->bhp->EditValue) <> \"\" && is_numeric($this->bhp->EditValue)) $this->bhp->EditValue = ew_FormatNumber($this->bhp->EditValue, -2, -1, -2, 0);\n\n\t\t\t// user\n\t\t\t$this->user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->user->EditCustomAttributes = \"\";\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\n\t\t\t$this->user->PlaceHolder = ew_RemoveHtml($this->user->FldCaption());\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->EditValue = ew_HtmlEncode($this->nama_tindakan->CurrentValue);\n\t\t\t$this->nama_tindakan->PlaceHolder = ew_RemoveHtml($this->nama_tindakan->FldCaption());\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->EditValue = ew_HtmlEncode($this->kelompok_tindakan->CurrentValue);\n\t\t\t$this->kelompok_tindakan->PlaceHolder = ew_RemoveHtml($this->kelompok_tindakan->FldCaption());\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok1->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok1->EditValue = ew_HtmlEncode($this->kelompok1->CurrentValue);\n\t\t\t$this->kelompok1->PlaceHolder = ew_RemoveHtml($this->kelompok1->FldCaption());\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok2->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok2->EditValue = ew_HtmlEncode($this->kelompok2->CurrentValue);\n\t\t\t$this->kelompok2->PlaceHolder = ew_RemoveHtml($this->kelompok2->FldCaption());\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_dokter->EditCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->EditValue = ew_HtmlEncode($this->kode_dokter->CurrentValue);\n\t\t\t$this->kode_dokter->PlaceHolder = ew_RemoveHtml($this->kode_dokter->FldCaption());\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->no_ruang->EditCustomAttributes = \"\";\n\t\t\t$this->no_ruang->EditValue = ew_HtmlEncode($this->no_ruang->CurrentValue);\n\t\t\t$this->no_ruang->PlaceHolder = ew_RemoveHtml($this->no_ruang->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->besar->FormValue == $this->besar->CurrentValue && is_numeric(ew_StrToFloat($this->besar->CurrentValue)))\n\t\t\t$this->besar->CurrentValue = ew_StrToFloat($this->besar->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// replid\n\t\t// nama\n\t\t// besar\n\t\t// idkategori\n\t\t// rekkas\n\t\t// rekpendapatan\n\t\t// rekpiutang\n\t\t// aktif\n\t\t// keterangan\n\t\t// departemen\n\t\t// info1\n\t\t// info2\n\t\t// info3\n\t\t// ts\n\t\t// token\n\t\t// issync\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// replid\n\t\t$this->replid->ViewValue = $this->replid->CurrentValue;\n\t\t$this->replid->ViewCustomAttributes = \"\";\n\n\t\t// nama\n\t\t$this->nama->ViewValue = $this->nama->CurrentValue;\n\t\t$this->nama->ViewCustomAttributes = \"\";\n\n\t\t// besar\n\t\t$this->besar->ViewValue = $this->besar->CurrentValue;\n\t\t$this->besar->ViewCustomAttributes = \"\";\n\n\t\t// idkategori\n\t\t$this->idkategori->ViewValue = $this->idkategori->CurrentValue;\n\t\t$this->idkategori->ViewCustomAttributes = \"\";\n\n\t\t// rekkas\n\t\t$this->rekkas->ViewValue = $this->rekkas->CurrentValue;\n\t\t$this->rekkas->ViewCustomAttributes = \"\";\n\n\t\t// rekpendapatan\n\t\t$this->rekpendapatan->ViewValue = $this->rekpendapatan->CurrentValue;\n\t\t$this->rekpendapatan->ViewCustomAttributes = \"\";\n\n\t\t// rekpiutang\n\t\t$this->rekpiutang->ViewValue = $this->rekpiutang->CurrentValue;\n\t\t$this->rekpiutang->ViewCustomAttributes = \"\";\n\n\t\t// aktif\n\t\t$this->aktif->ViewValue = $this->aktif->CurrentValue;\n\t\t$this->aktif->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// departemen\n\t\t$this->departemen->ViewValue = $this->departemen->CurrentValue;\n\t\t$this->departemen->ViewCustomAttributes = \"\";\n\n\t\t// info1\n\t\t$this->info1->ViewValue = $this->info1->CurrentValue;\n\t\t$this->info1->ViewCustomAttributes = \"\";\n\n\t\t// info2\n\t\t$this->info2->ViewValue = $this->info2->CurrentValue;\n\t\t$this->info2->ViewCustomAttributes = \"\";\n\n\t\t// info3\n\t\t$this->info3->ViewValue = $this->info3->CurrentValue;\n\t\t$this->info3->ViewCustomAttributes = \"\";\n\n\t\t// ts\n\t\t$this->ts->ViewValue = $this->ts->CurrentValue;\n\t\t$this->ts->ViewValue = ew_FormatDateTime($this->ts->ViewValue, 0);\n\t\t$this->ts->ViewCustomAttributes = \"\";\n\n\t\t// token\n\t\t$this->token->ViewValue = $this->token->CurrentValue;\n\t\t$this->token->ViewCustomAttributes = \"\";\n\n\t\t// issync\n\t\t$this->issync->ViewValue = $this->issync->CurrentValue;\n\t\t$this->issync->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\t\t\t$this->nama->TooltipValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\t\t\t$this->besar->TooltipValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\t\t\t$this->idkategori->TooltipValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\t\t\t$this->rekkas->TooltipValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\t\t\t$this->rekpendapatan->TooltipValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\t\t\t$this->rekpiutang->TooltipValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\t\t\t$this->aktif->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\t\t\t$this->departemen->TooltipValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\t\t\t$this->info1->TooltipValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\t\t\t$this->info2->TooltipValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\t\t\t$this->info3->TooltipValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\t\t\t$this->ts->TooltipValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\t\t\t$this->token->TooltipValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t\t$this->issync->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// nama\n\t\t\t$this->nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama->EditCustomAttributes = \"\";\n\t\t\t$this->nama->EditValue = ew_HtmlEncode($this->nama->CurrentValue);\n\t\t\t$this->nama->PlaceHolder = ew_RemoveHtml($this->nama->FldCaption());\n\n\t\t\t// besar\n\t\t\t$this->besar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->besar->EditCustomAttributes = \"\";\n\t\t\t$this->besar->EditValue = ew_HtmlEncode($this->besar->CurrentValue);\n\t\t\t$this->besar->PlaceHolder = ew_RemoveHtml($this->besar->FldCaption());\n\t\t\tif (strval($this->besar->EditValue) <> \"\" && is_numeric($this->besar->EditValue)) $this->besar->EditValue = ew_FormatNumber($this->besar->EditValue, -2, -1, -2, 0);\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->idkategori->EditCustomAttributes = \"\";\n\t\t\t$this->idkategori->EditValue = ew_HtmlEncode($this->idkategori->CurrentValue);\n\t\t\t$this->idkategori->PlaceHolder = ew_RemoveHtml($this->idkategori->FldCaption());\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekkas->EditCustomAttributes = \"\";\n\t\t\t$this->rekkas->EditValue = ew_HtmlEncode($this->rekkas->CurrentValue);\n\t\t\t$this->rekkas->PlaceHolder = ew_RemoveHtml($this->rekkas->FldCaption());\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpendapatan->EditCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->EditValue = ew_HtmlEncode($this->rekpendapatan->CurrentValue);\n\t\t\t$this->rekpendapatan->PlaceHolder = ew_RemoveHtml($this->rekpendapatan->FldCaption());\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rekpiutang->EditCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->EditValue = ew_HtmlEncode($this->rekpiutang->CurrentValue);\n\t\t\t$this->rekpiutang->PlaceHolder = ew_RemoveHtml($this->rekpiutang->FldCaption());\n\n\t\t\t// aktif\n\t\t\t$this->aktif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->aktif->EditCustomAttributes = \"\";\n\t\t\t$this->aktif->EditValue = ew_HtmlEncode($this->aktif->CurrentValue);\n\t\t\t$this->aktif->PlaceHolder = ew_RemoveHtml($this->aktif->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// departemen\n\t\t\t$this->departemen->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->departemen->EditCustomAttributes = \"\";\n\t\t\t$this->departemen->EditValue = ew_HtmlEncode($this->departemen->CurrentValue);\n\t\t\t$this->departemen->PlaceHolder = ew_RemoveHtml($this->departemen->FldCaption());\n\n\t\t\t// info1\n\t\t\t$this->info1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info1->EditCustomAttributes = \"\";\n\t\t\t$this->info1->EditValue = ew_HtmlEncode($this->info1->CurrentValue);\n\t\t\t$this->info1->PlaceHolder = ew_RemoveHtml($this->info1->FldCaption());\n\n\t\t\t// info2\n\t\t\t$this->info2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info2->EditCustomAttributes = \"\";\n\t\t\t$this->info2->EditValue = ew_HtmlEncode($this->info2->CurrentValue);\n\t\t\t$this->info2->PlaceHolder = ew_RemoveHtml($this->info2->FldCaption());\n\n\t\t\t// info3\n\t\t\t$this->info3->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->info3->EditCustomAttributes = \"\";\n\t\t\t$this->info3->EditValue = ew_HtmlEncode($this->info3->CurrentValue);\n\t\t\t$this->info3->PlaceHolder = ew_RemoveHtml($this->info3->FldCaption());\n\n\t\t\t// ts\n\t\t\t$this->ts->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ts->EditCustomAttributes = \"\";\n\t\t\t$this->ts->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ts->CurrentValue, 8));\n\t\t\t$this->ts->PlaceHolder = ew_RemoveHtml($this->ts->FldCaption());\n\n\t\t\t// token\n\t\t\t$this->token->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->token->EditCustomAttributes = \"\";\n\t\t\t$this->token->EditValue = ew_HtmlEncode($this->token->CurrentValue);\n\t\t\t$this->token->PlaceHolder = ew_RemoveHtml($this->token->FldCaption());\n\n\t\t\t// issync\n\t\t\t$this->issync->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->issync->EditCustomAttributes = \"\";\n\t\t\t$this->issync->EditValue = ew_HtmlEncode($this->issync->CurrentValue);\n\t\t\t$this->issync->PlaceHolder = ew_RemoveHtml($this->issync->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// nama\n\n\t\t\t$this->nama->LinkCustomAttributes = \"\";\n\t\t\t$this->nama->HrefValue = \"\";\n\n\t\t\t// besar\n\t\t\t$this->besar->LinkCustomAttributes = \"\";\n\t\t\t$this->besar->HrefValue = \"\";\n\n\t\t\t// idkategori\n\t\t\t$this->idkategori->LinkCustomAttributes = \"\";\n\t\t\t$this->idkategori->HrefValue = \"\";\n\n\t\t\t// rekkas\n\t\t\t$this->rekkas->LinkCustomAttributes = \"\";\n\t\t\t$this->rekkas->HrefValue = \"\";\n\n\t\t\t// rekpendapatan\n\t\t\t$this->rekpendapatan->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpendapatan->HrefValue = \"\";\n\n\t\t\t// rekpiutang\n\t\t\t$this->rekpiutang->LinkCustomAttributes = \"\";\n\t\t\t$this->rekpiutang->HrefValue = \"\";\n\n\t\t\t// aktif\n\t\t\t$this->aktif->LinkCustomAttributes = \"\";\n\t\t\t$this->aktif->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\n\t\t\t// departemen\n\t\t\t$this->departemen->LinkCustomAttributes = \"\";\n\t\t\t$this->departemen->HrefValue = \"\";\n\n\t\t\t// info1\n\t\t\t$this->info1->LinkCustomAttributes = \"\";\n\t\t\t$this->info1->HrefValue = \"\";\n\n\t\t\t// info2\n\t\t\t$this->info2->LinkCustomAttributes = \"\";\n\t\t\t$this->info2->HrefValue = \"\";\n\n\t\t\t// info3\n\t\t\t$this->info3->LinkCustomAttributes = \"\";\n\t\t\t$this->info3->HrefValue = \"\";\n\n\t\t\t// ts\n\t\t\t$this->ts->LinkCustomAttributes = \"\";\n\t\t\t$this->ts->HrefValue = \"\";\n\n\t\t\t// token\n\t\t\t$this->token->LinkCustomAttributes = \"\";\n\t\t\t$this->token->HrefValue = \"\";\n\n\t\t\t// issync\n\t\t\t$this->issync->LinkCustomAttributes = \"\";\n\t\t\t$this->issync->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\t\t// datetime\r\n\t\t// script\r\n\t\t// user\r\n\t\t// action\r\n\t\t// table\r\n\t\t// field\r\n\t\t// keyvalue\r\n\t\t// oldvalue\r\n\t\t// newvalue\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->ViewValue = $this->datetime->CurrentValue;\r\n\t\t\t$this->datetime->ViewValue = ew_FormatDateTime($this->datetime->ViewValue, 5);\r\n\t\t\t$this->datetime->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->ViewValue = $this->script->CurrentValue;\r\n\t\t\t$this->script->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->ViewValue = $this->user->CurrentValue;\r\n\t\t\t$this->user->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->ViewValue = $this->action->CurrentValue;\r\n\t\t\t$this->action->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->ViewValue = $this->_table->CurrentValue;\r\n\t\t\t$this->_table->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->ViewValue = $this->_field->CurrentValue;\r\n\t\t\t$this->_field->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->ViewValue = $this->keyvalue->CurrentValue;\r\n\t\t\t$this->keyvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->ViewValue = $this->oldvalue->CurrentValue;\r\n\t\t\t$this->oldvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->ViewValue = $this->newvalue->CurrentValue;\r\n\t\t\t$this->newvalue->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->LinkCustomAttributes = \"\";\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\t\t\t$this->datetime->TooltipValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->LinkCustomAttributes = \"\";\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\t\t\t$this->script->TooltipValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->LinkCustomAttributes = \"\";\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\t\t\t$this->user->TooltipValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->LinkCustomAttributes = \"\";\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\t\t\t$this->action->TooltipValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\t\t\t$this->_table->TooltipValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->LinkCustomAttributes = \"\";\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\t\t\t$this->_field->TooltipValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\t\t\t$this->keyvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\t\t\t$this->oldvalue->TooltipValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t\t$this->newvalue->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// datetime\r\n\t\t\t$this->datetime->EditCustomAttributes = \"\";\r\n\t\t\t$this->datetime->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->datetime->CurrentValue, 5));\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->EditCustomAttributes = \"\";\r\n\t\t\t$this->script->EditValue = ew_HtmlEncode($this->script->CurrentValue);\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->EditCustomAttributes = \"\";\r\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->EditCustomAttributes = \"\";\r\n\t\t\t$this->action->EditValue = ew_HtmlEncode($this->action->CurrentValue);\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->EditCustomAttributes = \"\";\r\n\t\t\t$this->_table->EditValue = ew_HtmlEncode($this->_table->CurrentValue);\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->EditCustomAttributes = \"\";\r\n\t\t\t$this->_field->EditValue = ew_HtmlEncode($this->_field->CurrentValue);\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->keyvalue->EditValue = ew_HtmlEncode($this->keyvalue->CurrentValue);\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->oldvalue->EditValue = ew_HtmlEncode($this->oldvalue->CurrentValue);\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->EditCustomAttributes = \"\";\r\n\t\t\t$this->newvalue->EditValue = ew_HtmlEncode($this->newvalue->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// datetime\r\n\r\n\t\t\t$this->datetime->HrefValue = \"\";\r\n\r\n\t\t\t// script\r\n\t\t\t$this->script->HrefValue = \"\";\r\n\r\n\t\t\t// user\r\n\t\t\t$this->user->HrefValue = \"\";\r\n\r\n\t\t\t// action\r\n\t\t\t$this->action->HrefValue = \"\";\r\n\r\n\t\t\t// table\r\n\t\t\t$this->_table->HrefValue = \"\";\r\n\r\n\t\t\t// field\r\n\t\t\t$this->_field->HrefValue = \"\";\r\n\r\n\t\t\t// keyvalue\r\n\t\t\t$this->keyvalue->HrefValue = \"\";\r\n\r\n\t\t\t// oldvalue\r\n\t\t\t$this->oldvalue->HrefValue = \"\";\r\n\r\n\t\t\t// newvalue\r\n\t\t\t$this->newvalue->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function editrow()\r\n {\r\n $c=$this->connector();\r\n $r='';\r\n $r.=$this->logout();\r\n $db=$_GET['db'];\r\n $tbl=$_GET['table'];\r\n $val=$_GET['val'];\r\n $col=$_GET['col'];\r\n $r.=\"<div id='isi'>\r\n <center><a href='?act=showtable&db=$db'>Show Tables </a></center><br />\";\r\n $r.=\"<form method='post' action='?act=showcon&db=$db&table=$tbl&col=$col&val=$val'>\";\r\n $r.=\"<table width=100% align='center' cellspacing=0 class='xpltab'>\";\r\n \r\n $cols=array();\r\n $iml=mysql_query(\"SHOW COLUMNS FROM $db.$tbl\");\r\n $query=mysql_query(\"SELECT * FROM $db.$tbl WHERE $col='$val'\");\r\n \r\n while($colom=mysql_fetch_assoc($iml))$cols[]=$colom['Field'];\r\n $data=mysql_fetch_assoc($query);\r\n for($i=0;$i<count($cols);$i++)\r\n {\r\n $pt=$cols[$i];\r\n $r.=\"<tr><td style='border:none'>\".$pt.\"</td><td style='border:none'>\".' : <input id=\"sqlbox\" type=\"text\" name=\"'.$cols[$i].'\" value=\"'.$data[$pt].'\"></td></tr>';\r\n\r\n }\r\n $r.=\"</table><input type='hidden' name='action' value='updaterow'><input id='but' type='submit' value='update'></form></div>\";\r\n return $r;\r\n $this->free();\r\n }", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->AddUrl = $this->GetAddUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\t\t$this->ListUrl = $this->GetListUrl();\r\n\t\t$this->SetupOtherOptions();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Dni_Tutor\r\n\t\t// Apellidos_Nombres\r\n\t\t// Edad\r\n\t\t// Domicilio\r\n\t\t// Tel_Contacto\r\n\t\t// Fecha_Nac\r\n\t\t// Cuil\r\n\t\t// MasHijos\r\n\t\t// Id_Estado_Civil\r\n\t\t// Id_Sexo\r\n\t\t// Id_Relacion\r\n\t\t// Id_Ocupacion\r\n\t\t// Lugar_Nacimiento\r\n\t\t// Id_Provincia\r\n\t\t// Id_Departamento\r\n\t\t// Id_Localidad\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Dni_Tutor\r\n\t\t$this->Dni_Tutor->ViewValue = $this->Dni_Tutor->CurrentValue;\r\n\t\t$this->Dni_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Apellidos_Nombres\r\n\t\t$this->Apellidos_Nombres->ViewValue = $this->Apellidos_Nombres->CurrentValue;\r\n\t\t$this->Apellidos_Nombres->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Edad\r\n\t\t$this->Edad->ViewValue = $this->Edad->CurrentValue;\r\n\t\t$this->Edad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Contacto\r\n\t\t$this->Tel_Contacto->ViewValue = $this->Tel_Contacto->CurrentValue;\r\n\t\t$this->Tel_Contacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Nac\r\n\t\t$this->Fecha_Nac->ViewValue = $this->Fecha_Nac->CurrentValue;\r\n\t\t$this->Fecha_Nac->ViewValue = ew_FormatDateTime($this->Fecha_Nac->ViewValue, 7);\r\n\t\t$this->Fecha_Nac->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil\r\n\t\t$this->Cuil->ViewValue = $this->Cuil->CurrentValue;\r\n\t\t$this->Cuil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// MasHijos\r\n\t\tif (strval($this->MasHijos->CurrentValue) <> \"\") {\r\n\t\t\t$this->MasHijos->ViewValue = $this->MasHijos->OptionCaption($this->MasHijos->CurrentValue);\r\n\t\t} else {\r\n\t\t\t$this->MasHijos->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->MasHijos->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Civil\r\n\t\tif (strval($this->Id_Estado_Civil->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Civil`\" . ew_SearchString(\"=\", $this->Id_Estado_Civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Civil`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Civil->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Civil, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Civil->ViewValue = $this->Id_Estado_Civil->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Civil->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Civil->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Sexo\r\n\t\tif (strval($this->Id_Sexo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Sexo`\" . ew_SearchString(\"=\", $this->Id_Sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Sexo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo_personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Sexo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Sexo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Sexo->ViewValue = $this->Id_Sexo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Sexo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Sexo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Relacion\r\n\t\tif (strval($this->Id_Relacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Relacion`\" . ew_SearchString(\"=\", $this->Id_Relacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Relacion`, `Desripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_relacion_alumno_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Relacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Relacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Desripcion` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Relacion->ViewValue = $this->Id_Relacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Relacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Relacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Ocupacion\r\n\t\tif (strval($this->Id_Ocupacion->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Ocupacion`\" . ew_SearchString(\"=\", $this->Id_Ocupacion->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Ocupacion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ocupacion_tutor`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Ocupacion->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Ocupacion, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Ocupacion->ViewValue = $this->Id_Ocupacion->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Ocupacion->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Ocupacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Lugar_Nacimiento\r\n\t\t$this->Lugar_Nacimiento->ViewValue = $this->Lugar_Nacimiento->CurrentValue;\r\n\t\t$this->Lugar_Nacimiento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Provincia\r\n\t\tif (strval($this->Id_Provincia->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Provincia`\" . ew_SearchString(\"=\", $this->Id_Provincia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Provincia`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincias`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Provincia->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Provincia, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Provincia->ViewValue = $this->Id_Provincia->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Provincia->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Provincia->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Departamento\r\n\t\tif (strval($this->Id_Departamento->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Departamento`\" . ew_SearchString(\"=\", $this->Id_Departamento->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Departamento`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Departamento->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Departamento, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Departamento->ViewValue = $this->Id_Departamento->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Departamento->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Departamento->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Localidad\r\n\t\tif (strval($this->Id_Localidad->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Localidad`\" . ew_SearchString(\"=\", $this->Id_Localidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Localidad`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Localidad->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Localidad, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t$sSqlWrk .= \" ORDER BY `Nombre` ASC\";\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Localidad->ViewValue = $this->Id_Localidad->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Localidad->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Localidad->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Dni_Tutor\r\n\t\t\t$this->Dni_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Dni_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Apellidos_Nombres\r\n\t\t\t$this->Apellidos_Nombres->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Apellidos_Nombres->HrefValue = \"\";\r\n\t\t\t$this->Apellidos_Nombres->TooltipValue = \"\";\r\n\r\n\t\t\t// Edad\r\n\t\t\t$this->Edad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Edad->HrefValue = \"\";\r\n\t\t\t$this->Edad->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Contacto\r\n\t\t\t$this->Tel_Contacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Contacto->HrefValue = \"\";\r\n\t\t\t$this->Tel_Contacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Nac\r\n\t\t\t$this->Fecha_Nac->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Nac->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Nac->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil\r\n\t\t\t$this->Cuil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil->HrefValue = \"\";\r\n\t\t\t$this->Cuil->TooltipValue = \"\";\r\n\r\n\t\t\t// MasHijos\r\n\t\t\t$this->MasHijos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MasHijos->HrefValue = \"\";\r\n\t\t\t$this->MasHijos->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Civil\r\n\t\t\t$this->Id_Estado_Civil->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Civil->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Civil->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Sexo\r\n\t\t\t$this->Id_Sexo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Sexo->HrefValue = \"\";\r\n\t\t\t$this->Id_Sexo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Relacion\r\n\t\t\t$this->Id_Relacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Relacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Relacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Ocupacion\r\n\t\t\t$this->Id_Ocupacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Ocupacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Ocupacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Lugar_Nacimiento\r\n\t\t\t$this->Lugar_Nacimiento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->HrefValue = \"\";\r\n\t\t\t$this->Lugar_Nacimiento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Provincia\r\n\t\t\t$this->Id_Provincia->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Provincia->HrefValue = \"\";\r\n\t\t\t$this->Id_Provincia->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Departamento\r\n\t\t\t$this->Id_Departamento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Departamento->HrefValue = \"\";\r\n\t\t\t$this->Id_Departamento->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Localidad\r\n\t\t\t$this->Id_Localidad->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Localidad->HrefValue = \"\";\r\n\t\t\t$this->Id_Localidad->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Convert decimal values if posted back\r\n\r\n\t\tif ($this->PrecioUnitario->FormValue == $this->PrecioUnitario->CurrentValue && is_numeric(ew_StrToFloat($this->PrecioUnitario->CurrentValue)))\r\n\t\t\t$this->PrecioUnitario->CurrentValue = ew_StrToFloat($this->PrecioUnitario->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->MontoDescuento->FormValue == $this->MontoDescuento->CurrentValue && is_numeric(ew_StrToFloat($this->MontoDescuento->CurrentValue)))\r\n\t\t\t$this->MontoDescuento->CurrentValue = ew_StrToFloat($this->MontoDescuento->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Precio_SIM->FormValue == $this->Precio_SIM->CurrentValue && is_numeric(ew_StrToFloat($this->Precio_SIM->CurrentValue)))\r\n\t\t\t$this->Precio_SIM->CurrentValue = ew_StrToFloat($this->Precio_SIM->CurrentValue);\r\n\r\n\t\t// Convert decimal values if posted back\r\n\t\tif ($this->Monto->FormValue == $this->Monto->CurrentValue && is_numeric(ew_StrToFloat($this->Monto->CurrentValue)))\r\n\t\t\t$this->Monto->CurrentValue = ew_StrToFloat($this->Monto->CurrentValue);\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Venta_Eq\r\n\t\t// CLIENTE\r\n\t\t// Id_Articulo\r\n\t\t// Acabado_eq\r\n\t\t// Num_IMEI\r\n\t\t// Num_ICCID\r\n\t\t// Num_CEL\r\n\t\t// Causa\r\n\t\t// Con_SIM\r\n\t\t// Observaciones\r\n\t\t// PrecioUnitario\r\n\t\t// MontoDescuento\r\n\t\t// Precio_SIM\r\n\t\t// Monto\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id_Venta_Eq\r\n\t\t\t$this->Id_Venta_Eq->ViewValue = $this->Id_Venta_Eq->CurrentValue;\r\n\t\t\t$this->Id_Venta_Eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->ViewValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->ViewValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->ViewValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->ViewValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->ViewValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->ViewValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->ViewValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\tif (strval($this->Con_SIM->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Con_SIM->CurrentValue) {\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Con_SIM->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Con_SIM->ViewValue = $this->Con_SIM->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Con_SIM->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Con_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->ViewValue = $this->Observaciones->CurrentValue;\r\n\t\t\t$this->Observaciones->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->ViewValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->ViewValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->ViewValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->ViewValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\t\t\t$this->CLIENTE->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\t\t\t$this->Id_Articulo->TooltipValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\t\t\t$this->Acabado_eq->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\t\t\t$this->Num_IMEI->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\t\t\t$this->Num_ICCID->TooltipValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\t\t\t$this->Num_CEL->TooltipValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\t\t\t$this->Causa->TooltipValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\t\t\t$this->Con_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\t\t\t$this->Observaciones->TooltipValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\t\t\t$this->PrecioUnitario->TooltipValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->LinkCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\t\t\t$this->MontoDescuento->TooltipValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\t\t\t$this->Precio_SIM->TooltipValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t\t$this->Monto->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// CLIENTE\r\n\t\t\t$this->CLIENTE->EditCustomAttributes = \"\";\r\n\t\t\t$this->CLIENTE->EditValue = $this->CLIENTE->CurrentValue;\r\n\t\t\t$this->CLIENTE->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Id_Articulo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_Articulo`\" . ew_SearchString(\"=\", $this->Id_Articulo->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Articulo`, `Articulo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `ca_articulos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Articulo`\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Articulo->EditValue = $this->Id_Articulo->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Articulo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Articulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->EditCustomAttributes = \"\";\r\n\t\t\t$this->Acabado_eq->EditValue = $this->Acabado_eq->CurrentValue;\r\n\t\t\t$this->Acabado_eq->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_IMEI->EditValue = $this->Num_IMEI->CurrentValue;\r\n\t\t\t$this->Num_IMEI->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->EditCustomAttributes = \"onchange= 'ValidaICCID(this);' \";\r\n\t\t\t$this->Num_ICCID->EditValue = $this->Num_ICCID->CurrentValue;\r\n\t\t\t$this->Num_ICCID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->EditCustomAttributes = \"\";\r\n\t\t\t$this->Num_CEL->EditValue = $this->Num_CEL->CurrentValue;\r\n\t\t\t$this->Num_CEL->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->EditCustomAttributes = \"\";\r\n\t\t\tif (strval($this->Causa->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Causa->CurrentValue) {\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(1) <> \"\" ? $this->Causa->FldTagCaption(1) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(2) <> \"\" ? $this->Causa->FldTagCaption(2) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(3):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(3) <> \"\" ? $this->Causa->FldTagCaption(3) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Causa->FldTagValue(4):\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->FldTagCaption(4) <> \"\" ? $this->Causa->FldTagCaption(4) : $this->Causa->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Causa->EditValue = $this->Causa->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Causa->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Causa->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(1), $this->Con_SIM->FldTagCaption(1) <> \"\" ? $this->Con_SIM->FldTagCaption(1) : $this->Con_SIM->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Con_SIM->FldTagValue(2), $this->Con_SIM->FldTagCaption(2) <> \"\" ? $this->Con_SIM->FldTagCaption(2) : $this->Con_SIM->FldTagValue(2));\r\n\t\t\t$this->Con_SIM->EditValue = $arwrk;\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->EditCustomAttributes = 'class=\"mayusculas\" onchange=\"conMayusculas(this)\" autocomplete=\"off\" ';\r\n\t\t\t$this->Observaciones->EditValue = ew_HtmlEncode($this->Observaciones->CurrentValue);\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->EditCustomAttributes = \"\";\r\n\t\t\t$this->PrecioUnitario->EditValue = $this->PrecioUnitario->CurrentValue;\r\n\t\t\t$this->PrecioUnitario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->EditCustomAttributes = \"\";\r\n\t\t\t$this->MontoDescuento->EditValue = $this->MontoDescuento->CurrentValue;\r\n\t\t\t$this->MontoDescuento->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->EditCustomAttributes = \"\";\r\n\t\t\t$this->Precio_SIM->EditValue = $this->Precio_SIM->CurrentValue;\r\n\t\t\t$this->Precio_SIM->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->EditCustomAttributes = \"\";\r\n\t\t\t$this->Monto->EditValue = $this->Monto->CurrentValue;\r\n\t\t\t$this->Monto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// CLIENTE\r\n\r\n\t\t\t$this->CLIENTE->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Articulo\r\n\t\t\t$this->Id_Articulo->HrefValue = \"\";\r\n\r\n\t\t\t// Acabado_eq\r\n\t\t\t$this->Acabado_eq->HrefValue = \"\";\r\n\r\n\t\t\t// Num_IMEI\r\n\t\t\t$this->Num_IMEI->HrefValue = \"\";\r\n\r\n\t\t\t// Num_ICCID\r\n\t\t\t$this->Num_ICCID->HrefValue = \"\";\r\n\r\n\t\t\t// Num_CEL\r\n\t\t\t$this->Num_CEL->HrefValue = \"\";\r\n\r\n\t\t\t// Causa\r\n\t\t\t$this->Causa->HrefValue = \"\";\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->HrefValue = \"\";\r\n\r\n\t\t\t// PrecioUnitario\r\n\t\t\t$this->PrecioUnitario->HrefValue = \"\";\r\n\r\n\t\t\t// MontoDescuento\r\n\t\t\t$this->MontoDescuento->HrefValue = \"\";\r\n\r\n\t\t\t// Precio_SIM\r\n\t\t\t$this->Precio_SIM->HrefValue = \"\";\r\n\r\n\t\t\t// Monto\r\n\t\t\t$this->Monto->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fecha_tamizaje\n\t\t// id_centro\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// ci\n\t\t// fecha_nacimiento\n\t\t// dias\n\t\t// semanas\n\t\t// meses\n\t\t// sexo\n\t\t// discapacidad\n\t\t// id_tipodiscapacidad\n\t\t// resultado\n\t\t// resultadotamizaje\n\t\t// tapon\n\t\t// tipo\n\t\t// repetirprueba\n\t\t// observaciones\n\t\t// id_apoderado\n\t\t// id_referencia\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha_tamizaje\n\t\t$this->fecha_tamizaje->ViewValue = $this->fecha_tamizaje->CurrentValue;\n\t\t$this->fecha_tamizaje->ViewValue = ew_FormatDateTime($this->fecha_tamizaje->ViewValue, 0);\n\t\t$this->fecha_tamizaje->ViewCustomAttributes = \"\";\n\n\t\t// id_centro\n\t\tif (strval($this->id_centro->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_centro->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `institucionesdesalud`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_centro->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_centro, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_centro->ViewValue = $this->id_centro->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_centro->ViewValue = NULL;\n\t\t}\n\t\t$this->id_centro->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 0);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// dias\n\t\t$this->dias->ViewValue = $this->dias->CurrentValue;\n\t\t$this->dias->ViewCustomAttributes = \"\";\n\n\t\t// semanas\n\t\t$this->semanas->ViewValue = $this->semanas->CurrentValue;\n\t\t$this->semanas->ViewCustomAttributes = \"\";\n\n\t\t// meses\n\t\t$this->meses->ViewValue = $this->meses->CurrentValue;\n\t\t$this->meses->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// discapacidad\n\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\tif (strval($this->discapacidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->discapacidad->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->ViewValue = $this->discapacidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->discapacidad->ViewValue = NULL;\n\t\t}\n\t\t$this->discapacidad->ViewCustomAttributes = \"\";\n\n\t\t// id_tipodiscapacidad\n\t\t$this->id_tipodiscapacidad->ViewValue = $this->id_tipodiscapacidad->CurrentValue;\n\t\t$this->id_tipodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// resultado\n\t\t$this->resultado->ViewValue = $this->resultado->CurrentValue;\n\t\t$this->resultado->ViewCustomAttributes = \"\";\n\n\t\t// resultadotamizaje\n\t\t$this->resultadotamizaje->ViewValue = $this->resultadotamizaje->CurrentValue;\n\t\t$this->resultadotamizaje->ViewCustomAttributes = \"\";\n\n\t\t// tapon\n\t\tif (strval($this->tapon->CurrentValue) <> \"\") {\n\t\t\t$this->tapon->ViewValue = $this->tapon->OptionCaption($this->tapon->CurrentValue);\n\t\t} else {\n\t\t\t$this->tapon->ViewValue = NULL;\n\t\t}\n\t\t$this->tapon->ViewCustomAttributes = \"\";\n\n\t\t// tipo\n\t\tif (strval($this->tipo->CurrentValue) <> \"\") {\n\t\t\t$this->tipo->ViewValue = $this->tipo->OptionCaption($this->tipo->CurrentValue);\n\t\t} else {\n\t\t\t$this->tipo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo->ViewCustomAttributes = \"\";\n\n\t\t// repetirprueba\n\t\tif (strval($this->repetirprueba->CurrentValue) <> \"\") {\n\t\t\t$this->repetirprueba->ViewValue = $this->repetirprueba->OptionCaption($this->repetirprueba->CurrentValue);\n\t\t} else {\n\t\t\t$this->repetirprueba->ViewValue = NULL;\n\t\t}\n\t\t$this->repetirprueba->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// id_apoderado\n\t\tif ($this->id_apoderado->VirtualValue <> \"\") {\n\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_apoderado->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_apoderado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombres` AS `DispFld`, `apellidopaterno` AS `Disp2Fld`, `apellidopaterno` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `apoderado`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_apoderado->LookupFilters = array(\"dx1\" => '`nombres`', \"dx2\" => '`apellidopaterno`', \"dx3\" => '`apellidopaterno`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_apoderado, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_apoderado->ViewValue = $this->id_apoderado->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_apoderado->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_apoderado->ViewCustomAttributes = \"\";\n\n\t\t// id_referencia\n\t\tif ($this->id_referencia->VirtualValue <> \"\") {\n\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->id_referencia->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_referencia->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombrescentromedico` AS `DispFld`, `nombrescompleto` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `referencia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_referencia->LookupFilters = array(\"dx1\" => '`nombrescentromedico`', \"dx2\" => '`nombrescompleto`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_referencia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_referencia->ViewValue = $this->id_referencia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_referencia->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->id_referencia->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->HrefValue = \"\";\n\t\t\t$this->fecha_tamizaje->TooltipValue = \"\";\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->LinkCustomAttributes = \"\";\n\t\t\t$this->id_centro->HrefValue = \"\";\n\t\t\t$this->id_centro->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// dias\n\t\t\t$this->dias->LinkCustomAttributes = \"\";\n\t\t\t$this->dias->HrefValue = \"\";\n\t\t\t$this->dias->TooltipValue = \"\";\n\n\t\t\t// semanas\n\t\t\t$this->semanas->LinkCustomAttributes = \"\";\n\t\t\t$this->semanas->HrefValue = \"\";\n\t\t\t$this->semanas->TooltipValue = \"\";\n\n\t\t\t// meses\n\t\t\t$this->meses->LinkCustomAttributes = \"\";\n\t\t\t$this->meses->HrefValue = \"\";\n\t\t\t$this->meses->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->discapacidad->HrefValue = \"\";\n\t\t\t$this->discapacidad->TooltipValue = \"\";\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->HrefValue = \"\";\n\t\t\t$this->id_tipodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// resultado\n\t\t\t$this->resultado->LinkCustomAttributes = \"\";\n\t\t\t$this->resultado->HrefValue = \"\";\n\t\t\t$this->resultado->TooltipValue = \"\";\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->LinkCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->HrefValue = \"\";\n\t\t\t$this->resultadotamizaje->TooltipValue = \"\";\n\n\t\t\t// tapon\n\t\t\t$this->tapon->LinkCustomAttributes = \"\";\n\t\t\t$this->tapon->HrefValue = \"\";\n\t\t\t$this->tapon->TooltipValue = \"\";\n\n\t\t\t// tipo\n\t\t\t$this->tipo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo->HrefValue = \"\";\n\t\t\t$this->tipo->TooltipValue = \"\";\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->LinkCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->HrefValue = \"\";\n\t\t\t$this->repetirprueba->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->LinkCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->HrefValue = \"\";\n\t\t\t$this->id_apoderado->TooltipValue = \"\";\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->LinkCustomAttributes = \"\";\n\t\t\t$this->id_referencia->HrefValue = \"\";\n\t\t\t$this->id_referencia->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// fecha_tamizaje\n\t\t\t$this->fecha_tamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_tamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_tamizaje->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_tamizaje->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_tamizaje->PlaceHolder = ew_RemoveHtml($this->fecha_tamizaje->FldCaption());\n\n\t\t\t// id_centro\n\t\t\t$this->id_centro->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_centro->EditCustomAttributes = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidopaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->EditValue = ew_HtmlEncode($this->apellidopaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidopaterno->PlaceHolder = ew_RemoveHtml($this->apellidopaterno->FldCaption());\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->apellidomaterno->EditCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->EditValue = ew_HtmlEncode($this->apellidomaterno->AdvancedSearch->SearchValue);\n\t\t\t$this->apellidomaterno->PlaceHolder = ew_RemoveHtml($this->apellidomaterno->FldCaption());\n\n\t\t\t// nombre\n\t\t\t$this->nombre->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre->EditCustomAttributes = \"\";\n\t\t\t$this->nombre->EditValue = ew_HtmlEncode($this->nombre->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre->PlaceHolder = ew_RemoveHtml($this->nombre->FldCaption());\n\n\t\t\t// ci\n\t\t\t$this->ci->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ci->EditCustomAttributes = \"\";\n\t\t\t$this->ci->EditValue = ew_HtmlEncode($this->ci->AdvancedSearch->SearchValue);\n\t\t\t$this->ci->PlaceHolder = ew_RemoveHtml($this->ci->FldCaption());\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->fecha_nacimiento->EditCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->fecha_nacimiento->AdvancedSearch->SearchValue, 0), 8));\n\t\t\t$this->fecha_nacimiento->PlaceHolder = ew_RemoveHtml($this->fecha_nacimiento->FldCaption());\n\n\t\t\t// dias\n\t\t\t$this->dias->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dias->EditCustomAttributes = \"\";\n\t\t\t$this->dias->EditValue = ew_HtmlEncode($this->dias->AdvancedSearch->SearchValue);\n\t\t\t$this->dias->PlaceHolder = ew_RemoveHtml($this->dias->FldCaption());\n\n\t\t\t// semanas\n\t\t\t$this->semanas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->semanas->EditCustomAttributes = \"\";\n\t\t\t$this->semanas->EditValue = ew_HtmlEncode($this->semanas->AdvancedSearch->SearchValue);\n\t\t\t$this->semanas->PlaceHolder = ew_RemoveHtml($this->semanas->FldCaption());\n\n\t\t\t// meses\n\t\t\t$this->meses->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->meses->EditCustomAttributes = \"\";\n\t\t\t$this->meses->EditValue = ew_HtmlEncode($this->meses->AdvancedSearch->SearchValue);\n\t\t\t$this->meses->PlaceHolder = ew_RemoveHtml($this->meses->FldCaption());\n\n\t\t\t// sexo\n\t\t\t$this->sexo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sexo->EditCustomAttributes = \"\";\n\t\t\t$this->sexo->EditValue = $this->sexo->Options(TRUE);\n\n\t\t\t// discapacidad\n\t\t\t$this->discapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->discapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\tif (strval($this->discapacidad->AdvancedSearch->SearchValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->discapacidad->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `discapacidad`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->discapacidad->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->discapacidad, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->discapacidad->EditValue = $this->discapacidad->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->discapacidad->EditValue = ew_HtmlEncode($this->discapacidad->AdvancedSearch->SearchValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->discapacidad->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->discapacidad->PlaceHolder = ew_RemoveHtml($this->discapacidad->FldCaption());\n\n\t\t\t// id_tipodiscapacidad\n\t\t\t$this->id_tipodiscapacidad->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_tipodiscapacidad->EditCustomAttributes = \"\";\n\t\t\t$this->id_tipodiscapacidad->EditValue = ew_HtmlEncode($this->id_tipodiscapacidad->AdvancedSearch->SearchValue);\n\t\t\t$this->id_tipodiscapacidad->PlaceHolder = ew_RemoveHtml($this->id_tipodiscapacidad->FldCaption());\n\n\t\t\t// resultado\n\t\t\t$this->resultado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultado->EditCustomAttributes = \"\";\n\t\t\t$this->resultado->EditValue = ew_HtmlEncode($this->resultado->AdvancedSearch->SearchValue);\n\t\t\t$this->resultado->PlaceHolder = ew_RemoveHtml($this->resultado->FldCaption());\n\n\t\t\t// resultadotamizaje\n\t\t\t$this->resultadotamizaje->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->resultadotamizaje->EditCustomAttributes = \"\";\n\t\t\t$this->resultadotamizaje->EditValue = ew_HtmlEncode($this->resultadotamizaje->AdvancedSearch->SearchValue);\n\t\t\t$this->resultadotamizaje->PlaceHolder = ew_RemoveHtml($this->resultadotamizaje->FldCaption());\n\n\t\t\t// tapon\n\t\t\t$this->tapon->EditCustomAttributes = \"\";\n\t\t\t$this->tapon->EditValue = $this->tapon->Options(FALSE);\n\n\t\t\t// tipo\n\t\t\t$this->tipo->EditCustomAttributes = \"\";\n\t\t\t$this->tipo->EditValue = $this->tipo->Options(FALSE);\n\n\t\t\t// repetirprueba\n\t\t\t$this->repetirprueba->EditCustomAttributes = \"\";\n\t\t\t$this->repetirprueba->EditValue = $this->repetirprueba->Options(FALSE);\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->observaciones->EditCustomAttributes = \"\";\n\t\t\t$this->observaciones->EditValue = ew_HtmlEncode($this->observaciones->AdvancedSearch->SearchValue);\n\t\t\t$this->observaciones->PlaceHolder = ew_RemoveHtml($this->observaciones->FldCaption());\n\n\t\t\t// id_apoderado\n\t\t\t$this->id_apoderado->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_apoderado->EditCustomAttributes = \"\";\n\t\t\t$this->id_apoderado->EditValue = ew_HtmlEncode($this->id_apoderado->AdvancedSearch->SearchValue);\n\t\t\t$this->id_apoderado->PlaceHolder = ew_RemoveHtml($this->id_apoderado->FldCaption());\n\n\t\t\t// id_referencia\n\t\t\t$this->id_referencia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_referencia->EditCustomAttributes = \"\";\n\t\t\t$this->id_referencia->EditValue = ew_HtmlEncode($this->id_referencia->AdvancedSearch->SearchValue);\n\t\t\t$this->id_referencia->PlaceHolder = ew_RemoveHtml($this->id_referencia->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Proveedor\r\n\t\t// RazonSocial\r\n\t\t// RFC\r\n\t\t// NombreContacto\r\n\t\t// CalleYNumero\r\n\t\t// Colonia\r\n\t\t// Poblacion\r\n\t\t// Municipio_Delegacion\r\n\t\t// Id_Estado\r\n\t\t// CP\r\n\t\t// EMail\r\n\t\t// Telefonos\r\n\t\t// Celular\r\n\t\t// Fax\r\n\t\t// Banco\r\n\t\t// NumCuenta\r\n\t\t// CLABE\r\n\t\t// Maneja_Papeleta\r\n\t\t// Observaciones\r\n\t\t// Maneja_Activacion_Movi\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->ViewValue = $this->RazonSocial->CurrentValue;\r\n\t\t\t$this->RazonSocial->ViewValue = strtoupper($this->RazonSocial->ViewValue);\r\n\t\t\t$this->RazonSocial->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->ViewValue = $this->NombreContacto->CurrentValue;\r\n\t\t\t$this->NombreContacto->ViewValue = strtoupper($this->NombreContacto->ViewValue);\r\n\t\t\t$this->NombreContacto->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->ViewValue = $this->Poblacion->CurrentValue;\r\n\t\t\t$this->Poblacion->ViewValue = strtoupper($this->Poblacion->ViewValue);\r\n\t\t\t$this->Poblacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id_estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id_estado`, `Estado` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `li_estados`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Estado` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->ViewValue = $this->Telefonos->CurrentValue;\r\n\t\t\t$this->Telefonos->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->ViewValue = $this->Celular->CurrentValue;\r\n\t\t\t$this->Celular->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\tif (strval($this->Maneja_Papeleta->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Papeleta->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(1) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(1) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Papeleta->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->FldTagCaption(2) <> \"\" ? $this->Maneja_Papeleta->FldTagCaption(2) : $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Papeleta->ViewValue = $this->Maneja_Papeleta->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Papeleta->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Papeleta->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\tif (strval($this->Maneja_Activacion_Movi->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Maneja_Activacion_Movi->CurrentValue) {\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(1) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(1) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Maneja_Activacion_Movi->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->FldTagCaption(2) <> \"\" ? $this->Maneja_Activacion_Movi->FldTagCaption(2) : $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = $this->Maneja_Activacion_Movi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Maneja_Activacion_Movi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Maneja_Activacion_Movi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RazonSocial\r\n\t\t\t$this->RazonSocial->LinkCustomAttributes = \"\";\r\n\t\t\t$this->RazonSocial->HrefValue = \"\";\r\n\t\t\t$this->RazonSocial->TooltipValue = \"\";\r\n\r\n\t\t\t// NombreContacto\r\n\t\t\t$this->NombreContacto->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NombreContacto->HrefValue = \"\";\r\n\t\t\t$this->NombreContacto->TooltipValue = \"\";\r\n\r\n\t\t\t// Poblacion\r\n\t\t\t$this->Poblacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Poblacion->HrefValue = \"\";\r\n\t\t\t$this->Poblacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// Telefonos\r\n\t\t\t$this->Telefonos->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Telefonos->HrefValue = \"\";\r\n\t\t\t$this->Telefonos->TooltipValue = \"\";\r\n\r\n\t\t\t// Celular\r\n\t\t\t$this->Celular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Celular->HrefValue = \"\";\r\n\t\t\t$this->Celular->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Papeleta\r\n\t\t\t$this->Maneja_Papeleta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Papeleta->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Papeleta->TooltipValue = \"\";\r\n\r\n\t\t\t// Maneja_Activacion_Movi\r\n\t\t\t$this->Maneja_Activacion_Movi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->HrefValue = \"\";\r\n\t\t\t$this->Maneja_Activacion_Movi->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// detail_jenis_spp\n\t\t// id_jenis_spp\n\t\t// status_spp\n\t\t// no_spp\n\t\t// tgl_spp\n\t\t// keterangan\n\t\t// jumlah_up\n\t\t// bendahara\n\t\t// nama_pptk\n\t\t// nip_pptk\n\t\t// kode_program\n\t\t// kode_kegiatan\n\t\t// kode_sub_kegiatan\n\t\t// tahun_anggaran\n\t\t// jumlah_spd\n\t\t// nomer_dasar_spd\n\t\t// tanggal_spd\n\t\t// id_spd\n\t\t// kode_rekening\n\t\t// nama_bendahara\n\t\t// nip_bendahara\n\t\t// no_spm\n\t\t// tgl_spm\n\t\t// status_spm\n\t\t// nama_bank\n\t\t// nomer_rekening_bank\n\t\t// npwp\n\t\t// pimpinan_blud\n\t\t// nip_pimpinan\n\t\t// no_sptb\n\t\t// tgl_sptb\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// detail_jenis_spp\n\t\tif (strval($this->detail_jenis_spp->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->detail_jenis_spp->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `detail_jenis_spp` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jenis_detail_spp`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->detail_jenis_spp->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->detail_jenis_spp, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->detail_jenis_spp->ViewValue = $this->detail_jenis_spp->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->detail_jenis_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->detail_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// id_jenis_spp\n\t\t$this->id_jenis_spp->ViewValue = $this->id_jenis_spp->CurrentValue;\n\t\t$this->id_jenis_spp->ViewCustomAttributes = \"\";\n\n\t\t// status_spp\n\t\tif (strval($this->status_spp->CurrentValue) <> \"\") {\n\t\t\t$this->status_spp->ViewValue = $this->status_spp->OptionCaption($this->status_spp->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spp->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spp->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spp\n\t\t$this->tgl_spp->ViewValue = $this->tgl_spp->CurrentValue;\n\t\t$this->tgl_spp->ViewValue = ew_FormatDateTime($this->tgl_spp->ViewValue, 0);\n\t\t$this->tgl_spp->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_up\n\t\t$this->jumlah_up->ViewValue = $this->jumlah_up->CurrentValue;\n\t\t$this->jumlah_up->ViewCustomAttributes = \"\";\n\n\t\t// bendahara\n\t\t$this->bendahara->ViewValue = $this->bendahara->CurrentValue;\n\t\t$this->bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nama_pptk\n\t\t$this->nama_pptk->ViewValue = $this->nama_pptk->CurrentValue;\n\t\t$this->nama_pptk->ViewCustomAttributes = \"\";\n\n\t\t// nip_pptk\n\t\t$this->nip_pptk->ViewValue = $this->nip_pptk->CurrentValue;\n\t\t$this->nip_pptk->ViewCustomAttributes = \"\";\n\n\t\t// kode_program\n\t\t$this->kode_program->ViewValue = $this->kode_program->CurrentValue;\n\t\t$this->kode_program->ViewCustomAttributes = \"\";\n\n\t\t// kode_kegiatan\n\t\t$this->kode_kegiatan->ViewValue = $this->kode_kegiatan->CurrentValue;\n\t\t$this->kode_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// kode_sub_kegiatan\n\t\t$this->kode_sub_kegiatan->ViewValue = $this->kode_sub_kegiatan->CurrentValue;\n\t\t$this->kode_sub_kegiatan->ViewCustomAttributes = \"\";\n\n\t\t// tahun_anggaran\n\t\t$this->tahun_anggaran->ViewValue = $this->tahun_anggaran->CurrentValue;\n\t\t$this->tahun_anggaran->ViewCustomAttributes = \"\";\n\n\t\t// jumlah_spd\n\t\t$this->jumlah_spd->ViewValue = $this->jumlah_spd->CurrentValue;\n\t\t$this->jumlah_spd->ViewCustomAttributes = \"\";\n\n\t\t// nomer_dasar_spd\n\t\t$this->nomer_dasar_spd->ViewValue = $this->nomer_dasar_spd->CurrentValue;\n\t\t$this->nomer_dasar_spd->ViewCustomAttributes = \"\";\n\n\t\t// tanggal_spd\n\t\t$this->tanggal_spd->ViewValue = $this->tanggal_spd->CurrentValue;\n\t\t$this->tanggal_spd->ViewValue = ew_FormatDateTime($this->tanggal_spd->ViewValue, 0);\n\t\t$this->tanggal_spd->ViewCustomAttributes = \"\";\n\n\t\t// id_spd\n\t\t$this->id_spd->ViewValue = $this->id_spd->CurrentValue;\n\t\t$this->id_spd->ViewCustomAttributes = \"\";\n\n\t\t// kode_rekening\n\t\t$this->kode_rekening->ViewValue = $this->kode_rekening->CurrentValue;\n\t\t$this->kode_rekening->ViewCustomAttributes = \"\";\n\n\t\t// nama_bendahara\n\t\t$this->nama_bendahara->ViewValue = $this->nama_bendahara->CurrentValue;\n\t\t$this->nama_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// nip_bendahara\n\t\t$this->nip_bendahara->ViewValue = $this->nip_bendahara->CurrentValue;\n\t\t$this->nip_bendahara->ViewCustomAttributes = \"\";\n\n\t\t// no_spm\n\t\t$this->no_spm->ViewValue = $this->no_spm->CurrentValue;\n\t\t$this->no_spm->ViewCustomAttributes = \"\";\n\n\t\t// tgl_spm\n\t\t$this->tgl_spm->ViewValue = $this->tgl_spm->CurrentValue;\n\t\t$this->tgl_spm->ViewValue = ew_FormatDateTime($this->tgl_spm->ViewValue, 7);\n\t\t$this->tgl_spm->ViewCustomAttributes = \"\";\n\n\t\t// status_spm\n\t\tif (strval($this->status_spm->CurrentValue) <> \"\") {\n\t\t\t$this->status_spm->ViewValue = $this->status_spm->OptionCaption($this->status_spm->CurrentValue);\n\t\t} else {\n\t\t\t$this->status_spm->ViewValue = NULL;\n\t\t}\n\t\t$this->status_spm->ViewCustomAttributes = \"\";\n\n\t\t// nama_bank\n\t\tif (strval($this->nama_bank->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`rekening`\" . ew_SearchString(\"=\", $this->nama_bank->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `rekening`, `rekening` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_blud_rs`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->nama_bank->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nama_bank, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nama_bank->ViewValue = $this->nama_bank->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nama_bank->ViewValue = NULL;\n\t\t}\n\t\t$this->nama_bank->ViewCustomAttributes = \"\";\n\n\t\t// nomer_rekening_bank\n\t\t$this->nomer_rekening_bank->ViewValue = $this->nomer_rekening_bank->CurrentValue;\n\t\t$this->nomer_rekening_bank->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan_blud\n\t\t$this->pimpinan_blud->ViewValue = $this->pimpinan_blud->CurrentValue;\n\t\t$this->pimpinan_blud->ViewCustomAttributes = \"\";\n\n\t\t// nip_pimpinan\n\t\t$this->nip_pimpinan->ViewValue = $this->nip_pimpinan->CurrentValue;\n\t\t$this->nip_pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// no_sptb\n\t\t$this->no_sptb->ViewValue = $this->no_sptb->CurrentValue;\n\t\t$this->no_sptb->ViewCustomAttributes = \"\";\n\n\t\t// tgl_sptb\n\t\t$this->tgl_sptb->ViewValue = $this->tgl_sptb->CurrentValue;\n\t\t$this->tgl_sptb->ViewValue = ew_FormatDateTime($this->tgl_sptb->ViewValue, 7);\n\t\t$this->tgl_sptb->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// detail_jenis_spp\n\t\t\t$this->detail_jenis_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->detail_jenis_spp->HrefValue = \"\";\n\t\t\t$this->detail_jenis_spp->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// tgl_spp\n\t\t\t$this->tgl_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spp->HrefValue = \"\";\n\t\t\t$this->tgl_spp->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\n\t\t\t// no_spm\n\t\t\t$this->no_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spm->HrefValue = \"\";\n\t\t\t$this->no_spm->TooltipValue = \"\";\n\n\t\t\t// tgl_spm\n\t\t\t$this->tgl_spm->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_spm->HrefValue = \"\";\n\t\t\t$this->tgl_spm->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Title\n\t\t// LV\n\t\t// Type\n\t\t// ResetTime\n\t\t// ResetType\n\t\t// CompleteTask\n\t\t// Occupation\n\t\t// Target\n\t\t// Data\n\t\t// Reward_Gold\n\t\t// Reward_Diamonds\n\t\t// Reward_EXP\n\t\t// Reward_Goods\n\t\t// Info\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Title\n\t\t$this->Title->ViewValue = $this->Title->CurrentValue;\n\t\t$this->Title->ViewCustomAttributes = \"\";\n\n\t\t// LV\n\t\t$this->LV->ViewValue = $this->LV->CurrentValue;\n\t\t$this->LV->ViewCustomAttributes = \"\";\n\n\t\t// Type\n\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\n\t\t$this->Type->ViewCustomAttributes = \"\";\n\n\t\t// ResetTime\n\t\t$this->ResetTime->ViewValue = $this->ResetTime->CurrentValue;\n\t\t$this->ResetTime->ViewCustomAttributes = \"\";\n\n\t\t// ResetType\n\t\t$this->ResetType->ViewValue = $this->ResetType->CurrentValue;\n\t\t$this->ResetType->ViewCustomAttributes = \"\";\n\n\t\t// CompleteTask\n\t\t$this->CompleteTask->ViewValue = $this->CompleteTask->CurrentValue;\n\t\t$this->CompleteTask->ViewCustomAttributes = \"\";\n\n\t\t// Occupation\n\t\t$this->Occupation->ViewValue = $this->Occupation->CurrentValue;\n\t\t$this->Occupation->ViewCustomAttributes = \"\";\n\n\t\t// Target\n\t\t$this->Target->ViewValue = $this->Target->CurrentValue;\n\t\t$this->Target->ViewCustomAttributes = \"\";\n\n\t\t// Data\n\t\t$this->Data->ViewValue = $this->Data->CurrentValue;\n\t\t$this->Data->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Gold\n\t\t$this->Reward_Gold->ViewValue = $this->Reward_Gold->CurrentValue;\n\t\t$this->Reward_Gold->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Diamonds\n\t\t$this->Reward_Diamonds->ViewValue = $this->Reward_Diamonds->CurrentValue;\n\t\t$this->Reward_Diamonds->ViewCustomAttributes = \"\";\n\n\t\t// Reward_EXP\n\t\t$this->Reward_EXP->ViewValue = $this->Reward_EXP->CurrentValue;\n\t\t$this->Reward_EXP->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Goods\n\t\t$this->Reward_Goods->ViewValue = $this->Reward_Goods->CurrentValue;\n\t\t$this->Reward_Goods->ViewCustomAttributes = \"\";\n\n\t\t// Info\n\t\t$this->Info->ViewValue = $this->Info->CurrentValue;\n\t\t$this->Info->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Title\n\t\t\t$this->Title->LinkCustomAttributes = \"\";\n\t\t\t$this->Title->HrefValue = \"\";\n\t\t\t$this->Title->TooltipValue = \"\";\n\n\t\t\t// LV\n\t\t\t$this->LV->LinkCustomAttributes = \"\";\n\t\t\t$this->LV->HrefValue = \"\";\n\t\t\t$this->LV->TooltipValue = \"\";\n\n\t\t\t// Type\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\n\t\t\t$this->Type->HrefValue = \"\";\n\t\t\t$this->Type->TooltipValue = \"\";\n\n\t\t\t// ResetTime\n\t\t\t$this->ResetTime->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetTime->HrefValue = \"\";\n\t\t\t$this->ResetTime->TooltipValue = \"\";\n\n\t\t\t// ResetType\n\t\t\t$this->ResetType->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetType->HrefValue = \"\";\n\t\t\t$this->ResetType->TooltipValue = \"\";\n\n\t\t\t// CompleteTask\n\t\t\t$this->CompleteTask->LinkCustomAttributes = \"\";\n\t\t\t$this->CompleteTask->HrefValue = \"\";\n\t\t\t$this->CompleteTask->TooltipValue = \"\";\n\n\t\t\t// Occupation\n\t\t\t$this->Occupation->LinkCustomAttributes = \"\";\n\t\t\t$this->Occupation->HrefValue = \"\";\n\t\t\t$this->Occupation->TooltipValue = \"\";\n\n\t\t\t// Target\n\t\t\t$this->Target->LinkCustomAttributes = \"\";\n\t\t\t$this->Target->HrefValue = \"\";\n\t\t\t$this->Target->TooltipValue = \"\";\n\n\t\t\t// Data\n\t\t\t$this->Data->LinkCustomAttributes = \"\";\n\t\t\t$this->Data->HrefValue = \"\";\n\t\t\t$this->Data->TooltipValue = \"\";\n\n\t\t\t// Reward_Gold\n\t\t\t$this->Reward_Gold->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Gold->HrefValue = \"\";\n\t\t\t$this->Reward_Gold->TooltipValue = \"\";\n\n\t\t\t// Reward_Diamonds\n\t\t\t$this->Reward_Diamonds->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Diamonds->HrefValue = \"\";\n\t\t\t$this->Reward_Diamonds->TooltipValue = \"\";\n\n\t\t\t// Reward_EXP\n\t\t\t$this->Reward_EXP->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_EXP->HrefValue = \"\";\n\t\t\t$this->Reward_EXP->TooltipValue = \"\";\n\n\t\t\t// Reward_Goods\n\t\t\t$this->Reward_Goods->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Goods->HrefValue = \"\";\n\t\t\t$this->Reward_Goods->TooltipValue = \"\";\n\n\t\t\t// Info\n\t\t\t$this->Info->LinkCustomAttributes = \"\";\n\t\t\t$this->Info->HrefValue = \"\";\n\t\t\t$this->Info->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tgl\n\t\t// no_spp\n\t\t// jns_spp\n\t\t// kd_mata\n\t\t// urai\n\t\t// jmlh\n\t\t// jmlh1\n\t\t// jmlh2\n\t\t// jmlh3\n\t\t// jmlh4\n\t\t// nm_perus\n\t\t// alamat\n\t\t// npwp\n\t\t// pimpinan\n\t\t// bank\n\t\t// rek\n\t\t// nospm\n\t\t// tglspm\n\t\t// ppn\n\t\t// ps21\n\t\t// ps22\n\t\t// ps23\n\t\t// ps4\n\t\t// kodespm\n\t\t// nambud\n\t\t// nppk\n\t\t// nipppk\n\t\t// prog\n\t\t// prog1\n\t\t// bayar\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tgl\n\t\t$this->tgl->ViewValue = $this->tgl->CurrentValue;\n\t\t$this->tgl->ViewValue = ew_FormatDateTime($this->tgl->ViewValue, 0);\n\t\t$this->tgl->ViewCustomAttributes = \"\";\n\n\t\t// no_spp\n\t\t$this->no_spp->ViewValue = $this->no_spp->CurrentValue;\n\t\t$this->no_spp->ViewCustomAttributes = \"\";\n\n\t\t// jns_spp\n\t\t$this->jns_spp->ViewValue = $this->jns_spp->CurrentValue;\n\t\t$this->jns_spp->ViewCustomAttributes = \"\";\n\n\t\t// kd_mata\n\t\t$this->kd_mata->ViewValue = $this->kd_mata->CurrentValue;\n\t\t$this->kd_mata->ViewCustomAttributes = \"\";\n\n\t\t// urai\n\t\t$this->urai->ViewValue = $this->urai->CurrentValue;\n\t\t$this->urai->ViewCustomAttributes = \"\";\n\n\t\t// jmlh\n\t\t$this->jmlh->ViewValue = $this->jmlh->CurrentValue;\n\t\t$this->jmlh->ViewCustomAttributes = \"\";\n\n\t\t// jmlh1\n\t\t$this->jmlh1->ViewValue = $this->jmlh1->CurrentValue;\n\t\t$this->jmlh1->ViewCustomAttributes = \"\";\n\n\t\t// jmlh2\n\t\t$this->jmlh2->ViewValue = $this->jmlh2->CurrentValue;\n\t\t$this->jmlh2->ViewCustomAttributes = \"\";\n\n\t\t// jmlh3\n\t\t$this->jmlh3->ViewValue = $this->jmlh3->CurrentValue;\n\t\t$this->jmlh3->ViewCustomAttributes = \"\";\n\n\t\t// jmlh4\n\t\t$this->jmlh4->ViewValue = $this->jmlh4->CurrentValue;\n\t\t$this->jmlh4->ViewCustomAttributes = \"\";\n\n\t\t// nm_perus\n\t\t$this->nm_perus->ViewValue = $this->nm_perus->CurrentValue;\n\t\t$this->nm_perus->ViewCustomAttributes = \"\";\n\n\t\t// alamat\n\t\t$this->alamat->ViewValue = $this->alamat->CurrentValue;\n\t\t$this->alamat->ViewCustomAttributes = \"\";\n\n\t\t// npwp\n\t\t$this->npwp->ViewValue = $this->npwp->CurrentValue;\n\t\t$this->npwp->ViewCustomAttributes = \"\";\n\n\t\t// pimpinan\n\t\t$this->pimpinan->ViewValue = $this->pimpinan->CurrentValue;\n\t\t$this->pimpinan->ViewCustomAttributes = \"\";\n\n\t\t// bank\n\t\t$this->bank->ViewValue = $this->bank->CurrentValue;\n\t\t$this->bank->ViewCustomAttributes = \"\";\n\n\t\t// rek\n\t\t$this->rek->ViewValue = $this->rek->CurrentValue;\n\t\t$this->rek->ViewCustomAttributes = \"\";\n\n\t\t// nospm\n\t\t$this->nospm->ViewValue = $this->nospm->CurrentValue;\n\t\t$this->nospm->ViewCustomAttributes = \"\";\n\n\t\t// tglspm\n\t\t$this->tglspm->ViewValue = $this->tglspm->CurrentValue;\n\t\t$this->tglspm->ViewValue = ew_FormatDateTime($this->tglspm->ViewValue, 0);\n\t\t$this->tglspm->ViewCustomAttributes = \"\";\n\n\t\t// ppn\n\t\t$this->ppn->ViewValue = $this->ppn->CurrentValue;\n\t\t$this->ppn->ViewCustomAttributes = \"\";\n\n\t\t// ps21\n\t\t$this->ps21->ViewValue = $this->ps21->CurrentValue;\n\t\t$this->ps21->ViewCustomAttributes = \"\";\n\n\t\t// ps22\n\t\t$this->ps22->ViewValue = $this->ps22->CurrentValue;\n\t\t$this->ps22->ViewCustomAttributes = \"\";\n\n\t\t// ps23\n\t\t$this->ps23->ViewValue = $this->ps23->CurrentValue;\n\t\t$this->ps23->ViewCustomAttributes = \"\";\n\n\t\t// ps4\n\t\t$this->ps4->ViewValue = $this->ps4->CurrentValue;\n\t\t$this->ps4->ViewCustomAttributes = \"\";\n\n\t\t// kodespm\n\t\t$this->kodespm->ViewValue = $this->kodespm->CurrentValue;\n\t\t$this->kodespm->ViewCustomAttributes = \"\";\n\n\t\t// nambud\n\t\t$this->nambud->ViewValue = $this->nambud->CurrentValue;\n\t\t$this->nambud->ViewCustomAttributes = \"\";\n\n\t\t// nppk\n\t\t$this->nppk->ViewValue = $this->nppk->CurrentValue;\n\t\t$this->nppk->ViewCustomAttributes = \"\";\n\n\t\t// nipppk\n\t\t$this->nipppk->ViewValue = $this->nipppk->CurrentValue;\n\t\t$this->nipppk->ViewCustomAttributes = \"\";\n\n\t\t// prog\n\t\t$this->prog->ViewValue = $this->prog->CurrentValue;\n\t\t$this->prog->ViewCustomAttributes = \"\";\n\n\t\t// prog1\n\t\t$this->prog1->ViewValue = $this->prog1->CurrentValue;\n\t\t$this->prog1->ViewCustomAttributes = \"\";\n\n\t\t// bayar\n\t\t$this->bayar->ViewValue = $this->bayar->CurrentValue;\n\t\t$this->bayar->ViewCustomAttributes = \"\";\n\n\t\t\t// tgl\n\t\t\t$this->tgl->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl->HrefValue = \"\";\n\t\t\t$this->tgl->TooltipValue = \"\";\n\n\t\t\t// no_spp\n\t\t\t$this->no_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->no_spp->HrefValue = \"\";\n\t\t\t$this->no_spp->TooltipValue = \"\";\n\n\t\t\t// jns_spp\n\t\t\t$this->jns_spp->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_spp->HrefValue = \"\";\n\t\t\t$this->jns_spp->TooltipValue = \"\";\n\n\t\t\t// kd_mata\n\t\t\t$this->kd_mata->LinkCustomAttributes = \"\";\n\t\t\t$this->kd_mata->HrefValue = \"\";\n\t\t\t$this->kd_mata->TooltipValue = \"\";\n\n\t\t\t// urai\n\t\t\t$this->urai->LinkCustomAttributes = \"\";\n\t\t\t$this->urai->HrefValue = \"\";\n\t\t\t$this->urai->TooltipValue = \"\";\n\n\t\t\t// jmlh\n\t\t\t$this->jmlh->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh->HrefValue = \"\";\n\t\t\t$this->jmlh->TooltipValue = \"\";\n\n\t\t\t// jmlh1\n\t\t\t$this->jmlh1->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh1->HrefValue = \"\";\n\t\t\t$this->jmlh1->TooltipValue = \"\";\n\n\t\t\t// jmlh2\n\t\t\t$this->jmlh2->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh2->HrefValue = \"\";\n\t\t\t$this->jmlh2->TooltipValue = \"\";\n\n\t\t\t// jmlh3\n\t\t\t$this->jmlh3->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh3->HrefValue = \"\";\n\t\t\t$this->jmlh3->TooltipValue = \"\";\n\n\t\t\t// jmlh4\n\t\t\t$this->jmlh4->LinkCustomAttributes = \"\";\n\t\t\t$this->jmlh4->HrefValue = \"\";\n\t\t\t$this->jmlh4->TooltipValue = \"\";\n\n\t\t\t// nm_perus\n\t\t\t$this->nm_perus->LinkCustomAttributes = \"\";\n\t\t\t$this->nm_perus->HrefValue = \"\";\n\t\t\t$this->nm_perus->TooltipValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$this->alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->alamat->HrefValue = \"\";\n\t\t\t$this->alamat->TooltipValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$this->npwp->LinkCustomAttributes = \"\";\n\t\t\t$this->npwp->HrefValue = \"\";\n\t\t\t$this->npwp->TooltipValue = \"\";\n\n\t\t\t// pimpinan\n\t\t\t$this->pimpinan->LinkCustomAttributes = \"\";\n\t\t\t$this->pimpinan->HrefValue = \"\";\n\t\t\t$this->pimpinan->TooltipValue = \"\";\n\n\t\t\t// bank\n\t\t\t$this->bank->LinkCustomAttributes = \"\";\n\t\t\t$this->bank->HrefValue = \"\";\n\t\t\t$this->bank->TooltipValue = \"\";\n\n\t\t\t// rek\n\t\t\t$this->rek->LinkCustomAttributes = \"\";\n\t\t\t$this->rek->HrefValue = \"\";\n\t\t\t$this->rek->TooltipValue = \"\";\n\n\t\t\t// nospm\n\t\t\t$this->nospm->LinkCustomAttributes = \"\";\n\t\t\t$this->nospm->HrefValue = \"\";\n\t\t\t$this->nospm->TooltipValue = \"\";\n\n\t\t\t// tglspm\n\t\t\t$this->tglspm->LinkCustomAttributes = \"\";\n\t\t\t$this->tglspm->HrefValue = \"\";\n\t\t\t$this->tglspm->TooltipValue = \"\";\n\n\t\t\t// ppn\n\t\t\t$this->ppn->LinkCustomAttributes = \"\";\n\t\t\t$this->ppn->HrefValue = \"\";\n\t\t\t$this->ppn->TooltipValue = \"\";\n\n\t\t\t// ps21\n\t\t\t$this->ps21->LinkCustomAttributes = \"\";\n\t\t\t$this->ps21->HrefValue = \"\";\n\t\t\t$this->ps21->TooltipValue = \"\";\n\n\t\t\t// ps22\n\t\t\t$this->ps22->LinkCustomAttributes = \"\";\n\t\t\t$this->ps22->HrefValue = \"\";\n\t\t\t$this->ps22->TooltipValue = \"\";\n\n\t\t\t// ps23\n\t\t\t$this->ps23->LinkCustomAttributes = \"\";\n\t\t\t$this->ps23->HrefValue = \"\";\n\t\t\t$this->ps23->TooltipValue = \"\";\n\n\t\t\t// ps4\n\t\t\t$this->ps4->LinkCustomAttributes = \"\";\n\t\t\t$this->ps4->HrefValue = \"\";\n\t\t\t$this->ps4->TooltipValue = \"\";\n\n\t\t\t// kodespm\n\t\t\t$this->kodespm->LinkCustomAttributes = \"\";\n\t\t\t$this->kodespm->HrefValue = \"\";\n\t\t\t$this->kodespm->TooltipValue = \"\";\n\n\t\t\t// nambud\n\t\t\t$this->nambud->LinkCustomAttributes = \"\";\n\t\t\t$this->nambud->HrefValue = \"\";\n\t\t\t$this->nambud->TooltipValue = \"\";\n\n\t\t\t// nppk\n\t\t\t$this->nppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nppk->HrefValue = \"\";\n\t\t\t$this->nppk->TooltipValue = \"\";\n\n\t\t\t// nipppk\n\t\t\t$this->nipppk->LinkCustomAttributes = \"\";\n\t\t\t$this->nipppk->HrefValue = \"\";\n\t\t\t$this->nipppk->TooltipValue = \"\";\n\n\t\t\t// prog\n\t\t\t$this->prog->LinkCustomAttributes = \"\";\n\t\t\t$this->prog->HrefValue = \"\";\n\t\t\t$this->prog->TooltipValue = \"\";\n\n\t\t\t// prog1\n\t\t\t$this->prog1->LinkCustomAttributes = \"\";\n\t\t\t$this->prog1->HrefValue = \"\";\n\t\t\t$this->prog1->TooltipValue = \"\";\n\n\t\t\t// bayar\n\t\t\t$this->bayar->LinkCustomAttributes = \"\";\n\t\t\t$this->bayar->HrefValue = \"\";\n\t\t\t$this->bayar->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idservicio_medico_prestado\n\t\t// idcuenta\n\t\t// fecha_inicio\n\t\t// fecha_final\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->ViewValue = $this->idservicio_medico_prestado->CurrentValue;\n\t\t\t$this->idservicio_medico_prestado->ViewCustomAttributes = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->ViewValue = $this->idcuenta->CurrentValue;\n\t\t\t$this->idcuenta->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->ViewValue = $this->fecha_inicio->CurrentValue;\n\t\t\t$this->fecha_inicio->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->ViewValue = $this->fecha_final->CurrentValue;\n\t\t\t$this->fecha_final->ViewCustomAttributes = \"\";\n\n\t\t\t// estado\n\t\t\tif (strval($this->estado->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->estado->CurrentValue) {\n\t\t\t\t\tcase $this->estado->FldTagValue(1):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(1) <> \"\" ? $this->estado->FldTagCaption(1) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(2):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(2) <> \"\" ? $this->estado->FldTagCaption(2) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->estado->FldTagValue(3):\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->FldTagCaption(3) <> \"\" ? $this->estado->FldTagCaption(3) : $this->estado->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->estado->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// idservicio_medico_prestado\n\t\t\t$this->idservicio_medico_prestado->LinkCustomAttributes = \"\";\n\t\t\t$this->idservicio_medico_prestado->HrefValue = \"\";\n\t\t\t$this->idservicio_medico_prestado->TooltipValue = \"\";\n\n\t\t\t// idcuenta\n\t\t\t$this->idcuenta->LinkCustomAttributes = \"\";\n\t\t\t$this->idcuenta->HrefValue = \"\";\n\t\t\t$this->idcuenta->TooltipValue = \"\";\n\n\t\t\t// fecha_inicio\n\t\t\t$this->fecha_inicio->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_inicio->HrefValue = \"\";\n\t\t\t$this->fecha_inicio->TooltipValue = \"\";\n\n\t\t\t// fecha_final\n\t\t\t$this->fecha_final->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_final->HrefValue = \"\";\n\t\t\t$this->fecha_final->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Name\n\t\t// Basics\n\t\t// HP\n\t\t// MP\n\t\t// AD\n\t\t// AP\n\t\t// Defense\n\t\t// Hit\n\t\t// Dodge\n\t\t// Crit\n\t\t// AbsorbHP\n\t\t// ADPTV\n\t\t// ADPTR\n\t\t// APPTR\n\t\t// APPTV\n\t\t// ImmuneDamage\n\t\t// Intro\n\t\t// ExclusiveSkills\n\t\t// TransferDemand\n\t\t// TransferLevel\n\t\t// FormerOccupation\n\t\t// Belong\n\t\t// AttackEffect\n\t\t// AttackTips\n\t\t// MagicResistance\n\t\t// IgnoreShield\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Name\n\t\t$this->Name->ViewValue = $this->Name->CurrentValue;\n\t\t$this->Name->ViewCustomAttributes = \"\";\n\n\t\t// Basics\n\t\t$this->Basics->ViewValue = $this->Basics->CurrentValue;\n\t\t$this->Basics->ViewCustomAttributes = \"\";\n\n\t\t// HP\n\t\t$this->HP->ViewValue = $this->HP->CurrentValue;\n\t\t$this->HP->ViewCustomAttributes = \"\";\n\n\t\t// MP\n\t\t$this->MP->ViewValue = $this->MP->CurrentValue;\n\t\t$this->MP->ViewCustomAttributes = \"\";\n\n\t\t// AD\n\t\t$this->AD->ViewValue = $this->AD->CurrentValue;\n\t\t$this->AD->ViewCustomAttributes = \"\";\n\n\t\t// AP\n\t\t$this->AP->ViewValue = $this->AP->CurrentValue;\n\t\t$this->AP->ViewCustomAttributes = \"\";\n\n\t\t// Defense\n\t\t$this->Defense->ViewValue = $this->Defense->CurrentValue;\n\t\t$this->Defense->ViewCustomAttributes = \"\";\n\n\t\t// Hit\n\t\t$this->Hit->ViewValue = $this->Hit->CurrentValue;\n\t\t$this->Hit->ViewCustomAttributes = \"\";\n\n\t\t// Dodge\n\t\t$this->Dodge->ViewValue = $this->Dodge->CurrentValue;\n\t\t$this->Dodge->ViewCustomAttributes = \"\";\n\n\t\t// Crit\n\t\t$this->Crit->ViewValue = $this->Crit->CurrentValue;\n\t\t$this->Crit->ViewCustomAttributes = \"\";\n\n\t\t// AbsorbHP\n\t\t$this->AbsorbHP->ViewValue = $this->AbsorbHP->CurrentValue;\n\t\t$this->AbsorbHP->ViewCustomAttributes = \"\";\n\n\t\t// ADPTV\n\t\t$this->ADPTV->ViewValue = $this->ADPTV->CurrentValue;\n\t\t$this->ADPTV->ViewCustomAttributes = \"\";\n\n\t\t// ADPTR\n\t\t$this->ADPTR->ViewValue = $this->ADPTR->CurrentValue;\n\t\t$this->ADPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTR\n\t\t$this->APPTR->ViewValue = $this->APPTR->CurrentValue;\n\t\t$this->APPTR->ViewCustomAttributes = \"\";\n\n\t\t// APPTV\n\t\t$this->APPTV->ViewValue = $this->APPTV->CurrentValue;\n\t\t$this->APPTV->ViewCustomAttributes = \"\";\n\n\t\t// ImmuneDamage\n\t\t$this->ImmuneDamage->ViewValue = $this->ImmuneDamage->CurrentValue;\n\t\t$this->ImmuneDamage->ViewCustomAttributes = \"\";\n\n\t\t// Intro\n\t\t$this->Intro->ViewValue = $this->Intro->CurrentValue;\n\t\t$this->Intro->ViewCustomAttributes = \"\";\n\n\t\t// ExclusiveSkills\n\t\t$this->ExclusiveSkills->ViewValue = $this->ExclusiveSkills->CurrentValue;\n\t\t$this->ExclusiveSkills->ViewCustomAttributes = \"\";\n\n\t\t// TransferDemand\n\t\t$this->TransferDemand->ViewValue = $this->TransferDemand->CurrentValue;\n\t\t$this->TransferDemand->ViewCustomAttributes = \"\";\n\n\t\t// TransferLevel\n\t\t$this->TransferLevel->ViewValue = $this->TransferLevel->CurrentValue;\n\t\t$this->TransferLevel->ViewCustomAttributes = \"\";\n\n\t\t// FormerOccupation\n\t\t$this->FormerOccupation->ViewValue = $this->FormerOccupation->CurrentValue;\n\t\t$this->FormerOccupation->ViewCustomAttributes = \"\";\n\n\t\t// Belong\n\t\t$this->Belong->ViewValue = $this->Belong->CurrentValue;\n\t\t$this->Belong->ViewCustomAttributes = \"\";\n\n\t\t// AttackEffect\n\t\t$this->AttackEffect->ViewValue = $this->AttackEffect->CurrentValue;\n\t\t$this->AttackEffect->ViewCustomAttributes = \"\";\n\n\t\t// AttackTips\n\t\t$this->AttackTips->ViewValue = $this->AttackTips->CurrentValue;\n\t\t$this->AttackTips->ViewCustomAttributes = \"\";\n\n\t\t// MagicResistance\n\t\t$this->MagicResistance->ViewValue = $this->MagicResistance->CurrentValue;\n\t\t$this->MagicResistance->ViewCustomAttributes = \"\";\n\n\t\t// IgnoreShield\n\t\t$this->IgnoreShield->ViewValue = $this->IgnoreShield->CurrentValue;\n\t\t$this->IgnoreShield->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Name\n\t\t\t$this->Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Name->HrefValue = \"\";\n\t\t\t$this->Name->TooltipValue = \"\";\n\n\t\t\t// Basics\n\t\t\t$this->Basics->LinkCustomAttributes = \"\";\n\t\t\t$this->Basics->HrefValue = \"\";\n\t\t\t$this->Basics->TooltipValue = \"\";\n\n\t\t\t// HP\n\t\t\t$this->HP->LinkCustomAttributes = \"\";\n\t\t\t$this->HP->HrefValue = \"\";\n\t\t\t$this->HP->TooltipValue = \"\";\n\n\t\t\t// MP\n\t\t\t$this->MP->LinkCustomAttributes = \"\";\n\t\t\t$this->MP->HrefValue = \"\";\n\t\t\t$this->MP->TooltipValue = \"\";\n\n\t\t\t// AD\n\t\t\t$this->AD->LinkCustomAttributes = \"\";\n\t\t\t$this->AD->HrefValue = \"\";\n\t\t\t$this->AD->TooltipValue = \"\";\n\n\t\t\t// AP\n\t\t\t$this->AP->LinkCustomAttributes = \"\";\n\t\t\t$this->AP->HrefValue = \"\";\n\t\t\t$this->AP->TooltipValue = \"\";\n\n\t\t\t// Defense\n\t\t\t$this->Defense->LinkCustomAttributes = \"\";\n\t\t\t$this->Defense->HrefValue = \"\";\n\t\t\t$this->Defense->TooltipValue = \"\";\n\n\t\t\t// Hit\n\t\t\t$this->Hit->LinkCustomAttributes = \"\";\n\t\t\t$this->Hit->HrefValue = \"\";\n\t\t\t$this->Hit->TooltipValue = \"\";\n\n\t\t\t// Dodge\n\t\t\t$this->Dodge->LinkCustomAttributes = \"\";\n\t\t\t$this->Dodge->HrefValue = \"\";\n\t\t\t$this->Dodge->TooltipValue = \"\";\n\n\t\t\t// Crit\n\t\t\t$this->Crit->LinkCustomAttributes = \"\";\n\t\t\t$this->Crit->HrefValue = \"\";\n\t\t\t$this->Crit->TooltipValue = \"\";\n\n\t\t\t// AbsorbHP\n\t\t\t$this->AbsorbHP->LinkCustomAttributes = \"\";\n\t\t\t$this->AbsorbHP->HrefValue = \"\";\n\t\t\t$this->AbsorbHP->TooltipValue = \"\";\n\n\t\t\t// ADPTV\n\t\t\t$this->ADPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTV->HrefValue = \"\";\n\t\t\t$this->ADPTV->TooltipValue = \"\";\n\n\t\t\t// ADPTR\n\t\t\t$this->ADPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->ADPTR->HrefValue = \"\";\n\t\t\t$this->ADPTR->TooltipValue = \"\";\n\n\t\t\t// APPTR\n\t\t\t$this->APPTR->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTR->HrefValue = \"\";\n\t\t\t$this->APPTR->TooltipValue = \"\";\n\n\t\t\t// APPTV\n\t\t\t$this->APPTV->LinkCustomAttributes = \"\";\n\t\t\t$this->APPTV->HrefValue = \"\";\n\t\t\t$this->APPTV->TooltipValue = \"\";\n\n\t\t\t// ImmuneDamage\n\t\t\t$this->ImmuneDamage->LinkCustomAttributes = \"\";\n\t\t\t$this->ImmuneDamage->HrefValue = \"\";\n\t\t\t$this->ImmuneDamage->TooltipValue = \"\";\n\n\t\t\t// Intro\n\t\t\t$this->Intro->LinkCustomAttributes = \"\";\n\t\t\t$this->Intro->HrefValue = \"\";\n\t\t\t$this->Intro->TooltipValue = \"\";\n\n\t\t\t// ExclusiveSkills\n\t\t\t$this->ExclusiveSkills->LinkCustomAttributes = \"\";\n\t\t\t$this->ExclusiveSkills->HrefValue = \"\";\n\t\t\t$this->ExclusiveSkills->TooltipValue = \"\";\n\n\t\t\t// TransferDemand\n\t\t\t$this->TransferDemand->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferDemand->HrefValue = \"\";\n\t\t\t$this->TransferDemand->TooltipValue = \"\";\n\n\t\t\t// TransferLevel\n\t\t\t$this->TransferLevel->LinkCustomAttributes = \"\";\n\t\t\t$this->TransferLevel->HrefValue = \"\";\n\t\t\t$this->TransferLevel->TooltipValue = \"\";\n\n\t\t\t// FormerOccupation\n\t\t\t$this->FormerOccupation->LinkCustomAttributes = \"\";\n\t\t\t$this->FormerOccupation->HrefValue = \"\";\n\t\t\t$this->FormerOccupation->TooltipValue = \"\";\n\n\t\t\t// Belong\n\t\t\t$this->Belong->LinkCustomAttributes = \"\";\n\t\t\t$this->Belong->HrefValue = \"\";\n\t\t\t$this->Belong->TooltipValue = \"\";\n\n\t\t\t// AttackEffect\n\t\t\t$this->AttackEffect->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackEffect->HrefValue = \"\";\n\t\t\t$this->AttackEffect->TooltipValue = \"\";\n\n\t\t\t// AttackTips\n\t\t\t$this->AttackTips->LinkCustomAttributes = \"\";\n\t\t\t$this->AttackTips->HrefValue = \"\";\n\t\t\t$this->AttackTips->TooltipValue = \"\";\n\n\t\t\t// MagicResistance\n\t\t\t$this->MagicResistance->LinkCustomAttributes = \"\";\n\t\t\t$this->MagicResistance->HrefValue = \"\";\n\t\t\t$this->MagicResistance->TooltipValue = \"\";\n\n\t\t\t// IgnoreShield\n\t\t\t$this->IgnoreShield->LinkCustomAttributes = \"\";\n\t\t\t$this->IgnoreShield->HrefValue = \"\";\n\t\t\t$this->IgnoreShield->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function edit()\n {\n return view('escrow::edit');\n }", "public function getEditCellValue($row);", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\n\t\t$this->id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// nombre_contacto\n\t\t// name\n\t\t// lastname\n\t\t// email\n\t\t// address\n\t\t// phone\n\t\t// cell\n\t\t// is_active\n\n\t\t$this->is_active->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// created_at\n\t\t// id_sucursal\n\t\t// documentos\n\n\t\t$this->documentos->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateModified\n\t\t$this->DateModified->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DateDeleted\n\t\t$this->DateDeleted->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// CreatedBy\n\t\t$this->CreatedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// ModifiedBy\n\t\t$this->ModifiedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// DeletedBy\n\t\t$this->DeletedBy->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// latitud\n\t\t$this->latitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// longitud\n\t\t$this->longitud->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipoinmueble\n\t\t// id_ciudad_inmueble\n\t\t// id_provincia_inmueble\n\t\t// imagen_inmueble01\n\n\t\t$this->imagen_inmueble01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble02\n\t\t// imagen_inmueble03\n\t\t// imagen_inmueble04\n\t\t// imagen_inmueble05\n\t\t// imagen_inmueble06\n\n\t\t$this->imagen_inmueble06->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble07\n\t\t$this->imagen_inmueble07->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_inmueble08\n\t\t$this->imagen_inmueble08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipovehiculo\n\t\t// id_ciudad_vehiculo\n\t\t// id_provincia_vehiculo\n\t\t// imagen_vehiculo01\n\n\t\t$this->imagen_vehiculo01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo02\n\t\t// imagen_vehiculo03\n\n\t\t$this->imagen_vehiculo03->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo04\n\t\t$this->imagen_vehiculo04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_vehiculo05\n\t\t// imagen_vehiculo06\n\t\t// imagen_vehiculo07\n\t\t// imagen_vehiculo08\n\n\t\t$this->imagen_vehiculo08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomaquinaria\n\t\t// id_ciudad_maquinaria\n\t\t// id_provincia_maquinaria\n\t\t// imagen_maquinaria01\n\n\t\t$this->imagen_maquinaria01->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria02\n\t\t// imagen_maquinaria03\n\t\t// imagen_maquinaria04\n\n\t\t$this->imagen_maquinaria04->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// imagen_maquinaria05\n\t\t// imagen_maquinaria06\n\t\t// imagen_maquinaria07\n\t\t// imagen_maquinaria08\n\n\t\t$this->imagen_maquinaria08->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// tipomercaderia\n\t\t// imagen_mercaderia01\n\t\t// documento_mercaderia\n\t\t// tipoespecial\n\t\t// imagen_tipoespecial01\n\t\t// email_contacto\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// nombre_contacto\n\t\t$this->nombre_contacto->ViewValue = $this->nombre_contacto->CurrentValue;\n\t\t$this->nombre_contacto->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// lastname\n\t\t$this->lastname->ViewValue = $this->lastname->CurrentValue;\n\t\t$this->lastname->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// address\n\t\t$this->address->ViewValue = $this->address->CurrentValue;\n\t\t$this->address->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// cell\n\t\t$this->cell->ViewValue = $this->cell->CurrentValue;\n\t\t$this->cell->ViewCustomAttributes = \"\";\n\n\t\t// created_at\n\t\t$this->created_at->ViewValue = $this->created_at->CurrentValue;\n\t\t$this->created_at->ViewValue = ew_FormatDateTime($this->created_at->ViewValue, 17);\n\t\t$this->created_at->ViewCustomAttributes = \"\";\n\n\t\t// id_sucursal\n\t\tif (strval($this->id_sucursal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sucursal->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sucursal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sucursal->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`id`='\".$_SESSION[\"sucursal\"].\"'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sucursal, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sucursal->ViewValue = $this->id_sucursal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sucursal->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sucursal->ViewCustomAttributes = \"\";\n\n\t\t// tipoinmueble\n\t\tif (strval($this->tipoinmueble->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoinmueble->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoinmueble->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='INMUEBLE'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoinmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoinmueble->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoinmueble->ViewValue .= $this->tipoinmueble->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoinmueble->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoinmueble->ViewValue = $this->tipoinmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoinmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoinmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_inmueble\n\t\tif (strval($this->id_ciudad_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_inmueble->ViewValue = $this->id_ciudad_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_inmueble\n\t\tif (strval($this->id_provincia_inmueble->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_inmueble->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_inmueble->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_inmueble, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_inmueble->ViewValue = $this->id_provincia_inmueble->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_inmueble->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_inmueble->ViewCustomAttributes = \"\";\n\n\t\t// tipovehiculo\n\t\tif (strval($this->tipovehiculo->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipovehiculo->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipovehiculo->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='VEHICULO'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipovehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipovehiculo->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipovehiculo->ViewValue .= $this->tipovehiculo->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipovehiculo->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipovehiculo->ViewValue = $this->tipovehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipovehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->tipovehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_vehiculo\n\t\tif (strval($this->id_ciudad_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_vehiculo->ViewValue = $this->id_ciudad_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_vehiculo\n\t\tif (strval($this->id_provincia_vehiculo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_vehiculo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_vehiculo->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_vehiculo, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_vehiculo->ViewValue = $this->id_provincia_vehiculo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_vehiculo->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_vehiculo->ViewCustomAttributes = \"\";\n\n\t\t// tipomaquinaria\n\t\tif (strval($this->tipomaquinaria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomaquinaria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`nombre`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `nombre`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomaquinaria->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='MAQUINARIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomaquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomaquinaria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomaquinaria->ViewValue .= $this->tipomaquinaria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomaquinaria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomaquinaria->ViewValue = $this->tipomaquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomaquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomaquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_ciudad_maquinaria\n\t\tif (strval($this->id_ciudad_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_ciudad_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_ciudad_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_ciudad_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_ciudad_maquinaria->ViewValue = $this->id_ciudad_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_ciudad_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_ciudad_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// id_provincia_maquinaria\n\t\tif (strval($this->id_provincia_maquinaria->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_provincia_maquinaria->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provincia`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_provincia_maquinaria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_provincia_maquinaria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_provincia_maquinaria->ViewValue = $this->id_provincia_maquinaria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_provincia_maquinaria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_provincia_maquinaria->ViewCustomAttributes = \"\";\n\n\t\t// tipomercaderia\n\t\tif (strval($this->tipomercaderia->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipomercaderia->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipomercaderia->LookupFilters = array();\n\t\t$lookuptblfilter = \"`tipo`='MERCADERIA'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipomercaderia, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipomercaderia->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipomercaderia->ViewValue .= $this->tipomercaderia->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipomercaderia->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipomercaderia->ViewValue = $this->tipomercaderia->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipomercaderia->ViewValue = NULL;\n\t\t}\n\t\t$this->tipomercaderia->ViewCustomAttributes = \"\";\n\n\t\t// documento_mercaderia\n\t\t$this->documento_mercaderia->ViewValue = $this->documento_mercaderia->CurrentValue;\n\t\t$this->documento_mercaderia->ViewCustomAttributes = \"\";\n\n\t\t// tipoespecial\n\t\tif (strval($this->tipoespecial->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->tipoespecial->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id_tipoinmueble`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id_tipoinmueble`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipoinmueble`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipoespecial->LookupFilters = array(\"dx1\" => '`nombre`');\n\t\t$lookuptblfilter = \"`tipo`='ESPECIAL'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipoespecial, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->tipoespecial->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->tipoespecial->ViewValue .= $this->tipoespecial->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->tipoespecial->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipoespecial->ViewValue = $this->tipoespecial->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipoespecial->ViewValue = NULL;\n\t\t}\n\t\t$this->tipoespecial->ViewCustomAttributes = \"\";\n\n\t\t// email_contacto\n\t\tif (strval($this->email_contacto->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`login`\" . ew_SearchString(\"=\", $this->email_contacto->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `login`, `nombre` AS `DispFld`, `apellido` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `oficialcredito`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->email_contacto->LookupFilters = array(\"dx1\" => '`nombre`', \"dx2\" => '`apellido`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->email_contacto, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->email_contacto->ViewValue = $this->email_contacto->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->email_contacto->ViewValue = NULL;\n\t\t}\n\t\t$this->email_contacto->ViewCustomAttributes = \"\";\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->HrefValue = \"\";\n\t\t\t$this->nombre_contacto->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// lastname\n\t\t\t$this->lastname->LinkCustomAttributes = \"\";\n\t\t\t$this->lastname->HrefValue = \"\";\n\t\t\t$this->lastname->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// address\n\t\t\t$this->address->LinkCustomAttributes = \"\";\n\t\t\t$this->address->HrefValue = \"\";\n\t\t\t$this->address->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// cell\n\t\t\t$this->cell->LinkCustomAttributes = \"\";\n\t\t\t$this->cell->HrefValue = \"\";\n\t\t\t$this->cell->TooltipValue = \"\";\n\n\t\t\t// created_at\n\t\t\t$this->created_at->LinkCustomAttributes = \"\";\n\t\t\t$this->created_at->HrefValue = \"\";\n\t\t\t$this->created_at->TooltipValue = \"\";\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sucursal->HrefValue = \"\";\n\t\t\t$this->id_sucursal->TooltipValue = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoinmueble->HrefValue = \"\";\n\t\t\t$this->tipoinmueble->TooltipValue = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->LinkCustomAttributes = \"\";\n\t\t\t$this->tipovehiculo->HrefValue = \"\";\n\t\t\t$this->tipovehiculo->TooltipValue = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomaquinaria->HrefValue = \"\";\n\t\t\t$this->tipomaquinaria->TooltipValue = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->LinkCustomAttributes = \"\";\n\t\t\t$this->tipomercaderia->HrefValue = \"\";\n\t\t\t$this->tipomercaderia->TooltipValue = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->LinkCustomAttributes = \"\";\n\t\t\t$this->tipoespecial->HrefValue = \"\";\n\t\t\t$this->tipoespecial->TooltipValue = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->LinkCustomAttributes = \"\";\n\t\t\t$this->email_contacto->HrefValue = \"\";\n\t\t\t$this->email_contacto->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// nombre_contacto\n\t\t\t$this->nombre_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nombre_contacto->EditCustomAttributes = \"\";\n\t\t\t$this->nombre_contacto->EditValue = ew_HtmlEncode($this->nombre_contacto->AdvancedSearch->SearchValue);\n\t\t\t$this->nombre_contacto->PlaceHolder = ew_RemoveHtml($this->nombre_contacto->FldTitle());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldTitle());\n\n\t\t\t// lastname\n\t\t\t$this->lastname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lastname->EditCustomAttributes = \"\";\n\t\t\t$this->lastname->EditValue = ew_HtmlEncode($this->lastname->AdvancedSearch->SearchValue);\n\t\t\t$this->lastname->PlaceHolder = ew_RemoveHtml($this->lastname->FldTitle());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldTitle());\n\n\t\t\t// address\n\t\t\t$this->address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->address->EditCustomAttributes = \"\";\n\t\t\t$this->address->EditValue = ew_HtmlEncode($this->address->AdvancedSearch->SearchValue);\n\t\t\t$this->address->PlaceHolder = ew_RemoveHtml($this->address->FldTitle());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldTitle());\n\n\t\t\t// cell\n\t\t\t$this->cell->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cell->EditCustomAttributes = \"\";\n\t\t\t$this->cell->EditValue = ew_HtmlEncode($this->cell->AdvancedSearch->SearchValue);\n\t\t\t$this->cell->PlaceHolder = ew_RemoveHtml($this->cell->FldTitle());\n\n\t\t\t// created_at\n\t\t\t$this->created_at->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->created_at->EditCustomAttributes = \"\";\n\t\t\t$this->created_at->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->created_at->AdvancedSearch->SearchValue, 17), 17));\n\t\t\t$this->created_at->PlaceHolder = ew_RemoveHtml($this->created_at->FldTitle());\n\n\t\t\t// id_sucursal\n\t\t\t$this->id_sucursal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_sucursal->EditCustomAttributes = \"\";\n\n\t\t\t// tipoinmueble\n\t\t\t$this->tipoinmueble->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoinmueble->EditCustomAttributes = \"\";\n\n\t\t\t// tipovehiculo\n\t\t\t$this->tipovehiculo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipovehiculo->EditCustomAttributes = \"\";\n\n\t\t\t// tipomaquinaria\n\t\t\t$this->tipomaquinaria->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomaquinaria->EditCustomAttributes = \"\";\n\n\t\t\t// tipomercaderia\n\t\t\t$this->tipomercaderia->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipomercaderia->EditCustomAttributes = \"\";\n\n\t\t\t// tipoespecial\n\t\t\t$this->tipoespecial->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipoespecial->EditCustomAttributes = \"\";\n\n\t\t\t// email_contacto\n\t\t\t$this->email_contacto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->email_contacto->EditCustomAttributes = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->precio_item->FormValue == $this->precio_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_item->CurrentValue)))\n\t\t\t$this->precio_item->CurrentValue = ew_StrToFloat($this->precio_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_item->FormValue == $this->costo_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_item->CurrentValue)))\n\t\t\t$this->costo_item->CurrentValue = ew_StrToFloat($this->costo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldo_item->FormValue == $this->saldo_item->CurrentValue && is_numeric(ew_StrToFloat($this->saldo_item->CurrentValue)))\n\t\t\t$this->saldo_item->CurrentValue = ew_StrToFloat($this->saldo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->precio_old_item->FormValue == $this->precio_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_old_item->CurrentValue)))\n\t\t\t$this->precio_old_item->CurrentValue = ew_StrToFloat($this->precio_old_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_old_item->FormValue == $this->costo_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_old_item->CurrentValue)))\n\t\t\t$this->costo_old_item->CurrentValue = ew_StrToFloat($this->costo_old_item->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_Item\n\t\t// codigo_item\n\t\t// nombre_item\n\t\t// und_item\n\t\t// precio_item\n\t\t// costo_item\n\t\t// tipo_item\n\t\t// marca_item\n\t\t// cod_marca_item\n\t\t// detalle_item\n\t\t// saldo_item\n\t\t// activo_item\n\t\t// maneja_serial_item\n\t\t// asignado_item\n\t\t// si_no_item\n\t\t// precio_old_item\n\t\t// costo_old_item\n\t\t// registra_item\n\t\t// fecha_registro_item\n\t\t// empresa_item\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_Item\n\t\t$this->Id_Item->ViewValue = $this->Id_Item->CurrentValue;\n\t\t$this->Id_Item->ViewCustomAttributes = \"\";\n\n\t\t// codigo_item\n\t\t$this->codigo_item->ViewValue = $this->codigo_item->CurrentValue;\n\t\t$this->codigo_item->ViewCustomAttributes = \"\";\n\n\t\t// nombre_item\n\t\t$this->nombre_item->ViewValue = $this->nombre_item->CurrentValue;\n\t\t$this->nombre_item->ViewCustomAttributes = \"\";\n\n\t\t// und_item\n\t\t$this->und_item->ViewValue = $this->und_item->CurrentValue;\n\t\t$this->und_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_item\n\t\t$this->precio_item->ViewValue = $this->precio_item->CurrentValue;\n\t\t$this->precio_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_item\n\t\t$this->costo_item->ViewValue = $this->costo_item->CurrentValue;\n\t\t$this->costo_item->ViewCustomAttributes = \"\";\n\n\t\t// tipo_item\n\t\t$this->tipo_item->ViewValue = $this->tipo_item->CurrentValue;\n\t\t$this->tipo_item->ViewCustomAttributes = \"\";\n\n\t\t// marca_item\n\t\t$this->marca_item->ViewValue = $this->marca_item->CurrentValue;\n\t\t$this->marca_item->ViewCustomAttributes = \"\";\n\n\t\t// cod_marca_item\n\t\t$this->cod_marca_item->ViewValue = $this->cod_marca_item->CurrentValue;\n\t\t$this->cod_marca_item->ViewCustomAttributes = \"\";\n\n\t\t// detalle_item\n\t\t$this->detalle_item->ViewValue = $this->detalle_item->CurrentValue;\n\t\t$this->detalle_item->ViewCustomAttributes = \"\";\n\n\t\t// saldo_item\n\t\t$this->saldo_item->ViewValue = $this->saldo_item->CurrentValue;\n\t\t$this->saldo_item->ViewCustomAttributes = \"\";\n\n\t\t// activo_item\n\t\t$this->activo_item->ViewValue = $this->activo_item->CurrentValue;\n\t\t$this->activo_item->ViewCustomAttributes = \"\";\n\n\t\t// maneja_serial_item\n\t\t$this->maneja_serial_item->ViewValue = $this->maneja_serial_item->CurrentValue;\n\t\t$this->maneja_serial_item->ViewCustomAttributes = \"\";\n\n\t\t// asignado_item\n\t\t$this->asignado_item->ViewValue = $this->asignado_item->CurrentValue;\n\t\t$this->asignado_item->ViewCustomAttributes = \"\";\n\n\t\t// si_no_item\n\t\t$this->si_no_item->ViewValue = $this->si_no_item->CurrentValue;\n\t\t$this->si_no_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_old_item\n\t\t$this->precio_old_item->ViewValue = $this->precio_old_item->CurrentValue;\n\t\t$this->precio_old_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_old_item\n\t\t$this->costo_old_item->ViewValue = $this->costo_old_item->CurrentValue;\n\t\t$this->costo_old_item->ViewCustomAttributes = \"\";\n\n\t\t// registra_item\n\t\t$this->registra_item->ViewValue = $this->registra_item->CurrentValue;\n\t\t$this->registra_item->ViewCustomAttributes = \"\";\n\n\t\t// fecha_registro_item\n\t\t$this->fecha_registro_item->ViewValue = $this->fecha_registro_item->CurrentValue;\n\t\t$this->fecha_registro_item->ViewValue = ew_FormatDateTime($this->fecha_registro_item->ViewValue, 0);\n\t\t$this->fecha_registro_item->ViewCustomAttributes = \"\";\n\n\t\t// empresa_item\n\t\t$this->empresa_item->ViewValue = $this->empresa_item->CurrentValue;\n\t\t$this->empresa_item->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_Item\n\t\t\t$this->Id_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_Item->HrefValue = \"\";\n\t\t\t$this->Id_Item->TooltipValue = \"\";\n\n\t\t\t// codigo_item\n\t\t\t$this->codigo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo_item->HrefValue = \"\";\n\t\t\t$this->codigo_item->TooltipValue = \"\";\n\n\t\t\t// nombre_item\n\t\t\t$this->nombre_item->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_item->HrefValue = \"\";\n\t\t\t$this->nombre_item->TooltipValue = \"\";\n\n\t\t\t// und_item\n\t\t\t$this->und_item->LinkCustomAttributes = \"\";\n\t\t\t$this->und_item->HrefValue = \"\";\n\t\t\t$this->und_item->TooltipValue = \"\";\n\n\t\t\t// precio_item\n\t\t\t$this->precio_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_item->HrefValue = \"\";\n\t\t\t$this->precio_item->TooltipValue = \"\";\n\n\t\t\t// costo_item\n\t\t\t$this->costo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_item->HrefValue = \"\";\n\t\t\t$this->costo_item->TooltipValue = \"\";\n\n\t\t\t// tipo_item\n\t\t\t$this->tipo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_item->HrefValue = \"\";\n\t\t\t$this->tipo_item->TooltipValue = \"\";\n\n\t\t\t// marca_item\n\t\t\t$this->marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->marca_item->HrefValue = \"\";\n\t\t\t$this->marca_item->TooltipValue = \"\";\n\n\t\t\t// cod_marca_item\n\t\t\t$this->cod_marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->cod_marca_item->HrefValue = \"\";\n\t\t\t$this->cod_marca_item->TooltipValue = \"\";\n\n\t\t\t// detalle_item\n\t\t\t$this->detalle_item->LinkCustomAttributes = \"\";\n\t\t\t$this->detalle_item->HrefValue = \"\";\n\t\t\t$this->detalle_item->TooltipValue = \"\";\n\n\t\t\t// saldo_item\n\t\t\t$this->saldo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->saldo_item->HrefValue = \"\";\n\t\t\t$this->saldo_item->TooltipValue = \"\";\n\n\t\t\t// activo_item\n\t\t\t$this->activo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_item->HrefValue = \"\";\n\t\t\t$this->activo_item->TooltipValue = \"\";\n\n\t\t\t// maneja_serial_item\n\t\t\t$this->maneja_serial_item->LinkCustomAttributes = \"\";\n\t\t\t$this->maneja_serial_item->HrefValue = \"\";\n\t\t\t$this->maneja_serial_item->TooltipValue = \"\";\n\n\t\t\t// asignado_item\n\t\t\t$this->asignado_item->LinkCustomAttributes = \"\";\n\t\t\t$this->asignado_item->HrefValue = \"\";\n\t\t\t$this->asignado_item->TooltipValue = \"\";\n\n\t\t\t// si_no_item\n\t\t\t$this->si_no_item->LinkCustomAttributes = \"\";\n\t\t\t$this->si_no_item->HrefValue = \"\";\n\t\t\t$this->si_no_item->TooltipValue = \"\";\n\n\t\t\t// precio_old_item\n\t\t\t$this->precio_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_old_item->HrefValue = \"\";\n\t\t\t$this->precio_old_item->TooltipValue = \"\";\n\n\t\t\t// costo_old_item\n\t\t\t$this->costo_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_old_item->HrefValue = \"\";\n\t\t\t$this->costo_old_item->TooltipValue = \"\";\n\n\t\t\t// registra_item\n\t\t\t$this->registra_item->LinkCustomAttributes = \"\";\n\t\t\t$this->registra_item->HrefValue = \"\";\n\t\t\t$this->registra_item->TooltipValue = \"\";\n\n\t\t\t// fecha_registro_item\n\t\t\t$this->fecha_registro_item->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_registro_item->HrefValue = \"\";\n\t\t\t$this->fecha_registro_item->TooltipValue = \"\";\n\n\t\t\t// empresa_item\n\t\t\t$this->empresa_item->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_item->HrefValue = \"\";\n\t\t\t$this->empresa_item->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function edit(Table $table, Row $row)\n {\n $cols = $table->cols;\n $items = $row->items;\n $i = 1;\n return view('rows.create_and_edit', compact('table', 'row', 'cols' ,'items' ,'i'));\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// spec_id\n\t\t// model_id\n\t\t// title\n\t\t// description\n\t\t// s_order\n\t\t// status\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->ViewValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->ViewValue = $this->title->CurrentValue;\n\t\t\t$this->title->ViewCustomAttributes = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\n\t\t\t$this->description->ViewCustomAttributes = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->ViewValue = $this->s_order->CurrentValue;\n\t\t\t$this->s_order->ViewCustomAttributes = \"\";\n\n\t\t\t// status\n\t\t\tif (strval($this->status->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->status->CurrentValue) {\n\t\t\t\t\tcase $this->status->FldTagValue(1):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->status->FldTagValue(2):\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->status->ViewValue = $this->status->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->status->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->status->ViewCustomAttributes = \"\";\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->LinkCustomAttributes = \"\";\n\t\t\t$this->spec_id->HrefValue = \"\";\n\t\t\t$this->spec_id->TooltipValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->LinkCustomAttributes = \"\";\n\t\t\t$this->model_id->HrefValue = \"\";\n\t\t\t$this->model_id->TooltipValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->LinkCustomAttributes = \"\";\n\t\t\t$this->title->HrefValue = \"\";\n\t\t\t$this->title->TooltipValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->LinkCustomAttributes = \"\";\n\t\t\t$this->description->HrefValue = \"\";\n\t\t\t$this->description->TooltipValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->LinkCustomAttributes = \"\";\n\t\t\t$this->s_order->HrefValue = \"\";\n\t\t\t$this->s_order->TooltipValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->LinkCustomAttributes = \"\";\n\t\t\t$this->status->HrefValue = \"\";\n\t\t\t$this->status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// spec_id\n\t\t\t$this->spec_id->EditCustomAttributes = \"\";\n\t\t\t$this->spec_id->EditValue = $this->spec_id->CurrentValue;\n\t\t\t$this->spec_id->ViewCustomAttributes = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->EditCustomAttributes = \"\";\n\t\t\tif ($this->model_id->getSessionValue() <> \"\") {\n\t\t\t\t$this->model_id->CurrentValue = $this->model_id->getSessionValue();\n\t\t\tif (strval($this->model_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->model_id->CurrentValue, EW_DATATYPE_NUMBER);\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->model_id->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->model_id->ViewValue = $this->model_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->model_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->model_id->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `model_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$sSqlWrk .= \" ORDER BY `model_name` ASC\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->model_id->EditValue = $arwrk;\n\t\t\t}\n\n\t\t\t// title\n\t\t\t$this->title->EditCustomAttributes = \"\";\n\t\t\t$this->title->EditValue = ew_HtmlEncode($this->title->CurrentValue);\n\n\t\t\t// description\n\t\t\t$this->description->EditCustomAttributes = \"\";\n\t\t\t$this->description->EditValue = ew_HtmlEncode($this->description->CurrentValue);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->EditCustomAttributes = \"\";\n\t\t\t$this->s_order->EditValue = ew_HtmlEncode($this->s_order->CurrentValue);\n\n\t\t\t// status\n\t\t\t$this->status->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->status->FldTagValue(1), $this->status->FldTagCaption(1) <> \"\" ? $this->status->FldTagCaption(1) : $this->status->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->status->FldTagValue(2), $this->status->FldTagCaption(2) <> \"\" ? $this->status->FldTagCaption(2) : $this->status->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->status->EditValue = $arwrk;\n\n\t\t\t// Edit refer script\n\t\t\t// spec_id\n\n\t\t\t$this->spec_id->HrefValue = \"\";\n\n\t\t\t// model_id\n\t\t\t$this->model_id->HrefValue = \"\";\n\n\t\t\t// title\n\t\t\t$this->title->HrefValue = \"\";\n\n\t\t\t// description\n\t\t\t$this->description->HrefValue = \"\";\n\n\t\t\t// s_order\n\t\t\t$this->s_order->HrefValue = \"\";\n\n\t\t\t// status\n\t\t\t$this->status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// fbid\n\t\t// name\n\t\t// email\n\t\t// password\n\t\t// validated_mobile\n\t\t// role_id\n\t\t// image\n\t\t// newsletter\n\t\t// points\n\t\t// last_modified\n\t\t// p2\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// id\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->ViewValue = $this->fbid->CurrentValue;\n\t\t\t$this->fbid->ViewCustomAttributes = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->ViewValue = $this->password->CurrentValue;\n\t\t\t$this->password->ViewCustomAttributes = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->ViewValue = $this->validated_mobile->CurrentValue;\n\t\t\t$this->validated_mobile->ViewCustomAttributes = \"\";\n\n\t\t\t// role_id\n\t\t\tif (strval($this->role_id->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($this->role_id->CurrentValue) {\n\t\t\t\t\tcase $this->role_id->FldTagValue(1):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase $this->role_id->FldTagValue(2):\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->CurrentValue;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$this->role_id->ViewValue = $this->role_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->role_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->role_id->ViewCustomAttributes = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->ViewValue = $this->image->CurrentValue;\n\t\t\t$this->image->ViewCustomAttributes = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->ViewValue = $this->newsletter->CurrentValue;\n\t\t\t$this->newsletter->ViewCustomAttributes = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->ViewValue = $this->points->CurrentValue;\n\t\t\t$this->points->ViewCustomAttributes = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->ViewValue = $this->last_modified->CurrentValue;\n\t\t\t$this->last_modified->ViewValue = ew_FormatDateTime($this->last_modified->ViewValue, 7);\n\t\t\t$this->last_modified->ViewCustomAttributes = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->ViewValue = $this->p2->CurrentValue;\n\t\t\t$this->p2->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->LinkCustomAttributes = \"\";\n\t\t\t$this->fbid->HrefValue = \"\";\n\t\t\t$this->fbid->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->LinkCustomAttributes = \"\";\n\t\t\t$this->password->HrefValue = \"\";\n\t\t\t$this->password->TooltipValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->LinkCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\t\t\t$this->validated_mobile->TooltipValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->LinkCustomAttributes = \"\";\n\t\t\t$this->role_id->HrefValue = \"\";\n\t\t\t$this->role_id->TooltipValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->LinkCustomAttributes = \"\";\n\t\t\t$this->image->HrefValue = \"\";\n\t\t\t$this->image->TooltipValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->LinkCustomAttributes = \"\";\n\t\t\t$this->newsletter->HrefValue = \"\";\n\t\t\t$this->newsletter->TooltipValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->LinkCustomAttributes = \"\";\n\t\t\t$this->points->HrefValue = \"\";\n\t\t\t$this->points->TooltipValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->LinkCustomAttributes = \"\";\n\t\t\t$this->last_modified->HrefValue = \"\";\n\t\t\t$this->last_modified->TooltipValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->LinkCustomAttributes = \"\";\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t\t$this->p2->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// id\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = $this->id->CurrentValue;\n\t\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->EditCustomAttributes = \"\";\n\t\t\t$this->fbid->EditValue = ew_HtmlEncode($this->fbid->CurrentValue);\n\n\t\t\t// name\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->CurrentValue);\n\n\t\t\t// email\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->CurrentValue);\n\n\t\t\t// password\n\t\t\t$this->password->EditCustomAttributes = \"\";\n\t\t\t$this->password->EditValue = ew_HtmlEncode($this->password->CurrentValue);\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->EditCustomAttributes = \"\";\n\t\t\t$this->validated_mobile->EditValue = ew_HtmlEncode($this->validated_mobile->CurrentValue);\n\n\t\t\t// role_id\n\t\t\t$this->role_id->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(1), $this->role_id->FldTagCaption(1) <> \"\" ? $this->role_id->FldTagCaption(1) : $this->role_id->FldTagValue(1));\n\t\t\t$arwrk[] = array($this->role_id->FldTagValue(2), $this->role_id->FldTagCaption(2) <> \"\" ? $this->role_id->FldTagCaption(2) : $this->role_id->FldTagValue(2));\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$this->role_id->EditValue = $arwrk;\n\n\t\t\t// image\n\t\t\t$this->image->EditCustomAttributes = \"\";\n\t\t\t$this->image->EditValue = ew_HtmlEncode($this->image->CurrentValue);\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->EditCustomAttributes = \"\";\n\t\t\t$this->newsletter->EditValue = ew_HtmlEncode($this->newsletter->CurrentValue);\n\n\t\t\t// points\n\t\t\t$this->points->EditCustomAttributes = \"\";\n\t\t\t$this->points->EditValue = ew_HtmlEncode($this->points->CurrentValue);\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->EditCustomAttributes = \"\";\n\t\t\t$this->last_modified->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->last_modified->CurrentValue, 7));\n\n\t\t\t// p2\n\t\t\t$this->p2->EditCustomAttributes = \"\";\n\t\t\t$this->p2->EditValue = ew_HtmlEncode($this->p2->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// id\n\n\t\t\t$this->id->HrefValue = \"\";\n\n\t\t\t// fbid\n\t\t\t$this->fbid->HrefValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->HrefValue = \"\";\n\n\t\t\t// password\n\t\t\t$this->password->HrefValue = \"\";\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->HrefValue = \"\";\n\n\t\t\t// role_id\n\t\t\t$this->role_id->HrefValue = \"\";\n\n\t\t\t// image\n\t\t\t$this->image->HrefValue = \"\";\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->HrefValue = \"\";\n\n\t\t\t// points\n\t\t\t$this->points->HrefValue = \"\";\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->HrefValue = \"\";\n\n\t\t\t// p2\n\t\t\t$this->p2->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function edit()\n\t{\n\t\t\n\t\t$sql = SqlQuery::getInstance();\n\t\t\n\t\t$tbl = new AbTable(\"SELECT u.first_name, u.last_name, u.zip, c.* FROM IBO_camp c JOIN user u ON u.id = c.user_id\",array('user_id'));\n\t\t\n\t\treturn $tbl->getHtml();\n\t\t\n\t\t\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id\r\n\t\t// Nama\r\n\t\t// Alamat\r\n\t\t// Jumlah\r\n\t\t// Provinsi\r\n\t\t// Area\r\n\t\t// CP\r\n\t\t// NoContact\r\n\t\t// Tanggal\r\n\t\t// Jam\r\n\t\t// Vechicle\r\n\t\t// Type\r\n\t\t// Site\r\n\t\t// Status\r\n\t\t// UserID\r\n\t\t// TglInput\r\n\t\t// visit\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// Id\r\n\t\t\t$this->Id->ViewValue = $this->Id->CurrentValue;\r\n\t\t\t$this->Id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->ViewValue = $this->Nama->CurrentValue;\r\n\t\t\t$this->Nama->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jumlah\r\n\t\t\t$this->Jumlah->ViewValue = $this->Jumlah->CurrentValue;\r\n\t\t\t$this->Jumlah->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\tif (strval($this->Provinsi->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Provinsi->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Provinsi->ViewValue = $this->Provinsi->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Provinsi->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Provinsi->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\tif (strval($this->Area->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->Area->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Area->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Area->ViewValue = $this->Area->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Area->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Area->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->ViewValue = $this->CP->CurrentValue;\r\n\t\t\t$this->CP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoContact\r\n\t\t\t$this->NoContact->ViewValue = $this->NoContact->CurrentValue;\r\n\t\t\t$this->NoContact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->ViewValue = $this->Tanggal->CurrentValue;\r\n\t\t\t$this->Tanggal->ViewValue = ew_FormatDateTime($this->Tanggal->ViewValue, 7);\r\n\t\t\t$this->Tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Jam\r\n\t\t\t$this->Jam->ViewValue = $this->Jam->CurrentValue;\r\n\t\t\t$this->Jam->ViewValue = ew_FormatDateTime($this->Jam->ViewValue, 4);\r\n\t\t\t$this->Jam->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\tif (strval($this->Vechicle->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Vechicle->CurrentValue) {\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Vechicle->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Vechicle->ViewValue = $this->Vechicle->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Vechicle->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Vechicle->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\tif (strval($this->Type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Id`\" . ew_SearchString(\"=\", $this->Type->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->Type->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\tif (strval($this->Site->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Site->CurrentValue) {\r\n\t\t\t\t\tcase $this->Site->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Site->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Site->ViewValue = $this->Site->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Site->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Site->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\tif (strval($this->Status->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->Status->CurrentValue) {\r\n\t\t\t\t\tcase $this->Status->FldTagValue(1):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->Status->FldTagValue(2):\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->Status->ViewValue = $this->Status->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Status->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// UserID\r\n\t\t\t$this->_UserID->ViewValue = $this->_UserID->CurrentValue;\r\n\t\t\t$this->_UserID->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// TglInput\r\n\t\t\t$this->TglInput->ViewValue = $this->TglInput->CurrentValue;\r\n\t\t\t$this->TglInput->ViewValue = ew_FormatDateTime($this->TglInput->ViewValue, 7);\r\n\t\t\t$this->TglInput->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\tif (strval($this->visit->CurrentValue) <> \"\") {\r\n\t\t\t\tswitch ($this->visit->CurrentValue) {\r\n\t\t\t\t\tcase $this->visit->FldTagValue(1):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase $this->visit->FldTagValue(2):\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->CurrentValue;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$this->visit->ViewValue = $this->visit->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->visit->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->visit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nama->HrefValue = \"\";\r\n\t\t\t$this->Nama->TooltipValue = \"\";\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Provinsi->HrefValue = \"\";\r\n\t\t\t$this->Provinsi->TooltipValue = \"\";\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Area->HrefValue = \"\";\r\n\t\t\t$this->Area->TooltipValue = \"\";\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CP->HrefValue = \"\";\r\n\t\t\t$this->CP->TooltipValue = \"\";\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->HrefValue = \"\";\r\n\t\t\t$this->Tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Vechicle->HrefValue = \"\";\r\n\t\t\t$this->Vechicle->TooltipValue = \"\";\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Type->HrefValue = \"\";\r\n\t\t\t$this->Type->TooltipValue = \"\";\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Site->HrefValue = \"\";\r\n\t\t\t$this->Site->TooltipValue = \"\";\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Status->HrefValue = \"\";\r\n\t\t\t$this->Status->TooltipValue = \"\";\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->visit->HrefValue = \"\";\r\n\t\t\t$this->visit->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Nama\r\n\t\t\t$this->Nama->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nama->EditValue = ew_HtmlEncode($this->Nama->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Nama->PlaceHolder = ew_RemoveHtml($this->Nama->FldCaption());\r\n\r\n\t\t\t// Provinsi\r\n\t\t\t$this->Provinsi->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `NamaProv` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `provinsi`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Provinsi, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Provinsi->EditValue = $arwrk;\r\n\r\n\t\t\t// Area\r\n\t\t\t$this->Area->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `Kota` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Prov` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `kota`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Area, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Area->EditValue = $arwrk;\r\n\r\n\t\t\t// CP\r\n\t\t\t$this->CP->EditCustomAttributes = \"\";\r\n\t\t\t$this->CP->EditValue = ew_HtmlEncode($this->CP->AdvancedSearch->SearchValue);\r\n\t\t\t$this->CP->PlaceHolder = ew_RemoveHtml($this->CP->FldCaption());\r\n\r\n\t\t\t// Tanggal\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\t\t\t$this->Tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tanggal->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Tanggal->AdvancedSearch->SearchValue2, 7), 7));\r\n\t\t\t$this->Tanggal->PlaceHolder = ew_RemoveHtml($this->Tanggal->FldCaption());\r\n\r\n\t\t\t// Vechicle\r\n\t\t\t$this->Vechicle->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(1), $this->Vechicle->FldTagCaption(1) <> \"\" ? $this->Vechicle->FldTagCaption(1) : $this->Vechicle->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Vechicle->FldTagValue(2), $this->Vechicle->FldTagCaption(2) <> \"\" ? $this->Vechicle->FldTagCaption(2) : $this->Vechicle->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Vechicle->EditValue = $arwrk;\r\n\r\n\t\t\t// Type\r\n\t\t\t$this->Type->EditCustomAttributes = \"\";\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Id`, `Description` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `typepengunjung`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Type, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Type->EditValue = $arwrk;\r\n\r\n\t\t\t// Site\r\n\t\t\t$this->Site->EditCustomAttributes = \"\";\r\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn() && !$this->UserIDAllow(\"search\")) { // Non system admin\r\n\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sFilterWrk = $GLOBALS[\"user\"]->AddUserIDFilter(\"\");\r\n\t\t\t$sSqlWrk = \"SELECT `site`, `site` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `user`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\r\n\t\t\t// Call Lookup selecting\r\n\t\t\t$this->Lookup_Selecting($this->Site, $sWhereWrk);\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t} else {\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(1), $this->Site->FldTagCaption(1) <> \"\" ? $this->Site->FldTagCaption(1) : $this->Site->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Site->FldTagValue(2), $this->Site->FldTagCaption(2) <> \"\" ? $this->Site->FldTagCaption(2) : $this->Site->FldTagValue(2));\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\r\n\t\t\t$this->Site->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// Status\r\n\t\t\t$this->Status->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(1), $this->Status->FldTagCaption(1) <> \"\" ? $this->Status->FldTagCaption(1) : $this->Status->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->Status->FldTagValue(2), $this->Status->FldTagCaption(2) <> \"\" ? $this->Status->FldTagCaption(2) : $this->Status->FldTagValue(2));\r\n\t\t\t$this->Status->EditValue = $arwrk;\r\n\r\n\t\t\t// visit\r\n\t\t\t$this->visit->EditCustomAttributes = \"\";\r\n\t\t\t$arwrk = array();\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(1), $this->visit->FldTagCaption(1) <> \"\" ? $this->visit->FldTagCaption(1) : $this->visit->FldTagValue(1));\r\n\t\t\t$arwrk[] = array($this->visit->FldTagValue(2), $this->visit->FldTagCaption(2) <> \"\" ? $this->visit->FldTagCaption(2) : $this->visit->FldTagValue(2));\r\n\t\t\t$this->visit->EditValue = $arwrk;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// idfb_posts\r\n\t\t// id\r\n\t\t// created_time\r\n\t\t// actions\r\n\t\t// icon\r\n\t\t// is_published\r\n\t\t// message\r\n\t\t// link\r\n\t\t// object_id\r\n\t\t// picture\r\n\t\t// privacy\r\n\t\t// promotion_status\r\n\t\t// timeline_visibility\r\n\t\t// type\r\n\t\t// updated_time\r\n\t\t// caption\r\n\t\t// description\r\n\t\t// name\r\n\t\t// source\r\n\t\t// from\r\n\t\t// to\r\n\t\t// comments\r\n\t\t// id_grupo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// idfb_posts\r\n\t\t\t$this->idfb_posts->ViewValue = $this->idfb_posts->CurrentValue;\r\n\t\t\t$this->idfb_posts->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->ViewValue = $this->created_time->CurrentValue;\r\n\t\t\t$this->created_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// actions\r\n\t\t\t$this->actions->ViewValue = $this->actions->CurrentValue;\r\n\t\t\t$this->actions->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// icon\r\n\t\t\t$this->icon->ViewValue = $this->icon->CurrentValue;\r\n\t\t\t$this->icon->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// is_published\r\n\t\t\t$this->is_published->ViewValue = $this->is_published->CurrentValue;\r\n\t\t\t$this->is_published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->ViewValue = $this->message->CurrentValue;\r\n\t\t\t$this->message->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->ViewValue = $this->link->CurrentValue;\r\n\t\t\t$this->link->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// object_id\r\n\t\t\t$this->object_id->ViewValue = $this->object_id->CurrentValue;\r\n\t\t\t$this->object_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// picture\r\n\t\t\t$this->picture->ViewValue = $this->picture->CurrentValue;\r\n\t\t\t$this->picture->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// privacy\r\n\t\t\t$this->privacy->ViewValue = $this->privacy->CurrentValue;\r\n\t\t\t$this->privacy->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// promotion_status\r\n\t\t\t$this->promotion_status->ViewValue = $this->promotion_status->CurrentValue;\r\n\t\t\t$this->promotion_status->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// timeline_visibility\r\n\t\t\t$this->timeline_visibility->ViewValue = $this->timeline_visibility->CurrentValue;\r\n\t\t\t$this->timeline_visibility->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->ViewValue = $this->type->CurrentValue;\r\n\t\t\t$this->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated_time\r\n\t\t\t$this->updated_time->ViewValue = $this->updated_time->CurrentValue;\r\n\t\t\t$this->updated_time->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->ViewValue = $this->caption->CurrentValue;\r\n\t\t\t$this->caption->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->ViewValue = $this->description->CurrentValue;\r\n\t\t\t$this->description->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->ViewValue = $this->name->CurrentValue;\r\n\t\t\t$this->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->ViewValue = $this->source->CurrentValue;\r\n\t\t\t$this->source->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->ViewValue = $this->from->CurrentValue;\r\n\t\t\t$this->from->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// to\r\n\t\t\t$this->to->ViewValue = $this->to->CurrentValue;\r\n\t\t\t$this->to->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id_grupo\r\n\t\t\t$this->id_grupo->ViewValue = $this->id_grupo->CurrentValue;\r\n\t\t\t$this->id_grupo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// created_time\r\n\t\t\t$this->created_time->LinkCustomAttributes = \"\";\r\n\t\t\t$this->created_time->HrefValue = \"\";\r\n\t\t\t$this->created_time->TooltipValue = \"\";\r\n\r\n\t\t\t// message\r\n\t\t\t$this->message->LinkCustomAttributes = \"\";\r\n\t\t\t$this->message->HrefValue = \"\";\r\n\t\t\t$this->message->TooltipValue = \"\";\r\n\r\n\t\t\t// link\r\n\t\t\t$this->link->LinkCustomAttributes = \"\";\r\n\t\t\t$this->link->HrefValue = \"\";\r\n\t\t\t$this->link->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$this->type->LinkCustomAttributes = \"\";\r\n\t\t\t$this->type->HrefValue = \"\";\r\n\t\t\t$this->type->TooltipValue = \"\";\r\n\r\n\t\t\t// caption\r\n\t\t\t$this->caption->LinkCustomAttributes = \"\";\r\n\t\t\t$this->caption->HrefValue = \"\";\r\n\t\t\t$this->caption->TooltipValue = \"\";\r\n\r\n\t\t\t// description\r\n\t\t\t$this->description->LinkCustomAttributes = \"\";\r\n\t\t\t$this->description->HrefValue = \"\";\r\n\t\t\t$this->description->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$this->name->LinkCustomAttributes = \"\";\r\n\t\t\t$this->name->HrefValue = \"\";\r\n\t\t\t$this->name->TooltipValue = \"\";\r\n\r\n\t\t\t// source\r\n\t\t\t$this->source->LinkCustomAttributes = \"\";\r\n\t\t\t$this->source->HrefValue = \"\";\r\n\t\t\t$this->source->TooltipValue = \"\";\r\n\r\n\t\t\t// from\r\n\t\t\t$this->from->LinkCustomAttributes = \"\";\r\n\t\t\t$this->from->HrefValue = \"\";\r\n\t\t\t$this->from->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->late->FormValue == $this->late->CurrentValue && is_numeric(ew_StrToFloat($this->late->CurrentValue)))\n\t\t\t$this->late->CurrentValue = ew_StrToFloat($this->late->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break->FormValue == $this->break->CurrentValue && is_numeric(ew_StrToFloat($this->break->CurrentValue)))\n\t\t\t$this->break->CurrentValue = ew_StrToFloat($this->break->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->break_ot->FormValue == $this->break_ot->CurrentValue && is_numeric(ew_StrToFloat($this->break_ot->CurrentValue)))\n\t\t\t$this->break_ot->CurrentValue = ew_StrToFloat($this->break_ot->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->early->FormValue == $this->early->CurrentValue && is_numeric(ew_StrToFloat($this->early->CurrentValue)))\n\t\t\t$this->early->CurrentValue = ew_StrToFloat($this->early->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->durasi->FormValue == $this->durasi->CurrentValue && is_numeric(ew_StrToFloat($this->durasi->CurrentValue)))\n\t\t\t$this->durasi->CurrentValue = ew_StrToFloat($this->durasi->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->jk_count_as->FormValue == $this->jk_count_as->CurrentValue && is_numeric(ew_StrToFloat($this->jk_count_as->CurrentValue)))\n\t\t\t$this->jk_count_as->CurrentValue = ew_StrToFloat($this->jk_count_as->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// pegawai_id\n\t\t// tgl_shift\n\t\t// khusus_lembur\n\t\t// khusus_extra\n\t\t// temp_id_auto\n\t\t// jdw_kerja_m_id\n\t\t// jk_id\n\t\t// jns_dok\n\t\t// izin_jenis_id\n\t\t// cuti_n_id\n\t\t// libur_umum\n\t\t// libur_rutin\n\t\t// jk_ot\n\t\t// scan_in\n\t\t// att_id_in\n\t\t// late_permission\n\t\t// late_minute\n\t\t// late\n\t\t// break_out\n\t\t// att_id_break1\n\t\t// break_in\n\t\t// att_id_break2\n\t\t// break_minute\n\t\t// break\n\t\t// break_ot_minute\n\t\t// break_ot\n\t\t// early_permission\n\t\t// early_minute\n\t\t// early\n\t\t// scan_out\n\t\t// att_id_out\n\t\t// durasi_minute\n\t\t// durasi\n\t\t// durasi_eot_minute\n\t\t// jk_count_as\n\t\t// status_jk\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// pegawai_id\n\t\t$this->pegawai_id->ViewValue = $this->pegawai_id->CurrentValue;\n\t\t$this->pegawai_id->ViewCustomAttributes = \"\";\n\n\t\t// tgl_shift\n\t\t$this->tgl_shift->ViewValue = $this->tgl_shift->CurrentValue;\n\t\t$this->tgl_shift->ViewValue = ew_FormatDateTime($this->tgl_shift->ViewValue, 0);\n\t\t$this->tgl_shift->ViewCustomAttributes = \"\";\n\n\t\t// khusus_lembur\n\t\t$this->khusus_lembur->ViewValue = $this->khusus_lembur->CurrentValue;\n\t\t$this->khusus_lembur->ViewCustomAttributes = \"\";\n\n\t\t// khusus_extra\n\t\t$this->khusus_extra->ViewValue = $this->khusus_extra->CurrentValue;\n\t\t$this->khusus_extra->ViewCustomAttributes = \"\";\n\n\t\t// temp_id_auto\n\t\t$this->temp_id_auto->ViewValue = $this->temp_id_auto->CurrentValue;\n\t\t$this->temp_id_auto->ViewCustomAttributes = \"\";\n\n\t\t// jdw_kerja_m_id\n\t\t$this->jdw_kerja_m_id->ViewValue = $this->jdw_kerja_m_id->CurrentValue;\n\t\t$this->jdw_kerja_m_id->ViewCustomAttributes = \"\";\n\n\t\t// jk_id\n\t\t$this->jk_id->ViewValue = $this->jk_id->CurrentValue;\n\t\t$this->jk_id->ViewCustomAttributes = \"\";\n\n\t\t// jns_dok\n\t\t$this->jns_dok->ViewValue = $this->jns_dok->CurrentValue;\n\t\t$this->jns_dok->ViewCustomAttributes = \"\";\n\n\t\t// izin_jenis_id\n\t\t$this->izin_jenis_id->ViewValue = $this->izin_jenis_id->CurrentValue;\n\t\t$this->izin_jenis_id->ViewCustomAttributes = \"\";\n\n\t\t// cuti_n_id\n\t\t$this->cuti_n_id->ViewValue = $this->cuti_n_id->CurrentValue;\n\t\t$this->cuti_n_id->ViewCustomAttributes = \"\";\n\n\t\t// libur_umum\n\t\t$this->libur_umum->ViewValue = $this->libur_umum->CurrentValue;\n\t\t$this->libur_umum->ViewCustomAttributes = \"\";\n\n\t\t// libur_rutin\n\t\t$this->libur_rutin->ViewValue = $this->libur_rutin->CurrentValue;\n\t\t$this->libur_rutin->ViewCustomAttributes = \"\";\n\n\t\t// jk_ot\n\t\t$this->jk_ot->ViewValue = $this->jk_ot->CurrentValue;\n\t\t$this->jk_ot->ViewCustomAttributes = \"\";\n\n\t\t// scan_in\n\t\t$this->scan_in->ViewValue = $this->scan_in->CurrentValue;\n\t\t$this->scan_in->ViewValue = ew_FormatDateTime($this->scan_in->ViewValue, 0);\n\t\t$this->scan_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_in\n\t\t$this->att_id_in->ViewValue = $this->att_id_in->CurrentValue;\n\t\t$this->att_id_in->ViewCustomAttributes = \"\";\n\n\t\t// late_permission\n\t\t$this->late_permission->ViewValue = $this->late_permission->CurrentValue;\n\t\t$this->late_permission->ViewCustomAttributes = \"\";\n\n\t\t// late_minute\n\t\t$this->late_minute->ViewValue = $this->late_minute->CurrentValue;\n\t\t$this->late_minute->ViewCustomAttributes = \"\";\n\n\t\t// late\n\t\t$this->late->ViewValue = $this->late->CurrentValue;\n\t\t$this->late->ViewCustomAttributes = \"\";\n\n\t\t// break_out\n\t\t$this->break_out->ViewValue = $this->break_out->CurrentValue;\n\t\t$this->break_out->ViewValue = ew_FormatDateTime($this->break_out->ViewValue, 0);\n\t\t$this->break_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break1\n\t\t$this->att_id_break1->ViewValue = $this->att_id_break1->CurrentValue;\n\t\t$this->att_id_break1->ViewCustomAttributes = \"\";\n\n\t\t// break_in\n\t\t$this->break_in->ViewValue = $this->break_in->CurrentValue;\n\t\t$this->break_in->ViewValue = ew_FormatDateTime($this->break_in->ViewValue, 0);\n\t\t$this->break_in->ViewCustomAttributes = \"\";\n\n\t\t// att_id_break2\n\t\t$this->att_id_break2->ViewValue = $this->att_id_break2->CurrentValue;\n\t\t$this->att_id_break2->ViewCustomAttributes = \"\";\n\n\t\t// break_minute\n\t\t$this->break_minute->ViewValue = $this->break_minute->CurrentValue;\n\t\t$this->break_minute->ViewCustomAttributes = \"\";\n\n\t\t// break\n\t\t$this->break->ViewValue = $this->break->CurrentValue;\n\t\t$this->break->ViewCustomAttributes = \"\";\n\n\t\t// break_ot_minute\n\t\t$this->break_ot_minute->ViewValue = $this->break_ot_minute->CurrentValue;\n\t\t$this->break_ot_minute->ViewCustomAttributes = \"\";\n\n\t\t// break_ot\n\t\t$this->break_ot->ViewValue = $this->break_ot->CurrentValue;\n\t\t$this->break_ot->ViewCustomAttributes = \"\";\n\n\t\t// early_permission\n\t\t$this->early_permission->ViewValue = $this->early_permission->CurrentValue;\n\t\t$this->early_permission->ViewCustomAttributes = \"\";\n\n\t\t// early_minute\n\t\t$this->early_minute->ViewValue = $this->early_minute->CurrentValue;\n\t\t$this->early_minute->ViewCustomAttributes = \"\";\n\n\t\t// early\n\t\t$this->early->ViewValue = $this->early->CurrentValue;\n\t\t$this->early->ViewCustomAttributes = \"\";\n\n\t\t// scan_out\n\t\t$this->scan_out->ViewValue = $this->scan_out->CurrentValue;\n\t\t$this->scan_out->ViewValue = ew_FormatDateTime($this->scan_out->ViewValue, 0);\n\t\t$this->scan_out->ViewCustomAttributes = \"\";\n\n\t\t// att_id_out\n\t\t$this->att_id_out->ViewValue = $this->att_id_out->CurrentValue;\n\t\t$this->att_id_out->ViewCustomAttributes = \"\";\n\n\t\t// durasi_minute\n\t\t$this->durasi_minute->ViewValue = $this->durasi_minute->CurrentValue;\n\t\t$this->durasi_minute->ViewCustomAttributes = \"\";\n\n\t\t// durasi\n\t\t$this->durasi->ViewValue = $this->durasi->CurrentValue;\n\t\t$this->durasi->ViewCustomAttributes = \"\";\n\n\t\t// durasi_eot_minute\n\t\t$this->durasi_eot_minute->ViewValue = $this->durasi_eot_minute->CurrentValue;\n\t\t$this->durasi_eot_minute->ViewCustomAttributes = \"\";\n\n\t\t// jk_count_as\n\t\t$this->jk_count_as->ViewValue = $this->jk_count_as->CurrentValue;\n\t\t$this->jk_count_as->ViewCustomAttributes = \"\";\n\n\t\t// status_jk\n\t\t$this->status_jk->ViewValue = $this->status_jk->CurrentValue;\n\t\t$this->status_jk->ViewCustomAttributes = \"\";\n\n\t\t\t// pegawai_id\n\t\t\t$this->pegawai_id->LinkCustomAttributes = \"\";\n\t\t\t$this->pegawai_id->HrefValue = \"\";\n\t\t\t$this->pegawai_id->TooltipValue = \"\";\n\n\t\t\t// tgl_shift\n\t\t\t$this->tgl_shift->LinkCustomAttributes = \"\";\n\t\t\t$this->tgl_shift->HrefValue = \"\";\n\t\t\t$this->tgl_shift->TooltipValue = \"\";\n\n\t\t\t// khusus_lembur\n\t\t\t$this->khusus_lembur->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_lembur->HrefValue = \"\";\n\t\t\t$this->khusus_lembur->TooltipValue = \"\";\n\n\t\t\t// khusus_extra\n\t\t\t$this->khusus_extra->LinkCustomAttributes = \"\";\n\t\t\t$this->khusus_extra->HrefValue = \"\";\n\t\t\t$this->khusus_extra->TooltipValue = \"\";\n\n\t\t\t// temp_id_auto\n\t\t\t$this->temp_id_auto->LinkCustomAttributes = \"\";\n\t\t\t$this->temp_id_auto->HrefValue = \"\";\n\t\t\t$this->temp_id_auto->TooltipValue = \"\";\n\n\t\t\t// jdw_kerja_m_id\n\t\t\t$this->jdw_kerja_m_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jdw_kerja_m_id->HrefValue = \"\";\n\t\t\t$this->jdw_kerja_m_id->TooltipValue = \"\";\n\n\t\t\t// jk_id\n\t\t\t$this->jk_id->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_id->HrefValue = \"\";\n\t\t\t$this->jk_id->TooltipValue = \"\";\n\n\t\t\t// jns_dok\n\t\t\t$this->jns_dok->LinkCustomAttributes = \"\";\n\t\t\t$this->jns_dok->HrefValue = \"\";\n\t\t\t$this->jns_dok->TooltipValue = \"\";\n\n\t\t\t// izin_jenis_id\n\t\t\t$this->izin_jenis_id->LinkCustomAttributes = \"\";\n\t\t\t$this->izin_jenis_id->HrefValue = \"\";\n\t\t\t$this->izin_jenis_id->TooltipValue = \"\";\n\n\t\t\t// cuti_n_id\n\t\t\t$this->cuti_n_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cuti_n_id->HrefValue = \"\";\n\t\t\t$this->cuti_n_id->TooltipValue = \"\";\n\n\t\t\t// libur_umum\n\t\t\t$this->libur_umum->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_umum->HrefValue = \"\";\n\t\t\t$this->libur_umum->TooltipValue = \"\";\n\n\t\t\t// libur_rutin\n\t\t\t$this->libur_rutin->LinkCustomAttributes = \"\";\n\t\t\t$this->libur_rutin->HrefValue = \"\";\n\t\t\t$this->libur_rutin->TooltipValue = \"\";\n\n\t\t\t// jk_ot\n\t\t\t$this->jk_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_ot->HrefValue = \"\";\n\t\t\t$this->jk_ot->TooltipValue = \"\";\n\n\t\t\t// scan_in\n\t\t\t$this->scan_in->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_in->HrefValue = \"\";\n\t\t\t$this->scan_in->TooltipValue = \"\";\n\n\t\t\t// att_id_in\n\t\t\t$this->att_id_in->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_in->HrefValue = \"\";\n\t\t\t$this->att_id_in->TooltipValue = \"\";\n\n\t\t\t// late_permission\n\t\t\t$this->late_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->late_permission->HrefValue = \"\";\n\t\t\t$this->late_permission->TooltipValue = \"\";\n\n\t\t\t// late_minute\n\t\t\t$this->late_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->late_minute->HrefValue = \"\";\n\t\t\t$this->late_minute->TooltipValue = \"\";\n\n\t\t\t// late\n\t\t\t$this->late->LinkCustomAttributes = \"\";\n\t\t\t$this->late->HrefValue = \"\";\n\t\t\t$this->late->TooltipValue = \"\";\n\n\t\t\t// break_out\n\t\t\t$this->break_out->LinkCustomAttributes = \"\";\n\t\t\t$this->break_out->HrefValue = \"\";\n\t\t\t$this->break_out->TooltipValue = \"\";\n\n\t\t\t// att_id_break1\n\t\t\t$this->att_id_break1->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break1->HrefValue = \"\";\n\t\t\t$this->att_id_break1->TooltipValue = \"\";\n\n\t\t\t// break_in\n\t\t\t$this->break_in->LinkCustomAttributes = \"\";\n\t\t\t$this->break_in->HrefValue = \"\";\n\t\t\t$this->break_in->TooltipValue = \"\";\n\n\t\t\t// att_id_break2\n\t\t\t$this->att_id_break2->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_break2->HrefValue = \"\";\n\t\t\t$this->att_id_break2->TooltipValue = \"\";\n\n\t\t\t// break_minute\n\t\t\t$this->break_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_minute->HrefValue = \"\";\n\t\t\t$this->break_minute->TooltipValue = \"\";\n\n\t\t\t// break\n\t\t\t$this->break->LinkCustomAttributes = \"\";\n\t\t\t$this->break->HrefValue = \"\";\n\t\t\t$this->break->TooltipValue = \"\";\n\n\t\t\t// break_ot_minute\n\t\t\t$this->break_ot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot_minute->HrefValue = \"\";\n\t\t\t$this->break_ot_minute->TooltipValue = \"\";\n\n\t\t\t// break_ot\n\t\t\t$this->break_ot->LinkCustomAttributes = \"\";\n\t\t\t$this->break_ot->HrefValue = \"\";\n\t\t\t$this->break_ot->TooltipValue = \"\";\n\n\t\t\t// early_permission\n\t\t\t$this->early_permission->LinkCustomAttributes = \"\";\n\t\t\t$this->early_permission->HrefValue = \"\";\n\t\t\t$this->early_permission->TooltipValue = \"\";\n\n\t\t\t// early_minute\n\t\t\t$this->early_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->early_minute->HrefValue = \"\";\n\t\t\t$this->early_minute->TooltipValue = \"\";\n\n\t\t\t// early\n\t\t\t$this->early->LinkCustomAttributes = \"\";\n\t\t\t$this->early->HrefValue = \"\";\n\t\t\t$this->early->TooltipValue = \"\";\n\n\t\t\t// scan_out\n\t\t\t$this->scan_out->LinkCustomAttributes = \"\";\n\t\t\t$this->scan_out->HrefValue = \"\";\n\t\t\t$this->scan_out->TooltipValue = \"\";\n\n\t\t\t// att_id_out\n\t\t\t$this->att_id_out->LinkCustomAttributes = \"\";\n\t\t\t$this->att_id_out->HrefValue = \"\";\n\t\t\t$this->att_id_out->TooltipValue = \"\";\n\n\t\t\t// durasi_minute\n\t\t\t$this->durasi_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_minute->HrefValue = \"\";\n\t\t\t$this->durasi_minute->TooltipValue = \"\";\n\n\t\t\t// durasi\n\t\t\t$this->durasi->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi->HrefValue = \"\";\n\t\t\t$this->durasi->TooltipValue = \"\";\n\n\t\t\t// durasi_eot_minute\n\t\t\t$this->durasi_eot_minute->LinkCustomAttributes = \"\";\n\t\t\t$this->durasi_eot_minute->HrefValue = \"\";\n\t\t\t$this->durasi_eot_minute->TooltipValue = \"\";\n\n\t\t\t// jk_count_as\n\t\t\t$this->jk_count_as->LinkCustomAttributes = \"\";\n\t\t\t$this->jk_count_as->HrefValue = \"\";\n\t\t\t$this->jk_count_as->TooltipValue = \"\";\n\n\t\t\t// status_jk\n\t\t\t$this->status_jk->LinkCustomAttributes = \"\";\n\t\t\t$this->status_jk->HrefValue = \"\";\n\t\t\t$this->status_jk->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Balance->FormValue == $this->Balance->CurrentValue && is_numeric(ew_StrToFloat($this->Balance->CurrentValue)))\n\t\t\t$this->Balance->CurrentValue = ew_StrToFloat($this->Balance->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Supplier_ID\n\t\t// Supplier_Number\n\t\t// Supplier_Name\n\t\t// Address\n\t\t// City\n\t\t// Country\n\t\t// Contact_Person\n\t\t// Phone_Number\n\t\t// Email\n\t\t// Mobile_Number\n\t\t// Notes\n\t\t// Balance\n\t\t// Is_Stock_Available\n\t\t// Date_Added\n\t\t// Added_By\n\t\t// Date_Updated\n\t\t// Updated_By\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Supplier_ID\n\t\t$this->Supplier_ID->ViewValue = $this->Supplier_ID->CurrentValue;\n\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Number\n\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t// Supplier_Name\n\t\t$this->Supplier_Name->ViewValue = $this->Supplier_Name->CurrentValue;\n\t\t$this->Supplier_Name->ViewCustomAttributes = \"\";\n\n\t\t// Address\n\t\t$this->Address->ViewValue = $this->Address->CurrentValue;\n\t\t$this->Address->ViewCustomAttributes = \"\";\n\n\t\t// City\n\t\t$this->City->ViewValue = $this->City->CurrentValue;\n\t\t$this->City->ViewCustomAttributes = \"\";\n\n\t\t// Country\n\t\t$this->Country->ViewValue = $this->Country->CurrentValue;\n\t\t$this->Country->ViewCustomAttributes = \"\";\n\n\t\t// Contact_Person\n\t\t$this->Contact_Person->ViewValue = $this->Contact_Person->CurrentValue;\n\t\t$this->Contact_Person->ViewCustomAttributes = \"\";\n\n\t\t// Phone_Number\n\t\t$this->Phone_Number->ViewValue = $this->Phone_Number->CurrentValue;\n\t\t$this->Phone_Number->ViewCustomAttributes = \"\";\n\n\t\t// Email\n\t\t$this->_Email->ViewValue = $this->_Email->CurrentValue;\n\t\t$this->_Email->ViewCustomAttributes = \"\";\n\n\t\t// Mobile_Number\n\t\t$this->Mobile_Number->ViewValue = $this->Mobile_Number->CurrentValue;\n\t\t$this->Mobile_Number->ViewCustomAttributes = \"\";\n\n\t\t// Notes\n\t\t$this->Notes->ViewValue = $this->Notes->CurrentValue;\n\t\t$this->Notes->ViewCustomAttributes = \"\";\n\n\t\t// Balance\n\t\t$this->Balance->ViewValue = $this->Balance->CurrentValue;\n\t\t$this->Balance->ViewValue = ew_FormatCurrency($this->Balance->ViewValue, 2, -2, -2, -2);\n\t\t$this->Balance->CellCssStyle .= \"text-align: right;\";\n\t\t$this->Balance->ViewCustomAttributes = \"\";\n\n\t\t// Is_Stock_Available\n\t\tif (ew_ConvertToBool($this->Is_Stock_Available->CurrentValue)) {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(2) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(2) : \"Y\";\n\t\t} else {\n\t\t\t$this->Is_Stock_Available->ViewValue = $this->Is_Stock_Available->FldTagCaption(1) <> \"\" ? $this->Is_Stock_Available->FldTagCaption(1) : \"N\";\n\t\t}\n\t\t$this->Is_Stock_Available->ViewCustomAttributes = \"\";\n\n\t\t// Date_Added\n\t\t$this->Date_Added->ViewValue = $this->Date_Added->CurrentValue;\n\t\t$this->Date_Added->ViewCustomAttributes = \"\";\n\n\t\t// Added_By\n\t\t$this->Added_By->ViewValue = $this->Added_By->CurrentValue;\n\t\t$this->Added_By->ViewCustomAttributes = \"\";\n\n\t\t// Date_Updated\n\t\t$this->Date_Updated->ViewValue = $this->Date_Updated->CurrentValue;\n\t\t$this->Date_Updated->ViewCustomAttributes = \"\";\n\n\t\t// Updated_By\n\t\t$this->Updated_By->ViewValue = $this->Updated_By->CurrentValue;\n\t\t$this->Updated_By->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\t\t\t$this->Supplier_ID->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\t\t\t$this->Supplier_Name->TooltipValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\t\t\t$this->Address->TooltipValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\t\t\t$this->City->TooltipValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\t\t\t$this->Country->TooltipValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\t\t\t$this->Contact_Person->TooltipValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\t\t\t$this->Phone_Number->TooltipValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\t\t\t$this->_Email->TooltipValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\t\t\t$this->Mobile_Number->TooltipValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\t\t\t$this->Notes->TooltipValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\t\t\t$this->Balance->TooltipValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\t\t\t$this->Is_Stock_Available->TooltipValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\t\t\t$this->Date_Added->TooltipValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\t\t\t$this->Added_By->TooltipValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\t\t\t$this->Date_Updated->TooltipValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t\t$this->Updated_By->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// Supplier_ID\n\t\t\t$this->Supplier_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->EditValue = $this->Supplier_ID->CurrentValue;\n\t\t\t$this->Supplier_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->EditValue = ew_HtmlEncode($this->Supplier_Number->CurrentValue);\n\t\t\t$this->Supplier_Number->PlaceHolder = ew_RemoveHtml($this->Supplier_Number->FldCaption());\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Name->EditCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->EditValue = ew_HtmlEncode($this->Supplier_Name->CurrentValue);\n\t\t\t$this->Supplier_Name->PlaceHolder = ew_RemoveHtml($this->Supplier_Name->FldCaption());\n\n\t\t\t// Address\n\t\t\t$this->Address->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Address->EditCustomAttributes = \"\";\n\t\t\t$this->Address->EditValue = ew_HtmlEncode($this->Address->CurrentValue);\n\t\t\t$this->Address->PlaceHolder = ew_RemoveHtml($this->Address->FldCaption());\n\n\t\t\t// City\n\t\t\t$this->City->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->City->EditCustomAttributes = \"\";\n\t\t\t$this->City->EditValue = ew_HtmlEncode($this->City->CurrentValue);\n\t\t\t$this->City->PlaceHolder = ew_RemoveHtml($this->City->FldCaption());\n\n\t\t\t// Country\n\t\t\t$this->Country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Country->EditCustomAttributes = \"\";\n\t\t\t$this->Country->EditValue = ew_HtmlEncode($this->Country->CurrentValue);\n\t\t\t$this->Country->PlaceHolder = ew_RemoveHtml($this->Country->FldCaption());\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Contact_Person->EditCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->EditValue = ew_HtmlEncode($this->Contact_Person->CurrentValue);\n\t\t\t$this->Contact_Person->PlaceHolder = ew_RemoveHtml($this->Contact_Person->FldCaption());\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Phone_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->EditValue = ew_HtmlEncode($this->Phone_Number->CurrentValue);\n\t\t\t$this->Phone_Number->PlaceHolder = ew_RemoveHtml($this->Phone_Number->FldCaption());\n\n\t\t\t// Email\n\t\t\t$this->_Email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_Email->EditCustomAttributes = \"\";\n\t\t\t$this->_Email->EditValue = ew_HtmlEncode($this->_Email->CurrentValue);\n\t\t\t$this->_Email->PlaceHolder = ew_RemoveHtml($this->_Email->FldCaption());\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Mobile_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->EditValue = ew_HtmlEncode($this->Mobile_Number->CurrentValue);\n\t\t\t$this->Mobile_Number->PlaceHolder = ew_RemoveHtml($this->Mobile_Number->FldCaption());\n\n\t\t\t// Notes\n\t\t\t$this->Notes->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Notes->EditCustomAttributes = \"\";\n\t\t\t$this->Notes->EditValue = ew_HtmlEncode($this->Notes->CurrentValue);\n\t\t\t$this->Notes->PlaceHolder = ew_RemoveHtml($this->Notes->FldCaption());\n\n\t\t\t// Balance\n\t\t\t$this->Balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Balance->EditCustomAttributes = \"\";\n\t\t\t$this->Balance->EditValue = ew_HtmlEncode($this->Balance->CurrentValue);\n\t\t\t$this->Balance->PlaceHolder = ew_RemoveHtml($this->Balance->FldCaption());\n\t\t\tif (strval($this->Balance->EditValue) <> \"\" && is_numeric($this->Balance->EditValue)) $this->Balance->EditValue = ew_FormatNumber($this->Balance->EditValue, -2, -2, -2, -2);\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Is_Stock_Available->EditCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->EditValue = $this->Is_Stock_Available->Options(TRUE);\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Date_Added->EditCustomAttributes = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Added_By->EditCustomAttributes = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t// Updated_By\n\t\t\t// Edit refer script\n\t\t\t// Supplier_ID\n\n\t\t\t$this->Supplier_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_ID->HrefValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Name->HrefValue = \"\";\n\n\t\t\t// Address\n\t\t\t$this->Address->LinkCustomAttributes = \"\";\n\t\t\t$this->Address->HrefValue = \"\";\n\n\t\t\t// City\n\t\t\t$this->City->LinkCustomAttributes = \"\";\n\t\t\t$this->City->HrefValue = \"\";\n\n\t\t\t// Country\n\t\t\t$this->Country->LinkCustomAttributes = \"\";\n\t\t\t$this->Country->HrefValue = \"\";\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->LinkCustomAttributes = \"\";\n\t\t\t$this->Contact_Person->HrefValue = \"\";\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Phone_Number->HrefValue = \"\";\n\n\t\t\t// Email\n\t\t\t$this->_Email->LinkCustomAttributes = \"\";\n\t\t\t$this->_Email->HrefValue = \"\";\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Mobile_Number->HrefValue = \"\";\n\n\t\t\t// Notes\n\t\t\t$this->Notes->LinkCustomAttributes = \"\";\n\t\t\t$this->Notes->HrefValue = \"\";\n\n\t\t\t// Balance\n\t\t\t$this->Balance->LinkCustomAttributes = \"\";\n\t\t\t$this->Balance->HrefValue = \"\";\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->LinkCustomAttributes = \"\";\n\t\t\t$this->Is_Stock_Available->HrefValue = \"\";\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Added->HrefValue = \"\";\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Added_By->HrefValue = \"\";\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->LinkCustomAttributes = \"\";\n\t\t\t$this->Date_Updated->HrefValue = \"\";\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->LinkCustomAttributes = \"\";\n\t\t\t$this->Updated_By->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function renderEditModalHTML()\n {\n $input_form = \"<div class=\\\"form-group\\\">\n <label for=\\\"{{label}}\\\">{{label}}</label>\n <input type=\\\"{{type}}\\\" class=\\\"form-control\\\" id=\\\"edit_input_{{label}}\\\" {{otherAttr}}>\n </div>\";\n $break_line = \"\\n\";\n\n $form_result = \"\";\n $columns = $this->getShowColumn();\n foreach ($columns as $name => $type) {\n $input_type = 'text';\n $other_attr = '';\n\n if ( in_array($name,self::DISABLED_COLUMNS)){\n $other_attr = $other_attr.' disabled';\n }\n\n if ($type == \"bigint\" OR $type == \"integer\"){\n $input_type = 'number';\n }elseif ($type == \"string\"){\n $input_type = 'text';\n }elseif ($type == \"datetime\"){\n $input_type = 'datetime-local';\n }\n\n $one_form = str_replace(\n [\n '{{label}}',\n '{{type}}',\n '{{otherAttr}}',\n ],\n [\n $name,\n $input_type,\n $other_attr,\n ],\n $input_form\n );\n $form_result = $form_result.$one_form.$break_line;\n }\n\n return $form_result;\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->highest_bid->FormValue == $this->highest_bid->CurrentValue && is_numeric(ew_StrToFloat($this->highest_bid->CurrentValue)))\n\t\t\t$this->highest_bid->CurrentValue = ew_StrToFloat($this->highest_bid->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// tanggal\n\t\t// auc_number\n\t\t// start_bid\n\t\t// close_bid\n\t\t// lot_number\n\t\t// chop\n\t\t// grade\n\t\t// estate\n\t\t// sack\n\t\t// netto\n\t\t// open_bid\n\t\t// last_bid\n\t\t// highest_bid\n\t\t// enter_bid\n\t\t// auction_status\n\t\t// gross\n\t\t// row_id\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->CellCssStyle .= \"text-align: center;\";\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewValue = ew_FormatNumber($this->last_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->last_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewValue = ew_FormatNumber($this->highest_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->highest_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewValue = ew_FormatNumber($this->enter_bid->ViewValue, 0, -2, -2, -2);\n\t\t$this->enter_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// row_id\n\t\t$this->row_id->ViewValue = $this->row_id->CurrentValue;\n\t\t$this->row_id->ViewCustomAttributes = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->highest_bid->HrefValue = \"\";\n\t\t\t$this->highest_bid->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->tanggal->AdvancedSearch->SearchValue, 7), 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->auc_number->EditCustomAttributes = \"\";\n\t\t\t$this->auc_number->EditValue = ew_HtmlEncode($this->auc_number->AdvancedSearch->SearchValue);\n\t\t\t$this->auc_number->PlaceHolder = ew_RemoveHtml($this->auc_number->FldCaption());\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_bid->EditCustomAttributes = \"\";\n\t\t\t$this->start_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->start_bid->PlaceHolder = ew_RemoveHtml($this->start_bid->FldCaption());\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->close_bid->EditCustomAttributes = \"\";\n\t\t\t$this->close_bid->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->close_bid->AdvancedSearch->SearchValue, 11), 11));\n\t\t\t$this->close_bid->PlaceHolder = ew_RemoveHtml($this->close_bid->FldCaption());\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->AdvancedSearch->SearchValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->AdvancedSearch->SearchValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->AdvancedSearch->SearchValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->AdvancedSearch->SearchValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->AdvancedSearch->SearchValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->AdvancedSearch->SearchValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\n\t\t\t// highest_bid\n\t\t\t$this->highest_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->highest_bid->EditCustomAttributes = \"\";\n\t\t\t$this->highest_bid->EditValue = ew_HtmlEncode($this->highest_bid->AdvancedSearch->SearchValue);\n\t\t\t$this->highest_bid->PlaceHolder = ew_RemoveHtml($this->highest_bid->FldCaption());\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(FALSE);\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function actionEditRow()\n {\n // data to update\n $postData = array();\n if (isset($_POST['UMailSendingRole'])) {\n $postData['UMailSendingRole'] = $_POST['UMailSendingRole'];\n }\n\n // primary key\n $pk['u_person_id'] = $_GET['u_person_id'];\n $pk['u_mail_template_id'] = $_GET['u_mail_template_id'];\n $pk['u_mail_send_role_id'] = $_GET['u_mail_send_role_id'];\n\n // data\n $data = $this->_loadEditModels($pk);\n\n // related data\n $relatedData = array();\n $relatedData['UMailTemplate[id]'] = array(\n '' => Unitkit::t('unitkit', 'input_select')\n ) + UHtml::listDataComboBox('UMailTemplate', array(\n 'id',\n 'id'\n ));\n\n // save models\n $isSaved = ! empty($postData) ? $this->_saveEditModels($data, $postData) : false;\n\n if (! $isSaved) {\n // render view\n $html = $this->bRenderPartial('list/_tbodyRowEdit', array(\n 'dataView' => new MailSendingRoleEditRowDataView($data, $relatedData, $pk, $isSaved)\n ), true);\n } else {\n // update the primary key\n $pk['u_person_id'] = $data['UMailSendingRole']->u_person_id;\n $pk['u_mail_template_id'] = $data['UMailSendingRole']->u_mail_template_id;\n $pk['u_mail_send_role_id'] = $data['UMailSendingRole']->u_mail_send_role_id;\n\n // refresh the row\n $html = $this->_refreshRow($pk);\n }\n echo CJSON::encode(array(\n 'html' => $html,\n 'refreshRow' => $isSaved\n ));\n Yii::app()->end();\n }", "function editRow($table_name, $key_column_name, $key_value, $row)\n {\n foreach($row as $column_name=>$column_value)\n {\n $this->editValue(\n $table_name,\n $key_column_name,\n $key_value,\n $column_name,\n $column_value);\n }\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// userlevelid\n\t\t// userlevelname\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->ViewValue = $this->userlevelid->CurrentValue;\n\t\t\t$this->userlevelid->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->ViewValue = $this->userlevelname->CurrentValue;\n\t\t\t$this->userlevelname->ViewCustomAttributes = \"\";\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\t\t\t$this->userlevelid->TooltipValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->LinkCustomAttributes = \"\";\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t\t$this->userlevelname->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// userlevelid\n\t\t\t$this->userlevelid->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelid->EditValue = ew_HtmlEncode($this->userlevelid->CurrentValue);\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->EditCustomAttributes = \"\";\n\t\t\t$this->userlevelname->EditValue = ew_HtmlEncode($this->userlevelname->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// userlevelid\n\n\t\t\t$this->userlevelid->HrefValue = \"\";\n\n\t\t\t// userlevelname\n\t\t\t$this->userlevelname->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->netto->FormValue == $this->netto->CurrentValue && is_numeric(ew_StrToFloat($this->netto->CurrentValue)))\n\t\t\t$this->netto->CurrentValue = ew_StrToFloat($this->netto->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->gross->FormValue == $this->gross->CurrentValue && is_numeric(ew_StrToFloat($this->gross->CurrentValue)))\n\t\t\t$this->gross->CurrentValue = ew_StrToFloat($this->gross->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->open_bid->FormValue == $this->open_bid->CurrentValue && is_numeric(ew_StrToFloat($this->open_bid->CurrentValue)))\n\t\t\t$this->open_bid->CurrentValue = ew_StrToFloat($this->open_bid->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bid_step->FormValue == $this->bid_step->CurrentValue && is_numeric(ew_StrToFloat($this->bid_step->CurrentValue)))\n\t\t\t$this->bid_step->CurrentValue = ew_StrToFloat($this->bid_step->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->rate->FormValue == $this->rate->CurrentValue && is_numeric(ew_StrToFloat($this->rate->CurrentValue)))\n\t\t\t$this->rate->CurrentValue = ew_StrToFloat($this->rate->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->proforma_amount->FormValue == $this->proforma_amount->CurrentValue && is_numeric(ew_StrToFloat($this->proforma_amount->CurrentValue)))\n\t\t\t$this->proforma_amount->CurrentValue = ew_StrToFloat($this->proforma_amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\t\t// master_id\n\t\t// lot_number\n\t\t// chop\n\t\t// estate\n\t\t// grade\n\t\t// jenis\n\t\t// sack\n\t\t// netto\n\t\t// gross\n\t\t// open_bid\n\t\t// currency\n\t\t// bid_step\n\t\t// rate\n\t\t// winner_id\n\t\t// sold_bid\n\t\t// proforma_number\n\t\t// proforma_amount\n\t\t// proforma_status\n\t\t// auction_status\n\t\t// enter_bid\n\t\t// last_bid\n\t\t// highest_bid\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// lot_number\n\t\t$this->lot_number->ViewValue = $this->lot_number->CurrentValue;\n\t\t$this->lot_number->ViewCustomAttributes = \"\";\n\n\t\t// chop\n\t\t$this->chop->ViewValue = $this->chop->CurrentValue;\n\t\t$this->chop->ViewCustomAttributes = \"\";\n\n\t\t// estate\n\t\t$this->estate->ViewValue = $this->estate->CurrentValue;\n\t\t$this->estate->ViewCustomAttributes = \"\";\n\n\t\t// grade\n\t\t$this->grade->ViewValue = $this->grade->CurrentValue;\n\t\t$this->grade->ViewCustomAttributes = \"\";\n\n\t\t// jenis\n\t\t$this->jenis->ViewValue = $this->jenis->CurrentValue;\n\t\t$this->jenis->ViewCustomAttributes = \"\";\n\n\t\t// sack\n\t\t$this->sack->ViewValue = $this->sack->CurrentValue;\n\t\t$this->sack->ViewValue = ew_FormatNumber($this->sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->sack->ViewCustomAttributes = \"\";\n\n\t\t// netto\n\t\t$this->netto->ViewValue = $this->netto->CurrentValue;\n\t\t$this->netto->ViewValue = ew_FormatNumber($this->netto->ViewValue, 2, -2, -2, -2);\n\t\t$this->netto->ViewCustomAttributes = \"\";\n\n\t\t// gross\n\t\t$this->gross->ViewValue = $this->gross->CurrentValue;\n\t\t$this->gross->ViewValue = ew_FormatNumber($this->gross->ViewValue, 2, -2, -2, -2);\n\t\t$this->gross->ViewCustomAttributes = \"\";\n\n\t\t// open_bid\n\t\t$this->open_bid->ViewValue = $this->open_bid->CurrentValue;\n\t\t$this->open_bid->ViewValue = ew_FormatNumber($this->open_bid->ViewValue, 2, -2, -2, -2);\n\t\t$this->open_bid->CellCssStyle .= \"text-align: right;\";\n\t\t$this->open_bid->ViewCustomAttributes = \"\";\n\n\t\t// currency\n\t\tif (strval($this->currency->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tbl_currency`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->currency->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $this->currency->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->currency->ViewValue = NULL;\n\t\t}\n\t\t$this->currency->ViewCustomAttributes = \"\";\n\n\t\t// bid_step\n\t\t$this->bid_step->ViewValue = $this->bid_step->CurrentValue;\n\t\t$this->bid_step->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t// winner_id\n\t\t$this->winner_id->ViewValue = $this->winner_id->CurrentValue;\n\t\t$this->winner_id->ViewCustomAttributes = \"\";\n\n\t\t// sold_bid\n\t\t$this->sold_bid->ViewValue = $this->sold_bid->CurrentValue;\n\t\t$this->sold_bid->ViewCustomAttributes = \"\";\n\n\t\t// proforma_number\n\t\t$this->proforma_number->ViewValue = $this->proforma_number->CurrentValue;\n\t\t$this->proforma_number->ViewCustomAttributes = \"\";\n\n\t\t// proforma_amount\n\t\t$this->proforma_amount->ViewValue = $this->proforma_amount->CurrentValue;\n\t\t$this->proforma_amount->ViewCustomAttributes = \"\";\n\n\t\t// proforma_status\n\t\tif (strval($this->proforma_status->CurrentValue) <> \"\") {\n\t\t\t$this->proforma_status->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->proforma_status->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->proforma_status->ViewValue .= $this->proforma_status->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->proforma_status->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->proforma_status->ViewValue = NULL;\n\t\t}\n\t\t$this->proforma_status->ViewCustomAttributes = \"\";\n\n\t\t// auction_status\n\t\tif (strval($this->auction_status->CurrentValue) <> \"\") {\n\t\t\t$this->auction_status->ViewValue = $this->auction_status->OptionCaption($this->auction_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auction_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auction_status->ViewCustomAttributes = \"\";\n\n\t\t// enter_bid\n\t\t$this->enter_bid->ViewValue = $this->enter_bid->CurrentValue;\n\t\t$this->enter_bid->ViewCustomAttributes = \"\";\n\n\t\t// last_bid\n\t\t$this->last_bid->ViewValue = $this->last_bid->CurrentValue;\n\t\t$this->last_bid->ViewCustomAttributes = \"\";\n\n\t\t// highest_bid\n\t\t$this->highest_bid->ViewValue = $this->highest_bid->CurrentValue;\n\t\t$this->highest_bid->ViewCustomAttributes = \"\";\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\t\t\t$this->lot_number->TooltipValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\t\t\t$this->chop->TooltipValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\t\t\t$this->estate->TooltipValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\t\t\t$this->grade->TooltipValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\t\t\t$this->jenis->TooltipValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\t\t\t$this->sack->TooltipValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\t\t\t$this->netto->TooltipValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\t\t\t$this->gross->TooltipValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\t\t\t$this->open_bid->TooltipValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\t\t\t$this->currency->TooltipValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\t\t\t$this->bid_step->TooltipValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\t\t\t$this->rate->TooltipValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\t\t\t$this->proforma_number->TooltipValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\t\t\t$this->proforma_amount->TooltipValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t\t$this->auction_status->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// lot_number\n\t\t\t$this->lot_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->lot_number->EditCustomAttributes = \"\";\n\t\t\t$this->lot_number->EditValue = ew_HtmlEncode($this->lot_number->CurrentValue);\n\t\t\t$this->lot_number->PlaceHolder = ew_RemoveHtml($this->lot_number->FldCaption());\n\n\t\t\t// chop\n\t\t\t$this->chop->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->chop->EditCustomAttributes = \"\";\n\t\t\t$this->chop->EditValue = ew_HtmlEncode($this->chop->CurrentValue);\n\t\t\t$this->chop->PlaceHolder = ew_RemoveHtml($this->chop->FldCaption());\n\n\t\t\t// estate\n\t\t\t$this->estate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->estate->EditCustomAttributes = \"\";\n\t\t\t$this->estate->EditValue = ew_HtmlEncode($this->estate->CurrentValue);\n\t\t\t$this->estate->PlaceHolder = ew_RemoveHtml($this->estate->FldCaption());\n\n\t\t\t// grade\n\t\t\t$this->grade->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->grade->EditCustomAttributes = \"\";\n\t\t\t$this->grade->EditValue = ew_HtmlEncode($this->grade->CurrentValue);\n\t\t\t$this->grade->PlaceHolder = ew_RemoveHtml($this->grade->FldCaption());\n\n\t\t\t// jenis\n\t\t\t$this->jenis->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->jenis->EditCustomAttributes = \"\";\n\t\t\t$this->jenis->EditValue = ew_HtmlEncode($this->jenis->CurrentValue);\n\t\t\t$this->jenis->PlaceHolder = ew_RemoveHtml($this->jenis->FldCaption());\n\n\t\t\t// sack\n\t\t\t$this->sack->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sack->EditCustomAttributes = \"\";\n\t\t\t$this->sack->EditValue = ew_HtmlEncode($this->sack->CurrentValue);\n\t\t\t$this->sack->PlaceHolder = ew_RemoveHtml($this->sack->FldCaption());\n\n\t\t\t// netto\n\t\t\t$this->netto->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->netto->EditCustomAttributes = \"\";\n\t\t\t$this->netto->EditValue = ew_HtmlEncode($this->netto->CurrentValue);\n\t\t\t$this->netto->PlaceHolder = ew_RemoveHtml($this->netto->FldCaption());\n\t\t\tif (strval($this->netto->EditValue) <> \"\" && is_numeric($this->netto->EditValue)) $this->netto->EditValue = ew_FormatNumber($this->netto->EditValue, -2, -2, -2, -2);\n\n\t\t\t// gross\n\t\t\t$this->gross->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->gross->EditCustomAttributes = \"\";\n\t\t\t$this->gross->EditValue = ew_HtmlEncode($this->gross->CurrentValue);\n\t\t\t$this->gross->PlaceHolder = ew_RemoveHtml($this->gross->FldCaption());\n\t\t\tif (strval($this->gross->EditValue) <> \"\" && is_numeric($this->gross->EditValue)) $this->gross->EditValue = ew_FormatNumber($this->gross->EditValue, -2, -2, -2, -2);\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->open_bid->EditCustomAttributes = \"\";\n\t\t\t$this->open_bid->EditValue = ew_HtmlEncode($this->open_bid->CurrentValue);\n\t\t\t$this->open_bid->PlaceHolder = ew_RemoveHtml($this->open_bid->FldCaption());\n\t\t\tif (strval($this->open_bid->EditValue) <> \"\" && is_numeric($this->open_bid->EditValue)) $this->open_bid->EditValue = ew_FormatNumber($this->open_bid->EditValue, -2, -2, -2, -2);\n\n\t\t\t// currency\n\t\t\t$this->currency->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->currency->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id_cur`\" . ew_SearchString(\"=\", $this->currency->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id_cur`, `currency` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tbl_currency`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->currency->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->currency, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->currency->ViewValue = $this->currency->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->currency->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->currency->EditValue = $arwrk;\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bid_step->EditCustomAttributes = \"\";\n\t\t\t$this->bid_step->EditValue = ew_HtmlEncode($this->bid_step->CurrentValue);\n\t\t\t$this->bid_step->PlaceHolder = ew_RemoveHtml($this->bid_step->FldCaption());\n\t\t\tif (strval($this->bid_step->EditValue) <> \"\" && is_numeric($this->bid_step->EditValue)) $this->bid_step->EditValue = ew_FormatNumber($this->bid_step->EditValue, -2, -1, -2, 0);\n\n\t\t\t// rate\n\t\t\t$this->rate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->rate->EditCustomAttributes = \"\";\n\t\t\t$this->rate->EditValue = ew_HtmlEncode($this->rate->CurrentValue);\n\t\t\t$this->rate->PlaceHolder = ew_RemoveHtml($this->rate->FldCaption());\n\t\t\tif (strval($this->rate->EditValue) <> \"\" && is_numeric($this->rate->EditValue)) $this->rate->EditValue = ew_FormatNumber($this->rate->EditValue, -2, -1, -2, 0);\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_number->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_number->EditValue = ew_HtmlEncode($this->proforma_number->CurrentValue);\n\t\t\t$this->proforma_number->PlaceHolder = ew_RemoveHtml($this->proforma_number->FldCaption());\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->proforma_amount->EditCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->EditValue = ew_HtmlEncode($this->proforma_amount->CurrentValue);\n\t\t\t$this->proforma_amount->PlaceHolder = ew_RemoveHtml($this->proforma_amount->FldCaption());\n\t\t\tif (strval($this->proforma_amount->EditValue) <> \"\" && is_numeric($this->proforma_amount->EditValue)) $this->proforma_amount->EditValue = ew_FormatNumber($this->proforma_amount->EditValue, -2, -1, -2, 0);\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->EditCustomAttributes = \"\";\n\t\t\t$this->auction_status->EditValue = $this->auction_status->Options(TRUE);\n\n\t\t\t// Add refer script\n\t\t\t// lot_number\n\n\t\t\t$this->lot_number->LinkCustomAttributes = \"\";\n\t\t\t$this->lot_number->HrefValue = \"\";\n\n\t\t\t// chop\n\t\t\t$this->chop->LinkCustomAttributes = \"\";\n\t\t\t$this->chop->HrefValue = \"\";\n\n\t\t\t// estate\n\t\t\t$this->estate->LinkCustomAttributes = \"\";\n\t\t\t$this->estate->HrefValue = \"\";\n\n\t\t\t// grade\n\t\t\t$this->grade->LinkCustomAttributes = \"\";\n\t\t\t$this->grade->HrefValue = \"\";\n\n\t\t\t// jenis\n\t\t\t$this->jenis->LinkCustomAttributes = \"\";\n\t\t\t$this->jenis->HrefValue = \"\";\n\n\t\t\t// sack\n\t\t\t$this->sack->LinkCustomAttributes = \"\";\n\t\t\t$this->sack->HrefValue = \"\";\n\n\t\t\t// netto\n\t\t\t$this->netto->LinkCustomAttributes = \"\";\n\t\t\t$this->netto->HrefValue = \"\";\n\n\t\t\t// gross\n\t\t\t$this->gross->LinkCustomAttributes = \"\";\n\t\t\t$this->gross->HrefValue = \"\";\n\n\t\t\t// open_bid\n\t\t\t$this->open_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->open_bid->HrefValue = \"\";\n\n\t\t\t// currency\n\t\t\t$this->currency->LinkCustomAttributes = \"\";\n\t\t\t$this->currency->HrefValue = \"\";\n\n\t\t\t// bid_step\n\t\t\t$this->bid_step->LinkCustomAttributes = \"\";\n\t\t\t$this->bid_step->HrefValue = \"\";\n\n\t\t\t// rate\n\t\t\t$this->rate->LinkCustomAttributes = \"\";\n\t\t\t$this->rate->HrefValue = \"\";\n\n\t\t\t// proforma_number\n\t\t\t$this->proforma_number->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_number->HrefValue = \"\";\n\n\t\t\t// proforma_amount\n\t\t\t$this->proforma_amount->LinkCustomAttributes = \"\";\n\t\t\t$this->proforma_amount->HrefValue = \"\";\n\n\t\t\t// auction_status\n\t\t\t$this->auction_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auction_status->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\tglobal $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->Purchasing_Quantity->FormValue == $this->Purchasing_Quantity->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Quantity->CurrentValue)))\n\t\t\t$this->Purchasing_Quantity->CurrentValue = ew_StrToFloat($this->Purchasing_Quantity->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Price->FormValue == $this->Purchasing_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Price->CurrentValue)))\n\t\t\t$this->Purchasing_Price->CurrentValue = ew_StrToFloat($this->Purchasing_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Selling_Price->FormValue == $this->Selling_Price->CurrentValue && is_numeric(ew_StrToFloat($this->Selling_Price->CurrentValue)))\n\t\t\t$this->Selling_Price->CurrentValue = ew_StrToFloat($this->Selling_Price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->Purchasing_Total_Amount->FormValue == $this->Purchasing_Total_Amount->CurrentValue && is_numeric(ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue)))\n\t\t\t$this->Purchasing_Total_Amount->CurrentValue = ew_StrToFloat($this->Purchasing_Total_Amount->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Purchase_ID\n\t\t// Purchase_Number\n\t\t// Supplier_Number\n\t\t// Stock_Item\n\t\t// Purchasing_Quantity\n\t\t// Purchasing_Price\n\t\t// Selling_Price\n\t\t// Purchasing_Total_Amount\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->ViewValue = $this->Purchase_ID->CurrentValue;\n\t\t\t$this->Purchase_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->ViewValue = $this->Purchase_Number->CurrentValue;\n\t\t\t$this->Purchase_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\tif (strval($this->Supplier_Number->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Supplier_Number`\" . ew_SearchString(\"=\", $this->Supplier_Number->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Supplier_Number->ViewValue = $this->Supplier_Number->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Supplier_Number->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Supplier_Number->ViewCustomAttributes = \"\";\n\n\t\t\t// Stock_Item\n\t\t\tif (strval($this->Stock_Item->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Stock_Number`\" . ew_SearchString(\"=\", $this->Stock_Item->CurrentValue, EW_DATATYPE_STRING);\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Stock_Item->ViewValue = $rswrk->fields('DispFld');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Stock_Item->ViewValue = $this->Stock_Item->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Stock_Item->ViewValue = NULL;\n\t\t\t}\n\t\t\t$this->Stock_Item->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->ViewValue = $this->Purchasing_Quantity->CurrentValue;\n\t\t\t$this->Purchasing_Quantity->ViewValue = ew_FormatNumber($this->Purchasing_Quantity->ViewValue, 0, -1, -1, -1);\n\t\t\t$this->Purchasing_Quantity->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Quantity->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->ViewValue = $this->Purchasing_Price->CurrentValue;\n\t\t\t$this->Purchasing_Price->ViewValue = ew_FormatCurrency($this->Purchasing_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->ViewValue = $this->Selling_Price->CurrentValue;\n\t\t\t$this->Selling_Price->ViewValue = ew_FormatCurrency($this->Selling_Price->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Selling_Price->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Selling_Price->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = $this->Purchasing_Total_Amount->CurrentValue;\n\t\t\t$this->Purchasing_Total_Amount->ViewValue = ew_FormatCurrency($this->Purchasing_Total_Amount->ViewValue, 2, -2, -2, -2);\n\t\t\t$this->Purchasing_Total_Amount->CellCssStyle .= \"text-align: right;\";\n\t\t\t$this->Purchasing_Total_Amount->ViewCustomAttributes = \"\";\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->HrefValue = \"\";\n\t\t\t$this->Purchase_ID->TooltipValue = \"\";\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->HrefValue = \"\";\n\t\t\t$this->Purchase_Number->TooltipValue = \"\";\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->LinkCustomAttributes = \"\";\n\t\t\t$this->Supplier_Number->HrefValue = \"\";\n\t\t\t$this->Supplier_Number->TooltipValue = \"\";\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Stock_Item->HrefValue = \"\";\n\t\t\t$this->Stock_Item->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->HrefValue = \"\";\n\t\t\t$this->Purchasing_Quantity->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->HrefValue = \"\";\n\t\t\t$this->Purchasing_Price->TooltipValue = \"\";\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->LinkCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->HrefValue = \"\";\n\t\t\t$this->Selling_Price->TooltipValue = \"\";\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->LinkCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->HrefValue = \"\";\n\t\t\t$this->Purchasing_Total_Amount->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// Purchase_ID\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\t\t\t$this->Purchase_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_ID->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_ID->EditValue2 = ew_HtmlEncode($this->Purchase_ID->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_ID->PlaceHolder = ew_RemoveHtml($this->Purchase_ID->FldCaption());\n\n\t\t\t// Purchase_Number\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\t\t\t$this->Purchase_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchase_Number->EditCustomAttributes = \"\";\n\t\t\t$this->Purchase_Number->EditValue2 = ew_HtmlEncode($this->Purchase_Number->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchase_Number->PlaceHolder = ew_RemoveHtml($this->Purchase_Number->FldCaption());\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue = $arwrk;\n\t\t\t$this->Supplier_Number->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Supplier_Number->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Supplier_Number`, `Supplier_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_suppliers`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Supplier_Number, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Supplier_Number->EditValue2 = $arwrk;\n\n\t\t\t// Stock_Item\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue = $arwrk;\n\t\t\t$this->Stock_Item->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Stock_Item->EditCustomAttributes = \"\";\n\t\t\t$sFilterWrk = \"\";\n\t\t\tswitch (@$gsLanguage) {\n\t\t\t\tcase \"id\":\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sSqlWrk = \"SELECT `Stock_Number`, `Stock_Name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, `Supplier_Number` AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `a_stock_items`\";\n\t\t\t\t\t$sWhereWrk = \"\";\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t$lookuptblfilter = (isset($_GET[\"Supplier_Number\"])) ? \"`Supplier_Number` = '\".$_GET[\"Supplier_Number\"].\"' \" : \"\";\n\t\t\tif (strval($lookuptblfilter) <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\t}\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t}\n\n\t\t\t// Call Lookup selecting\n\t\t\t$this->Lookup_Selecting($this->Stock_Item, $sWhereWrk);\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\", \"\", \"\", \"\", \"\", \"\", \"\"));\n\t\t\t$this->Stock_Item->EditValue2 = $arwrk;\n\n\t\t\t// Purchasing_Quantity\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\t\t\t$this->Purchasing_Quantity->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Quantity->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Quantity->EditValue2 = ew_HtmlEncode($this->Purchasing_Quantity->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Quantity->PlaceHolder = ew_RemoveHtml($this->Purchasing_Quantity->FldCaption());\n\n\t\t\t// Purchasing_Price\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\t\t\t$this->Purchasing_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Price->EditValue2 = ew_HtmlEncode($this->Purchasing_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Price->PlaceHolder = ew_RemoveHtml($this->Purchasing_Price->FldCaption());\n\n\t\t\t// Selling_Price\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\t\t\t$this->Selling_Price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Selling_Price->EditCustomAttributes = \"\";\n\t\t\t$this->Selling_Price->EditValue2 = ew_HtmlEncode($this->Selling_Price->AdvancedSearch->SearchValue2);\n\t\t\t$this->Selling_Price->PlaceHolder = ew_RemoveHtml($this->Selling_Price->FldCaption());\n\n\t\t\t// Purchasing_Total_Amount\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t\t$this->Purchasing_Total_Amount->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->Purchasing_Total_Amount->EditCustomAttributes = \"\";\n\t\t\t$this->Purchasing_Total_Amount->EditValue2 = ew_HtmlEncode($this->Purchasing_Total_Amount->AdvancedSearch->SearchValue2);\n\t\t\t$this->Purchasing_Total_Amount->PlaceHolder = ew_RemoveHtml($this->Purchasing_Total_Amount->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $this->GetViewUrl();\r\n\t\t$this->EditUrl = $this->GetEditUrl();\r\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\r\n\t\t$this->CopyUrl = $this->GetCopyUrl();\r\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\r\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// identries\r\n\t\t\t// titulo\r\n\r\n\t\t\t$this->titulo->EditCustomAttributes = \"\";\r\n\t\t\t$this->titulo->EditValue = ew_HtmlEncode($this->titulo->CurrentValue);\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->EditCustomAttributes = \"\";\r\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->CurrentValue);\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->EditCustomAttributes = \"\";\r\n\t\t\t$this->islive->EditValue = ew_HtmlEncode($this->islive->CurrentValue);\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->EditCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->EditValue = ew_HtmlEncode($this->tool_id->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// identries\r\n\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// period_id\n\t\t// person_id\n\t\t// tipejurnal_id\n\t\t// nomer\n\t\t// createon\n\t\t// keterangan\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// period_id\n\t\tif (strval($this->period_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->period_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `start` AS `DispFld`, `end` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `periode`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->period_id->LookupFilters = array(\"df1\" => \"7\", \"df2\" => \"7\");\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->period_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_FormatDateTime($rswrk->fields('DispFld'), 7);\n\t\t\t\t$arwrk[2] = ew_FormatDateTime($rswrk->fields('Disp2Fld'), 7);\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->period_id->ViewValue = $this->period_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->period_id->ViewValue = NULL;\n\t\t}\n\t\t$this->period_id->ViewCustomAttributes = \"\";\n\n\t\t// person_id\n\t\t$this->person_id->ViewValue = $this->person_id->CurrentValue;\n\t\t$this->person_id->ViewCustomAttributes = \"\";\n\n\t\t// tipejurnal_id\n\t\tif (strval($this->tipejurnal_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipejurnal`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipejurnal_id->ViewValue = $this->tipejurnal_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipejurnal_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipejurnal_id->ViewCustomAttributes = \"\";\n\n\t\t// nomer\n\t\t$this->nomer->ViewValue = $this->nomer->CurrentValue;\n\t\t$this->nomer->ViewCustomAttributes = \"\";\n\n\t\t// createon\n\t\t$this->createon->ViewValue = $this->createon->CurrentValue;\n\t\t$this->createon->ViewValue = ew_FormatDateTime($this->createon->ViewValue, 7);\n\t\t$this->createon->ViewCustomAttributes = \"\";\n\n\t\t// keterangan\n\t\t$this->keterangan->ViewValue = $this->keterangan->CurrentValue;\n\t\t$this->keterangan->ViewCustomAttributes = \"\";\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\t\t\t$this->tipejurnal_id->TooltipValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\t\t\t$this->nomer->TooltipValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\t\t\t$this->createon->TooltipValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t\t$this->keterangan->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// tipejurnal_id\n\t\t\t$this->tipejurnal_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tipejurnal_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->tipejurnal_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->tipejurnal_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `tipejurnal`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->tipejurnal_id->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->tipejurnal_id, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->tipejurnal_id->EditValue = $arwrk;\n\n\t\t\t// nomer\n\t\t\t$this->nomer->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomer->EditCustomAttributes = \"\";\n\t\t\t$this->nomer->EditValue = ew_HtmlEncode($this->nomer->CurrentValue);\n\t\t\t$this->nomer->PlaceHolder = ew_RemoveHtml($this->nomer->FldCaption());\n\n\t\t\t// createon\n\t\t\t$this->createon->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->createon->EditCustomAttributes = \"style='width: 115px;'\";\n\t\t\t$this->createon->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->createon->CurrentValue, 7));\n\t\t\t$this->createon->PlaceHolder = ew_RemoveHtml($this->createon->FldCaption());\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keterangan->EditCustomAttributes = \"\";\n\t\t\t$this->keterangan->EditValue = ew_HtmlEncode($this->keterangan->CurrentValue);\n\t\t\t$this->keterangan->PlaceHolder = ew_RemoveHtml($this->keterangan->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// tipejurnal_id\n\n\t\t\t$this->tipejurnal_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipejurnal_id->HrefValue = \"\";\n\n\t\t\t// nomer\n\t\t\t$this->nomer->LinkCustomAttributes = \"\";\n\t\t\t$this->nomer->HrefValue = \"\";\n\n\t\t\t// createon\n\t\t\t$this->createon->LinkCustomAttributes = \"\";\n\t\t\t$this->createon->HrefValue = \"\";\n\n\t\t\t// keterangan\n\t\t\t$this->keterangan->LinkCustomAttributes = \"\";\n\t\t\t$this->keterangan->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $this->GetViewUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->InlineEditUrl = $this->GetInlineEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->InlineCopyUrl = $this->GetInlineCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// id\n\t\t\t$this->id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id->EditCustomAttributes = \"\";\n\t\t\t$this->id->EditValue = ew_HtmlEncode($this->id->AdvancedSearch->SearchValue);\n\t\t\t$this->id->PlaceHolder = ew_RemoveHtml($this->id->FldCaption());\n\n\t\t\t// name\n\t\t\t$this->name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->name->EditCustomAttributes = \"\";\n\t\t\t$this->name->EditValue = ew_HtmlEncode($this->name->AdvancedSearch->SearchValue);\n\t\t\t$this->name->PlaceHolder = ew_RemoveHtml($this->name->FldCaption());\n\n\t\t\t// email\n\t\t\t$this->_email->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->_email->EditCustomAttributes = \"\";\n\t\t\t$this->_email->EditValue = ew_HtmlEncode($this->_email->AdvancedSearch->SearchValue);\n\t\t\t$this->_email->PlaceHolder = ew_RemoveHtml($this->_email->FldCaption());\n\n\t\t\t// companyname\n\t\t\t$this->companyname->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->companyname->EditCustomAttributes = \"\";\n\t\t\t$this->companyname->EditValue = ew_HtmlEncode($this->companyname->AdvancedSearch->SearchValue);\n\t\t\t$this->companyname->PlaceHolder = ew_RemoveHtml($this->companyname->FldCaption());\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->servicetime->EditCustomAttributes = \"\";\n\t\t\t$this->servicetime->EditValue = ew_HtmlEncode($this->servicetime->AdvancedSearch->SearchValue);\n\t\t\t$this->servicetime->PlaceHolder = ew_RemoveHtml($this->servicetime->FldCaption());\n\n\t\t\t// country\n\t\t\t$this->country->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->country->EditCustomAttributes = \"\";\n\t\t\t$this->country->EditValue = ew_HtmlEncode($this->country->AdvancedSearch->SearchValue);\n\t\t\t$this->country->PlaceHolder = ew_RemoveHtml($this->country->FldCaption());\n\n\t\t\t// phone\n\t\t\t$this->phone->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->phone->EditCustomAttributes = \"\";\n\t\t\t$this->phone->EditValue = ew_HtmlEncode($this->phone->AdvancedSearch->SearchValue);\n\t\t\t$this->phone->PlaceHolder = ew_RemoveHtml($this->phone->FldCaption());\n\n\t\t\t// skype\n\t\t\t$this->skype->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->skype->EditCustomAttributes = \"\";\n\t\t\t$this->skype->EditValue = ew_HtmlEncode($this->skype->AdvancedSearch->SearchValue);\n\t\t\t$this->skype->PlaceHolder = ew_RemoveHtml($this->skype->FldCaption());\n\n\t\t\t// website\n\t\t\t$this->website->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->website->EditCustomAttributes = \"\";\n\t\t\t$this->website->EditValue = ew_HtmlEncode($this->website->AdvancedSearch->SearchValue);\n\t\t\t$this->website->PlaceHolder = ew_RemoveHtml($this->website->FldCaption());\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->linkedin->EditCustomAttributes = \"\";\n\t\t\t$this->linkedin->EditValue = ew_HtmlEncode($this->linkedin->AdvancedSearch->SearchValue);\n\t\t\t$this->linkedin->PlaceHolder = ew_RemoveHtml($this->linkedin->FldCaption());\n\n\t\t\t// facebook\n\t\t\t$this->facebook->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->facebook->EditCustomAttributes = \"\";\n\t\t\t$this->facebook->EditValue = ew_HtmlEncode($this->facebook->AdvancedSearch->SearchValue);\n\t\t\t$this->facebook->PlaceHolder = ew_RemoveHtml($this->facebook->FldCaption());\n\n\t\t\t// twitter\n\t\t\t$this->twitter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->twitter->EditCustomAttributes = \"\";\n\t\t\t$this->twitter->EditValue = ew_HtmlEncode($this->twitter->AdvancedSearch->SearchValue);\n\t\t\t$this->twitter->PlaceHolder = ew_RemoveHtml($this->twitter->FldCaption());\n\n\t\t\t// active_code\n\t\t\t$this->active_code->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->active_code->EditCustomAttributes = \"\";\n\t\t\t$this->active_code->EditValue = ew_HtmlEncode($this->active_code->AdvancedSearch->SearchValue);\n\t\t\t$this->active_code->PlaceHolder = ew_RemoveHtml($this->active_code->FldCaption());\n\n\t\t\t// identification\n\t\t\t$this->identification->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->identification->EditCustomAttributes = \"\";\n\t\t\t$this->identification->EditValue = ew_HtmlEncode($this->identification->AdvancedSearch->SearchValue);\n\t\t\t$this->identification->PlaceHolder = ew_RemoveHtml($this->identification->FldCaption());\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->link_expired->EditCustomAttributes = \"\";\n\t\t\t$this->link_expired->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->link_expired->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->link_expired->PlaceHolder = ew_RemoveHtml($this->link_expired->FldCaption());\n\n\t\t\t// isactive\n\t\t\t$this->isactive->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->isactive->EditCustomAttributes = \"\";\n\t\t\t$this->isactive->EditValue = ew_HtmlEncode($this->isactive->AdvancedSearch->SearchValue);\n\t\t\t$this->isactive->PlaceHolder = ew_RemoveHtml($this->isactive->FldCaption());\n\n\t\t\t// google\n\t\t\t$this->google->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->google->EditCustomAttributes = \"\";\n\t\t\t$this->google->EditValue = ew_HtmlEncode($this->google->AdvancedSearch->SearchValue);\n\t\t\t$this->google->PlaceHolder = ew_RemoveHtml($this->google->FldCaption());\n\n\t\t\t// instagram\n\t\t\t$this->instagram->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->instagram->EditCustomAttributes = \"\";\n\t\t\t$this->instagram->EditValue = ew_HtmlEncode($this->instagram->AdvancedSearch->SearchValue);\n\t\t\t$this->instagram->PlaceHolder = ew_RemoveHtml($this->instagram->FldCaption());\n\n\t\t\t// account_type\n\t\t\t$this->account_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_type->EditCustomAttributes = \"\";\n\t\t\t$this->account_type->EditValue = ew_HtmlEncode($this->account_type->AdvancedSearch->SearchValue);\n\t\t\t$this->account_type->PlaceHolder = ew_RemoveHtml($this->account_type->FldCaption());\n\n\t\t\t// logo\n\t\t\t$this->logo->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->logo->EditCustomAttributes = \"\";\n\t\t\t$this->logo->EditValue = ew_HtmlEncode($this->logo->AdvancedSearch->SearchValue);\n\t\t\t$this->logo->PlaceHolder = ew_RemoveHtml($this->logo->FldCaption());\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilepic->EditCustomAttributes = \"\";\n\t\t\t$this->profilepic->EditValue = ew_HtmlEncode($this->profilepic->AdvancedSearch->SearchValue);\n\t\t\t$this->profilepic->PlaceHolder = ew_RemoveHtml($this->profilepic->FldCaption());\n\n\t\t\t// mailref\n\t\t\t$this->mailref->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->mailref->EditCustomAttributes = \"\";\n\t\t\t$this->mailref->EditValue = ew_HtmlEncode($this->mailref->AdvancedSearch->SearchValue);\n\t\t\t$this->mailref->PlaceHolder = ew_RemoveHtml($this->mailref->FldCaption());\n\n\t\t\t// deleted\n\t\t\t$this->deleted->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deleted->EditCustomAttributes = \"\";\n\t\t\t$this->deleted->EditValue = ew_HtmlEncode($this->deleted->AdvancedSearch->SearchValue);\n\t\t\t$this->deleted->PlaceHolder = ew_RemoveHtml($this->deleted->FldCaption());\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->deletefeedback->EditCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->EditValue = ew_HtmlEncode($this->deletefeedback->AdvancedSearch->SearchValue);\n\t\t\t$this->deletefeedback->PlaceHolder = ew_RemoveHtml($this->deletefeedback->FldCaption());\n\n\t\t\t// account_id\n\t\t\t$this->account_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->account_id->EditCustomAttributes = \"\";\n\t\t\t$this->account_id->EditValue = ew_HtmlEncode($this->account_id->AdvancedSearch->SearchValue);\n\t\t\t$this->account_id->PlaceHolder = ew_RemoveHtml($this->account_id->FldCaption());\n\n\t\t\t// start_date\n\t\t\t$this->start_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->start_date->EditCustomAttributes = \"\";\n\t\t\t$this->start_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->start_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->start_date->PlaceHolder = ew_RemoveHtml($this->start_date->FldCaption());\n\n\t\t\t// end_date\n\t\t\t$this->end_date->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->end_date->EditCustomAttributes = \"\";\n\t\t\t$this->end_date->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->end_date->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->end_date->PlaceHolder = ew_RemoveHtml($this->end_date->FldCaption());\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->year_moth->EditCustomAttributes = \"\";\n\t\t\t$this->year_moth->EditValue = ew_HtmlEncode($this->year_moth->AdvancedSearch->SearchValue);\n\t\t\t$this->year_moth->PlaceHolder = ew_RemoveHtml($this->year_moth->FldCaption());\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\t\t\t$this->registerdate->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->registerdate->EditCustomAttributes = \"\";\n\t\t\t$this->registerdate->EditValue2 = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->registerdate->AdvancedSearch->SearchValue2, 5), 5));\n\t\t\t$this->registerdate->PlaceHolder = ew_RemoveHtml($this->registerdate->FldCaption());\n\n\t\t\t// login_type\n\t\t\t$this->login_type->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->login_type->EditCustomAttributes = \"\";\n\t\t\t$this->login_type->EditValue = ew_HtmlEncode($this->login_type->AdvancedSearch->SearchValue);\n\t\t\t$this->login_type->PlaceHolder = ew_RemoveHtml($this->login_type->FldCaption());\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->accountstatus->EditCustomAttributes = \"\";\n\t\t\t$this->accountstatus->EditValue = ew_HtmlEncode($this->accountstatus->AdvancedSearch->SearchValue);\n\t\t\t$this->accountstatus->PlaceHolder = ew_RemoveHtml($this->accountstatus->FldCaption());\n\n\t\t\t// ispay\n\t\t\t$this->ispay->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ispay->EditCustomAttributes = \"\";\n\t\t\t$this->ispay->EditValue = ew_HtmlEncode($this->ispay->AdvancedSearch->SearchValue);\n\t\t\t$this->ispay->PlaceHolder = ew_RemoveHtml($this->ispay->FldCaption());\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->profilelink->EditCustomAttributes = \"\";\n\t\t\t$this->profilelink->EditValue = ew_HtmlEncode($this->profilelink->AdvancedSearch->SearchValue);\n\t\t\t$this->profilelink->PlaceHolder = ew_RemoveHtml($this->profilelink->FldCaption());\n\n\t\t\t// source\n\t\t\t$this->source->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->source->EditCustomAttributes = \"\";\n\t\t\t$this->source->EditValue = ew_HtmlEncode($this->source->AdvancedSearch->SearchValue);\n\t\t\t$this->source->PlaceHolder = ew_RemoveHtml($this->source->FldCaption());\n\n\t\t\t// agree\n\t\t\t$this->agree->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->agree->EditCustomAttributes = \"\";\n\t\t\t$this->agree->EditValue = ew_HtmlEncode($this->agree->AdvancedSearch->SearchValue);\n\t\t\t$this->agree->PlaceHolder = ew_RemoveHtml($this->agree->FldCaption());\n\n\t\t\t// balance\n\t\t\t$this->balance->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->balance->EditCustomAttributes = \"\";\n\t\t\t$this->balance->EditValue = ew_HtmlEncode($this->balance->AdvancedSearch->SearchValue);\n\t\t\t$this->balance->PlaceHolder = ew_RemoveHtml($this->balance->FldCaption());\n\n\t\t\t// job_title\n\t\t\t$this->job_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->job_title->EditCustomAttributes = \"\";\n\t\t\t$this->job_title->EditValue = ew_HtmlEncode($this->job_title->AdvancedSearch->SearchValue);\n\t\t\t$this->job_title->PlaceHolder = ew_RemoveHtml($this->job_title->FldCaption());\n\n\t\t\t// projects\n\t\t\t$this->projects->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->projects->EditCustomAttributes = \"\";\n\t\t\t$this->projects->EditValue = ew_HtmlEncode($this->projects->AdvancedSearch->SearchValue);\n\t\t\t$this->projects->PlaceHolder = ew_RemoveHtml($this->projects->FldCaption());\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->opportunities->EditCustomAttributes = \"\";\n\t\t\t$this->opportunities->EditValue = ew_HtmlEncode($this->opportunities->AdvancedSearch->SearchValue);\n\t\t\t$this->opportunities->PlaceHolder = ew_RemoveHtml($this->opportunities->FldCaption());\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->EditCustomAttributes = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->EditCustomAttributes = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->EditCustomAttributes = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->EditCustomAttributes = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->EditCustomAttributes = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->EditCustomAttributes = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->states->EditCustomAttributes = \"\";\n\t\t\t$this->states->EditValue = ew_HtmlEncode($this->states->AdvancedSearch->SearchValue);\n\t\t\t$this->states->PlaceHolder = ew_RemoveHtml($this->states->FldCaption());\n\n\t\t\t// cities\n\t\t\t$this->cities->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->cities->EditCustomAttributes = \"\";\n\t\t\t$this->cities->EditValue = ew_HtmlEncode($this->cities->AdvancedSearch->SearchValue);\n\t\t\t$this->cities->PlaceHolder = ew_RemoveHtml($this->cities->FldCaption());\n\n\t\t\t// offers\n\t\t\t$this->offers->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->offers->EditCustomAttributes = \"\";\n\t\t\t$this->offers->EditValue = ew_HtmlEncode($this->offers->AdvancedSearch->SearchValue);\n\t\t\t$this->offers->PlaceHolder = ew_RemoveHtml($this->offers->FldCaption());\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Reasignacion\r\n\t\t// Titular_Original\r\n\t\t// Dni\r\n\t\t// NroSerie\r\n\t\t// Nuevo_Titular\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t// Id_Motivo_Reasig\r\n\t\t// Observacion\r\n\t\t// Fecha_Reasignacion\r\n\t\t// Usuario\r\n\t\t// Fecha_Actualizacion\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Id_Reasignacion\r\n\t\t$this->Id_Reasignacion->ViewValue = $this->Id_Reasignacion->CurrentValue;\r\n\t\t$this->Id_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Titular_Original\r\n\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\tif (strval($this->Titular_Original->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->ViewValue = $this->Titular_Original->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Titular_Original->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Titular_Original->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni\r\n\t\t$this->Dni->ViewValue = $this->Dni->CurrentValue;\r\n\t\t$this->Dni->ViewCustomAttributes = \"\";\r\n\r\n\t\t// NroSerie\r\n\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\tif (strval($this->NroSerie->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->ViewValue = $this->NroSerie->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->NroSerie->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->NroSerie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nuevo_Titular\r\n\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\tif (strval($this->Nuevo_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->ViewValue = $this->Nuevo_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nuevo_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nuevo_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Nuevo_Tit\r\n\t\t$this->Dni_Nuevo_Tit->ViewValue = $this->Dni_Nuevo_Tit->CurrentValue;\r\n\t\t$this->Dni_Nuevo_Tit->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Motivo_Reasig\r\n\t\tif (strval($this->Id_Motivo_Reasig->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `motivo_reasignacion`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Motivo_Reasig->ViewValue = $this->Id_Motivo_Reasig->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Motivo_Reasig->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Motivo_Reasig->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Observacion\r\n\t\t$this->Observacion->ViewValue = $this->Observacion->CurrentValue;\r\n\t\t$this->Observacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Reasignacion\r\n\t\t$this->Fecha_Reasignacion->ViewValue = $this->Fecha_Reasignacion->CurrentValue;\r\n\t\t$this->Fecha_Reasignacion->ViewValue = ew_FormatDateTime($this->Fecha_Reasignacion->ViewValue, 7);\r\n\t\t$this->Fecha_Reasignacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 0);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Id_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->HrefValue = \"\";\r\n\t\t\t$this->Titular_Original->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni->HrefValue = \"\";\r\n\t\t\t$this->Dni->TooltipValue = \"\";\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->HrefValue = \"\";\r\n\t\t\t$this->NroSerie->TooltipValue = \"\";\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nuevo_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->HrefValue = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->HrefValue = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->TooltipValue = \"\";\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->HrefValue = \"\";\r\n\t\t\t$this->Observacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\n\r\n\t\t\t// Id_Reasignacion\r\n\t\t\t$this->Id_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Reasignacion->EditValue = ew_HtmlEncode($this->Id_Reasignacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Id_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Id_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Titular_Original\r\n\t\t\t$this->Titular_Original->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Titular_Original->EditCustomAttributes = \"\";\r\n\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Titular_Original->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Titular_Original->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Titular_Original->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Titular_Original, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Titular_Original->EditValue = $this->Titular_Original->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Titular_Original->EditValue = ew_HtmlEncode($this->Titular_Original->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Titular_Original->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Titular_Original->PlaceHolder = ew_RemoveHtml($this->Titular_Original->FldCaption());\r\n\r\n\t\t\t// Dni\r\n\t\t\t$this->Dni->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni->EditValue = ew_HtmlEncode($this->Dni->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni->PlaceHolder = ew_RemoveHtml($this->Dni->FldCaption());\r\n\r\n\t\t\t// NroSerie\r\n\t\t\t$this->NroSerie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->NroSerie->EditCustomAttributes = \"\";\r\n\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->NroSerie->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->NroSerie->AdvancedSearch->SearchValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->NroSerie->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->NroSerie, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->NroSerie->EditValue = $this->NroSerie->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->NroSerie->EditValue = ew_HtmlEncode($this->NroSerie->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->NroSerie->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->NroSerie->PlaceHolder = ew_RemoveHtml($this->NroSerie->FldCaption());\r\n\r\n\t\t\t// Nuevo_Titular\r\n\t\t\t$this->Nuevo_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nuevo_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\tif (strval($this->Nuevo_Titular->AdvancedSearch->SearchValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nuevo_Titular->AdvancedSearch->SearchValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nuevo_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\t$lookuptblfilter = \"`NroSerie`='0'\";\r\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nuevo_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = $this->Nuevo_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nuevo_Titular->EditValue = ew_HtmlEncode($this->Nuevo_Titular->AdvancedSearch->SearchValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nuevo_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nuevo_Titular->PlaceHolder = ew_RemoveHtml($this->Nuevo_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Nuevo_Tit\r\n\t\t\t$this->Dni_Nuevo_Tit->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Nuevo_Tit->EditValue = ew_HtmlEncode($this->Dni_Nuevo_Tit->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Dni_Nuevo_Tit->PlaceHolder = ew_RemoveHtml($this->Dni_Nuevo_Tit->FldCaption());\r\n\r\n\t\t\t// Id_Motivo_Reasig\r\n\t\t\t$this->Id_Motivo_Reasig->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Motivo_Reasig->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Motivo_Reasig->AdvancedSearch->SearchValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Motivo_Reasig`\" . ew_SearchString(\"=\", $this->Id_Motivo_Reasig->AdvancedSearch->SearchValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Motivo_Reasig`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `motivo_reasignacion`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Motivo_Reasig->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Motivo_Reasig, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Motivo_Reasig->EditValue = $arwrk;\r\n\r\n\t\t\t// Observacion\r\n\t\t\t$this->Observacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Observacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Observacion->EditValue = ew_HtmlEncode($this->Observacion->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Observacion->PlaceHolder = ew_RemoveHtml($this->Observacion->FldCaption());\r\n\r\n\t\t\t// Fecha_Reasignacion\r\n\t\t\t$this->Fecha_Reasignacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Reasignacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Reasignacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Reasignacion->AdvancedSearch->SearchValue, 7), 7));\r\n\t\t\t$this->Fecha_Reasignacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Reasignacion->FldCaption());\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Usuario->EditCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->EditValue = ew_HtmlEncode($this->Usuario->AdvancedSearch->SearchValue);\r\n\t\t\t$this->Usuario->PlaceHolder = ew_RemoveHtml($this->Usuario->FldCaption());\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Actualizacion->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($this->Fecha_Actualizacion->AdvancedSearch->SearchValue, 0), 8));\r\n\t\t\t$this->Fecha_Actualizacion->PlaceHolder = ew_RemoveHtml($this->Fecha_Actualizacion->FldCaption());\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_tercero\n\t\t// nombre_tercero\n\t\t// direccion_tercero\n\t\t// telefono1_tercero\n\t\t// telefono2_tercero\n\t\t// fax_tercero\n\t\t// nit_tercero\n\t\t// tipo_tercero\n\t\t// e_mail_tercero\n\t\t// Contacto_tercero\n\t\t// gran_contrib_tercero\n\t\t// autoretenedor_tercero\n\t\t// activo_tercero\n\t\t// tercero_ registrado_por\n\t\t// reg_comun_tercero\n\t\t// responsable_materiales_tercero\n\t\t// grupo_nomina_tercero\n\t\t// tercero_ lider_Obra\n\t\t// tercero_nombre_lider\n\t\t// empresa_tercero\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_tercero\n\t\t$this->Id_tercero->ViewValue = $this->Id_tercero->CurrentValue;\n\t\t$this->Id_tercero->ViewCustomAttributes = \"\";\n\n\t\t// nombre_tercero\n\t\t$this->nombre_tercero->ViewValue = $this->nombre_tercero->CurrentValue;\n\t\t$this->nombre_tercero->ViewCustomAttributes = \"\";\n\n\t\t// direccion_tercero\n\t\t$this->direccion_tercero->ViewValue = $this->direccion_tercero->CurrentValue;\n\t\t$this->direccion_tercero->ViewCustomAttributes = \"\";\n\n\t\t// telefono1_tercero\n\t\t$this->telefono1_tercero->ViewValue = $this->telefono1_tercero->CurrentValue;\n\t\t$this->telefono1_tercero->ViewCustomAttributes = \"\";\n\n\t\t// telefono2_tercero\n\t\t$this->telefono2_tercero->ViewValue = $this->telefono2_tercero->CurrentValue;\n\t\t$this->telefono2_tercero->ViewCustomAttributes = \"\";\n\n\t\t// fax_tercero\n\t\t$this->fax_tercero->ViewValue = $this->fax_tercero->CurrentValue;\n\t\t$this->fax_tercero->ViewCustomAttributes = \"\";\n\n\t\t// nit_tercero\n\t\t$this->nit_tercero->ViewValue = $this->nit_tercero->CurrentValue;\n\t\t$this->nit_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tipo_tercero\n\t\t$this->tipo_tercero->ViewValue = $this->tipo_tercero->CurrentValue;\n\t\t$this->tipo_tercero->ViewCustomAttributes = \"\";\n\n\t\t// e_mail_tercero\n\t\t$this->e_mail_tercero->ViewValue = $this->e_mail_tercero->CurrentValue;\n\t\t$this->e_mail_tercero->ViewCustomAttributes = \"\";\n\n\t\t// Contacto_tercero\n\t\t$this->Contacto_tercero->ViewValue = $this->Contacto_tercero->CurrentValue;\n\t\t$this->Contacto_tercero->ViewCustomAttributes = \"\";\n\n\t\t// gran_contrib_tercero\n\t\t$this->gran_contrib_tercero->ViewValue = $this->gran_contrib_tercero->CurrentValue;\n\t\t$this->gran_contrib_tercero->ViewCustomAttributes = \"\";\n\n\t\t// autoretenedor_tercero\n\t\t$this->autoretenedor_tercero->ViewValue = $this->autoretenedor_tercero->CurrentValue;\n\t\t$this->autoretenedor_tercero->ViewCustomAttributes = \"\";\n\n\t\t// activo_tercero\n\t\t$this->activo_tercero->ViewValue = $this->activo_tercero->CurrentValue;\n\t\t$this->activo_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tercero_ registrado_por\n\t\t$this->tercero__registrado_por->ViewValue = $this->tercero__registrado_por->CurrentValue;\n\t\t$this->tercero__registrado_por->ViewCustomAttributes = \"\";\n\n\t\t// reg_comun_tercero\n\t\t$this->reg_comun_tercero->ViewValue = $this->reg_comun_tercero->CurrentValue;\n\t\t$this->reg_comun_tercero->ViewCustomAttributes = \"\";\n\n\t\t// responsable_materiales_tercero\n\t\t$this->responsable_materiales_tercero->ViewValue = $this->responsable_materiales_tercero->CurrentValue;\n\t\t$this->responsable_materiales_tercero->ViewCustomAttributes = \"\";\n\n\t\t// grupo_nomina_tercero\n\t\t$this->grupo_nomina_tercero->ViewValue = $this->grupo_nomina_tercero->CurrentValue;\n\t\t$this->grupo_nomina_tercero->ViewCustomAttributes = \"\";\n\n\t\t// tercero_ lider_Obra\n\t\t$this->tercero__lider_Obra->ViewValue = $this->tercero__lider_Obra->CurrentValue;\n\t\t$this->tercero__lider_Obra->ViewCustomAttributes = \"\";\n\n\t\t// tercero_nombre_lider\n\t\t$this->tercero_nombre_lider->ViewValue = $this->tercero_nombre_lider->CurrentValue;\n\t\t$this->tercero_nombre_lider->ViewCustomAttributes = \"\";\n\n\t\t// empresa_tercero\n\t\t$this->empresa_tercero->ViewValue = $this->empresa_tercero->CurrentValue;\n\t\t$this->empresa_tercero->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_tercero\n\t\t\t$this->Id_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_tercero->HrefValue = \"\";\n\t\t\t$this->Id_tercero->TooltipValue = \"\";\n\n\t\t\t// nombre_tercero\n\t\t\t$this->nombre_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_tercero->HrefValue = \"\";\n\t\t\t$this->nombre_tercero->TooltipValue = \"\";\n\n\t\t\t// direccion_tercero\n\t\t\t$this->direccion_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion_tercero->HrefValue = \"\";\n\t\t\t$this->direccion_tercero->TooltipValue = \"\";\n\n\t\t\t// telefono1_tercero\n\t\t\t$this->telefono1_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono1_tercero->HrefValue = \"\";\n\t\t\t$this->telefono1_tercero->TooltipValue = \"\";\n\n\t\t\t// telefono2_tercero\n\t\t\t$this->telefono2_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono2_tercero->HrefValue = \"\";\n\t\t\t$this->telefono2_tercero->TooltipValue = \"\";\n\n\t\t\t// fax_tercero\n\t\t\t$this->fax_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->fax_tercero->HrefValue = \"\";\n\t\t\t$this->fax_tercero->TooltipValue = \"\";\n\n\t\t\t// nit_tercero\n\t\t\t$this->nit_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->nit_tercero->HrefValue = \"\";\n\t\t\t$this->nit_tercero->TooltipValue = \"\";\n\n\t\t\t// tipo_tercero\n\t\t\t$this->tipo_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_tercero->HrefValue = \"\";\n\t\t\t$this->tipo_tercero->TooltipValue = \"\";\n\n\t\t\t// e_mail_tercero\n\t\t\t$this->e_mail_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->e_mail_tercero->HrefValue = \"\";\n\t\t\t$this->e_mail_tercero->TooltipValue = \"\";\n\n\t\t\t// Contacto_tercero\n\t\t\t$this->Contacto_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->Contacto_tercero->HrefValue = \"\";\n\t\t\t$this->Contacto_tercero->TooltipValue = \"\";\n\n\t\t\t// gran_contrib_tercero\n\t\t\t$this->gran_contrib_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->gran_contrib_tercero->HrefValue = \"\";\n\t\t\t$this->gran_contrib_tercero->TooltipValue = \"\";\n\n\t\t\t// autoretenedor_tercero\n\t\t\t$this->autoretenedor_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->autoretenedor_tercero->HrefValue = \"\";\n\t\t\t$this->autoretenedor_tercero->TooltipValue = \"\";\n\n\t\t\t// activo_tercero\n\t\t\t$this->activo_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_tercero->HrefValue = \"\";\n\t\t\t$this->activo_tercero->TooltipValue = \"\";\n\n\t\t\t// tercero_ registrado_por\n\t\t\t$this->tercero__registrado_por->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero__registrado_por->HrefValue = \"\";\n\t\t\t$this->tercero__registrado_por->TooltipValue = \"\";\n\n\t\t\t// reg_comun_tercero\n\t\t\t$this->reg_comun_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->reg_comun_tercero->HrefValue = \"\";\n\t\t\t$this->reg_comun_tercero->TooltipValue = \"\";\n\n\t\t\t// responsable_materiales_tercero\n\t\t\t$this->responsable_materiales_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->responsable_materiales_tercero->HrefValue = \"\";\n\t\t\t$this->responsable_materiales_tercero->TooltipValue = \"\";\n\n\t\t\t// grupo_nomina_tercero\n\t\t\t$this->grupo_nomina_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->grupo_nomina_tercero->HrefValue = \"\";\n\t\t\t$this->grupo_nomina_tercero->TooltipValue = \"\";\n\n\t\t\t// tercero_ lider_Obra\n\t\t\t$this->tercero__lider_Obra->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero__lider_Obra->HrefValue = \"\";\n\t\t\t$this->tercero__lider_Obra->TooltipValue = \"\";\n\n\t\t\t// tercero_nombre_lider\n\t\t\t$this->tercero_nombre_lider->LinkCustomAttributes = \"\";\n\t\t\t$this->tercero_nombre_lider->HrefValue = \"\";\n\t\t\t$this->tercero_nombre_lider->TooltipValue = \"\";\n\n\t\t\t// empresa_tercero\n\t\t\t$this->empresa_tercero->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_tercero->HrefValue = \"\";\n\t\t\t$this->empresa_tercero->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// model_id\n\t\t\t$this->model_id->SetDbValueDef($rsnew, $this->model_id->CurrentValue, 0, $this->model_id->ReadOnly);\n\n\t\t\t// title\n\t\t\t$this->title->SetDbValueDef($rsnew, $this->title->CurrentValue, NULL, $this->title->ReadOnly);\n\n\t\t\t// description\n\t\t\t$this->description->SetDbValueDef($rsnew, $this->description->CurrentValue, NULL, $this->description->ReadOnly);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->SetDbValueDef($rsnew, $this->s_order->CurrentValue, 0, $this->s_order->ReadOnly);\n\n\t\t\t// status\n\t\t\t$this->status->SetDbValueDef($rsnew, $this->status->CurrentValue, 0, $this->status->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->pro_base_price->FormValue == $this->pro_base_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_base_price->CurrentValue)))\n\t\t\t$this->pro_base_price->CurrentValue = ew_StrToFloat($this->pro_base_price->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->pro_sell_price->FormValue == $this->pro_sell_price->CurrentValue && is_numeric(ew_StrToFloat($this->pro_sell_price->CurrentValue)))\n\t\t\t$this->pro_sell_price->CurrentValue = ew_StrToFloat($this->pro_sell_price->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// product_id\n\t\t// cat_id\n\t\t// company_id\n\t\t// pro_model\n\t\t// pro_name\n\t\t// pro_description\n\t\t// pro_condition\n\t\t// pro_features\n\t\t// post_date\n\t\t// ads_id\n\t\t// pro_base_price\n\t\t// pro_sell_price\n\t\t// featured_image\n\t\t// folder_image\n\t\t// pro_status\n\t\t// branch_id\n\t\t// lang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// product_id\n\t\t$this->product_id->ViewValue = $this->product_id->CurrentValue;\n\t\t$this->product_id->ViewCustomAttributes = \"\";\n\n\t\t// cat_id\n\t\tif ($this->cat_id->VirtualValue <> \"\") {\n\t\t\t$this->cat_id->ViewValue = $this->cat_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->cat_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categories`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->cat_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->cat_id->ViewCustomAttributes = \"\";\n\n\t\t// company_id\n\t\tif ($this->company_id->VirtualValue <> \"\") {\n\t\t\t$this->company_id->ViewValue = $this->company_id->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->company_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `company`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->company_id->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->company_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_model\n\t\tif ($this->pro_model->VirtualValue <> \"\") {\n\t\t\t$this->pro_model->ViewValue = $this->pro_model->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->pro_model->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `model`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->pro_model->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->pro_model->ViewCustomAttributes = \"\";\n\n\t\t// pro_name\n\t\t$this->pro_name->ViewValue = $this->pro_name->CurrentValue;\n\t\t$this->pro_name->ViewCustomAttributes = \"\";\n\n\t\t// pro_description\n\t\t$this->pro_description->ViewValue = $this->pro_description->CurrentValue;\n\t\t$this->pro_description->ViewCustomAttributes = \"\";\n\n\t\t// pro_condition\n\t\tif (strval($this->pro_condition->CurrentValue) <> \"\") {\n\t\t\t$this->pro_condition->ViewValue = $this->pro_condition->OptionCaption($this->pro_condition->CurrentValue);\n\t\t} else {\n\t\t\t$this->pro_condition->ViewValue = NULL;\n\t\t}\n\t\t$this->pro_condition->ViewCustomAttributes = \"\";\n\n\t\t// pro_features\n\t\t$this->pro_features->ViewValue = $this->pro_features->CurrentValue;\n\t\t$this->pro_features->ViewCustomAttributes = \"\";\n\n\t\t// post_date\n\t\t$this->post_date->ViewValue = $this->post_date->CurrentValue;\n\t\t$this->post_date->ViewValue = ew_FormatDateTime($this->post_date->ViewValue, 1);\n\t\t$this->post_date->ViewCustomAttributes = \"\";\n\n\t\t// ads_id\n\t\t$this->ads_id->ViewValue = $this->ads_id->CurrentValue;\n\t\t$this->ads_id->ViewCustomAttributes = \"\";\n\n\t\t// pro_base_price\n\t\t$this->pro_base_price->ViewValue = $this->pro_base_price->CurrentValue;\n\t\t$this->pro_base_price->ViewCustomAttributes = \"\";\n\n\t\t// pro_sell_price\n\t\t$this->pro_sell_price->ViewValue = $this->pro_sell_price->CurrentValue;\n\t\t$this->pro_sell_price->ViewCustomAttributes = \"\";\n\n\t\t// featured_image\n\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t$this->featured_image->ViewValue = $this->featured_image->Upload->DbValue;\n\t\t} else {\n\t\t\t$this->featured_image->ViewValue = \"\";\n\t\t}\n\t\t$this->featured_image->ViewCustomAttributes = \"\";\n\n\t\t// folder_image\n\t\tif ($this->folder_image->VirtualValue <> \"\") {\n\t\t\t$this->folder_image->ViewValue = $this->folder_image->VirtualValue;\n\t\t} else {\n\t\tif (strval($this->folder_image->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `product_gallery`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $this->folder_image->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->folder_image->ViewValue = NULL;\n\t\t}\n\t\t}\n\t\t$this->folder_image->ViewCustomAttributes = \"\";\n\n\t\t// pro_status\n\t\tif (ew_ConvertToBool($this->pro_status->CurrentValue)) {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(1) <> \"\" ? $this->pro_status->FldTagCaption(1) : \"Yes\";\n\t\t} else {\n\t\t\t$this->pro_status->ViewValue = $this->pro_status->FldTagCaption(2) <> \"\" ? $this->pro_status->FldTagCaption(2) : \"No\";\n\t\t}\n\t\t$this->pro_status->ViewCustomAttributes = \"\";\n\n\t\t// branch_id\n\t\tif (strval($this->branch_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `branch`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = $rswrk->fields('Disp3Fld');\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->branch_id->ViewValue = NULL;\n\t\t}\n\t\t$this->branch_id->ViewCustomAttributes = \"\";\n\n\t\t// lang\n\t\tif (strval($this->lang->CurrentValue) <> \"\") {\n\t\t\t$this->lang->ViewValue = $this->lang->OptionCaption($this->lang->CurrentValue);\n\t\t} else {\n\t\t\t$this->lang->ViewValue = NULL;\n\t\t}\n\t\t$this->lang->ViewCustomAttributes = \"\";\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\t\t\t$this->cat_id->TooltipValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\t\t\t$this->company_id->TooltipValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\t\t\t$this->pro_model->TooltipValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\t\t\t$this->pro_name->TooltipValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\t\t\t$this->pro_description->TooltipValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\t\t\t$this->pro_condition->TooltipValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\t\t\t$this->pro_features->TooltipValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\t\t\t$this->post_date->TooltipValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\t\t\t$this->ads_id->TooltipValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\t\t\t$this->pro_base_price->TooltipValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\t\t\t$this->pro_sell_price->TooltipValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\t\t\t$this->featured_image->TooltipValue = \"\";\n\t\t\tif ($this->featured_image->UseColorbox) {\n\t\t\t\tif (ew_Empty($this->featured_image->TooltipValue))\n\t\t\t\t\t$this->featured_image->LinkAttrs[\"title\"] = $Language->Phrase(\"ViewImageGallery\");\n\t\t\t\t$this->featured_image->LinkAttrs[\"data-rel\"] = \"products_x_featured_image\";\n\t\t\t\tew_AppendClass($this->featured_image->LinkAttrs[\"class\"], \"ewLightbox\");\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\t\t\t$this->folder_image->TooltipValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\t\t\t$this->pro_status->TooltipValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\t\t\t$this->branch_id->TooltipValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t\t$this->lang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->cat_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`cat_id`\" . ew_SearchString(\"=\", $this->cat_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `cat_id`, `cat_name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `categories`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->cat_id->LookupFilters = array(\"dx1\" => '`cat_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->cat_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->cat_id->ViewValue = $this->cat_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->cat_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->cat_id->EditValue = $arwrk;\n\n\t\t\t// company_id\n\t\t\t$this->company_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->company_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`company_id`\" . ew_SearchString(\"=\", $this->company_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `company_id`, `com_fname` AS `DispFld`, `com_lname` AS `Disp2Fld`, `com_name` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `company`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->company_id->LookupFilters = array(\"dx1\" => '`com_fname`', \"dx2\" => '`com_lname`', \"dx3\" => '`com_name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->company_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->company_id->ViewValue = $this->company_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->company_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->company_id->EditValue = $arwrk;\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->pro_model->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`model_id`\" . ew_SearchString(\"=\", $this->pro_model->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `model_id`, `name` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `model`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->pro_model->LookupFilters = array(\"dx1\" => '`name`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->pro_model, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$this->pro_model->ViewValue = $this->pro_model->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->pro_model->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->pro_model->EditValue = $arwrk;\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_name->EditCustomAttributes = \"\";\n\t\t\t$this->pro_name->EditValue = ew_HtmlEncode($this->pro_name->CurrentValue);\n\t\t\t$this->pro_name->PlaceHolder = ew_RemoveHtml($this->pro_name->FldCaption());\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_description->EditCustomAttributes = \"\";\n\t\t\t$this->pro_description->EditValue = ew_HtmlEncode($this->pro_description->CurrentValue);\n\t\t\t$this->pro_description->PlaceHolder = ew_RemoveHtml($this->pro_description->FldCaption());\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_condition->EditCustomAttributes = \"\";\n\t\t\t$this->pro_condition->EditValue = $this->pro_condition->Options(TRUE);\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_features->EditCustomAttributes = \"\";\n\t\t\t$this->pro_features->EditValue = ew_HtmlEncode($this->pro_features->CurrentValue);\n\t\t\t$this->pro_features->PlaceHolder = ew_RemoveHtml($this->pro_features->FldCaption());\n\n\t\t\t// post_date\n\t\t\t// ads_id\n\n\t\t\t$this->ads_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ads_id->EditCustomAttributes = \"\";\n\t\t\t$this->ads_id->EditValue = ew_HtmlEncode($this->ads_id->CurrentValue);\n\t\t\t$this->ads_id->PlaceHolder = ew_RemoveHtml($this->ads_id->FldCaption());\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_base_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->EditValue = ew_HtmlEncode($this->pro_base_price->CurrentValue);\n\t\t\t$this->pro_base_price->PlaceHolder = ew_RemoveHtml($this->pro_base_price->FldCaption());\n\t\t\tif (strval($this->pro_base_price->EditValue) <> \"\" && is_numeric($this->pro_base_price->EditValue)) $this->pro_base_price->EditValue = ew_FormatNumber($this->pro_base_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pro_sell_price->EditCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->EditValue = ew_HtmlEncode($this->pro_sell_price->CurrentValue);\n\t\t\t$this->pro_sell_price->PlaceHolder = ew_RemoveHtml($this->pro_sell_price->FldCaption());\n\t\t\tif (strval($this->pro_sell_price->EditValue) <> \"\" && is_numeric($this->pro_sell_price->EditValue)) $this->pro_sell_price->EditValue = ew_FormatNumber($this->pro_sell_price->EditValue, -2, -1, -2, 0);\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->featured_image->EditCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->ImageWidth = 0;\n\t\t\t\t$this->featured_image->ImageHeight = 94;\n\t\t\t\t$this->featured_image->ImageAlt = $this->featured_image->FldAlt();\n\t\t\t\t$this->featured_image->EditValue = $this->featured_image->Upload->DbValue;\n\t\t\t} else {\n\t\t\t\t$this->featured_image->EditValue = \"\";\n\t\t\t}\n\t\t\tif (!ew_Empty($this->featured_image->CurrentValue))\n\t\t\t\t\t$this->featured_image->Upload->FileName = $this->featured_image->CurrentValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->folder_image->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$arwrk = explode(\",\", $this->folder_image->CurrentValue);\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t\t$sFilterWrk .= \"`pro_gallery_id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT DISTINCT `pro_gallery_id`, `image` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `product_gallery`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->folder_image->LookupFilters = array(\"dx1\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->folder_image, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->folder_image->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->folder_image->ViewValue .= $this->folder_image->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->folder_image->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->MoveFirst();\n\t\t\t} else {\n\t\t\t\t$this->folder_image->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->folder_image->EditValue = $arwrk;\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->EditCustomAttributes = \"\";\n\t\t\t$this->pro_status->EditValue = $this->pro_status->Options(FALSE);\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->branch_id->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`branch_id`\" . ew_SearchString(\"=\", $this->branch_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `branch_id`, `branch_id` AS `DispFld`, `name` AS `Disp2Fld`, `image` AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `branch`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->branch_id->LookupFilters = array(\"dx1\" => '`branch_id`', \"dx2\" => '`name`', \"dx3\" => '`image`');\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->branch_id, $sWhereWrk); // Call Lookup Selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t$arwrk[3] = ew_HtmlEncode($rswrk->fields('Disp3Fld'));\n\t\t\t\t$this->branch_id->ViewValue = $this->branch_id->DisplayValue($arwrk);\n\t\t\t} else {\n\t\t\t\t$this->branch_id->ViewValue = $Language->Phrase(\"PleaseSelect\");\n\t\t\t}\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->branch_id->EditValue = $arwrk;\n\n\t\t\t// lang\n\t\t\t$this->lang->EditCustomAttributes = \"\";\n\t\t\t$this->lang->EditValue = $this->lang->Options(TRUE);\n\n\t\t\t// Edit refer script\n\t\t\t// cat_id\n\n\t\t\t$this->cat_id->LinkCustomAttributes = \"\";\n\t\t\t$this->cat_id->HrefValue = \"\";\n\n\t\t\t// company_id\n\t\t\t$this->company_id->LinkCustomAttributes = \"\";\n\t\t\t$this->company_id->HrefValue = \"\";\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_model->HrefValue = \"\";\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_name->HrefValue = \"\";\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_description->HrefValue = \"\";\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_condition->HrefValue = \"\";\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_features->HrefValue = \"\";\n\n\t\t\t// post_date\n\t\t\t$this->post_date->LinkCustomAttributes = \"\";\n\t\t\t$this->post_date->HrefValue = \"\";\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->LinkCustomAttributes = \"\";\n\t\t\t$this->ads_id->HrefValue = \"\";\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_base_price->HrefValue = \"\";\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_sell_price->HrefValue = \"\";\n\n\t\t\t// featured_image\n\t\t\t$this->featured_image->LinkCustomAttributes = \"\";\n\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\tif (!ew_Empty($this->featured_image->Upload->DbValue)) {\n\t\t\t\t$this->featured_image->HrefValue = ew_GetFileUploadUrl($this->featured_image, $this->featured_image->Upload->DbValue); // Add prefix/suffix\n\t\t\t\t$this->featured_image->LinkAttrs[\"target\"] = \"\"; // Add target\n\t\t\t\tif ($this->Export <> \"\") $this->featured_image->HrefValue = ew_FullUrl($this->featured_image->HrefValue, \"href\");\n\t\t\t} else {\n\t\t\t\t$this->featured_image->HrefValue = \"\";\n\t\t\t}\n\t\t\t$this->featured_image->HrefValue2 = $this->featured_image->UploadPath . $this->featured_image->Upload->DbValue;\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->LinkCustomAttributes = \"\";\n\t\t\t$this->folder_image->HrefValue = \"\";\n\n\t\t\t// pro_status\n\t\t\t$this->pro_status->LinkCustomAttributes = \"\";\n\t\t\t$this->pro_status->HrefValue = \"\";\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->LinkCustomAttributes = \"\";\n\t\t\t$this->branch_id->HrefValue = \"\";\n\n\t\t\t// lang\n\t\t\t$this->lang->LinkCustomAttributes = \"\";\n\t\t\t$this->lang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD || $this->RowType == EW_ROWTYPE_EDIT || $this->RowType == EW_ROWTYPE_SEARCH) // Add/Edit/Search row\n\t\t\t$this->SetupFieldTitles();\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$this->Ruta_Archivo->OldUploadPath = 'ArchivosPase';\r\n\t\t\t$this->Ruta_Archivo->UploadPath = $this->Ruta_Archivo->OldUploadPath;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->SetDbValueDef($rsnew, $this->Serie_Equipo->CurrentValue, NULL, $this->Serie_Equipo->ReadOnly);\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->SetDbValueDef($rsnew, $this->Id_Hardware->CurrentValue, NULL, $this->Id_Hardware->ReadOnly);\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly);\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->SetDbValueDef($rsnew, $this->Modelo_Net->CurrentValue, NULL, $this->Modelo_Net->ReadOnly);\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->SetDbValueDef($rsnew, $this->Marca_Arranque->CurrentValue, NULL, $this->Marca_Arranque->ReadOnly);\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->SetDbValueDef($rsnew, $this->Nombre_Titular->CurrentValue, NULL, $this->Nombre_Titular->ReadOnly);\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->SetDbValueDef($rsnew, $this->Dni_Titular->CurrentValue, NULL, $this->Dni_Titular->ReadOnly);\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->SetDbValueDef($rsnew, $this->Cuil_Titular->CurrentValue, NULL, $this->Cuil_Titular->ReadOnly);\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->SetDbValueDef($rsnew, $this->Nombre_Tutor->CurrentValue, NULL, $this->Nombre_Tutor->ReadOnly);\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->SetDbValueDef($rsnew, $this->DniTutor->CurrentValue, NULL, $this->DniTutor->ReadOnly);\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->SetDbValueDef($rsnew, $this->Domicilio->CurrentValue, NULL, $this->Domicilio->ReadOnly);\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->SetDbValueDef($rsnew, $this->Tel_Tutor->CurrentValue, NULL, $this->Tel_Tutor->ReadOnly);\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->SetDbValueDef($rsnew, $this->CelTutor->CurrentValue, NULL, $this->CelTutor->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Alta->CurrentValue, NULL, $this->Cue_Establecimiento_Alta->ReadOnly);\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->SetDbValueDef($rsnew, $this->Escuela_Alta->CurrentValue, NULL, $this->Escuela_Alta->ReadOnly);\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->SetDbValueDef($rsnew, $this->Directivo_Alta->CurrentValue, NULL, $this->Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->SetDbValueDef($rsnew, $this->Cuil_Directivo_Alta->CurrentValue, NULL, $this->Cuil_Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->SetDbValueDef($rsnew, $this->Dpto_Esc_alta->CurrentValue, NULL, $this->Dpto_Esc_alta->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->SetDbValueDef($rsnew, $this->Localidad_Esc_Alta->CurrentValue, NULL, $this->Localidad_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->SetDbValueDef($rsnew, $this->Domicilio_Esc_Alta->CurrentValue, NULL, $this->Domicilio_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->SetDbValueDef($rsnew, $this->Rte_Alta->CurrentValue, NULL, $this->Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->SetDbValueDef($rsnew, $this->Tel_Rte_Alta->CurrentValue, NULL, $this->Tel_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->SetDbValueDef($rsnew, $this->Email_Rte_Alta->CurrentValue, NULL, $this->Email_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->SetDbValueDef($rsnew, $this->Serie_Server_Alta->CurrentValue, NULL, $this->Serie_Server_Alta->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Baja->CurrentValue, NULL, $this->Cue_Establecimiento_Baja->ReadOnly);\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->SetDbValueDef($rsnew, $this->Escuela_Baja->CurrentValue, NULL, $this->Escuela_Baja->ReadOnly);\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->SetDbValueDef($rsnew, $this->Directivo_Baja->CurrentValue, NULL, $this->Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->SetDbValueDef($rsnew, $this->Cuil_Directivo_Baja->CurrentValue, NULL, $this->Cuil_Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->SetDbValueDef($rsnew, $this->Dpto_Esc_Baja->CurrentValue, NULL, $this->Dpto_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->SetDbValueDef($rsnew, $this->Localidad_Esc_Baja->CurrentValue, NULL, $this->Localidad_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->SetDbValueDef($rsnew, $this->Domicilio_Esc_Baja->CurrentValue, NULL, $this->Domicilio_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->SetDbValueDef($rsnew, $this->Rte_Baja->CurrentValue, NULL, $this->Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->SetDbValueDef($rsnew, $this->Tel_Rte_Baja->CurrentValue, NULL, $this->Tel_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->SetDbValueDef($rsnew, $this->Email_Rte_Baja->CurrentValue, NULL, $this->Email_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->SetDbValueDef($rsnew, $this->Serie_Server_Baja->CurrentValue, NULL, $this->Serie_Server_Baja->ReadOnly);\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->Fecha_Pase->CurrentValue, 7), NULL, $this->Fecha_Pase->ReadOnly);\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->SetDbValueDef($rsnew, $this->Id_Estado_Pase->CurrentValue, 0, $this->Id_Estado_Pase->ReadOnly);\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->ReadOnly && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->Upload->DbValue = $rsold['Ruta_Archivo']; // Get original value\r\n\t\t\t\tif ($this->Ruta_Archivo->Upload->FileName == \"\") {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = NULL;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\r\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file)) {\r\n\t\t\t\t\t\t\t\tif (!in_array($file, $OldFiles)) {\r\n\t\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file); // Get new file name\r\n\t\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\r\n\t\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1)) // Make sure did not clash with existing upload file\r\n\t\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file1, TRUE); // Use indexed name\r\n\t\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file, ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1);\r\n\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->Ruta_Archivo->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t\t\t$NewFiles2 = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $rsnew['Ruta_Archivo']);\r\n\t\t\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $NewFiles[$i];\r\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\r\n\t\t\t\t\t\t\t\t\t\t$this->Ruta_Archivo->Upload->SaveToFile($this->Ruta_Archivo->UploadPath, (@$NewFiles2[$i] <> \"\") ? $NewFiles2[$i] : $NewFiles[$i], TRUE, $i); // Just replace\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$FileCount = count($OldFiles);\r\n\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\r\n\t\t\t\t\t\t\t\t@unlink(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->OldUploadPath) . $OldFiles[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\r\n\t\t// Ruta_Archivo\r\n\t\tew_CleanUploadTempPath($this->Ruta_Archivo, $this->Ruta_Archivo->Upload->Index);\r\n\t\treturn $EditRow;\r\n\t}", "public function edit()\r\n\t{\r\n\t\t$model = $this->getProfileView();\r\n\t\t$data = array('model'=> $model);\r\n\t\t\r\n\t\treturn $this->render($data);\r\n\r\n\t}", "public function getEditRaw();", "function RenderRow() {\n\tglobal $conn, $Security, $dpp_proveedores;\n\n\t// Call Row Rendering event\n\t$dpp_proveedores->Row_Rendering();\n\n\t// Common render codes for all row types\n\t// provee_id\n\n\t$dpp_proveedores->provee_id->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_id->CellCssClass = \"\";\n\n\t// provee_rut\n\t$dpp_proveedores->provee_rut->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_rut->CellCssClass = \"\";\n\n\t// provee_dig\n\t$dpp_proveedores->provee_dig->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dig->CellCssClass = \"\";\n\n\t// provee_cat_juri\n\t$dpp_proveedores->provee_cat_juri->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_cat_juri->CellCssClass = \"\";\n\n\t// provee_nombre\n\t$dpp_proveedores->provee_nombre->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_nombre->CellCssClass = \"\";\n\n\t// provee_paterno\n\t$dpp_proveedores->provee_paterno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_paterno->CellCssClass = \"\";\n\n\t// provee_materno\n\t$dpp_proveedores->provee_materno->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_materno->CellCssClass = \"\";\n\n\t// provee_dir\n\t$dpp_proveedores->provee_dir->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_dir->CellCssClass = \"\";\n\n\t// provee_fono\n\t$dpp_proveedores->provee_fono->CellCssStyle = \"\";\n\t$dpp_proveedores->provee_fono->CellCssClass = \"\";\n\tif ($dpp_proveedores->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->ViewValue = $dpp_proveedores->provee_id->CurrentValue;\n\t\t$dpp_proveedores->provee_id->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_id->CssClass = \"\";\n\t\t$dpp_proveedores->provee_id->ViewCustomAttributes = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->ViewValue = $dpp_proveedores->provee_rut->CurrentValue;\n\t\t$dpp_proveedores->provee_rut->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_rut->CssClass = \"\";\n\t\t$dpp_proveedores->provee_rut->ViewCustomAttributes = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->ViewValue = $dpp_proveedores->provee_dig->CurrentValue;\n\t\t$dpp_proveedores->provee_dig->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dig->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dig->ViewCustomAttributes = \"\";\n\n\t\t// provee_cat_juri\n\t\tif (!is_null($dpp_proveedores->provee_cat_juri->CurrentValue)) {\n\t\t\tswitch ($dpp_proveedores->provee_cat_juri->CurrentValue) {\n\t\t\t\tcase \"Natural\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Natural\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Juridica\":\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = \"Juridica\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = $dpp_proveedores->provee_cat_juri->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$dpp_proveedores->provee_cat_juri->ViewValue = NULL;\n\t\t}\n\t\t$dpp_proveedores->provee_cat_juri->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->CssClass = \"\";\n\t\t$dpp_proveedores->provee_cat_juri->ViewCustomAttributes = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->ViewValue = $dpp_proveedores->provee_nombre->CurrentValue;\n\t\t$dpp_proveedores->provee_nombre->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_nombre->CssClass = \"\";\n\t\t$dpp_proveedores->provee_nombre->ViewCustomAttributes = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->ViewValue = $dpp_proveedores->provee_paterno->CurrentValue;\n\t\t$dpp_proveedores->provee_paterno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_paterno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_paterno->ViewCustomAttributes = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->ViewValue = $dpp_proveedores->provee_materno->CurrentValue;\n\t\t$dpp_proveedores->provee_materno->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_materno->CssClass = \"\";\n\t\t$dpp_proveedores->provee_materno->ViewCustomAttributes = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->ViewValue = $dpp_proveedores->provee_dir->CurrentValue;\n\t\t$dpp_proveedores->provee_dir->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_dir->CssClass = \"\";\n\t\t$dpp_proveedores->provee_dir->ViewCustomAttributes = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->ViewValue = $dpp_proveedores->provee_fono->CurrentValue;\n\t\t$dpp_proveedores->provee_fono->CssStyle = \"\";\n\t\t$dpp_proveedores->provee_fono->CssClass = \"\";\n\t\t$dpp_proveedores->provee_fono->ViewCustomAttributes = \"\";\n\n\t\t// provee_id\n\t\t$dpp_proveedores->provee_id->HrefValue = \"\";\n\n\t\t// provee_rut\n\t\t$dpp_proveedores->provee_rut->HrefValue = \"\";\n\n\t\t// provee_dig\n\t\t$dpp_proveedores->provee_dig->HrefValue = \"\";\n\n\t\t// provee_cat_juri\n\t\t$dpp_proveedores->provee_cat_juri->HrefValue = \"\";\n\n\t\t// provee_nombre\n\t\t$dpp_proveedores->provee_nombre->HrefValue = \"\";\n\n\t\t// provee_paterno\n\t\t$dpp_proveedores->provee_paterno->HrefValue = \"\";\n\n\t\t// provee_materno\n\t\t$dpp_proveedores->provee_materno->HrefValue = \"\";\n\n\t\t// provee_dir\n\t\t$dpp_proveedores->provee_dir->HrefValue = \"\";\n\n\t\t// provee_fono\n\t\t$dpp_proveedores->provee_fono->HrefValue = \"\";\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_ADD) { // Add row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\t} elseif ($dpp_proveedores->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\t}\n\n\t// Call Row Rendered event\n\t$dpp_proveedores->Row_Rendered();\n}", "function RenderRow() {\n\t\tglobal $conn, $Security, $responsable;\n\n\t\t// Call Row_Rendering event\n\t\t$responsable->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idGerente\n\n\t\t$responsable->idGerente->CellCssStyle = \"\";\n\t\t$responsable->idGerente->CellCssClass = \"\";\n\n\t\t// idMer\n\t\t$responsable->idMer->CellCssStyle = \"\";\n\t\t$responsable->idMer->CellCssClass = \"\";\n\n\t\t// fecha\n\t\t$responsable->fecha->CellCssStyle = \"\";\n\t\t$responsable->fecha->CellCssClass = \"\";\n\n\t\t// habilitado\n\t\t$responsable->habilitado->CellCssStyle = \"\";\n\t\t$responsable->habilitado->CellCssClass = \"\";\n\t\tif ($responsable->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idResponsable\n\t\t\t$responsable->idResponsable->ViewValue = $responsable->idResponsable->CurrentValue;\n\t\t\t$responsable->idResponsable->CssStyle = \"\";\n\t\t\t$responsable->idResponsable->CssClass = \"\";\n\t\t\t$responsable->idResponsable->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\tif (strval($responsable->idGerente->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `nombre`, `paterno` FROM `usuario` WHERE `idUsuario` = \" . ew_AdjustSql($responsable->idGerente->CurrentValue) . \"\";\n\t\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idGerente->ViewValue = $rswrk->fields('nombre');\n\t\t\t\t\t$responsable->idGerente->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('paterno');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idGerente->ViewValue = $responsable->idGerente->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idGerente->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idGerente->CssStyle = \"\";\n\t\t\t$responsable->idGerente->CssClass = \"\";\n\t\t\t$responsable->idGerente->ViewCustomAttributes = \"\";\n\n\t\t\t// idMer\n\t\t\tif (strval($responsable->idMer->CurrentValue) <> \"\") {\n\t\t\t\t$sSqlWrk = \"SELECT `mer` FROM `mer` WHERE `idMer` = \" . ew_AdjustSql($responsable->idMer->CurrentValue) . \"\";\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\n\t\t\t\t\t$responsable->idMer->ViewValue = $rswrk->fields('mer');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$responsable->idMer->ViewValue = $responsable->idMer->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$responsable->idMer->ViewValue = NULL;\n\t\t\t}\n\t\t\t$responsable->idMer->CssStyle = \"\";\n\t\t\t$responsable->idMer->CssClass = \"\";\n\t\t\t$responsable->idMer->ViewCustomAttributes = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->ViewValue = $responsable->fecha->CurrentValue;\n\t\t\t$responsable->fecha->ViewValue = ew_FormatDateTime($responsable->fecha->ViewValue, 7);\n\t\t\t$responsable->fecha->CssStyle = \"\";\n\t\t\t$responsable->fecha->CssClass = \"\";\n\t\t\t$responsable->fecha->ViewCustomAttributes = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->ViewValue = $responsable->habilitado->CurrentValue;\n\t\t\t$responsable->habilitado->CssStyle = \"\";\n\t\t\t$responsable->habilitado->CssClass = \"\";\n\t\t\t$responsable->habilitado->ViewCustomAttributes = \"\";\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->HrefValue = \"\";\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->HrefValue = \"\";\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->HrefValue = \"\";\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->HrefValue = \"\";\n\t\t} elseif ($responsable->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// idGerente\n\t\t\t$responsable->idGerente->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idUsuario`, `paterno`, `nombre`, '' AS SelectFilterFld FROM `usuario`\";\n\t\t\t$sWhereWrk = \"idRol='2'\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `paterno` Asc\";\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\", \"\"));\n\t\t\t$responsable->idGerente->EditValue = $arwrk;\n\n\t\t\t// idMer\n\t\t\t$responsable->idMer->EditCustomAttributes = \"\";\n\t\t\t$sSqlWrk = \"SELECT `idMer`, `mer`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `mer`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\n\t\t\t$sSqlWrk .= \" ORDER BY `mer` Asc\";\n $rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", \"Por favor Seleccione\"));\n\t\t\t$responsable->idMer->EditValue = $arwrk;\n\n\t\t\t// fecha\n\t\t\t$responsable->fecha->EditCustomAttributes = \"\";\n\t\t\t$responsable->fecha->EditValue = ew_HtmlEncode(ew_FormatDateTime($responsable->fecha->CurrentValue, 7));\n\n\t\t\t// habilitado\n\t\t\t$responsable->habilitado->EditCustomAttributes = \"\";\n\t\t\t$responsable->habilitado->EditValue = ew_HtmlEncode($responsable->habilitado->CurrentValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$responsable->Row_Rendered();\n\t}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$this->featured_image->OldUploadPath = \"../uploads/product/\";\n\t\t\t$this->featured_image->UploadPath = $this->featured_image->OldUploadPath;\n\t\t\t$rsnew = array();\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->SetDbValueDef($rsnew, $this->cat_id->CurrentValue, 0, $this->cat_id->ReadOnly || $this->cat_id->MultiUpdate <> \"1\");\n\n\t\t\t// company_id\n\t\t\t$this->company_id->SetDbValueDef($rsnew, $this->company_id->CurrentValue, 0, $this->company_id->ReadOnly || $this->company_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->SetDbValueDef($rsnew, $this->pro_model->CurrentValue, NULL, $this->pro_model->ReadOnly || $this->pro_model->MultiUpdate <> \"1\");\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->SetDbValueDef($rsnew, $this->pro_name->CurrentValue, NULL, $this->pro_name->ReadOnly || $this->pro_name->MultiUpdate <> \"1\");\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->SetDbValueDef($rsnew, $this->pro_description->CurrentValue, NULL, $this->pro_description->ReadOnly || $this->pro_description->MultiUpdate <> \"1\");\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->SetDbValueDef($rsnew, $this->pro_condition->CurrentValue, NULL, $this->pro_condition->ReadOnly || $this->pro_condition->MultiUpdate <> \"1\");\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->SetDbValueDef($rsnew, $this->pro_features->CurrentValue, NULL, $this->pro_features->ReadOnly || $this->pro_features->MultiUpdate <> \"1\");\n\n\t\t\t// post_date\n\t\t\t$this->post_date->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['post_date'] = &$this->post_date->DbValue;\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->SetDbValueDef($rsnew, $this->ads_id->CurrentValue, NULL, $this->ads_id->ReadOnly || $this->ads_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->SetDbValueDef($rsnew, $this->pro_base_price->CurrentValue, NULL, $this->pro_base_price->ReadOnly || $this->pro_base_price->MultiUpdate <> \"1\");\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->SetDbValueDef($rsnew, $this->pro_sell_price->CurrentValue, NULL, $this->pro_sell_price->ReadOnly || $this->pro_sell_price->MultiUpdate <> \"1\");\n\n\t\t\t// featured_image\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->ReadOnly && strval($this->featured_image->MultiUpdate) == \"1\" && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->Upload->DbValue = $rsold['featured_image']; // Get original value\n\t\t\t\tif ($this->featured_image->Upload->FileName == \"\") {\n\t\t\t\t\t$rsnew['featured_image'] = NULL;\n\t\t\t\t} else {\n\t\t\t\t\t$rsnew['featured_image'] = $this->featured_image->Upload->FileName;\n\t\t\t\t}\n\t\t\t\t$this->featured_image->ImageWidth = 875; // Resize width\n\t\t\t\t$this->featured_image->ImageHeight = 665; // Resize height\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->SetDbValueDef($rsnew, $this->folder_image->CurrentValue, \"\", $this->folder_image->ReadOnly || $this->folder_image->MultiUpdate <> \"1\");\n\n\t\t\t// pro_status\n\t\t\t$tmpBool = $this->pro_status->CurrentValue;\n\t\t\tif ($tmpBool <> \"Y\" && $tmpBool <> \"N\")\n\t\t\t\t$tmpBool = (!empty($tmpBool)) ? \"Y\" : \"N\";\n\t\t\t$this->pro_status->SetDbValueDef($rsnew, $tmpBool, \"N\", $this->pro_status->ReadOnly || $this->pro_status->MultiUpdate <> \"1\");\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->SetDbValueDef($rsnew, $this->branch_id->CurrentValue, NULL, $this->branch_id->ReadOnly || $this->branch_id->MultiUpdate <> \"1\");\n\n\t\t\t// lang\n\t\t\t$this->lang->SetDbValueDef($rsnew, $this->lang->CurrentValue, \"\", $this->lang->ReadOnly || $this->lang->MultiUpdate <> \"1\");\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file)) {\n\t\t\t\t\t\t\t\t$OldFileFound = FALSE;\n\t\t\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\t\t\tfor ($j = 0; $j < $OldFileCount; $j++) {\n\t\t\t\t\t\t\t\t\t$file1 = $OldFiles[$j];\n\t\t\t\t\t\t\t\t\tif ($file1 == $file) { // Old file found, no need to delete anymore\n\t\t\t\t\t\t\t\t\t\tunset($OldFiles[$j]);\n\t\t\t\t\t\t\t\t\t\t$OldFileFound = TRUE;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($OldFileFound) // No need to check if file exists further\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx($this->featured_image->PhysicalUploadPath(), $file); // Get new file name\n\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\n\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1) || file_exists($this->featured_image->PhysicalUploadPath() . $file1)) // Make sure no file name clash\n\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename($this->featured_image->PhysicalUploadPath(), $file1, TRUE); // Use indexed name\n\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file, ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1);\n\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->featured_image->Upload->DbValue = empty($OldFiles) ? \"\" : implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $OldFiles);\n\t\t\t\t\t$this->featured_image->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\n\t\t\t\t\t$this->featured_image->SetDbValueDef($rsnew, $this->featured_image->Upload->FileName, \"\", $this->featured_image->ReadOnly || $this->featured_image->MultiUpdate <> \"1\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t\t\t$NewFiles2 = array($rsnew['featured_image']);\n\t\t\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $NewFiles[$i];\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\n\t\t\t\t\t\t\t\t\t\tif (@$NewFiles2[$i] <> \"\") // Use correct file name\n\t\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $NewFiles2[$i];\n\t\t\t\t\t\t\t\t\t\tif (!$this->featured_image->Upload->ResizeAndSaveToFile($this->featured_image->ImageWidth, $this->featured_image->ImageHeight, EW_THUMBNAIL_DEFAULT_QUALITY, $NewFiles[$i], TRUE, $i)) {\n\t\t\t\t\t\t\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UploadErrMsg7\"));\n\t\t\t\t\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$NewFiles = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\tfor ($i = 0; $i < $OldFileCount; $i++) {\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\n\t\t\t\t\t\t\t\t@unlink($this->featured_image->OldPhysicalUploadPath() . $OldFiles[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\n\t\t// featured_image\n\t\tew_CleanUploadTempPath($this->featured_image, $this->featured_image->Upload->Index);\n\t\treturn $EditRow;\n\t}", "function output_rich_editor_row( string $label, string $key, $val, array $settings = array() ): void {\n\t\t\\wpinc\\meta\\output_rich_editor_row( $label, $key, $val, $settings );\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $selection_grade_point;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$selection_grade_point->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// selection_grade_points_id\n\n\t\t$selection_grade_point->selection_grade_points_id->CellCssStyle = \"\"; $selection_grade_point->selection_grade_points_id->CellCssClass = \"\";\n\t\t$selection_grade_point->selection_grade_points_id->CellAttrs = array(); $selection_grade_point->selection_grade_points_id->ViewAttrs = array(); $selection_grade_point->selection_grade_points_id->EditAttrs = array();\n\n\t\t// grade_point\n\t\t$selection_grade_point->grade_point->CellCssStyle = \"\"; $selection_grade_point->grade_point->CellCssClass = \"\";\n\t\t$selection_grade_point->grade_point->CellAttrs = array(); $selection_grade_point->grade_point->ViewAttrs = array(); $selection_grade_point->grade_point->EditAttrs = array();\n\n\t\t// min_grade\n\t\t$selection_grade_point->min_grade->CellCssStyle = \"\"; $selection_grade_point->min_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->min_grade->CellAttrs = array(); $selection_grade_point->min_grade->ViewAttrs = array(); $selection_grade_point->min_grade->EditAttrs = array();\n\n\t\t// max_grade\n\t\t$selection_grade_point->max_grade->CellCssStyle = \"\"; $selection_grade_point->max_grade->CellCssClass = \"\";\n\t\t$selection_grade_point->max_grade->CellAttrs = array(); $selection_grade_point->max_grade->ViewAttrs = array(); $selection_grade_point->max_grade->EditAttrs = array();\n\t\tif ($selection_grade_point->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->ViewValue = $selection_grade_point->grade_point->CurrentValue;\n\t\t\t$selection_grade_point->grade_point->CssStyle = \"\";\n\t\t\t$selection_grade_point->grade_point->CssClass = \"\";\n\t\t\t$selection_grade_point->grade_point->ViewCustomAttributes = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->ViewValue = $selection_grade_point->min_grade->CurrentValue;\n\t\t\t$selection_grade_point->min_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->min_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->min_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->ViewValue = $selection_grade_point->max_grade->CurrentValue;\n\t\t\t$selection_grade_point->max_grade->CssStyle = \"\";\n\t\t\t$selection_grade_point->max_grade->CssClass = \"\";\n\t\t\t$selection_grade_point->max_grade->ViewCustomAttributes = \"\";\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->TooltipValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\t\t\t$selection_grade_point->grade_point->TooltipValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->min_grade->TooltipValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t\t$selection_grade_point->max_grade->TooltipValue = \"\";\n\t\t} elseif ($selection_grade_point->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// selection_grade_points_id\n\t\t\t$selection_grade_point->selection_grade_points_id->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->EditValue = $selection_grade_point->selection_grade_points_id->CurrentValue;\n\t\t\t$selection_grade_point->selection_grade_points_id->CssStyle = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->CssClass = \"\";\n\t\t\t$selection_grade_point->selection_grade_points_id->ViewCustomAttributes = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->grade_point->EditValue = ew_HtmlEncode($selection_grade_point->grade_point->CurrentValue);\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->min_grade->EditValue = ew_HtmlEncode($selection_grade_point->min_grade->CurrentValue);\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->EditCustomAttributes = \"\";\n\t\t\t$selection_grade_point->max_grade->EditValue = ew_HtmlEncode($selection_grade_point->max_grade->CurrentValue);\n\n\t\t\t// Edit refer script\n\t\t\t// selection_grade_points_id\n\n\t\t\t$selection_grade_point->selection_grade_points_id->HrefValue = \"\";\n\n\t\t\t// grade_point\n\t\t\t$selection_grade_point->grade_point->HrefValue = \"\";\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->HrefValue = \"\";\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($selection_grade_point->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$selection_grade_point->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id_admission\n\t\t// nomr\n\t\t// ket_nama\n\t\t// ket_tgllahir\n\t\t// ket_alamat\n\t\t// ket_jeniskelamin\n\t\t// ket_title\n\t\t// dokterpengirim\n\t\t// statusbayar\n\t\t// kirimdari\n\t\t// keluargadekat\n\t\t// panggungjawab\n\t\t// masukrs\n\t\t// noruang\n\t\t// tempat_tidur_id\n\t\t// nott\n\t\t// NIP\n\t\t// dokter_penanggungjawab\n\t\t// KELASPERAWATAN_ID\n\t\t// NO_SKP\n\t\t// sep_tglsep\n\t\t// sep_tglrujuk\n\t\t// sep_kodekelasrawat\n\t\t// sep_norujukan\n\t\t// sep_kodeppkasal\n\t\t// sep_namappkasal\n\t\t// sep_kodeppkpelayanan\n\t\t// sep_jenisperawatan\n\t\t// sep_catatan\n\t\t// sep_kodediagnosaawal\n\t\t// sep_namadiagnosaawal\n\t\t// sep_lakalantas\n\t\t// sep_lokasilaka\n\t\t// sep_user\n\t\t// sep_flag_cekpeserta\n\t\t// sep_flag_generatesep\n\t\t// sep_nik\n\t\t// sep_namapeserta\n\t\t// sep_jeniskelamin\n\t\t// sep_pisat\n\t\t// sep_tgllahir\n\t\t// sep_kodejeniskepesertaan\n\t\t// sep_namajeniskepesertaan\n\t\t// sep_nokabpjs\n\t\t// sep_status_peserta\n\t\t// sep_umur_pasien_sekarang\n\t\t// statuskeluarranap_id\n\t\t// keluarrs\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// ket_nama\n\t\t$this->ket_nama->ViewValue = $this->ket_nama->CurrentValue;\n\t\t$this->ket_nama->ViewCustomAttributes = \"\";\n\n\t\t// ket_tgllahir\n\t\t$this->ket_tgllahir->ViewValue = $this->ket_tgllahir->CurrentValue;\n\t\t$this->ket_tgllahir->ViewValue = ew_FormatDateTime($this->ket_tgllahir->ViewValue, 0);\n\t\t$this->ket_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// ket_alamat\n\t\t$this->ket_alamat->ViewValue = $this->ket_alamat->CurrentValue;\n\t\t$this->ket_alamat->ViewCustomAttributes = \"\";\n\n\t\t// ket_jeniskelamin\n\t\t$this->ket_jeniskelamin->ViewValue = $this->ket_jeniskelamin->CurrentValue;\n\t\t$this->ket_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// ket_title\n\t\t$this->ket_title->ViewValue = $this->ket_title->CurrentValue;\n\t\t$this->ket_title->ViewCustomAttributes = \"\";\n\n\t\t// dokterpengirim\n\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokterpengirim->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->ViewValue = $this->dokterpengirim->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokterpengirim->ViewValue = NULL;\n\t\t}\n\t\t$this->dokterpengirim->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->statusbayar->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->statusbayar->ViewValue = NULL;\n\t\t}\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kirimdari\n\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kirimdari->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->ViewValue = $this->kirimdari->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kirimdari->ViewValue = NULL;\n\t\t}\n\t\t$this->kirimdari->ViewCustomAttributes = \"\";\n\n\t\t// keluargadekat\n\t\t$this->keluargadekat->ViewValue = $this->keluargadekat->CurrentValue;\n\t\t$this->keluargadekat->ViewCustomAttributes = \"\";\n\n\t\t// panggungjawab\n\t\t$this->panggungjawab->ViewValue = $this->panggungjawab->CurrentValue;\n\t\t$this->panggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// masukrs\n\t\t$this->masukrs->ViewValue = $this->masukrs->CurrentValue;\n\t\t$this->masukrs->ViewValue = ew_FormatDateTime($this->masukrs->ViewValue, 0);\n\t\t$this->masukrs->ViewCustomAttributes = \"\";\n\n\t\t// noruang\n\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->noruang->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->noruang->ViewValue = $this->noruang->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->noruang->ViewValue = NULL;\n\t\t}\n\t\t$this->noruang->ViewCustomAttributes = \"\";\n\n\t\t// tempat_tidur_id\n\t\t$this->tempat_tidur_id->ViewValue = $this->tempat_tidur_id->CurrentValue;\n\t\t$this->tempat_tidur_id->ViewCustomAttributes = \"\";\n\n\t\t// nott\n\t\t$this->nott->ViewValue = $this->nott->CurrentValue;\n\t\t$this->nott->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// dokter_penanggungjawab\n\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->ViewValue = $this->dokter_penanggungjawab->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->dokter_penanggungjawab->ViewValue = NULL;\n\t\t}\n\t\t$this->dokter_penanggungjawab->ViewCustomAttributes = \"\";\n\n\t\t// KELASPERAWATAN_ID\n\t\t$this->KELASPERAWATAN_ID->ViewValue = $this->KELASPERAWATAN_ID->CurrentValue;\n\t\t$this->KELASPERAWATAN_ID->ViewCustomAttributes = \"\";\n\n\t\t// NO_SKP\n\t\t$this->NO_SKP->ViewValue = $this->NO_SKP->CurrentValue;\n\t\t$this->NO_SKP->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglsep\n\t\t$this->sep_tglsep->ViewValue = $this->sep_tglsep->CurrentValue;\n\t\t$this->sep_tglsep->ViewValue = ew_FormatDateTime($this->sep_tglsep->ViewValue, 5);\n\t\t$this->sep_tglsep->ViewCustomAttributes = \"\";\n\n\t\t// sep_tglrujuk\n\t\t$this->sep_tglrujuk->ViewValue = $this->sep_tglrujuk->CurrentValue;\n\t\t$this->sep_tglrujuk->ViewValue = ew_FormatDateTime($this->sep_tglrujuk->ViewValue, 5);\n\t\t$this->sep_tglrujuk->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodekelasrawat\n\t\t$this->sep_kodekelasrawat->ViewValue = $this->sep_kodekelasrawat->CurrentValue;\n\t\t$this->sep_kodekelasrawat->ViewCustomAttributes = \"\";\n\n\t\t// sep_norujukan\n\t\t$this->sep_norujukan->ViewValue = $this->sep_norujukan->CurrentValue;\n\t\t$this->sep_norujukan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkasal\n\t\t$this->sep_kodeppkasal->ViewValue = $this->sep_kodeppkasal->CurrentValue;\n\t\t$this->sep_kodeppkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namappkasal\n\t\t$this->sep_namappkasal->ViewValue = $this->sep_namappkasal->CurrentValue;\n\t\t$this->sep_namappkasal->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodeppkpelayanan\n\t\t$this->sep_kodeppkpelayanan->ViewValue = $this->sep_kodeppkpelayanan->CurrentValue;\n\t\t$this->sep_kodeppkpelayanan->ViewCustomAttributes = \"\";\n\n\t\t// sep_jenisperawatan\n\t\t$this->sep_jenisperawatan->ViewValue = $this->sep_jenisperawatan->CurrentValue;\n\t\t$this->sep_jenisperawatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_catatan\n\t\t$this->sep_catatan->ViewValue = $this->sep_catatan->CurrentValue;\n\t\t$this->sep_catatan->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodediagnosaawal\n\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->ViewValue = $this->sep_kodediagnosaawal->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_kodediagnosaawal->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_kodediagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_namadiagnosaawal\n\t\t$this->sep_namadiagnosaawal->ViewValue = $this->sep_namadiagnosaawal->CurrentValue;\n\t\t$this->sep_namadiagnosaawal->ViewCustomAttributes = \"\";\n\n\t\t// sep_lakalantas\n\t\tif (strval($this->sep_lakalantas->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sep_lakalantas->ViewValue = $this->sep_lakalantas->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_lakalantas->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_lakalantas->ViewCustomAttributes = \"\";\n\n\t\t// sep_lokasilaka\n\t\t$this->sep_lokasilaka->ViewValue = $this->sep_lokasilaka->CurrentValue;\n\t\t$this->sep_lokasilaka->ViewCustomAttributes = \"\";\n\n\t\t// sep_user\n\t\t$this->sep_user->ViewValue = $this->sep_user->CurrentValue;\n\t\t$this->sep_user->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_cekpeserta\n\t\tif (strval($this->sep_flag_cekpeserta->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_cekpeserta->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_cekpeserta->ViewValue .= $this->sep_flag_cekpeserta->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_cekpeserta->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_cekpeserta->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_cekpeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_flag_generatesep\n\t\tif (strval($this->sep_flag_generatesep->CurrentValue) <> \"\") {\n\t\t\t$this->sep_flag_generatesep->ViewValue = \"\";\n\t\t\t$arwrk = explode(\",\", strval($this->sep_flag_generatesep->CurrentValue));\n\t\t\t$cnt = count($arwrk);\n\t\t\tfor ($ari = 0; $ari < $cnt; $ari++) {\n\t\t\t\t$this->sep_flag_generatesep->ViewValue .= $this->sep_flag_generatesep->OptionCaption(trim($arwrk[$ari]));\n\t\t\t\tif ($ari < $cnt-1) $this->sep_flag_generatesep->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sep_flag_generatesep->ViewValue = NULL;\n\t\t}\n\t\t$this->sep_flag_generatesep->ViewCustomAttributes = \"\";\n\n\t\t// sep_nik\n\t\t$this->sep_nik->ViewValue = $this->sep_nik->CurrentValue;\n\t\t$this->sep_nik->ViewCustomAttributes = \"\";\n\n\t\t// sep_namapeserta\n\t\t$this->sep_namapeserta->ViewValue = $this->sep_namapeserta->CurrentValue;\n\t\t$this->sep_namapeserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_jeniskelamin\n\t\t$this->sep_jeniskelamin->ViewValue = $this->sep_jeniskelamin->CurrentValue;\n\t\t$this->sep_jeniskelamin->ViewCustomAttributes = \"\";\n\n\t\t// sep_pisat\n\t\t$this->sep_pisat->ViewValue = $this->sep_pisat->CurrentValue;\n\t\t$this->sep_pisat->ViewCustomAttributes = \"\";\n\n\t\t// sep_tgllahir\n\t\t$this->sep_tgllahir->ViewValue = $this->sep_tgllahir->CurrentValue;\n\t\t$this->sep_tgllahir->ViewCustomAttributes = \"\";\n\n\t\t// sep_kodejeniskepesertaan\n\t\t$this->sep_kodejeniskepesertaan->ViewValue = $this->sep_kodejeniskepesertaan->CurrentValue;\n\t\t$this->sep_kodejeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_namajeniskepesertaan\n\t\t$this->sep_namajeniskepesertaan->ViewValue = $this->sep_namajeniskepesertaan->CurrentValue;\n\t\t$this->sep_namajeniskepesertaan->ViewCustomAttributes = \"\";\n\n\t\t// sep_nokabpjs\n\t\t$this->sep_nokabpjs->ViewValue = $this->sep_nokabpjs->CurrentValue;\n\t\t$this->sep_nokabpjs->ViewCustomAttributes = \"\";\n\n\t\t// sep_status_peserta\n\t\t$this->sep_status_peserta->ViewValue = $this->sep_status_peserta->CurrentValue;\n\t\t$this->sep_status_peserta->ViewCustomAttributes = \"\";\n\n\t\t// sep_umur_pasien_sekarang\n\t\t$this->sep_umur_pasien_sekarang->ViewValue = $this->sep_umur_pasien_sekarang->CurrentValue;\n\t\t$this->sep_umur_pasien_sekarang->ViewCustomAttributes = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\t\t\t$this->ket_nama->TooltipValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\t\t\t$this->ket_tgllahir->TooltipValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\t\t\t$this->ket_alamat->TooltipValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->ket_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\t\t\t$this->ket_title->TooltipValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\t\t\t$this->dokterpengirim->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\t\t\t$this->kirimdari->TooltipValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\t\t\t$this->keluargadekat->TooltipValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\t\t\t$this->panggungjawab->TooltipValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\t\t\t$this->masukrs->TooltipValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\t\t\t$this->noruang->TooltipValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\t\t\t$this->tempat_tidur_id->TooltipValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\t\t\t$this->nott->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\t\t\t$this->dokter_penanggungjawab->TooltipValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->TooltipValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\t\t\t$this->NO_SKP->TooltipValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\t\t\t$this->sep_tglsep->TooltipValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\t\t\t$this->sep_tglrujuk->TooltipValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\t\t\t$this->sep_kodekelasrawat->TooltipValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\t\t\t$this->sep_norujukan->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkasal->TooltipValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\t\t\t$this->sep_namappkasal->TooltipValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->TooltipValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\t\t\t$this->sep_jenisperawatan->TooltipValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\t\t\t$this->sep_catatan->TooltipValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_kodediagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\t\t\t$this->sep_namadiagnosaawal->TooltipValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\t\t\t$this->sep_lakalantas->TooltipValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\t\t\t$this->sep_lokasilaka->TooltipValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\t\t\t$this->sep_user->TooltipValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\t\t\t$this->sep_flag_cekpeserta->TooltipValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\t\t\t$this->sep_flag_generatesep->TooltipValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\t\t\t$this->sep_nik->TooltipValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\t\t\t$this->sep_namapeserta->TooltipValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\t\t\t$this->sep_jeniskelamin->TooltipValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\t\t\t$this->sep_pisat->TooltipValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\t\t\t$this->sep_tgllahir->TooltipValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->TooltipValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\t\t\t$this->sep_nokabpjs->TooltipValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\t\t\t$this->sep_status_peserta->TooltipValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_nama->EditCustomAttributes = \"\";\n\t\t\t$this->ket_nama->EditValue = ew_HtmlEncode($this->ket_nama->CurrentValue);\n\t\t\t$this->ket_nama->PlaceHolder = ew_RemoveHtml($this->ket_nama->FldCaption());\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->ket_tgllahir->CurrentValue, 8));\n\t\t\t$this->ket_tgllahir->PlaceHolder = ew_RemoveHtml($this->ket_tgllahir->FldCaption());\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_alamat->EditCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->EditValue = ew_HtmlEncode($this->ket_alamat->CurrentValue);\n\t\t\t$this->ket_alamat->PlaceHolder = ew_RemoveHtml($this->ket_alamat->FldCaption());\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->EditValue = ew_HtmlEncode($this->ket_jeniskelamin->CurrentValue);\n\t\t\t$this->ket_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->ket_jeniskelamin->FldCaption());\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->ket_title->EditCustomAttributes = \"\";\n\t\t\t$this->ket_title->EditValue = ew_HtmlEncode($this->ket_title->CurrentValue);\n\t\t\t$this->ket_title->PlaceHolder = ew_RemoveHtml($this->ket_title->FldCaption());\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokterpengirim->EditCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\tif (strval($this->dokterpengirim->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokterpengirim->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokterpengirim->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokterpengirim, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokterpengirim->EditValue = $this->dokterpengirim->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokterpengirim->EditValue = ew_HtmlEncode($this->dokterpengirim->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokterpengirim->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokterpengirim->PlaceHolder = ew_RemoveHtml($this->dokterpengirim->FldCaption());\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\tif (strval($this->statusbayar->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->statusbayar->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->statusbayar->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->statusbayar, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->statusbayar->EditValue = $this->statusbayar->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->statusbayar->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kirimdari->EditCustomAttributes = \"\";\n\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\tif (strval($this->kirimdari->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kirimdari->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kirimdari->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kirimdari, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->kirimdari->EditValue = $this->kirimdari->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->kirimdari->EditValue = ew_HtmlEncode($this->kirimdari->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->kirimdari->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->kirimdari->PlaceHolder = ew_RemoveHtml($this->kirimdari->FldCaption());\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->keluargadekat->EditCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->EditValue = ew_HtmlEncode($this->keluargadekat->CurrentValue);\n\t\t\t$this->keluargadekat->PlaceHolder = ew_RemoveHtml($this->keluargadekat->FldCaption());\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->panggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->EditValue = ew_HtmlEncode($this->panggungjawab->CurrentValue);\n\t\t\t$this->panggungjawab->PlaceHolder = ew_RemoveHtml($this->panggungjawab->FldCaption());\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->masukrs->EditCustomAttributes = \"\";\n\t\t\t$this->masukrs->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->masukrs->CurrentValue, 8));\n\t\t\t$this->masukrs->PlaceHolder = ew_RemoveHtml($this->masukrs->FldCaption());\n\n\t\t\t// noruang\n\t\t\t$this->noruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->noruang->EditCustomAttributes = \"\";\n\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\tif (strval($this->noruang->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`no`\" . ew_SearchString(\"=\", $this->noruang->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `no`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_ruang`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->noruang->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->noruang, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->noruang->EditValue = $this->noruang->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->noruang->EditValue = ew_HtmlEncode($this->noruang->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->noruang->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->noruang->PlaceHolder = ew_RemoveHtml($this->noruang->FldCaption());\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tempat_tidur_id->EditCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->EditValue = ew_HtmlEncode($this->tempat_tidur_id->CurrentValue);\n\t\t\t$this->tempat_tidur_id->PlaceHolder = ew_RemoveHtml($this->tempat_tidur_id->FldCaption());\n\n\t\t\t// nott\n\t\t\t$this->nott->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nott->EditCustomAttributes = \"\";\n\t\t\t$this->nott->EditValue = ew_HtmlEncode($this->nott->CurrentValue);\n\t\t\t$this->nott->PlaceHolder = ew_RemoveHtml($this->nott->FldCaption());\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->dokter_penanggungjawab->EditCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\tif (strval($this->dokter_penanggungjawab->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->dokter_penanggungjawab->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->dokter_penanggungjawab->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->dokter_penanggungjawab, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = $this->dokter_penanggungjawab->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->dokter_penanggungjawab->EditValue = ew_HtmlEncode($this->dokter_penanggungjawab->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->dokter_penanggungjawab->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->dokter_penanggungjawab->PlaceHolder = ew_RemoveHtml($this->dokter_penanggungjawab->FldCaption());\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASPERAWATAN_ID->EditCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->EditValue = ew_HtmlEncode($this->KELASPERAWATAN_ID->CurrentValue);\n\t\t\t$this->KELASPERAWATAN_ID->PlaceHolder = ew_RemoveHtml($this->KELASPERAWATAN_ID->FldCaption());\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SKP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->EditValue = ew_HtmlEncode($this->NO_SKP->CurrentValue);\n\t\t\t$this->NO_SKP->PlaceHolder = ew_RemoveHtml($this->NO_SKP->FldCaption());\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglsep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglsep->CurrentValue, 5));\n\t\t\t$this->sep_tglsep->PlaceHolder = ew_RemoveHtml($this->sep_tglsep->FldCaption());\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tglrujuk->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->sep_tglrujuk->CurrentValue, 5));\n\t\t\t$this->sep_tglrujuk->PlaceHolder = ew_RemoveHtml($this->sep_tglrujuk->FldCaption());\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodekelasrawat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->EditValue = ew_HtmlEncode($this->sep_kodekelasrawat->CurrentValue);\n\t\t\t$this->sep_kodekelasrawat->PlaceHolder = ew_RemoveHtml($this->sep_kodekelasrawat->FldCaption());\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_norujukan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->EditValue = ew_HtmlEncode($this->sep_norujukan->CurrentValue);\n\t\t\t$this->sep_norujukan->PlaceHolder = ew_RemoveHtml($this->sep_norujukan->FldCaption());\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->EditValue = ew_HtmlEncode($this->sep_kodeppkasal->CurrentValue);\n\t\t\t$this->sep_kodeppkasal->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkasal->FldCaption());\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namappkasal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->EditValue = ew_HtmlEncode($this->sep_namappkasal->CurrentValue);\n\t\t\t$this->sep_namappkasal->PlaceHolder = ew_RemoveHtml($this->sep_namappkasal->FldCaption());\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodeppkpelayanan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->EditValue = ew_HtmlEncode($this->sep_kodeppkpelayanan->CurrentValue);\n\t\t\t$this->sep_kodeppkpelayanan->PlaceHolder = ew_RemoveHtml($this->sep_kodeppkpelayanan->FldCaption());\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jenisperawatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->EditValue = ew_HtmlEncode($this->sep_jenisperawatan->CurrentValue);\n\t\t\t$this->sep_jenisperawatan->PlaceHolder = ew_RemoveHtml($this->sep_jenisperawatan->FldCaption());\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_catatan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->EditValue = ew_HtmlEncode($this->sep_catatan->CurrentValue);\n\t\t\t$this->sep_catatan->PlaceHolder = ew_RemoveHtml($this->sep_catatan->FldCaption());\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodediagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\tif (strval($this->sep_kodediagnosaawal->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`CODE`\" . ew_SearchString(\"=\", $this->sep_kodediagnosaawal->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `CODE`, `CODE` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_diagnosa_eklaim`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_kodediagnosaawal->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_kodediagnosaawal, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = $this->sep_kodediagnosaawal->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->sep_kodediagnosaawal->EditValue = ew_HtmlEncode($this->sep_kodediagnosaawal->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->sep_kodediagnosaawal->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->sep_kodediagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_kodediagnosaawal->FldCaption());\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namadiagnosaawal->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->EditValue = ew_HtmlEncode($this->sep_namadiagnosaawal->CurrentValue);\n\t\t\t$this->sep_namadiagnosaawal->PlaceHolder = ew_RemoveHtml($this->sep_namadiagnosaawal->FldCaption());\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->sep_lakalantas->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->sep_lakalantas->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->sep_lakalantas->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->sep_lakalantas, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->sep_lakalantas->EditValue = $arwrk;\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_lokasilaka->EditCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->EditValue = ew_HtmlEncode($this->sep_lokasilaka->CurrentValue);\n\t\t\t$this->sep_lokasilaka->PlaceHolder = ew_RemoveHtml($this->sep_lokasilaka->FldCaption());\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_user->EditCustomAttributes = \"\";\n\t\t\t$this->sep_user->EditValue = ew_HtmlEncode($this->sep_user->CurrentValue);\n\t\t\t$this->sep_user->PlaceHolder = ew_RemoveHtml($this->sep_user->FldCaption());\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->EditValue = $this->sep_flag_cekpeserta->Options(FALSE);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->EditCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->EditValue = $this->sep_flag_generatesep->Options(FALSE);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nik->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nik->EditValue = ew_HtmlEncode($this->sep_nik->CurrentValue);\n\t\t\t$this->sep_nik->PlaceHolder = ew_RemoveHtml($this->sep_nik->FldCaption());\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namapeserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->EditValue = ew_HtmlEncode($this->sep_namapeserta->CurrentValue);\n\t\t\t$this->sep_namapeserta->PlaceHolder = ew_RemoveHtml($this->sep_namapeserta->FldCaption());\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_jeniskelamin->EditCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->EditValue = ew_HtmlEncode($this->sep_jeniskelamin->CurrentValue);\n\t\t\t$this->sep_jeniskelamin->PlaceHolder = ew_RemoveHtml($this->sep_jeniskelamin->FldCaption());\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_pisat->EditCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->EditValue = ew_HtmlEncode($this->sep_pisat->CurrentValue);\n\t\t\t$this->sep_pisat->PlaceHolder = ew_RemoveHtml($this->sep_pisat->FldCaption());\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_tgllahir->EditCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->EditValue = ew_HtmlEncode($this->sep_tgllahir->CurrentValue);\n\t\t\t$this->sep_tgllahir->PlaceHolder = ew_RemoveHtml($this->sep_tgllahir->FldCaption());\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_kodejeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_kodejeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_kodejeniskepesertaan->FldCaption());\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_namajeniskepesertaan->EditCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->EditValue = ew_HtmlEncode($this->sep_namajeniskepesertaan->CurrentValue);\n\t\t\t$this->sep_namajeniskepesertaan->PlaceHolder = ew_RemoveHtml($this->sep_namajeniskepesertaan->FldCaption());\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_nokabpjs->EditCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->EditValue = ew_HtmlEncode($this->sep_nokabpjs->CurrentValue);\n\t\t\t$this->sep_nokabpjs->PlaceHolder = ew_RemoveHtml($this->sep_nokabpjs->FldCaption());\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_status_peserta->EditCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->EditValue = ew_HtmlEncode($this->sep_status_peserta->CurrentValue);\n\t\t\t$this->sep_status_peserta->PlaceHolder = ew_RemoveHtml($this->sep_status_peserta->FldCaption());\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->EditValue = ew_HtmlEncode($this->sep_umur_pasien_sekarang->CurrentValue);\n\t\t\t$this->sep_umur_pasien_sekarang->PlaceHolder = ew_RemoveHtml($this->sep_umur_pasien_sekarang->FldCaption());\n\n\t\t\t// Edit refer script\n\t\t\t// nomr\n\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_nama->HrefValue = \"\";\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_tgllahir->HrefValue = \"\";\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_alamat->HrefValue = \"\";\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->LinkCustomAttributes = \"\";\n\t\t\t$this->ket_title->HrefValue = \"\";\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->LinkCustomAttributes = \"\";\n\t\t\t$this->dokterpengirim->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->LinkCustomAttributes = \"\";\n\t\t\t$this->kirimdari->HrefValue = \"\";\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->LinkCustomAttributes = \"\";\n\t\t\t$this->keluargadekat->HrefValue = \"\";\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->panggungjawab->HrefValue = \"\";\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->LinkCustomAttributes = \"\";\n\t\t\t$this->masukrs->HrefValue = \"\";\n\n\t\t\t// noruang\n\t\t\t$this->noruang->LinkCustomAttributes = \"\";\n\t\t\t$this->noruang->HrefValue = \"\";\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tempat_tidur_id->HrefValue = \"\";\n\n\t\t\t// nott\n\t\t\t$this->nott->LinkCustomAttributes = \"\";\n\t\t\t$this->nott->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->LinkCustomAttributes = \"\";\n\t\t\t$this->dokter_penanggungjawab->HrefValue = \"\";\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASPERAWATAN_ID->HrefValue = \"\";\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SKP->HrefValue = \"\";\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglsep->HrefValue = \"\";\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tglrujuk->HrefValue = \"\";\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodekelasrawat->HrefValue = \"\";\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_norujukan->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkasal->HrefValue = \"\";\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namappkasal->HrefValue = \"\";\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodeppkpelayanan->HrefValue = \"\";\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jenisperawatan->HrefValue = \"\";\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_catatan->HrefValue = \"\";\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodediagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namadiagnosaawal->HrefValue = \"\";\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lakalantas->HrefValue = \"\";\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_lokasilaka->HrefValue = \"\";\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_user->HrefValue = \"\";\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_cekpeserta->HrefValue = \"\";\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_flag_generatesep->HrefValue = \"\";\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nik->HrefValue = \"\";\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namapeserta->HrefValue = \"\";\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_jeniskelamin->HrefValue = \"\";\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_pisat->HrefValue = \"\";\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_tgllahir->HrefValue = \"\";\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_kodejeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_namajeniskepesertaan->HrefValue = \"\";\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_nokabpjs->HrefValue = \"\";\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_status_peserta->HrefValue = \"\";\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->LinkCustomAttributes = \"\";\n\t\t\t$this->sep_umur_pasien_sekarang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function render_row ($row_info, $lang)\n {\n global $func, $DB, $conf, $vnT;\n $row = $row_info;\n // Xu ly tung ROW\n $id = $row['id'];\n $row_id = \"row_\" . $id;\n //if ($id > 7) {\n $output['check_box'] = vnT_HTML::checkbox(\"del_id[]\", $id, 0, \" \");\n //}\n $link_edit = $this->linkUrl . \"&sub=edit&id={$id}\";\n $link_del = \"javascript:del_item('\" . $this->linkUrl . \"&sub=del&csrf_token=\".$_SESSION['vnt_csrf_token'].\"&id={$id}')\";\n $output['order'] = \"<input name=\\\"txt_Order[{$id}]\\\" type=\\\"text\\\" size=\\\"2\\\" maxlength=\\\"2\\\" style=\\\"text-align:center\\\" value=\\\"{$row['display_order']}\\\" onkeypress=\\\"return is_num(event,'txtOrder')\\\" onchange='javascript:do_check($id)' />\";\n $output['name'] = \"<a href=\\\"{$link_edit}\\\"><strong>\" . $row['name'] . \"</strong></a>\";\n $output['kichthuoc'] = $row['width'] . \" X \" . $row['height'];\n $arr_type_show = array(\n 0 => 'Theo chiều dọc' , \n 1 => 'Theo chiều ngang' , \n 2 => 'Marquee up' , \n 3 => 'Marquee down' , \n 4 => 'Marquee left' , \n 5 => 'Marquee right');\n $output['type_show'] = $arr_type_show[$row['type_show']];\n $output['align'] = $row['align'];\n $text_edit = \"ad_pos|title|id=\" . $id;\n $output['title'] = \"<strong><span id='edit-text-\" . $id . \"' onClick=\\\"quick_edit('edit-text-\" . $id . \"','$text_edit');\\\">\" . $func->HTML($row['title']) . \"</span></strong>\";\n\n\n $link_display = $this->linkUrl . $row['ext_link'].\"&csrf_token=\".$_SESSION['vnt_csrf_token'];\n if ($row['display'] == 1) {\n $display = \"<a class='i-display' href='\" . $link_display . \"&do_hidden=$id' data-toggle='tooltip' data-placement='top' title='\" . $vnT->lang['click_do_hidden'] . \"' ><i class='fa fa-eye' ></i></a>\";\n } else {\n $display = \"<a class='i-display' href='\" . $link_display . \"&do_display=$id' data-toggle='tooltip' data-placement='top' title='\" . $vnT->lang['click_do_display'] . \"' ><i class='fa fa-eye-slash' ></i></a>\";\n }\n\n\n $output['action'] = '<div class=\"action-buttons\"><input name=h_id[]\" type=\"hidden\" value=\"' . $id . '\" />';\n $output['action'] .= '<a href=\"' . $link_edit . '\" class=\"i-edit\" ><i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i></a>';\n $output['action'] .= $display;\n $output['action'] .= '<a href=\"' . $link_del . '\" class=\"i-del\" ><i class=\"fa fa-trash-o\" aria-hidden=\"true\"></i></a>';\n $output['action'] .= '</div>';\n\n return $output;\n }", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// nomr\n\t\t\t$this->nomr->SetDbValueDef($rsnew, $this->nomr->CurrentValue, \"\", $this->nomr->ReadOnly);\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->SetDbValueDef($rsnew, $this->ket_nama->CurrentValue, NULL, $this->ket_nama->ReadOnly);\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->ket_tgllahir->CurrentValue, 0), NULL, $this->ket_tgllahir->ReadOnly);\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->SetDbValueDef($rsnew, $this->ket_alamat->CurrentValue, NULL, $this->ket_alamat->ReadOnly);\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->SetDbValueDef($rsnew, $this->ket_jeniskelamin->CurrentValue, NULL, $this->ket_jeniskelamin->ReadOnly);\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->SetDbValueDef($rsnew, $this->ket_title->CurrentValue, NULL, $this->ket_title->ReadOnly);\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->SetDbValueDef($rsnew, $this->dokterpengirim->CurrentValue, 0, $this->dokterpengirim->ReadOnly);\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->SetDbValueDef($rsnew, $this->statusbayar->CurrentValue, 0, $this->statusbayar->ReadOnly);\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->SetDbValueDef($rsnew, $this->kirimdari->CurrentValue, 0, $this->kirimdari->ReadOnly);\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->SetDbValueDef($rsnew, $this->keluargadekat->CurrentValue, \"\", $this->keluargadekat->ReadOnly);\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->SetDbValueDef($rsnew, $this->panggungjawab->CurrentValue, \"\", $this->panggungjawab->ReadOnly);\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->masukrs->CurrentValue, 0), NULL, $this->masukrs->ReadOnly);\n\n\t\t\t// noruang\n\t\t\t$this->noruang->SetDbValueDef($rsnew, $this->noruang->CurrentValue, 0, $this->noruang->ReadOnly);\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->SetDbValueDef($rsnew, $this->tempat_tidur_id->CurrentValue, 0, $this->tempat_tidur_id->ReadOnly);\n\n\t\t\t// nott\n\t\t\t$this->nott->SetDbValueDef($rsnew, $this->nott->CurrentValue, \"\", $this->nott->ReadOnly);\n\n\t\t\t// NIP\n\t\t\t$this->NIP->SetDbValueDef($rsnew, $this->NIP->CurrentValue, \"\", $this->NIP->ReadOnly);\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->SetDbValueDef($rsnew, $this->dokter_penanggungjawab->CurrentValue, 0, $this->dokter_penanggungjawab->ReadOnly);\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->SetDbValueDef($rsnew, $this->KELASPERAWATAN_ID->CurrentValue, NULL, $this->KELASPERAWATAN_ID->ReadOnly);\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->SetDbValueDef($rsnew, $this->NO_SKP->CurrentValue, NULL, $this->NO_SKP->ReadOnly);\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglsep->CurrentValue, 5), NULL, $this->sep_tglsep->ReadOnly);\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglrujuk->CurrentValue, 5), NULL, $this->sep_tglrujuk->ReadOnly);\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->SetDbValueDef($rsnew, $this->sep_kodekelasrawat->CurrentValue, NULL, $this->sep_kodekelasrawat->ReadOnly);\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->SetDbValueDef($rsnew, $this->sep_norujukan->CurrentValue, NULL, $this->sep_norujukan->ReadOnly);\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->SetDbValueDef($rsnew, $this->sep_kodeppkasal->CurrentValue, NULL, $this->sep_kodeppkasal->ReadOnly);\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->SetDbValueDef($rsnew, $this->sep_namappkasal->CurrentValue, NULL, $this->sep_namappkasal->ReadOnly);\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->SetDbValueDef($rsnew, $this->sep_kodeppkpelayanan->CurrentValue, NULL, $this->sep_kodeppkpelayanan->ReadOnly);\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->SetDbValueDef($rsnew, $this->sep_jenisperawatan->CurrentValue, NULL, $this->sep_jenisperawatan->ReadOnly);\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->SetDbValueDef($rsnew, $this->sep_catatan->CurrentValue, NULL, $this->sep_catatan->ReadOnly);\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->SetDbValueDef($rsnew, $this->sep_kodediagnosaawal->CurrentValue, NULL, $this->sep_kodediagnosaawal->ReadOnly);\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->SetDbValueDef($rsnew, $this->sep_namadiagnosaawal->CurrentValue, NULL, $this->sep_namadiagnosaawal->ReadOnly);\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->SetDbValueDef($rsnew, $this->sep_lakalantas->CurrentValue, NULL, $this->sep_lakalantas->ReadOnly);\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->SetDbValueDef($rsnew, $this->sep_lokasilaka->CurrentValue, NULL, $this->sep_lokasilaka->ReadOnly);\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->SetDbValueDef($rsnew, $this->sep_user->CurrentValue, NULL, $this->sep_user->ReadOnly);\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->SetDbValueDef($rsnew, $this->sep_flag_cekpeserta->CurrentValue, NULL, $this->sep_flag_cekpeserta->ReadOnly);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->SetDbValueDef($rsnew, $this->sep_flag_generatesep->CurrentValue, NULL, $this->sep_flag_generatesep->ReadOnly);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->SetDbValueDef($rsnew, $this->sep_nik->CurrentValue, NULL, $this->sep_nik->ReadOnly);\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->SetDbValueDef($rsnew, $this->sep_namapeserta->CurrentValue, NULL, $this->sep_namapeserta->ReadOnly);\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->SetDbValueDef($rsnew, $this->sep_jeniskelamin->CurrentValue, NULL, $this->sep_jeniskelamin->ReadOnly);\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->SetDbValueDef($rsnew, $this->sep_pisat->CurrentValue, NULL, $this->sep_pisat->ReadOnly);\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->SetDbValueDef($rsnew, $this->sep_tgllahir->CurrentValue, NULL, $this->sep_tgllahir->ReadOnly);\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->SetDbValueDef($rsnew, $this->sep_kodejeniskepesertaan->CurrentValue, NULL, $this->sep_kodejeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->SetDbValueDef($rsnew, $this->sep_namajeniskepesertaan->CurrentValue, NULL, $this->sep_namajeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->SetDbValueDef($rsnew, $this->sep_nokabpjs->CurrentValue, NULL, $this->sep_nokabpjs->ReadOnly);\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->SetDbValueDef($rsnew, $this->sep_status_peserta->CurrentValue, NULL, $this->sep_status_peserta->ReadOnly);\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->SetDbValueDef($rsnew, $this->sep_umur_pasien_sekarang->CurrentValue, NULL, $this->sep_umur_pasien_sekarang->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// name\n\t\t// email\n\t\t// password\n\n\t\t$this->password->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// companyname\n\t\t// servicetime\n\t\t// country\n\t\t// phone\n\t\t// skype\n\t\t// website\n\t\t// linkedin\n\t\t// facebook\n\t\t// twitter\n\t\t// active_code\n\t\t// identification\n\t\t// link_expired\n\t\t// isactive\n\t\t// pio\n\t\t// google\n\t\t// instagram\n\t\t// account_type\n\t\t// logo\n\t\t// profilepic\n\t\t// mailref\n\t\t// deleted\n\t\t// deletefeedback\n\t\t// account_id\n\t\t// start_date\n\t\t// end_date\n\t\t// year_moth\n\t\t// registerdate\n\t\t// login_type\n\t\t// accountstatus\n\t\t// ispay\n\t\t// profilelink\n\t\t// source\n\t\t// agree\n\t\t// balance\n\t\t// job_title\n\t\t// projects\n\t\t// opportunities\n\t\t// isconsaltant\n\t\t// isagent\n\t\t// isinvestor\n\t\t// isbusinessman\n\t\t// isprovider\n\t\t// isproductowner\n\t\t// states\n\t\t// cities\n\t\t// offers\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// companyname\n\t\t$this->companyname->ViewValue = $this->companyname->CurrentValue;\n\t\t$this->companyname->ViewCustomAttributes = \"\";\n\n\t\t// servicetime\n\t\t$this->servicetime->ViewValue = $this->servicetime->CurrentValue;\n\t\t$this->servicetime->ViewCustomAttributes = \"\";\n\n\t\t// country\n\t\t$this->country->ViewValue = $this->country->CurrentValue;\n\t\t$this->country->ViewCustomAttributes = \"\";\n\n\t\t// phone\n\t\t$this->phone->ViewValue = $this->phone->CurrentValue;\n\t\t$this->phone->ViewCustomAttributes = \"\";\n\n\t\t// skype\n\t\t$this->skype->ViewValue = $this->skype->CurrentValue;\n\t\t$this->skype->ViewCustomAttributes = \"\";\n\n\t\t// website\n\t\t$this->website->ViewValue = $this->website->CurrentValue;\n\t\t$this->website->ViewCustomAttributes = \"\";\n\n\t\t// linkedin\n\t\t$this->linkedin->ViewValue = $this->linkedin->CurrentValue;\n\t\t$this->linkedin->ViewCustomAttributes = \"\";\n\n\t\t// facebook\n\t\t$this->facebook->ViewValue = $this->facebook->CurrentValue;\n\t\t$this->facebook->ViewCustomAttributes = \"\";\n\n\t\t// twitter\n\t\t$this->twitter->ViewValue = $this->twitter->CurrentValue;\n\t\t$this->twitter->ViewCustomAttributes = \"\";\n\n\t\t// active_code\n\t\t$this->active_code->ViewValue = $this->active_code->CurrentValue;\n\t\t$this->active_code->ViewCustomAttributes = \"\";\n\n\t\t// identification\n\t\t$this->identification->ViewValue = $this->identification->CurrentValue;\n\t\t$this->identification->ViewCustomAttributes = \"\";\n\n\t\t// link_expired\n\t\t$this->link_expired->ViewValue = $this->link_expired->CurrentValue;\n\t\t$this->link_expired->ViewValue = ew_FormatDateTime($this->link_expired->ViewValue, 5);\n\t\t$this->link_expired->ViewCustomAttributes = \"\";\n\n\t\t// isactive\n\t\t$this->isactive->ViewValue = $this->isactive->CurrentValue;\n\t\t$this->isactive->ViewCustomAttributes = \"\";\n\n\t\t// google\n\t\t$this->google->ViewValue = $this->google->CurrentValue;\n\t\t$this->google->ViewCustomAttributes = \"\";\n\n\t\t// instagram\n\t\t$this->instagram->ViewValue = $this->instagram->CurrentValue;\n\t\t$this->instagram->ViewCustomAttributes = \"\";\n\n\t\t// account_type\n\t\t$this->account_type->ViewValue = $this->account_type->CurrentValue;\n\t\t$this->account_type->ViewCustomAttributes = \"\";\n\n\t\t// logo\n\t\t$this->logo->ViewValue = $this->logo->CurrentValue;\n\t\t$this->logo->ViewCustomAttributes = \"\";\n\n\t\t// profilepic\n\t\t$this->profilepic->ViewValue = $this->profilepic->CurrentValue;\n\t\t$this->profilepic->ViewCustomAttributes = \"\";\n\n\t\t// mailref\n\t\t$this->mailref->ViewValue = $this->mailref->CurrentValue;\n\t\t$this->mailref->ViewCustomAttributes = \"\";\n\n\t\t// deleted\n\t\t$this->deleted->ViewValue = $this->deleted->CurrentValue;\n\t\t$this->deleted->ViewCustomAttributes = \"\";\n\n\t\t// deletefeedback\n\t\t$this->deletefeedback->ViewValue = $this->deletefeedback->CurrentValue;\n\t\t$this->deletefeedback->ViewCustomAttributes = \"\";\n\n\t\t// account_id\n\t\t$this->account_id->ViewValue = $this->account_id->CurrentValue;\n\t\t$this->account_id->ViewCustomAttributes = \"\";\n\n\t\t// start_date\n\t\t$this->start_date->ViewValue = $this->start_date->CurrentValue;\n\t\t$this->start_date->ViewValue = ew_FormatDateTime($this->start_date->ViewValue, 5);\n\t\t$this->start_date->ViewCustomAttributes = \"\";\n\n\t\t// end_date\n\t\t$this->end_date->ViewValue = $this->end_date->CurrentValue;\n\t\t$this->end_date->ViewValue = ew_FormatDateTime($this->end_date->ViewValue, 5);\n\t\t$this->end_date->ViewCustomAttributes = \"\";\n\n\t\t// year_moth\n\t\t$this->year_moth->ViewValue = $this->year_moth->CurrentValue;\n\t\t$this->year_moth->ViewCustomAttributes = \"\";\n\n\t\t// registerdate\n\t\t$this->registerdate->ViewValue = $this->registerdate->CurrentValue;\n\t\t$this->registerdate->ViewValue = ew_FormatDateTime($this->registerdate->ViewValue, 5);\n\t\t$this->registerdate->ViewCustomAttributes = \"\";\n\n\t\t// login_type\n\t\t$this->login_type->ViewValue = $this->login_type->CurrentValue;\n\t\t$this->login_type->ViewCustomAttributes = \"\";\n\n\t\t// accountstatus\n\t\t$this->accountstatus->ViewValue = $this->accountstatus->CurrentValue;\n\t\t$this->accountstatus->ViewCustomAttributes = \"\";\n\n\t\t// ispay\n\t\t$this->ispay->ViewValue = $this->ispay->CurrentValue;\n\t\t$this->ispay->ViewCustomAttributes = \"\";\n\n\t\t// profilelink\n\t\t$this->profilelink->ViewValue = $this->profilelink->CurrentValue;\n\t\t$this->profilelink->ViewCustomAttributes = \"\";\n\n\t\t// source\n\t\t$this->source->ViewValue = $this->source->CurrentValue;\n\t\t$this->source->ViewCustomAttributes = \"\";\n\n\t\t// agree\n\t\t$this->agree->ViewValue = $this->agree->CurrentValue;\n\t\t$this->agree->ViewCustomAttributes = \"\";\n\n\t\t// balance\n\t\t$this->balance->ViewValue = $this->balance->CurrentValue;\n\t\t$this->balance->ViewCustomAttributes = \"\";\n\n\t\t// job_title\n\t\t$this->job_title->ViewValue = $this->job_title->CurrentValue;\n\t\t$this->job_title->ViewCustomAttributes = \"\";\n\n\t\t// projects\n\t\t$this->projects->ViewValue = $this->projects->CurrentValue;\n\t\t$this->projects->ViewCustomAttributes = \"\";\n\n\t\t// opportunities\n\t\t$this->opportunities->ViewValue = $this->opportunities->CurrentValue;\n\t\t$this->opportunities->ViewCustomAttributes = \"\";\n\n\t\t// isconsaltant\n\t\t$this->isconsaltant->ViewCustomAttributes = \"\";\n\n\t\t// isagent\n\t\t$this->isagent->ViewCustomAttributes = \"\";\n\n\t\t// isinvestor\n\t\t$this->isinvestor->ViewCustomAttributes = \"\";\n\n\t\t// isbusinessman\n\t\t$this->isbusinessman->ViewCustomAttributes = \"\";\n\n\t\t// isprovider\n\t\t$this->isprovider->ViewCustomAttributes = \"\";\n\n\t\t// isproductowner\n\t\t$this->isproductowner->ViewCustomAttributes = \"\";\n\n\t\t// states\n\t\t$this->states->ViewValue = $this->states->CurrentValue;\n\t\t$this->states->ViewCustomAttributes = \"\";\n\n\t\t// cities\n\t\t$this->cities->ViewValue = $this->cities->CurrentValue;\n\t\t$this->cities->ViewCustomAttributes = \"\";\n\n\t\t// offers\n\t\t$this->offers->ViewValue = $this->offers->CurrentValue;\n\t\t$this->offers->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// name\n\t\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t\t$this->name->HrefValue = \"\";\n\t\t\t$this->name->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// companyname\n\t\t\t$this->companyname->LinkCustomAttributes = \"\";\n\t\t\t$this->companyname->HrefValue = \"\";\n\t\t\t$this->companyname->TooltipValue = \"\";\n\n\t\t\t// servicetime\n\t\t\t$this->servicetime->LinkCustomAttributes = \"\";\n\t\t\t$this->servicetime->HrefValue = \"\";\n\t\t\t$this->servicetime->TooltipValue = \"\";\n\n\t\t\t// country\n\t\t\t$this->country->LinkCustomAttributes = \"\";\n\t\t\t$this->country->HrefValue = \"\";\n\t\t\t$this->country->TooltipValue = \"\";\n\n\t\t\t// phone\n\t\t\t$this->phone->LinkCustomAttributes = \"\";\n\t\t\t$this->phone->HrefValue = \"\";\n\t\t\t$this->phone->TooltipValue = \"\";\n\n\t\t\t// skype\n\t\t\t$this->skype->LinkCustomAttributes = \"\";\n\t\t\t$this->skype->HrefValue = \"\";\n\t\t\t$this->skype->TooltipValue = \"\";\n\n\t\t\t// website\n\t\t\t$this->website->LinkCustomAttributes = \"\";\n\t\t\t$this->website->HrefValue = \"\";\n\t\t\t$this->website->TooltipValue = \"\";\n\n\t\t\t// linkedin\n\t\t\t$this->linkedin->LinkCustomAttributes = \"\";\n\t\t\t$this->linkedin->HrefValue = \"\";\n\t\t\t$this->linkedin->TooltipValue = \"\";\n\n\t\t\t// facebook\n\t\t\t$this->facebook->LinkCustomAttributes = \"\";\n\t\t\t$this->facebook->HrefValue = \"\";\n\t\t\t$this->facebook->TooltipValue = \"\";\n\n\t\t\t// twitter\n\t\t\t$this->twitter->LinkCustomAttributes = \"\";\n\t\t\t$this->twitter->HrefValue = \"\";\n\t\t\t$this->twitter->TooltipValue = \"\";\n\n\t\t\t// active_code\n\t\t\t$this->active_code->LinkCustomAttributes = \"\";\n\t\t\t$this->active_code->HrefValue = \"\";\n\t\t\t$this->active_code->TooltipValue = \"\";\n\n\t\t\t// identification\n\t\t\t$this->identification->LinkCustomAttributes = \"\";\n\t\t\t$this->identification->HrefValue = \"\";\n\t\t\t$this->identification->TooltipValue = \"\";\n\n\t\t\t// link_expired\n\t\t\t$this->link_expired->LinkCustomAttributes = \"\";\n\t\t\t$this->link_expired->HrefValue = \"\";\n\t\t\t$this->link_expired->TooltipValue = \"\";\n\n\t\t\t// isactive\n\t\t\t$this->isactive->LinkCustomAttributes = \"\";\n\t\t\t$this->isactive->HrefValue = \"\";\n\t\t\t$this->isactive->TooltipValue = \"\";\n\n\t\t\t// google\n\t\t\t$this->google->LinkCustomAttributes = \"\";\n\t\t\t$this->google->HrefValue = \"\";\n\t\t\t$this->google->TooltipValue = \"\";\n\n\t\t\t// instagram\n\t\t\t$this->instagram->LinkCustomAttributes = \"\";\n\t\t\t$this->instagram->HrefValue = \"\";\n\t\t\t$this->instagram->TooltipValue = \"\";\n\n\t\t\t// account_type\n\t\t\t$this->account_type->LinkCustomAttributes = \"\";\n\t\t\t$this->account_type->HrefValue = \"\";\n\t\t\t$this->account_type->TooltipValue = \"\";\n\n\t\t\t// logo\n\t\t\t$this->logo->LinkCustomAttributes = \"\";\n\t\t\t$this->logo->HrefValue = \"\";\n\t\t\t$this->logo->TooltipValue = \"\";\n\n\t\t\t// profilepic\n\t\t\t$this->profilepic->LinkCustomAttributes = \"\";\n\t\t\t$this->profilepic->HrefValue = \"\";\n\t\t\t$this->profilepic->TooltipValue = \"\";\n\n\t\t\t// mailref\n\t\t\t$this->mailref->LinkCustomAttributes = \"\";\n\t\t\t$this->mailref->HrefValue = \"\";\n\t\t\t$this->mailref->TooltipValue = \"\";\n\n\t\t\t// deleted\n\t\t\t$this->deleted->LinkCustomAttributes = \"\";\n\t\t\t$this->deleted->HrefValue = \"\";\n\t\t\t$this->deleted->TooltipValue = \"\";\n\n\t\t\t// deletefeedback\n\t\t\t$this->deletefeedback->LinkCustomAttributes = \"\";\n\t\t\t$this->deletefeedback->HrefValue = \"\";\n\t\t\t$this->deletefeedback->TooltipValue = \"\";\n\n\t\t\t// account_id\n\t\t\t$this->account_id->LinkCustomAttributes = \"\";\n\t\t\t$this->account_id->HrefValue = \"\";\n\t\t\t$this->account_id->TooltipValue = \"\";\n\n\t\t\t// start_date\n\t\t\t$this->start_date->LinkCustomAttributes = \"\";\n\t\t\t$this->start_date->HrefValue = \"\";\n\t\t\t$this->start_date->TooltipValue = \"\";\n\n\t\t\t// end_date\n\t\t\t$this->end_date->LinkCustomAttributes = \"\";\n\t\t\t$this->end_date->HrefValue = \"\";\n\t\t\t$this->end_date->TooltipValue = \"\";\n\n\t\t\t// year_moth\n\t\t\t$this->year_moth->LinkCustomAttributes = \"\";\n\t\t\t$this->year_moth->HrefValue = \"\";\n\t\t\t$this->year_moth->TooltipValue = \"\";\n\n\t\t\t// registerdate\n\t\t\t$this->registerdate->LinkCustomAttributes = \"\";\n\t\t\t$this->registerdate->HrefValue = \"\";\n\t\t\t$this->registerdate->TooltipValue = \"\";\n\n\t\t\t// login_type\n\t\t\t$this->login_type->LinkCustomAttributes = \"\";\n\t\t\t$this->login_type->HrefValue = \"\";\n\t\t\t$this->login_type->TooltipValue = \"\";\n\n\t\t\t// accountstatus\n\t\t\t$this->accountstatus->LinkCustomAttributes = \"\";\n\t\t\t$this->accountstatus->HrefValue = \"\";\n\t\t\t$this->accountstatus->TooltipValue = \"\";\n\n\t\t\t// ispay\n\t\t\t$this->ispay->LinkCustomAttributes = \"\";\n\t\t\t$this->ispay->HrefValue = \"\";\n\t\t\t$this->ispay->TooltipValue = \"\";\n\n\t\t\t// profilelink\n\t\t\t$this->profilelink->LinkCustomAttributes = \"\";\n\t\t\t$this->profilelink->HrefValue = \"\";\n\t\t\t$this->profilelink->TooltipValue = \"\";\n\n\t\t\t// source\n\t\t\t$this->source->LinkCustomAttributes = \"\";\n\t\t\t$this->source->HrefValue = \"\";\n\t\t\t$this->source->TooltipValue = \"\";\n\n\t\t\t// agree\n\t\t\t$this->agree->LinkCustomAttributes = \"\";\n\t\t\t$this->agree->HrefValue = \"\";\n\t\t\t$this->agree->TooltipValue = \"\";\n\n\t\t\t// balance\n\t\t\t$this->balance->LinkCustomAttributes = \"\";\n\t\t\t$this->balance->HrefValue = \"\";\n\t\t\t$this->balance->TooltipValue = \"\";\n\n\t\t\t// job_title\n\t\t\t$this->job_title->LinkCustomAttributes = \"\";\n\t\t\t$this->job_title->HrefValue = \"\";\n\t\t\t$this->job_title->TooltipValue = \"\";\n\n\t\t\t// projects\n\t\t\t$this->projects->LinkCustomAttributes = \"\";\n\t\t\t$this->projects->HrefValue = \"\";\n\t\t\t$this->projects->TooltipValue = \"\";\n\n\t\t\t// opportunities\n\t\t\t$this->opportunities->LinkCustomAttributes = \"\";\n\t\t\t$this->opportunities->HrefValue = \"\";\n\t\t\t$this->opportunities->TooltipValue = \"\";\n\n\t\t\t// isconsaltant\n\t\t\t$this->isconsaltant->LinkCustomAttributes = \"\";\n\t\t\t$this->isconsaltant->HrefValue = \"\";\n\t\t\t$this->isconsaltant->TooltipValue = \"\";\n\n\t\t\t// isagent\n\t\t\t$this->isagent->LinkCustomAttributes = \"\";\n\t\t\t$this->isagent->HrefValue = \"\";\n\t\t\t$this->isagent->TooltipValue = \"\";\n\n\t\t\t// isinvestor\n\t\t\t$this->isinvestor->LinkCustomAttributes = \"\";\n\t\t\t$this->isinvestor->HrefValue = \"\";\n\t\t\t$this->isinvestor->TooltipValue = \"\";\n\n\t\t\t// isbusinessman\n\t\t\t$this->isbusinessman->LinkCustomAttributes = \"\";\n\t\t\t$this->isbusinessman->HrefValue = \"\";\n\t\t\t$this->isbusinessman->TooltipValue = \"\";\n\n\t\t\t// isprovider\n\t\t\t$this->isprovider->LinkCustomAttributes = \"\";\n\t\t\t$this->isprovider->HrefValue = \"\";\n\t\t\t$this->isprovider->TooltipValue = \"\";\n\n\t\t\t// isproductowner\n\t\t\t$this->isproductowner->LinkCustomAttributes = \"\";\n\t\t\t$this->isproductowner->HrefValue = \"\";\n\t\t\t$this->isproductowner->TooltipValue = \"\";\n\n\t\t\t// states\n\t\t\t$this->states->LinkCustomAttributes = \"\";\n\t\t\t$this->states->HrefValue = \"\";\n\t\t\t$this->states->TooltipValue = \"\";\n\n\t\t\t// cities\n\t\t\t$this->cities->LinkCustomAttributes = \"\";\n\t\t\t$this->cities->HrefValue = \"\";\n\t\t\t$this->cities->TooltipValue = \"\";\n\n\t\t\t// offers\n\t\t\t$this->offers->LinkCustomAttributes = \"\";\n\t\t\t$this->offers->HrefValue = \"\";\n\t\t\t$this->offers->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$filesystem->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$filesystem->id->CellCssStyle = \"\";\r\n\t\t$filesystem->id->CellCssClass = \"\";\r\n\r\n\t\t// mount\r\n\t\t$filesystem->mount->CellCssStyle = \"\";\r\n\t\t$filesystem->mount->CellCssClass = \"\";\r\n\r\n\t\t// path\r\n\t\t$filesystem->path->CellCssStyle = \"\";\r\n\t\t$filesystem->path->CellCssClass = \"\";\r\n\r\n\t\t// parent\r\n\t\t$filesystem->parent->CellCssStyle = \"\";\r\n\t\t$filesystem->parent->CellCssClass = \"\";\r\n\r\n\t\t// deprecated\r\n\t\t$filesystem->deprecated->CellCssStyle = \"\";\r\n\t\t$filesystem->deprecated->CellCssClass = \"\";\r\n\r\n\t\t// gid\r\n\t\t$filesystem->gid->CellCssStyle = \"\";\r\n\t\t$filesystem->gid->CellCssClass = \"\";\r\n\r\n\t\t// snapshot\r\n\t\t$filesystem->snapshot->CellCssStyle = \"\";\r\n\t\t$filesystem->snapshot->CellCssClass = \"\";\r\n\r\n\t\t// tapebackup\r\n\t\t$filesystem->tapebackup->CellCssStyle = \"\";\r\n\t\t$filesystem->tapebackup->CellCssClass = \"\";\r\n\r\n\t\t// diskbackup\r\n\t\t$filesystem->diskbackup->CellCssStyle = \"\";\r\n\t\t$filesystem->diskbackup->CellCssClass = \"\";\r\n\r\n\t\t// type\r\n\t\t$filesystem->type->CellCssStyle = \"\";\r\n\t\t$filesystem->type->CellCssClass = \"\";\r\n\r\n\t\t// contact\r\n\t\t$filesystem->contact->CellCssStyle = \"\";\r\n\t\t$filesystem->contact->CellCssClass = \"\";\r\n\r\n\t\t// contact2\r\n\t\t$filesystem->contact2->CellCssStyle = \"\";\r\n\t\t$filesystem->contact2->CellCssClass = \"\";\r\n\r\n\t\t// rescomp\r\n\t\t$filesystem->rescomp->CellCssStyle = \"\";\r\n\t\t$filesystem->rescomp->CellCssClass = \"\";\r\n\t\tif ($filesystem->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->ViewValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->ViewValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->ViewValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->ViewValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->ViewValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->ViewValue = $filesystem->snapshot->CurrentValue;\r\n\t\t\t$filesystem->snapshot->CssStyle = \"\";\r\n\t\t\t$filesystem->snapshot->CssClass = \"\";\r\n\t\t\t$filesystem->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->ViewValue = $filesystem->tapebackup->CurrentValue;\r\n\t\t\t$filesystem->tapebackup->CssStyle = \"\";\r\n\t\t\t$filesystem->tapebackup->CssClass = \"\";\r\n\t\t\t$filesystem->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->ViewValue = $filesystem->diskbackup->CurrentValue;\r\n\t\t\t$filesystem->diskbackup->CssStyle = \"\";\r\n\t\t\t$filesystem->diskbackup->CssClass = \"\";\r\n\t\t\t$filesystem->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->ViewValue = $filesystem->contact2->CurrentValue;\r\n\t\t\t$filesystem->contact2->CssStyle = \"\";\r\n\t\t\t$filesystem->contact2->CssClass = \"\";\r\n\t\t\t$filesystem->contact2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->ViewValue = $filesystem->rescomp->CurrentValue;\r\n\t\t\t$filesystem->rescomp->CssStyle = \"\";\r\n\t\t\t$filesystem->rescomp->CssClass = \"\";\r\n\t\t\t$filesystem->rescomp->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t} elseif ($filesystem->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// id\r\n\t\t\t$filesystem->id->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->id->EditValue = $filesystem->id->CurrentValue;\r\n\t\t\t$filesystem->id->CssStyle = \"\";\r\n\t\t\t$filesystem->id->CssClass = \"\";\r\n\t\t\t$filesystem->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->mount->EditValue = $filesystem->mount->CurrentValue;\r\n\t\t\t$filesystem->mount->CssStyle = \"\";\r\n\t\t\t$filesystem->mount->CssClass = \"\";\r\n\t\t\t$filesystem->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->path->EditValue = $filesystem->path->CurrentValue;\r\n\t\t\t$filesystem->path->CssStyle = \"\";\r\n\t\t\t$filesystem->path->CssClass = \"\";\r\n\t\t\t$filesystem->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->parent->EditValue = $filesystem->parent->CurrentValue;\r\n\t\t\t$filesystem->parent->CssStyle = \"\";\r\n\t\t\t$filesystem->parent->CssClass = \"\";\r\n\t\t\t$filesystem->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->deprecated->EditValue = $filesystem->deprecated->CurrentValue;\r\n\t\t\t$filesystem->deprecated->CssStyle = \"\";\r\n\t\t\t$filesystem->deprecated->CssClass = \"\";\r\n\t\t\t$filesystem->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->gid->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->gid->CurrentValue = $filesystem->gid->getSessionValue();\r\n\t\t\tif (strval($filesystem->gid->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `grp` WHERE `id` = \" . ew_AdjustSql($filesystem->gid->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->gid->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->gid->ViewValue = $filesystem->gid->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->gid->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->gid->CssStyle = \"\";\r\n\t\t\t$filesystem->gid->CssClass = \"\";\r\n\t\t\t$filesystem->gid->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `grp`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->gid->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->snapshot->EditValue = ew_HtmlEncode($filesystem->snapshot->CurrentValue);\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->tapebackup->EditValue = ew_HtmlEncode($filesystem->tapebackup->CurrentValue);\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->diskbackup->EditValue = ew_HtmlEncode($filesystem->diskbackup->CurrentValue);\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->type->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->type->CurrentValue = $filesystem->type->getSessionValue();\r\n\t\t\tif (strval($filesystem->type->CurrentValue) <> \"\") {\r\n\t\t\t\t$sSqlWrk = \"SELECT `id`, `name` FROM `server_type` WHERE `id` = \" . ew_AdjustSql($filesystem->type->CurrentValue) . \"\";\r\n\t\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup value(s) found\r\n\t\t\t\t\t$filesystem->type->ViewValue = $rswrk->fields('id');\r\n\t\t\t\t\t$filesystem->type->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('name');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$filesystem->type->ViewValue = $filesystem->type->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$filesystem->type->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$filesystem->type->CssStyle = \"\";\r\n\t\t\t$filesystem->type->CssClass = \"\";\r\n\t\t\t$filesystem->type->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$sSqlWrk = \"SELECT `id`, `id`, `name`, '' AS SelectFilterFld FROM `server_type`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE $sWhereWrk\";\r\n\t\t\t$sSqlWrk .= \" ORDER BY `id` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\", \"\"));\r\n\t\t\t$filesystem->type->EditValue = $arwrk;\r\n\t\t\t}\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->EditCustomAttributes = \"\";\r\n\t\t\tif ($filesystem->contact->getSessionValue() <> \"\") {\r\n\t\t\t\t$filesystem->contact->CurrentValue = $filesystem->contact->getSessionValue();\r\n\t\t\t$filesystem->contact->ViewValue = $filesystem->contact->CurrentValue;\r\n\t\t\t$filesystem->contact->CssStyle = \"\";\r\n\t\t\t$filesystem->contact->CssClass = \"\";\r\n\t\t\t$filesystem->contact->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t$filesystem->contact->EditValue = ew_HtmlEncode($filesystem->contact->CurrentValue);\r\n\t\t\t}\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->contact2->EditValue = ew_HtmlEncode($filesystem->contact2->CurrentValue);\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->EditCustomAttributes = \"\";\r\n\t\t\t$filesystem->rescomp->EditValue = ew_HtmlEncode($filesystem->rescomp->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// id\r\n\r\n\t\t\t$filesystem->id->HrefValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$filesystem->mount->HrefValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$filesystem->path->HrefValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$filesystem->parent->HrefValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$filesystem->deprecated->HrefValue = \"\";\r\n\r\n\t\t\t// gid\r\n\t\t\t$filesystem->gid->HrefValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$filesystem->snapshot->HrefValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$filesystem->tapebackup->HrefValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$filesystem->diskbackup->HrefValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$filesystem->type->HrefValue = \"\";\r\n\r\n\t\t\t// contact\r\n\t\t\t$filesystem->contact->HrefValue = \"\";\r\n\r\n\t\t\t// contact2\r\n\t\t\t$filesystem->contact2->HrefValue = \"\";\r\n\r\n\t\t\t// rescomp\r\n\t\t\t$filesystem->rescomp->HrefValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\t$filesystem->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $mst_vendor;\n\n\t\t// Call Row_Rendering event\n\t\t$mst_vendor->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// kode\n\n\t\t$mst_vendor->kode->CellCssStyle = \"\";\n\t\t$mst_vendor->kode->CellCssClass = \"\";\n\n\t\t// nama\n\t\t$mst_vendor->nama->CellCssStyle = \"\";\n\t\t$mst_vendor->nama->CellCssClass = \"\";\n\n\t\t// alamat\n\t\t$mst_vendor->alamat->CellCssStyle = \"\";\n\t\t$mst_vendor->alamat->CellCssClass = \"\";\n\n\t\t// alamatpajak\n\t\t$mst_vendor->alamatpajak->CellCssStyle = \"\";\n\t\t$mst_vendor->alamatpajak->CellCssClass = \"\";\n\n\t\t// npwp\n\t\t$mst_vendor->npwp->CellCssStyle = \"\";\n\t\t$mst_vendor->npwp->CellCssClass = \"\";\n\n\t\t// pic\n\t\t$mst_vendor->pic->CellCssStyle = \"\";\n\t\t$mst_vendor->pic->CellCssClass = \"\";\n\n\t\t// phone\n\t\t$mst_vendor->phone->CellCssStyle = \"\";\n\t\t$mst_vendor->phone->CellCssClass = \"\";\n\n\t\t// fax\n\t\t$mst_vendor->fax->CellCssStyle = \"\";\n\t\t$mst_vendor->fax->CellCssClass = \"\";\n\n\t\t// email\n\t\t$mst_vendor->zemail->CellCssStyle = \"\";\n\t\t$mst_vendor->zemail->CellCssClass = \"\";\n\n\t\t// peruntukan\n\t\t$mst_vendor->peruntukan->CellCssStyle = \"\";\n\t\t$mst_vendor->peruntukan->CellCssClass = \"\";\n\t\tif ($mst_vendor->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->ViewValue = $mst_vendor->kode->CurrentValue;\n\t\t\t$mst_vendor->kode->CssStyle = \"\";\n\t\t\t$mst_vendor->kode->CssClass = \"\";\n\t\t\t$mst_vendor->kode->ViewCustomAttributes = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->ViewValue = $mst_vendor->nama->CurrentValue;\n\t\t\t$mst_vendor->nama->CssStyle = \"\";\n\t\t\t$mst_vendor->nama->CssClass = \"\";\n\t\t\t$mst_vendor->nama->ViewCustomAttributes = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->ViewValue = $mst_vendor->alamat->CurrentValue;\n\t\t\t$mst_vendor->alamat->CssStyle = \"\";\n\t\t\t$mst_vendor->alamat->CssClass = \"\";\n\t\t\t$mst_vendor->alamat->ViewCustomAttributes = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->ViewValue = $mst_vendor->alamatpajak->CurrentValue;\n\t\t\t$mst_vendor->alamatpajak->CssStyle = \"\";\n\t\t\t$mst_vendor->alamatpajak->CssClass = \"\";\n\t\t\t$mst_vendor->alamatpajak->ViewCustomAttributes = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->ViewValue = $mst_vendor->npwp->CurrentValue;\n\t\t\t$mst_vendor->npwp->CssStyle = \"\";\n\t\t\t$mst_vendor->npwp->CssClass = \"\";\n\t\t\t$mst_vendor->npwp->ViewCustomAttributes = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->ViewValue = $mst_vendor->pic->CurrentValue;\n\t\t\t$mst_vendor->pic->CssStyle = \"\";\n\t\t\t$mst_vendor->pic->CssClass = \"\";\n\t\t\t$mst_vendor->pic->ViewCustomAttributes = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->ViewValue = $mst_vendor->phone->CurrentValue;\n\t\t\t$mst_vendor->phone->CssStyle = \"\";\n\t\t\t$mst_vendor->phone->CssClass = \"\";\n\t\t\t$mst_vendor->phone->ViewCustomAttributes = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->ViewValue = $mst_vendor->fax->CurrentValue;\n\t\t\t$mst_vendor->fax->CssStyle = \"\";\n\t\t\t$mst_vendor->fax->CssClass = \"\";\n\t\t\t$mst_vendor->fax->ViewCustomAttributes = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->ViewValue = $mst_vendor->zemail->CurrentValue;\n\t\t\t$mst_vendor->zemail->CssStyle = \"\";\n\t\t\t$mst_vendor->zemail->CssClass = \"\";\n\t\t\t$mst_vendor->zemail->ViewCustomAttributes = \"\";\n\n\t\t\t// peruntukan\n\t\t\tif (strval($mst_vendor->peruntukan->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($mst_vendor->peruntukan->CurrentValue) {\n\t\t\t\t\tcase \"unit\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Unit\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"part\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Part\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"material\":\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = \"Material\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$mst_vendor->peruntukan->ViewValue = $mst_vendor->peruntukan->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$mst_vendor->peruntukan->ViewValue = NULL;\n\t\t\t}\n\t\t\t$mst_vendor->peruntukan->CssStyle = \"\";\n\t\t\t$mst_vendor->peruntukan->CssClass = \"\";\n\t\t\t$mst_vendor->peruntukan->ViewCustomAttributes = \"\";\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->HrefValue = \"\";\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->HrefValue = \"\";\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->HrefValue = \"\";\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->HrefValue = \"\";\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->HrefValue = \"\";\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->HrefValue = \"\";\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->HrefValue = \"\";\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->HrefValue = \"\";\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->HrefValue = \"\";\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->HrefValue = \"\";\n\t\t} elseif ($mst_vendor->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// kode\n\t\t\t$mst_vendor->kode->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->kode->EditValue = ew_HtmlEncode($mst_vendor->kode->CurrentValue);\n\n\t\t\t// nama\n\t\t\t$mst_vendor->nama->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->nama->EditValue = ew_HtmlEncode($mst_vendor->nama->CurrentValue);\n\n\t\t\t// alamat\n\t\t\t$mst_vendor->alamat->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamat->EditValue = ew_HtmlEncode($mst_vendor->alamat->CurrentValue);\n\n\t\t\t// alamatpajak\n\t\t\t$mst_vendor->alamatpajak->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->alamatpajak->EditValue = ew_HtmlEncode($mst_vendor->alamatpajak->CurrentValue);\n\n\t\t\t// npwp\n\t\t\t$mst_vendor->npwp->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->npwp->EditValue = ew_HtmlEncode($mst_vendor->npwp->CurrentValue);\n\n\t\t\t// pic\n\t\t\t$mst_vendor->pic->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->pic->EditValue = ew_HtmlEncode($mst_vendor->pic->CurrentValue);\n\n\t\t\t// phone\n\t\t\t$mst_vendor->phone->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->phone->EditValue = ew_HtmlEncode($mst_vendor->phone->CurrentValue);\n\n\t\t\t// fax\n\t\t\t$mst_vendor->fax->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->fax->EditValue = ew_HtmlEncode($mst_vendor->fax->CurrentValue);\n\n\t\t\t// email\n\t\t\t$mst_vendor->zemail->EditCustomAttributes = \"\";\n\t\t\t$mst_vendor->zemail->EditValue = ew_HtmlEncode($mst_vendor->zemail->CurrentValue);\n\n\t\t\t// peruntukan\n\t\t\t$mst_vendor->peruntukan->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"unit\", \"Unit\");\n\t\t\t$arwrk[] = array(\"part\", \"Part\");\n\t\t\t$arwrk[] = array(\"material\", \"Material\");\n\t\t\tarray_unshift($arwrk, array(\"\", \"Please Select\"));\n\t\t\t$mst_vendor->peruntukan->EditValue = $arwrk;\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$mst_vendor->Row_Rendered();\n\t}", "function make_form_row(){\n\t\t$index = $this->col_index;\n\t\t# remove the * at the start of the first line\n\t\t$this->col_data = preg_replace(\"/^\\*/\",\"\",$this->col_data);\n\t\t# split the lines and remove the * from each. The value in each line goes into the array $values\n\t\t$values = preg_split(\"/\\n\\*?/\", $this->col_data);\n\t\t# pad the values array to make sure there are 3 entries\n\t\t$values = array_pad($values, 3, \"\");\n\t\t\n\t\t/*\n\t\tmake three input boxes. TableEdit takes row input from an input array named field a \n\t\tvalue for a particular field[$index] can be an array\n\t\t\tfield[$index][] is the field name\n\t\t\t40 is the length of the box\n\t\t\t$value is the value for the ith line\n\t\t \n\t\t */\n\t\t $form = ''; #initialize\n\t\t foreach($values as $i => $value){\n\t\t\t$form .= \"$i:\".XML::input(\"field[$index][]\",40,$value, array('maxlength'=>255)).\"<br>\\n\";\n\t\t}\n\t\treturn $form;\n\t\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t// Common render codes\n\t\t// rid\n\t\t// usn\n\t\t// name\n\t\t// sc1\n\t\t// s1\n\t\t// sc2\n\t\t// s2\n\t\t// sc3\n\t\t// s3\n\t\t// sc4\n\t\t// s4\n\t\t// sc5\n\t\t// s5\n\t\t// sc6\n\t\t// s6\n\t\t// sc7\n\t\t// s7\n\t\t// sc8\n\t\t// s8\n\t\t// total\n\t\t// rid\n\n\t\t$this->rid->ViewValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->ViewValue = $this->usn->CurrentValue;\n\t\t$this->usn->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->ViewValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->ViewCustomAttributes = \"\";\n\n\t\t// s1\n\t\t$this->s1->ViewValue = $this->s1->CurrentValue;\n\t\t$this->s1->ViewCustomAttributes = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->ViewValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->ViewCustomAttributes = \"\";\n\n\t\t// s2\n\t\t$this->s2->ViewValue = $this->s2->CurrentValue;\n\t\t$this->s2->ViewCustomAttributes = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->ViewValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->ViewCustomAttributes = \"\";\n\n\t\t// s3\n\t\t$this->s3->ViewValue = $this->s3->CurrentValue;\n\t\t$this->s3->ViewCustomAttributes = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->ViewValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->ViewCustomAttributes = \"\";\n\n\t\t// s4\n\t\t$this->s4->ViewValue = $this->s4->CurrentValue;\n\t\t$this->s4->ViewCustomAttributes = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->ViewValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->ViewCustomAttributes = \"\";\n\n\t\t// s5\n\t\t$this->s5->ViewValue = $this->s5->CurrentValue;\n\t\t$this->s5->ViewCustomAttributes = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->ViewValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->ViewCustomAttributes = \"\";\n\n\t\t// s6\n\t\t$this->s6->ViewValue = $this->s6->CurrentValue;\n\t\t$this->s6->ViewCustomAttributes = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->ViewValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->ViewCustomAttributes = \"\";\n\n\t\t// s7\n\t\t$this->s7->ViewValue = $this->s7->CurrentValue;\n\t\t$this->s7->ViewCustomAttributes = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->ViewValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->ViewCustomAttributes = \"\";\n\n\t\t// s8\n\t\t$this->s8->ViewValue = $this->s8->CurrentValue;\n\t\t$this->s8->ViewCustomAttributes = \"\";\n\n\t\t// total\n\t\t$this->total->ViewValue = $this->total->CurrentValue;\n\t\t$this->total->ViewCustomAttributes = \"\";\n\n\t\t// rid\n\t\t$this->rid->LinkCustomAttributes = \"\";\n\t\t$this->rid->HrefValue = \"\";\n\t\t$this->rid->TooltipValue = \"\";\n\n\t\t// usn\n\t\t$this->usn->LinkCustomAttributes = \"\";\n\t\t$this->usn->HrefValue = \"\";\n\t\t$this->usn->TooltipValue = \"\";\n\n\t\t// name\n\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t$this->name->HrefValue = \"\";\n\t\t$this->name->TooltipValue = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->LinkCustomAttributes = \"\";\n\t\t$this->sc1->HrefValue = \"\";\n\t\t$this->sc1->TooltipValue = \"\";\n\n\t\t// s1\n\t\t$this->s1->LinkCustomAttributes = \"\";\n\t\t$this->s1->HrefValue = \"\";\n\t\t$this->s1->TooltipValue = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->LinkCustomAttributes = \"\";\n\t\t$this->sc2->HrefValue = \"\";\n\t\t$this->sc2->TooltipValue = \"\";\n\n\t\t// s2\n\t\t$this->s2->LinkCustomAttributes = \"\";\n\t\t$this->s2->HrefValue = \"\";\n\t\t$this->s2->TooltipValue = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->LinkCustomAttributes = \"\";\n\t\t$this->sc3->HrefValue = \"\";\n\t\t$this->sc3->TooltipValue = \"\";\n\n\t\t// s3\n\t\t$this->s3->LinkCustomAttributes = \"\";\n\t\t$this->s3->HrefValue = \"\";\n\t\t$this->s3->TooltipValue = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->LinkCustomAttributes = \"\";\n\t\t$this->sc4->HrefValue = \"\";\n\t\t$this->sc4->TooltipValue = \"\";\n\n\t\t// s4\n\t\t$this->s4->LinkCustomAttributes = \"\";\n\t\t$this->s4->HrefValue = \"\";\n\t\t$this->s4->TooltipValue = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->LinkCustomAttributes = \"\";\n\t\t$this->sc5->HrefValue = \"\";\n\t\t$this->sc5->TooltipValue = \"\";\n\n\t\t// s5\n\t\t$this->s5->LinkCustomAttributes = \"\";\n\t\t$this->s5->HrefValue = \"\";\n\t\t$this->s5->TooltipValue = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->LinkCustomAttributes = \"\";\n\t\t$this->sc6->HrefValue = \"\";\n\t\t$this->sc6->TooltipValue = \"\";\n\n\t\t// s6\n\t\t$this->s6->LinkCustomAttributes = \"\";\n\t\t$this->s6->HrefValue = \"\";\n\t\t$this->s6->TooltipValue = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->LinkCustomAttributes = \"\";\n\t\t$this->sc7->HrefValue = \"\";\n\t\t$this->sc7->TooltipValue = \"\";\n\n\t\t// s7\n\t\t$this->s7->LinkCustomAttributes = \"\";\n\t\t$this->s7->HrefValue = \"\";\n\t\t$this->s7->TooltipValue = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->LinkCustomAttributes = \"\";\n\t\t$this->sc8->HrefValue = \"\";\n\t\t$this->sc8->TooltipValue = \"\";\n\n\t\t// s8\n\t\t$this->s8->LinkCustomAttributes = \"\";\n\t\t$this->s8->HrefValue = \"\";\n\t\t$this->s8->TooltipValue = \"\";\n\n\t\t// total\n\t\t$this->total->LinkCustomAttributes = \"\";\n\t\t$this->total->HrefValue = \"\";\n\t\t$this->total->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->CustomTemplateFieldValues();\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Id_Pase\r\n\t\t// Serie_Equipo\r\n\t\t// Id_Hardware\r\n\t\t// SN\r\n\t\t// Modelo_Net\r\n\t\t// Marca_Arranque\r\n\t\t// Nombre_Titular\r\n\t\t// Dni_Titular\r\n\t\t// Cuil_Titular\r\n\t\t// Nombre_Tutor\r\n\t\t// DniTutor\r\n\t\t// Domicilio\r\n\t\t// Tel_Tutor\r\n\t\t// CelTutor\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t// Escuela_Alta\r\n\t\t// Directivo_Alta\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t// Dpto_Esc_alta\r\n\t\t// Localidad_Esc_Alta\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t// Rte_Alta\r\n\t\t// Tel_Rte_Alta\r\n\t\t// Email_Rte_Alta\r\n\t\t// Serie_Server_Alta\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t// Escuela_Baja\r\n\t\t// Directivo_Baja\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t// Dpto_Esc_Baja\r\n\t\t// Localidad_Esc_Baja\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t// Rte_Baja\r\n\t\t// Tel_Rte_Baja\r\n\t\t// Email_Rte_Baja\r\n\t\t// Serie_Server_Baja\r\n\t\t// Fecha_Pase\r\n\t\t// Id_Estado_Pase\r\n\t\t// Ruta_Archivo\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Serie_Equipo\r\n\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->ViewValue = $this->Serie_Equipo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Serie_Equipo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Serie_Equipo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Hardware\r\n\t\t$this->Id_Hardware->ViewValue = $this->Id_Hardware->CurrentValue;\r\n\t\t$this->Id_Hardware->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Modelo_Net\r\n\t\tif (strval($this->Modelo_Net->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Modelo_Net->ViewValue = $this->Modelo_Net->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Modelo_Net->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Modelo_Net->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Marca_Arranque\r\n\t\t$this->Marca_Arranque->ViewValue = $this->Marca_Arranque->CurrentValue;\r\n\t\t$this->Marca_Arranque->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Titular\r\n\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->ViewValue = $this->Nombre_Titular->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Titular->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dni_Titular\r\n\t\t$this->Dni_Titular->ViewValue = $this->Dni_Titular->CurrentValue;\r\n\t\t$this->Dni_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Titular\r\n\t\t$this->Cuil_Titular->ViewValue = $this->Cuil_Titular->CurrentValue;\r\n\t\t$this->Cuil_Titular->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Nombre_Tutor\r\n\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->ViewValue = $this->Nombre_Tutor->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Nombre_Tutor->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Nombre_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// DniTutor\r\n\t\t$this->DniTutor->ViewValue = $this->DniTutor->CurrentValue;\r\n\t\t$this->DniTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio\r\n\t\t$this->Domicilio->ViewValue = $this->Domicilio->CurrentValue;\r\n\t\t$this->Domicilio->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Tutor\r\n\t\t$this->Tel_Tutor->ViewValue = $this->Tel_Tutor->CurrentValue;\r\n\t\t$this->Tel_Tutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// CelTutor\r\n\t\t$this->CelTutor->ViewValue = $this->CelTutor->CurrentValue;\r\n\t\t$this->CelTutor->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Alta\r\n\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = $this->Cue_Establecimiento_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Alta\r\n\t\t$this->Escuela_Alta->ViewValue = $this->Escuela_Alta->CurrentValue;\r\n\t\t$this->Escuela_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Alta\r\n\t\t$this->Directivo_Alta->ViewValue = $this->Directivo_Alta->CurrentValue;\r\n\t\t$this->Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Alta\r\n\t\t$this->Cuil_Directivo_Alta->ViewValue = $this->Cuil_Directivo_Alta->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_alta\r\n\t\tif (strval($this->Dpto_Esc_alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_alta->ViewValue = $this->Dpto_Esc_alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Alta\r\n\t\tif (strval($this->Localidad_Esc_Alta->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Alta->ViewValue = $this->Localidad_Esc_Alta->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Alta->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Alta\r\n\t\t$this->Domicilio_Esc_Alta->ViewValue = $this->Domicilio_Esc_Alta->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Alta\r\n\t\t$this->Rte_Alta->ViewValue = $this->Rte_Alta->CurrentValue;\r\n\t\t$this->Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Alta\r\n\t\t$this->Tel_Rte_Alta->ViewValue = $this->Tel_Rte_Alta->CurrentValue;\r\n\t\t$this->Tel_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Alta\r\n\t\t$this->Email_Rte_Alta->ViewValue = $this->Email_Rte_Alta->CurrentValue;\r\n\t\t$this->Email_Rte_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Alta\r\n\t\t$this->Serie_Server_Alta->ViewValue = $this->Serie_Server_Alta->CurrentValue;\r\n\t\t$this->Serie_Server_Alta->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue_Establecimiento_Baja\r\n\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = $this->Cue_Establecimiento_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Cue_Establecimiento_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Cue_Establecimiento_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Escuela_Baja\r\n\t\t$this->Escuela_Baja->ViewValue = $this->Escuela_Baja->CurrentValue;\r\n\t\t$this->Escuela_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Directivo_Baja\r\n\t\t$this->Directivo_Baja->ViewValue = $this->Directivo_Baja->CurrentValue;\r\n\t\t$this->Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cuil_Directivo_Baja\r\n\t\t$this->Cuil_Directivo_Baja->ViewValue = $this->Cuil_Directivo_Baja->CurrentValue;\r\n\t\t$this->Cuil_Directivo_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Dpto_Esc_Baja\r\n\t\tif (strval($this->Dpto_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Dpto_Esc_Baja->ViewValue = $this->Dpto_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Dpto_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Dpto_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Localidad_Esc_Baja\r\n\t\tif (strval($this->Localidad_Esc_Baja->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `localidades`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Localidad_Esc_Baja->ViewValue = $this->Localidad_Esc_Baja->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Localidad_Esc_Baja->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Localidad_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Domicilio_Esc_Baja\r\n\t\t$this->Domicilio_Esc_Baja->ViewValue = $this->Domicilio_Esc_Baja->CurrentValue;\r\n\t\t$this->Domicilio_Esc_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Rte_Baja\r\n\t\t$this->Rte_Baja->ViewValue = $this->Rte_Baja->CurrentValue;\r\n\t\t$this->Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Tel_Rte_Baja\r\n\t\t$this->Tel_Rte_Baja->ViewValue = $this->Tel_Rte_Baja->CurrentValue;\r\n\t\t$this->Tel_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Email_Rte_Baja\r\n\t\t$this->Email_Rte_Baja->ViewValue = $this->Email_Rte_Baja->CurrentValue;\r\n\t\t$this->Email_Rte_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Serie_Server_Baja\r\n\t\t$this->Serie_Server_Baja->ViewValue = $this->Serie_Server_Baja->CurrentValue;\r\n\t\t$this->Serie_Server_Baja->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Pase\r\n\t\t$this->Fecha_Pase->ViewValue = $this->Fecha_Pase->CurrentValue;\r\n\t\t$this->Fecha_Pase->ViewValue = ew_FormatDateTime($this->Fecha_Pase->ViewValue, 7);\r\n\t\t$this->Fecha_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado_Pase\r\n\t\tif (strval($this->Id_Estado_Pase->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_pase`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado_Pase->ViewValue = $this->Id_Estado_Pase->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado_Pase->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado_Pase->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Ruta_Archivo\r\n\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t} else {\r\n\t\t\t$this->Ruta_Archivo->ViewValue = \"\";\r\n\t\t}\r\n\t\t$this->Ruta_Archivo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\t\t\t$this->Serie_Equipo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\t\t\t$this->Id_Hardware->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\t\t\t$this->Modelo_Net->TooltipValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\t\t\t$this->Marca_Arranque->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\t\t\t$this->Dni_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Titular->TooltipValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Nombre_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\t\t\t$this->DniTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\t\t\t$this->Domicilio->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\t\t\t$this->Tel_Tutor->TooltipValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\t\t\t$this->CelTutor->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Alta->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\t\t\t$this->Escuela_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\t\t\t$this->Email_Rte_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\t\t\t$this->Serie_Server_Baja->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado_Pase->TooltipValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t$this->Ruta_Archivo->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Equipo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\tif (strval($this->Serie_Equipo->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`NroSerie`\" . ew_SearchString(\"=\", $this->Serie_Equipo->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `NroSerie`, `NroSerie` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `equipos`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Serie_Equipo->LookupFilters = array(\"dx1\" => \"`NroSerie`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Serie_Equipo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = $this->Serie_Equipo->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Serie_Equipo->EditValue = ew_HtmlEncode($this->Serie_Equipo->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Serie_Equipo->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Serie_Equipo->PlaceHolder = ew_RemoveHtml($this->Serie_Equipo->FldCaption());\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Hardware->EditCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->EditValue = ew_HtmlEncode($this->Id_Hardware->CurrentValue);\r\n\t\t\t$this->Id_Hardware->PlaceHolder = ew_RemoveHtml($this->Id_Hardware->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Modelo_Net->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Modelo_Net->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Descripcion`\" . ew_SearchString(\"=\", $this->Modelo_Net->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Descripcion`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Modelo_Net->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Modelo_Net, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Modelo_Net->EditValue = $arwrk;\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Marca_Arranque->EditCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->EditValue = ew_HtmlEncode($this->Marca_Arranque->CurrentValue);\r\n\t\t\t$this->Marca_Arranque->PlaceHolder = ew_RemoveHtml($this->Marca_Arranque->FldCaption());\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Titular->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Titular->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `personas`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Titular->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Titular, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = $this->Nombre_Titular->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Titular->EditValue = ew_HtmlEncode($this->Nombre_Titular->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Titular->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Titular->PlaceHolder = ew_RemoveHtml($this->Nombre_Titular->FldCaption());\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dni_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->EditValue = ew_HtmlEncode($this->Dni_Titular->CurrentValue);\r\n\t\t\t$this->Dni_Titular->PlaceHolder = ew_RemoveHtml($this->Dni_Titular->FldCaption());\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Titular->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->EditValue = ew_HtmlEncode($this->Cuil_Titular->CurrentValue);\r\n\t\t\t$this->Cuil_Titular->PlaceHolder = ew_RemoveHtml($this->Cuil_Titular->FldCaption());\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nombre_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\tif (strval($this->Nombre_Tutor->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Apellidos_Nombres`\" . ew_SearchString(\"=\", $this->Nombre_Tutor->CurrentValue, EW_DATATYPE_MEMO, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Apellidos_Nombres`, `Apellidos_Nombres` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tutores`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Nombre_Tutor->LookupFilters = array(\"dx1\" => \"`Apellidos_Nombres`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Nombre_Tutor, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = $this->Nombre_Tutor->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Nombre_Tutor->EditValue = ew_HtmlEncode($this->Nombre_Tutor->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Nombre_Tutor->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Nombre_Tutor->PlaceHolder = ew_RemoveHtml($this->Nombre_Tutor->FldCaption());\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->DniTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->EditValue = ew_HtmlEncode($this->DniTutor->CurrentValue);\r\n\t\t\t$this->DniTutor->PlaceHolder = ew_RemoveHtml($this->DniTutor->FldCaption());\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->EditValue = ew_HtmlEncode($this->Domicilio->CurrentValue);\r\n\t\t\t$this->Domicilio->PlaceHolder = ew_RemoveHtml($this->Domicilio->FldCaption());\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Tutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->EditValue = ew_HtmlEncode($this->Tel_Tutor->CurrentValue);\r\n\t\t\t$this->Tel_Tutor->PlaceHolder = ew_RemoveHtml($this->Tel_Tutor->FldCaption());\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->CelTutor->EditCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->EditValue = ew_HtmlEncode($this->CelTutor->CurrentValue);\r\n\t\t\t$this->CelTutor->PlaceHolder = ew_RemoveHtml($this->CelTutor->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Alta->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Alta->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = $this->Cue_Establecimiento_Alta->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Alta->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Alta->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Alta->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Alta->FldCaption());\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->EditValue = ew_HtmlEncode($this->Escuela_Alta->CurrentValue);\r\n\t\t\t$this->Escuela_Alta->PlaceHolder = ew_RemoveHtml($this->Escuela_Alta->FldCaption());\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->EditValue = ew_HtmlEncode($this->Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Alta->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Alta->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Alta->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Alta->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Alta->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Alta, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Alta->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Alta->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Alta->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Alta->FldCaption());\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->EditValue = ew_HtmlEncode($this->Rte_Alta->CurrentValue);\r\n\t\t\t$this->Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->EditValue = ew_HtmlEncode($this->Tel_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->EditValue = ew_HtmlEncode($this->Email_Rte_Alta->CurrentValue);\r\n\t\t\t$this->Email_Rte_Alta->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Alta->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Alta->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->EditValue = ew_HtmlEncode($this->Serie_Server_Alta->CurrentValue);\r\n\t\t\t$this->Serie_Server_Alta->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Alta->FldCaption());\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\tif (strval($this->Cue_Establecimiento_Baja->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Cue_Establecimiento`\" . ew_SearchString(\"=\", $this->Cue_Establecimiento_Baja->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t$sSqlWrk = \"SELECT `Cue_Establecimiento`, `Cue_Establecimiento` AS `DispFld`, `Nombre_Establecimiento` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `establecimientos_educativos_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->LookupFilters = array(\"dx1\" => \"`Cue_Establecimiento`\", \"dx2\" => \"`Nombre_Establecimiento`\");\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Cue_Establecimiento_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$arwrk = array();\r\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\r\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = $this->Cue_Establecimiento_Baja->DisplayValue($arwrk);\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = ew_HtmlEncode($this->Cue_Establecimiento_Baja->CurrentValue);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->Cue_Establecimiento_Baja->EditValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->Cue_Establecimiento_Baja->PlaceHolder = ew_RemoveHtml($this->Cue_Establecimiento_Baja->FldCaption());\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Escuela_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->EditValue = ew_HtmlEncode($this->Escuela_Baja->CurrentValue);\r\n\t\t\t$this->Escuela_Baja->PlaceHolder = ew_RemoveHtml($this->Escuela_Baja->FldCaption());\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->EditValue = ew_HtmlEncode($this->Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->EditValue = ew_HtmlEncode($this->Cuil_Directivo_Baja->CurrentValue);\r\n\t\t\t$this->Cuil_Directivo_Baja->PlaceHolder = ew_RemoveHtml($this->Cuil_Directivo_Baja->FldCaption());\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Dpto_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Dpto_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Dpto_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `departamento`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Dpto_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Dpto_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Localidad_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Localidad_Esc_Baja->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Nombre`\" . ew_SearchString(\"=\", $this->Localidad_Esc_Baja->CurrentValue, EW_DATATYPE_STRING, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Nombre`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `localidades`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Localidad_Esc_Baja, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Localidad_Esc_Baja->EditValue = $arwrk;\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->EditValue = ew_HtmlEncode($this->Domicilio_Esc_Baja->CurrentValue);\r\n\t\t\t$this->Domicilio_Esc_Baja->PlaceHolder = ew_RemoveHtml($this->Domicilio_Esc_Baja->FldCaption());\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->EditValue = ew_HtmlEncode($this->Rte_Baja->CurrentValue);\r\n\t\t\t$this->Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Tel_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->EditValue = ew_HtmlEncode($this->Tel_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Tel_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Tel_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Email_Rte_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->EditValue = ew_HtmlEncode($this->Email_Rte_Baja->CurrentValue);\r\n\t\t\t$this->Email_Rte_Baja->PlaceHolder = ew_RemoveHtml($this->Email_Rte_Baja->FldCaption());\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Serie_Server_Baja->EditCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->EditValue = ew_HtmlEncode($this->Serie_Server_Baja->CurrentValue);\r\n\t\t\t$this->Serie_Server_Baja->PlaceHolder = ew_RemoveHtml($this->Serie_Server_Baja->FldCaption());\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Fecha_Pase->EditCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->Fecha_Pase->CurrentValue, 7));\r\n\t\t\t$this->Fecha_Pase->PlaceHolder = ew_RemoveHtml($this->Fecha_Pase->FldCaption());\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado_Pase->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado_Pase->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado_Pase`\" . ew_SearchString(\"=\", $this->Id_Estado_Pase->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado_Pase`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_pase`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado_Pase->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado_Pase, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado_Pase->EditValue = $arwrk;\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Ruta_Archivo->EditCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->DbValue)) {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t\t} else {\r\n\t\t\t\t$this->Ruta_Archivo->EditValue = \"\";\r\n\t\t\t}\r\n\t\t\tif (!ew_Empty($this->Ruta_Archivo->CurrentValue))\r\n\t\t\t\t$this->Ruta_Archivo->Upload->FileName = $this->Ruta_Archivo->CurrentValue;\r\n\t\t\tif ($this->CurrentAction == \"I\" && !$this->EventCancelled) ew_RenderUploadField($this->Ruta_Archivo);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// Serie_Equipo\r\n\r\n\t\t\t$this->Serie_Equipo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Equipo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Hardware->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Modelo_Net->HrefValue = \"\";\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Marca_Arranque->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dni_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Titular->HrefValue = \"\";\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nombre_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->DniTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Tutor->HrefValue = \"\";\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->LinkCustomAttributes = \"\";\r\n\t\t\t$this->CelTutor->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_alta->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Alta->HrefValue = \"\";\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue_Establecimiento_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Escuela_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cuil_Directivo_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Dpto_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Localidad_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Domicilio_Esc_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Tel_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Email_Rte_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Serie_Server_Baja->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado_Pase->HrefValue = \"\";\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\t$this->Ruta_Archivo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue = \"\";\r\n\t\t\t$this->Ruta_Archivo->HrefValue2 = $this->Ruta_Archivo->UploadPath . $this->Ruta_Archivo->Upload->DbValue;\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $frm_fp_units_accomplishment;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$frm_fp_units_accomplishment->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// units_id\n\t\t// focal_person_id\n\t\t// unit_id\n\t\t// cu_sequence\n\t\t// cu_short_name\n\t\t// cu_unit_name\n\t\t// unit_name\n\t\t// unit_name_short\n\t\t// personnel_count\n\t\t// mfo_1\n\t\t// mfo_2\n\t\t// mfo_3\n\t\t// mfo_4\n\t\t// mfo_5\n\t\t// sto\n\t\t// gass\n\t\t// users_name\n\t\t// users_nameLast\n\t\t// users_nameFirst\n\t\t// users_nameMiddle\n\t\t// users_userLoginName\n\t\t// users_password\n\t\t// users_email\n\t\t// users_contactNo\n\t\t// tbl_cutOffDate_id\n\t\t// t_cutOffDate\n\t\t// t_cutOffDate_remarks\n\n\t\tif ($frm_fp_units_accomplishment->RowType == UP_ROWTYPE_VIEW) { // View row\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewValue = $frm_fp_units_accomplishment->units_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->units_id->ViewCustomAttributes = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewValue = $frm_fp_units_accomplishment->focal_person_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewValue = $frm_fp_units_accomplishment->unit_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_id->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewValue = $frm_fp_units_accomplishment->cu_sequence->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewValue = $frm_fp_units_accomplishment->cu_short_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->ViewCustomAttributes = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewValue = $frm_fp_units_accomplishment->cu_unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewValue = $frm_fp_units_accomplishment->unit_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name->ViewCustomAttributes = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewValue = $frm_fp_units_accomplishment->unit_name_short->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->ViewCustomAttributes = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewValue = $frm_fp_units_accomplishment->personnel_count->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->personnel_count->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewValue = $frm_fp_units_accomplishment->mfo_1->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_1->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewValue = $frm_fp_units_accomplishment->mfo_2->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_2->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewValue = $frm_fp_units_accomplishment->mfo_3->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_3->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewValue = $frm_fp_units_accomplishment->mfo_4->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_4->ViewCustomAttributes = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewValue = $frm_fp_units_accomplishment->mfo_5->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->mfo_5->ViewCustomAttributes = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->ViewValue = $frm_fp_units_accomplishment->sto->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->sto->ViewCustomAttributes = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->ViewValue = $frm_fp_units_accomplishment->gass->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->gass->ViewCustomAttributes = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewValue = $frm_fp_units_accomplishment->users_name->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_name->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewValue = $frm_fp_units_accomplishment->users_nameLast->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewValue = $frm_fp_units_accomplishment->users_nameFirst->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->ViewCustomAttributes = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewValue = $frm_fp_units_accomplishment->users_nameMiddle->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->ViewCustomAttributes = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewValue = $frm_fp_units_accomplishment->users_userLoginName->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->ViewCustomAttributes = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewValue = $frm_fp_units_accomplishment->users_password->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_password->ViewCustomAttributes = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewValue = $frm_fp_units_accomplishment->users_email->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_email->ViewCustomAttributes = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewValue = $frm_fp_units_accomplishment->users_contactNo->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->ViewCustomAttributes = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewValue = $frm_fp_units_accomplishment->tbl_cutOffDate_id->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewValue = up_FormatDateTime($frm_fp_units_accomplishment->t_cutOffDate->ViewValue, 6);\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->ViewCustomAttributes = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewValue = $frm_fp_units_accomplishment->t_cutOffDate_remarks->CurrentValue;\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->ViewCustomAttributes = \"\";\n\n\t\t\t// units_id\n\t\t\t$frm_fp_units_accomplishment->units_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->units_id->TooltipValue = \"\";\n\n\t\t\t// focal_person_id\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->focal_person_id->TooltipValue = \"\";\n\n\t\t\t// unit_id\n\t\t\t$frm_fp_units_accomplishment->unit_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_id->TooltipValue = \"\";\n\n\t\t\t// cu_sequence\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_sequence->TooltipValue = \"\";\n\n\t\t\t// cu_short_name\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_short_name->TooltipValue = \"\";\n\n\t\t\t// cu_unit_name\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->cu_unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name\n\t\t\t$frm_fp_units_accomplishment->unit_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name->TooltipValue = \"\";\n\n\t\t\t// unit_name_short\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->unit_name_short->TooltipValue = \"\";\n\n\t\t\t// personnel_count\n\t\t\t$frm_fp_units_accomplishment->personnel_count->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->personnel_count->TooltipValue = \"\";\n\n\t\t\t// mfo_1\n\t\t\t$frm_fp_units_accomplishment->mfo_1->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_1->TooltipValue = \"\";\n\n\t\t\t// mfo_2\n\t\t\t$frm_fp_units_accomplishment->mfo_2->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_2->TooltipValue = \"\";\n\n\t\t\t// mfo_3\n\t\t\t$frm_fp_units_accomplishment->mfo_3->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_3->TooltipValue = \"\";\n\n\t\t\t// mfo_4\n\t\t\t$frm_fp_units_accomplishment->mfo_4->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_4->TooltipValue = \"\";\n\n\t\t\t// mfo_5\n\t\t\t$frm_fp_units_accomplishment->mfo_5->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->mfo_5->TooltipValue = \"\";\n\n\t\t\t// sto\n\t\t\t$frm_fp_units_accomplishment->sto->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->sto->TooltipValue = \"\";\n\n\t\t\t// gass\n\t\t\t$frm_fp_units_accomplishment->gass->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->gass->TooltipValue = \"\";\n\n\t\t\t// users_name\n\t\t\t$frm_fp_units_accomplishment->users_name->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_name->TooltipValue = \"\";\n\n\t\t\t// users_nameLast\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameLast->TooltipValue = \"\";\n\n\t\t\t// users_nameFirst\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameFirst->TooltipValue = \"\";\n\n\t\t\t// users_nameMiddle\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_nameMiddle->TooltipValue = \"\";\n\n\t\t\t// users_userLoginName\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_userLoginName->TooltipValue = \"\";\n\n\t\t\t// users_password\n\t\t\t$frm_fp_units_accomplishment->users_password->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_password->TooltipValue = \"\";\n\n\t\t\t// users_email\n\t\t\t$frm_fp_units_accomplishment->users_email->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_email->TooltipValue = \"\";\n\n\t\t\t// users_contactNo\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->users_contactNo->TooltipValue = \"\";\n\n\t\t\t// tbl_cutOffDate_id\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->tbl_cutOffDate_id->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate->TooltipValue = \"\";\n\n\t\t\t// t_cutOffDate_remarks\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->LinkCustomAttributes = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->HrefValue = \"\";\n\t\t\t$frm_fp_units_accomplishment->t_cutOffDate_remarks->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($frm_fp_units_accomplishment->RowType <> UP_ROWTYPE_AGGREGATEINIT)\n\t\t\t$frm_fp_units_accomplishment->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $patient_detail;\n\n\t\t// Call Row_Rendering event\n\t\t$patient_detail->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// DetailNo\n\n\t\t$patient_detail->DetailNo->CellCssStyle = \"\";\n\t\t$patient_detail->DetailNo->CellCssClass = \"\";\n\n\t\t// StudyID\n\t\t$patient_detail->StudyID->CellCssStyle = \"\";\n\t\t$patient_detail->StudyID->CellCssClass = \"\";\n\n\t\t// PatientID\n\t\t$patient_detail->PatientID->CellCssStyle = \"\";\n\t\t$patient_detail->PatientID->CellCssClass = \"\";\n\n\t\t// StudyDate\n\t\t$patient_detail->StudyDate->CellCssStyle = \"\";\n\t\t$patient_detail->StudyDate->CellCssClass = \"\";\n\n\t\t// ContentDate\n\t\t$patient_detail->ContentDate->CellCssStyle = \"\";\n\t\t$patient_detail->ContentDate->CellCssClass = \"\";\n\n\t\t// StudyTime\n\t\t$patient_detail->StudyTime->CellCssStyle = \"\";\n\t\t$patient_detail->StudyTime->CellCssClass = \"\";\n\n\t\t// ContentTime\n\t\t$patient_detail->ContentTime->CellCssStyle = \"\";\n\t\t$patient_detail->ContentTime->CellCssClass = \"\";\n\n\t\t// Modality\n\t\t$patient_detail->Modality->CellCssStyle = \"\";\n\t\t$patient_detail->Modality->CellCssClass = \"\";\n\n\t\t// BodyPartExamined\n\t\t$patient_detail->BodyPartExamined->CellCssStyle = \"\";\n\t\t$patient_detail->BodyPartExamined->CellCssClass = \"\";\n\n\t\t// ProtocolName\n\t\t$patient_detail->ProtocolName->CellCssStyle = \"\";\n\t\t$patient_detail->ProtocolName->CellCssClass = \"\";\n\n\t\t// Status\n\t\t$patient_detail->Status->CellCssStyle = \"\";\n\t\t$patient_detail->Status->CellCssClass = \"\";\n\t\tif ($patient_detail->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->ViewValue = $patient_detail->DetailNo->CurrentValue;\n\t\t\t$patient_detail->DetailNo->CssStyle = \"\";\n\t\t\t$patient_detail->DetailNo->CssClass = \"\";\n\t\t\t$patient_detail->DetailNo->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->ViewValue = $patient_detail->StudyID->CurrentValue;\n\t\t\t$patient_detail->StudyID->CssStyle = \"\";\n\t\t\t$patient_detail->StudyID->CssClass = \"\";\n\t\t\t$patient_detail->StudyID->ViewCustomAttributes = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->ViewValue = $patient_detail->PatientID->CurrentValue;\n\t\t\t$patient_detail->PatientID->CssStyle = \"\";\n\t\t\t$patient_detail->PatientID->CssClass = \"\";\n\t\t\t$patient_detail->PatientID->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->ViewValue = $patient_detail->StudyDate->CurrentValue;\n\t\t\t$patient_detail->StudyDate->ViewValue = ew_FormatDateTime($patient_detail->StudyDate->ViewValue, 5);\n\t\t\t$patient_detail->StudyDate->CssStyle = \"\";\n\t\t\t$patient_detail->StudyDate->CssClass = \"\";\n\t\t\t$patient_detail->StudyDate->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->ViewValue = $patient_detail->ContentDate->CurrentValue;\n\t\t\t$patient_detail->ContentDate->ViewValue = ew_FormatDateTime($patient_detail->ContentDate->ViewValue, 5);\n\t\t\t$patient_detail->ContentDate->CssStyle = \"\";\n\t\t\t$patient_detail->ContentDate->CssClass = \"\";\n\t\t\t$patient_detail->ContentDate->ViewCustomAttributes = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->ViewValue = $patient_detail->StudyTime->CurrentValue;\n\t\t\t$patient_detail->StudyTime->ViewValue = ew_FormatDateTime($patient_detail->StudyTime->ViewValue, 4);\n\t\t\t$patient_detail->StudyTime->CssStyle = \"\";\n\t\t\t$patient_detail->StudyTime->CssClass = \"\";\n\t\t\t$patient_detail->StudyTime->ViewCustomAttributes = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->ViewValue = $patient_detail->ContentTime->CurrentValue;\n\t\t\t$patient_detail->ContentTime->ViewValue = ew_FormatDateTime($patient_detail->ContentTime->ViewValue, 4);\n\t\t\t$patient_detail->ContentTime->CssStyle = \"\";\n\t\t\t$patient_detail->ContentTime->CssClass = \"\";\n\t\t\t$patient_detail->ContentTime->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionName\n\t\t\t$patient_detail->InstitutionName->ViewValue = $patient_detail->InstitutionName->CurrentValue;\n\t\t\t$patient_detail->InstitutionName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionName->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionAddress\n\t\t\t$patient_detail->InstitutionAddress->ViewValue = $patient_detail->InstitutionAddress->CurrentValue;\n\t\t\t$patient_detail->InstitutionAddress->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionAddress->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionAddress->ViewCustomAttributes = \"\";\n\n\t\t\t// InstitutionDepartmentName\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewValue = $patient_detail->InstitutionDepartmentName->CurrentValue;\n\t\t\t$patient_detail->InstitutionDepartmentName->CssStyle = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->CssClass = \"\";\n\t\t\t$patient_detail->InstitutionDepartmentName->ViewCustomAttributes = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->ViewValue = $patient_detail->Modality->CurrentValue;\n\t\t\t$patient_detail->Modality->CssStyle = \"\";\n\t\t\t$patient_detail->Modality->CssClass = \"\";\n\t\t\t$patient_detail->Modality->ViewCustomAttributes = \"\";\n\n\t\t\t// OperatorName\n\t\t\t$patient_detail->OperatorName->ViewValue = $patient_detail->OperatorName->CurrentValue;\n\t\t\t$patient_detail->OperatorName->CssStyle = \"\";\n\t\t\t$patient_detail->OperatorName->CssClass = \"\";\n\t\t\t$patient_detail->OperatorName->ViewCustomAttributes = \"\";\n\n\t\t\t// Manufacturer\n\t\t\t$patient_detail->Manufacturer->ViewValue = $patient_detail->Manufacturer->CurrentValue;\n\t\t\t$patient_detail->Manufacturer->CssStyle = \"\";\n\t\t\t$patient_detail->Manufacturer->CssClass = \"\";\n\t\t\t$patient_detail->Manufacturer->ViewCustomAttributes = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->ViewValue = $patient_detail->BodyPartExamined->CurrentValue;\n\t\t\t$patient_detail->BodyPartExamined->CssStyle = \"\";\n\t\t\t$patient_detail->BodyPartExamined->CssClass = \"\";\n\t\t\t$patient_detail->BodyPartExamined->ViewCustomAttributes = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->ViewValue = $patient_detail->ProtocolName->CurrentValue;\n\t\t\t$patient_detail->ProtocolName->CssStyle = \"\";\n\t\t\t$patient_detail->ProtocolName->CssClass = \"\";\n\t\t\t$patient_detail->ProtocolName->ViewCustomAttributes = \"\";\n\n\t\t\t// AccessionNumber\n\t\t\t$patient_detail->AccessionNumber->ViewValue = $patient_detail->AccessionNumber->CurrentValue;\n\t\t\t$patient_detail->AccessionNumber->CssStyle = \"\";\n\t\t\t$patient_detail->AccessionNumber->CssClass = \"\";\n\t\t\t$patient_detail->AccessionNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// InstanceNumber\n\t\t\t$patient_detail->InstanceNumber->ViewValue = $patient_detail->InstanceNumber->CurrentValue;\n\t\t\t$patient_detail->InstanceNumber->CssStyle = \"\";\n\t\t\t$patient_detail->InstanceNumber->CssClass = \"\";\n\t\t\t$patient_detail->InstanceNumber->ViewCustomAttributes = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->ViewValue = $patient_detail->Status->CurrentValue;\n\t\t\t$patient_detail->Status->CssStyle = \"\";\n\t\t\t$patient_detail->Status->CssClass = \"\";\n\t\t\t$patient_detail->Status->ViewCustomAttributes = \"\";\n\n\t\t\t// DetailNo\n\t\t\t$patient_detail->DetailNo->HrefValue = \"\";\n\n\t\t\t// StudyID\n\t\t\t$patient_detail->StudyID->HrefValue = \"\";\n\n\t\t\t// PatientID\n\t\t\t$patient_detail->PatientID->HrefValue = \"\";\n\n\t\t\t// StudyDate\n\t\t\t$patient_detail->StudyDate->HrefValue = \"\";\n\n\t\t\t// ContentDate\n\t\t\t$patient_detail->ContentDate->HrefValue = \"\";\n\n\t\t\t// StudyTime\n\t\t\t$patient_detail->StudyTime->HrefValue = \"\";\n\n\t\t\t// ContentTime\n\t\t\t$patient_detail->ContentTime->HrefValue = \"\";\n\n\t\t\t// Modality\n\t\t\t$patient_detail->Modality->HrefValue = \"\";\n\n\t\t\t// BodyPartExamined\n\t\t\t$patient_detail->BodyPartExamined->HrefValue = \"\";\n\n\t\t\t// ProtocolName\n\t\t\t$patient_detail->ProtocolName->HrefValue = \"\";\n\n\t\t\t// Status\n\t\t\t$patient_detail->Status->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$patient_detail->Row_Rendered();\n\t}", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function render()\n {\n return view('components.table.row');\n }", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_sector\n\t\t// id_actividad\n\t\t// id_categoria\n\t\t// apellidopaterno\n\t\t// apellidomaterno\n\t\t// nombre\n\t\t// fecha_nacimiento\n\t\t// sexo\n\t\t// ci\n\t\t// nrodiscapacidad\n\t\t// celular\n\t\t// direcciondomicilio\n\t\t// ocupacion\n\t\t// email\n\t\t// cargo\n\t\t// nivelestudio\n\t\t// id_institucion\n\t\t// observaciones\n\t\t// id_centro\n\n\t\t$this->id_centro->CellCssStyle = \"white-space: nowrap;\";\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_sector\n\t\tif (strval($this->id_sector->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_sector->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sector`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_sector->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_sector, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_sector->ViewValue = $this->id_sector->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_sector->ViewValue = NULL;\n\t\t}\n\t\t$this->id_sector->ViewCustomAttributes = \"\";\n\n\t\t// id_actividad\n\t\tif (strval($this->id_actividad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->id_actividad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `nombreactividad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `actividad`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_actividad->LookupFilters = array(\"dx1\" => '`nombreactividad`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_actividad, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_actividad->ViewValue = $this->id_actividad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_actividad->ViewValue = NULL;\n\t\t}\n\t\t$this->id_actividad->ViewCustomAttributes = \"\";\n\n\t\t// id_categoria\n\t\tif (strval($this->id_categoria->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->id_categoria->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`id`\" . ew_SearchString(\"=\", trim($wrk), EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t$sSqlWrk = \"SELECT `id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categoria`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->id_categoria->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->id_categoria, $sWhereWrk); // Call Lookup Selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->id_categoria->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t\t$this->id_categoria->ViewValue .= $this->id_categoria->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->id_categoria->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->id_categoria->ViewValue = $this->id_categoria->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->id_categoria->ViewValue = NULL;\n\t\t}\n\t\t$this->id_categoria->ViewCustomAttributes = \"\";\n\n\t\t// apellidopaterno\n\t\t$this->apellidopaterno->ViewValue = $this->apellidopaterno->CurrentValue;\n\t\t$this->apellidopaterno->ViewCustomAttributes = \"\";\n\n\t\t// apellidomaterno\n\t\t$this->apellidomaterno->ViewValue = $this->apellidomaterno->CurrentValue;\n\t\t$this->apellidomaterno->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$this->sexo->ViewValue = $this->sexo->OptionCaption($this->sexo->CurrentValue);\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// ci\n\t\t$this->ci->ViewValue = $this->ci->CurrentValue;\n\t\t$this->ci->ViewCustomAttributes = \"\";\n\n\t\t// nrodiscapacidad\n\t\t$this->nrodiscapacidad->ViewValue = $this->nrodiscapacidad->CurrentValue;\n\t\t$this->nrodiscapacidad->ViewCustomAttributes = \"\";\n\n\t\t// celular\n\t\t$this->celular->ViewValue = $this->celular->CurrentValue;\n\t\t$this->celular->ViewCustomAttributes = \"\";\n\n\t\t// direcciondomicilio\n\t\t$this->direcciondomicilio->ViewValue = $this->direcciondomicilio->CurrentValue;\n\t\t$this->direcciondomicilio->ViewCustomAttributes = \"\";\n\n\t\t// ocupacion\n\t\t$this->ocupacion->ViewValue = $this->ocupacion->CurrentValue;\n\t\t$this->ocupacion->ViewCustomAttributes = \"\";\n\n\t\t// email\n\t\t$this->_email->ViewValue = $this->_email->CurrentValue;\n\t\t$this->_email->ViewCustomAttributes = \"\";\n\n\t\t// cargo\n\t\t$this->cargo->ViewValue = $this->cargo->CurrentValue;\n\t\t$this->cargo->ViewCustomAttributes = \"\";\n\n\t\t// nivelestudio\n\t\t$this->nivelestudio->ViewValue = $this->nivelestudio->CurrentValue;\n\t\t$this->nivelestudio->ViewCustomAttributes = \"\";\n\n\t\t// id_institucion\n\t\t$this->id_institucion->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t\t// id\n\t\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t\t$this->id->HrefValue = \"\";\n\t\t\t$this->id->TooltipValue = \"\";\n\n\t\t\t// id_sector\n\t\t\t$this->id_sector->LinkCustomAttributes = \"\";\n\t\t\t$this->id_sector->HrefValue = \"\";\n\t\t\t$this->id_sector->TooltipValue = \"\";\n\n\t\t\t// id_actividad\n\t\t\t$this->id_actividad->LinkCustomAttributes = \"\";\n\t\t\t$this->id_actividad->HrefValue = \"\";\n\t\t\t$this->id_actividad->TooltipValue = \"\";\n\n\t\t\t// id_categoria\n\t\t\t$this->id_categoria->LinkCustomAttributes = \"\";\n\t\t\t$this->id_categoria->HrefValue = \"\";\n\t\t\t$this->id_categoria->TooltipValue = \"\";\n\n\t\t\t// apellidopaterno\n\t\t\t$this->apellidopaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidopaterno->HrefValue = \"\";\n\t\t\t$this->apellidopaterno->TooltipValue = \"\";\n\n\t\t\t// apellidomaterno\n\t\t\t$this->apellidomaterno->LinkCustomAttributes = \"\";\n\t\t\t$this->apellidomaterno->HrefValue = \"\";\n\t\t\t$this->apellidomaterno->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// ci\n\t\t\t$this->ci->LinkCustomAttributes = \"\";\n\t\t\t$this->ci->HrefValue = \"\";\n\t\t\t$this->ci->TooltipValue = \"\";\n\n\t\t\t// nrodiscapacidad\n\t\t\t$this->nrodiscapacidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nrodiscapacidad->HrefValue = \"\";\n\t\t\t$this->nrodiscapacidad->TooltipValue = \"\";\n\n\t\t\t// celular\n\t\t\t$this->celular->LinkCustomAttributes = \"\";\n\t\t\t$this->celular->HrefValue = \"\";\n\t\t\t$this->celular->TooltipValue = \"\";\n\n\t\t\t// direcciondomicilio\n\t\t\t$this->direcciondomicilio->LinkCustomAttributes = \"\";\n\t\t\t$this->direcciondomicilio->HrefValue = \"\";\n\t\t\t$this->direcciondomicilio->TooltipValue = \"\";\n\n\t\t\t// ocupacion\n\t\t\t$this->ocupacion->LinkCustomAttributes = \"\";\n\t\t\t$this->ocupacion->HrefValue = \"\";\n\t\t\t$this->ocupacion->TooltipValue = \"\";\n\n\t\t\t// email\n\t\t\t$this->_email->LinkCustomAttributes = \"\";\n\t\t\t$this->_email->HrefValue = \"\";\n\t\t\t$this->_email->TooltipValue = \"\";\n\n\t\t\t// cargo\n\t\t\t$this->cargo->LinkCustomAttributes = \"\";\n\t\t\t$this->cargo->HrefValue = \"\";\n\t\t\t$this->cargo->TooltipValue = \"\";\n\n\t\t\t// nivelestudio\n\t\t\t$this->nivelestudio->LinkCustomAttributes = \"\";\n\t\t\t$this->nivelestudio->HrefValue = \"\";\n\t\t\t$this->nivelestudio->TooltipValue = \"\";\n\n\t\t\t// id_institucion\n\t\t\t$this->id_institucion->LinkCustomAttributes = \"\";\n\t\t\t$this->id_institucion->HrefValue = \"\";\n\t\t\t$this->id_institucion->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "public function formRowEdit(&$rowform, $row) {\n $rowform['featureid']['#title'] = 'Hydroid/Adminid of Entity needing review';\n $rowform['featureid']['#disabled'] = TRUE;\n $rowform['featureid']['#weight'] = 1;\n $rowform['featureid']['#type'] = 'textfield';\n $opts = array(\n 'needs_review' => 'Needs Review',\n 'closed_no_action' => 'Status Un-Changed (closed)',\n 'closed_status_changed' => 'Status Changed (closed)',\n );\n $rowform['tscode'] = array(\n '#title' => 'Review Case Status',\n '#type' => 'select',\n '#options' => $opts,\n '#default_value' => $row->tscode,\n '#size' => 1,\n '#weight' => 2,\n );\n $rowform['tid'] = array(\n '#type' => 'hidden',\n '#default_value' => $row->tid,\n );\n $rowform['varid'] = array(\n '#type' => 'hidden',\n '#default_value' => $row->varid,\n );\n $rowform['entity_type'] = array(\n '#type' => 'hidden',\n '#default_value' => $row->entity_type,\n );\n $rowform['tstime']['#description'] = t('Date that this event was logged.');\n $rowform['tstime']['#weight'] = 3;\n $rowform['tsendtime']['#description'] = t('Date that this issue was resolved.');\n $rowform['tsendtime']['#weight'] = 4;\n $rowform['tsendtime']['#title'] = 'Date of Resolution';\n //dpm($row->tsendtime);\n $rowform['tsendtime']['#tsendtime'] = !empty($row->tsendtime) ? $row->tsendtime : strtotime(date('Y-m-d'));\n }", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\tglobal $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// identries\r\n\t\t// domain_id\r\n\t\t// hash_content\r\n\t\t// fuente\r\n\t\t// published\r\n\t\t// updated\r\n\t\t// categorias\r\n\t\t// titulo\r\n\t\t// contenido\r\n\t\t// id\r\n\t\t// islive\r\n\t\t// thumbnail\r\n\t\t// reqdate\r\n\t\t// author\r\n\t\t// trans_en\r\n\t\t// trans_es\r\n\t\t// trans_fr\r\n\t\t// trans_it\r\n\t\t// fid\r\n\t\t// fmd5\r\n\t\t// tool_id\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->ViewValue = $this->identries->CurrentValue;\r\n\t\t\t$this->identries->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// domain_id\r\n\t\t\tif (strval($this->domain_id->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`id_domains`\" . ew_SearchString(\"=\", $this->domain_id->CurrentValue, EW_DATATYPE_NUMBER);\r\n\t\t\t$sSqlWrk = \"SELECT `id_domains`, `dominio` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `domains`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$this->domain_id->ViewValue = $rswrk->fields('DispFld');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->domain_id->ViewValue = $this->domain_id->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->domain_id->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$this->domain_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// hash_content\r\n\t\t\t$this->hash_content->ViewValue = $this->hash_content->CurrentValue;\r\n\t\t\t$this->hash_content->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fuente\r\n\t\t\t$this->fuente->ViewValue = $this->fuente->CurrentValue;\r\n\t\t\t$this->fuente->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// published\r\n\t\t\t$this->published->ViewValue = $this->published->CurrentValue;\r\n\t\t\t$this->published->ViewValue = ew_FormatDateTime($this->published->ViewValue, 5);\r\n\t\t\t$this->published->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// updated\r\n\t\t\t$this->updated->ViewValue = $this->updated->CurrentValue;\r\n\t\t\t$this->updated->ViewValue = ew_FormatDateTime($this->updated->ViewValue, 5);\r\n\t\t\t$this->updated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// categorias\r\n\t\t\t$this->categorias->ViewValue = $this->categorias->CurrentValue;\r\n\t\t\t$this->categorias->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->ViewValue = $this->titulo->CurrentValue;\r\n\t\t\t$this->titulo->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->ViewValue = $this->id->CurrentValue;\r\n\t\t\t$this->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->ViewValue = $this->islive->CurrentValue;\r\n\t\t\t$this->islive->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// thumbnail\r\n\t\t\t$this->thumbnail->ViewValue = $this->thumbnail->CurrentValue;\r\n\t\t\t$this->thumbnail->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// reqdate\r\n\t\t\t$this->reqdate->ViewValue = $this->reqdate->CurrentValue;\r\n\t\t\t$this->reqdate->ViewValue = ew_FormatDateTime($this->reqdate->ViewValue, 5);\r\n\t\t\t$this->reqdate->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// author\r\n\t\t\t$this->author->ViewValue = $this->author->CurrentValue;\r\n\t\t\t$this->author->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_en\r\n\t\t\t$this->trans_en->ViewValue = $this->trans_en->CurrentValue;\r\n\t\t\t$this->trans_en->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_es\r\n\t\t\t$this->trans_es->ViewValue = $this->trans_es->CurrentValue;\r\n\t\t\t$this->trans_es->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_fr\r\n\t\t\t$this->trans_fr->ViewValue = $this->trans_fr->CurrentValue;\r\n\t\t\t$this->trans_fr->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// trans_it\r\n\t\t\t$this->trans_it->ViewValue = $this->trans_it->CurrentValue;\r\n\t\t\t$this->trans_it->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fid\r\n\t\t\t$this->fid->ViewValue = $this->fid->CurrentValue;\r\n\t\t\t$this->fid->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// fmd5\r\n\t\t\t$this->fmd5->ViewValue = $this->fmd5->CurrentValue;\r\n\t\t\t$this->fmd5->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->ViewValue = $this->tool_id->CurrentValue;\r\n\t\t\t$this->tool_id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// identries\r\n\t\t\t$this->identries->LinkCustomAttributes = \"\";\r\n\t\t\t$this->identries->HrefValue = \"\";\r\n\t\t\t$this->identries->TooltipValue = \"\";\r\n\r\n\t\t\t// titulo\r\n\t\t\t$this->titulo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->titulo->HrefValue = \"\";\r\n\t\t\t$this->titulo->TooltipValue = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$this->id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->id->HrefValue = \"\";\r\n\t\t\t$this->id->TooltipValue = \"\";\r\n\r\n\t\t\t// islive\r\n\t\t\t$this->islive->LinkCustomAttributes = \"\";\r\n\t\t\t$this->islive->HrefValue = \"\";\r\n\t\t\t$this->islive->TooltipValue = \"\";\r\n\r\n\t\t\t// tool_id\r\n\t\t\t$this->tool_id->LinkCustomAttributes = \"\";\r\n\t\t\t$this->tool_id->HrefValue = \"\";\r\n\t\t\t$this->tool_id->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "public function tableItemDisplay($tableName, $rowId, $value = null){\n\t\t?><input type=\"<?php echo $this->htmlType; ?>\" class=\"form-control\" name=\"dbTable_<?php echo $tableName; ?>_<?php echo $this->type; ?>_<?php echo $this->name; ?>_<?php echo $rowId; ?>\" value=\"<?php echo $value; ?>\"><?php\n\t}", "function RenderRow() {\r\n\t\tglobal $Security, $Language, $gsLanguage;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$this->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// Nro_Serie\r\n\t\t// SN\r\n\t\t// Cant_Net_Asoc\r\n\t\t// Id_Marca\r\n\t\t// Id_Modelo\r\n\t\t// Id_SO\r\n\t\t// Id_Estado\r\n\t\t// User_Server\r\n\t\t// Pass_Server\r\n\t\t// User_TdServer\r\n\t\t// Pass_TdServer\r\n\t\t// Cue\r\n\t\t// Fecha_Actualizacion\r\n\t\t// Usuario\r\n\r\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t// Nro_Serie\r\n\t\t$this->Nro_Serie->ViewValue = $this->Nro_Serie->CurrentValue;\r\n\t\t$this->Nro_Serie->ViewCustomAttributes = \"\";\r\n\r\n\t\t// SN\r\n\t\t$this->SN->ViewValue = $this->SN->CurrentValue;\r\n\t\t$this->SN->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cant_Net_Asoc\r\n\t\t$this->Cant_Net_Asoc->ViewValue = $this->Cant_Net_Asoc->CurrentValue;\r\n\t\t$this->Cant_Net_Asoc->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Marca\r\n\t\tif (strval($this->Id_Marca->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `marca_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Marca->ViewValue = $this->Id_Marca->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Marca->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Marca->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Modelo\r\n\t\tif (strval($this->Id_Modelo->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `modelo_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Modelo->ViewValue = $this->Id_Modelo->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Modelo->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Modelo->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_SO\r\n\t\tif (strval($this->Id_SO->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `so_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_SO->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_SO->ViewValue = $this->Id_SO->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_SO->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_SO->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Id_Estado\r\n\t\tif (strval($this->Id_Estado->CurrentValue) <> \"\") {\r\n\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_server`\";\r\n\t\t$sWhereWrk = \"\";\r\n\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t$arwrk = array();\r\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->DisplayValue($arwrk);\r\n\t\t\t\t$rswrk->Close();\r\n\t\t\t} else {\r\n\t\t\t\t$this->Id_Estado->ViewValue = $this->Id_Estado->CurrentValue;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t$this->Id_Estado->ViewValue = NULL;\r\n\t\t}\r\n\t\t$this->Id_Estado->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_Server\r\n\t\t$this->User_Server->ViewValue = $this->User_Server->CurrentValue;\r\n\t\t$this->User_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_Server\r\n\t\t$this->Pass_Server->ViewValue = $this->Pass_Server->CurrentValue;\r\n\t\t$this->Pass_Server->ViewCustomAttributes = \"\";\r\n\r\n\t\t// User_TdServer\r\n\t\t$this->User_TdServer->ViewValue = $this->User_TdServer->CurrentValue;\r\n\t\t$this->User_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Pass_TdServer\r\n\t\t$this->Pass_TdServer->ViewValue = $this->Pass_TdServer->CurrentValue;\r\n\t\t$this->Pass_TdServer->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Cue\r\n\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Fecha_Actualizacion\r\n\t\t$this->Fecha_Actualizacion->ViewValue = $this->Fecha_Actualizacion->CurrentValue;\r\n\t\t$this->Fecha_Actualizacion->ViewValue = ew_FormatDateTime($this->Fecha_Actualizacion->ViewValue, 7);\r\n\t\t$this->Fecha_Actualizacion->ViewCustomAttributes = \"\";\r\n\r\n\t\t// Usuario\r\n\t\t$this->Usuario->ViewValue = $this->Usuario->CurrentValue;\r\n\t\t$this->Usuario->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\t\t\t$this->Nro_Serie->TooltipValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\t\t\t$this->SN->TooltipValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\t\t\t$this->Id_Marca->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\t\t\t$this->Id_Modelo->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\t\t\t$this->Id_SO->TooltipValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\t\t\t$this->Id_Estado->TooltipValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\t\t\t$this->User_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\t\t\t$this->Pass_Server->TooltipValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\t\t\t$this->User_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\t\t\t$this->Pass_TdServer->TooltipValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\t\t\t$this->Cue->TooltipValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->TooltipValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t\t$this->Usuario->TooltipValue = \"\";\r\n\t\t} elseif ($this->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Nro_Serie->EditCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->EditValue = ew_HtmlEncode($this->Nro_Serie->CurrentValue);\r\n\t\t\t$this->Nro_Serie->PlaceHolder = ew_RemoveHtml($this->Nro_Serie->FldCaption());\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->SN->EditCustomAttributes = \"\";\r\n\t\t\t$this->SN->EditValue = ew_HtmlEncode($this->SN->CurrentValue);\r\n\t\t\t$this->SN->PlaceHolder = ew_RemoveHtml($this->SN->FldCaption());\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cant_Net_Asoc->EditCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->EditValue = ew_HtmlEncode($this->Cant_Net_Asoc->CurrentValue);\r\n\t\t\t$this->Cant_Net_Asoc->PlaceHolder = ew_RemoveHtml($this->Cant_Net_Asoc->FldCaption());\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Marca->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Marca->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Marca`\" . ew_SearchString(\"=\", $this->Id_Marca->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Marca`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `marca_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Marca->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Marca, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Marca->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Modelo->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Modelo->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Modelo`\" . ew_SearchString(\"=\", $this->Id_Modelo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Modelo`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `modelo_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Modelo->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Modelo, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Modelo->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_SO->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_SO->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_SO`\" . ew_SearchString(\"=\", $this->Id_SO->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_SO`, `Nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `so_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_SO->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_SO, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_SO->EditValue = $arwrk;\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Id_Estado->EditCustomAttributes = \"\";\r\n\t\t\tif (trim(strval($this->Id_Estado->CurrentValue)) == \"\") {\r\n\t\t\t\t$sFilterWrk = \"0=1\";\r\n\t\t\t} else {\r\n\t\t\t\t$sFilterWrk = \"`Id_Estado`\" . ew_SearchString(\"=\", $this->Id_Estado->CurrentValue, EW_DATATYPE_NUMBER, \"\");\r\n\t\t\t}\r\n\t\t\t$sSqlWrk = \"SELECT `Id_Estado`, `Descripcion` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `estado_server`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\t$this->Id_Estado->LookupFilters = array();\r\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\r\n\t\t\t$this->Lookup_Selecting($this->Id_Estado, $sWhereWrk); // Call Lookup selecting\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\t$this->Id_Estado->EditValue = $arwrk;\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->EditValue = ew_HtmlEncode($this->User_Server->CurrentValue);\r\n\t\t\t$this->User_Server->PlaceHolder = ew_RemoveHtml($this->User_Server->FldCaption());\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_Server->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->EditValue = ew_HtmlEncode($this->Pass_Server->CurrentValue);\r\n\t\t\t$this->Pass_Server->PlaceHolder = ew_RemoveHtml($this->Pass_Server->FldCaption());\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->User_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->EditValue = ew_HtmlEncode($this->User_TdServer->CurrentValue);\r\n\t\t\t$this->User_TdServer->PlaceHolder = ew_RemoveHtml($this->User_TdServer->FldCaption());\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Pass_TdServer->EditCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->EditValue = ew_HtmlEncode($this->Pass_TdServer->CurrentValue);\r\n\t\t\t$this->Pass_TdServer->PlaceHolder = ew_RemoveHtml($this->Pass_TdServer->FldCaption());\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->EditAttrs[\"class\"] = \"form-control\";\r\n\t\t\t$this->Cue->EditCustomAttributes = \"\";\r\n\t\t\tif ($this->Cue->getSessionValue() <> \"\") {\r\n\t\t\t\t$this->Cue->CurrentValue = $this->Cue->getSessionValue();\r\n\t\t\t$this->Cue->ViewValue = $this->Cue->CurrentValue;\r\n\t\t\t$this->Cue->ViewCustomAttributes = \"\";\r\n\t\t\t} else {\r\n\t\t\t}\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t// Usuario\r\n\t\t\t// Edit refer script\r\n\t\t\t// Nro_Serie\r\n\r\n\t\t\t$this->Nro_Serie->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Nro_Serie->HrefValue = \"\";\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->LinkCustomAttributes = \"\";\r\n\t\t\t$this->SN->HrefValue = \"\";\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cant_Net_Asoc->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Marca->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Modelo->HrefValue = \"\";\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_SO->HrefValue = \"\";\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Id_Estado->HrefValue = \"\";\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_Server->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_Server->HrefValue = \"\";\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->User_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Pass_TdServer->HrefValue = \"\";\r\n\r\n\t\t\t// Cue\r\n\t\t\t$this->Cue->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Cue->HrefValue = \"\";\r\n\r\n\t\t\t// Fecha_Actualizacion\r\n\t\t\t$this->Fecha_Actualizacion->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Fecha_Actualizacion->HrefValue = \"\";\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->LinkCustomAttributes = \"\";\r\n\t\t\t$this->Usuario->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$this->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$this->Row_Rendered();\r\n\t}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold =& $rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->SetDbValueDef($rsnew, $rekeningju->NoRek->CurrentValue, \"\", $rekeningju->NoRek->ReadOnly);\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->SetDbValueDef($rsnew, $rekeningju->Keterangan->CurrentValue, NULL, $rekeningju->Keterangan->ReadOnly);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->SetDbValueDef($rsnew, $rekeningju->debet->CurrentValue, 0, $rekeningju->debet->ReadOnly);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->SetDbValueDef($rsnew, $rekeningju->kredit->CurrentValue, 0, $rekeningju->kredit->ReadOnly);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->SetDbValueDef($rsnew, $rekeningju->kode_bukti->CurrentValue, NULL, $rekeningju->kode_bukti->ReadOnly);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->SetDbValueDef($rsnew, ew_UnFormatDateTime($rekeningju->tanggal->CurrentValue, 7), ew_CurrentDate(), $rekeningju->tanggal->ReadOnly);\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->SetDbValueDef($rsnew, ew_UnFormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7), ew_CurrentDate(), $rekeningju->tanggal_nota->ReadOnly);\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t// kode_otomatis_tingkat\r\n\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->SetDbValueDef($rsnew, $rekeningju->kode_otomatis_tingkat->CurrentValue, \"\", $rekeningju->kode_otomatis_tingkat->ReadOnly);\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->SetDbValueDef($rsnew, $rekeningju->apakah_original->CurrentValue, \"\", $rekeningju->apakah_original->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $rekeningju->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $conn->Execute($rekeningju->UpdateSQL($rsnew));\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($rekeningju->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($rekeningju->CancelMessage);\r\n\t\t\t\t\t$rekeningju->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$rekeningju->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function renderTableRow($item)\n\t{\n\t\t$value = $item->{$this->getField()};\n\t\tif ($this->hasFlag('editable')) {\n\t\t\t$value = $this->getEditable($value, $item->getKey());\n\t\t}\n\n\t\treturn view('schematic::partials.table.plain', [\n\t\t\t'value' => $value,\n\t\t]);\n\t}", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "function showroweditor($row, $iseditmode)\r\n{\r\n global $conn;\r\n \r\n if($iseditmode==false)\r\n {\r\n \t \r\n \t$mode=false;\r\n\t$aa = \"add\";\r\n\t\r\n\t\r\n\r\n }\r\n else\r\n {\r\n \t$mode=true;\r\n\t$aa = \"edit\";\r\n\t\r\n\t\r\n }\r\n \r\n\t\r\n\r\n?>\r\n\t<table class=\"tbl\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" width=\"75%\">\r\n \r\n \t <tr>\r\n\t\t\t<td class=\"hr\"><?php echo htmlspecialchars(\"Company Name\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" class=\"uppercase\" name=\"comp_name\" size=\"30\" maxlength=\"30\" value=\"<?php echo str_replace('\"', '&quot;', trim($row[\"comp_name\"])) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n \r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"hr\"><?php echo htmlspecialchars(\"Company Address\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<textarea name=\"comp_add\" class=\"uppercase\" id=\"comp_add\" cols=\"50\" rows=\"4\"><?php echo nl2br($row[\"comp_add\"]) ?></textarea>\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n \t\t <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Postal/Zip\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" id=\"comp_zip\" class=\"uppercase\" name=\"comp_zip\" maxlength=\"50\" size=\"50\" value = \"<?php echo nl2br($row[\"comp_zip\"]) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n\t\t <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"City\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" id=\"comp_city\" class=\"uppercase\" name=\"comp_city\" maxlength=\"50\" size=\"50\" value = \"<?php echo nl2br($row[\"comp_city\"]) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Country\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" id=\"comp_country\" class=\"uppercase\" name=\"comp_country\" maxlength=\"50\" size=\"50\" value = \"<?php echo nl2br($row[\"comp_country\"]) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Contact Person\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" class=\"uppercase\" id=\"comp_cperson\" name=\"comp_cperson\" maxlength=\"50\" size=\"50\" value = \"<?php echo $row[\"comp_cperson\"] ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Mobile No\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" class=\"uppercase\" id=\"comp_mobile\" name=\"comp_mobile\" maxlength=\"20\" size=\"20\" value = \"<?php echo $row[\"comp_mobile\"] ?>\" onKeyUp=\"this.value=this.value.replace(/\\D/,'')\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n \r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Email1\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" class=\"lowercase\" id=\"comp_email\" name=\"comp_email\" maxlength=\"30\" size=\"30\" value = \"<?php echo $row[\"comp_email\"] ?>\">\r\n <?php echo htmlspecialchars(\"(optional)\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Website\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\">\r\n \t<input type=\"text\" class=\"lowercase\" id=\"comp_web\" name=\"comp_web\" maxlength=\"30\" size=\"30\" value = \"<?php echo $row[\"comp_web\"] ?>\">\r\n <?php echo htmlspecialchars(\"(optional)\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n \r\n\t</table>\r\n<?php \r\n}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $archv_finished;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->AddUrl = $archv_finished->AddUrl();\n\t\t$this->EditUrl = $archv_finished->EditUrl();\n\t\t$this->CopyUrl = $archv_finished->CopyUrl();\n\t\t$this->DeleteUrl = $archv_finished->DeleteUrl();\n\t\t$this->ListUrl = $archv_finished->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$archv_finished->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// ID\n\n\t\t$archv_finished->ID->CellCssStyle = \"\"; $archv_finished->ID->CellCssClass = \"\";\n\t\t$archv_finished->ID->CellAttrs = array(); $archv_finished->ID->ViewAttrs = array(); $archv_finished->ID->EditAttrs = array();\n\n\t\t// strjrfnum\n\t\t$archv_finished->strjrfnum->CellCssStyle = \"\"; $archv_finished->strjrfnum->CellCssClass = \"\";\n\t\t$archv_finished->strjrfnum->CellAttrs = array(); $archv_finished->strjrfnum->ViewAttrs = array(); $archv_finished->strjrfnum->EditAttrs = array();\n\n\t\t// strquarter\n\t\t$archv_finished->strquarter->CellCssStyle = \"\"; $archv_finished->strquarter->CellCssClass = \"\";\n\t\t$archv_finished->strquarter->CellAttrs = array(); $archv_finished->strquarter->ViewAttrs = array(); $archv_finished->strquarter->EditAttrs = array();\n\n\t\t// strmon\n\t\t$archv_finished->strmon->CellCssStyle = \"\"; $archv_finished->strmon->CellCssClass = \"\";\n\t\t$archv_finished->strmon->CellAttrs = array(); $archv_finished->strmon->ViewAttrs = array(); $archv_finished->strmon->EditAttrs = array();\n\n\t\t// stryear\n\t\t$archv_finished->stryear->CellCssStyle = \"\"; $archv_finished->stryear->CellCssClass = \"\";\n\t\t$archv_finished->stryear->CellAttrs = array(); $archv_finished->stryear->ViewAttrs = array(); $archv_finished->stryear->EditAttrs = array();\n\n\t\t// strdate\n\t\t$archv_finished->strdate->CellCssStyle = \"\"; $archv_finished->strdate->CellCssClass = \"\";\n\t\t$archv_finished->strdate->CellAttrs = array(); $archv_finished->strdate->ViewAttrs = array(); $archv_finished->strdate->EditAttrs = array();\n\n\t\t// strtime\n\t\t$archv_finished->strtime->CellCssStyle = \"\"; $archv_finished->strtime->CellCssClass = \"\";\n\t\t$archv_finished->strtime->CellAttrs = array(); $archv_finished->strtime->ViewAttrs = array(); $archv_finished->strtime->EditAttrs = array();\n\n\t\t// strusername\n\t\t$archv_finished->strusername->CellCssStyle = \"\"; $archv_finished->strusername->CellCssClass = \"\";\n\t\t$archv_finished->strusername->CellAttrs = array(); $archv_finished->strusername->ViewAttrs = array(); $archv_finished->strusername->EditAttrs = array();\n\n\t\t// strusereadd\n\t\t$archv_finished->strusereadd->CellCssStyle = \"\"; $archv_finished->strusereadd->CellCssClass = \"\";\n\t\t$archv_finished->strusereadd->CellAttrs = array(); $archv_finished->strusereadd->ViewAttrs = array(); $archv_finished->strusereadd->EditAttrs = array();\n\n\t\t// strcompany\n\t\t$archv_finished->strcompany->CellCssStyle = \"\"; $archv_finished->strcompany->CellCssClass = \"\";\n\t\t$archv_finished->strcompany->CellAttrs = array(); $archv_finished->strcompany->ViewAttrs = array(); $archv_finished->strcompany->EditAttrs = array();\n\n\t\t// strdepartment\n\t\t$archv_finished->strdepartment->CellCssStyle = \"\"; $archv_finished->strdepartment->CellCssClass = \"\";\n\t\t$archv_finished->strdepartment->CellAttrs = array(); $archv_finished->strdepartment->ViewAttrs = array(); $archv_finished->strdepartment->EditAttrs = array();\n\n\t\t// strloc\n\t\t$archv_finished->strloc->CellCssStyle = \"\"; $archv_finished->strloc->CellCssClass = \"\";\n\t\t$archv_finished->strloc->CellAttrs = array(); $archv_finished->strloc->ViewAttrs = array(); $archv_finished->strloc->EditAttrs = array();\n\n\t\t// strposition\n\t\t$archv_finished->strposition->CellCssStyle = \"\"; $archv_finished->strposition->CellCssClass = \"\";\n\t\t$archv_finished->strposition->CellAttrs = array(); $archv_finished->strposition->ViewAttrs = array(); $archv_finished->strposition->EditAttrs = array();\n\n\t\t// strtelephone\n\t\t$archv_finished->strtelephone->CellCssStyle = \"\"; $archv_finished->strtelephone->CellCssClass = \"\";\n\t\t$archv_finished->strtelephone->CellAttrs = array(); $archv_finished->strtelephone->ViewAttrs = array(); $archv_finished->strtelephone->EditAttrs = array();\n\n\t\t// strcostcent\n\t\t$archv_finished->strcostcent->CellCssStyle = \"\"; $archv_finished->strcostcent->CellCssClass = \"\";\n\t\t$archv_finished->strcostcent->CellAttrs = array(); $archv_finished->strcostcent->ViewAttrs = array(); $archv_finished->strcostcent->EditAttrs = array();\n\n\t\t// strsubject\n\t\t$archv_finished->strsubject->CellCssStyle = \"\"; $archv_finished->strsubject->CellCssClass = \"\";\n\t\t$archv_finished->strsubject->CellAttrs = array(); $archv_finished->strsubject->ViewAttrs = array(); $archv_finished->strsubject->EditAttrs = array();\n\n\t\t// strnature\n\t\t$archv_finished->strnature->CellCssStyle = \"\"; $archv_finished->strnature->CellCssClass = \"\";\n\t\t$archv_finished->strnature->CellAttrs = array(); $archv_finished->strnature->ViewAttrs = array(); $archv_finished->strnature->EditAttrs = array();\n\n\t\t// strdescript\n\t\t$archv_finished->strdescript->CellCssStyle = \"\"; $archv_finished->strdescript->CellCssClass = \"\";\n\t\t$archv_finished->strdescript->CellAttrs = array(); $archv_finished->strdescript->ViewAttrs = array(); $archv_finished->strdescript->EditAttrs = array();\n\n\t\t// strarea\n\t\t$archv_finished->strarea->CellCssStyle = \"\"; $archv_finished->strarea->CellCssClass = \"\";\n\t\t$archv_finished->strarea->CellAttrs = array(); $archv_finished->strarea->ViewAttrs = array(); $archv_finished->strarea->EditAttrs = array();\n\n\t\t// strattach\n\t\t$archv_finished->strattach->CellCssStyle = \"\"; $archv_finished->strattach->CellCssClass = \"\";\n\t\t$archv_finished->strattach->CellAttrs = array(); $archv_finished->strattach->ViewAttrs = array(); $archv_finished->strattach->EditAttrs = array();\n\n\t\t// strpriority\n\t\t$archv_finished->strpriority->CellCssStyle = \"\"; $archv_finished->strpriority->CellCssClass = \"\";\n\t\t$archv_finished->strpriority->CellAttrs = array(); $archv_finished->strpriority->ViewAttrs = array(); $archv_finished->strpriority->EditAttrs = array();\n\n\t\t// strduedate\n\t\t$archv_finished->strduedate->CellCssStyle = \"\"; $archv_finished->strduedate->CellCssClass = \"\";\n\t\t$archv_finished->strduedate->CellAttrs = array(); $archv_finished->strduedate->ViewAttrs = array(); $archv_finished->strduedate->EditAttrs = array();\n\n\t\t// strstatus\n\t\t$archv_finished->strstatus->CellCssStyle = \"\"; $archv_finished->strstatus->CellCssClass = \"\";\n\t\t$archv_finished->strstatus->CellAttrs = array(); $archv_finished->strstatus->ViewAttrs = array(); $archv_finished->strstatus->EditAttrs = array();\n\n\t\t// strlastedit\n\t\t$archv_finished->strlastedit->CellCssStyle = \"\"; $archv_finished->strlastedit->CellCssClass = \"\";\n\t\t$archv_finished->strlastedit->CellAttrs = array(); $archv_finished->strlastedit->ViewAttrs = array(); $archv_finished->strlastedit->EditAttrs = array();\n\n\t\t// strcategory\n\t\t$archv_finished->strcategory->CellCssStyle = \"\"; $archv_finished->strcategory->CellCssClass = \"\";\n\t\t$archv_finished->strcategory->CellAttrs = array(); $archv_finished->strcategory->ViewAttrs = array(); $archv_finished->strcategory->EditAttrs = array();\n\n\t\t// strassigned\n\t\t$archv_finished->strassigned->CellCssStyle = \"\"; $archv_finished->strassigned->CellCssClass = \"\";\n\t\t$archv_finished->strassigned->CellAttrs = array(); $archv_finished->strassigned->ViewAttrs = array(); $archv_finished->strassigned->EditAttrs = array();\n\n\t\t// strdatecomplete\n\t\t$archv_finished->strdatecomplete->CellCssStyle = \"\"; $archv_finished->strdatecomplete->CellCssClass = \"\";\n\t\t$archv_finished->strdatecomplete->CellAttrs = array(); $archv_finished->strdatecomplete->ViewAttrs = array(); $archv_finished->strdatecomplete->EditAttrs = array();\n\n\t\t// strwithpr\n\t\t$archv_finished->strwithpr->CellCssStyle = \"\"; $archv_finished->strwithpr->CellCssClass = \"\";\n\t\t$archv_finished->strwithpr->CellAttrs = array(); $archv_finished->strwithpr->ViewAttrs = array(); $archv_finished->strwithpr->EditAttrs = array();\n\n\t\t// strremarks\n\t\t$archv_finished->strremarks->CellCssStyle = \"\"; $archv_finished->strremarks->CellCssClass = \"\";\n\t\t$archv_finished->strremarks->CellAttrs = array(); $archv_finished->strremarks->ViewAttrs = array(); $archv_finished->strremarks->EditAttrs = array();\n\n\t\t// sap_num\n\t\t$archv_finished->sap_num->CellCssStyle = \"\"; $archv_finished->sap_num->CellCssClass = \"\";\n\t\t$archv_finished->sap_num->CellAttrs = array(); $archv_finished->sap_num->ViewAttrs = array(); $archv_finished->sap_num->EditAttrs = array();\n\n\t\t// work_days\n\t\t$archv_finished->work_days->CellCssStyle = \"\"; $archv_finished->work_days->CellCssClass = \"\";\n\t\t$archv_finished->work_days->CellAttrs = array(); $archv_finished->work_days->ViewAttrs = array(); $archv_finished->work_days->EditAttrs = array();\n\t\tif ($archv_finished->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->ViewValue = $archv_finished->ID->CurrentValue;\n\t\t\t$archv_finished->ID->CssStyle = \"\";\n\t\t\t$archv_finished->ID->CssClass = \"\";\n\t\t\t$archv_finished->ID->ViewCustomAttributes = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->ViewValue = $archv_finished->strjrfnum->CurrentValue;\n\t\t\t$archv_finished->strjrfnum->CssStyle = \"\";\n\t\t\t$archv_finished->strjrfnum->CssClass = \"\";\n\t\t\t$archv_finished->strjrfnum->ViewCustomAttributes = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->ViewValue = $archv_finished->strquarter->CurrentValue;\n\t\t\t$archv_finished->strquarter->CssStyle = \"\";\n\t\t\t$archv_finished->strquarter->CssClass = \"\";\n\t\t\t$archv_finished->strquarter->ViewCustomAttributes = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->ViewValue = $archv_finished->strmon->CurrentValue;\n\t\t\t$archv_finished->strmon->CssStyle = \"\";\n\t\t\t$archv_finished->strmon->CssClass = \"\";\n\t\t\t$archv_finished->strmon->ViewCustomAttributes = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->ViewValue = $archv_finished->stryear->CurrentValue;\n\t\t\t$archv_finished->stryear->CssStyle = \"\";\n\t\t\t$archv_finished->stryear->CssClass = \"\";\n\t\t\t$archv_finished->stryear->ViewCustomAttributes = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->ViewValue = $archv_finished->strdate->CurrentValue;\n\t\t\t$archv_finished->strdate->CssStyle = \"\";\n\t\t\t$archv_finished->strdate->CssClass = \"\";\n\t\t\t$archv_finished->strdate->ViewCustomAttributes = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->ViewValue = $archv_finished->strtime->CurrentValue;\n\t\t\t$archv_finished->strtime->CssStyle = \"\";\n\t\t\t$archv_finished->strtime->CssClass = \"\";\n\t\t\t$archv_finished->strtime->ViewCustomAttributes = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->ViewValue = $archv_finished->strusername->CurrentValue;\n\t\t\t$archv_finished->strusername->CssStyle = \"\";\n\t\t\t$archv_finished->strusername->CssClass = \"\";\n\t\t\t$archv_finished->strusername->ViewCustomAttributes = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->ViewValue = $archv_finished->strusereadd->CurrentValue;\n\t\t\t$archv_finished->strusereadd->CssStyle = \"\";\n\t\t\t$archv_finished->strusereadd->CssClass = \"\";\n\t\t\t$archv_finished->strusereadd->ViewCustomAttributes = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->ViewValue = $archv_finished->strcompany->CurrentValue;\n\t\t\t$archv_finished->strcompany->CssStyle = \"\";\n\t\t\t$archv_finished->strcompany->CssClass = \"\";\n\t\t\t$archv_finished->strcompany->ViewCustomAttributes = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->ViewValue = $archv_finished->strdepartment->CurrentValue;\n\t\t\t$archv_finished->strdepartment->CssStyle = \"\";\n\t\t\t$archv_finished->strdepartment->CssClass = \"\";\n\t\t\t$archv_finished->strdepartment->ViewCustomAttributes = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->ViewValue = $archv_finished->strloc->CurrentValue;\n\t\t\t$archv_finished->strloc->CssStyle = \"\";\n\t\t\t$archv_finished->strloc->CssClass = \"\";\n\t\t\t$archv_finished->strloc->ViewCustomAttributes = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->ViewValue = $archv_finished->strposition->CurrentValue;\n\t\t\t$archv_finished->strposition->CssStyle = \"\";\n\t\t\t$archv_finished->strposition->CssClass = \"\";\n\t\t\t$archv_finished->strposition->ViewCustomAttributes = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->ViewValue = $archv_finished->strtelephone->CurrentValue;\n\t\t\t$archv_finished->strtelephone->CssStyle = \"\";\n\t\t\t$archv_finished->strtelephone->CssClass = \"\";\n\t\t\t$archv_finished->strtelephone->ViewCustomAttributes = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->ViewValue = $archv_finished->strcostcent->CurrentValue;\n\t\t\t$archv_finished->strcostcent->CssStyle = \"\";\n\t\t\t$archv_finished->strcostcent->CssClass = \"\";\n\t\t\t$archv_finished->strcostcent->ViewCustomAttributes = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->ViewValue = $archv_finished->strsubject->CurrentValue;\n\t\t\t$archv_finished->strsubject->CssStyle = \"\";\n\t\t\t$archv_finished->strsubject->CssClass = \"\";\n\t\t\t$archv_finished->strsubject->ViewCustomAttributes = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->ViewValue = $archv_finished->strnature->CurrentValue;\n\t\t\t$archv_finished->strnature->CssStyle = \"\";\n\t\t\t$archv_finished->strnature->CssClass = \"\";\n\t\t\t$archv_finished->strnature->ViewCustomAttributes = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->ViewValue = $archv_finished->strdescript->CurrentValue;\n\t\t\t$archv_finished->strdescript->CssStyle = \"\";\n\t\t\t$archv_finished->strdescript->CssClass = \"\";\n\t\t\t$archv_finished->strdescript->ViewCustomAttributes = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->ViewValue = $archv_finished->strarea->CurrentValue;\n\t\t\t$archv_finished->strarea->CssStyle = \"\";\n\t\t\t$archv_finished->strarea->CssClass = \"\";\n\t\t\t$archv_finished->strarea->ViewCustomAttributes = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->ViewValue = $archv_finished->strattach->CurrentValue;\n\t\t\t$archv_finished->strattach->CssStyle = \"\";\n\t\t\t$archv_finished->strattach->CssClass = \"\";\n\t\t\t$archv_finished->strattach->ViewCustomAttributes = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->ViewValue = $archv_finished->strpriority->CurrentValue;\n\t\t\t$archv_finished->strpriority->CssStyle = \"\";\n\t\t\t$archv_finished->strpriority->CssClass = \"\";\n\t\t\t$archv_finished->strpriority->ViewCustomAttributes = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->ViewValue = $archv_finished->strduedate->CurrentValue;\n\t\t\t$archv_finished->strduedate->CssStyle = \"\";\n\t\t\t$archv_finished->strduedate->CssClass = \"\";\n\t\t\t$archv_finished->strduedate->ViewCustomAttributes = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->ViewValue = $archv_finished->strstatus->CurrentValue;\n\t\t\t$archv_finished->strstatus->CssStyle = \"\";\n\t\t\t$archv_finished->strstatus->CssClass = \"\";\n\t\t\t$archv_finished->strstatus->ViewCustomAttributes = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->ViewValue = $archv_finished->strlastedit->CurrentValue;\n\t\t\t$archv_finished->strlastedit->CssStyle = \"\";\n\t\t\t$archv_finished->strlastedit->CssClass = \"\";\n\t\t\t$archv_finished->strlastedit->ViewCustomAttributes = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->ViewValue = $archv_finished->strcategory->CurrentValue;\n\t\t\t$archv_finished->strcategory->CssStyle = \"\";\n\t\t\t$archv_finished->strcategory->CssClass = \"\";\n\t\t\t$archv_finished->strcategory->ViewCustomAttributes = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->ViewValue = $archv_finished->strassigned->CurrentValue;\n\t\t\t$archv_finished->strassigned->CssStyle = \"\";\n\t\t\t$archv_finished->strassigned->CssClass = \"\";\n\t\t\t$archv_finished->strassigned->ViewCustomAttributes = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->ViewValue = $archv_finished->strdatecomplete->CurrentValue;\n\t\t\t$archv_finished->strdatecomplete->CssStyle = \"\";\n\t\t\t$archv_finished->strdatecomplete->CssClass = \"\";\n\t\t\t$archv_finished->strdatecomplete->ViewCustomAttributes = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->ViewValue = $archv_finished->strwithpr->CurrentValue;\n\t\t\t$archv_finished->strwithpr->CssStyle = \"\";\n\t\t\t$archv_finished->strwithpr->CssClass = \"\";\n\t\t\t$archv_finished->strwithpr->ViewCustomAttributes = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->ViewValue = $archv_finished->strremarks->CurrentValue;\n\t\t\t$archv_finished->strremarks->CssStyle = \"\";\n\t\t\t$archv_finished->strremarks->CssClass = \"\";\n\t\t\t$archv_finished->strremarks->ViewCustomAttributes = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->ViewValue = $archv_finished->sap_num->CurrentValue;\n\t\t\t$archv_finished->sap_num->CssStyle = \"\";\n\t\t\t$archv_finished->sap_num->CssClass = \"\";\n\t\t\t$archv_finished->sap_num->ViewCustomAttributes = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->ViewValue = $archv_finished->work_days->CurrentValue;\n\t\t\t$archv_finished->work_days->CssStyle = \"\";\n\t\t\t$archv_finished->work_days->CssClass = \"\";\n\t\t\t$archv_finished->work_days->ViewCustomAttributes = \"\";\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->HrefValue = \"\";\n\t\t\t$archv_finished->ID->TooltipValue = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->HrefValue = \"\";\n\t\t\t$archv_finished->strjrfnum->TooltipValue = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->HrefValue = \"\";\n\t\t\t$archv_finished->strquarter->TooltipValue = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->HrefValue = \"\";\n\t\t\t$archv_finished->strmon->TooltipValue = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->HrefValue = \"\";\n\t\t\t$archv_finished->stryear->TooltipValue = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->HrefValue = \"\";\n\t\t\t$archv_finished->strdate->TooltipValue = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->HrefValue = \"\";\n\t\t\t$archv_finished->strtime->TooltipValue = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->HrefValue = \"\";\n\t\t\t$archv_finished->strusername->TooltipValue = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->HrefValue = \"\";\n\t\t\t$archv_finished->strusereadd->TooltipValue = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->HrefValue = \"\";\n\t\t\t$archv_finished->strcompany->TooltipValue = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->HrefValue = \"\";\n\t\t\t$archv_finished->strdepartment->TooltipValue = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->HrefValue = \"\";\n\t\t\t$archv_finished->strloc->TooltipValue = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->HrefValue = \"\";\n\t\t\t$archv_finished->strposition->TooltipValue = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->HrefValue = \"\";\n\t\t\t$archv_finished->strtelephone->TooltipValue = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->HrefValue = \"\";\n\t\t\t$archv_finished->strcostcent->TooltipValue = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->HrefValue = \"\";\n\t\t\t$archv_finished->strsubject->TooltipValue = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->HrefValue = \"\";\n\t\t\t$archv_finished->strnature->TooltipValue = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->HrefValue = \"\";\n\t\t\t$archv_finished->strdescript->TooltipValue = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->HrefValue = \"\";\n\t\t\t$archv_finished->strarea->TooltipValue = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->HrefValue = \"\";\n\t\t\t$archv_finished->strattach->TooltipValue = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->HrefValue = \"\";\n\t\t\t$archv_finished->strpriority->TooltipValue = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->HrefValue = \"\";\n\t\t\t$archv_finished->strduedate->TooltipValue = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->HrefValue = \"\";\n\t\t\t$archv_finished->strstatus->TooltipValue = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->HrefValue = \"\";\n\t\t\t$archv_finished->strlastedit->TooltipValue = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->HrefValue = \"\";\n\t\t\t$archv_finished->strcategory->TooltipValue = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->HrefValue = \"\";\n\t\t\t$archv_finished->strassigned->TooltipValue = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->HrefValue = \"\";\n\t\t\t$archv_finished->strdatecomplete->TooltipValue = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->HrefValue = \"\";\n\t\t\t$archv_finished->strwithpr->TooltipValue = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->HrefValue = \"\";\n\t\t\t$archv_finished->strremarks->TooltipValue = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->HrefValue = \"\";\n\t\t\t$archv_finished->sap_num->TooltipValue = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->HrefValue = \"\";\n\t\t\t$archv_finished->work_days->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($archv_finished->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$archv_finished->Row_Rendered();\n\t}", "function RenderRow() {\r\r\tglobal $conn, $Security, $ratings;\r\r\r\r\t// Call Row Rendering event\r\r\t$ratings->Row_Rendering();\r\r\r\r\t// Common render codes for all row types\r\r\t// id\r\r\r\r\t$ratings->id->CellCssStyle = \"\";\r\r\t$ratings->id->CellCssClass = \"\";\r\r\r\r\t// rating\r\r\t$ratings->rating->CellCssStyle = \"\";\r\r\t$ratings->rating->CellCssClass = \"\";\r\r\r\r\t// domain\r\r\t$ratings->domain->CellCssStyle = \"\";\r\r\t$ratings->domain->CellCssClass = \"\";\r\r\tif ($ratings->RowType == EW_ROWTYPE_VIEW) { // View row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_ADD) { // Add row\r\r\r\r\t\t// id\r\r\t\t$ratings->id->EditCustomAttributes = \"\";\r\r\t\t$ratings->id->EditValue = ew_HtmlEncode($ratings->id->CurrentValue);\r\r\r\r\t\t// rating\r\r\t\t$ratings->rating->EditCustomAttributes = \"\";\r\r\t\t$ratings->rating->EditValue = ew_HtmlEncode($ratings->rating->CurrentValue);\r\r\r\r\t\t// domain\r\r\t\t$ratings->domain->EditCustomAttributes = \"\";\r\r\t\t$ratings->domain->EditValue = ew_HtmlEncode($ratings->domain->CurrentValue);\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\r\t} elseif ($ratings->RowType == EW_ROWTYPE_SEARCH) { // Search row\r\r\t}\r\r\r\r\t// Call Row Rendered event\r\r\t$ratings->Row_Rendered();\r\r}", "public function edit() {\r\n\t\treturn $this->_edit(false);\r\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $sponsored_student;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$sponsored_student->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// sponsored_student_id\n\n\t\t$sponsored_student->sponsored_student_id->CellCssStyle = \"\"; $sponsored_student->sponsored_student_id->CellCssClass = \"\";\n\t\t$sponsored_student->sponsored_student_id->CellAttrs = array(); $sponsored_student->sponsored_student_id->ViewAttrs = array(); $sponsored_student->sponsored_student_id->EditAttrs = array();\n\n\t\t// student_firstname\n\t\t$sponsored_student->student_firstname->CellCssStyle = \"\"; $sponsored_student->student_firstname->CellCssClass = \"\";\n\t\t$sponsored_student->student_firstname->CellAttrs = array(); $sponsored_student->student_firstname->ViewAttrs = array(); $sponsored_student->student_firstname->EditAttrs = array();\n\n\t\t// student_middlename\n\t\t$sponsored_student->student_middlename->CellCssStyle = \"\"; $sponsored_student->student_middlename->CellCssClass = \"\";\n\t\t$sponsored_student->student_middlename->CellAttrs = array(); $sponsored_student->student_middlename->ViewAttrs = array(); $sponsored_student->student_middlename->EditAttrs = array();\n\n\t\t// student_lastname\n\t\t$sponsored_student->student_lastname->CellCssStyle = \"\"; $sponsored_student->student_lastname->CellCssClass = \"\";\n\t\t$sponsored_student->student_lastname->CellAttrs = array(); $sponsored_student->student_lastname->ViewAttrs = array(); $sponsored_student->student_lastname->EditAttrs = array();\n\n\t\t// student_grades\n\t\t$sponsored_student->student_grades->CellCssStyle = \"\"; $sponsored_student->student_grades->CellCssClass = \"\";\n\t\t$sponsored_student->student_grades->CellAttrs = array(); $sponsored_student->student_grades->ViewAttrs = array(); $sponsored_student->student_grades->EditAttrs = array();\n\n\t\t// student_resident_programarea_id\n\t\t$sponsored_student->student_resident_programarea_id->CellCssStyle = \"\"; $sponsored_student->student_resident_programarea_id->CellCssClass = \"\";\n\t\t$sponsored_student->student_resident_programarea_id->CellAttrs = array(); $sponsored_student->student_resident_programarea_id->ViewAttrs = array(); $sponsored_student->student_resident_programarea_id->EditAttrs = array();\n\n\t\t// group_id\n\t\t$sponsored_student->group_id->CellCssStyle = \"\"; $sponsored_student->group_id->CellCssClass = \"\";\n\t\t$sponsored_student->group_id->CellAttrs = array(); $sponsored_student->group_id->ViewAttrs = array(); $sponsored_student->group_id->EditAttrs = array();\n\n\t\t// community_community_id\n\t\t$sponsored_student->community_community_id->CellCssStyle = \"\"; $sponsored_student->community_community_id->CellCssClass = \"\";\n\t\t$sponsored_student->community_community_id->CellAttrs = array(); $sponsored_student->community_community_id->ViewAttrs = array(); $sponsored_student->community_community_id->EditAttrs = array();\n\t\tif ($sponsored_student->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->ViewValue = $sponsored_student->sponsored_student_id->CurrentValue;\n\t\t\t$sponsored_student->sponsored_student_id->CssStyle = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->CssClass = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->ViewValue = $sponsored_student->student_firstname->CurrentValue;\n\t\t\t$sponsored_student->student_firstname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_firstname->CssClass = \"\";\n\t\t\t$sponsored_student->student_firstname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->ViewValue = $sponsored_student->student_middlename->CurrentValue;\n\t\t\t$sponsored_student->student_middlename->CssStyle = \"\";\n\t\t\t$sponsored_student->student_middlename->CssClass = \"\";\n\t\t\t$sponsored_student->student_middlename->ViewCustomAttributes = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->ViewValue = $sponsored_student->student_lastname->CurrentValue;\n\t\t\t$sponsored_student->student_lastname->CssStyle = \"\";\n\t\t\t$sponsored_student->student_lastname->CssClass = \"\";\n\t\t\t$sponsored_student->student_lastname->ViewCustomAttributes = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->ViewValue = $sponsored_student->student_grades->CurrentValue;\n\t\t\t$sponsored_student->student_grades->CssStyle = \"\";\n\t\t\t$sponsored_student->student_grades->CssClass = \"\";\n\t\t\t$sponsored_student->student_grades->ViewCustomAttributes = \"\";\n\n\t\t\t// student_applicant_student_applicant_id\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\tif (strval($sponsored_student->student_applicant_student_applicant_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`student_applicant_id` = \" . ew_AdjustSql($sponsored_student->student_applicant_student_applicant_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `student_lastname`, `student_firstname` FROM `student_applicant`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $rswrk->fields('student_lastname');\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue .= ew_ValueSeparator(0) . $rswrk->fields('student_firstname');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = $sponsored_student->student_applicant_student_applicant_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_applicant_student_applicant_id->ViewCustomAttributes = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\tif (strval($sponsored_student->student_resident_programarea_id->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`programarea_id` = \" . ew_AdjustSql($sponsored_student->student_resident_programarea_id->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_name` FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $rswrk->fields('programarea_name');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = $sponsored_student->student_resident_programarea_id->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$sponsored_student->student_resident_programarea_id->ViewValue = NULL;\n\t\t\t}\n\t\t\t$sponsored_student->student_resident_programarea_id->CssStyle = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->CssClass = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->ViewCustomAttributes = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->ViewValue = $sponsored_student->group_id->CurrentValue;\n\t\t\t$sponsored_student->group_id->CssStyle = \"\";\n\t\t\t$sponsored_student->group_id->CssClass = \"\";\n\t\t\t$sponsored_student->group_id->ViewCustomAttributes = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->ViewValue = $sponsored_student->community_community_id->CurrentValue;\n\t\t\t$sponsored_student->community_community_id->CssStyle = \"\";\n\t\t\t$sponsored_student->community_community_id->CssClass = \"\";\n\t\t\t$sponsored_student->community_community_id->ViewCustomAttributes = \"\";\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->HrefValue = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->TooltipValue = \"\";\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_firstname->TooltipValue = \"\";\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->HrefValue = \"\";\n\t\t\t$sponsored_student->student_middlename->TooltipValue = \"\";\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->HrefValue = \"\";\n\t\t\t$sponsored_student->student_lastname->TooltipValue = \"\";\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->HrefValue = \"\";\n\t\t\t$sponsored_student->student_grades->TooltipValue = \"\";\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->HrefValue = \"\";\n\t\t\t$sponsored_student->student_resident_programarea_id->TooltipValue = \"\";\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->HrefValue = \"\";\n\t\t\t$sponsored_student->group_id->TooltipValue = \"\";\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->HrefValue = \"\";\n\t\t\t$sponsored_student->community_community_id->TooltipValue = \"\";\n\t\t} elseif ($sponsored_student->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// sponsored_student_id\n\t\t\t$sponsored_student->sponsored_student_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->sponsored_student_id->EditValue = ew_HtmlEncode($sponsored_student->sponsored_student_id->AdvancedSearch->SearchValue);\n\n\t\t\t// student_firstname\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_firstname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_firstname->EditValue2 = ew_HtmlEncode($sponsored_student->student_firstname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_middlename\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_middlename->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_middlename->EditValue2 = ew_HtmlEncode($sponsored_student->student_middlename->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_lastname\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue);\n\t\t\t$sponsored_student->student_lastname->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_lastname->EditValue2 = ew_HtmlEncode($sponsored_student->student_lastname->AdvancedSearch->SearchValue2);\n\n\t\t\t// student_grades\n\t\t\t$sponsored_student->student_grades->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->student_grades->EditValue = ew_HtmlEncode($sponsored_student->student_grades->AdvancedSearch->SearchValue);\n\n\t\t\t// student_resident_programarea_id\n\t\t\t$sponsored_student->student_resident_programarea_id->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `programarea_id`, `programarea_name`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `programarea`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$sponsored_student->student_resident_programarea_id->EditValue = $arwrk;\n\n\t\t\t// group_id\n\t\t\t$sponsored_student->group_id->EditCustomAttributes = \"\";\n\t\t\tif (!$Security->IsAdmin() && $Security->IsLoggedIn()) { // Non system admin\n\t\t\t$sFilterWrk = \"\";\n\t\t\t$sFilterWrk = $GLOBALS[\"users\"]->AddUserIDFilter(\"\");\n\t\t\t$sSqlWrk = \"SELECT `userlevelid`, `userlevelid` FROM `users`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$sponsored_student->group_id->EditValue = $arwrk;\n\t\t\t} else {\n\t\t\t$sponsored_student->group_id->EditValue = ew_HtmlEncode($sponsored_student->group_id->AdvancedSearch->SearchValue);\n\t\t\t}\n\n\t\t\t// community_community_id\n\t\t\t$sponsored_student->community_community_id->EditCustomAttributes = \"\";\n\t\t\t$sponsored_student->community_community_id->EditValue = ew_HtmlEncode($sponsored_student->community_community_id->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($sponsored_student->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$sponsored_student->Row_Rendered();\n\t}", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $rekeningju;\r\n\r\n\t\t// Initialize URLs\r\n\t\t// Call Row_Rendering event\r\n\r\n\t\t$rekeningju->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// NoRek\r\n\t\t// Keterangan\r\n\t\t// debet\r\n\t\t// kredit\r\n\t\t// kode_bukti\r\n\t\t// tanggal\r\n\t\t// kode_otomatis_master\r\n\r\n\t\t$rekeningju->kode_otomatis_master->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// tanggal_nota\r\n\t\t// kode_otomatis\r\n\r\n\t\t$rekeningju->kode_otomatis->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// kode_otomatis_tingkat\r\n\t\t$rekeningju->kode_otomatis_tingkat->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// id\r\n\t\t$rekeningju->id->CellCssStyle = \"white-space: nowrap;\";\r\n\r\n\t\t// apakah_original\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// NoRek\r\n\t\t\tif (strval($rekeningju->NoRek->CurrentValue) <> \"\") {\r\n\t\t\t\t$sFilterWrk = \"`Norek` = '\" . ew_AdjustSql($rekeningju->NoRek->CurrentValue) . \"'\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Keterangan` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rswrk->fields('Norek');\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue .= ew_ValueSeparator(0,1,$rekeningju->NoRek) . $rswrk->fields('Keterangan');\r\n\t\t\t\t\t$rswrk->Close();\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rekeningju->NoRek->ViewValue = $rekeningju->NoRek->CurrentValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$rekeningju->NoRek->ViewValue = NULL;\r\n\t\t\t}\r\n\t\t\t$rekeningju->NoRek->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->ViewValue = $rekeningju->Keterangan->CurrentValue;\r\n\t\t\t$rekeningju->Keterangan->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->ViewValue = $rekeningju->debet->CurrentValue;\r\n\t\t\t$rekeningju->debet->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->ViewValue = $rekeningju->kredit->CurrentValue;\r\n\t\t\t$rekeningju->kredit->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->ViewValue = $rekeningju->kode_bukti->CurrentValue;\r\n\t\t\t$rekeningju->kode_bukti->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->ViewValue = $rekeningju->tanggal->CurrentValue;\r\n\t\t\t$rekeningju->tanggal->ViewValue = ew_FormatDateTime($rekeningju->tanggal->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = $rekeningju->tanggal_nota->CurrentValue;\r\n\t\t\t$rekeningju->tanggal_nota->ViewValue = ew_FormatDateTime($rekeningju->tanggal_nota->ViewValue, 7);\r\n\t\t\t$rekeningju->tanggal_nota->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->ViewValue = $rekeningju->kode_otomatis->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewValue = $rekeningju->kode_otomatis_tingkat->CurrentValue;\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->ViewValue = $rekeningju->apakah_original->CurrentValue;\r\n\t\t\t$rekeningju->apakah_original->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\t\t\t$rekeningju->NoRek->TooltipValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\t\t\t$rekeningju->Keterangan->TooltipValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\t\t\t$rekeningju->debet->TooltipValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\t\t\t$rekeningju->kredit->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_bukti->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal->TooltipValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->TooltipValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->TooltipValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->LinkCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t\t$rekeningju->apakah_original->TooltipValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_ADD) { // Add row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\t\t\t\t$sFilterWrk = \"\";\r\n\t\t\t$sSqlWrk = \"SELECT `Norek`, `Norek` AS `DispFld`, `Keterangan` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld` FROM `rekening2`\";\r\n\t\t\t$sWhereWrk = \"\";\r\n\t\t\tif ($sFilterWrk <> \"\") {\r\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\r\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\r\n\t\t\t}\r\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\r\n\t\t\t$sSqlWrk .= \" ORDER BY `Norek` Asc\";\r\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\r\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\r\n\t\t\tif ($rswrk) $rswrk->Close();\r\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\"), \"\"));\r\n\t\t\t$rekeningju->NoRek->EditValue = $arwrk;\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis->CurrentValue = unik();\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->CurrentValue = $_SESSION[\"kode_otomatis_tingkat\"];\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t} elseif ($rekeningju->RowType == EW_ROWTYPE_EDIT) { // Edit row\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->Keterangan->EditValue = ew_HtmlEncode($rekeningju->Keterangan->CurrentValue);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->debet->EditValue = ew_HtmlEncode($rekeningju->debet->CurrentValue);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kredit->EditValue = ew_HtmlEncode($rekeningju->kredit->CurrentValue);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->kode_bukti->EditValue = ew_HtmlEncode($rekeningju->kode_bukti->CurrentValue);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal->CurrentValue, 7));\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->tanggal_nota->EditValue = ew_HtmlEncode(ew_FormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7));\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->EditCustomAttributes = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->EditCustomAttributes = \"\";\r\n\t\t\t$rekeningju->apakah_original->EditValue = ew_HtmlEncode($rekeningju->apakah_original->CurrentValue);\r\n\r\n\t\t\t// Edit refer script\r\n\t\t\t// NoRek\r\n\r\n\t\t\t$rekeningju->NoRek->HrefValue = \"\";\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->HrefValue = \"\";\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->HrefValue = \"\";\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->HrefValue = \"\";\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->HrefValue = \"\";\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t$rekeningju->kode_otomatis->HrefValue = \"\";\r\n\r\n\t\t\t// kode_otomatis_tingkat\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->HrefValue = \"\";\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->HrefValue = \"\";\r\n\t\t}\r\n\t\tif ($rekeningju->RowType == EW_ROWTYPE_ADD ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_EDIT ||\r\n\t\t\t$rekeningju->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\r\n\t\t\t$rekeningju->SetupFieldTitles();\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($rekeningju->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$rekeningju->Row_Rendered();\r\n\t}", "public function edit()\n\t{\n\t\t//\n\t}", "function edit(){\n\t\t$arr = $this->uri->uri_to_assoc(3);\n\t\t$data['arr'] = $arr['id'];\n\t\t\n\t\t/* membuat value */\n\t\t$this->user->setID($arr['id']);\n\n\t\t/* fungsi ambil data */\n\t\t$result = $this->user->ambil_data();\n\n\t\t/* data dropdown */\n\t\t$data['role'] = role_dropdown();\n\t\t$data['result'] = $result;\n\n\t\t/* load view */\n\t\t$this->template->write_view('edit', $data);\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $t_tinbai_mainsite;\n\n\t\t// Initialize URLs\n\t\t$this->ViewUrl = $t_tinbai_mainsite->ViewUrl();\n\t\t$this->EditUrl = $t_tinbai_mainsite->EditUrl();\n\t\t$this->InlineEditUrl = $t_tinbai_mainsite->InlineEditUrl();\n\t\t$this->CopyUrl = $t_tinbai_mainsite->CopyUrl();\n\t\t$this->InlineCopyUrl = $t_tinbai_mainsite->InlineCopyUrl();\n\t\t$this->DeleteUrl = $t_tinbai_mainsite->DeleteUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$t_tinbai_mainsite->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// FK_CONGTY_ID\n\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// FK_DMGIOITHIEU_ID\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditAttrs = array();\n\n\t\t// FK_DMTUYENSINH_ID\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditAttrs = array();\n\n\t\t// FK_DTSVTUONGLAI_ID\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditAttrs = array();\n\n\t\t// FK_DTSVDANGHOC_ID\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditAttrs = array();\n\n\t\t// FK_DTCUUSV_ID\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTCUUSV_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTCUUSV_ID->EditAttrs = array();\n\n\t\t// FK_DTDOANHNGHIEP_ID\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditAttrs = array();\n\n\t\t// C_TITLE\n\t\t$t_tinbai_mainsite->C_TITLE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TITLE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TITLE->CellAttrs = array(); $t_tinbai_mainsite->C_TITLE->ViewAttrs = array(); $t_tinbai_mainsite->C_TITLE->EditAttrs = array();\n\n\t\t// C_HIT_MAINSITE\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_HIT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_HIT_MAINSITE->EditAttrs = array();\n\n\t\t// C_NEW_MYSEFLT\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NEW_MYSEFLT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CellAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->ViewAttrs = array(); $t_tinbai_mainsite->C_NEW_MYSEFLT->EditAttrs = array();\n\n\t\t// C_COMMENT_MAINSITE\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_COMMENT_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_COMMENT_MAINSITE->EditAttrs = array();\n\n\t\t// C_ORDER_MAINSITE\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ORDER_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ORDER_MAINSITE->EditAttrs = array();\n\n\t\t// C_STATUS_MAINSITE\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_STATUS_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_STATUS_MAINSITE->EditAttrs = array();\n\n\t\t// C_VISITOR_MAINSITE\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_VISITOR_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_VISITOR_MAINSITE->EditAttrs = array();\n\n\t\t// C_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditAttrs = array();\n\n\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CellAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewAttrs = array(); $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditAttrs = array();\n\n\t\t// C_NOTE\n\t\t$t_tinbai_mainsite->C_NOTE->CellCssStyle = \"\"; $t_tinbai_mainsite->C_NOTE->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_NOTE->CellAttrs = array(); $t_tinbai_mainsite->C_NOTE->ViewAttrs = array(); $t_tinbai_mainsite->C_NOTE->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_ADD->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_ADD->CellAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_ADD_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_ADD_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellCssStyle = \"\"; $t_tinbai_mainsite->C_USER_EDIT->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_USER_EDIT->CellAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->ViewAttrs = array(); $t_tinbai_mainsite->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellCssStyle = \"\"; $t_tinbai_mainsite->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->C_EDIT_TIME->CellAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->ViewAttrs = array(); $t_tinbai_mainsite->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// FK_EDITOR_ID\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellCssStyle = \"\"; $t_tinbai_mainsite->FK_EDITOR_ID->CellCssClass = \"\";\n\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CellAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->ViewAttrs = array(); $t_tinbai_mainsite->FK_EDITOR_ID->EditAttrs = array();\n\t\tif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// PK_TINBAI_ID\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewValue = $t_tinbai_mainsite->PK_TINBAI_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->PK_TINBAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = $t_tinbai_mainsite->FK_CONGTY_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCGIOITHIEU` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_DANHMUCTUYENSINH` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = $t_tinbai_mainsite->FK_DMTUYENSINH_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVTUONGLAI_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTSVDANGHOC_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTCUUSV_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = $t_tinbai_mainsite->FK_DTCUUSV_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\tif (strval($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`DTDOANHNGHIEP_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_NAME` FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $rswrk->fields('C_NAME');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewValue = $t_tinbai_mainsite->C_TITLE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = \"\";\n\t\t\t\t$arwrk = explode(\",\", strval($t_tinbai_mainsite->C_HIT_MAINSITE->CurrentValue));\n\t\t\t\tfor ($ari = 0; $ari < count($arwrk); $ari++) {\n\t\t\t\t\tswitch (trim($arwrk[$ari])) {\n\t\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Không nổi bật\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật trang chủ\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật tuyển sinh\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"3\":\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= \"Tin nổi bật sinh viên đang học\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= trim($arwrk[$ari]);\n\t\t\t\t\t}\n\t\t\t\t\tif ($ari < count($arwrk)-1) $t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue .= ew_ViewOptionSeparator($ari);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\tif (strval($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"Không là tin chúng tôi\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = \"<b>Tin chúng tôi </b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = $t_tinbai_mainsite->C_NEW_MYSEFLT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->ViewCustomAttributes = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"Không cho phép\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = \"<b>Cho phép comnet</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = $t_tinbai_mainsite->C_COMMENT_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ORDER_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Không duyệt <img src=\\\"images/alert-small.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Đã duyệt <img src=\\\"images/icon-xac-thuc.jpg\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"2\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = \"Chờ duyệt <img src=\\\"images/new.gif\\\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = $t_tinbai_mainsite->C_STATUS_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewValue = $t_tinbai_mainsite->C_VISITOR_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\tif (strval($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\tswitch ($t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue) {\n\t\t\t\t\tcase \"0\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<span style=\\\"color:red\\\">Không xuất bản</span>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"1\":\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = \"<b>Xuất bản</b>\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewValue = $t_tinbai_mainsite->C_NOTE->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_levelsite->C_USER_ADD->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_ADD->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = $t_tinbai_mainsite->C_USER_ADD->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = $t_tinbai_mainsite->C_ADD_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_ADD_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// C_USER_EDIT\n \n $t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_levelsite->C_USER_EDIT->CurrentValue;\n\t\t\tif (strval($t_tinbai_mainsite->C_USER_ADD->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`PK_NGUOIDUNG_ID` = \" . ew_AdjustSql($t_tinbai_mainsite->C_USER_EDIT->CurrentValue) . \"\";\n\t\t\t$sSqlWrk = \"SELECT `C_HOTEN` FROM `t_nguoidung`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n \n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n \n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $rswrk->fields('C_HOTEN');\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewValue = $t_tinbai_mainsite->C_USER_EDIT->CurrentValue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$t_tinbai_mainsite->C_USER_ADD->ViewValue = NULL;\n\t\t\t}\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->ViewCustomAttributes = \"\";\n \n\t\t\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = $t_tinbai_mainsite->C_EDIT_TIME->CurrentValue;\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewValue = ew_FormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->ViewValue, 11);\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = $t_tinbai_mainsite->FK_EDITOR_ID->CurrentValue;\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewValue = ew_FormatNumber($t_tinbai_mainsite->FK_EDITOR_ID->ViewValue, 0, -2, -2, -2);\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssStyle = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->CssClass = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->ViewCustomAttributes = \"\";\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->TooltipValue = \"\";\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->TooltipValue = \"\";\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->TooltipValue = \"\";\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->TooltipValue = \"\";\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->TooltipValue = \"\";\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->TooltipValue = \"\";\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->TooltipValue = \"\";\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->HrefValue = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->TooltipValue = \"\";\n\t\t} elseif ($t_tinbai_mainsite->RowType == EW_ROWTYPE_SEARCH) { // Search row\n\n\t\t\t// FK_CONGTY_ID\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_MACONGTY`, `C_TENCONGTY`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_congty`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_CONGTY_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMGIOITHIEU_ID\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCGIOITHIEU`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmucgioithieu`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMGIOITHIEU_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DMTUYENSINH_ID\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `PK_DANHMUCTUYENSINH`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_danhmuctuyensinh`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DMTUYENSINH_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVTUONGLAI_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVTUONGLAI_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svtuonglai`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTSVDANGHOC_ID\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTSVDANGHOC_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_svdanghoc`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTSVDANGHOC_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTCUUSV_ID\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTCUUSV_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_cuusv`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTCUUSV_ID->EditValue = $arwrk;\n\n\t\t\t// FK_DTDOANHNGHIEP_ID\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditCustomAttributes = \"\";\n\t\t\t\t$sFilterWrk = \"\";\n\t\t\t$sSqlWrk = \"SELECT `DTDOANHNGHIEP_ID`, `C_NAME`, '' AS Disp2Fld, '' AS SelectFilterFld FROM `t_doituong_doanhnghiep`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\tif ($sFilterWrk <> \"\") {\n\t\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t\t}\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\tarray_unshift($arwrk, array(\"\", $Language->Phrase(\"PleaseSelect\")));\n\t\t\t$t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->EditValue = $arwrk;\n\n\t\t\t// C_TITLE\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TITLE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_TITLE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t\n\t\t\t// C_HIT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không là tin nổi bật\");\n\t\t\t$arwrk[] = array(\"1\", \"Tin nổi bật trang chủ\");\n\t\t\t$arwrk[] = array(\"2\", \"Tin nổi bật trang tuyển sinh\");\n\t\t\t$arwrk[] = array(\"3\", \"Tin nổi bật sinh viên đang học\");\n\t\t\t$t_tinbai_mainsite->C_HIT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_NEW_MYSEFLT\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không \");\n\t\t\t$arwrk[] = array(\"1\", \"Tin chúng tôi\");\n\t\t\t$t_tinbai_mainsite->C_NEW_MYSEFLT->EditValue = $arwrk;\n\n\t\t\t// C_COMMENT_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không cho phép\");\n\t\t\t$arwrk[] = array(\"1\", \"Cho phép commnet facebook\");\n\t\t\t$t_tinbai_mainsite->C_COMMENT_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_ORDER_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ORDER_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ORDER_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_STATUS_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"Không duyệt\");\n\t\t\t$arwrk[] = array(\"1\", \"Đã duyệt\");\n $arwrk[] = array(\"2\", \"Chờ xét\");\n\t\t\t$arwrk[] = array(\"\", \"\");\n\t\t\t$t_tinbai_mainsite->C_STATUS_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_VISITOR_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_VISITOR_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_VISITOR_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$arwrk = array();\n\t\t\t$arwrk[] = array(\"0\", \"khong active len mainsite\");\n\t\t\t$arwrk[] = array(\"1\", \"Active lenmainsite\");\n\t\t\t$t_tinbai_mainsite->C_ACTIVE_MAINSITE->EditValue = $arwrk;\n\n\t\t\t// C_TIME_ACTIVE_MAINSITE\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_NGUOIDUNGID_MAINSITE\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_NOTE\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_NOTE->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_NOTE->AdvancedSearch->SearchValue);\n\n\t\t\t// C_USER_ADD\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_ADD->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_ADD->AdvancedSearch->SearchValue);\n\n\t\t\t// C_ADD_TIME\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_ADD_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_ADD_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// C_USER_EDIT\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_USER_EDIT->EditValue = ew_HtmlEncode($t_tinbai_mainsite->C_USER_EDIT->AdvancedSearch->SearchValue);\n\n\t\t\t// C_EDIT_TIME\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->C_EDIT_TIME->EditValue = ew_HtmlEncode(ew_FormatDateTime(ew_UnFormatDateTime($t_tinbai_mainsite->C_EDIT_TIME->AdvancedSearch->SearchValue, 11), 11));\n\n\t\t\t// FK_EDITOR_ID\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditCustomAttributes = \"\";\n\t\t\t$t_tinbai_mainsite->FK_EDITOR_ID->EditValue = ew_HtmlEncode($t_tinbai_mainsite->FK_EDITOR_ID->AdvancedSearch->SearchValue);\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($t_tinbai_mainsite->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$t_tinbai_mainsite->Row_Rendered();\n\t}", "public function edit() {\n\t\t\t\n\t\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// gjd_id\n\t\t// gjm_id\n\t\t// peg_id\n\t\t// b_mn\n\t\t// b_sn\n\t\t// b_sl\n\t\t// b_rb\n\t\t// b_km\n\t\t// b_jm\n\t\t// b_sb\n\t\t// l_mn\n\t\t// l_sn\n\t\t// l_sl\n\t\t// l_rb\n\t\t// l_km\n\t\t// l_jm\n\t\t// l_sb\n\t\t// gjd_id\n\n\t\t$this->gjd_id->ViewValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\n\t\t// peg_id\n\t\tif (strval($this->peg_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`peg_id`\" . ew_SearchString(\"=\", $this->peg_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `peg_id`, `peg_nama` AS `DispFld`, `peg_jabatan` AS `Disp2Fld`, `peg_upah` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `t_pegawai`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->peg_id->LookupFilters = array(\"dx1\" => '`peg_nama`', \"dx2\" => '`peg_jabatan`', \"dx3\" => '`peg_upah`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->peg_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = ew_FormatNumber($rswrk->fields('Disp3Fld'), 0, -2, -2, -1);\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->peg_id->ViewValue = NULL;\n\t\t}\n\t\t$this->peg_id->ViewCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->ViewValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->ViewCustomAttributes = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->ViewValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->ViewCustomAttributes = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->ViewValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->ViewCustomAttributes = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->ViewValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->ViewCustomAttributes = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->ViewValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->ViewCustomAttributes = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->ViewValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->ViewCustomAttributes = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->ViewValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->ViewCustomAttributes = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->ViewValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->ViewCustomAttributes = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->ViewValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->ViewCustomAttributes = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->ViewValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->ViewCustomAttributes = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->ViewValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->ViewCustomAttributes = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->ViewValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->ViewCustomAttributes = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->ViewValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->ViewCustomAttributes = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->ViewValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->ViewCustomAttributes = \"\";\n\n\t\t// gjd_id\n\t\t$this->gjd_id->LinkCustomAttributes = \"\";\n\t\t$this->gjd_id->HrefValue = \"\";\n\t\t$this->gjd_id->TooltipValue = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->LinkCustomAttributes = \"\";\n\t\t$this->gjm_id->HrefValue = \"\";\n\t\t$this->gjm_id->TooltipValue = \"\";\n\n\t\t// peg_id\n\t\t$this->peg_id->LinkCustomAttributes = \"\";\n\t\t$this->peg_id->HrefValue = \"\";\n\t\t$this->peg_id->TooltipValue = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->LinkCustomAttributes = \"\";\n\t\t$this->b_mn->HrefValue = \"\";\n\t\t$this->b_mn->TooltipValue = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->LinkCustomAttributes = \"\";\n\t\t$this->b_sn->HrefValue = \"\";\n\t\t$this->b_sn->TooltipValue = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->LinkCustomAttributes = \"\";\n\t\t$this->b_sl->HrefValue = \"\";\n\t\t$this->b_sl->TooltipValue = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->LinkCustomAttributes = \"\";\n\t\t$this->b_rb->HrefValue = \"\";\n\t\t$this->b_rb->TooltipValue = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->LinkCustomAttributes = \"\";\n\t\t$this->b_km->HrefValue = \"\";\n\t\t$this->b_km->TooltipValue = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->LinkCustomAttributes = \"\";\n\t\t$this->b_jm->HrefValue = \"\";\n\t\t$this->b_jm->TooltipValue = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->LinkCustomAttributes = \"\";\n\t\t$this->b_sb->HrefValue = \"\";\n\t\t$this->b_sb->TooltipValue = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->LinkCustomAttributes = \"\";\n\t\t$this->l_mn->HrefValue = \"\";\n\t\t$this->l_mn->TooltipValue = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->LinkCustomAttributes = \"\";\n\t\t$this->l_sn->HrefValue = \"\";\n\t\t$this->l_sn->TooltipValue = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->LinkCustomAttributes = \"\";\n\t\t$this->l_sl->HrefValue = \"\";\n\t\t$this->l_sl->TooltipValue = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->LinkCustomAttributes = \"\";\n\t\t$this->l_rb->HrefValue = \"\";\n\t\t$this->l_rb->TooltipValue = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->LinkCustomAttributes = \"\";\n\t\t$this->l_km->HrefValue = \"\";\n\t\t$this->l_km->TooltipValue = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->LinkCustomAttributes = \"\";\n\t\t$this->l_jm->HrefValue = \"\";\n\t\t$this->l_jm->TooltipValue = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->LinkCustomAttributes = \"\";\n\t\t$this->l_sb->HrefValue = \"\";\n\t\t$this->l_sb->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language, $selection_grade_point;\n\t\t$sFilter = $selection_grade_point->KeyFilter();\n\t\t$selection_grade_point->CurrentFilter = $sFilter;\n\t\t$sSql = $selection_grade_point->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold =& $rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// selection_grade_points_id\n\t\t\t// grade_point\n\n\t\t\t$selection_grade_point->grade_point->SetDbValueDef($rsnew, $selection_grade_point->grade_point->CurrentValue, NULL, FALSE);\n\n\t\t\t// min_grade\n\t\t\t$selection_grade_point->min_grade->SetDbValueDef($rsnew, $selection_grade_point->min_grade->CurrentValue, NULL, FALSE);\n\n\t\t\t// max_grade\n\t\t\t$selection_grade_point->max_grade->SetDbValueDef($rsnew, $selection_grade_point->max_grade->CurrentValue, NULL, FALSE);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $selection_grade_point->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\t$EditRow = $conn->Execute($selection_grade_point->UpdateSQL($rsnew));\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($selection_grade_point->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setMessage($selection_grade_point->CancelMessage);\n\t\t\t\t\t$selection_grade_point->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$selection_grade_point->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Call Row_Rendering event\n\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// IDXDAFTAR\n\t\t// NOMR\n\t\t// KDPOLY\n\t\t// KDCARABAYAR\n\t\t// NIP\n\t\t// TGLREG\n\t\t// JAMREG\n\t\t// NO_SJP\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// NORUJUKAN_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// generate_sep\n\t\t// PESERTANIK_SEP\n\t\t// PESERTANAMA_SEP\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t// PESERTANAMAKELAS_SEP\n\t\t// PESERTAPISAT\n\t\t// PESERTATGLLAHIR\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t// POLITUJUAN_SEP\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t// KDPPKRUJUKAN_SEP\n\t\t// NMPPKRUJUKAN_SEP\n\t\t// mapingtransaksi\n\t\t// bridging_kepesertaan_by_no_ka\n\t\t// pasien_NOTELP\n\t\t// penjamin_kkl_id\n\t\t// asalfaskesrujukan_id\n\t\t// peserta_cob\n\t\t// poli_eksekutif\n\t\t// status_kepesertaan_BPJS\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 5);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 5);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\tif (strval($this->JENISPERAWATAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_jeniskeperawatan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JENISPERAWATAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\tif (strval($this->LAKALANTAS_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_lakalantas`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->LAKALANTAS_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANIK_SEP\n\t\t$this->PESERTANIK_SEP->ViewValue = $this->PESERTANIK_SEP->CurrentValue;\n\t\t$this->PESERTANIK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMA_SEP\n\t\t$this->PESERTANAMA_SEP->ViewValue = $this->PESERTANAMA_SEP->CurrentValue;\n\t\t$this->PESERTANAMA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISKELAMIN_SEP\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewValue = $this->PESERTAJENISKELAMIN_SEP->CurrentValue;\n\t\t$this->PESERTAJENISKELAMIN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAKELAS_SEP\n\t\t$this->PESERTANAMAKELAS_SEP->ViewValue = $this->PESERTANAMAKELAS_SEP->CurrentValue;\n\t\t$this->PESERTANAMAKELAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAPISAT\n\t\t$this->PESERTAPISAT->ViewValue = $this->PESERTAPISAT->CurrentValue;\n\t\t$this->PESERTAPISAT->ViewCustomAttributes = \"\";\n\n\t\t// PESERTATGLLAHIR\n\t\t$this->PESERTATGLLAHIR->ViewValue = $this->PESERTATGLLAHIR->CurrentValue;\n\t\t$this->PESERTATGLLAHIR->ViewCustomAttributes = \"\";\n\n\t\t// PESERTAJENISPESERTA_SEP\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewValue = $this->PESERTAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewValue = $this->PESERTANAMAJENISPESERTA_SEP->CurrentValue;\n\t\t$this->PESERTANAMAJENISPESERTA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// POLITUJUAN_SEP\n\t\tif (strval($this->POLITUJUAN_SEP->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refpoli`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->POLITUJUAN_SEP->ViewValue = $this->POLITUJUAN_SEP->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->POLITUJUAN_SEP->ViewValue = NULL;\n\t\t}\n\t\t$this->POLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPOLITUJUAN_SEP\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewValue = $this->NAMAPOLITUJUAN_SEP->CurrentValue;\n\t\t$this->NAMAPOLITUJUAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KDPPKRUJUKAN_SEP\n\t\t$this->KDPPKRUJUKAN_SEP->ViewValue = $this->KDPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->KDPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NMPPKRUJUKAN_SEP\n\t\t$this->NMPPKRUJUKAN_SEP->ViewValue = $this->NMPPKRUJUKAN_SEP->CurrentValue;\n\t\t$this->NMPPKRUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// pasien_NOTELP\n\t\t$this->pasien_NOTELP->ViewValue = $this->pasien_NOTELP->CurrentValue;\n\t\t$this->pasien_NOTELP->ViewCustomAttributes = \"\";\n\n\t\t// penjamin_kkl_id\n\t\tif (strval($this->penjamin_kkl_id->CurrentValue) <> \"\") {\n\t\t\t$this->penjamin_kkl_id->ViewValue = $this->penjamin_kkl_id->OptionCaption($this->penjamin_kkl_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->penjamin_kkl_id->ViewValue = NULL;\n\t\t}\n\t\t$this->penjamin_kkl_id->ViewCustomAttributes = \"\";\n\n\t\t// asalfaskesrujukan_id\n\t\tif (strval($this->asalfaskesrujukan_id->CurrentValue) <> \"\") {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = $this->asalfaskesrujukan_id->OptionCaption($this->asalfaskesrujukan_id->CurrentValue);\n\t\t} else {\n\t\t\t$this->asalfaskesrujukan_id->ViewValue = NULL;\n\t\t}\n\t\t$this->asalfaskesrujukan_id->ViewCustomAttributes = \"\";\n\n\t\t// peserta_cob\n\t\tif (strval($this->peserta_cob->CurrentValue) <> \"\") {\n\t\t\t$this->peserta_cob->ViewValue = $this->peserta_cob->OptionCaption($this->peserta_cob->CurrentValue);\n\t\t} else {\n\t\t\t$this->peserta_cob->ViewValue = NULL;\n\t\t}\n\t\t$this->peserta_cob->ViewCustomAttributes = \"\";\n\n\t\t// poli_eksekutif\n\t\tif (strval($this->poli_eksekutif->CurrentValue) <> \"\") {\n\t\t\t$this->poli_eksekutif->ViewValue = $this->poli_eksekutif->OptionCaption($this->poli_eksekutif->CurrentValue);\n\t\t} else {\n\t\t\t$this->poli_eksekutif->ViewValue = NULL;\n\t\t}\n\t\t$this->poli_eksekutif->ViewCustomAttributes = \"\";\n\n\t\t// status_kepesertaan_BPJS\n\t\t$this->status_kepesertaan_BPJS->ViewValue = $this->status_kepesertaan_BPJS->CurrentValue;\n\t\t$this->status_kepesertaan_BPJS->ViewCustomAttributes = \"\";\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\t\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\t\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\t\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\t\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\t\t\t$this->USER->TooltipValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\t\t\tif ($this->Export == \"\") {\n\t\t\t\t$this->PESERTANIK_SEP->TooltipValue = ($this->PESERTANIK_SEP->ViewValue <> \"\") ? $this->PESERTANIK_SEP->ViewValue : $this->PESERTANIK_SEP->CurrentValue;\n\t\t\t\tif ($this->PESERTANIK_SEP->HrefValue == \"\") $this->PESERTANIK_SEP->HrefValue = \"javascript:void(0);\";\n\t\t\t\tew_AppendClass($this->PESERTANIK_SEP->LinkAttrs[\"class\"], \"ewTooltipLink\");\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-id\"] = \"tt_vw_bridging_sep_by_no_kartu_x_PESERTANIK_SEP\";\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-tooltip-width\"] = $this->PESERTANIK_SEP->TooltipWidth;\n\t\t\t\t$this->PESERTANIK_SEP->LinkAttrs[\"data-placement\"] = $GLOBALS[\"EW_CSS_FLIP\"] ? \"left\" : \"right\";\n\t\t\t}\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\t\t\t$this->PESERTAPISAT->TooltipValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\t\t\t$this->PESERTATGLLAHIR->TooltipValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->TooltipValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->POLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->TooltipValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\t\t\t$this->pasien_NOTELP->TooltipValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\t\t\t$this->penjamin_kkl_id->TooltipValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\t\t\t$this->asalfaskesrujukan_id->TooltipValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\t\t\t$this->peserta_cob->TooltipValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\t\t\t$this->poli_eksekutif->TooltipValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// NOMR\n\t\t\t$this->NOMR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOMR->EditCustomAttributes = \"\";\n\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->NOMR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->NOMR->EditValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->NOMR->EditValue = ew_HtmlEncode($this->NOMR->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->NOMR->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->NOMR->PlaceHolder = ew_RemoveHtml($this->NOMR->FldCaption());\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPOLY->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDPOLY->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_poly`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDPOLY->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDPOLY->EditValue = $arwrk;\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDCARABAYAR->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->KDCARABAYAR->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `m_carabayar`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->KDCARABAYAR->EditValue = $arwrk;\n\n\t\t\t// NIP\n\t\t\t$this->NIP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NIP->EditCustomAttributes = \"\";\n\t\t\t$this->NIP->EditValue = ew_HtmlEncode($this->NIP->CurrentValue);\n\t\t\t$this->NIP->PlaceHolder = ew_RemoveHtml($this->NIP->FldCaption());\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TGLREG->EditCustomAttributes = \"\";\n\t\t\t$this->TGLREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TGLREG->CurrentValue, 8));\n\t\t\t$this->TGLREG->PlaceHolder = ew_RemoveHtml($this->TGLREG->FldCaption());\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->JAMREG->EditCustomAttributes = \"\";\n\t\t\t$this->JAMREG->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->JAMREG->CurrentValue, 8));\n\t\t\t$this->JAMREG->PlaceHolder = ew_RemoveHtml($this->JAMREG->FldCaption());\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NO_SJP->EditCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->EditValue = ew_HtmlEncode($this->NO_SJP->CurrentValue);\n\t\t\t$this->NO_SJP->PlaceHolder = ew_RemoveHtml($this->NO_SJP->FldCaption());\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NOKARTU->EditCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->EditValue = ew_HtmlEncode($this->NOKARTU->CurrentValue);\n\t\t\t$this->NOKARTU->PlaceHolder = ew_RemoveHtml($this->NOKARTU->FldCaption());\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGAL_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGAL_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGAL_SEP->FldCaption());\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->TANGGALRUJUK_SEP->CurrentValue, 5));\n\t\t\t$this->TANGGALRUJUK_SEP->PlaceHolder = ew_RemoveHtml($this->TANGGALRUJUK_SEP->FldCaption());\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KELASRAWAT_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->EditValue = ew_HtmlEncode($this->KELASRAWAT_SEP->CurrentValue);\n\t\t\t$this->KELASRAWAT_SEP->PlaceHolder = ew_RemoveHtml($this->KELASRAWAT_SEP->FldCaption());\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NORUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NORUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NORUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NORUJUKAN_SEP->FldCaption());\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->EditValue = ew_HtmlEncode($this->PPKPELAYANAN_SEP->CurrentValue);\n\t\t\t$this->PPKPELAYANAN_SEP->PlaceHolder = ew_RemoveHtml($this->PPKPELAYANAN_SEP->FldCaption());\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->JENISPERAWATAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`jeniskeperawatan_id`\" . ew_SearchString(\"=\", $this->JENISPERAWATAN_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `jeniskeperawatan_id`, `jeniskeperawatan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_jeniskeperawatan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`jeniskeperawatan_id`='2'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->JENISPERAWATAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->JENISPERAWATAN_SEP->EditValue = $arwrk;\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->CATATAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->EditValue = ew_HtmlEncode($this->CATATAN_SEP->CurrentValue);\n\t\t\t$this->CATATAN_SEP->PlaceHolder = ew_RemoveHtml($this->CATATAN_SEP->FldCaption());\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\tif (strval($this->DIAGNOSAAWAL_SEP->CurrentValue) <> \"\") {\n\t\t\t\t$sFilterWrk = \"`Code`\" . ew_SearchString(\"=\", $this->DIAGNOSAAWAL_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t$sSqlWrk = \"SELECT `Code`, `Code` AS `DispFld`, `Description` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `refdiagnosis`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->DIAGNOSAAWAL_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = array();\n\t\t\t\t\t$arwrk[1] = ew_HtmlEncode($rswrk->fields('DispFld'));\n\t\t\t\t\t$arwrk[2] = ew_HtmlEncode($rswrk->fields('Disp2Fld'));\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = $this->DIAGNOSAAWAL_SEP->DisplayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = ew_HtmlEncode($this->DIAGNOSAAWAL_SEP->CurrentValue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->DIAGNOSAAWAL_SEP->EditValue = NULL;\n\t\t\t}\n\t\t\t$this->DIAGNOSAAWAL_SEP->PlaceHolder = ew_RemoveHtml($this->DIAGNOSAAWAL_SEP->FldCaption());\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->EditValue = ew_HtmlEncode($this->NAMADIAGNOSA_SEP->CurrentValue);\n\t\t\t$this->NAMADIAGNOSA_SEP->PlaceHolder = ew_RemoveHtml($this->NAMADIAGNOSA_SEP->FldCaption());\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->LAKALANTAS_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`id`\" . ew_SearchString(\"=\", $this->LAKALANTAS_SEP->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `id`, `lakalantas` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `l_lakalantas`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->LAKALANTAS_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->LAKALANTAS_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->LAKALANTAS_SEP->EditValue = $arwrk;\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->LOKASILAKALANTAS->EditCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->EditValue = ew_HtmlEncode($this->LOKASILAKALANTAS->CurrentValue);\n\t\t\t$this->LOKASILAKALANTAS->PlaceHolder = ew_RemoveHtml($this->LOKASILAKALANTAS->FldCaption());\n\n\t\t\t// USER\n\t\t\t$this->USER->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->USER->EditCustomAttributes = \"\";\n\t\t\t$this->USER->EditValue = ew_HtmlEncode($this->USER->CurrentValue);\n\t\t\t$this->USER->PlaceHolder = ew_RemoveHtml($this->USER->FldCaption());\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANIK_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->EditValue = ew_HtmlEncode($this->PESERTANIK_SEP->CurrentValue);\n\t\t\t$this->PESERTANIK_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANIK_SEP->FldCaption());\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMA_SEP->FldCaption());\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISKELAMIN_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISKELAMIN_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAKELAS_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAKELAS_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAKELAS_SEP->FldCaption());\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAPISAT->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->EditValue = ew_HtmlEncode($this->PESERTAPISAT->CurrentValue);\n\t\t\t$this->PESERTAPISAT->PlaceHolder = ew_RemoveHtml($this->PESERTAPISAT->FldCaption());\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTATGLLAHIR->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->EditValue = ew_HtmlEncode($this->PESERTATGLLAHIR->CurrentValue);\n\t\t\t$this->PESERTATGLLAHIR->PlaceHolder = ew_RemoveHtml($this->PESERTATGLLAHIR->FldCaption());\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->EditValue = ew_HtmlEncode($this->PESERTANAMAJENISPESERTA_SEP->CurrentValue);\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->PlaceHolder = ew_RemoveHtml($this->PESERTANAMAJENISPESERTA_SEP->FldCaption());\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->POLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->POLITUJUAN_SEP->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`KDPOLI`\" . ew_SearchString(\"=\", $this->POLITUJUAN_SEP->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `KDPOLI`, `KDPOLI` AS `DispFld`, `NMPOLI` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `refpoli`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->POLITUJUAN_SEP->LookupFilters = array();\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->POLITUJUAN_SEP, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->POLITUJUAN_SEP->EditValue = $arwrk;\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->EditValue = ew_HtmlEncode($this->NAMAPOLITUJUAN_SEP->CurrentValue);\n\t\t\t$this->NAMAPOLITUJUAN_SEP->PlaceHolder = ew_RemoveHtml($this->NAMAPOLITUJUAN_SEP->FldCaption());\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->KDPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->KDPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->KDPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->EditValue = ew_HtmlEncode($this->NMPPKRUJUKAN_SEP->CurrentValue);\n\t\t\t$this->NMPPKRUJUKAN_SEP->PlaceHolder = ew_RemoveHtml($this->NMPPKRUJUKAN_SEP->FldCaption());\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->pasien_NOTELP->EditCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->EditValue = ew_HtmlEncode($this->pasien_NOTELP->CurrentValue);\n\t\t\t$this->pasien_NOTELP->PlaceHolder = ew_RemoveHtml($this->pasien_NOTELP->FldCaption());\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->penjamin_kkl_id->EditCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->EditValue = $this->penjamin_kkl_id->Options(TRUE);\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->asalfaskesrujukan_id->EditCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->EditValue = $this->asalfaskesrujukan_id->Options(TRUE);\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->peserta_cob->EditCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->EditValue = $this->peserta_cob->Options(TRUE);\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->poli_eksekutif->EditCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->EditValue = $this->poli_eksekutif->Options(TRUE);\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->status_kepesertaan_BPJS->EditCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->EditValue = ew_HtmlEncode($this->status_kepesertaan_BPJS->CurrentValue);\n\t\t\t$this->status_kepesertaan_BPJS->PlaceHolder = ew_RemoveHtml($this->status_kepesertaan_BPJS->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// NOMR\n\n\t\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t\t$this->NOMR->HrefValue = \"\";\n\n\t\t\t// KDPOLY\n\t\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPOLY->HrefValue = \"\";\n\n\t\t\t// KDCARABAYAR\n\t\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\n\t\t\t// NIP\n\t\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t\t$this->NIP->HrefValue = \"\";\n\n\t\t\t// TGLREG\n\t\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t\t$this->TGLREG->HrefValue = \"\";\n\n\t\t\t// JAMREG\n\t\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t\t$this->JAMREG->HrefValue = \"\";\n\n\t\t\t// NO_SJP\n\t\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t\t$this->NO_SJP->HrefValue = \"\";\n\n\t\t\t// NOKARTU\n\t\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t\t$this->NOKARTU->HrefValue = \"\";\n\n\t\t\t// TANGGAL_SEP\n\t\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\n\t\t\t// TANGGALRUJUK_SEP\n\t\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\n\t\t\t// KELASRAWAT_SEP\n\t\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\n\t\t\t// NORUJUKAN_SEP\n\t\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// PPKPELAYANAN_SEP\n\t\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\n\t\t\t// JENISPERAWATAN_SEP\n\t\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\n\t\t\t// CATATAN_SEP\n\t\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\n\t\t\t// DIAGNOSAAWAL_SEP\n\t\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\n\t\t\t// NAMADIAGNOSA_SEP\n\t\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\n\t\t\t// LAKALANTAS_SEP\n\t\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\n\t\t\t// LOKASILAKALANTAS\n\t\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\n\t\t\t// USER\n\t\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t\t$this->USER->HrefValue = \"\";\n\n\t\t\t// PESERTANIK_SEP\n\t\t\t$this->PESERTANIK_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANIK_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMA_SEP\n\t\t\t$this->PESERTANAMA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISKELAMIN_SEP\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISKELAMIN_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAKELAS_SEP\n\t\t\t$this->PESERTANAMAKELAS_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAKELAS_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTAPISAT\n\t\t\t$this->PESERTAPISAT->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAPISAT->HrefValue = \"\";\n\n\t\t\t// PESERTATGLLAHIR\n\t\t\t$this->PESERTATGLLAHIR->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTATGLLAHIR->HrefValue = \"\";\n\n\t\t\t// PESERTAJENISPESERTA_SEP\n\t\t\t$this->PESERTAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// PESERTANAMAJENISPESERTA_SEP\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->PESERTANAMAJENISPESERTA_SEP->HrefValue = \"\";\n\n\t\t\t// POLITUJUAN_SEP\n\t\t\t$this->POLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->POLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// NAMAPOLITUJUAN_SEP\n\t\t\t$this->NAMAPOLITUJUAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NAMAPOLITUJUAN_SEP->HrefValue = \"\";\n\n\t\t\t// KDPPKRUJUKAN_SEP\n\t\t\t$this->KDPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->KDPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// NMPPKRUJUKAN_SEP\n\t\t\t$this->NMPPKRUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t\t$this->NMPPKRUJUKAN_SEP->HrefValue = \"\";\n\n\t\t\t// pasien_NOTELP\n\t\t\t$this->pasien_NOTELP->LinkCustomAttributes = \"\";\n\t\t\t$this->pasien_NOTELP->HrefValue = \"\";\n\n\t\t\t// penjamin_kkl_id\n\t\t\t$this->penjamin_kkl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->penjamin_kkl_id->HrefValue = \"\";\n\n\t\t\t// asalfaskesrujukan_id\n\t\t\t$this->asalfaskesrujukan_id->LinkCustomAttributes = \"\";\n\t\t\t$this->asalfaskesrujukan_id->HrefValue = \"\";\n\n\t\t\t// peserta_cob\n\t\t\t$this->peserta_cob->LinkCustomAttributes = \"\";\n\t\t\t$this->peserta_cob->HrefValue = \"\";\n\n\t\t\t// poli_eksekutif\n\t\t\t$this->poli_eksekutif->LinkCustomAttributes = \"\";\n\t\t\t$this->poli_eksekutif->HrefValue = \"\";\n\n\t\t\t// status_kepesertaan_BPJS\n\t\t\t$this->status_kepesertaan_BPJS->LinkCustomAttributes = \"\";\n\t\t\t$this->status_kepesertaan_BPJS->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function getTableContent() {\n\t\treturn \"<tr data-key='\" . $this -> getKey() . \"'><td>\" . $this -> key . \"</td><td contenteditable='true'>\" . $this -> value . \"</td><td>\" . $this -> dataType . \"</td></tr>\";\n\t}", "public function renderInput(){\n $row = '';\n $row .= \"<input type=\\\"$this->type\\\" id=\\\"$this->id\\\" name=\\\"$this->name\\\" $this->required \";\n\n return $row;\n }", "function generateRowInput( $only_value, $key , $type, $name, $value = null, $size = null, $value_only = null, $maxlength = null, $attr = null, $id = null, $hide_value_only = false )\r\n\t{\t\t\r\n\t\tif( !$id )\r\n\t\t\t$id = $name;\r\n\t\r\n\t\t$input = '';\r\n\t\tif( $only_value ) // display only value and hide the element\r\n\t\t{\r\n\t\t\tif( $hide_value_only ) // hide this row if we want to\r\n\t\t\t\treturn '';\r\n\r\n\t\t\tif( empty( $value_only ) ) // display the real value\r\n\t\t\t\t$html = $value;\r\n\t\t\telse // display a corresponding text instead of the real value\r\n\t\t\t\t$html = $value_only;\r\n\t\t\t\r\n\t\t\t$input = $html.'<input type=\"hidden\" name=\"'.$name.'\" id=\"'.$id.'\" value=\"'.@$value.'\" />';\r\n\t\t}\r\n\t\telse // display the actual input element\r\n\t\t{\r\n\t\t\tif( !empty( $value ) )\r\n\t\t\t\t$value = ' value=\"'.$value.'\" ';\r\n\r\n\t\t\tif( !empty( $size ) )\r\n\t\t\t\t$size = ' size=\"'.$size.'\" ';\r\n\r\n\t\t\tif( !empty( $maxlength) )\r\n\t\t\t\t$size = ' maxlength=\"'.$maxlength.'\" ';\r\n\t\t\t\r\n\t\t\t\t$input = '<input type=\"'.$type.'\" name=\"'.$name.'\" id=\"'.$id.'\" '.$value.$attr.$size.$maxlength.' />';\r\n\t\t}\r\n\t\treturn $this->generateRowRaw( $key, $input );\r\n\t}", "public function modifyView() {\n $this->object = $this->object->readObject($this->id);\n $uiObjectName = $this->type.'_Ui';\n $uiObject = new $uiObjectName($this->object);\n $values = array_merge($this->object->valuesArray(), $this->values);\n return $uiObject->renderForm(array_merge(\n array('values'=>$values,\n 'action'=>url($this->type.'/modify', true),\n 'class'=>'formAdmin formAdminModify'),\n array('submit'=>array('save'=>__('save'),\n 'saveCheck'=>__('saveCheck')))));\n }", "public function edit_record()\n {\n \t$id = $this->uri->segment(4);\n $table = CMS_TABLE.' as u';\n\t\t$fields = array('u.*');\n\t\t$match = array('u.cms_id' => $id);\n\t\t$result \t = $this->general_model->get_records($table,$fields,'','',$match);\n\t\t$data['editRecord'] = $result;\n\t\t$data['main_content'] = $this->type.'/'.$this->viewname.'/add';\n\t $this->load->view($this->type.'/assets/template',$data);\n }", "function showroweditor($row, $iseditmode)\r\n{\r\n global $conn;\r\n global $categoryList;\r\n global $catId;\r\n global $unitId;\r\n \r\n if($catId==0){\r\n \t$catId = $row[\"cat_code\"];\r\n }\r\n $categoryList = buildCategoryOptions($catId);\r\n if($unitId==0){\r\n \t$unitId = $row[\"unit_code\"];\r\n }\r\n $unitList = buildUnitOptions($unitId);\r\n?>\r\n\t<table class=\"tbl\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" width=\"75%\">\r\n \t<tr> \r\n \t\t\t<td width=\"150\" class=\"hr\" align=\"left\">Category</td>\r\n \t\t\t\t<td align=\"left\"> \r\n \t<select name=\"cboCategory\" id=\"cboCategory\" class=\"box\">\r\n \t\t\t\t\t<option value=\"\" selected>-- Choose Category --</option>\r\n\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\techo $categoryList;\r\n\t\t\t\t\t\t?>\t \r\n \t\t\t\t</select>\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n \t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Part Number\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" class=\"uppercase\" name=\"part_code\" size=\"30\" maxlength=\"30\" value=\"<?php echo str_replace('\"', '&quot;', trim($row[\"part_code\"])) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Name\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" class=\"uppercase\" name=\"prod_name\" size=\"30\" maxlength=\"30\" value=\"<?php echo str_replace('\"', '&quot;', trim($row[\"prod_name\"])) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Short Name\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" class=\"uppercase\" name=\"prod_sname\" size=\"30\" maxlength=\"30\" value=\"<?php echo str_replace('\"', '&quot;', trim($row[\"prod_sname\"])) ?>\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Description\").\"&nbsp;\" ?></td>\r\n <td class=\"dr\" align=\"left\">\r\n <?php if($row[\"prod_description\"] !=\"\"){ ?>\r\n <textarea name=\"prod_description\" cols=\"45\" rows=\"5\"><?=$row[\"prod_description\"]?></textarea>\r\n <?php }else{ ?>\r\n <textarea name=\"prod_description\" cols=\"45\" rows=\"5\"></textarea>\r\n <?php } ?>\r\n <?php echo htmlspecialchars(\"(optional)\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr> \r\n \t\t\t<td width=\"150\" class=\"hr\" align=\"left\">Unit</td>\r\n \t\t\t\t<td align=\"left\"> \r\n \t<select name=\"cboUnit\" id=\"cboUnit\" class=\"box\">\r\n \t\t\t\t\t<option value=\"\" selected>-- Choose Unit --</option>\r\n\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\techo $unitList;\r\n\t\t\t\t\t\t?>\t \r\n \t\t\t\t</select>\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n \t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Opening Balance\").\"&nbsp;\" ?>\r\n </td>\r\n <?php if($row[\"prod_obal_qty\"] == \"0\" or $row[\"prod_obal_qty\"] == \"\"){ ?>\r\n \r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_obal_qty\" maxlength=\"10\" value=\"<?php echo $row[\"prod_obal_qty\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\">\r\n \r\n <?php }else{ ?>\r\n \t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_obal_qty\" maxlength=\"10\" value=\"<?php echo $row[\"prod_obal_qty\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\" readonly>\r\n <?php } ?>\r\n \t<?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n </tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Purchase Price\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_price\" maxlength=\"10\" value=\"<?php echo $row[\"prod_price\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Selling Price\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_price1\" maxlength=\"10\" value=\"<?php echo $row[\"prod_price1\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\">\r\n <?php echo htmlspecialchars(\"*\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n \r\n <tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Tax\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_tax\" maxlength=\"10\" value=\"<?php echo $row[\"prod_tax\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\">\r\n <?php echo htmlspecialchars(\"(optional)\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n\t\t<tr>\r\n\t\t\t<td class=\"hr\" align=\"left\"><?php echo htmlspecialchars(\"Product Discount\").\"&nbsp;\" ?></td>\r\n\t\t\t<td class=\"dr\" align=\"left\"><input type=\"text\" name=\"prod_discount\" maxlength=\"10\" value=\"<?php echo $row[\"prod_discount\"] ?>\" onKeyUp=\"this.value=this.value.replace(/[^\\d\\.*]+/g, '')\">\r\n <?php echo htmlspecialchars(\"(optional)\").\"&nbsp;\" ?>\r\n </td>\r\n\t\t</tr>\r\n\t</table>\r\n<?php \r\n}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->SetDbValueDef($rsnew, $this->Con_SIM->CurrentValue, NULL, $this->Con_SIM->ReadOnly);\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->SetDbValueDef($rsnew, $this->Observaciones->CurrentValue, NULL, $this->Observaciones->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}" ]
[ "0.7744282", "0.76404923", "0.7535198", "0.740563", "0.72201085", "0.69143075", "0.69141454", "0.6909055", "0.6802455", "0.6787738", "0.6735765", "0.6705344", "0.6703954", "0.6693788", "0.66781545", "0.6651749", "0.6622414", "0.6595472", "0.65935457", "0.658131", "0.65428925", "0.65411323", "0.65336746", "0.65174985", "0.65171474", "0.6505016", "0.6478511", "0.6469597", "0.6446511", "0.6442718", "0.64413476", "0.64299333", "0.6416982", "0.64087224", "0.64063126", "0.6405349", "0.6386624", "0.63658327", "0.6339786", "0.6332945", "0.630134", "0.6295726", "0.62956166", "0.627767", "0.6240506", "0.62396663", "0.62360585", "0.6235142", "0.6229689", "0.62206274", "0.62041324", "0.62025523", "0.62002766", "0.61953974", "0.6176754", "0.6170194", "0.61675787", "0.6161332", "0.6155378", "0.61551946", "0.6142562", "0.61271614", "0.6126042", "0.6125043", "0.6122521", "0.61059636", "0.6086", "0.60783005", "0.6076", "0.60730296", "0.60730296", "0.6066809", "0.60591394", "0.6058848", "0.60576266", "0.6049496", "0.60416734", "0.6027288", "0.6010676", "0.59994566", "0.5991046", "0.5979477", "0.5967899", "0.59675926", "0.5964904", "0.5963664", "0.5961459", "0.59609985", "0.5955415", "0.5952822", "0.5941071", "0.59406936", "0.59376776", "0.5926609", "0.5920195", "0.5914479", "0.591411", "0.5896744", "0.58967", "0.5888152" ]
0.7675142
1
Aggregate list row values
function AggregateListRowValues() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function aggregateListRowValues()\n\t{\n\t}", "public function aggregateListRowValues()\n\t{\n\t}", "function AggregateListRow() {\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRow() {\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregate(): void;", "protected function aggregate_multidimensional()\n {\n }", "function aggregateList($fileCSV, $options) {\n\n\t\t//check if the choosed option exists. if not, display the initial data file\n\t\tif( !optionExists('aggregate-list', $options) || !optionExists('aggregate-list-glue', $options) )\n\t\t\treturn $fileCSV;\n\n\t\t//get the column choosed\n\t\t$column = array_column($fileCSV, $options['aggregate-list']);\n\t\t//get the glue choosed\n\t\t$glue = $options['aggregate-list-glue'];\n\n\t\t$string = '';\n\n\t\t$list = array_reduce($column, function($string, $column) use ($glue) {\n\t\t\t$string .= $column . $glue;\n\t\t\treturn $string;\t\n\t\t});\n\n\t\t//remove last glue\n\t\t$list = rtrim($list, $glue);\n\n\t\t//print the output\n\t\twrite('Aggregated list is: '.$list);\n\t\texit;\n\t}", "public function calculateTotals()\n {\n $in = $this->_calculateTotalsIn();\n $out = $this->_calculateTotalsOut();\n $rating = $this->_calculateTotalsByRating();\n \n $result = array_merge($in, $out, $rating);\n $output = array();\n \n if (count($result)) {\n foreach ($result as $row) {\n $id = in_array($row['type'], array('MANUFACTURER', 'STOCK_STATUS', 'RATING')) ? '0' : $row['id'];\n $gid = strtolower(substr($row['type'], 0, 1)) . $id;\n if (!isset($output[$gid])) {\n $output[$gid] = array();\n }\n $output[$gid][$row['val']] = $row['c'];\n }\n }\n \n return $output;\n }", "function getListSums(&$conf,&$sql,&$content,&$tpl,&$DEBUG) {\n\t\t//echo __METHOD__.\":displayListScreen 0 $DEBUG\";\n\t\tif ($conf['list.']['sumFields']) {\n\t\t\t$table=$conf['table'];\n\t\t\t$sumFields = '';\n\t\t\t$sumSQLFields = '';\n\t\t\t$somme = 0;\n\t\t\t$sumFields = explode(',', $conf['list.']['sumFields']);\n\t\t\tforeach($sumFields as $fieldName) {\n\t\t\t\tif ($conf['list.']['sqlcalcfields.'][$fieldName]) {\n\t\t\t\t\t$calcField=$conf['list.']['sqlcalcfields.'][$fieldName]; // TO BE IMPROVED\n\t\t\t\t\tif ($calcField) {\n\t\t\t\t\t\tif (preg_match(\"/min\\(|max\\(|count\\(|sum\\(|avg\\(/i\",$calcField)) {\n\t\t\t\t\t\t\t// we test for group by functions\n\t\t\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",$calcField as 'sum_$fieldName'\":\"$calcField as 'sum_$fieldName'\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",sum($calcField) as 'sum_$fieldName'\":\"sum($calcField) as 'sum_$fieldName'\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$fieldAlias=$this->metafeeditlib->xeldAlias($table,$fieldName,$conf);\n\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",sum($fieldAlias) as 'sum_$fieldName'\":\"sum($fieldAlias) as 'sum_$fieldName'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sumSQLFields.=', count(*) as metafeeditnbelts';\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($sumSQLFields, $sql['fromTables'], '1 '.$sql['where']);\n\t\t\tif ($conf['debug.']['sql']) $this->metafeeditlib->debug('DisplayList Sum SQL ',$GLOBALS['TYPO3_DB']->SELECTquery($sumSQLFields.$sql['gbFields'], $sql['fromTables'], '1 '.$sql['where']),$DEBUG);\n\t\t\t//echo __METHOD__.\":displayListScreen 5 $DEBUG\";\n\t\t\t$resu=$GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\t\t//We handle here multiple group bys ...\n\t\t\t$value=array();\n\t\t\twhile($valueelt = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t\tforeach($valueelt as $key=>$val) {\n\t\t\t\t\t$value[$key]+=$val;\n\t\t\t\t\tif ($key=='metafeeditnbelts') break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach ($sumFields as $fieldName){\n\t\t\t\t// we handle a stdWrap on the Data..\n\t\t\t\t$std=$conf[$conf['cmdmode'].'.']['stdWrap.']?$conf[$conf['cmdmode'].'.']['stdWrap.']:$conf['stdWrap.'];\n\t\t\t\t$fa=t3lib_div::trimexplode('.',$fieldName);\n\t\t\t\t$sfn=array_pop($fa);\n\t\t\t\t//TODO handle whole relation ...\n\t\t\t\tif ($std[$sfn.'.'] || $std[$table.'.'][$sfn.'.'] ) {\n\t\t\t\t\tif ($std[$sfn.'.']) $stdConf = $std[$sfn.'.'];\n\t\t\t\t\tif ($std[$table.'.'][$sfn.'.']) $stdConf = $std[$table.'.'][$sfn.'.'];\n\t\t\t\t\t//$dataArr['EVAL_'.$_fN] = \n\t\t\t\t\t$value['sum_'.$fieldName]=$this->cObj->stdWrap($value['sum_'.$fieldName], $stdConf);\n\t\t\t\t}\n\t\t\t\t$this->markerArray[\"###SUM_FIELD_$fieldName###\"]= $value['sum_'.$fieldName];\n\t\t\t}\n\t\t\t$this->markerArray[\"###SUM_FIELD_metafeeditnbelts###\"]= $value['metafeeditnbelts'];\n\t\t\t$sumcontent=$this->cObj->stdWrap(trim($this->cObj->substituteMarkerArray($tpl['itemSumCode'], $this->markerArray)),$conf['list.']['sumWrap.']);\n\t\t\t$content=$this->cObj->substituteSubpart($content,'###SUM_FIELDS###',$sumcontent);\n\t\t} else {\n\t\t\t$this->markerArray[\"###SUM_FIELD_metafeeditnbelts###\"]=\"\";\n\t\t\t$sumcontent=$this->cObj->stdWrap(trim($this->cObj->substituteMarkerArray($tpl['itemSumCode'], $this->markerArray)),$conf['list.']['sumWrap.']);\n\t\t\t$content=$this->cObj->substituteSubpart($content,'###SUM_FIELDS###',$sumcontent);\n\t\t}\n\t}", "public function sum() : ColumnVector\n {\n return ColumnVector::quick(array_map('array_sum', $this->a));\n }", "public function getRowsAsArray(){\n $fieldNames=$this->getFieldNames();\n $result=[];\n if (!empty($this->valuesRows)){\n foreach($this->valuesRows as $valuesRow){\n $rowArr=[];\n foreach($fieldNames as $i=>$fieldName){\n if (isset($valuesRow[$i])){\n $rowArr[$fieldName]=$valuesRow[$i];\n }\n }\n $result[]=$rowArr;\n }\n }\n return $result;\n }", "public function getArrayRows()\n {\n $result = [];\n /** @var \\Magento\\Framework\\Data\\Form\\Element\\AbstractElement */\n $element = $this->getElement();\n $aValue = $element->getValue(); // get values\n if (is_array($aValue) === false) { // no array given? -> value from config.xml\n $aValue = json_decode($aValue, true); // convert string to array\n }\n if ($aValue && is_array($aValue)) {\n foreach ($aValue as $rowId => $row) {\n $rowColumnValues = [];\n foreach ($row as $key => $value) {\n $row[$key] = $value;\n $rowColumnValues[$this->_getCellInputElementId($rowId, $key)] = $row[$key]; // add value the row\n }\n $row['_id'] = $rowId;\n $row['column_values'] = $rowColumnValues;\n $result[$rowId] = new \\Magento\\Framework\\DataObject($row);\n $this->_prepareArrayRow($result[$rowId]);\n }\n }\n return $result;\n }", "public function somarValores()\n {\n return $this->bd->sum($this->tabela, \"valor\");\n }", "public function getAggregateMetricResults()\n {\n return $this->aggregate_metric_results;\n }", "private function group(array $rows)\n {\n // must be a 2d array with more than 2 columns\n if (empty($rows) || !is_array($rows[0]) || count($rows[0]) < 2) {\n return $rows;\n }\n\n $result = [];\n foreach ($rows as $row) {\n $value = array_slice($row, 1);\n $result[$row[0]][] = count($value) > 1 ? $value : $value[0];\n }\n\n foreach ($result as $key => $item) {\n $result[$key] = $this->group($item);\n }\n\n return $result;\n }", "function getCalculatedRows();", "public function getResult(){\n $data_list_array = $this->readFileAsArray();\n $num_arr = $this->fetchNumericLines($data_list_array);\n\n return $this->sortArray($this->calculateSumOfEachLine($num_arr));\n }", "public function provideTotal()\n {\n return [\n [[1, 2, 5, 8], 16],\n [[-1, 2, 5, 8], 14],\n [[1, 2, 8], 11]\n ];\n }", "public function sum() {\n\t\treturn array_sum($this->_value);\n\t}", "private static function combineValues(array $source, $column_char = '= :', $row_char = ',')\n {\n $result = [];\n foreach ($source as $row) {\n $result[] = '\"'.$row.'\"'.$column_char.$row;\n }\n return implode($row_char, $result);\n }", "public function getValues($row){\n $data = array();\n while( ($obj = oci_fetch_assoc($this->result)) != false ){\n $data[] = $obj[$row];\n }\n return $data;\n }", "abstract function calculate_series_list();", "public function aggregate($value) {\n return $this->setProperty('aggregate', $value);\n }", "public function aggregate($value) {\n return $this->setProperty('aggregate', $value);\n }", "public function createTotalsFromSums() {\n $subtotal = $this->ItemSubtotalSum;\n $this->data['Order']['subtotal'] = $subtotal;\n\n $tax = sprintf('%0.2f', $subtotal * $this->ShipmentTaxPercent * $this->Taxable);\n $this->data['Order']['tax'] = $tax;\n\n $this->data['Order']['total'] = $subtotal + $tax + $this->ShipmentSum;\n\n $this->data['Order']['order_item_count'] = $this->ItemCount;\n\n $this->data['Order']['weight'] = $this->ItemWeightSum;\n\n return array_intersect_key(\n $this->data['Order'],\n array(\n 'subtotal' => NULL,\n 'tax' => NULL,\n 'order_item_count' => NULL,\n 'weight' => NULL,\n 'total' => NULL,\n )\n );\n }", "public function getFormattedRows($rows) {\n $formatRows = array();\n $formatRow = array();\n foreach ($rows as $row) {\n foreach ($row as $key => $value) {\n if ($key == 'ts_created') {\n if ($value) {\n if (is_int($value)) {\n $value = $this->dtFormat($value, 'yyyy-MM-dd', 'U');\n }\n } else {\n $value = $this->dtFormat(time(), 'yyyy-MM-dd', 'U');\n }\n }\n if ($key == 'ts_published') {\n if ($value) {\n if (is_int($value)) {\n $value = $this->dtFormat($value, 'yyyy-MM-dd HH:mm:ss', 'U');\n }\n } else {\n $value = $this->dtFormat(time(), 'yyyy-MM-dd HH:mm:ss', 'U');\n }\n }\n $formatRow[$key] = $value;\n }\n $formatRows[] = $formatRow;\n $formatRow = array();\n }\n\n return $formatRows;\n }", "public function getSumColumn();", "private function aggregate($opinionz){\n $count = count($opinionz);\n\n if($count == 0) return $opinionz;\n\n $total = 0;\n\n foreach ($opinionz as $opinion) {\n $int_Votes = intval($opinion->getVotes());\n $votes = $int_Votes? $int_Votes : 0;\n $total += $votes;\n }\n\n foreach ($opinionz as $i => $opinion) {\n $opinionz[$i]->pct = $opinion->getVotes() / $total * 100;\n }\n return $opinionz;\n }", "public function simple_mean_group_sum()\n {\n $results = $this->db->select('count(sum) as \"quantity\", sum')->order_by('sum', 'DESC')->group_by('sum')->get('sorted')->result();\n\n $values = array('qtt' => 0, 'sum' => 0);\n $count = count($results);\n\n foreach ($results as $r) :\n $values['qtt'] += $r->quantity;\n $values['sum'] += $r->sum;\n endforeach;\n\n $values['qtt'] /= $count;\n $values['sum'] /= $count;\n\n return $values;\n }", "public function getValuesList() {\n return $this->_get(3);\n }", "public function sum()\n {\n return array_sum($this->data);\n }", "public function merge_validater_value_list($list)\n {\n foreach ($list as $k => $v) {\n $this->_validater_value_arr[$k] = $v;\n }\n }", "function genTotalRow(){\n\t\t//set our row to be the size of the first row, each cell set to 0\n\t\t$row = array();\n\t\t$row = array_pad($row, sizeof($this->table[0]), 0);\n\n\t\t//sum up the number of users per column\n\t\tforeach ($this->table as $rows) {\n\t\t\tforeach ($rows as $index => $cell) {\n\t\t\t\tif($cell == '&#x2713') \t{\n\t\t\t\t\t$row[$index]=$row[$index]+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$row[0] = 'Total';\n\t\treturn $row;\n\t}", "private function build_lines_aggregate_array(){\n\n\t\t$this->lines_aggregate_array = array();\n\t\tforeach($this->per_team_lines[0] as $key => $value){\n\t\t\t$line_play_type = null;\n\t\t\tif($key === 'women_doubles'){\n\t\t\t\t$line_play_type = 'wd';\n\t\t\t}\n\t\t\telse if($key === 'men_doubles'){\n\t\t\t\t$line_play_type = 'md';\n\t\t\t}\n\t\t\telse if($key === 'women_singles'){\n\t\t\t\t$line_play_type = 'ws';\n\t\t\t}\n\t\t\telse if($key === 'men_singles'){\n\t\t\t\t$line_play_type = 'ms';\n\t\t\t}\n\t\t\telse if($key === 'mixed_doubles'){\n\t\t\t\t$line_play_type = 'xd';\n\t\t\t}\n\t\t\telse if($key === 'mixed_singles'){\n\t\t\t\t$line_play_type = 'xs';\n\t\t\t}\n\t\t\tif($line_play_type !== null){\n\t\t\t\tarray_push($this->lines_aggregate_array, array(\n\t\t\t\t\t'line_play_type' => $line_play_type,\n\t\t\t\t\t'count' => $value\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\t}", "private function addDetailsInRows()\n\t{\n\t\tforeach ($this->data_show as &$row)\n\t\t\tforeach ($this->data as $row_original)\n\t\t\t{\n\t\t\t\t$is_group = true;\n\t\t\t\t\n\t\t\t\tforeach ($this->col_group as $key)\n\t\t\t\t\tif($row[$key] != $row_original[$key])\n\t\t\t\t\t\t$is_group = false;\n\t\t\t\t\n\t\t\t\tif($is_group)\n\t\t\t\t{\n\t\t\t\t\t// total amount\n\t\t\t\t\tif($this->col_aggr_sum)\n\t\t\t\t\t\t$row[$this->col_aggr_sum] += $row_original[$this->col_aggr_sum];\n\t\t\t\t\t\n\t\t\t\t\t// add details\n\t\t\t\t\t$row_tmp = array();\n\t\t\t\t\t\n\t\t\t\t\tforeach ($this->data[0] as $col => $val)\n\t\t\t\t\t\tif(!in_array($col, $this->col_show) || $col == $this->col_aggr_sum)\n\t\t\t\t\t\t\t$row_tmp[$col] = $row_original[$col];\n\t\t\t\t\t\n\t\t\t\t\t$row['details'][] = $row_tmp;\n\t\t\t\t}\n\t\t\t}\n\t}", "protected function computeAndValidateAllAggregateData(): array\n {\n $this->computeAndStoreDataIfNotExists('aggregateData');\n $this->computeAndStoreDataIfNotExists('metaAggregateData');\n\n return array_merge(\n $this->fetchData('aggregateData'),\n $this->fetchData('metaAggregateData')\n );\n }", "protected function _getValues()\n {\n $values = $this->getColumn()->getValues();\n return $this->_converter->toFlatArray($values);\n }", "public function getValuesList() {\n return $this->_get(2);\n }", "public function getSum()\n {\n return array_sum($this->values);\n }", "function LoadListRowValues(&$rs) {\n\t\t$this->rid->setDbValue($rs->fields('rid'));\n\t\t$this->usn->setDbValue($rs->fields('usn'));\n\t\t$this->name->setDbValue($rs->fields('name'));\n\t\t$this->sc1->setDbValue($rs->fields('sc1'));\n\t\t$this->s1->setDbValue($rs->fields('s1'));\n\t\t$this->sc2->setDbValue($rs->fields('sc2'));\n\t\t$this->s2->setDbValue($rs->fields('s2'));\n\t\t$this->sc3->setDbValue($rs->fields('sc3'));\n\t\t$this->s3->setDbValue($rs->fields('s3'));\n\t\t$this->sc4->setDbValue($rs->fields('sc4'));\n\t\t$this->s4->setDbValue($rs->fields('s4'));\n\t\t$this->sc5->setDbValue($rs->fields('sc5'));\n\t\t$this->s5->setDbValue($rs->fields('s5'));\n\t\t$this->sc6->setDbValue($rs->fields('sc6'));\n\t\t$this->s6->setDbValue($rs->fields('s6'));\n\t\t$this->sc7->setDbValue($rs->fields('sc7'));\n\t\t$this->s7->setDbValue($rs->fields('s7'));\n\t\t$this->sc8->setDbValue($rs->fields('sc8'));\n\t\t$this->s8->setDbValue($rs->fields('s8'));\n\t\t$this->total->setDbValue($rs->fields('total'));\n\t}", "function aggregateSum($fileCSV, $options) {\n\n\t\t//check if the choosed option exists. if not, display the initial data file\n\t\tif( !optionExists('aggregate-sum', $options) )\n\t\t\treturn $fileCSV;\n\n\t\t//get the column choosed\n\t\t$column = array_column($fileCSV, $options['aggregate-sum']);\n\n\t\t$sum = 0;\n\n\t\t$sum = array_reduce($column, function($sum, $column) {\n\t\t\t$sum += $column;\n\t\t\treturn $sum;\t\n\t\t});\n\n\t\t//print the output\n\t\twrite('Aggregated sum is: '.$sum);\n\t\texit;\n\t}", "abstract protected function _buildCalcRows();", "private function elementAggregateFilter(array $data)\n {\n $filterMethods = $this->getFilterMethods('aggregate');\n\n foreach ($filterMethods as $method => $nameKeyMethod) {\n $nameKeyMethod = $this->getPrefix().$nameKeyMethod;\n /** @var AggregateFilterImplement $filter */\n $filter = $this->{'aggregate'.$method}();\n if ($filter instanceof AggregateFilterImplement) {\n $filter->setPrefix($nameKeyMethod.AggregateHydratorImplement::SEPARATE);\n $data = $filter->allFilter($data);\n }\n }\n return $data;\n }", "function combinevalues($arr)\n{\n\t$ret=\"\";\n\tforeach($arr as $item)\n\t{\n\t\t$val = $item;\n\t\tif(strlen($ret))\n\t\t\t$ret.=\",\";\n\t\tif(strpos($val,\",\")===false && strpos($val,'\"')===false)\n\t\t\t$ret.=$val;\n\t\telse\n\t\t{\n\t\t\t$val=str_replace('\"','\"\"',$val);\n\t\t\t$ret.='\"'.$val.'\"';\n\t\t}\n\t}\n\treturn $ret;\n}", "function get_values ($resultset) {\n\t\t$data = array();\n\t\tfor ($i=0; $i<mysqli_num_rows($resultset); $i++) {\n\t\t\t$row = mysqli_fetch_assoc($resultset);\n\t\t\tarray_push($data,$row);\n\t\t}\n\t\treturn $data;\n\t}", "public function get_inter_state_total_fun($highestColumn_row, $i, $object) {\n $tax_inter_state = array();\n $data_arr1 = array();\n $highest_value_without_GT = $highestColumn_row; // got last value here for if\n\n $char = 'G';\n while ($char !== $highest_value_without_GT) {\n $values[] = $object->getActiveSheet()->getCell($char . $i)->getValue();\n $char++;\n }\n $cnt = count($values);\n\n//For getting the value for tax inter state \n $data_arr_inter = array();\n\n for ($a_dr = 0; $a_dr < $cnt; $a_dr++) {\n $Dr_values = $values[$a_dr];\n $data_arr_inter[] = $values[$a_dr];\n }\n $aa1 = array();\n for ($a_dr = 1; $a_dr < sizeof($values); $a_dr++) {\n\n if ($a_dr % 2 != 0) {\n\n $aa1[] = $values[$a_dr];\n }\n }\n// var_dump($aa1);\n\n $a1 = (sizeof($aa1));\n $a2 = $a1 % 1;\n $a3 = $a1 - $a2;\n for ($k = 0; $k < ($a3); $k = $k + 2) {\n $tax_inter_state[] = $aa1[$k] + $aa1[$k + 1];\n }\n// $cnt = count($values);\n\n for ($aa = 0; $aa < $cnt; $aa++) {\n// $data1 = $values[$aa];\n $data_arr1[] = $values[$aa];\n $aa = ($aa * 1 + 3);\n }\n// return $tax_inter_state;\n return array($data_arr1, $tax_inter_state);\n }", "public function aggregateType();", "public function addColumnValue($arr, $value){\n\n $arrKey = array();\n\n for($i = 0; $i < count($arr); $i++){\n array_push($arrKey,array($arr[$i], $arr[$i] -> getCantidad() * $value));\n }\n\n return $arrKey;\n }", "public function getAllValues();", "public function getAggregations();", "function calculateAll(){\n try{\n $sum = 0;\n foreach($this->content as $inventary){\n foreach($inventary as $key=>$item){\n $sum1 = 0;\n foreach($item as $value)\n $sum1=$sum1+$value->weight*$value->price;\n echo \"value of \".$key.\" = \".$sum1.\"\\n\";\n }\n $sum = $sum + $sum1;\n }\n \n echo \"value of all inventary=\".$sum.\"\\n\";\n } catch (Exception $e) {\n echo $e;\n }\n }", "public function aggregate($data): void\n {\n $totalOfProduct = 0;\n\n foreach ($data as $numberOfProduct) {\n\n if (empty($this->label)) {\n $this->label = $numberOfProduct['label'];\n }\n\n $totalOfProduct += $numberOfProduct['answer'];\n }\n\n $average = $totalOfProduct / count($data);\n\n $this->answers = round($average);\n }", "public function csvData()\n\t{\n\t\t$data = array();\n\t\tforeach ($this->data as $index => $row) {\n\t\t\tforeach ($this->Columns as $field => $Column) {\n\t\t\t\t$data[$index][] = $Column->value($row);\n\t\t\t}\n\t\t}\n\t\treturn $data;\n\t}", "function LoadListRowValues(&$rs) {\n\t\t$this->gjd_id->setDbValue($rs->fields('gjd_id'));\n\t\t$this->gjm_id->setDbValue($rs->fields('gjm_id'));\n\t\t$this->peg_id->setDbValue($rs->fields('peg_id'));\n\t\t$this->b_mn->setDbValue($rs->fields('b_mn'));\n\t\t$this->b_sn->setDbValue($rs->fields('b_sn'));\n\t\t$this->b_sl->setDbValue($rs->fields('b_sl'));\n\t\t$this->b_rb->setDbValue($rs->fields('b_rb'));\n\t\t$this->b_km->setDbValue($rs->fields('b_km'));\n\t\t$this->b_jm->setDbValue($rs->fields('b_jm'));\n\t\t$this->b_sb->setDbValue($rs->fields('b_sb'));\n\t\t$this->l_mn->setDbValue($rs->fields('l_mn'));\n\t\t$this->l_sn->setDbValue($rs->fields('l_sn'));\n\t\t$this->l_sl->setDbValue($rs->fields('l_sl'));\n\t\t$this->l_rb->setDbValue($rs->fields('l_rb'));\n\t\t$this->l_km->setDbValue($rs->fields('l_km'));\n\t\t$this->l_jm->setDbValue($rs->fields('l_jm'));\n\t\t$this->l_sb->setDbValue($rs->fields('l_sb'));\n\t}", "public function getValues()\n {\n $values = array();\n\n foreach ($this->items as $item) {\n $values[] = $item['value'];\n }\n\n return $values;\n }", "public function getRows()\n {\n if (is_null($this->summaryRow)) {\n return $this->rows;\n } else {\n return $this->rows + array(self::ID_SUMMARY_ROW => $this->summaryRow);\n }\n }", "public function getValuesList(){\n return $this->_get(1);\n }", "abstract public function values(): Seq;", "protected function getValues($item){\n\t\tfor ($i=0; $i < $this->tableModel->getColumnCount(); $i++){\n\t\t\t$values[]= $this->tableModel->getValue($item, $i) ;\n\t\t}\n\t \treturn $values;\t\n\t}", "protected function buildSQLValuesFrom(array $rows): string\n {\n $values = collect($rows)->reduce(function ($valuesString, $row) {\n return $valuesString .= '(' . rtrim(str_repeat(\"?,\", count($row)), ',') . '),';\n }, '');\n\n return rtrim($values, ',');\n }", "public function adicionarRepetidos($list){\n\n /*echo('<pre>');\n var_dump($list);\n echo('</pre>');*/\n\n for($i = 0; $i < count($list); $i++){\n for($j = $i+1; $j < count($list); $j++){\n if($list[$i][0] -> getIngrediente() == $list[$j][0] -> getIngrediente()){\n $list[$i][1] += $list[$j][1];\n array_splice($list, $j,1);\n }\n }\n }\n return $list;\n }", "public function getTotalValue(): ?array\n {\n if ($this->getTotalValueAmount()) {\n return [\n 'amount' => $this->getTotalValueAmount(),\n 'currency' => $this->getTotalValueCurrency(),\n ];\n }\n\n $totalItemValue = 0;\n $totalItemCurrency = '';\n\n foreach ($this->getItems() as $item) {\n if ($item->getItemValueAmount()) {\n $totalItemValue += $item->getItemValueAmount() * $item->getQuantity();\n $totalItemCurrency = $item->getItemValueCurrency();\n }\n }\n\n if ($totalItemValue) {\n return [\n 'amount' => $totalItemValue,\n 'currency' => $totalItemCurrency,\n ];\n }\n\n return null;\n }", "public function processResults(array $data)\n {\n $key = $this->key;\n $results = array();\n foreach ($data as &$row) {\n $rowData = $row[ $this->fieldName ];\n if ($key && isset($row[ $key ])) {\n $results[ $row[ $key ] ] = $rowData;\n } else {\n $results[] = $rowData;\n }\n }\n\n return $results;\n }", "public function GetAggregates(){\n $this->current();\n return $this->aggs;\n }", "function getValues(){\n $values = [];\n \n foreach($this as $valor){\n $values[] = $valor;\n }\n \n return $values;\n }", "private function parseMultipleValues($labelRow)\n {\n return $this->parseMultiselectValues(\n $labelRow,\n $this->getMultipleValueSeparator()\n );\n }", "public function getValuesRows($includeEmptyFields=false){\n if (!$includeEmptyFields){\n return $this->valuesRows;\n }else{\n $result=[];\n if (!empty($this->valuesRows)){\n foreach ($this->valuesRows as $valuesRowId=>$valuesRow){\n $rowResult=[];\n if (!empty($this->dbFields)){\n foreach ($this->dbFields as $dbField){\n $rowResult[$dbField->id]=(!empty($valuesRow[$dbField->id])?$valuesRow[$dbField->id]:'');\n }\n }\n $result[$valuesRowId]=$rowResult;\n }\n }\n return $result;\n }\n }", "function appendAllListOfValuesToItem(&$item) {\n $iter = $item->getMetadataIterator();\n $this->appendAllListOfValues($iter);\n }", "public function getResult():array {\n\n # Return value\n return $this->values;\n\n }", "private function set_response_rows($result) { \n $rows = [];\n foreach ($result as $r) {\n $cell = [];\n foreach ($r as $column => $value) {\n $cell[] = call_user_func($this->format, $column, $value, $r);\n }\n\n $rows[] = [\n 'id' => $r->id,\n 'cell' => $cell\n ];\n }\n return $rows;\n }", "public function getValues();", "public function accumulate(array $tuple);", "abstract public function transform(Row $row);", "public function getArrayRows()\r\n {\r\n if (null !== $this->_arrayRowsCache) {\r\n return $this->_arrayRowsCache;\r\n }\r\n $result = [];\r\n $temp = []; // save item position\r\n /** @var \\Magento\\Framework\\Data\\Form\\Element\\AbstractElement */\r\n $element = $this->getElement();\r\n $value = $element->getValue();\r\n if(is_array($value)){\r\n unset($value['__empty']);\r\n }\r\n if(!is_array($value)){\r\n if(base64_decode($value, true) == true){\r\n $value = base64_decode($value);\r\n if(base64_decode($value, true) == true) {\r\n $value = base64_decode($value);\r\n }\r\n }\r\n $value = unserialize($value);\r\n }\r\n if ( $value && is_array($value) ) {\r\n foreach ($value as $rowId => $row) {\r\n if(is_array($row)){\r\n $rowColumnValues = [];\r\n foreach ($row as $key => $row_value) {\r\n $row[$key] = $this->escapeHtml($row_value);\r\n if($key == 'position'){\r\n $row[$key] = (int)$row['position'];\r\n }\r\n $row[$key] = htmlspecialchars_decode($row_value);\r\n $rowColumnValues[$this->_getCellInputElementId($rowId, $key)] = $row[$key];\r\n }\r\n if(isset($row['position'])){\r\n $temp[$rowId] = $row['position'];\r\n }\r\n $row['_id'] = $rowId;\r\n $row['column_values'] = $rowColumnValues;\r\n $result[$rowId] = new \\Magento\\Framework\\DataObject($row);\r\n $this->_prepareArrayRow($result[$rowId]);\r\n }\r\n }\r\n }\r\n asort($temp);\r\n $rows = [];\r\n foreach ($temp as $k => $v) {\r\n $rows[$k] = $result[$k];\r\n }\r\n $this->_arrayRowsCache = $rows;\r\n return $this->_arrayRowsCache;\r\n }", "private function sql_resToRows( $res )\n {\n $rows = array();\n\n // Get the field label of the uid\n $uidField = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n\n // LOOP build the rows\n while ( $row = $GLOBALS[ 'TYPO3_DB' ]->sql_fetch_assoc( $res ) )\n {\n//var_dump( __METHOD__, __LINE__, $row, $uidField );\n $rows[ ( string ) $row[ $uidField ] ] = $row;\n }\n // LOOP build the rows\n // Free SQL result\n // #42302, dwildt, 1-\n //$GLOBALS['TYPO3_DB']->sql_free_result( $this->res );\n // #42302, dwildt, 1+\n $GLOBALS[ 'TYPO3_DB' ]->sql_free_result( $res );\n\n // RETURN rows\n return $rows;\n }", "public static function fromResultSetList( $res ) {\n $entityList = array();\n $i=0;\n //while ( ($row = $res->fetch_array(MYSQLI_BOTH)) != NULL ) {\n foreach ( $res as $row)\n {\n //We get all the values an add into the array\n $entity = ApplicationADO::fromResultSet( $row );\n\n $entityList[$i]= $entity;\n $i++;\n }\n return $entityList;\n }", "function sumMaterialPerGroup($summary)\n {\n // var_dump($summary);\n // die;\n\n $data = [\n 'total_rm' => 0,\n 'total_elc' => 0,\n 'total_pnu' => 0,\n 'total_hyd' => 0,\n 'total_mch' => 0,\n 'total_sub' => 0,\n 'total_import' => 0,\n 'total_onsite' => 0,\n ];\n foreach ($summary as $key => $item) {\n $data['total_rm'] += ($item['total_rm'] * $item['qty']);\n $data['total_elc'] += ($item['total_elc'] * $item['qty']);\n $data['total_pnu'] += ($item['total_pnu'] * $item['qty']);\n $data['total_hyd'] += ($item['total_hyd'] * $item['qty']);\n $data['total_mch'] += ($item['total_mch'] * $item['qty']);\n $data['total_sub'] += ($item['total_sub'] * $item['qty']);\n $data['total_import'] += ($item['total_import'] * $item['qty']);\n $data['total_onsite'] += ($item['total_onsite'] * $item['qty']);\n }\n return $data;\n }", "function util_getColumnsValues( $arrReq, $arrList )\n{\n\t/*\n\t$list[\"primarycolumns\"] = array(); $list[\"primaryvalues\"] = array();\n\tif(is_array($arrList[\"primary\"]))\n\t{ \n\t\tforeach( $arrList[\"primary\"] as $value )\n\t\t{\n\t\t\t$list[\"primarycolumns\"][] = $value;\n\t\t\t$list[\"primaryvalues\"][] = $arrReq[$value];\n\t\t}\n\t}\n\t*/\n\tforeach( $arrReq as $key => $value )\n\t{\n\t\tif(isset($arrList[$key]))\n\t\t{\n\t\t\t$list[\"columns\"][] = $arrList[$key];\n\t\t\t$list[\"values\"][] = $value;\n\t\t}\n\t}\n\t\n\treturn $list;\n}", "public function totalValue($jobs)\n {\n $totals = '';\n $currencies = Currency::get();\n foreach ($currencies as $currency) {\n $currencyAmount = 0;\n foreach ($jobs as $job) {\n if ($job->currency_id == $currency->id) {\n $currencyAmount += $job->amount;\n }\n }\n $values[$currency->symbol] = $currencyAmount;\n }\n foreach ($values as $symbol => $amount) {\n if ($amount > 0) $totals .= $symbol . $amount . ', ';\n }\n\n return trim($totals, ', ');\n }", "public function getEntries() {\n $returnList = [];\n $entries = $this->app->dbConn->table(static::$TABLE)\n ->where(['user_id' => $this->user_id])\n ->order('time DESC')\n ->query();\n $entryCount = $this->entryAvg = $this->entryStdDev = $entrySum = 0;\n $entryType = static::$LIST_TYPE.\"Entry\";\n while ($entry = $entries->fetch()) {\n $entry['list'] = $this;\n $currEntry = new $entryType($this->app, intval($entry['id']));\n $returnList[intval($entry['id'])] = $currEntry->set($entry);\n $entrySum += round(floatval($entry['score']), 2);\n $entryCount++;\n }\n $this->entryAvg = ($entryCount === 0) ? 0 : $entrySum / $entryCount;\n $entrySum = 0;\n if ($entryCount > 1) {\n foreach ($returnList as $entry) {\n $entrySum += pow(round(floatval($entry->score), 2) - $this->entryAvg, 2);\n }\n $this->entryStdDev = pow($entrySum / ($entryCount - 1), 0.5);\n }\n return $returnList;\n }", "function groupByKey($arr, $key){\n\t$groupeItmes = array();\n\tforeach ( $arr as $row ) {\n\t\t$groupeItmes[$row[$key]][] = $row;\n\t}\n\n\t$finalData = array();\n\tforeach ( $groupeItmes as $row ) {\n\t\t$finalData[] = array($key => $row[0][$key], 'items' => $row );\n\t}\n\n\tusort($finalData, sortByOrder($key));\n\n\treturn $finalData;\n}", "protected function processDataRow($row)\n {\n $item = array();\n foreach($this->record as $name => $params)\n {\n if (isset($params['default'])) $default = $params['default'];\n else $default = null;\n $item[$name] = $default; // Even if not found, item will get an entry\n }\n foreach($row as $index => $value)\n {\n if (isset($this->map[$index]))\n {\n $name = $this->map[$index];\n $item[$name] = trim($value); // If found always get something not null\n }\n }\n return $item;\n }", "public function loadListRowValues(&$rs)\n\t{\n\t\t$this->IncomeCode->setDbValue($rs->fields('IncomeCode'));\n\t\t$this->IncomeName->setDbValue($rs->fields('IncomeName'));\n\t\t$this->IncomeDescription->setDbValue($rs->fields('IncomeDescription'));\n\t\t$this->Division->setDbValue($rs->fields('Division'));\n\t\t$this->IncomeAmount->setDbValue($rs->fields('IncomeAmount'));\n\t\t$this->IncomeBasicRate->setDbValue($rs->fields('IncomeBasicRate'));\n\t\t$this->BaseIncomeCode->setDbValue($rs->fields('BaseIncomeCode'));\n\t\t$this->Taxable->setDbValue($rs->fields('Taxable'));\n\t\t$this->AccountNo->setDbValue($rs->fields('AccountNo'));\n\t\t$this->JobIncluded->setDbValue($rs->fields('JobIncluded'));\n\t\t$this->Application->setDbValue($rs->fields('Application'));\n\t\t$this->JobExcluded->setDbValue($rs->fields('JobExcluded'));\n\t}", "public function mapToRow()\n {\n $rowData = [];\n\n $refPropertyList = static::_getReflectionPropertyList();\n $reader = static::_getAnnotationReader();\n foreach ($refPropertyList as $property) {\n /* @var $annotation \\Pley\\DataMap\\Annotations\\Meta\\Property */\n $annotation = $reader->getPropertyAnnotation($property, \\Pley\\DataMap\\Annotations\\Meta\\Property::class);\n if ($annotation && $annotation->getColumnName()) {\n $rowData[$annotation->getColumnName()] = $this->{$property->getName()};\n }\n }\n\n return $rowData;\n }", "public function add_list_to_table($list){\n\t\t$query = \"SELECT $this->column_name FROM \" . $this->table;\n\t\t$list = commas_to_array($list);\n\t\t$just_added = array();\n\t\tif($old_list = Database::get_results_as_numerical_array($query, $this->column_name)){\n\t\t\t//var_dump($old_list); echo \"<br>\";\n\t\t\t\n\t\t\tforeach($list as $list_item){\n\t\t\t\t\n\t\t\t\tif(!in_array($list_item, $old_list) &&\n\t\t\t\t !in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{ //if there is nothing in the organizations table\n\t\t\tforeach($list as $list_item){\n\t\t\t\tif(!in_array($list_item, $just_added)){\n\t\t\t\t\t$this->add_to_table($list_item);\n\t\t\t\t\t$just_added[] = $list_item;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}", "function sum_records_per_field_grouped_by_account($entries_records, $field_name)\n{\n\n $reports = [];\n\n foreach ($entries_records as $entry => $records) {\n\n $entry_loaded = node_load($entry);\n $entry_loaded_wrapper = entity_metadata_wrapper('node', $entry_loaded);\n\n // Getting the name of the indication or the product.\n $account = $entry_loaded_wrapper->field_account->value();\n\n $indication_or_product = $entry_loaded_wrapper->{$field_name}->value();\n if (isset($indication_or_product->name)) {\n $name = $indication_or_product->name;\n } else {\n $name = $indication_or_product[0]->name;\n }\n if (isset($account->title)) {\n $account_name = $account->title;\n } else {\n $account_name = $account[0]->title;\n }\n // If the indication is not init yet so create new array of monthes for it.\n if (!isset($reports[$account_name])) {\n $reports[$account_name] = [];\n $reports[$account_name][\"consumptions\"] = [];\n $reports[$account_name][\"stocks\"] = [];\n }\n if (!isset($reports[$account_name][\"consumptions\"][$name])) {\n $reports[$account_name][\"consumptions\"][$name] = [];\n $months = [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December',\n ];\n foreach ($months as $month) {\n $reports[$account_name][\"consumptions\"][$name][$month] = [0];\n $reports[$account_name][\"stocks\"][$name][$month] = [0];\n }\n }\n // accounts:{products:{consumption:{months:[value]}}}.\n $records_loaded = entity_load(\"entry_month_record\", $records);\n\n foreach ($records_loaded as $id => $record) {\n $record_loaded_wrapper = entity_metadata_wrapper('entry_month_record', $record);\n $timestamp = $record_loaded_wrapper->field_entry_date->value();\n $date = getdate($timestamp);\n $month = $date['month'];\n $reports[$account_name][\"stocks\"][$name][$month][0] += $record_loaded_wrapper->field_stocks->value();\n $reports[$account_name][\"consumptions\"][$name][$month][0] += $record_loaded_wrapper->field_consumption->value();\n }\n }\n\n return $reports;\n}", "public static function sum(...$filter): array\n {\n self::collect();\n $return = [];\n\n $toAvg = [\n 'frequency'\n ];\n\n foreach (self::$content as $id => $entry) {\n foreach ($entry as $name => $value) {\n if ($filter && !in_array($name, $filter)) continue;\n\n if (isset($return[$name]) && !in_array($name, $toAvg)) continue;\n\n if (isset($return[$name]) && is_numeric($value))\n $return[$name] += $value;\n\n if (!isset($return[$name]))\n $return[$name] = $value;\n }\n }\n foreach ($return as $name => $value) {\n if (is_numeric($value) && in_array($name, $toAvg))\n $return[$name] = $value / count(self::$content);\n }\n return $return;\n }", "protected function getResult(Collection $rows)\n {\n $required = ['ecl', 'pid', 'eyr', 'hcl', 'byr', 'iyr', 'hgt'];\n\n return $rows->filter(function ($row) use ($required) {\n return $row->has($required);\n })->count();\n }", "public function toArray()\n {\n return ['rows' => $this->rows] + parent::toArray();\n }", "private function queryFetchAsValues(mysqli_result $result)\n\t{\n\t\t$column = $result->field_count - 1;\n\t\t$values = [];\n\t\twhile ($element = $result->fetch_row()) {\n\t\t\tif (isset($element['id'])) {\n\t\t\t\t$values[$element['id']] = $element[$column];\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$values[] = $element[$column];\n\t\t\t}\n\t\t}\n\t\treturn $values;\n\t}", "public function values();", "public function values();", "public function values();" ]
[ "0.81442964", "0.81442964", "0.75692886", "0.58644605", "0.58644605", "0.5362531", "0.5362531", "0.5362531", "0.53451693", "0.52581996", "0.5223236", "0.5152455", "0.5091838", "0.5037954", "0.501881", "0.49819466", "0.48741055", "0.48492017", "0.48490816", "0.48487493", "0.48072323", "0.4768288", "0.47499025", "0.47366756", "0.47225842", "0.47048545", "0.47023937", "0.47023937", "0.4701781", "0.4682461", "0.4677522", "0.46525544", "0.4648644", "0.46477747", "0.46472123", "0.4642117", "0.46354964", "0.4616944", "0.4616625", "0.46117076", "0.46086198", "0.46082625", "0.4587984", "0.45762128", "0.45608076", "0.4551642", "0.45426947", "0.45172587", "0.45140868", "0.45040575", "0.45020527", "0.45001996", "0.44989747", "0.44822538", "0.44799075", "0.44777095", "0.44577926", "0.44541734", "0.44534585", "0.44526753", "0.44464386", "0.4440744", "0.4432043", "0.44318515", "0.442599", "0.44252488", "0.44119605", "0.441015", "0.4407204", "0.44028294", "0.44023916", "0.43940976", "0.43812445", "0.4380321", "0.43792742", "0.43769637", "0.4375739", "0.43728164", "0.4372426", "0.43720564", "0.43704355", "0.43677855", "0.43509972", "0.43494043", "0.43404827", "0.43399364", "0.43387234", "0.43344992", "0.43301672", "0.43283698", "0.4327022", "0.43224773", "0.43203348", "0.43189138", "0.43172306", "0.43172306", "0.43172306" ]
0.84983975
3
Aggregate list row (for rendering)
function AggregateListRow() { // Call Row Rendered event $this->Row_Rendered(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function AggregateListRow() {\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function aggregateListRow()\n\t{\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "function AggregateListRowValues() {\n\t}", "public function aggregateListRowValues()\n\t{\n\t}", "public function aggregateListRowValues()\n\t{\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t// Common render codes\n\t\t// rid\n\t\t// usn\n\t\t// name\n\t\t// sc1\n\t\t// s1\n\t\t// sc2\n\t\t// s2\n\t\t// sc3\n\t\t// s3\n\t\t// sc4\n\t\t// s4\n\t\t// sc5\n\t\t// s5\n\t\t// sc6\n\t\t// s6\n\t\t// sc7\n\t\t// s7\n\t\t// sc8\n\t\t// s8\n\t\t// total\n\t\t// rid\n\n\t\t$this->rid->ViewValue = $this->rid->CurrentValue;\n\t\t$this->rid->ViewCustomAttributes = \"\";\n\n\t\t// usn\n\t\t$this->usn->ViewValue = $this->usn->CurrentValue;\n\t\t$this->usn->ViewCustomAttributes = \"\";\n\n\t\t// name\n\t\t$this->name->ViewValue = $this->name->CurrentValue;\n\t\t$this->name->ViewCustomAttributes = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->ViewValue = $this->sc1->CurrentValue;\n\t\t$this->sc1->ViewCustomAttributes = \"\";\n\n\t\t// s1\n\t\t$this->s1->ViewValue = $this->s1->CurrentValue;\n\t\t$this->s1->ViewCustomAttributes = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->ViewValue = $this->sc2->CurrentValue;\n\t\t$this->sc2->ViewCustomAttributes = \"\";\n\n\t\t// s2\n\t\t$this->s2->ViewValue = $this->s2->CurrentValue;\n\t\t$this->s2->ViewCustomAttributes = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->ViewValue = $this->sc3->CurrentValue;\n\t\t$this->sc3->ViewCustomAttributes = \"\";\n\n\t\t// s3\n\t\t$this->s3->ViewValue = $this->s3->CurrentValue;\n\t\t$this->s3->ViewCustomAttributes = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->ViewValue = $this->sc4->CurrentValue;\n\t\t$this->sc4->ViewCustomAttributes = \"\";\n\n\t\t// s4\n\t\t$this->s4->ViewValue = $this->s4->CurrentValue;\n\t\t$this->s4->ViewCustomAttributes = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->ViewValue = $this->sc5->CurrentValue;\n\t\t$this->sc5->ViewCustomAttributes = \"\";\n\n\t\t// s5\n\t\t$this->s5->ViewValue = $this->s5->CurrentValue;\n\t\t$this->s5->ViewCustomAttributes = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->ViewValue = $this->sc6->CurrentValue;\n\t\t$this->sc6->ViewCustomAttributes = \"\";\n\n\t\t// s6\n\t\t$this->s6->ViewValue = $this->s6->CurrentValue;\n\t\t$this->s6->ViewCustomAttributes = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->ViewValue = $this->sc7->CurrentValue;\n\t\t$this->sc7->ViewCustomAttributes = \"\";\n\n\t\t// s7\n\t\t$this->s7->ViewValue = $this->s7->CurrentValue;\n\t\t$this->s7->ViewCustomAttributes = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->ViewValue = $this->sc8->CurrentValue;\n\t\t$this->sc8->ViewCustomAttributes = \"\";\n\n\t\t// s8\n\t\t$this->s8->ViewValue = $this->s8->CurrentValue;\n\t\t$this->s8->ViewCustomAttributes = \"\";\n\n\t\t// total\n\t\t$this->total->ViewValue = $this->total->CurrentValue;\n\t\t$this->total->ViewCustomAttributes = \"\";\n\n\t\t// rid\n\t\t$this->rid->LinkCustomAttributes = \"\";\n\t\t$this->rid->HrefValue = \"\";\n\t\t$this->rid->TooltipValue = \"\";\n\n\t\t// usn\n\t\t$this->usn->LinkCustomAttributes = \"\";\n\t\t$this->usn->HrefValue = \"\";\n\t\t$this->usn->TooltipValue = \"\";\n\n\t\t// name\n\t\t$this->name->LinkCustomAttributes = \"\";\n\t\t$this->name->HrefValue = \"\";\n\t\t$this->name->TooltipValue = \"\";\n\n\t\t// sc1\n\t\t$this->sc1->LinkCustomAttributes = \"\";\n\t\t$this->sc1->HrefValue = \"\";\n\t\t$this->sc1->TooltipValue = \"\";\n\n\t\t// s1\n\t\t$this->s1->LinkCustomAttributes = \"\";\n\t\t$this->s1->HrefValue = \"\";\n\t\t$this->s1->TooltipValue = \"\";\n\n\t\t// sc2\n\t\t$this->sc2->LinkCustomAttributes = \"\";\n\t\t$this->sc2->HrefValue = \"\";\n\t\t$this->sc2->TooltipValue = \"\";\n\n\t\t// s2\n\t\t$this->s2->LinkCustomAttributes = \"\";\n\t\t$this->s2->HrefValue = \"\";\n\t\t$this->s2->TooltipValue = \"\";\n\n\t\t// sc3\n\t\t$this->sc3->LinkCustomAttributes = \"\";\n\t\t$this->sc3->HrefValue = \"\";\n\t\t$this->sc3->TooltipValue = \"\";\n\n\t\t// s3\n\t\t$this->s3->LinkCustomAttributes = \"\";\n\t\t$this->s3->HrefValue = \"\";\n\t\t$this->s3->TooltipValue = \"\";\n\n\t\t// sc4\n\t\t$this->sc4->LinkCustomAttributes = \"\";\n\t\t$this->sc4->HrefValue = \"\";\n\t\t$this->sc4->TooltipValue = \"\";\n\n\t\t// s4\n\t\t$this->s4->LinkCustomAttributes = \"\";\n\t\t$this->s4->HrefValue = \"\";\n\t\t$this->s4->TooltipValue = \"\";\n\n\t\t// sc5\n\t\t$this->sc5->LinkCustomAttributes = \"\";\n\t\t$this->sc5->HrefValue = \"\";\n\t\t$this->sc5->TooltipValue = \"\";\n\n\t\t// s5\n\t\t$this->s5->LinkCustomAttributes = \"\";\n\t\t$this->s5->HrefValue = \"\";\n\t\t$this->s5->TooltipValue = \"\";\n\n\t\t// sc6\n\t\t$this->sc6->LinkCustomAttributes = \"\";\n\t\t$this->sc6->HrefValue = \"\";\n\t\t$this->sc6->TooltipValue = \"\";\n\n\t\t// s6\n\t\t$this->s6->LinkCustomAttributes = \"\";\n\t\t$this->s6->HrefValue = \"\";\n\t\t$this->s6->TooltipValue = \"\";\n\n\t\t// sc7\n\t\t$this->sc7->LinkCustomAttributes = \"\";\n\t\t$this->sc7->HrefValue = \"\";\n\t\t$this->sc7->TooltipValue = \"\";\n\n\t\t// s7\n\t\t$this->s7->LinkCustomAttributes = \"\";\n\t\t$this->s7->HrefValue = \"\";\n\t\t$this->s7->TooltipValue = \"\";\n\n\t\t// sc8\n\t\t$this->sc8->LinkCustomAttributes = \"\";\n\t\t$this->sc8->HrefValue = \"\";\n\t\t$this->sc8->TooltipValue = \"\";\n\n\t\t// s8\n\t\t$this->s8->LinkCustomAttributes = \"\";\n\t\t$this->s8->HrefValue = \"\";\n\t\t$this->s8->TooltipValue = \"\";\n\n\t\t// total\n\t\t$this->total->LinkCustomAttributes = \"\";\n\t\t$this->total->HrefValue = \"\";\n\t\t$this->total->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->CustomTemplateFieldValues();\n\t}", "public function renderListRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes\n\t\t// id\n\t\t// fecha\n\t\t// hora\n\t\t// audio\n\t\t// st\n\t\t// fechaHoraIni\n\t\t// fechaHoraFin\n\t\t// telefono\n\t\t// agente\n\t\t// fechabo\n\t\t// agentebo\n\t\t// comentariosbo\n\t\t// IP\n\t\t// actual\n\t\t// completado\n\t\t// 2_1_R\n\t\t// 2_2_R\n\t\t// 2_3_R\n\t\t// 3_4_R\n\t\t// 4_5_R\n\t\t// 4_6_R\n\t\t// 4_7_R\n\t\t// 4_8_R\n\t\t// 5_9_R\n\t\t// 5_10_R\n\t\t// 5_11_R\n\t\t// 5_12_R\n\t\t// 5_13_R\n\t\t// 5_14_R\n\t\t// 5_51_R\n\t\t// 6_15_R\n\t\t// 6_16_R\n\t\t// 6_17_R\n\t\t// 6_18_R\n\t\t// 6_19_R\n\t\t// 6_20_R\n\t\t// 6_52_R\n\t\t// 7_21_R\n\t\t// 8_22_R\n\t\t// 8_23_R\n\t\t// 8_24_R\n\t\t// 8_25_R\n\t\t// 9_26_R\n\t\t// 9_27_R\n\t\t// 9_28_R\n\t\t// 9_29_R\n\t\t// 9_30_R\n\t\t// 9_31_R\n\t\t// 9_32_R\n\t\t// 9_33_R\n\t\t// 9_34_R\n\t\t// 9_35_R\n\t\t// 9_36_R\n\t\t// 9_37_R\n\t\t// 9_38_R\n\t\t// 9_39_R\n\t\t// 10_40_R\n\t\t// 10_41_R\n\t\t// 11_42_R\n\t\t// 11_43_R\n\t\t// 12_44_R\n\t\t// 12_45_R\n\t\t// 12_46_R\n\t\t// 12_47_R\n\t\t// 12_48_R\n\t\t// 12_49_R\n\t\t// 12_50_R\n\t\t// 1__R\n\t\t// 13_54_R\n\t\t// 13_54_1_R\n\t\t// 13_54_2_R\n\t\t// 13_55_R\n\t\t// 13_55_1_R\n\t\t// 13_55_2_R\n\t\t// 13_56_R\n\t\t// 13_56_1_R\n\t\t// 13_56_2_R\n\t\t// 12_53_R\n\t\t// 12_53_1_R\n\t\t// 12_53_2_R\n\t\t// 12_53_3_R\n\t\t// 12_53_4_R\n\t\t// 12_53_5_R\n\t\t// 12_53_6_R\n\t\t// 13_57_R\n\t\t// 13_57_1_R\n\t\t// 13_57_2_R\n\t\t// 13_58_R\n\t\t// 13_58_1_R\n\t\t// 13_58_2_R\n\t\t// 13_59_R\n\t\t// 13_59_1_R\n\t\t// 13_59_2_R\n\t\t// 13_60_R\n\t\t// 12_53_7_R\n\t\t// 12_53_8_R\n\t\t// id\n\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->ViewValue = $this->fecha->CurrentValue;\n\t\t$this->fecha->ViewValue = FormatDateTime($this->fecha->ViewValue, 0);\n\t\t$this->fecha->ViewCustomAttributes = \"\";\n\n\t\t// hora\n\t\t$this->hora->ViewValue = $this->hora->CurrentValue;\n\t\t$this->hora->ViewValue = FormatDateTime($this->hora->ViewValue, 4);\n\t\t$this->hora->ViewCustomAttributes = \"\";\n\n\t\t// audio\n\t\t$this->audio->ViewValue = $this->audio->CurrentValue;\n\t\t$this->audio->ViewCustomAttributes = \"\";\n\n\t\t// st\n\t\t$this->st->ViewValue = $this->st->CurrentValue;\n\t\t$this->st->ViewCustomAttributes = \"\";\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->ViewValue = $this->fechaHoraIni->CurrentValue;\n\t\t$this->fechaHoraIni->ViewValue = FormatDateTime($this->fechaHoraIni->ViewValue, 0);\n\t\t$this->fechaHoraIni->ViewCustomAttributes = \"\";\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->ViewValue = $this->fechaHoraFin->CurrentValue;\n\t\t$this->fechaHoraFin->ViewValue = FormatDateTime($this->fechaHoraFin->ViewValue, 0);\n\t\t$this->fechaHoraFin->ViewCustomAttributes = \"\";\n\n\t\t// telefono\n\t\t$this->telefono->ViewValue = $this->telefono->CurrentValue;\n\t\t$this->telefono->ViewCustomAttributes = \"\";\n\n\t\t// agente\n\t\t$this->agente->ViewValue = $this->agente->CurrentValue;\n\t\t$this->agente->ViewValue = FormatNumber($this->agente->ViewValue, 0, -2, -2, -2);\n\t\t$this->agente->ViewCustomAttributes = \"\";\n\n\t\t// fechabo\n\t\t$this->fechabo->ViewValue = $this->fechabo->CurrentValue;\n\t\t$this->fechabo->ViewValue = FormatDateTime($this->fechabo->ViewValue, 0);\n\t\t$this->fechabo->ViewCustomAttributes = \"\";\n\n\t\t// agentebo\n\t\t$this->agentebo->ViewValue = $this->agentebo->CurrentValue;\n\t\t$this->agentebo->ViewValue = FormatNumber($this->agentebo->ViewValue, 0, -2, -2, -2);\n\t\t$this->agentebo->ViewCustomAttributes = \"\";\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->ViewValue = $this->comentariosbo->CurrentValue;\n\t\t$this->comentariosbo->ViewCustomAttributes = \"\";\n\n\t\t// IP\n\t\t$this->IP->ViewValue = $this->IP->CurrentValue;\n\t\t$this->IP->ViewCustomAttributes = \"\";\n\n\t\t// actual\n\t\t$this->actual->ViewValue = $this->actual->CurrentValue;\n\t\t$this->actual->ViewCustomAttributes = \"\";\n\n\t\t// completado\n\t\t$this->completado->ViewValue = $this->completado->CurrentValue;\n\t\t$this->completado->ViewCustomAttributes = \"\";\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->ViewValue = $this->_2_1_R->CurrentValue;\n\t\t$this->_2_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->ViewValue = $this->_2_2_R->CurrentValue;\n\t\t$this->_2_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->ViewValue = $this->_2_3_R->CurrentValue;\n\t\t$this->_2_3_R->ViewCustomAttributes = \"\";\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->ViewValue = $this->_3_4_R->CurrentValue;\n\t\t$this->_3_4_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->ViewValue = $this->_4_5_R->CurrentValue;\n\t\t$this->_4_5_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->ViewValue = $this->_4_6_R->CurrentValue;\n\t\t$this->_4_6_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->ViewValue = $this->_4_7_R->CurrentValue;\n\t\t$this->_4_7_R->ViewCustomAttributes = \"\";\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->ViewValue = $this->_4_8_R->CurrentValue;\n\t\t$this->_4_8_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->ViewValue = $this->_5_9_R->CurrentValue;\n\t\t$this->_5_9_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->ViewValue = $this->_5_10_R->CurrentValue;\n\t\t$this->_5_10_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->ViewValue = $this->_5_11_R->CurrentValue;\n\t\t$this->_5_11_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->ViewValue = $this->_5_12_R->CurrentValue;\n\t\t$this->_5_12_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->ViewValue = $this->_5_13_R->CurrentValue;\n\t\t$this->_5_13_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->ViewValue = $this->_5_14_R->CurrentValue;\n\t\t$this->_5_14_R->ViewCustomAttributes = \"\";\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->ViewValue = $this->_5_51_R->CurrentValue;\n\t\t$this->_5_51_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->ViewValue = $this->_6_15_R->CurrentValue;\n\t\t$this->_6_15_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->ViewValue = $this->_6_16_R->CurrentValue;\n\t\t$this->_6_16_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->ViewValue = $this->_6_17_R->CurrentValue;\n\t\t$this->_6_17_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->ViewValue = $this->_6_18_R->CurrentValue;\n\t\t$this->_6_18_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->ViewValue = $this->_6_19_R->CurrentValue;\n\t\t$this->_6_19_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->ViewValue = $this->_6_20_R->CurrentValue;\n\t\t$this->_6_20_R->ViewCustomAttributes = \"\";\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->ViewValue = $this->_6_52_R->CurrentValue;\n\t\t$this->_6_52_R->ViewCustomAttributes = \"\";\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->ViewValue = $this->_7_21_R->CurrentValue;\n\t\t$this->_7_21_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->ViewValue = $this->_8_22_R->CurrentValue;\n\t\t$this->_8_22_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->ViewValue = $this->_8_23_R->CurrentValue;\n\t\t$this->_8_23_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->ViewValue = $this->_8_24_R->CurrentValue;\n\t\t$this->_8_24_R->ViewCustomAttributes = \"\";\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->ViewValue = $this->_8_25_R->CurrentValue;\n\t\t$this->_8_25_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->ViewValue = $this->_9_26_R->CurrentValue;\n\t\t$this->_9_26_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->ViewValue = $this->_9_27_R->CurrentValue;\n\t\t$this->_9_27_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->ViewValue = $this->_9_28_R->CurrentValue;\n\t\t$this->_9_28_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->ViewValue = $this->_9_29_R->CurrentValue;\n\t\t$this->_9_29_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->ViewValue = $this->_9_30_R->CurrentValue;\n\t\t$this->_9_30_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->ViewValue = $this->_9_31_R->CurrentValue;\n\t\t$this->_9_31_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->ViewValue = $this->_9_32_R->CurrentValue;\n\t\t$this->_9_32_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->ViewValue = $this->_9_33_R->CurrentValue;\n\t\t$this->_9_33_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->ViewValue = $this->_9_34_R->CurrentValue;\n\t\t$this->_9_34_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->ViewValue = $this->_9_35_R->CurrentValue;\n\t\t$this->_9_35_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->ViewValue = $this->_9_36_R->CurrentValue;\n\t\t$this->_9_36_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->ViewValue = $this->_9_37_R->CurrentValue;\n\t\t$this->_9_37_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->ViewValue = $this->_9_38_R->CurrentValue;\n\t\t$this->_9_38_R->ViewCustomAttributes = \"\";\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->ViewValue = $this->_9_39_R->CurrentValue;\n\t\t$this->_9_39_R->ViewCustomAttributes = \"\";\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->ViewValue = $this->_10_40_R->CurrentValue;\n\t\t$this->_10_40_R->ViewCustomAttributes = \"\";\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->ViewValue = $this->_10_41_R->CurrentValue;\n\t\t$this->_10_41_R->ViewCustomAttributes = \"\";\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->ViewValue = $this->_11_42_R->CurrentValue;\n\t\t$this->_11_42_R->ViewCustomAttributes = \"\";\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->ViewValue = $this->_11_43_R->CurrentValue;\n\t\t$this->_11_43_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->ViewValue = $this->_12_44_R->CurrentValue;\n\t\t$this->_12_44_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->ViewValue = $this->_12_45_R->CurrentValue;\n\t\t$this->_12_45_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->ViewValue = $this->_12_46_R->CurrentValue;\n\t\t$this->_12_46_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->ViewValue = $this->_12_47_R->CurrentValue;\n\t\t$this->_12_47_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->ViewValue = $this->_12_48_R->CurrentValue;\n\t\t$this->_12_48_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->ViewValue = $this->_12_49_R->CurrentValue;\n\t\t$this->_12_49_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->ViewValue = $this->_12_50_R->CurrentValue;\n\t\t$this->_12_50_R->ViewCustomAttributes = \"\";\n\n\t\t// 1__R\n\t\t$this->_1__R->ViewValue = $this->_1__R->CurrentValue;\n\t\t$this->_1__R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->ViewValue = $this->_13_54_R->CurrentValue;\n\t\t$this->_13_54_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->ViewValue = $this->_13_54_1_R->CurrentValue;\n\t\t$this->_13_54_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->ViewValue = $this->_13_54_2_R->CurrentValue;\n\t\t$this->_13_54_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->ViewValue = $this->_13_55_R->CurrentValue;\n\t\t$this->_13_55_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->ViewValue = $this->_13_55_1_R->CurrentValue;\n\t\t$this->_13_55_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->ViewValue = $this->_13_55_2_R->CurrentValue;\n\t\t$this->_13_55_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->ViewValue = $this->_13_56_R->CurrentValue;\n\t\t$this->_13_56_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->ViewValue = $this->_13_56_1_R->CurrentValue;\n\t\t$this->_13_56_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->ViewValue = $this->_13_56_2_R->CurrentValue;\n\t\t$this->_13_56_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->ViewValue = $this->_12_53_R->CurrentValue;\n\t\t$this->_12_53_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->ViewValue = $this->_12_53_1_R->CurrentValue;\n\t\t$this->_12_53_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->ViewValue = $this->_12_53_2_R->CurrentValue;\n\t\t$this->_12_53_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->ViewValue = $this->_12_53_3_R->CurrentValue;\n\t\t$this->_12_53_3_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->ViewValue = $this->_12_53_4_R->CurrentValue;\n\t\t$this->_12_53_4_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->ViewValue = $this->_12_53_5_R->CurrentValue;\n\t\t$this->_12_53_5_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->ViewValue = $this->_12_53_6_R->CurrentValue;\n\t\t$this->_12_53_6_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->ViewValue = $this->_13_57_R->CurrentValue;\n\t\t$this->_13_57_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->ViewValue = $this->_13_57_1_R->CurrentValue;\n\t\t$this->_13_57_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->ViewValue = $this->_13_57_2_R->CurrentValue;\n\t\t$this->_13_57_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->ViewValue = $this->_13_58_R->CurrentValue;\n\t\t$this->_13_58_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->ViewValue = $this->_13_58_1_R->CurrentValue;\n\t\t$this->_13_58_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->ViewValue = $this->_13_58_2_R->CurrentValue;\n\t\t$this->_13_58_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->ViewValue = $this->_13_59_R->CurrentValue;\n\t\t$this->_13_59_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->ViewValue = $this->_13_59_1_R->CurrentValue;\n\t\t$this->_13_59_1_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->ViewValue = $this->_13_59_2_R->CurrentValue;\n\t\t$this->_13_59_2_R->ViewCustomAttributes = \"\";\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->ViewValue = $this->_13_60_R->CurrentValue;\n\t\t$this->_13_60_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->ViewValue = $this->_12_53_7_R->CurrentValue;\n\t\t$this->_12_53_7_R->ViewCustomAttributes = \"\";\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->ViewValue = $this->_12_53_8_R->CurrentValue;\n\t\t$this->_12_53_8_R->ViewCustomAttributes = \"\";\n\n\t\t// id\n\t\t$this->id->LinkCustomAttributes = \"\";\n\t\t$this->id->HrefValue = \"\";\n\t\t$this->id->TooltipValue = \"\";\n\n\t\t// fecha\n\t\t$this->fecha->LinkCustomAttributes = \"\";\n\t\t$this->fecha->HrefValue = \"\";\n\t\t$this->fecha->TooltipValue = \"\";\n\n\t\t// hora\n\t\t$this->hora->LinkCustomAttributes = \"\";\n\t\t$this->hora->HrefValue = \"\";\n\t\t$this->hora->TooltipValue = \"\";\n\n\t\t// audio\n\t\t$this->audio->LinkCustomAttributes = \"\";\n\t\t$this->audio->HrefValue = \"\";\n\t\t$this->audio->TooltipValue = \"\";\n\n\t\t// st\n\t\t$this->st->LinkCustomAttributes = \"\";\n\t\t$this->st->HrefValue = \"\";\n\t\t$this->st->TooltipValue = \"\";\n\n\t\t// fechaHoraIni\n\t\t$this->fechaHoraIni->LinkCustomAttributes = \"\";\n\t\t$this->fechaHoraIni->HrefValue = \"\";\n\t\t$this->fechaHoraIni->TooltipValue = \"\";\n\n\t\t// fechaHoraFin\n\t\t$this->fechaHoraFin->LinkCustomAttributes = \"\";\n\t\t$this->fechaHoraFin->HrefValue = \"\";\n\t\t$this->fechaHoraFin->TooltipValue = \"\";\n\n\t\t// telefono\n\t\t$this->telefono->LinkCustomAttributes = \"\";\n\t\t$this->telefono->HrefValue = \"\";\n\t\t$this->telefono->TooltipValue = \"\";\n\n\t\t// agente\n\t\t$this->agente->LinkCustomAttributes = \"\";\n\t\t$this->agente->HrefValue = \"\";\n\t\t$this->agente->TooltipValue = \"\";\n\n\t\t// fechabo\n\t\t$this->fechabo->LinkCustomAttributes = \"\";\n\t\t$this->fechabo->HrefValue = \"\";\n\t\t$this->fechabo->TooltipValue = \"\";\n\n\t\t// agentebo\n\t\t$this->agentebo->LinkCustomAttributes = \"\";\n\t\t$this->agentebo->HrefValue = \"\";\n\t\t$this->agentebo->TooltipValue = \"\";\n\n\t\t// comentariosbo\n\t\t$this->comentariosbo->LinkCustomAttributes = \"\";\n\t\t$this->comentariosbo->HrefValue = \"\";\n\t\t$this->comentariosbo->TooltipValue = \"\";\n\n\t\t// IP\n\t\t$this->IP->LinkCustomAttributes = \"\";\n\t\t$this->IP->HrefValue = \"\";\n\t\t$this->IP->TooltipValue = \"\";\n\n\t\t// actual\n\t\t$this->actual->LinkCustomAttributes = \"\";\n\t\t$this->actual->HrefValue = \"\";\n\t\t$this->actual->TooltipValue = \"\";\n\n\t\t// completado\n\t\t$this->completado->LinkCustomAttributes = \"\";\n\t\t$this->completado->HrefValue = \"\";\n\t\t$this->completado->TooltipValue = \"\";\n\n\t\t// 2_1_R\n\t\t$this->_2_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_1_R->HrefValue = \"\";\n\t\t$this->_2_1_R->TooltipValue = \"\";\n\n\t\t// 2_2_R\n\t\t$this->_2_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_2_R->HrefValue = \"\";\n\t\t$this->_2_2_R->TooltipValue = \"\";\n\n\t\t// 2_3_R\n\t\t$this->_2_3_R->LinkCustomAttributes = \"\";\n\t\t$this->_2_3_R->HrefValue = \"\";\n\t\t$this->_2_3_R->TooltipValue = \"\";\n\n\t\t// 3_4_R\n\t\t$this->_3_4_R->LinkCustomAttributes = \"\";\n\t\t$this->_3_4_R->HrefValue = \"\";\n\t\t$this->_3_4_R->TooltipValue = \"\";\n\n\t\t// 4_5_R\n\t\t$this->_4_5_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_5_R->HrefValue = \"\";\n\t\t$this->_4_5_R->TooltipValue = \"\";\n\n\t\t// 4_6_R\n\t\t$this->_4_6_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_6_R->HrefValue = \"\";\n\t\t$this->_4_6_R->TooltipValue = \"\";\n\n\t\t// 4_7_R\n\t\t$this->_4_7_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_7_R->HrefValue = \"\";\n\t\t$this->_4_7_R->TooltipValue = \"\";\n\n\t\t// 4_8_R\n\t\t$this->_4_8_R->LinkCustomAttributes = \"\";\n\t\t$this->_4_8_R->HrefValue = \"\";\n\t\t$this->_4_8_R->TooltipValue = \"\";\n\n\t\t// 5_9_R\n\t\t$this->_5_9_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_9_R->HrefValue = \"\";\n\t\t$this->_5_9_R->TooltipValue = \"\";\n\n\t\t// 5_10_R\n\t\t$this->_5_10_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_10_R->HrefValue = \"\";\n\t\t$this->_5_10_R->TooltipValue = \"\";\n\n\t\t// 5_11_R\n\t\t$this->_5_11_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_11_R->HrefValue = \"\";\n\t\t$this->_5_11_R->TooltipValue = \"\";\n\n\t\t// 5_12_R\n\t\t$this->_5_12_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_12_R->HrefValue = \"\";\n\t\t$this->_5_12_R->TooltipValue = \"\";\n\n\t\t// 5_13_R\n\t\t$this->_5_13_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_13_R->HrefValue = \"\";\n\t\t$this->_5_13_R->TooltipValue = \"\";\n\n\t\t// 5_14_R\n\t\t$this->_5_14_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_14_R->HrefValue = \"\";\n\t\t$this->_5_14_R->TooltipValue = \"\";\n\n\t\t// 5_51_R\n\t\t$this->_5_51_R->LinkCustomAttributes = \"\";\n\t\t$this->_5_51_R->HrefValue = \"\";\n\t\t$this->_5_51_R->TooltipValue = \"\";\n\n\t\t// 6_15_R\n\t\t$this->_6_15_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_15_R->HrefValue = \"\";\n\t\t$this->_6_15_R->TooltipValue = \"\";\n\n\t\t// 6_16_R\n\t\t$this->_6_16_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_16_R->HrefValue = \"\";\n\t\t$this->_6_16_R->TooltipValue = \"\";\n\n\t\t// 6_17_R\n\t\t$this->_6_17_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_17_R->HrefValue = \"\";\n\t\t$this->_6_17_R->TooltipValue = \"\";\n\n\t\t// 6_18_R\n\t\t$this->_6_18_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_18_R->HrefValue = \"\";\n\t\t$this->_6_18_R->TooltipValue = \"\";\n\n\t\t// 6_19_R\n\t\t$this->_6_19_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_19_R->HrefValue = \"\";\n\t\t$this->_6_19_R->TooltipValue = \"\";\n\n\t\t// 6_20_R\n\t\t$this->_6_20_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_20_R->HrefValue = \"\";\n\t\t$this->_6_20_R->TooltipValue = \"\";\n\n\t\t// 6_52_R\n\t\t$this->_6_52_R->LinkCustomAttributes = \"\";\n\t\t$this->_6_52_R->HrefValue = \"\";\n\t\t$this->_6_52_R->TooltipValue = \"\";\n\n\t\t// 7_21_R\n\t\t$this->_7_21_R->LinkCustomAttributes = \"\";\n\t\t$this->_7_21_R->HrefValue = \"\";\n\t\t$this->_7_21_R->TooltipValue = \"\";\n\n\t\t// 8_22_R\n\t\t$this->_8_22_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_22_R->HrefValue = \"\";\n\t\t$this->_8_22_R->TooltipValue = \"\";\n\n\t\t// 8_23_R\n\t\t$this->_8_23_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_23_R->HrefValue = \"\";\n\t\t$this->_8_23_R->TooltipValue = \"\";\n\n\t\t// 8_24_R\n\t\t$this->_8_24_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_24_R->HrefValue = \"\";\n\t\t$this->_8_24_R->TooltipValue = \"\";\n\n\t\t// 8_25_R\n\t\t$this->_8_25_R->LinkCustomAttributes = \"\";\n\t\t$this->_8_25_R->HrefValue = \"\";\n\t\t$this->_8_25_R->TooltipValue = \"\";\n\n\t\t// 9_26_R\n\t\t$this->_9_26_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_26_R->HrefValue = \"\";\n\t\t$this->_9_26_R->TooltipValue = \"\";\n\n\t\t// 9_27_R\n\t\t$this->_9_27_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_27_R->HrefValue = \"\";\n\t\t$this->_9_27_R->TooltipValue = \"\";\n\n\t\t// 9_28_R\n\t\t$this->_9_28_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_28_R->HrefValue = \"\";\n\t\t$this->_9_28_R->TooltipValue = \"\";\n\n\t\t// 9_29_R\n\t\t$this->_9_29_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_29_R->HrefValue = \"\";\n\t\t$this->_9_29_R->TooltipValue = \"\";\n\n\t\t// 9_30_R\n\t\t$this->_9_30_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_30_R->HrefValue = \"\";\n\t\t$this->_9_30_R->TooltipValue = \"\";\n\n\t\t// 9_31_R\n\t\t$this->_9_31_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_31_R->HrefValue = \"\";\n\t\t$this->_9_31_R->TooltipValue = \"\";\n\n\t\t// 9_32_R\n\t\t$this->_9_32_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_32_R->HrefValue = \"\";\n\t\t$this->_9_32_R->TooltipValue = \"\";\n\n\t\t// 9_33_R\n\t\t$this->_9_33_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_33_R->HrefValue = \"\";\n\t\t$this->_9_33_R->TooltipValue = \"\";\n\n\t\t// 9_34_R\n\t\t$this->_9_34_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_34_R->HrefValue = \"\";\n\t\t$this->_9_34_R->TooltipValue = \"\";\n\n\t\t// 9_35_R\n\t\t$this->_9_35_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_35_R->HrefValue = \"\";\n\t\t$this->_9_35_R->TooltipValue = \"\";\n\n\t\t// 9_36_R\n\t\t$this->_9_36_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_36_R->HrefValue = \"\";\n\t\t$this->_9_36_R->TooltipValue = \"\";\n\n\t\t// 9_37_R\n\t\t$this->_9_37_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_37_R->HrefValue = \"\";\n\t\t$this->_9_37_R->TooltipValue = \"\";\n\n\t\t// 9_38_R\n\t\t$this->_9_38_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_38_R->HrefValue = \"\";\n\t\t$this->_9_38_R->TooltipValue = \"\";\n\n\t\t// 9_39_R\n\t\t$this->_9_39_R->LinkCustomAttributes = \"\";\n\t\t$this->_9_39_R->HrefValue = \"\";\n\t\t$this->_9_39_R->TooltipValue = \"\";\n\n\t\t// 10_40_R\n\t\t$this->_10_40_R->LinkCustomAttributes = \"\";\n\t\t$this->_10_40_R->HrefValue = \"\";\n\t\t$this->_10_40_R->TooltipValue = \"\";\n\n\t\t// 10_41_R\n\t\t$this->_10_41_R->LinkCustomAttributes = \"\";\n\t\t$this->_10_41_R->HrefValue = \"\";\n\t\t$this->_10_41_R->TooltipValue = \"\";\n\n\t\t// 11_42_R\n\t\t$this->_11_42_R->LinkCustomAttributes = \"\";\n\t\t$this->_11_42_R->HrefValue = \"\";\n\t\t$this->_11_42_R->TooltipValue = \"\";\n\n\t\t// 11_43_R\n\t\t$this->_11_43_R->LinkCustomAttributes = \"\";\n\t\t$this->_11_43_R->HrefValue = \"\";\n\t\t$this->_11_43_R->TooltipValue = \"\";\n\n\t\t// 12_44_R\n\t\t$this->_12_44_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_44_R->HrefValue = \"\";\n\t\t$this->_12_44_R->TooltipValue = \"\";\n\n\t\t// 12_45_R\n\t\t$this->_12_45_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_45_R->HrefValue = \"\";\n\t\t$this->_12_45_R->TooltipValue = \"\";\n\n\t\t// 12_46_R\n\t\t$this->_12_46_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_46_R->HrefValue = \"\";\n\t\t$this->_12_46_R->TooltipValue = \"\";\n\n\t\t// 12_47_R\n\t\t$this->_12_47_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_47_R->HrefValue = \"\";\n\t\t$this->_12_47_R->TooltipValue = \"\";\n\n\t\t// 12_48_R\n\t\t$this->_12_48_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_48_R->HrefValue = \"\";\n\t\t$this->_12_48_R->TooltipValue = \"\";\n\n\t\t// 12_49_R\n\t\t$this->_12_49_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_49_R->HrefValue = \"\";\n\t\t$this->_12_49_R->TooltipValue = \"\";\n\n\t\t// 12_50_R\n\t\t$this->_12_50_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_50_R->HrefValue = \"\";\n\t\t$this->_12_50_R->TooltipValue = \"\";\n\n\t\t// 1__R\n\t\t$this->_1__R->LinkCustomAttributes = \"\";\n\t\t$this->_1__R->HrefValue = \"\";\n\t\t$this->_1__R->TooltipValue = \"\";\n\n\t\t// 13_54_R\n\t\t$this->_13_54_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_R->HrefValue = \"\";\n\t\t$this->_13_54_R->TooltipValue = \"\";\n\n\t\t// 13_54_1_R\n\t\t$this->_13_54_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_1_R->HrefValue = \"\";\n\t\t$this->_13_54_1_R->TooltipValue = \"\";\n\n\t\t// 13_54_2_R\n\t\t$this->_13_54_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_54_2_R->HrefValue = \"\";\n\t\t$this->_13_54_2_R->TooltipValue = \"\";\n\n\t\t// 13_55_R\n\t\t$this->_13_55_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_R->HrefValue = \"\";\n\t\t$this->_13_55_R->TooltipValue = \"\";\n\n\t\t// 13_55_1_R\n\t\t$this->_13_55_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_1_R->HrefValue = \"\";\n\t\t$this->_13_55_1_R->TooltipValue = \"\";\n\n\t\t// 13_55_2_R\n\t\t$this->_13_55_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_55_2_R->HrefValue = \"\";\n\t\t$this->_13_55_2_R->TooltipValue = \"\";\n\n\t\t// 13_56_R\n\t\t$this->_13_56_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_R->HrefValue = \"\";\n\t\t$this->_13_56_R->TooltipValue = \"\";\n\n\t\t// 13_56_1_R\n\t\t$this->_13_56_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_1_R->HrefValue = \"\";\n\t\t$this->_13_56_1_R->TooltipValue = \"\";\n\n\t\t// 13_56_2_R\n\t\t$this->_13_56_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_56_2_R->HrefValue = \"\";\n\t\t$this->_13_56_2_R->TooltipValue = \"\";\n\n\t\t// 12_53_R\n\t\t$this->_12_53_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_R->HrefValue = \"\";\n\t\t$this->_12_53_R->TooltipValue = \"\";\n\n\t\t// 12_53_1_R\n\t\t$this->_12_53_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_1_R->HrefValue = \"\";\n\t\t$this->_12_53_1_R->TooltipValue = \"\";\n\n\t\t// 12_53_2_R\n\t\t$this->_12_53_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_2_R->HrefValue = \"\";\n\t\t$this->_12_53_2_R->TooltipValue = \"\";\n\n\t\t// 12_53_3_R\n\t\t$this->_12_53_3_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_3_R->HrefValue = \"\";\n\t\t$this->_12_53_3_R->TooltipValue = \"\";\n\n\t\t// 12_53_4_R\n\t\t$this->_12_53_4_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_4_R->HrefValue = \"\";\n\t\t$this->_12_53_4_R->TooltipValue = \"\";\n\n\t\t// 12_53_5_R\n\t\t$this->_12_53_5_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_5_R->HrefValue = \"\";\n\t\t$this->_12_53_5_R->TooltipValue = \"\";\n\n\t\t// 12_53_6_R\n\t\t$this->_12_53_6_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_6_R->HrefValue = \"\";\n\t\t$this->_12_53_6_R->TooltipValue = \"\";\n\n\t\t// 13_57_R\n\t\t$this->_13_57_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_R->HrefValue = \"\";\n\t\t$this->_13_57_R->TooltipValue = \"\";\n\n\t\t// 13_57_1_R\n\t\t$this->_13_57_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_1_R->HrefValue = \"\";\n\t\t$this->_13_57_1_R->TooltipValue = \"\";\n\n\t\t// 13_57_2_R\n\t\t$this->_13_57_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_57_2_R->HrefValue = \"\";\n\t\t$this->_13_57_2_R->TooltipValue = \"\";\n\n\t\t// 13_58_R\n\t\t$this->_13_58_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_R->HrefValue = \"\";\n\t\t$this->_13_58_R->TooltipValue = \"\";\n\n\t\t// 13_58_1_R\n\t\t$this->_13_58_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_1_R->HrefValue = \"\";\n\t\t$this->_13_58_1_R->TooltipValue = \"\";\n\n\t\t// 13_58_2_R\n\t\t$this->_13_58_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_58_2_R->HrefValue = \"\";\n\t\t$this->_13_58_2_R->TooltipValue = \"\";\n\n\t\t// 13_59_R\n\t\t$this->_13_59_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_R->HrefValue = \"\";\n\t\t$this->_13_59_R->TooltipValue = \"\";\n\n\t\t// 13_59_1_R\n\t\t$this->_13_59_1_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_1_R->HrefValue = \"\";\n\t\t$this->_13_59_1_R->TooltipValue = \"\";\n\n\t\t// 13_59_2_R\n\t\t$this->_13_59_2_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_59_2_R->HrefValue = \"\";\n\t\t$this->_13_59_2_R->TooltipValue = \"\";\n\n\t\t// 13_60_R\n\t\t$this->_13_60_R->LinkCustomAttributes = \"\";\n\t\t$this->_13_60_R->HrefValue = \"\";\n\t\t$this->_13_60_R->TooltipValue = \"\";\n\n\t\t// 12_53_7_R\n\t\t$this->_12_53_7_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_7_R->HrefValue = \"\";\n\t\t$this->_12_53_7_R->TooltipValue = \"\";\n\n\t\t// 12_53_8_R\n\t\t$this->_12_53_8_R->LinkCustomAttributes = \"\";\n\t\t$this->_12_53_8_R->HrefValue = \"\";\n\t\t$this->_12_53_8_R->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->customTemplateFieldValues();\n\t}", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// gjd_id\n\t\t// gjm_id\n\t\t// peg_id\n\t\t// b_mn\n\t\t// b_sn\n\t\t// b_sl\n\t\t// b_rb\n\t\t// b_km\n\t\t// b_jm\n\t\t// b_sb\n\t\t// l_mn\n\t\t// l_sn\n\t\t// l_sl\n\t\t// l_rb\n\t\t// l_km\n\t\t// l_jm\n\t\t// l_sb\n\t\t// gjd_id\n\n\t\t$this->gjd_id->ViewValue = $this->gjd_id->CurrentValue;\n\t\t$this->gjd_id->ViewCustomAttributes = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->ViewValue = $this->gjm_id->CurrentValue;\n\t\t$this->gjm_id->ViewCustomAttributes = \"\";\n\n\t\t// peg_id\n\t\tif (strval($this->peg_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`peg_id`\" . ew_SearchString(\"=\", $this->peg_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `peg_id`, `peg_nama` AS `DispFld`, `peg_jabatan` AS `Disp2Fld`, `peg_upah` AS `Disp3Fld`, '' AS `Disp4Fld` FROM `t_pegawai`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->peg_id->LookupFilters = array(\"dx1\" => '`peg_nama`', \"dx2\" => '`peg_jabatan`', \"dx3\" => '`peg_upah`');\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->peg_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$arwrk[3] = ew_FormatNumber($rswrk->fields('Disp3Fld'), 0, -2, -2, -1);\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->peg_id->ViewValue = $this->peg_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->peg_id->ViewValue = NULL;\n\t\t}\n\t\t$this->peg_id->ViewCustomAttributes = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->ViewValue = $this->b_mn->CurrentValue;\n\t\t$this->b_mn->ViewCustomAttributes = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->ViewValue = $this->b_sn->CurrentValue;\n\t\t$this->b_sn->ViewCustomAttributes = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->ViewValue = $this->b_sl->CurrentValue;\n\t\t$this->b_sl->ViewCustomAttributes = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->ViewValue = $this->b_rb->CurrentValue;\n\t\t$this->b_rb->ViewCustomAttributes = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->ViewValue = $this->b_km->CurrentValue;\n\t\t$this->b_km->ViewCustomAttributes = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->ViewValue = $this->b_jm->CurrentValue;\n\t\t$this->b_jm->ViewCustomAttributes = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->ViewValue = $this->b_sb->CurrentValue;\n\t\t$this->b_sb->ViewCustomAttributes = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->ViewValue = $this->l_mn->CurrentValue;\n\t\t$this->l_mn->ViewCustomAttributes = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->ViewValue = $this->l_sn->CurrentValue;\n\t\t$this->l_sn->ViewCustomAttributes = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->ViewValue = $this->l_sl->CurrentValue;\n\t\t$this->l_sl->ViewCustomAttributes = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->ViewValue = $this->l_rb->CurrentValue;\n\t\t$this->l_rb->ViewCustomAttributes = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->ViewValue = $this->l_km->CurrentValue;\n\t\t$this->l_km->ViewCustomAttributes = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->ViewValue = $this->l_jm->CurrentValue;\n\t\t$this->l_jm->ViewCustomAttributes = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->ViewValue = $this->l_sb->CurrentValue;\n\t\t$this->l_sb->ViewCustomAttributes = \"\";\n\n\t\t// gjd_id\n\t\t$this->gjd_id->LinkCustomAttributes = \"\";\n\t\t$this->gjd_id->HrefValue = \"\";\n\t\t$this->gjd_id->TooltipValue = \"\";\n\n\t\t// gjm_id\n\t\t$this->gjm_id->LinkCustomAttributes = \"\";\n\t\t$this->gjm_id->HrefValue = \"\";\n\t\t$this->gjm_id->TooltipValue = \"\";\n\n\t\t// peg_id\n\t\t$this->peg_id->LinkCustomAttributes = \"\";\n\t\t$this->peg_id->HrefValue = \"\";\n\t\t$this->peg_id->TooltipValue = \"\";\n\n\t\t// b_mn\n\t\t$this->b_mn->LinkCustomAttributes = \"\";\n\t\t$this->b_mn->HrefValue = \"\";\n\t\t$this->b_mn->TooltipValue = \"\";\n\n\t\t// b_sn\n\t\t$this->b_sn->LinkCustomAttributes = \"\";\n\t\t$this->b_sn->HrefValue = \"\";\n\t\t$this->b_sn->TooltipValue = \"\";\n\n\t\t// b_sl\n\t\t$this->b_sl->LinkCustomAttributes = \"\";\n\t\t$this->b_sl->HrefValue = \"\";\n\t\t$this->b_sl->TooltipValue = \"\";\n\n\t\t// b_rb\n\t\t$this->b_rb->LinkCustomAttributes = \"\";\n\t\t$this->b_rb->HrefValue = \"\";\n\t\t$this->b_rb->TooltipValue = \"\";\n\n\t\t// b_km\n\t\t$this->b_km->LinkCustomAttributes = \"\";\n\t\t$this->b_km->HrefValue = \"\";\n\t\t$this->b_km->TooltipValue = \"\";\n\n\t\t// b_jm\n\t\t$this->b_jm->LinkCustomAttributes = \"\";\n\t\t$this->b_jm->HrefValue = \"\";\n\t\t$this->b_jm->TooltipValue = \"\";\n\n\t\t// b_sb\n\t\t$this->b_sb->LinkCustomAttributes = \"\";\n\t\t$this->b_sb->HrefValue = \"\";\n\t\t$this->b_sb->TooltipValue = \"\";\n\n\t\t// l_mn\n\t\t$this->l_mn->LinkCustomAttributes = \"\";\n\t\t$this->l_mn->HrefValue = \"\";\n\t\t$this->l_mn->TooltipValue = \"\";\n\n\t\t// l_sn\n\t\t$this->l_sn->LinkCustomAttributes = \"\";\n\t\t$this->l_sn->HrefValue = \"\";\n\t\t$this->l_sn->TooltipValue = \"\";\n\n\t\t// l_sl\n\t\t$this->l_sl->LinkCustomAttributes = \"\";\n\t\t$this->l_sl->HrefValue = \"\";\n\t\t$this->l_sl->TooltipValue = \"\";\n\n\t\t// l_rb\n\t\t$this->l_rb->LinkCustomAttributes = \"\";\n\t\t$this->l_rb->HrefValue = \"\";\n\t\t$this->l_rb->TooltipValue = \"\";\n\n\t\t// l_km\n\t\t$this->l_km->LinkCustomAttributes = \"\";\n\t\t$this->l_km->HrefValue = \"\";\n\t\t$this->l_km->TooltipValue = \"\";\n\n\t\t// l_jm\n\t\t$this->l_jm->LinkCustomAttributes = \"\";\n\t\t$this->l_jm->HrefValue = \"\";\n\t\t$this->l_jm->TooltipValue = \"\";\n\n\t\t// l_sb\n\t\t$this->l_sb->LinkCustomAttributes = \"\";\n\t\t$this->l_sb->HrefValue = \"\";\n\t\t$this->l_sb->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function renderListRow()\n\t{\n\t\tglobal $Security, $CurrentLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes\n\t\t// IncomeCode\n\t\t// IncomeName\n\t\t// IncomeDescription\n\t\t// Division\n\t\t// IncomeAmount\n\t\t// IncomeBasicRate\n\t\t// BaseIncomeCode\n\t\t// Taxable\n\t\t// AccountNo\n\t\t// JobIncluded\n\t\t// Application\n\t\t// JobExcluded\n\t\t// IncomeCode\n\n\t\t$this->IncomeCode->ViewValue = $this->IncomeCode->CurrentValue;\n\t\t$this->IncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->ViewValue = $this->IncomeName->CurrentValue;\n\t\t$this->IncomeName->ViewCustomAttributes = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->ViewValue = $this->IncomeDescription->CurrentValue;\n\t\t$this->IncomeDescription->ViewCustomAttributes = \"\";\n\n\t\t// Division\n\t\t$curVal = strval($this->Division->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Division->ViewValue = $this->Division->lookupCacheOption($curVal);\n\t\t\tif ($this->Division->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`Division`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->Division->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->Division->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->Division->ViewValue->add($this->Division->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Division->ViewValue = $this->Division->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Division->ViewValue = NULL;\n\t\t}\n\t\t$this->Division->ViewCustomAttributes = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->ViewValue = $this->IncomeAmount->CurrentValue;\n\t\t$this->IncomeAmount->ViewValue = FormatNumber($this->IncomeAmount->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeAmount->ViewCustomAttributes = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->ViewValue = $this->IncomeBasicRate->CurrentValue;\n\t\t$this->IncomeBasicRate->ViewValue = FormatNumber($this->IncomeBasicRate->ViewValue, 2, -2, -2, -2);\n\t\t$this->IncomeBasicRate->ViewCustomAttributes = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$curVal = strval($this->BaseIncomeCode->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->lookupCacheOption($curVal);\n\t\t\tif ($this->BaseIncomeCode->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`IncomeCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->BaseIncomeCode->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->BaseIncomeCode->ViewValue = $this->BaseIncomeCode->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->BaseIncomeCode->ViewValue = NULL;\n\t\t}\n\t\t$this->BaseIncomeCode->ViewCustomAttributes = \"\";\n\n\t\t// Taxable\n\t\t$curVal = strval($this->Taxable->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Taxable->ViewValue = $this->Taxable->lookupCacheOption($curVal);\n\t\t\tif ($this->Taxable->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Taxable->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Taxable->ViewValue = $this->Taxable->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Taxable->ViewValue = NULL;\n\t\t}\n\t\t$this->Taxable->ViewCustomAttributes = \"\";\n\n\t\t// AccountNo\n\t\t$curVal = strval($this->AccountNo->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->lookupCacheOption($curVal);\n\t\t\tif ($this->AccountNo->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`AccountCode`\" . SearchString(\"=\", $curVal, DATATYPE_STRING, \"\");\n\t\t\t\t$sqlWrk = $this->AccountNo->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$arwrk[2] = $rswrk->fields('df2');\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->AccountNo->ViewValue = $this->AccountNo->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->AccountNo->ViewValue = NULL;\n\t\t}\n\t\t$this->AccountNo->ViewCustomAttributes = \"\";\n\n\t\t// JobIncluded\n\t\t$curVal = strval($this->JobIncluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobIncluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobIncluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobIncluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobIncluded->ViewValue->add($this->JobIncluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobIncluded->ViewValue = $this->JobIncluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobIncluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobIncluded->ViewCustomAttributes = \"\";\n\n\t\t// Application\n\t\t$curVal = strval($this->Application->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->Application->ViewValue = $this->Application->lookupCacheOption($curVal);\n\t\t\tif ($this->Application->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$filterWrk = \"`ChoiceCode`\" . SearchString(\"=\", $curVal, DATATYPE_NUMBER, \"\");\n\t\t\t\t$sqlWrk = $this->Application->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->displayValue($arwrk);\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->Application->ViewValue = $this->Application->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->Application->ViewValue = NULL;\n\t\t}\n\t\t$this->Application->ViewCustomAttributes = \"\";\n\n\t\t// JobExcluded\n\t\t$curVal = strval($this->JobExcluded->CurrentValue);\n\t\tif ($curVal != \"\") {\n\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->lookupCacheOption($curVal);\n\t\t\tif ($this->JobExcluded->ViewValue === NULL) { // Lookup from database\n\t\t\t\t$arwrk = explode(\",\", $curVal);\n\t\t\t\t$filterWrk = \"\";\n\t\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\t\tif ($filterWrk != \"\")\n\t\t\t\t\t\t$filterWrk .= \" OR \";\n\t\t\t\t\t$filterWrk .= \"`JobCode`\" . SearchString(\"=\", trim($wrk), DATATYPE_NUMBER, \"\");\n\t\t\t\t}\n\t\t\t\t$sqlWrk = $this->JobExcluded->Lookup->getSql(FALSE, $filterWrk, '', $this);\n\t\t\t\t$rswrk = Conn()->execute($sqlWrk);\n\t\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t\t$this->JobExcluded->ViewValue = new OptionValues();\n\t\t\t\t\t$ari = 0;\n\t\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t\t$arwrk = [];\n\t\t\t\t\t\t$arwrk[1] = $rswrk->fields('df');\n\t\t\t\t\t\t$this->JobExcluded->ViewValue->add($this->JobExcluded->displayValue($arwrk));\n\t\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\t\t$ari++;\n\t\t\t\t\t}\n\t\t\t\t\t$rswrk->Close();\n\t\t\t\t} else {\n\t\t\t\t\t$this->JobExcluded->ViewValue = $this->JobExcluded->CurrentValue;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$this->JobExcluded->ViewValue = NULL;\n\t\t}\n\t\t$this->JobExcluded->ViewCustomAttributes = \"\";\n\n\t\t// IncomeCode\n\t\t$this->IncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->IncomeCode->HrefValue = \"\";\n\t\t$this->IncomeCode->TooltipValue = \"\";\n\n\t\t// IncomeName\n\t\t$this->IncomeName->LinkCustomAttributes = \"\";\n\t\t$this->IncomeName->HrefValue = \"\";\n\t\t$this->IncomeName->TooltipValue = \"\";\n\n\t\t// IncomeDescription\n\t\t$this->IncomeDescription->LinkCustomAttributes = \"\";\n\t\t$this->IncomeDescription->HrefValue = \"\";\n\t\t$this->IncomeDescription->TooltipValue = \"\";\n\n\t\t// Division\n\t\t$this->Division->LinkCustomAttributes = \"\";\n\t\t$this->Division->HrefValue = \"\";\n\t\t$this->Division->TooltipValue = \"\";\n\n\t\t// IncomeAmount\n\t\t$this->IncomeAmount->LinkCustomAttributes = \"\";\n\t\t$this->IncomeAmount->HrefValue = \"\";\n\t\t$this->IncomeAmount->TooltipValue = \"\";\n\n\t\t// IncomeBasicRate\n\t\t$this->IncomeBasicRate->LinkCustomAttributes = \"\";\n\t\t$this->IncomeBasicRate->HrefValue = \"\";\n\t\t$this->IncomeBasicRate->TooltipValue = \"\";\n\n\t\t// BaseIncomeCode\n\t\t$this->BaseIncomeCode->LinkCustomAttributes = \"\";\n\t\t$this->BaseIncomeCode->HrefValue = \"\";\n\t\t$this->BaseIncomeCode->TooltipValue = \"\";\n\n\t\t// Taxable\n\t\t$this->Taxable->LinkCustomAttributes = \"\";\n\t\t$this->Taxable->HrefValue = \"\";\n\t\t$this->Taxable->TooltipValue = \"\";\n\n\t\t// AccountNo\n\t\t$this->AccountNo->LinkCustomAttributes = \"\";\n\t\t$this->AccountNo->HrefValue = \"\";\n\t\t$this->AccountNo->TooltipValue = \"\";\n\n\t\t// JobIncluded\n\t\t$this->JobIncluded->LinkCustomAttributes = \"\";\n\t\t$this->JobIncluded->HrefValue = \"\";\n\t\t$this->JobIncluded->TooltipValue = \"\";\n\n\t\t// Application\n\t\t$this->Application->LinkCustomAttributes = \"\";\n\t\t$this->Application->HrefValue = \"\";\n\t\t$this->Application->TooltipValue = \"\";\n\n\t\t// JobExcluded\n\t\t$this->JobExcluded->LinkCustomAttributes = \"\";\n\t\t$this->JobExcluded->HrefValue = \"\";\n\t\t$this->JobExcluded->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\n\t\t// Save data for Custom Template\n\t\t$this->Rows[] = $this->customTemplateFieldValues();\n\t}", "public function renderItems()\n {\n $this->dataProvider->setPagination(false);\n\n $rows=[];\n $this->renderLevel($rows,0,0);\n\n return implode($this->separator, $rows);\n }", "function RenderListRow() {\n\t\tglobal $Security, $gsLanguage, $Language;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// IDXDAFTAR\n\t\t// TGLREG\n\t\t// NOMR\n\t\t// KETERANGAN\n\t\t// NOKARTU_BPJS\n\t\t// NOKTP\n\t\t// KDDOKTER\n\t\t// KDPOLY\n\t\t// KDRUJUK\n\t\t// KDCARABAYAR\n\t\t// NOJAMINAN\n\t\t// SHIFT\n\t\t// STATUS\n\t\t// KETERANGAN_STATUS\n\t\t// PASIENBARU\n\t\t// NIP\n\t\t// MASUKPOLY\n\t\t// KELUARPOLY\n\t\t// KETRUJUK\n\t\t// KETBAYAR\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t// JAMREG\n\t\t// BATAL\n\t\t// NO_SJP\n\t\t// NO_PESERTA\n\t\t// NOKARTU\n\t\t// TANGGAL_SEP\n\t\t// TANGGALRUJUK_SEP\n\t\t// KELASRAWAT_SEP\n\t\t// MINTA_RUJUKAN\n\t\t// NORUJUKAN_SEP\n\t\t// PPKRUJUKANASAL_SEP\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t// PPKPELAYANAN_SEP\n\t\t// JENISPERAWATAN_SEP\n\t\t// CATATAN_SEP\n\t\t// DIAGNOSAAWAL_SEP\n\t\t// NAMADIAGNOSA_SEP\n\t\t// LAKALANTAS_SEP\n\t\t// LOKASILAKALANTAS\n\t\t// USER\n\t\t// tanggal\n\t\t// bulan\n\t\t// tahun\n\t\t// IDXDAFTAR\n\n\t\t$this->IDXDAFTAR->ViewValue = $this->IDXDAFTAR->CurrentValue;\n\t\t$this->IDXDAFTAR->ViewCustomAttributes = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->ViewValue = $this->TGLREG->CurrentValue;\n\t\t$this->TGLREG->ViewValue = ew_FormatDateTime($this->TGLREG->ViewValue, 0);\n\t\t$this->TGLREG->ViewCustomAttributes = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\tif (strval($this->NOMR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`NOMR`\" . ew_SearchString(\"=\", $this->NOMR->CurrentValue, EW_DATATYPE_STRING, \"\");\n\t\t$sSqlWrk = \"SELECT `NOMR`, `NOMR` AS `DispFld`, `NAMA` AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_pasien`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->NOMR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->NOMR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$arwrk[2] = $rswrk->fields('Disp2Fld');\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->NOMR->ViewValue = $this->NOMR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->NOMR->ViewValue = NULL;\n\t\t}\n\t\t$this->NOMR->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->ViewValue = $this->KETERANGAN->CurrentValue;\n\t\t$this->KETERANGAN->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->ViewValue = $this->NOKARTU_BPJS->CurrentValue;\n\t\t$this->NOKARTU_BPJS->ViewCustomAttributes = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->ViewValue = $this->NOKTP->CurrentValue;\n\t\t$this->NOKTP->ViewCustomAttributes = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\tif (strval($this->KDDOKTER->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KDDOKTER`\" . ew_SearchString(\"=\", $this->KDDOKTER->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KDDOKTER`, `NAMADOKTER` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_dokter`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDDOKTER->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDDOKTER, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDDOKTER->ViewValue = $this->KDDOKTER->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDDOKTER->ViewValue = NULL;\n\t\t}\n\t\t$this->KDDOKTER->ViewCustomAttributes = \"\";\n\n\t\t// KDPOLY\n\t\tif (strval($this->KDPOLY->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->KDPOLY->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_poly`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDPOLY->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDPOLY, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDPOLY->ViewValue = $this->KDPOLY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDPOLY->ViewValue = NULL;\n\t\t}\n\t\t$this->KDPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\tif (strval($this->KDRUJUK->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDRUJUK->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_rujukan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDRUJUK->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDRUJUK, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDRUJUK->ViewValue = $this->KDRUJUK->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDRUJUK->ViewValue = NULL;\n\t\t}\n\t\t$this->KDRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\tif (strval($this->KDCARABAYAR->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`KODE`\" . ew_SearchString(\"=\", $this->KDCARABAYAR->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `KODE`, `NAMA` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `m_carabayar`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->KDCARABAYAR->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->KDCARABAYAR, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->KDCARABAYAR->ViewValue = $this->KDCARABAYAR->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->KDCARABAYAR->ViewValue = NULL;\n\t\t}\n\t\t$this->KDCARABAYAR->ViewCustomAttributes = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->ViewValue = $this->NOJAMINAN->CurrentValue;\n\t\t$this->NOJAMINAN->ViewCustomAttributes = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->ViewValue = $this->SHIFT->CurrentValue;\n\t\t$this->SHIFT->ViewCustomAttributes = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->ViewValue = $this->STATUS->CurrentValue;\n\t\t$this->STATUS->ViewCustomAttributes = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->ViewValue = $this->KETERANGAN_STATUS->CurrentValue;\n\t\t$this->KETERANGAN_STATUS->ViewCustomAttributes = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->ViewValue = $this->PASIENBARU->CurrentValue;\n\t\t$this->PASIENBARU->ViewCustomAttributes = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->ViewValue = $this->NIP->CurrentValue;\n\t\t$this->NIP->ViewCustomAttributes = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->ViewValue = $this->MASUKPOLY->CurrentValue;\n\t\t$this->MASUKPOLY->ViewValue = ew_FormatDateTime($this->MASUKPOLY->ViewValue, 4);\n\t\t$this->MASUKPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->ViewValue = $this->KELUARPOLY->CurrentValue;\n\t\t$this->KELUARPOLY->ViewValue = ew_FormatDateTime($this->KELUARPOLY->ViewValue, 4);\n\t\t$this->KELUARPOLY->ViewCustomAttributes = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->ViewValue = $this->KETRUJUK->CurrentValue;\n\t\t$this->KETRUJUK->ViewCustomAttributes = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->ViewValue = $this->KETBAYAR->CurrentValue;\n\t\t$this->KETBAYAR->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewValue = $this->PENANGGUNGJAWAB_NAMA->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_NAMA->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewValue = $this->PENANGGUNGJAWAB_HUBUNGAN->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewValue = $this->PENANGGUNGJAWAB_ALAMAT->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->ViewCustomAttributes = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewValue = $this->PENANGGUNGJAWAB_PHONE->CurrentValue;\n\t\t$this->PENANGGUNGJAWAB_PHONE->ViewCustomAttributes = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->ViewValue = $this->JAMREG->CurrentValue;\n\t\t$this->JAMREG->ViewValue = ew_FormatDateTime($this->JAMREG->ViewValue, 0);\n\t\t$this->JAMREG->ViewCustomAttributes = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->ViewValue = $this->BATAL->CurrentValue;\n\t\t$this->BATAL->ViewCustomAttributes = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->ViewValue = $this->NO_SJP->CurrentValue;\n\t\t$this->NO_SJP->ViewCustomAttributes = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->ViewValue = $this->NO_PESERTA->CurrentValue;\n\t\t$this->NO_PESERTA->ViewCustomAttributes = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->ViewValue = $this->NOKARTU->CurrentValue;\n\t\t$this->NOKARTU->ViewCustomAttributes = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->ViewValue = $this->TANGGAL_SEP->CurrentValue;\n\t\t$this->TANGGAL_SEP->ViewValue = ew_FormatDateTime($this->TANGGAL_SEP->ViewValue, 0);\n\t\t$this->TANGGAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = $this->TANGGALRUJUK_SEP->CurrentValue;\n\t\t$this->TANGGALRUJUK_SEP->ViewValue = ew_FormatDateTime($this->TANGGALRUJUK_SEP->ViewValue, 0);\n\t\t$this->TANGGALRUJUK_SEP->ViewCustomAttributes = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->ViewValue = $this->KELASRAWAT_SEP->CurrentValue;\n\t\t$this->KELASRAWAT_SEP->ViewCustomAttributes = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->ViewValue = $this->MINTA_RUJUKAN->CurrentValue;\n\t\t$this->MINTA_RUJUKAN->ViewCustomAttributes = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->ViewValue = $this->NORUJUKAN_SEP->CurrentValue;\n\t\t$this->NORUJUKAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->ViewValue = $this->PPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->PPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewValue = $this->NAMAPPKRUJUKANASAL_SEP->CurrentValue;\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->ViewValue = $this->PPKPELAYANAN_SEP->CurrentValue;\n\t\t$this->PPKPELAYANAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->ViewValue = $this->JENISPERAWATAN_SEP->CurrentValue;\n\t\t$this->JENISPERAWATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->ViewValue = $this->CATATAN_SEP->CurrentValue;\n\t\t$this->CATATAN_SEP->ViewCustomAttributes = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->ViewValue = $this->DIAGNOSAAWAL_SEP->CurrentValue;\n\t\t$this->DIAGNOSAAWAL_SEP->ViewCustomAttributes = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->ViewValue = $this->NAMADIAGNOSA_SEP->CurrentValue;\n\t\t$this->NAMADIAGNOSA_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->ViewValue = $this->LAKALANTAS_SEP->CurrentValue;\n\t\t$this->LAKALANTAS_SEP->ViewCustomAttributes = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->ViewValue = $this->LOKASILAKALANTAS->CurrentValue;\n\t\t$this->LOKASILAKALANTAS->ViewCustomAttributes = \"\";\n\n\t\t// USER\n\t\t$this->USER->ViewValue = $this->USER->CurrentValue;\n\t\t$this->USER->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// bulan\n\t\tif (strval($this->bulan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`bulan_id`\" . ew_SearchString(\"=\", $this->bulan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `bulan_id`, `bulan_nama` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `l_bulan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->bulan->LookupFilters = array();\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->bulan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->bulan->ViewValue = $this->bulan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->bulan->ViewValue = NULL;\n\t\t}\n\t\t$this->bulan->ViewCustomAttributes = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->ViewValue = $this->tahun->CurrentValue;\n\t\t$this->tahun->ViewCustomAttributes = \"\";\n\n\t\t// IDXDAFTAR\n\t\t$this->IDXDAFTAR->LinkCustomAttributes = \"\";\n\t\t$this->IDXDAFTAR->HrefValue = \"\";\n\t\t$this->IDXDAFTAR->TooltipValue = \"\";\n\n\t\t// TGLREG\n\t\t$this->TGLREG->LinkCustomAttributes = \"\";\n\t\t$this->TGLREG->HrefValue = \"\";\n\t\t$this->TGLREG->TooltipValue = \"\";\n\n\t\t// NOMR\n\t\t$this->NOMR->LinkCustomAttributes = \"\";\n\t\t$this->NOMR->HrefValue = \"\";\n\t\t$this->NOMR->TooltipValue = \"\";\n\n\t\t// KETERANGAN\n\t\t$this->KETERANGAN->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN->HrefValue = \"\";\n\t\t$this->KETERANGAN->TooltipValue = \"\";\n\n\t\t// NOKARTU_BPJS\n\t\t$this->NOKARTU_BPJS->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU_BPJS->HrefValue = \"\";\n\t\t$this->NOKARTU_BPJS->TooltipValue = \"\";\n\n\t\t// NOKTP\n\t\t$this->NOKTP->LinkCustomAttributes = \"\";\n\t\t$this->NOKTP->HrefValue = \"\";\n\t\t$this->NOKTP->TooltipValue = \"\";\n\n\t\t// KDDOKTER\n\t\t$this->KDDOKTER->LinkCustomAttributes = \"\";\n\t\t$this->KDDOKTER->HrefValue = \"\";\n\t\t$this->KDDOKTER->TooltipValue = \"\";\n\n\t\t// KDPOLY\n\t\t$this->KDPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KDPOLY->HrefValue = \"\";\n\t\t$this->KDPOLY->TooltipValue = \"\";\n\n\t\t// KDRUJUK\n\t\t$this->KDRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KDRUJUK->HrefValue = \"\";\n\t\t$this->KDRUJUK->TooltipValue = \"\";\n\n\t\t// KDCARABAYAR\n\t\t$this->KDCARABAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KDCARABAYAR->HrefValue = \"\";\n\t\t$this->KDCARABAYAR->TooltipValue = \"\";\n\n\t\t// NOJAMINAN\n\t\t$this->NOJAMINAN->LinkCustomAttributes = \"\";\n\t\t$this->NOJAMINAN->HrefValue = \"\";\n\t\t$this->NOJAMINAN->TooltipValue = \"\";\n\n\t\t// SHIFT\n\t\t$this->SHIFT->LinkCustomAttributes = \"\";\n\t\t$this->SHIFT->HrefValue = \"\";\n\t\t$this->SHIFT->TooltipValue = \"\";\n\n\t\t// STATUS\n\t\t$this->STATUS->LinkCustomAttributes = \"\";\n\t\t$this->STATUS->HrefValue = \"\";\n\t\t$this->STATUS->TooltipValue = \"\";\n\n\t\t// KETERANGAN_STATUS\n\t\t$this->KETERANGAN_STATUS->LinkCustomAttributes = \"\";\n\t\t$this->KETERANGAN_STATUS->HrefValue = \"\";\n\t\t$this->KETERANGAN_STATUS->TooltipValue = \"\";\n\n\t\t// PASIENBARU\n\t\t$this->PASIENBARU->LinkCustomAttributes = \"\";\n\t\t$this->PASIENBARU->HrefValue = \"\";\n\t\t$this->PASIENBARU->TooltipValue = \"\";\n\n\t\t// NIP\n\t\t$this->NIP->LinkCustomAttributes = \"\";\n\t\t$this->NIP->HrefValue = \"\";\n\t\t$this->NIP->TooltipValue = \"\";\n\n\t\t// MASUKPOLY\n\t\t$this->MASUKPOLY->LinkCustomAttributes = \"\";\n\t\t$this->MASUKPOLY->HrefValue = \"\";\n\t\t$this->MASUKPOLY->TooltipValue = \"\";\n\n\t\t// KELUARPOLY\n\t\t$this->KELUARPOLY->LinkCustomAttributes = \"\";\n\t\t$this->KELUARPOLY->HrefValue = \"\";\n\t\t$this->KELUARPOLY->TooltipValue = \"\";\n\n\t\t// KETRUJUK\n\t\t$this->KETRUJUK->LinkCustomAttributes = \"\";\n\t\t$this->KETRUJUK->HrefValue = \"\";\n\t\t$this->KETRUJUK->TooltipValue = \"\";\n\n\t\t// KETBAYAR\n\t\t$this->KETBAYAR->LinkCustomAttributes = \"\";\n\t\t$this->KETBAYAR->HrefValue = \"\";\n\t\t$this->KETBAYAR->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_NAMA\n\t\t$this->PENANGGUNGJAWAB_NAMA->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_NAMA->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_HUBUNGAN\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_HUBUNGAN->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_ALAMAT\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_ALAMAT->TooltipValue = \"\";\n\n\t\t// PENANGGUNGJAWAB_PHONE\n\t\t$this->PENANGGUNGJAWAB_PHONE->LinkCustomAttributes = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->HrefValue = \"\";\n\t\t$this->PENANGGUNGJAWAB_PHONE->TooltipValue = \"\";\n\n\t\t// JAMREG\n\t\t$this->JAMREG->LinkCustomAttributes = \"\";\n\t\t$this->JAMREG->HrefValue = \"\";\n\t\t$this->JAMREG->TooltipValue = \"\";\n\n\t\t// BATAL\n\t\t$this->BATAL->LinkCustomAttributes = \"\";\n\t\t$this->BATAL->HrefValue = \"\";\n\t\t$this->BATAL->TooltipValue = \"\";\n\n\t\t// NO_SJP\n\t\t$this->NO_SJP->LinkCustomAttributes = \"\";\n\t\t$this->NO_SJP->HrefValue = \"\";\n\t\t$this->NO_SJP->TooltipValue = \"\";\n\n\t\t// NO_PESERTA\n\t\t$this->NO_PESERTA->LinkCustomAttributes = \"\";\n\t\t$this->NO_PESERTA->HrefValue = \"\";\n\t\t$this->NO_PESERTA->TooltipValue = \"\";\n\n\t\t// NOKARTU\n\t\t$this->NOKARTU->LinkCustomAttributes = \"\";\n\t\t$this->NOKARTU->HrefValue = \"\";\n\t\t$this->NOKARTU->TooltipValue = \"\";\n\n\t\t// TANGGAL_SEP\n\t\t$this->TANGGAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGAL_SEP->HrefValue = \"\";\n\t\t$this->TANGGAL_SEP->TooltipValue = \"\";\n\n\t\t// TANGGALRUJUK_SEP\n\t\t$this->TANGGALRUJUK_SEP->LinkCustomAttributes = \"\";\n\t\t$this->TANGGALRUJUK_SEP->HrefValue = \"\";\n\t\t$this->TANGGALRUJUK_SEP->TooltipValue = \"\";\n\n\t\t// KELASRAWAT_SEP\n\t\t$this->KELASRAWAT_SEP->LinkCustomAttributes = \"\";\n\t\t$this->KELASRAWAT_SEP->HrefValue = \"\";\n\t\t$this->KELASRAWAT_SEP->TooltipValue = \"\";\n\n\t\t// MINTA_RUJUKAN\n\t\t$this->MINTA_RUJUKAN->LinkCustomAttributes = \"\";\n\t\t$this->MINTA_RUJUKAN->HrefValue = \"\";\n\t\t$this->MINTA_RUJUKAN->TooltipValue = \"\";\n\n\t\t// NORUJUKAN_SEP\n\t\t$this->NORUJUKAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NORUJUKAN_SEP->HrefValue = \"\";\n\t\t$this->NORUJUKAN_SEP->TooltipValue = \"\";\n\n\t\t// PPKRUJUKANASAL_SEP\n\t\t$this->PPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->PPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMAPPKRUJUKANASAL_SEP\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->HrefValue = \"\";\n\t\t$this->NAMAPPKRUJUKANASAL_SEP->TooltipValue = \"\";\n\n\t\t// PPKPELAYANAN_SEP\n\t\t$this->PPKPELAYANAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->PPKPELAYANAN_SEP->HrefValue = \"\";\n\t\t$this->PPKPELAYANAN_SEP->TooltipValue = \"\";\n\n\t\t// JENISPERAWATAN_SEP\n\t\t$this->JENISPERAWATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->JENISPERAWATAN_SEP->HrefValue = \"\";\n\t\t$this->JENISPERAWATAN_SEP->TooltipValue = \"\";\n\n\t\t// CATATAN_SEP\n\t\t$this->CATATAN_SEP->LinkCustomAttributes = \"\";\n\t\t$this->CATATAN_SEP->HrefValue = \"\";\n\t\t$this->CATATAN_SEP->TooltipValue = \"\";\n\n\t\t// DIAGNOSAAWAL_SEP\n\t\t$this->DIAGNOSAAWAL_SEP->LinkCustomAttributes = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->HrefValue = \"\";\n\t\t$this->DIAGNOSAAWAL_SEP->TooltipValue = \"\";\n\n\t\t// NAMADIAGNOSA_SEP\n\t\t$this->NAMADIAGNOSA_SEP->LinkCustomAttributes = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->HrefValue = \"\";\n\t\t$this->NAMADIAGNOSA_SEP->TooltipValue = \"\";\n\n\t\t// LAKALANTAS_SEP\n\t\t$this->LAKALANTAS_SEP->LinkCustomAttributes = \"\";\n\t\t$this->LAKALANTAS_SEP->HrefValue = \"\";\n\t\t$this->LAKALANTAS_SEP->TooltipValue = \"\";\n\n\t\t// LOKASILAKALANTAS\n\t\t$this->LOKASILAKALANTAS->LinkCustomAttributes = \"\";\n\t\t$this->LOKASILAKALANTAS->HrefValue = \"\";\n\t\t$this->LOKASILAKALANTAS->TooltipValue = \"\";\n\n\t\t// USER\n\t\t$this->USER->LinkCustomAttributes = \"\";\n\t\t$this->USER->HrefValue = \"\";\n\t\t$this->USER->TooltipValue = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t$this->tanggal->HrefValue = \"\";\n\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t// bulan\n\t\t$this->bulan->LinkCustomAttributes = \"\";\n\t\t$this->bulan->HrefValue = \"\";\n\t\t$this->bulan->TooltipValue = \"\";\n\n\t\t// tahun\n\t\t$this->tahun->LinkCustomAttributes = \"\";\n\t\t$this->tahun->HrefValue = \"\";\n\t\t$this->tahun->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function ddrowList(){\n\n\t\tdd($this->rowlist);\n\n\t}", "function RenderListRow() {\n\t\tglobal $conn, $Security;\n\n\t\t// Call Row Rendering event\n\t\t$this->Row_Rendering();\n\n // Common render codes\n\t\t// C_EVENT_ID\n\n\t\t$this->C_EVENT_ID->CellCssStyle = \"\"; $this->C_EVENT_ID->CellCssClass = \"\";\n\t\t$this->C_EVENT_ID->CellAttrs = array(); $this->C_EVENT_ID->ViewAttrs = array(); $this->C_EVENT_ID->EditAttrs = array();\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->CellCssStyle = \"\"; $this->FK_CONGTY_ID->CellCssClass = \"\";\n\t\t$this->FK_CONGTY_ID->CellAttrs = array(); $this->FK_CONGTY_ID->ViewAttrs = array(); $this->FK_CONGTY_ID->EditAttrs = array();\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->CellCssStyle = \"\"; $this->C_TYPE_EVENT->CellCssClass = \"\";\n\t\t$this->C_TYPE_EVENT->CellAttrs = array(); $this->C_TYPE_EVENT->ViewAttrs = array(); $this->C_TYPE_EVENT->EditAttrs = array();\n\n\t\t// C_POST\n\t\t$this->C_POST->CellCssStyle = \"\"; $this->C_POST->CellCssClass = \"\";\n\t\t$this->C_POST->CellAttrs = array(); $this->C_POST->ViewAttrs = array(); $this->C_POST->EditAttrs = array();\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->CellCssStyle = \"\"; $this->C_DATETIME_BEGIN->CellCssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->CellAttrs = array(); $this->C_DATETIME_BEGIN->ViewAttrs = array(); $this->C_DATETIME_BEGIN->EditAttrs = array();\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->CellCssStyle = \"\"; $this->C_DATETIME_END->CellCssClass = \"\";\n\t\t$this->C_DATETIME_END->CellAttrs = array(); $this->C_DATETIME_END->ViewAttrs = array(); $this->C_DATETIME_END->EditAttrs = array();\n\n\t\t// C_ODER\n\t\t$this->C_ODER->CellCssStyle = \"\"; $this->C_ODER->CellCssClass = \"\";\n\t\t$this->C_ODER->CellAttrs = array(); $this->C_ODER->ViewAttrs = array(); $this->C_ODER->EditAttrs = array();\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->CellCssStyle = \"\"; $this->C_USER_ADD->CellCssClass = \"\";\n\t\t$this->C_USER_ADD->CellAttrs = array(); $this->C_USER_ADD->ViewAttrs = array(); $this->C_USER_ADD->EditAttrs = array();\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->CellCssStyle = \"\"; $this->C_ADD_TIME->CellCssClass = \"\";\n\t\t$this->C_ADD_TIME->CellAttrs = array(); $this->C_ADD_TIME->ViewAttrs = array(); $this->C_ADD_TIME->EditAttrs = array();\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->CellCssStyle = \"\"; $this->C_USER_EDIT->CellCssClass = \"\";\n\t\t$this->C_USER_EDIT->CellAttrs = array(); $this->C_USER_EDIT->ViewAttrs = array(); $this->C_USER_EDIT->EditAttrs = array();\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->CellCssStyle = \"\"; $this->C_EDIT_TIME->CellCssClass = \"\";\n\t\t$this->C_EDIT_TIME->CellAttrs = array(); $this->C_EDIT_TIME->ViewAttrs = array(); $this->C_EDIT_TIME->EditAttrs = array();\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->CellCssStyle = \"\"; $this->C_ACTIVE_LEVELSITE->CellCssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CellAttrs = array(); $this->C_ACTIVE_LEVELSITE->ViewAttrs = array(); $this->C_ACTIVE_LEVELSITE->EditAttrs = array();\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->CellCssStyle = \"\"; $this->C_TIME_ACTIVE->CellCssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->CellAttrs = array(); $this->C_TIME_ACTIVE->ViewAttrs = array(); $this->C_TIME_ACTIVE->EditAttrs = array();\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->CellCssStyle = \"\"; $this->C_SEND_MAIL->CellCssClass = \"\";\n\t\t$this->C_SEND_MAIL->CellAttrs = array(); $this->C_SEND_MAIL->ViewAttrs = array(); $this->C_SEND_MAIL->EditAttrs = array();\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->CellCssStyle = \"\"; $this->C_FK_BROWSE->CellCssClass = \"\";\n\t\t$this->C_FK_BROWSE->CellAttrs = array(); $this->C_FK_BROWSE->ViewAttrs = array(); $this->C_FK_BROWSE->EditAttrs = array();\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->CellCssStyle = \"\"; $this->FK_ARRAY_TINBAI->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CellAttrs = array(); $this->FK_ARRAY_TINBAI->ViewAttrs = array(); $this->FK_ARRAY_TINBAI->EditAttrs = array();\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->CellCssStyle = \"\"; $this->FK_ARRAY_CONGTY->CellCssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CellAttrs = array(); $this->FK_ARRAY_CONGTY->ViewAttrs = array(); $this->FK_ARRAY_CONGTY->EditAttrs = array();\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->ViewValue = $this->C_EVENT_ID->CurrentValue;\n\t\t$this->C_EVENT_ID->CssStyle = \"\";\n\t\t$this->C_EVENT_ID->CssClass = \"\";\n\t\t$this->C_EVENT_ID->ViewCustomAttributes = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\tif (strval($this->FK_CONGTY_ID->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`PK_MACONGTY` = \" . ew_AdjustSql($this->FK_CONGTY_ID->CurrentValue) . \"\";\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $rswrk->fields('C_TENCONGTY');\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_CONGTY_ID->ViewValue = $this->FK_CONGTY_ID->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_CONGTY_ID->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_CONGTY_ID->CssStyle = \"\";\n\t\t$this->FK_CONGTY_ID->CssClass = \"\";\n\t\t$this->FK_CONGTY_ID->ViewCustomAttributes = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\tif (strval($this->C_TYPE_EVENT->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_TYPE_EVENT->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai Popup\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien theo bai viet\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"3\":\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = \"Loai su kien lien ket\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_TYPE_EVENT->ViewValue = $this->C_TYPE_EVENT->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_TYPE_EVENT->ViewValue = NULL;\n\t\t}\n\t\t$this->C_TYPE_EVENT->CssStyle = \"\";\n\t\t$this->C_TYPE_EVENT->CssClass = \"\";\n\t\t$this->C_TYPE_EVENT->ViewCustomAttributes = \"\";\n\n\t\t// C_POST\n\t\tif (strval($this->C_POST->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_POST->CurrentValue) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang chu\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"2\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"trang tuyen sinh\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"\":\n\t\t\t\t\t$this->C_POST->ViewValue = \"\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_POST->ViewValue = $this->C_POST->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_POST->ViewValue = NULL;\n\t\t}\n\t\t$this->C_POST->CssStyle = \"\";\n\t\t$this->C_POST->CssClass = \"\";\n\t\t$this->C_POST->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->ViewValue = $this->C_DATETIME_BEGIN->CurrentValue;\n\t\t$this->C_DATETIME_BEGIN->ViewValue = ew_FormatDateTime($this->C_DATETIME_BEGIN->ViewValue, 7);\n\t\t$this->C_DATETIME_BEGIN->CssStyle = \"\";\n\t\t$this->C_DATETIME_BEGIN->CssClass = \"\";\n\t\t$this->C_DATETIME_BEGIN->ViewCustomAttributes = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->ViewValue = $this->C_DATETIME_END->CurrentValue;\n\t\t$this->C_DATETIME_END->ViewValue = ew_FormatDateTime($this->C_DATETIME_END->ViewValue, 7);\n\t\t$this->C_DATETIME_END->CssStyle = \"\";\n\t\t$this->C_DATETIME_END->CssClass = \"\";\n\t\t$this->C_DATETIME_END->ViewCustomAttributes = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->ViewValue = $this->C_ODER->CurrentValue;\n\t\t$this->C_ODER->ViewValue = ew_FormatDateTime($this->C_ODER->ViewValue, 7);\n\t\t$this->C_ODER->CssStyle = \"\";\n\t\t$this->C_ODER->CssClass = \"\";\n\t\t$this->C_ODER->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->ViewValue = $this->C_USER_ADD->CurrentValue;\n\t\t$this->C_USER_ADD->CssStyle = \"\";\n\t\t$this->C_USER_ADD->CssClass = \"\";\n\t\t$this->C_USER_ADD->ViewCustomAttributes = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->ViewValue = $this->C_ADD_TIME->CurrentValue;\n\t\t$this->C_ADD_TIME->ViewValue = ew_FormatDateTime($this->C_ADD_TIME->ViewValue, 7);\n\t\t$this->C_ADD_TIME->CssStyle = \"\";\n\t\t$this->C_ADD_TIME->CssClass = \"\";\n\t\t$this->C_ADD_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->ViewValue = $this->C_USER_EDIT->CurrentValue;\n\t\t$this->C_USER_EDIT->CssStyle = \"\";\n\t\t$this->C_USER_EDIT->CssClass = \"\";\n\t\t$this->C_USER_EDIT->ViewCustomAttributes = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->ViewValue = $this->C_EDIT_TIME->CurrentValue;\n\t\t$this->C_EDIT_TIME->ViewValue = ew_FormatDateTime($this->C_EDIT_TIME->ViewValue, 7);\n\t\t$this->C_EDIT_TIME->CssStyle = \"\";\n\t\t$this->C_EDIT_TIME->CssClass = \"\";\n\t\t$this->C_EDIT_TIME->ViewCustomAttributes = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\tif (strval($this->C_ACTIVE_LEVELSITE->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_ACTIVE_LEVELSITE->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"khong kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = \"Kich hoat\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = $this->C_ACTIVE_LEVELSITE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_ACTIVE_LEVELSITE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_ACTIVE_LEVELSITE->CssStyle = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->CssClass = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->ViewCustomAttributes = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->ViewValue = $this->C_TIME_ACTIVE->CurrentValue;\n\t\t$this->C_TIME_ACTIVE->ViewValue = ew_FormatDateTime($this->C_TIME_ACTIVE->ViewValue, 7);\n\t\t$this->C_TIME_ACTIVE->CssStyle = \"\";\n\t\t$this->C_TIME_ACTIVE->CssClass = \"\";\n\t\t$this->C_TIME_ACTIVE->ViewCustomAttributes = \"\";\n\n\t\t// C_SEND_MAIL\n\t\tif (strval($this->C_SEND_MAIL->CurrentValue) <> \"\") {\n\t\t\tswitch ($this->C_SEND_MAIL->CurrentValue) {\n\t\t\t\tcase \"0\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"khong gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"1\":\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = \"gui mail\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->C_SEND_MAIL->ViewValue = $this->C_SEND_MAIL->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_SEND_MAIL->ViewValue = NULL;\n\t\t}\n\t\t$this->C_SEND_MAIL->CssStyle = \"\";\n\t\t$this->C_SEND_MAIL->CssClass = \"\";\n\t\t$this->C_SEND_MAIL->ViewCustomAttributes = \"\";\n\n\t\t// C_FK_BROWSE\n\t\tif (strval($this->C_FK_BROWSE->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->C_FK_BROWSE->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`C_HOTEN` = '\" . ew_AdjustSql(trim($wrk)) . \"'\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_EMAIL` FROM `t_nguoidung`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->C_FK_BROWSE->ViewValue .= $rswrk->fields('C_EMAIL');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->C_FK_BROWSE->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->C_FK_BROWSE->ViewValue = $this->C_FK_BROWSE->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->C_FK_BROWSE->ViewValue = NULL;\n\t\t}\n\t\t$this->C_FK_BROWSE->CssStyle = \"\";\n\t\t$this->C_FK_BROWSE->CssClass = \"\";\n\t\t$this->C_FK_BROWSE->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\tif (strval($this->FK_ARRAY_TINBAI->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_TINBAI->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_TINBAI_ID` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TITLE` FROM `t_tinbai_levelsite`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue .= $rswrk->fields('C_TITLE');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_TINBAI->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = $this->FK_ARRAY_TINBAI->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_TINBAI->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_TINBAI->CssStyle = \"\";\n\t\t$this->FK_ARRAY_TINBAI->CssClass = \"\";\n\t\t$this->FK_ARRAY_TINBAI->ViewCustomAttributes = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\tif (strval($this->FK_ARRAY_CONGTY->CurrentValue) <> \"\") {\n\t\t\t$arwrk = explode(\",\", $this->FK_ARRAY_CONGTY->CurrentValue);\n\t\t\t$sFilterWrk = \"\";\n\t\t\tforeach ($arwrk as $wrk) {\n\t\t\t\tif ($sFilterWrk <> \"\") $sFilterWrk .= \" OR \";\n\t\t\t\t$sFilterWrk .= \"`PK_MACONGTY` = \" . ew_AdjustSql(trim($wrk)) . \"\";\n\t\t\t}\t\n\t\t$sSqlWrk = \"SELECT `C_TENCONGTY` FROM `t_congty`\";\n\t\t$sWhereWrk = \"\";\n\t\tif ($sFilterWrk <> \"\") {\n\t\t\tif ($sWhereWrk <> \"\") $sWhereWrk .= \" AND \";\n\t\t\t$sWhereWrk .= \"(\" . $sFilterWrk . \")\";\n\t\t}\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = $conn->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = \"\";\n\t\t\t\t$ari = 0;\n\t\t\t\twhile (!$rswrk->EOF) {\n\t\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue .= $rswrk->fields('C_TENCONGTY');\n\t\t\t\t\t$rswrk->MoveNext();\n\t\t\t\t\tif (!$rswrk->EOF) $this->FK_ARRAY_CONGTY->ViewValue .= ew_ViewOptionSeparator($ari); // Separate Options\n\t\t\t\t\t$ari++;\n\t\t\t\t}\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = $this->FK_ARRAY_CONGTY->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->FK_ARRAY_CONGTY->ViewValue = NULL;\n\t\t}\n\t\t$this->FK_ARRAY_CONGTY->CssStyle = \"\";\n\t\t$this->FK_ARRAY_CONGTY->CssClass = \"\";\n\t\t$this->FK_ARRAY_CONGTY->ViewCustomAttributes = \"\";\n\n\t\t// C_EVENT_ID\n\t\t$this->C_EVENT_ID->HrefValue = \"\";\n\t\t$this->C_EVENT_ID->TooltipValue = \"\";\n\n\t\t// FK_CONGTY_ID\n\t\t$this->FK_CONGTY_ID->HrefValue = \"\";\n\t\t$this->FK_CONGTY_ID->TooltipValue = \"\";\n\n\t\t// C_TYPE_EVENT\n\t\t$this->C_TYPE_EVENT->HrefValue = \"\";\n\t\t$this->C_TYPE_EVENT->TooltipValue = \"\";\n\n\t\t// C_POST\n\t\t$this->C_POST->HrefValue = \"\";\n\t\t$this->C_POST->TooltipValue = \"\";\n\n\t\t// C_DATETIME_BEGIN\n\t\t$this->C_DATETIME_BEGIN->HrefValue = \"\";\n\t\t$this->C_DATETIME_BEGIN->TooltipValue = \"\";\n\n\t\t// C_DATETIME_END\n\t\t$this->C_DATETIME_END->HrefValue = \"\";\n\t\t$this->C_DATETIME_END->TooltipValue = \"\";\n\n\t\t// C_ODER\n\t\t$this->C_ODER->HrefValue = \"\";\n\t\t$this->C_ODER->TooltipValue = \"\";\n\n\t\t// C_USER_ADD\n\t\t$this->C_USER_ADD->HrefValue = \"\";\n\t\t$this->C_USER_ADD->TooltipValue = \"\";\n\n\t\t// C_ADD_TIME\n\t\t$this->C_ADD_TIME->HrefValue = \"\";\n\t\t$this->C_ADD_TIME->TooltipValue = \"\";\n\n\t\t// C_USER_EDIT\n\t\t$this->C_USER_EDIT->HrefValue = \"\";\n\t\t$this->C_USER_EDIT->TooltipValue = \"\";\n\n\t\t// C_EDIT_TIME\n\t\t$this->C_EDIT_TIME->HrefValue = \"\";\n\t\t$this->C_EDIT_TIME->TooltipValue = \"\";\n\n\t\t// C_ACTIVE_LEVELSITE\n\t\t$this->C_ACTIVE_LEVELSITE->HrefValue = \"\";\n\t\t$this->C_ACTIVE_LEVELSITE->TooltipValue = \"\";\n\n\t\t// C_TIME_ACTIVE\n\t\t$this->C_TIME_ACTIVE->HrefValue = \"\";\n\t\t$this->C_TIME_ACTIVE->TooltipValue = \"\";\n\n\t\t// C_SEND_MAIL\n\t\t$this->C_SEND_MAIL->HrefValue = \"\";\n\t\t$this->C_SEND_MAIL->TooltipValue = \"\";\n\n\t\t// C_FK_BROWSE\n\t\t$this->C_FK_BROWSE->HrefValue = \"\";\n\t\t$this->C_FK_BROWSE->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_TINBAI\n\t\t$this->FK_ARRAY_TINBAI->HrefValue = \"\";\n\t\t$this->FK_ARRAY_TINBAI->TooltipValue = \"\";\n\n\t\t// FK_ARRAY_CONGTY\n\t\t$this->FK_ARRAY_CONGTY->HrefValue = \"\";\n\t\t$this->FK_ARRAY_CONGTY->TooltipValue = \"\";\n\n\t\t// Call Row Rendered event\n\t\t$this->Row_Rendered();\n\t}", "public function renderContentBody()\n {\n $models = array_values($this->dataProvider->getModels());\n $keys = $this->dataProvider->getKeys();\n $rows = [];\n foreach ($models as $index => $model) {\n $key = $keys[$index];\n if ($this->beforeRow !== null) {\n $row = call_user_func($this->beforeRow, $model, $key, $index, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n\n $rows[] = $this->renderBodyRow($model, $key, $index);\n\n if ($this->afterRow !== null) {\n $row = call_user_func($this->afterRow, $model, $key, $index, $this);\n if (!empty($row)) {\n $rows[] = $row;\n }\n }\n }\n return \"<ul class='product-list'>\\n\" . implode(\"\\n\", $rows) . \"\\n</ul>\";\n }", "private function addDetailsInRows()\n\t{\n\t\tforeach ($this->data_show as &$row)\n\t\t\tforeach ($this->data as $row_original)\n\t\t\t{\n\t\t\t\t$is_group = true;\n\t\t\t\t\n\t\t\t\tforeach ($this->col_group as $key)\n\t\t\t\t\tif($row[$key] != $row_original[$key])\n\t\t\t\t\t\t$is_group = false;\n\t\t\t\t\n\t\t\t\tif($is_group)\n\t\t\t\t{\n\t\t\t\t\t// total amount\n\t\t\t\t\tif($this->col_aggr_sum)\n\t\t\t\t\t\t$row[$this->col_aggr_sum] += $row_original[$this->col_aggr_sum];\n\t\t\t\t\t\n\t\t\t\t\t// add details\n\t\t\t\t\t$row_tmp = array();\n\t\t\t\t\t\n\t\t\t\t\tforeach ($this->data[0] as $col => $val)\n\t\t\t\t\t\tif(!in_array($col, $this->col_show) || $col == $this->col_aggr_sum)\n\t\t\t\t\t\t\t$row_tmp[$col] = $row_original[$col];\n\t\t\t\t\t\n\t\t\t\t\t$row['details'][] = $row_tmp;\n\t\t\t\t}\n\t\t\t}\n\t}", "private function build_item($config, $rows_full) { \n\t\t$rendered='';\n\t\t$item_count_total=0;\n\t\t$rows_current=array();\n\t\tif ($config!=null) {\n\t\t\tif ($config->groupies) {\n\t\t\t\t\n\t\t\t\t// loop over all fields for groupies\n\t\t\t\tforeach ($config->groupies->items as $groupie) {\n\t\t\t\t\t$groupie = $groupie->group;\n\t\t\t\t\t\n\t\t\t\t\t$rows=$rows_full;\n\t\t\t\t\t\n\t\t\t\t\t//filter by all fields provided\n\t\t\t\t\tif ($groupie->fields) {\n\t\t\t\t\t\t//$rows = $this->filter_similar($groupie->fields->items[0]->items, $rows_full);\t//this is AND not OR\n\t\t\t\t\t\t$rows_filter=$rows_full;\n\t\t\t\t\t\tforeach ($groupie->fields->items as $field)\n\t\t\t\t\t\t\t$rows_filter = $this->filter_similar($field->items, $rows_filter);\t//this is OR :-)\n\t\t\t\t\t\t$rows=$rows_filter;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//perform the groupby\n\t\t\t\t\tif ($groupie->groupby) {\n\t\t\t\t\t\tforeach ($groupie->groupby->items as $groupby) {\n\t\t\t\t\t\t\t//run over rows and chunk them into groups based on the groupby item, handing that off to recurse through for each\n\t\t\t\t\t\t\twhile (count($rows) > 0)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$rows_group=array();\n\t\t\t\t\t\t\t\t$rows_remaining=$rows;\n\t\t\t\t\t\t\t\t$offset=0;\n\t\t\t\t\t\t\t\tfor ($i = 0; $i < count($rows); $i++)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif ($rows[0][$groupby]==$rows[$i][$groupby]) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tarray_push($rows_group, $rows[$i]);\t\t//add row to the group of rows\n\t\t\t\t\t\t\t\t\t\t$rows_remaining = $this->RemoveElement($i+$offset,$rows_remaining);\t\t//remove row from remaining list\n\t\t\t\t\t\t\t\t\t\t$offset--;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t$rows=$rows_remaining;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$out = $this->build_item_data($groupie, $rows_group);\n\t\t\t\t\t\t\t\t$rendered.=$out['content'];\n\t\t\t\t\t\t\t\t$item_count_total+=$out['count'];\n\t\t\t\t\t\t\t\t$rows_current+=$out['rows'];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//no groupby needed\n\t\t\t\t\t\t$out = $this->build_item_data($groupie, $rows);\n\t\t\t\t\t\t$rendered.=$out['content'];\n\t\t\t\t\t\t$item_count_total+=$out['count'];\n\t\t\t\t\t\t$rows_current+=$out['rows'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t$out = array('content'=>$rendered, 'count'=>$item_count_total, 'rows'=>$rows_current);\n\t\treturn $out;\n\t}", "public function renderItems() {\n\n \t $caption = $this->renderCaption();\n \t $columnGroup = $this->renderColumnGroup();\n \t $tableHeader = $this->showHeader ? $this->renderTableHeader() : false;\n \t $tableBody = $this->renderTableBody();\n \t $tableFooter = $this->showFooter ? $this->renderTableFooter() : false;\n \t $content = array_filter([\n \t$caption,\n \t$columnGroup,\n \t$tableHeader,\n \t$tableFooter,\n \t$tableBody,\n \t ]);\n\n\t return self::html()->tag('table', array('options' => $this->tableOptions, 'content' => implode(\"\\n\", $content)), $this->tableOptions);\n }", "public function renderListContent() {}", "public function buildListLayout(): void\n {\n $this->addColumn('name', 3)\n ->addColumn('pseudo', 3)\n ->addColumn('role_id', 3)\n ->addColumn('created_at', 3);\n }", "public function addRow() {\n if ($this->linesCount >= 0)\n $this->addContent('</div>');\n $this->linesCount ++;\n $this->colunsCount = 0;\n $this->addContent('<div class=\"row\" >');\n }", "public function display_rows()\n {\n }", "public function display_rows()\n {\n }", "public function auto_build_list_tbody($data){\r\n\t\t$list_tbody = \"<tbody>\";\r\n\t\t$i = 1;\r\n\t\tforeach ($data as $row) {\r\n\t\t\t$list_tbody .= '<tr>' .\r\n\t\t\t\t\"<td>\" . $i++ . \"</td>\";\r\n\t\t\tforeach ($this->model->table_fields as $list_field) {\r\n\t\t\t\tif ($list_field->get_visible_grid()) {\r\n\t\t\t\t\t//if($list_field->get_type()==Column::$COLUMN_TYPE_SELECT)\r\n\t\t\t\t\tif ($list_field->get_foreing_key()) {\r\n\t\t\t\t\t\t$select_data = $list_field->get_fk_entity()->get_select_data($row[$list_field->get_name()]);\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $select_data[0]['name'] . \"</td>\";\r\n\t\t\t\t\t} else if ($list_field->get_type() == Column::$COLUMN_TYPE_PASS) {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . (str_repeat('*', strlen($row[$list_field->get_name()]))) . \"</td>\";\r\n\t\t\t\t\t} else if (Column::$COLUMN_TYPE_ICONPICKER) {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $row[$list_field->get_name()] .\r\n\t\t\t\t\t\t\t\" <i class='\" . $row[$list_field->get_name()] . \"'></i></td>\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$list_tbody .= \"<td>\" . $row[$list_field->get_name()] . \"</td>\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$list_tbody .= \"<td class='text-center'>\" . ($this->model->crud_config['can_update'] ?\r\n\t\t\t\t\t\tComponent::edit_button($this->model->table_name, $row[$this->model->id_field]) : '') . \r\n\t\t\t\t\t($this->model->crud_config['can_delete'] ?\r\n\t\t\t\t\t\tComponent::delete_button($this->model->table_name, $row[$this->model->id_field]) : '') .\r\n\t\t\t\t\"</td>\" .\r\n\t\t\t\t\"</tr>\";\r\n\r\n\t\t}\r\n\t\treturn $list_tbody . \"</tbody>\";\r\n\t}", "public function display_rows() {\n\n\t\t// Get the records registered in the prepare_items method\n\t\t$records = $this->items;\n\n\t\t// Get the columns registered in the get_columns and get_sortable_columns methods\n\t\tlist( $columns, $hidden ) = $this->get_column_info();\n\n\t\t// Loop for each record\n\t\tif ( ! empty( $records ) ) {\n\t\t\tforeach ( $records as $rec ) {\n\n\t\t\t\t// Open the line\n\t\t\t\techo '<tr id=\"record_' . $rec->ID . '\">';\n\t\t\t\tforeach ( $columns as $column_name => $column_display_name ) {\n\n\t\t\t\t\t// Style attributes for each col\n\t\t\t\t\t$class = \"class='$column_name column-$column_name'\";\n\t\t\t\t\t$style = '';\n\t\t\t\t\tif ( in_array( $column_name, $hidden ) ) {\n\t\t\t\t\t\t$style = ' style=\"display:none;\"';\n\t\t\t\t\t}\n\t\t\t\t\t$attributes = $class . $style;\n\n\t\t\t\t\tswitch ( $column_name ) {\n\t\t\t\t\t\tcase 'title':\n\t\t\t\t\t\t\t$edit_link = admin_url( 'admin.php?page=wo_edit_client&id=' . $rec->ID );\n\t\t\t\t\t\t\techo '<td ' . $attributes . '><strong><a href=\"' . $edit_link . '\" title=\"Edit\">' . stripslashes( $rec->post_title ) . '</a></strong>\n\t\t\t\t\t\t<div class=\"row-actions\">\n\t\t\t\t\t\t<span class=\"edit\"><a href=\"' . $edit_link . '\" title=\"' . __( 'Edit Client', 'wp-oauth' ) . '\">' . __( 'Edit', 'wp-oauth' ) . '</a> | </span>\n\t\t\t\t\t\t<span class=\"trash\"><a class=\"submitdelete\" title=\"' . __( 'delete this client', 'wp-oauth' ) . '\" onclick=\"wo_remove_client(\\'' . $rec->ID . '\\');\" href=\"#\">' . __( 'Delete', 'wp-oauth' ) . '</a> </span>';\n\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t// case \"user_id\": echo '<td '.$attributes.'>'.stripslashes($rec->user_id).'</td>'; break;\n\t\t\t\t\t\tcase 'client_id':\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . get_post_meta( $rec->ID, 'client_id', true ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Close the line\n\t\t\t\techo '</tr>';\n\t\t\t}\n\t\t}\n\t}", "function display_rows() {\r\n\r\n # Get the records registered in the prepare_items method\r\n $records = $this->items;\r\n\r\n //Loop for each record\r\n if(!empty($records)){foreach($records as $rec){\r\n $custom_data = unserialize($rec->custom_data);\r\n\r\n echo '<tr id=\"record_'.$rec->id.'\">';\r\n echo '<td>'.stripslashes($rec->created_on).'</td>';\r\n echo '<td>'.stripslashes($rec->type).'</td>';\r\n echo '<td>'.stripslashes($rec->ip).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['OS']['name']).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['browser']['name']).'</td>';\r\n echo '<td>'.stripslashes($custom_data['personal']['location']['name']).'</td>';\r\n echo '<td>\r\n <a href=\"\" data-post=\"action=detailed_log&type=' .$rec->type. '&id=' .$rec->id. '&detail=full&ip=' .$rec->ip. '\" data-type=\"modal\" data-toggle=\"tooltip\" title=\"Show details\"><div class=\"dashicons dashicons-list-view\"></div></a>\r\n <a href=\"admin.php?page=cybercure_security_detected_attacks&type=' .$rec->type. '&delete=' .$rec->id. '\" data-toggle=\"tooltip\" title=\"Delete entry\"><div class=\"dashicons dashicons-trash\"></div></a>\r\n </td></tr>';\r\n }}\r\n }", "function display_rows() {\n \n //Get the records registered in the prepare_items method\n $records = $this->items;\n \n //Get the columns registered in the get_columns and get_sortable_columns methods\n list( $columns, $hidden ) = $this->get_column_info();\n \n //Loop for each record\n if(!empty($records)){foreach($records as $rec){\n \n // Format the status output\n if ( strtotime($rec->until) <= 0 ) {\n $rec->until = false;\n } else {\n //$rec->until = __('Membership ended','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->until));\n $rec->until = '&nbsp;|&nbsp;Active until '.strftime('%Y-%m-%d',strtotime($rec->until));\n }\n $rec->since = __('Applied','wpwt').\": \".strftime('%Y-%m-%d',strtotime($rec->since));\n \n // Pre-define the edit link\n //$editlink = '/wp-admin/link.php?action=edit&link_id='.(int)$rec->link_id;\n\n //Open the line\n echo \"<tr id=\\\"record_\".$rec->groupID.\"\\\" class=\\\"row-active-\".$rec->active.\"\\\">\\n\";\n foreach ( $columns as $column_name => $column_display_name ) {\n \n //Style attributes for each col\n $class = \"class='$column_name column-$column_name'\";\n \n // Create output in cell\n switch ( $column_name ) {\n case \"col_what\": echo \"<td \".$class.\">\".$this->show_what($rec).\"</td>\\n\"; break;\n case \"col_user\": echo \"<td \".$class.\">\".$this->add_actions($rec).\"</td>\\n\"; break;\n case \"col_groupName\": echo \"<td \".$class.\">\".$rec->groupName.\"</td>\\n\"; break;\n case \"col_application\": echo \"<td \".$class.\">\".$rec->application\n .\"<br><b>\".$rec->since.\"</b></td>\\n\"; break;\n }\n }\n \n //Close the line\n echo \"</tr>\\n\";\n }}\n }", "public function getResultList()\n {\n /* @var $pager \\Sys25\\RnBase\\Backend\\Utility\\BEPager */\n $pager = $this->usePager() ? \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance(\n \\Sys25\\RnBase\\Backend\\Utility\\BEPager::class,\n $this->getSearcherId().'Pager',\n $this->getModule()->getName(),\n // @TODO: die PageId solle noch konfigurierbar gemacht werden.\n $pid = 0\n ) : null;\n\n list($fields, $options) = $this->getFieldsAndOptions();\n\n // Get counted data\n $cnt = $this->getCount($fields, $options);\n\n if ($pager) {\n $pager->setListSize($cnt);\n $pager->setOptions($options);\n }\n\n // Get data\n $search = $this->searchItems($fields, $options);\n $items = &$search['items'];\n $content = '';\n $this->showItems($content, $items, ['items_map' => $search['map']]);\n\n $data = [\n 'table' => $content,\n 'totalsize' => $cnt,\n 'items' => $items,\n ];\n\n if ($pager) {\n $pagerData = $pager->render();\n\n // der zusammengeführte Pager für die Ausgabe\n // nur wenn es auch Ergebnisse gibt. sonst reicht die noItemsFoundMsg\n $sPagerData = '';\n if ($cnt) {\n $sPagerData = $pagerData['limits'].' - '.$pagerData['pages'];\n }\n $data['pager'] = '<div class=\"pager\">'.$sPagerData.'</div>';\n }\n\n return $data;\n }", "function display_rows(){\n\n\t\t//Get the records registered in the prepare_items method\n\t\t$records = $this->items;\n\n\t\t//Get the columns registered in the get_columns and get_sortable_columns methods\n\t\tlist( $columns ) = $this->get_column_info();\n\n\t\t//Loop for each record\n\t\tif( ! empty( $records ) ){\n\n\t\t\tforeach( $records as $rec ){\n\n\t\t\t\t$position = ( $rec->post_order ) ? $rec->post_order : 0;\n\t\t\t\t$id = ( $rec->ID ) ? $rec->ID : 'N/A';\n\t\t\t\t$title = ( $rec->post_title ) ? $rec->post_title : 'N/A';\n\t\t\t\t$author = ( $rec->post_author ) ? $rec->post_author : 'N/A';\n\t\t\t\t$date = ( $rec->post_date ) ? $rec->post_date : 'N/A';\n\n\t\t\t\t//Open the line\n\t\t\t\techo '<tr id=\"record_' . $id . '\" class=\"draggable-tr\" data-order=\"' . $position . '\" data-post-id=\"' . $id . '\" draggable=\"true\">';\n\t\t\t\tforeach( $columns as $column_name => $column_display_name ){\n\n\n\t\t\t\t\t//Style attributes for each col\n\t\t\t\t\t$class = \"class='$column_name column-$column_name'\";\n\t\t\t\t\t$style = \"\";\n\t\t\t\t\tif( in_array( $column_name ) ){\n\t\t\t\t\t\t$style = ' style=\"display:none;\"';\n\t\t\t\t\t}\n\t\t\t\t\t$attributes = $class . $style;\n\n\n\t\t\t\t\t//Display the cell\n\t\t\t\t\tswitch( $column_name ){\n\t\t\t\t\t\tcase \"post_order\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $position ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_title\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $title ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_author\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( get_the_author_meta( 'nicename', $author ) ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"post_date\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . $date . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"ID\":\n\t\t\t\t\t\t\techo '<td ' . $attributes . '>' . stripslashes( $id ) . '</td>';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t}", "function genTotalRow(){\n\t\t//set our row to be the size of the first row, each cell set to 0\n\t\t$row = array();\n\t\t$row = array_pad($row, sizeof($this->table[0]), 0);\n\n\t\t//sum up the number of users per column\n\t\tforeach ($this->table as $rows) {\n\t\t\tforeach ($rows as $index => $cell) {\n\t\t\t\tif($cell == '&#x2713') \t{\n\t\t\t\t\t$row[$index]=$row[$index]+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t$row[0] = 'Total';\n\t\treturn $row;\n\t}", "function makelist($res) {\n\t\t$items=Array();\n\t\t$listItems=Array();\n\n\t\t// Make table header\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader ( 'type' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'brand' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'model' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'mileage' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'price' ), $this->conf['listView.']['headDataWrap1.'] );\n\t\t$listItems[] = $this->cObj->stdWrap ( $this->getFieldHeader_sortLink ( 'initial_registration' ), $this->conf['listView.']['headDataWrap1.'] );\n\n\t\t$items[] = $this->cObj->stdWrap ( implode( chr ( 10 ),$listItems ), $this->conf['listView.']['headWrap.'] );\n\n\t\t// Make list table rows\n\t\t$i = 1;\n\t\twhile($this->internal[\"currentRow\"] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\tif ( $i % 2 ){\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap1.' );\n\t\t\t}else{\n\t\t\t\t$items[]=$this->makeListItem( 'rowWrap2.' );\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\t$out = sprintf ('\n\t\t<div%s>\n\t\t\t%s\n\t\t</div>',\n\t\t\t$this->pi_classParam ( 'listrow' ),\n\t\t\t$this->cObj->stdWrap ( implode( chr ( 10 ),$items ), $this->conf['listView.']['resultWrap.'] )\n\t\t);\n\t\treturn $out;\n\t}", "function formatRow(){\n $this->hook('formatRow');\n }", "function aggregateList($fileCSV, $options) {\n\n\t\t//check if the choosed option exists. if not, display the initial data file\n\t\tif( !optionExists('aggregate-list', $options) || !optionExists('aggregate-list-glue', $options) )\n\t\t\treturn $fileCSV;\n\n\t\t//get the column choosed\n\t\t$column = array_column($fileCSV, $options['aggregate-list']);\n\t\t//get the glue choosed\n\t\t$glue = $options['aggregate-list-glue'];\n\n\t\t$string = '';\n\n\t\t$list = array_reduce($column, function($string, $column) use ($glue) {\n\t\t\t$string .= $column . $glue;\n\t\t\treturn $string;\t\n\t\t});\n\n\t\t//remove last glue\n\t\t$list = rtrim($list, $glue);\n\n\t\t//print the output\n\t\twrite('Aggregated list is: '.$list);\n\t\texit;\n\t}", "public function entryAdvancedList() {\n $content = [];\n\n $content['message'] = [\n '#markup' => $this->t('A more complex list of entries in the database. Only the entries with name = \"John\" and age older than 18 years are shown, the username of the person who created the entry is also shown.'),\n ];\n\n $headers = [\n $this->t('pid'),\n $this->t('uid'),\n $this->t('studentname'),\n $this->t('studentno'),\n $this->t('chapter'),\n\t $this->t('status'),\n ];\n\n $rows = [];\n foreach ($entries = $this->repository->advancedLoad() as $entry) {\n // Sanitize each entry.\n $rows[] = array_map('Drupal\\Component\\Utility\\Html::escape', $entries);\n }\n $content['table'] = [\n '#type' => 'table',\n '#header' => $headers,\n '#rows' => $rows,\n '#attributes' => ['id' => 'dbtng-example-advanced-list'],\n '#empty' => $this->t('No entries available.'),\n ];\n // Don't cache this page.\n //$content['#cache']['max-age'] = 0;\n return $content;\n }", "public function renderList()\n {\n $html = '';\n foreach ($this->data as $listItem) {\n $html .= $this->render($listItem);\n }\n return $html;\n }", "function addRow($csvArr, $tagsArr, $count) {\n $ret = '<row>';\n for ($index = 0; $index < $count; $index++) {\n $ret .= '<' . $tagsArr[$index] . ' val=\"' . trim($csvArr[$index]) . '\"/>';\n }\n $ret .= '</row>';\n return $ret;\n}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->total_gross->FormValue == $this->total_gross->CurrentValue && is_numeric(ew_StrToFloat($this->total_gross->CurrentValue)))\n\t\t\t$this->total_gross->CurrentValue = ew_StrToFloat($this->total_gross->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// row_id\n\n\t\t$this->row_id->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_date\n\t\t$this->auc_date->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_number\n\t\t$this->auc_number->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_place\n\t\t$this->auc_place->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// start_bid\n\t\t$this->start_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// close_bid\n\t\t$this->close_bid->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_notes\n\t\t// total_sack\n\n\t\t$this->total_sack->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_netto\n\t\t$this->total_netto->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// total_gross\n\t\t$this->total_gross->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// auc_status\n\t\t$this->auc_status->CellCssStyle = \"white-space: nowrap;\";\n\n\t\t// rate\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// auc_date\n\t\t$this->auc_date->ViewValue = $this->auc_date->CurrentValue;\n\t\t$this->auc_date->ViewValue = ew_FormatDateTime($this->auc_date->ViewValue, 7);\n\t\t$this->auc_date->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_date->ViewCustomAttributes = \"\";\n\n\t\t// auc_number\n\t\t$this->auc_number->ViewValue = $this->auc_number->CurrentValue;\n\t\t$this->auc_number->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_number->ViewCustomAttributes = \"\";\n\n\t\t// auc_place\n\t\t$this->auc_place->ViewValue = $this->auc_place->CurrentValue;\n\t\t$this->auc_place->ViewCustomAttributes = \"\";\n\n\t\t// start_bid\n\t\t$this->start_bid->ViewValue = $this->start_bid->CurrentValue;\n\t\t$this->start_bid->ViewValue = ew_FormatDateTime($this->start_bid->ViewValue, 11);\n\t\t$this->start_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->start_bid->ViewCustomAttributes = \"\";\n\n\t\t// close_bid\n\t\t$this->close_bid->ViewValue = $this->close_bid->CurrentValue;\n\t\t$this->close_bid->ViewValue = ew_FormatDateTime($this->close_bid->ViewValue, 11);\n\t\t$this->close_bid->CellCssStyle .= \"text-align: center;\";\n\t\t$this->close_bid->ViewCustomAttributes = \"\";\n\n\t\t// auc_notes\n\t\t$this->auc_notes->ViewValue = $this->auc_notes->CurrentValue;\n\t\t$this->auc_notes->ViewCustomAttributes = \"\";\n\n\t\t// total_sack\n\t\t$this->total_sack->ViewValue = $this->total_sack->CurrentValue;\n\t\t$this->total_sack->ViewValue = ew_FormatNumber($this->total_sack->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_sack->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_sack->ViewCustomAttributes = \"\";\n\n\t\t// total_netto\n\t\t$this->total_netto->ViewValue = $this->total_netto->CurrentValue;\n\t\t$this->total_netto->ViewValue = ew_FormatNumber($this->total_netto->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_netto->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_netto->ViewCustomAttributes = \"\";\n\n\t\t// total_gross\n\t\t$this->total_gross->ViewValue = $this->total_gross->CurrentValue;\n\t\t$this->total_gross->ViewValue = ew_FormatNumber($this->total_gross->ViewValue, 0, -2, -2, -2);\n\t\t$this->total_gross->CellCssStyle .= \"text-align: right;\";\n\t\t$this->total_gross->ViewCustomAttributes = \"\";\n\n\t\t// auc_status\n\t\tif (strval($this->auc_status->CurrentValue) <> \"\") {\n\t\t\t$this->auc_status->ViewValue = $this->auc_status->OptionCaption($this->auc_status->CurrentValue);\n\t\t} else {\n\t\t\t$this->auc_status->ViewValue = NULL;\n\t\t}\n\t\t$this->auc_status->CellCssStyle .= \"text-align: center;\";\n\t\t$this->auc_status->ViewCustomAttributes = \"\";\n\n\t\t// rate\n\t\t$this->rate->ViewValue = $this->rate->CurrentValue;\n\t\t$this->rate->ViewCustomAttributes = \"\";\n\n\t\t\t// auc_number\n\t\t\t$this->auc_number->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_number->HrefValue = \"\";\n\t\t\t$this->auc_number->TooltipValue = \"\";\n\n\t\t\t// auc_place\n\t\t\t$this->auc_place->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_place->HrefValue = \"\";\n\t\t\t$this->auc_place->TooltipValue = \"\";\n\n\t\t\t// start_bid\n\t\t\t$this->start_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->start_bid->HrefValue = \"\";\n\t\t\t$this->start_bid->TooltipValue = \"\";\n\n\t\t\t// close_bid\n\t\t\t$this->close_bid->LinkCustomAttributes = \"\";\n\t\t\t$this->close_bid->HrefValue = \"\";\n\t\t\t$this->close_bid->TooltipValue = \"\";\n\n\t\t\t// auc_notes\n\t\t\t$this->auc_notes->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_notes->HrefValue = \"\";\n\t\t\t$this->auc_notes->TooltipValue = \"\";\n\n\t\t\t// total_sack\n\t\t\t$this->total_sack->LinkCustomAttributes = \"\";\n\t\t\t$this->total_sack->HrefValue = \"\";\n\t\t\t$this->total_sack->TooltipValue = \"\";\n\n\t\t\t// total_gross\n\t\t\t$this->total_gross->LinkCustomAttributes = \"\";\n\t\t\t$this->total_gross->HrefValue = \"\";\n\t\t\t$this->total_gross->TooltipValue = \"\";\n\n\t\t\t// auc_status\n\t\t\t$this->auc_status->LinkCustomAttributes = \"\";\n\t\t\t$this->auc_status->HrefValue = \"\";\n\t\t\t$this->auc_status->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function getListSums(&$conf,&$sql,&$content,&$tpl,&$DEBUG) {\n\t\t//echo __METHOD__.\":displayListScreen 0 $DEBUG\";\n\t\tif ($conf['list.']['sumFields']) {\n\t\t\t$table=$conf['table'];\n\t\t\t$sumFields = '';\n\t\t\t$sumSQLFields = '';\n\t\t\t$somme = 0;\n\t\t\t$sumFields = explode(',', $conf['list.']['sumFields']);\n\t\t\tforeach($sumFields as $fieldName) {\n\t\t\t\tif ($conf['list.']['sqlcalcfields.'][$fieldName]) {\n\t\t\t\t\t$calcField=$conf['list.']['sqlcalcfields.'][$fieldName]; // TO BE IMPROVED\n\t\t\t\t\tif ($calcField) {\n\t\t\t\t\t\tif (preg_match(\"/min\\(|max\\(|count\\(|sum\\(|avg\\(/i\",$calcField)) {\n\t\t\t\t\t\t\t// we test for group by functions\n\t\t\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",$calcField as 'sum_$fieldName'\":\"$calcField as 'sum_$fieldName'\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",sum($calcField) as 'sum_$fieldName'\":\"sum($calcField) as 'sum_$fieldName'\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$fieldAlias=$this->metafeeditlib->xeldAlias($table,$fieldName,$conf);\n\t\t\t\t\t$sumSQLFields.=$sumSQLFields?\",sum($fieldAlias) as 'sum_$fieldName'\":\"sum($fieldAlias) as 'sum_$fieldName'\";\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t$sumSQLFields.=', count(*) as metafeeditnbelts';\n\t\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery($sumSQLFields, $sql['fromTables'], '1 '.$sql['where']);\n\t\t\tif ($conf['debug.']['sql']) $this->metafeeditlib->debug('DisplayList Sum SQL ',$GLOBALS['TYPO3_DB']->SELECTquery($sumSQLFields.$sql['gbFields'], $sql['fromTables'], '1 '.$sql['where']),$DEBUG);\n\t\t\t//echo __METHOD__.\":displayListScreen 5 $DEBUG\";\n\t\t\t$resu=$GLOBALS['TYPO3_DB']->sql_num_rows($res);\n\t\t\t//We handle here multiple group bys ...\n\t\t\t$value=array();\n\t\t\twhile($valueelt = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\n\t\t\t\tforeach($valueelt as $key=>$val) {\n\t\t\t\t\t$value[$key]+=$val;\n\t\t\t\t\tif ($key=='metafeeditnbelts') break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tforeach ($sumFields as $fieldName){\n\t\t\t\t// we handle a stdWrap on the Data..\n\t\t\t\t$std=$conf[$conf['cmdmode'].'.']['stdWrap.']?$conf[$conf['cmdmode'].'.']['stdWrap.']:$conf['stdWrap.'];\n\t\t\t\t$fa=t3lib_div::trimexplode('.',$fieldName);\n\t\t\t\t$sfn=array_pop($fa);\n\t\t\t\t//TODO handle whole relation ...\n\t\t\t\tif ($std[$sfn.'.'] || $std[$table.'.'][$sfn.'.'] ) {\n\t\t\t\t\tif ($std[$sfn.'.']) $stdConf = $std[$sfn.'.'];\n\t\t\t\t\tif ($std[$table.'.'][$sfn.'.']) $stdConf = $std[$table.'.'][$sfn.'.'];\n\t\t\t\t\t//$dataArr['EVAL_'.$_fN] = \n\t\t\t\t\t$value['sum_'.$fieldName]=$this->cObj->stdWrap($value['sum_'.$fieldName], $stdConf);\n\t\t\t\t}\n\t\t\t\t$this->markerArray[\"###SUM_FIELD_$fieldName###\"]= $value['sum_'.$fieldName];\n\t\t\t}\n\t\t\t$this->markerArray[\"###SUM_FIELD_metafeeditnbelts###\"]= $value['metafeeditnbelts'];\n\t\t\t$sumcontent=$this->cObj->stdWrap(trim($this->cObj->substituteMarkerArray($tpl['itemSumCode'], $this->markerArray)),$conf['list.']['sumWrap.']);\n\t\t\t$content=$this->cObj->substituteSubpart($content,'###SUM_FIELDS###',$sumcontent);\n\t\t} else {\n\t\t\t$this->markerArray[\"###SUM_FIELD_metafeeditnbelts###\"]=\"\";\n\t\t\t$sumcontent=$this->cObj->stdWrap(trim($this->cObj->substituteMarkerArray($tpl['itemSumCode'], $this->markerArray)),$conf['list.']['sumWrap.']);\n\t\t\t$content=$this->cObj->substituteSubpart($content,'###SUM_FIELDS###',$sumcontent);\n\t\t}\n\t}", "public function formatRows($collection)\n {\n\n // To chart, we need the data grouped by question\n // also we need separate arrays of ratings and date-times\n $chart_data = [];\n foreach ($collection as $row) {\n $chart_data[$row->text][0][] = $row->rating;\n $chart_data[$row->text][1][] = $row->created_at;\n }\n /* Let's verify this is what we need\n print_r($chart_data);\n Array (\n [Are you feeling productive?] => Array (\n [0] => Array (\n [0] => 1\n [1] => 1\n [2] => 1\n ...\n )\n [1] => Array (\n [0] => 2017-05-09 16:02:01\n [1] => 2017-05-09 17:03:29\n [2] => 2017-05-10 16:20:29\n ...\n )\n )\n [Are you feeling social?] => Array (\n ...\n )\n ...\n )\n */\n return $chart_data;\n }", "function display_rows() {\n\n //Récuperation des quotes\n $records = $this->items;\n\n //Récuperation des colonnes\n list( $columns, $hidden ) = $this->get_column_info();\n if(!empty($records)){\n //pour chaque quote\n foreach($records as $rec){\n\n echo '<tr id=\"record_'.$rec->id.'\">';\n foreach ( $columns as $column_name => $column_display_name ) {\n\n $class = \"class='$column_name column-$column_name'\";\n $style = \"\";\n if ( in_array( $column_name, $hidden ) ) $style = ' style=\"display:none;\"';\n $attributes = $class . $style;\n\n $editlink = '/wp-admin/link.php?action=edit&id='.(int)$rec->id;\n\n switch ( $column_name ) {\n case \"col_id\":\techo '<td '.$attributes.'>'.stripslashes($rec->id).'</td>';\tbreak;\n case \"col_author\": echo '<td '.$attributes.'>'.stripslashes($rec->author).'</td>'; break;\n case \"col_quote\": echo '<td '.$attributes.'>'.stripslashes($rec->quote).'</td>'; break;\n case \"col_action\": echo '<td '.$attributes.'><a class=\"button\" style=\"margin-right:10px;\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=edit\">Editer</a><a class=\"button\" onclick=\"return confirm(\\'Etes-vous sur de vouloir supprimer la quote ?\\')\" href=\"admin.php?page=add_funny_quotes&quote='.stripslashes($rec->id).'&action=delete\">Supprimer</a></td>'; break;\n }\n\n }\n\n echo'</tr>';\n\n }\n }\n }", "public function renderItems()\n {\n $caption = $this->renderCaption();\n $columnGroup = $this->renderColumnGroup();\n $tableHeader = $this->showHeader ? $this->renderTableHeader() : false;\n $tableBody = $this->renderTableBody();\n\n $tableFooter = false;\n $tableFooterAfterBody = false;\n\n if ($this->showFooter) {\n if ($this->placeFooterAfterBody) {\n $tableFooterAfterBody = $this->renderTableFooter();\n } else {\n $tableFooter = $this->renderTableFooter();\n }\n }\n\n $content = array_filter([\n $caption,\n $columnGroup,\n $tableHeader,\n $tableFooter,\n $tableBody,\n $tableFooterAfterBody,\n ]);\n\n return Html::tag('table', implode(\"\\n\", $content), $this->tableOptions);\n }", "function renderListData($data, $oAllRowsData)\r\n\t{\r\n\t\t$listModel = $this->getlistModel();\r\n\t\t$params = $this->getParams();\r\n\t\t$target = $params->get('link_target', '');\r\n\t\t$smart_link = $params->get('link_smart_link', false);\r\n\t\tif ($listModel->getOutPutFormat() != 'rss' && ($smart_link || $target == 'mediabox')) {\r\n\t\t\tFabrikHelperHTML::slimbox();\r\n\t\t}\r\n\t\t$data = FabrikWorker::JSONtoData($data, true);\r\n\t\t\r\n\t\tif (!empty($data)) {\r\n\t\t\tif (array_key_exists('label', $data)) {\r\n\t\t\t\t$data = (array)$this->_renderListData($data, $oAllRowsData);\r\n\t\t\t} else {\r\n\t\t\t\tfor ($i = 0; $i < count($data); $i++) {\r\n\t\t\t\t\t$data[$i] = JArrayHelper::fromObject($data[$i]);\r\n\t\t\t\t\t$data[$i] = $this->_renderListData($data[$i], $oAllRowsData);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t$data = json_encode($data);\r\n\t\treturn parent::renderListData($data, $oAllRowsData);\r\n\t}", "public function get_rows()\n\t{\n//\t\t$rows = new object_list($this->connections_from(array(\"type\" => \"RELTYPE_CHILD\", \"to.class_id\" => crm_bill_row_obj::CLID)));\n\t\t$rows = new object_list(array(\n\t\t\t\"class_id\" => crm_bill_row_obj::CLID,\n\t\t\t\"CL_CRM_BILL_ROW.RELTYPE_CHILD(CL_CRM_BILL_ROW_GROUP).oid\" => $this->id(),\n\t\t\tnew obj_predicate_sort(array(\"jrk\" => \"asc\")),\n\t\t));\n\t\treturn $rows;\n\t}", "public function renderListRow($table, $row, $cc, $titleCol, $thumbsCol, $indent = 0)\n { \n if (!is_array($row)) {\n return '';\n } \n \n $this->fieldArray[] = '_CONTROL_';\n $this->fieldArray[] = '_CLIPBOARD_';\n $rowOutput = '';\n $id_orig = null;\n // If in search mode, make sure the preview will show the correct page\n if ((string)$this->searchString !== '') {\n $id_orig = $this->id;\n $this->id = $row['pid'];\n }\n \n $tagAttributes = [\n 'class' => ['t3js-entity'],\n 'data-table' => $table,\n 'title' => 'id=' . $row['uid'],\n ];\n \n // Add special classes for first and last row\n if ($cc == 1 && $indent == 0) {\n $tagAttributes['class'][] = 'firstcol';\n }\n if ($cc == $this->totalRowCount || $cc == $this->iLimit) {\n $tagAttributes['class'][] = 'lastcol';\n }\n // Overriding with versions background color if any:\n if (!empty($row['_CSSCLASS'])) {\n $tagAttributes['class'] = [$row['_CSSCLASS']];\n }\n // Incr. counter.\n $this->counter++;\n // The icon with link\n $toolTip = BackendUtility::getRecordToolTip($row, $table);\n\n \n\n $additionalStyle = $indent ? ' style=\"margin-left: ' . $indent . 'px;\"' : '';\n $iconImg = '<span ' . $toolTip . ' ' . $additionalStyle . '>'\n . $this->iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render()\n . '</span>'; \n $theIcon = $this->clickMenuEnabled ? BackendUtility::wrapClickMenuOnIcon($iconImg, $table, $row['uid']) : $iconImg;\n // Preparing and getting the data-array\n $theData = [];\n $localizationMarkerClass = '';\n foreach ($this->fieldArray as $fCol) {\n \n if ($fCol == $titleCol) {\n $recTitle = BackendUtility::getRecordTitle($table, $row, false, true);\n $warning = '';\n // If the record is edit-locked\tby another user, we will show a little warning sign:\n $lockInfo = BackendUtility::isRecordLocked($table, $row['uid']);\n if ($lockInfo) {\n $warning = '<span data-toggle=\"tooltip\" data-placement=\"right\" data-title=\"' . htmlspecialchars($lockInfo['msg']) . '\">'\n . $this->iconFactory->getIcon('status-warning-in-use', Icon::SIZE_SMALL)->render() . '</span>';\n }\n $theData[$fCol] = $theData['__label'] = $warning . $this->linkWrapItems($table, $row['uid'], $recTitle, $row);\n // Render thumbnails, if:\n // - a thumbnail column exists\n // - there is content in it\n // - the thumbnail column is visible for the current type\n $type = 0;\n if (isset($GLOBALS['TCA'][$table]['ctrl']['type'])) {\n $typeColumn = $GLOBALS['TCA'][$table]['ctrl']['type'];\n $type = $row[$typeColumn];\n }\n // If current type doesn't exist, set it to 0 (or to 1 for historical reasons,\n // if 0 doesn't exist)\n if (!isset($GLOBALS['TCA'][$table]['types'][$type])) {\n $type = isset($GLOBALS['TCA'][$table]['types'][0]) ? 0 : 1;\n }\n $visibleColumns = $GLOBALS['TCA'][$table]['types'][$type]['showitem'];\n \n if ($this->thumbs &&\n trim($row[$thumbsCol]) &&\n preg_match('/(^|(.*(;|,)?))' . $thumbsCol . '(((;|,).*)|$)/', $visibleColumns) === 1\n ) {\n $thumbCode = '<br />' . $this->thumbCode($row, $table, $thumbsCol);\n $theData[$fCol] .= $thumbCode;\n $theData['__label'] .= $thumbCode;\n }\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && $row[$GLOBALS['TCA'][$table]['ctrl']['languageField']] != 0\n && $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']] != 0\n ) {\n // It's a translated record with a language parent\n $localizationMarkerClass = ' localization';\n }\n } elseif ($fCol === 'pid') {\n $theData[$fCol] = $row[$fCol];\n } elseif ($fCol === '_PATH_') {\n $theData[$fCol] = $this->recPath($row['pid']);\n } elseif ($fCol === '_REF_') {\n $theData[$fCol] = $this->createReferenceHtml($table, $row['uid']);\n } elseif ($fCol === '_CONTROL_') {\n $theData[$fCol] = $this->makeControl($table, $row);\n } elseif ($fCol === '_CLIPBOARD_') {\n $theData[$fCol] = $this->makeClip($table, $row);\n } elseif ($fCol === '_LOCALIZATION_') {\n list($lC1, $lC2) = $this->makeLocalizationPanel($table, $row);\n $theData[$fCol] = $lC1;\n $theData[$fCol . 'b'] = '<div class=\"btn-group\">' . $lC2 . '</div>';\n } elseif ($fCol === '_LOCALIZATION_b') {\n // deliberately empty\n } else {\n $pageId = $table === 'pages' ? $row['uid'] : $row['pid'];\n $tmpProc = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 100, $row['uid'], true, $pageId);\n $theData[$fCol] = $this->linkUrlMail(htmlspecialchars($tmpProc), $row[$fCol]);\n if ($this->csvOutput) {\n $row[$fCol] = BackendUtility::getProcessedValueExtra($table, $fCol, $row[$fCol], 0, $row['uid']);\n }\n }\n }\n // Reset the ID if it was overwritten\n if ((string)$this->searchString !== '') {\n $this->id = $id_orig;\n }\n // Add row to CSV list:\n if ($this->csvOutput) {\n $this->addToCSV($row);\n }\n // Add classes to table cells\n $this->addElement_tdCssClass[$titleCol] = 'col-title col-responsive' . $localizationMarkerClass;\n $this->addElement_tdCssClass['__label'] = $this->addElement_tdCssClass[$titleCol];\n $this->addElement_tdCssClass['_CONTROL_'] = 'col-control';\n if ($this->getModule()->MOD_SETTINGS['clipBoard']) {\n $this->addElement_tdCssClass['_CLIPBOARD_'] = 'col-clipboard';\n }\n $this->addElement_tdCssClass['_PATH_'] = 'col-path';\n $this->addElement_tdCssClass['_LOCALIZATION_'] = 'col-localizationa';\n $this->addElement_tdCssClass['_LOCALIZATION_b'] = 'col-localizationb';\n // Create element in table cells:\n $theData['uid'] = $row['uid'];\n if (isset($GLOBALS['TCA'][$table]['ctrl']['languageField'])\n && isset($GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField'])\n && $table !== 'pages_language_overlay'\n ) {\n $theData['_l10nparent_'] = $row[$GLOBALS['TCA'][$table]['ctrl']['transOrigPointerField']];\n }\n \n $tagAttributes = array_map(\n function ($attributeValue) {\n if (is_array($attributeValue)) {\n return implode(' ', $attributeValue);\n }\n return $attributeValue;\n },\n $tagAttributes\n );\n \n $rowOutput .= $this->addElement(1, $theIcon, $theData, GeneralUtility::implodeAttributes($tagAttributes, true));\n // Finally, return table row element:\n return $rowOutput;\n }", "function makelist($res)\t{\r\n\t\t$items=\"\";\r\n\t\t$counter = $this->internal['res_count'];\r\n\t\twhile($this->internal['currentRow'] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {\r\n\t\t\t$items .= $this->makeListItem($counter);\r\n\t\t\t$counter--;\r\n\t\t}\r\n\r\n\t\t$subpartArray = array();\r\n\t\t$subpartArray[\"###LIST_TABLE_ROW###\"] = $items;\r\n\t\t$out = $this->cObj->substituteMarkerArrayCached($this->templates[\"list_table\"], array(), $subpartArray, array());\r\n\t\treturn $out;\r\n\t}", "public function asRow() {\n\t\treturn $this->_sth->fetchAll(PDO::FETCH_NUM);\n\t}", "public function auto_build_list_content($data){\r\n\t\treturn $this->auto_build_list_thead() .\r\n\t\t\t$this->auto_build_list_tbody($data);\r\n\t}", "function _build_row_by_post()\n{\n\t$row = array(\n\t\t'user_id' => $this->_post_class->get_post_get_int( 'user_id' ),\n\t\t'user_time_create' => $this->_post_class->get_post_int( 'user_time_create' ),\n\t\t'user_time_update' => $this->_post_class->get_post_int( 'user_time_update' ),\n\t\t'user_uid' => $this->_post_class->get_post_int( 'user_uid' ),\n\t\t'user_cat_id' => $this->_post_class->get_post_int( 'user_cat_id' ),\n\t\t'user_email' => $this->_post_class->get_post_text( 'user_email' ),\n\t\t'user_text1' => $this->_post_class->get_post_text( 'user_text1' ),\n\t\t'user_text2' => $this->_post_class->get_post_text( 'user_text2' ),\n\t\t'user_text3' => $this->_post_class->get_post_text( 'user_text3' ),\n\t\t'user_text4' => $this->_post_class->get_post_text( 'user_text4' ),\n\t\t'user_text5' => $this->_post_class->get_post_text( 'user_text5' ),\n\t);\n\n\tfor ( $i=1; $i <= _C_WEBPHOTO_MAX_CAT_TEXT; $i++ ) \n\t{\n\t\t$name = 'user_text'.$i;\n\t\t$row[ $name ] = $this->_post_class->get_post_text( $name );\n\t}\n\n\treturn $row;\n}", "function ods_render_row($row, $data = array()) {\n $cells = $row->getElementsByTagName('table-cell');\n\n foreach ($cells as $cell) {\n $value_type = $cell\n ->getAttribute('office:value-type');\n\n //get text data\n $p1 = $cell\n ->getElementsByTagName('p'); \n\n foreach ($p1 as $p) {\n\n $orig_cell_text = $p->nodeValue;\n\n $data_val = false;\n\n if (!empty($orig_cell_text)) {\n if ($this->string_has_params($orig_cell_text)) {\n\n if ($this->parse_string_is_once_param($orig_cell_text)) {\n $param_key = $this->parse_string_extract_param($orig_cell_text);\n\n if ($this->parse_param_exists($param_key, $data)) {\n\n $data_val = $this->parse_param_value(\n $param_key, $data\n );\n $this->ods_cell_set_val($cell, $p, $data_val, array());\n }\n } else {\n $p->nodeValue = $this->parse_string($orig_cell_text, $data);\n }\n }\n }\n }\n \n $this->ods_render_cell_images($cell, $data); \n \n }\n return $row;\n }", "function _list_meta_row($entry, &$count)\n {\n }", "public function getRows()\n {\n if (is_null($this->summaryRow)) {\n return $this->rows;\n } else {\n return $this->rows + array(self::ID_SUMMARY_ROW => $this->summaryRow);\n }\n }", "public function renderItems()\n {\n $content = array_filter([\n $this->renderCaption(),\n $this->renderColumnGroup(),\n $this->showHeader ? $this->renderTableHeader() : false,\n $this->showFooter ? $this->renderTableFooter() : false,\n $this->renderTableBody(),\n ]);\n\n $table = Html::tag('table', implode(\"\\n\", $content), $this->tableOptions);\n if ($this->responsive)\n {\n $table = Html::tag('div', $table, ['class' => 'table-responsive']);\n }\n else\n {\n $table = Html::tag('div', $table, ['class' => 'table-scrollable']);\n }\n\n return $table;\n }", "function RenderRow() {\r\n\t\tglobal $conn, $Security, $Language, $fs_multijoin_v;\r\n\r\n\t\t// Initialize URLs\r\n\t\t$this->ViewUrl = $fs_multijoin_v->ViewUrl();\r\n\t\t$this->EditUrl = $fs_multijoin_v->EditUrl();\r\n\t\t$this->InlineEditUrl = $fs_multijoin_v->InlineEditUrl();\r\n\t\t$this->CopyUrl = $fs_multijoin_v->CopyUrl();\r\n\t\t$this->InlineCopyUrl = $fs_multijoin_v->InlineCopyUrl();\r\n\t\t$this->DeleteUrl = $fs_multijoin_v->DeleteUrl();\r\n\r\n\t\t// Call Row_Rendering event\r\n\t\t$fs_multijoin_v->Row_Rendering();\r\n\r\n\t\t// Common render codes for all row types\r\n\t\t// id\r\n\r\n\t\t$fs_multijoin_v->id->CellCssStyle = \"\"; $fs_multijoin_v->id->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->id->CellAttrs = array(); $fs_multijoin_v->id->ViewAttrs = array(); $fs_multijoin_v->id->EditAttrs = array();\r\n\r\n\t\t// mount\r\n\t\t$fs_multijoin_v->mount->CellCssStyle = \"\"; $fs_multijoin_v->mount->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->mount->CellAttrs = array(); $fs_multijoin_v->mount->ViewAttrs = array(); $fs_multijoin_v->mount->EditAttrs = array();\r\n\r\n\t\t// path\r\n\t\t$fs_multijoin_v->path->CellCssStyle = \"\"; $fs_multijoin_v->path->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->path->CellAttrs = array(); $fs_multijoin_v->path->ViewAttrs = array(); $fs_multijoin_v->path->EditAttrs = array();\r\n\r\n\t\t// parent\r\n\t\t$fs_multijoin_v->parent->CellCssStyle = \"\"; $fs_multijoin_v->parent->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->parent->CellAttrs = array(); $fs_multijoin_v->parent->ViewAttrs = array(); $fs_multijoin_v->parent->EditAttrs = array();\r\n\r\n\t\t// deprecated\r\n\t\t$fs_multijoin_v->deprecated->CellCssStyle = \"\"; $fs_multijoin_v->deprecated->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->deprecated->CellAttrs = array(); $fs_multijoin_v->deprecated->ViewAttrs = array(); $fs_multijoin_v->deprecated->EditAttrs = array();\r\n\r\n\t\t// name\r\n\t\t$fs_multijoin_v->name->CellCssStyle = \"\"; $fs_multijoin_v->name->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->name->CellAttrs = array(); $fs_multijoin_v->name->ViewAttrs = array(); $fs_multijoin_v->name->EditAttrs = array();\r\n\r\n\t\t// snapshot\r\n\t\t$fs_multijoin_v->snapshot->CellCssStyle = \"\"; $fs_multijoin_v->snapshot->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->snapshot->CellAttrs = array(); $fs_multijoin_v->snapshot->ViewAttrs = array(); $fs_multijoin_v->snapshot->EditAttrs = array();\r\n\r\n\t\t// tapebackup\r\n\t\t$fs_multijoin_v->tapebackup->CellCssStyle = \"\"; $fs_multijoin_v->tapebackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->tapebackup->CellAttrs = array(); $fs_multijoin_v->tapebackup->ViewAttrs = array(); $fs_multijoin_v->tapebackup->EditAttrs = array();\r\n\r\n\t\t// diskbackup\r\n\t\t$fs_multijoin_v->diskbackup->CellCssStyle = \"\"; $fs_multijoin_v->diskbackup->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->diskbackup->CellAttrs = array(); $fs_multijoin_v->diskbackup->ViewAttrs = array(); $fs_multijoin_v->diskbackup->EditAttrs = array();\r\n\r\n\t\t// type\r\n\t\t$fs_multijoin_v->type->CellCssStyle = \"\"; $fs_multijoin_v->type->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->type->CellAttrs = array(); $fs_multijoin_v->type->ViewAttrs = array(); $fs_multijoin_v->type->EditAttrs = array();\r\n\r\n\t\t// CONTACT\r\n\t\t$fs_multijoin_v->CONTACT->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT->CellAttrs = array(); $fs_multijoin_v->CONTACT->ViewAttrs = array(); $fs_multijoin_v->CONTACT->EditAttrs = array();\r\n\r\n\t\t// CONTACT2\r\n\t\t$fs_multijoin_v->CONTACT2->CellCssStyle = \"\"; $fs_multijoin_v->CONTACT2->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->CONTACT2->CellAttrs = array(); $fs_multijoin_v->CONTACT2->ViewAttrs = array(); $fs_multijoin_v->CONTACT2->EditAttrs = array();\r\n\r\n\t\t// RESCOMP\r\n\t\t$fs_multijoin_v->RESCOMP->CellCssStyle = \"\"; $fs_multijoin_v->RESCOMP->CellCssClass = \"\";\r\n\t\t$fs_multijoin_v->RESCOMP->CellAttrs = array(); $fs_multijoin_v->RESCOMP->ViewAttrs = array(); $fs_multijoin_v->RESCOMP->EditAttrs = array();\r\n\t\tif ($fs_multijoin_v->RowType == EW_ROWTYPE_VIEW) { // View row\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->ViewValue = $fs_multijoin_v->id->CurrentValue;\r\n\t\t\t$fs_multijoin_v->id->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->id->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->id->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->ViewValue = $fs_multijoin_v->mount->CurrentValue;\r\n\t\t\t$fs_multijoin_v->mount->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->mount->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->mount->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->ViewValue = $fs_multijoin_v->path->CurrentValue;\r\n\t\t\t$fs_multijoin_v->path->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->path->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->path->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->ViewValue = $fs_multijoin_v->parent->CurrentValue;\r\n\t\t\t$fs_multijoin_v->parent->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->parent->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->parent->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->ViewValue = $fs_multijoin_v->deprecated->CurrentValue;\r\n\t\t\t$fs_multijoin_v->deprecated->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->ViewValue = $fs_multijoin_v->name->CurrentValue;\r\n\t\t\t$fs_multijoin_v->name->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->name->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->name->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->ViewValue = $fs_multijoin_v->snapshot->CurrentValue;\r\n\t\t\t$fs_multijoin_v->snapshot->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewValue = $fs_multijoin_v->tapebackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->tapebackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewValue = $fs_multijoin_v->diskbackup->CurrentValue;\r\n\t\t\t$fs_multijoin_v->diskbackup->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->ViewValue = $fs_multijoin_v->type->CurrentValue;\r\n\t\t\t$fs_multijoin_v->type->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->type->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->type->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewValue = $fs_multijoin_v->CONTACT->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewValue = $fs_multijoin_v->CONTACT2->CurrentValue;\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewValue = $fs_multijoin_v->RESCOMP->CurrentValue;\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssStyle = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->CssClass = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->ViewCustomAttributes = \"\";\r\n\r\n\t\t\t// id\r\n\t\t\t$fs_multijoin_v->id->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->id->TooltipValue = \"\";\r\n\r\n\t\t\t// mount\r\n\t\t\t$fs_multijoin_v->mount->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->mount->TooltipValue = \"\";\r\n\r\n\t\t\t// path\r\n\t\t\t$fs_multijoin_v->path->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->path->TooltipValue = \"\";\r\n\r\n\t\t\t// parent\r\n\t\t\t$fs_multijoin_v->parent->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->parent->TooltipValue = \"\";\r\n\r\n\t\t\t// deprecated\r\n\t\t\t$fs_multijoin_v->deprecated->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->deprecated->TooltipValue = \"\";\r\n\r\n\t\t\t// name\r\n\t\t\t$fs_multijoin_v->name->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->name->TooltipValue = \"\";\r\n\r\n\t\t\t// snapshot\r\n\t\t\t$fs_multijoin_v->snapshot->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->snapshot->TooltipValue = \"\";\r\n\r\n\t\t\t// tapebackup\r\n\t\t\t$fs_multijoin_v->tapebackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->tapebackup->TooltipValue = \"\";\r\n\r\n\t\t\t// diskbackup\r\n\t\t\t$fs_multijoin_v->diskbackup->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->diskbackup->TooltipValue = \"\";\r\n\r\n\t\t\t// type\r\n\t\t\t$fs_multijoin_v->type->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->type->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT\r\n\t\t\t$fs_multijoin_v->CONTACT->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT->TooltipValue = \"\";\r\n\r\n\t\t\t// CONTACT2\r\n\t\t\t$fs_multijoin_v->CONTACT2->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->CONTACT2->TooltipValue = \"\";\r\n\r\n\t\t\t// RESCOMP\r\n\t\t\t$fs_multijoin_v->RESCOMP->HrefValue = \"\";\r\n\t\t\t$fs_multijoin_v->RESCOMP->TooltipValue = \"\";\r\n\t\t}\r\n\r\n\t\t// Call Row Rendered event\r\n\t\tif ($fs_multijoin_v->RowType <> EW_ROWTYPE_AGGREGATEINIT)\r\n\t\t\t$fs_multijoin_v->Row_Rendered();\r\n\t}", "abstract protected function getRows();", "public function addRows()\n {\n }", "public function getRow() {}", "abstract public function get_rows();", "public function toArray()\n {\n return ['rows' => $this->rows] + parent::toArray();\n }", "public function buildRow(&$row)\n {\n $lines = array();\n $class = '';\n foreach ($this->Columns as $field => $Column) {\n $lines[] = $Column->cell($row);\n }\n if ($this->tableOptions['group']) {\n $level = 1000;\n foreach ($this->tableOptions['group'] as $count => $group) {\n if (is_null($row[$group]) && $count < $level) {\n $level = $count;\n }\n }\n if ($level < 1000) {\n $class = 'mh-table-group-row mh-table-group-row-level-'.$level;\n }\n\n }\n if (empty($class) && $this->altRow) {\n $class = 'altrow';\n }\n $this->altRow = !$this->altRow;\n\n return $this->Html->tag('tr', implode(chr(10), $lines), array('class' => $class));\n }", "public function get_row();", "public function buildTotalsRow()\n {\n $line = '';\n foreach ($this->Columns as $field => $Column) {\n if (in_array($field, $this->tableOptions['totals'])) {\n $line .= $this->Html->tag('td', $Column->sum(), array('class' => 'cell-number'));\n } else {\n $line .= $this->Html->tag('td', ' ');\n }\n }\n\n return $this->Html->tag('tr', $line, array('class' => 'totalsrow'));\n }", "private function build_item_data($groupie, $rows) {\n\t\t$rendered='';\n\t\t$item_count=0;\n\t\t$item_count_total=0;\n\t\t$rows_current=array();\n\t\t// process the item template (lowest levels only)\n\t\tif (($rows!=null) && ($groupie->item_template!=null)) {\n\t\t\t\n\t\t\t// if there is a field map defined, map the values from the row\n\t\t\t// into the control->attributes array\n\t\t\tif($groupie->control_attribute_map) {\n\t\t\t\t$map_items = $groupie->control_attribute_map->items;\n\n\t\t\t\tforeach($map_items as $item)\n\t\t\t\t{\t\n\t\t\t\t\tforeach($item->items as $attribute => $mapping)\n\t\t\t\t\t\t$this->attributes[$attribute] = $rows[0][$mapping];\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\ttry {\n\t\t\t\t$template=$this->get_template($groupie->item_template);\n\t\t\t} catch (Exception $e) { \n\t\t\t\t// The only exception currently thrown is if the item template file isn't there\n\t\t\t\t// (in this case, we'll look for item.php in the same location)\n\t\t\t\t$item_segments = explode(\"/\", $groupie->item_template);\n\t\t\t\tarray_pop($item_segments); // ditch original file name\n\t\t\t\t$item_segments[] = \"item\"; // add default file \n\t\t\t\t$template=new Template(implode(\"/\", $item_segments));\n\t\t\t}\n\n\t\t\t$total_rows = count($rows);\n\t\t\tforeach($rows as $row) {\n\t\t\t\t$rendered.=$template->render(array('item' => $row, 'control' => $this, 'count' => $this->count, 'total_count' => $this->total_count, 'item_count' => $item_count, 'total_rows' => $total_rows));\n\t\t\t\t\n\t\t\t\t$this->current=&$row;\n\t\t\t\t\n\t\t\t\tif ($this->selected_id==$row['id'])\n\t\t\t\t\t$this->current_index=$this->count;\n\t\t\t\t\n\t\t\t\t$this->count++;\n\t\t\t\t$item_count++;\n\t\t\t\t$item_count_total++;\n\t\t\t}\n\t\t\t$rows_current=$rows;\n\t\t} else {\n\t\t\t//Keep on recursing as no item_templates present\n\t\t\t$out = $this->build_item($groupie, $rows);\n\t\t\t$rendered.=$out['content'];\n\t\t\t$item_count_total+=$out['count'];\n\t\t\t$rows_current+=$out['rows'];\n\t\t}\n\t\t\n\t\t// process the container if present, passing in all rendered content\n\t\tif ($groupie->container_template!=null) {\n\t\t\t$view=$this->get_template($groupie->container_template); //View($this->parent,$groupie->container_template); // shitloads faster to use Template\n\t\t\t$rendered=$view->render(array('current_index' => $this->current_index, 'total_count' => $this->total_count, 'count' => $this->count, 'control' => $this, 'content' => $rendered, 'item_count' => $item_count, 'item_count_total' => $item_count_total, 'items' => $rows_current, 'config' => $groupie));\n\t\t}\n\t\t\n\t\t$out = array('content'=>$rendered, 'count'=>$item_count_total, 'rows'=>$rows_current);\n\t\treturn $out;\n\t}", "protected function aggregate_multidimensional()\n {\n }", "public function getAllEntriesAsRows() {\n $allModels = $this -> getAllHistoricFilterEntries();\n $html = \"\";\n //TODO may need to make a function that makes a JS array to hold the info\n foreach ($allModels as $model) {\n $idHistoricFilter = strval($model -> getIdHistoricFilter());\n $objectRowID = \"14\" . $idHistoricFilter;\n $editAndDelete = \"</td><td><button class='btn basicBtn' onclick='updateHistoricFilter(\"\n . $objectRowID . \",\"\n . $model -> getIdHistoricFilter()\n . \")'>Update</button>\"\n . \"</td><td>\";\n\n if ($idHistoricFilter != \"0\") {\n $editAndDelete = $editAndDelete . \"<button class='btn basicBtn' onclick=\"\n . '\"deleteHistoricFilter('\n . $model -> getIdHistoricFilter()\n . ')\"> Delete</button>';\n }\n\n $html = $html\n . \"<tr id='\" . $objectRowID . \"'><td>\" . $model -> getHistoricFilterName()\n . \"</td><td>\" . $model -> getDateStart()\n . \"</td><td>\" . $model -> getDateEnd()\n . \"</td><td>\" . $model -> getDescription()\n . \"</td><td>\" . $model -> getButtonColor()\n . $editAndDelete\n . \"</td></tr>\";\n }\n return $html;\n }", "public function rows() {\n\t\treturn $this->row();\n\t}", "public function renderBodyRow($model, $key, $index)\n {\n $cells = [];\n /* @var $column \\yii\\grid\\Column */\n foreach ($this->columns as $column) {\n $cells[] = $column->renderDataCell($model, $key, $index);\n }\n if ($this->rowOptions instanceof Closure) {\n $options = call_user_func($this->rowOptions, $model, $key, $index, $this);\n } else {\n $options = $this->rowOptions;\n }\n $options['data-key'] = is_array($key) ? json_encode($key) : (string)$key;\n\n return Html::tag('li', '<div class=\"product-details\">' . implode('', $cells) . '</div>', $options);\n }", "public function getHighScoresRows(){\n $rank = 1;\n $listContent = \"\";\n $highScores = $this->_getHighScores();\n\n foreach ($highScores as $oneScore){\n $listContent .= \"<tr>\n <td>\" . $rank . \"</td>\n <td>\" . htmlentities($oneScore->playerName). \"</td>\n <td>\" . htmlentities($oneScore->completionTime) . \"</td>\n <td>\" . htmlentities($oneScore->difficulty) . \"</td>\n </tr>\";\n\n $rank++;\n }\n\n return $listContent;\n }", "function RenderRow() {\n\t\tglobal $conn, $Security, $planilla;\n\n\t\t// Call Row_Rendering event\n\t\t$planilla->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// idPlanilla\n\n\t\t$planilla->idPlanilla->CellCssStyle = \"\";\n\t\t$planilla->idPlanilla->CellCssClass = \"\";\n\n\t\t// Nombre\n\t\t$planilla->Nombre->CellCssStyle = \"\";\n\t\t$planilla->Nombre->CellCssClass = \"\";\n\t\tif ($planilla->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->ViewValue = $planilla->idPlanilla->CurrentValue;\n\t\t\t$planilla->idPlanilla->CssStyle = \"\";\n\t\t\t$planilla->idPlanilla->CssClass = \"\";\n\t\t\t$planilla->idPlanilla->ViewCustomAttributes = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->ViewValue = $planilla->Nombre->CurrentValue;\n\t\t\t$planilla->Nombre->CssStyle = \"\";\n\t\t\t$planilla->Nombre->CssClass = \"\";\n\t\t\t$planilla->Nombre->ViewCustomAttributes = \"\";\n\n\t\t\t// idPlanilla\n\t\t\t$planilla->idPlanilla->HrefValue = \"\";\n\n\t\t\t// Nombre\n\t\t\t$planilla->Nombre->HrefValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\t$planilla->Row_Rendered();\n\t}", "private function set_response_rows($result) { \n $rows = [];\n foreach ($result as $r) {\n $cell = [];\n foreach ($r as $column => $value) {\n $cell[] = call_user_func($this->format, $column, $value, $r);\n }\n\n $rows[] = [\n 'id' => $r->id,\n 'cell' => $cell\n ];\n }\n return $rows;\n }", "public function listRows($row)\n\t{\n\t\t$strCategory = $this->Database->prepare(\"SELECT * FROM tl_iso_related_categories WHERE id=?\")->execute($row['category'])->name;\n\n\t\t$strBuffer = '\n<div class=\"cte_type\" style=\"color:#666966\"><strong>' . $GLOBALS['TL_LANG']['tl_iso_related_products']['category'][0] . ':</strong> ' . $strCategory . '</div>';\n\n\t\t$arrProducts = deserialize($row['products']);\n\n\t\tif (is_array($arrProducts) && !empty($arrProducts))\n\t\t{\n\t\t\t$strBuffer .= '<div class=\"limit_height' . (!$GLOBALS['TL_CONFIG']['doNotCollapse'] ? ' h0' : '') . ' block\"><ul>';\n\t\t\t$objProducts = $this->Database->execute(\"SELECT * FROM tl_iso_products WHERE id IN (\" . implode(',', $arrProducts) . \") ORDER BY name\");\n\n\t\t\twhile ($objProducts->next())\n\t\t\t{\n\t\t\t\t$strBuffer .= '<li>' . $objProducts->name . '</li>';\n\t\t\t}\n\n\t\t\t$strBuffer .= '</ul></div>' . \"\\n\";\n\t\t}\n\n\t\treturn $strBuffer;\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// empleado_id\n\t\t// codigo\n\t\t// cui\n\t\t// nombre\n\t\t// apellido\n\t\t// direccion\n\t\t// departamento_origen_id\n\t\t// municipio_id\n\t\t// telefono_residencia\n\t\t// telefono_celular\n\t\t// fecha_nacimiento\n\t\t// nacionalidad\n\t\t// estado_civil\n\t\t// sexo\n\t\t// igss\n\t\t// nit\n\t\t// licencia_conducir\n\t\t// area_id\n\t\t// departmento_id\n\t\t// seccion_id\n\t\t// puesto_id\n\t\t// observaciones\n\t\t// tipo_sangre_id\n\t\t// estado\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// codigo\n\t\t$this->codigo->ViewValue = $this->codigo->CurrentValue;\n\t\t$this->codigo->ViewCustomAttributes = \"\";\n\n\t\t// cui\n\t\t$this->cui->ViewValue = $this->cui->CurrentValue;\n\t\t$this->cui->ViewCustomAttributes = \"\";\n\n\t\t// nombre\n\t\t$this->nombre->ViewValue = $this->nombre->CurrentValue;\n\t\t$this->nombre->ViewCustomAttributes = \"\";\n\n\t\t// apellido\n\t\t$this->apellido->ViewValue = $this->apellido->CurrentValue;\n\t\t$this->apellido->ViewCustomAttributes = \"\";\n\n\t\t// direccion\n\t\t$this->direccion->ViewValue = $this->direccion->CurrentValue;\n\t\t$this->direccion->ViewCustomAttributes = \"\";\n\n\t\t// departamento_origen_id\n\t\tif (strval($this->departamento_origen_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_origen_id`\" . ew_SearchString(\"=\", $this->departamento_origen_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_origen_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento_origen`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departamento_origen_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departamento_origen_id->ViewValue = $this->departamento_origen_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departamento_origen_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departamento_origen_id->ViewCustomAttributes = \"\";\n\n\t\t// municipio_id\n\t\tif (strval($this->municipio_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`municipio_id`\" . ew_SearchString(\"=\", $this->municipio_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `municipio_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `municipio`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->municipio_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->municipio_id->ViewValue = $this->municipio_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->municipio_id->ViewValue = NULL;\n\t\t}\n\t\t$this->municipio_id->ViewCustomAttributes = \"\";\n\n\t\t// telefono_residencia\n\t\t$this->telefono_residencia->ViewValue = $this->telefono_residencia->CurrentValue;\n\t\t$this->telefono_residencia->ViewCustomAttributes = \"\";\n\n\t\t// telefono_celular\n\t\t$this->telefono_celular->ViewValue = $this->telefono_celular->CurrentValue;\n\t\t$this->telefono_celular->ViewCustomAttributes = \"\";\n\n\t\t// fecha_nacimiento\n\t\t$this->fecha_nacimiento->ViewValue = $this->fecha_nacimiento->CurrentValue;\n\t\t$this->fecha_nacimiento->ViewValue = ew_FormatDateTime($this->fecha_nacimiento->ViewValue, 7);\n\t\t$this->fecha_nacimiento->ViewCustomAttributes = \"\";\n\n\t\t// nacionalidad\n\t\tif (strval($this->nacionalidad->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`nacionalidad_id`\" . ew_SearchString(\"=\", $this->nacionalidad->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `nacionalidad_id`, `nacionalidad` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `nacionalidad`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->nacionalidad, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->nacionalidad->ViewValue = $this->nacionalidad->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->nacionalidad->ViewValue = NULL;\n\t\t}\n\t\t$this->nacionalidad->ViewCustomAttributes = \"\";\n\n\t\t// estado_civil\n\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\tif (strval($this->estado_civil->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`estado_civil_id`\" . ew_SearchString(\"=\", $this->estado_civil->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `estado_civil_id`, `estado_civil` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `estado_civil`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->estado_civil, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->estado_civil->ViewValue = $this->estado_civil->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->estado_civil->ViewValue = NULL;\n\t\t}\n\t\t$this->estado_civil->ViewCustomAttributes = \"\";\n\n\t\t// sexo\n\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\tif (strval($this->sexo->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`sexo_id`\" . ew_SearchString(\"=\", $this->sexo->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `sexo_id`, `sexo` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `sexo`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->sexo, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->sexo->ViewValue = $this->sexo->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->sexo->ViewValue = NULL;\n\t\t}\n\t\t$this->sexo->ViewCustomAttributes = \"\";\n\n\t\t// igss\n\t\t$this->igss->ViewValue = $this->igss->CurrentValue;\n\t\t$this->igss->ViewCustomAttributes = \"\";\n\n\t\t// nit\n\t\t$this->nit->ViewValue = $this->nit->CurrentValue;\n\t\t$this->nit->ViewCustomAttributes = \"\";\n\n\t\t// licencia_conducir\n\t\t$this->licencia_conducir->ViewValue = $this->licencia_conducir->CurrentValue;\n\t\t$this->licencia_conducir->ViewCustomAttributes = \"\";\n\n\t\t// area_id\n\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\tif (strval($this->area_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`area_id`\" . ew_SearchString(\"=\", $this->area_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `area_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `area`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->area_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->area_id->ViewValue = $this->area_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->area_id->ViewValue = NULL;\n\t\t}\n\t\t$this->area_id->ViewCustomAttributes = \"\";\n\n\t\t// departmento_id\n\t\tif (strval($this->departmento_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`departamento_id`\" . ew_SearchString(\"=\", $this->departmento_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `departamento_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `departamento`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->departmento_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->departmento_id->ViewValue = $this->departmento_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->departmento_id->ViewValue = NULL;\n\t\t}\n\t\t$this->departmento_id->ViewCustomAttributes = \"\";\n\n\t\t// seccion_id\n\t\tif (strval($this->seccion_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`seccion_id`\" . ew_SearchString(\"=\", $this->seccion_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `seccion_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `seccion`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->seccion_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->seccion_id->ViewValue = $this->seccion_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->seccion_id->ViewValue = NULL;\n\t\t}\n\t\t$this->seccion_id->ViewCustomAttributes = \"\";\n\n\t\t// puesto_id\n\t\tif (strval($this->puesto_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`puesto_id`\" . ew_SearchString(\"=\", $this->puesto_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `puesto_id`, `nombre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `puesto`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->puesto_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->puesto_id->ViewValue = $this->puesto_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->puesto_id->ViewValue = NULL;\n\t\t}\n\t\t$this->puesto_id->ViewCustomAttributes = \"\";\n\n\t\t// observaciones\n\t\t$this->observaciones->ViewValue = $this->observaciones->CurrentValue;\n\t\t$this->observaciones->ViewCustomAttributes = \"\";\n\n\t\t// tipo_sangre_id\n\t\tif (strval($this->tipo_sangre_id->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`tipo_sangre_id`\" . ew_SearchString(\"=\", $this->tipo_sangre_id->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `tipo_sangre_id`, `tipo_sangre` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `tipo_sangre`\";\n\t\t$sWhereWrk = \"\";\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->tipo_sangre_id, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->tipo_sangre_id->ViewValue = $this->tipo_sangre_id->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->tipo_sangre_id->ViewValue = NULL;\n\t\t}\n\t\t$this->tipo_sangre_id->ViewCustomAttributes = \"\";\n\n\t\t// estado\n\t\t$this->estado->ViewValue = $this->estado->CurrentValue;\n\t\t$this->estado->ViewCustomAttributes = \"\";\n\n\t\t\t// codigo\n\t\t\t$this->codigo->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo->HrefValue = \"\";\n\t\t\t$this->codigo->TooltipValue = \"\";\n\n\t\t\t// cui\n\t\t\t$this->cui->LinkCustomAttributes = \"\";\n\t\t\t$this->cui->HrefValue = \"\";\n\t\t\t$this->cui->TooltipValue = \"\";\n\n\t\t\t// nombre\n\t\t\t$this->nombre->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre->HrefValue = \"\";\n\t\t\t$this->nombre->TooltipValue = \"\";\n\n\t\t\t// apellido\n\t\t\t$this->apellido->LinkCustomAttributes = \"\";\n\t\t\t$this->apellido->HrefValue = \"\";\n\t\t\t$this->apellido->TooltipValue = \"\";\n\n\t\t\t// direccion\n\t\t\t$this->direccion->LinkCustomAttributes = \"\";\n\t\t\t$this->direccion->HrefValue = \"\";\n\t\t\t$this->direccion->TooltipValue = \"\";\n\n\t\t\t// departamento_origen_id\n\t\t\t$this->departamento_origen_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departamento_origen_id->HrefValue = \"\";\n\t\t\t$this->departamento_origen_id->TooltipValue = \"\";\n\n\t\t\t// municipio_id\n\t\t\t$this->municipio_id->LinkCustomAttributes = \"\";\n\t\t\t$this->municipio_id->HrefValue = \"\";\n\t\t\t$this->municipio_id->TooltipValue = \"\";\n\n\t\t\t// telefono_residencia\n\t\t\t$this->telefono_residencia->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_residencia->HrefValue = \"\";\n\t\t\t$this->telefono_residencia->TooltipValue = \"\";\n\n\t\t\t// telefono_celular\n\t\t\t$this->telefono_celular->LinkCustomAttributes = \"\";\n\t\t\t$this->telefono_celular->HrefValue = \"\";\n\t\t\t$this->telefono_celular->TooltipValue = \"\";\n\n\t\t\t// fecha_nacimiento\n\t\t\t$this->fecha_nacimiento->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_nacimiento->HrefValue = \"\";\n\t\t\t$this->fecha_nacimiento->TooltipValue = \"\";\n\n\t\t\t// nacionalidad\n\t\t\t$this->nacionalidad->LinkCustomAttributes = \"\";\n\t\t\t$this->nacionalidad->HrefValue = \"\";\n\t\t\t$this->nacionalidad->TooltipValue = \"\";\n\n\t\t\t// estado_civil\n\t\t\t$this->estado_civil->LinkCustomAttributes = \"\";\n\t\t\t$this->estado_civil->HrefValue = \"\";\n\t\t\t$this->estado_civil->TooltipValue = \"\";\n\n\t\t\t// sexo\n\t\t\t$this->sexo->LinkCustomAttributes = \"\";\n\t\t\t$this->sexo->HrefValue = \"\";\n\t\t\t$this->sexo->TooltipValue = \"\";\n\n\t\t\t// igss\n\t\t\t$this->igss->LinkCustomAttributes = \"\";\n\t\t\t$this->igss->HrefValue = \"\";\n\t\t\t$this->igss->TooltipValue = \"\";\n\n\t\t\t// nit\n\t\t\t$this->nit->LinkCustomAttributes = \"\";\n\t\t\t$this->nit->HrefValue = \"\";\n\t\t\t$this->nit->TooltipValue = \"\";\n\n\t\t\t// licencia_conducir\n\t\t\t$this->licencia_conducir->LinkCustomAttributes = \"\";\n\t\t\t$this->licencia_conducir->HrefValue = \"\";\n\t\t\t$this->licencia_conducir->TooltipValue = \"\";\n\n\t\t\t// area_id\n\t\t\t$this->area_id->LinkCustomAttributes = \"\";\n\t\t\t$this->area_id->HrefValue = \"\";\n\t\t\t$this->area_id->TooltipValue = \"\";\n\n\t\t\t// departmento_id\n\t\t\t$this->departmento_id->LinkCustomAttributes = \"\";\n\t\t\t$this->departmento_id->HrefValue = \"\";\n\t\t\t$this->departmento_id->TooltipValue = \"\";\n\n\t\t\t// seccion_id\n\t\t\t$this->seccion_id->LinkCustomAttributes = \"\";\n\t\t\t$this->seccion_id->HrefValue = \"\";\n\t\t\t$this->seccion_id->TooltipValue = \"\";\n\n\t\t\t// puesto_id\n\t\t\t$this->puesto_id->LinkCustomAttributes = \"\";\n\t\t\t$this->puesto_id->HrefValue = \"\";\n\t\t\t$this->puesto_id->TooltipValue = \"\";\n\n\t\t\t// observaciones\n\t\t\t$this->observaciones->LinkCustomAttributes = \"\";\n\t\t\t$this->observaciones->HrefValue = \"\";\n\t\t\t$this->observaciones->TooltipValue = \"\";\n\n\t\t\t// tipo_sangre_id\n\t\t\t$this->tipo_sangre_id->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_sangre_id->HrefValue = \"\";\n\t\t\t$this->tipo_sangre_id->TooltipValue = \"\";\n\n\t\t\t// estado\n\t\t\t$this->estado->LinkCustomAttributes = \"\";\n\t\t\t$this->estado->HrefValue = \"\";\n\t\t\t$this->estado->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function renderAggregateList(ListData $aggregateListData)\n {\n if ($aggregateListData->count() == 0) {\n return $aggregateListData;\n }\n \n $renderedAggregateList = new ListData();\n \n $aggregateRowsConfiguration = $this->rendererConfiguration->getConfigurationBuilder()->buildAggregateRowsConfig();\n $aggregateDataRow = $aggregateListData->getItemByIndex(0);\n\n foreach ($aggregateRowsConfiguration as $aggregateRowIndex => $aggregateRowConfiguration) {\n $renderedAggregateList->addRow($this->rowRenderer->renderAggregateRow($aggregateDataRow, $aggregateRowConfiguration, $aggregateRowIndex));\n }\n\n return $renderedAggregateList;\n }", "abstract protected function _buildCalcRows();", "public function getRows();", "public function getRows();", "function render_tabular($row)\n\t{\n\t\t$member_id=$row['id'];\n\t\t$preview=true;\n\n\t\tif (get_forum_type()!='ocf')\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t$username=$GLOBALS['OCF_DRIVER']->get_username($member_id);\n\t\tif (is_null($username))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\trequire_lang('ocf');\n\t\trequire_code('ocf_groups');\n\n\t\t$_lines=array();\n\t\t$primary_group=ocf_get_member_primary_group($member_id);\n\t\tif (is_null($primary_group))\n\t\t{\n\t\t\treturn array();\n\t\t}\n\t\t//if (has_specific_permission(get_member(),'view_profiles'))\n\t\t{\n\t\t\tif ((addon_installed('galleries')) && (get_option('show_gallery_counts')=='1'))\n\t\t\t{\n\t\t\t\t$num_galleries=$GLOBALS['SITE_DB']->query('SELECT COUNT(*) AS cnt FROM '.$GLOBALS['SITE_DB']->get_table_prefix().'galleries WHERE name LIKE \\''.db_encode_like('member_'.strval($member_id).'_%').'\\'');\n\t\t\t}\n\t\t\t$_lines+=array(\n\t\t\t\t\t\t\t\tdo_lang('USERNAME')=>hyperlink($GLOBALS['OCF_DRIVER']->member_profile_url($member_id,false,true),$username,false,true),\n\t\t\t\t\t\t\t\tdo_lang('JOIN_DATE')=>escape_html(get_timezoned_date($GLOBALS['OCF_DRIVER']->get_member_row_field($member_id,'m_join_time'),false)),\n\t\t\t\t\t\t);\n\t\t\tif ((get_option('show_gallery_counts')=='1') && (addon_installed('galleries')))\n\t\t\t{\n\t\t\t\tif ($num_galleries[0]['cnt']>1)\n\t\t\t\t{\n\t\t\t\t\trequire_lang('galleries');\n\t\t\t\t\t$_lines[do_lang('GALLERIES')]=escape_html(integer_format($num_galleries[0]['cnt']));\n\t\t\t\t}\n\t\t\t}\n\t\t\t$day=$GLOBALS['OCF_DRIVER']->get_member_row_field($member_id,'m_dob_day');\n\t\t\t$month=$GLOBALS['OCF_DRIVER']->get_member_row_field($member_id,'m_dob_month');\n\t\t\t$year=$GLOBALS['OCF_DRIVER']->get_member_row_field($member_id,'m_dob_year');\n\t\t\tif (($GLOBALS['OCF_DRIVER']->get_member_row_field($member_id,'m_reveal_age')==1) && (!is_null($day)))\n\t\t\t{\n\t\t\t\tif (@strftime('%Y',@mktime(0,0,0,1,1,1963))!='1963') $dob=strval($year).'-'.str_pad(strval($month),2,'0',STR_PAD_LEFT).'-'.str_pad(strval($day),2,'0',STR_PAD_LEFT); else $dob=get_timezoned_date(mktime(12,0,0,$month,$day,$year),false,true);\n\t\t\t\t$_lines[do_lang('DATE_OF_BIRTH')]=escape_html($dob);\n\t\t\t}\n\t\t\t$fields=ocf_get_all_custom_fields_match_member(\n\t\t\t\t$member_id,\n\t\t\t\t((get_member()!=$member_id) && (!has_specific_permission(get_member(),'view_any_profile_field')))?1:NULL, // public view\n\t\t\t\t((get_member()==$member_id) && (!has_specific_permission(get_member(),'view_any_profile_field')))?1:NULL, // owner view\n\t\t\t\tNULL, // owner set\n\t\t\t\t0, // encrypted\n\t\t\t\tNULL, // required\n\t\t\t\t$preview?NULL:1, // show in posts\n\t\t\t\t$preview?1:NULL // show in post previews\n\t\t\t);\n\t\t\tforeach ($fields as $key=>$val)\n\t\t\t{\n\t\t\t\tif (((is_string($val['RAW'])) && ($val['RAW']!='')) || ((is_object($val['RAW'])) && (!$val['RAW']->is_empty())))\n\t\t\t\t{\n\t\t\t\t\t$_lines[$key]=$val['RENDERED'];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ((!$preview) && (addon_installed('ocf_contactmember')) && (has_actual_page_access(get_member(),'contactmember')))\n\t\t\t{\n\t\t\t\t$redirect=get_self_url(true);\n\t\t\t\t$email_member_url=build_url(array('page'=>'contactmember','redirect'=>$redirect,'id'=>$member_id),get_module_zone('contactmember'));\n\n\t\t\t\t$_lines[do_lang('ACTIONS')]=hyperlink($email_member_url,do_lang_tempcode('_EMAIL_MEMBER'));\n\t\t\t}\n\t\t}\n\n\t\treturn $_lines;\n\t}", "function getRows() {\n if ($this->_recordset === null) {\n // begin processing result into recordset\n $this->_entries = ldap_get_entries($this->dbh->connection, $this->result);\n $this->row_counter = $this->_entries['count'];\n $i = 1;\n $rs_template = array();\n if (count($this->dbh->attributes) > 0) {\n reset($this->dbh->attributes);\n while (list($a_index, $a_name) = each($this->dbh->attributes)) $rs_template[$a_name] = '';\n }\n while (list($entry_idx, $entry) = each($this->_entries)) {\n // begin first loop, iterate through entries\n if (!empty($this->dbh->limit_from) && ($i < $this->dbh->limit_from)) continue;\n if (!empty($this->dbh->limit_count) && ($i > $this->dbh->limit_count)) break;\n $rs = $rs_template;\n if (!is_array($entry)) continue;\n while (list($attr, $attr_values) = each($entry)) {\n // begin second loop, iterate through attributes\n if (is_int($attr) || $attr == 'count') continue;\n if (is_string($attr_values)) $rs[$attr] = $attr_values;\n else {\n $value = '';\n while (list($value_idx, $attr_value) = each($attr_values)) {\n // begin third loop, iterate through attribute values\n if (!is_int($value_idx)) continue;\n if (empty($value)) $value = $attr_value;\n else {\n if (is_array($value)) $value[] = $attr_value;\n else $value = array($value, $attr_value);\n }\n// else $value .= \"\\n$attr_value\";\n // end third loop\n }\n $rs[$attr] = $value;\n }\n // end second loop\n }\n reset($rs);\n $this->_recordset[$entry_idx] = $rs;\n $i++;\n // end first loop\n }\n $this->_entries = null;\n if (!is_array($this->_recordset))\n $this->_recordset = array();\n if (!empty($this->dbh->sorting)) {\n $sorting_method = (!empty($this->dbh->sorting_method) ? $this->dbh->sorting_method : 'cmp');\n uksort($this->_recordset, array(&$this, $sorting_method));\n }\n reset($this->_recordset);\n // end processing result into recordset\n }\n return DB_OK;\n }", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->precio_item->FormValue == $this->precio_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_item->CurrentValue)))\n\t\t\t$this->precio_item->CurrentValue = ew_StrToFloat($this->precio_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_item->FormValue == $this->costo_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_item->CurrentValue)))\n\t\t\t$this->costo_item->CurrentValue = ew_StrToFloat($this->costo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->saldo_item->FormValue == $this->saldo_item->CurrentValue && is_numeric(ew_StrToFloat($this->saldo_item->CurrentValue)))\n\t\t\t$this->saldo_item->CurrentValue = ew_StrToFloat($this->saldo_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->precio_old_item->FormValue == $this->precio_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->precio_old_item->CurrentValue)))\n\t\t\t$this->precio_old_item->CurrentValue = ew_StrToFloat($this->precio_old_item->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->costo_old_item->FormValue == $this->costo_old_item->CurrentValue && is_numeric(ew_StrToFloat($this->costo_old_item->CurrentValue)))\n\t\t\t$this->costo_old_item->CurrentValue = ew_StrToFloat($this->costo_old_item->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// Id_Item\n\t\t// codigo_item\n\t\t// nombre_item\n\t\t// und_item\n\t\t// precio_item\n\t\t// costo_item\n\t\t// tipo_item\n\t\t// marca_item\n\t\t// cod_marca_item\n\t\t// detalle_item\n\t\t// saldo_item\n\t\t// activo_item\n\t\t// maneja_serial_item\n\t\t// asignado_item\n\t\t// si_no_item\n\t\t// precio_old_item\n\t\t// costo_old_item\n\t\t// registra_item\n\t\t// fecha_registro_item\n\t\t// empresa_item\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// Id_Item\n\t\t$this->Id_Item->ViewValue = $this->Id_Item->CurrentValue;\n\t\t$this->Id_Item->ViewCustomAttributes = \"\";\n\n\t\t// codigo_item\n\t\t$this->codigo_item->ViewValue = $this->codigo_item->CurrentValue;\n\t\t$this->codigo_item->ViewCustomAttributes = \"\";\n\n\t\t// nombre_item\n\t\t$this->nombre_item->ViewValue = $this->nombre_item->CurrentValue;\n\t\t$this->nombre_item->ViewCustomAttributes = \"\";\n\n\t\t// und_item\n\t\t$this->und_item->ViewValue = $this->und_item->CurrentValue;\n\t\t$this->und_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_item\n\t\t$this->precio_item->ViewValue = $this->precio_item->CurrentValue;\n\t\t$this->precio_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_item\n\t\t$this->costo_item->ViewValue = $this->costo_item->CurrentValue;\n\t\t$this->costo_item->ViewCustomAttributes = \"\";\n\n\t\t// tipo_item\n\t\t$this->tipo_item->ViewValue = $this->tipo_item->CurrentValue;\n\t\t$this->tipo_item->ViewCustomAttributes = \"\";\n\n\t\t// marca_item\n\t\t$this->marca_item->ViewValue = $this->marca_item->CurrentValue;\n\t\t$this->marca_item->ViewCustomAttributes = \"\";\n\n\t\t// cod_marca_item\n\t\t$this->cod_marca_item->ViewValue = $this->cod_marca_item->CurrentValue;\n\t\t$this->cod_marca_item->ViewCustomAttributes = \"\";\n\n\t\t// detalle_item\n\t\t$this->detalle_item->ViewValue = $this->detalle_item->CurrentValue;\n\t\t$this->detalle_item->ViewCustomAttributes = \"\";\n\n\t\t// saldo_item\n\t\t$this->saldo_item->ViewValue = $this->saldo_item->CurrentValue;\n\t\t$this->saldo_item->ViewCustomAttributes = \"\";\n\n\t\t// activo_item\n\t\t$this->activo_item->ViewValue = $this->activo_item->CurrentValue;\n\t\t$this->activo_item->ViewCustomAttributes = \"\";\n\n\t\t// maneja_serial_item\n\t\t$this->maneja_serial_item->ViewValue = $this->maneja_serial_item->CurrentValue;\n\t\t$this->maneja_serial_item->ViewCustomAttributes = \"\";\n\n\t\t// asignado_item\n\t\t$this->asignado_item->ViewValue = $this->asignado_item->CurrentValue;\n\t\t$this->asignado_item->ViewCustomAttributes = \"\";\n\n\t\t// si_no_item\n\t\t$this->si_no_item->ViewValue = $this->si_no_item->CurrentValue;\n\t\t$this->si_no_item->ViewCustomAttributes = \"\";\n\n\t\t// precio_old_item\n\t\t$this->precio_old_item->ViewValue = $this->precio_old_item->CurrentValue;\n\t\t$this->precio_old_item->ViewCustomAttributes = \"\";\n\n\t\t// costo_old_item\n\t\t$this->costo_old_item->ViewValue = $this->costo_old_item->CurrentValue;\n\t\t$this->costo_old_item->ViewCustomAttributes = \"\";\n\n\t\t// registra_item\n\t\t$this->registra_item->ViewValue = $this->registra_item->CurrentValue;\n\t\t$this->registra_item->ViewCustomAttributes = \"\";\n\n\t\t// fecha_registro_item\n\t\t$this->fecha_registro_item->ViewValue = $this->fecha_registro_item->CurrentValue;\n\t\t$this->fecha_registro_item->ViewValue = ew_FormatDateTime($this->fecha_registro_item->ViewValue, 0);\n\t\t$this->fecha_registro_item->ViewCustomAttributes = \"\";\n\n\t\t// empresa_item\n\t\t$this->empresa_item->ViewValue = $this->empresa_item->CurrentValue;\n\t\t$this->empresa_item->ViewCustomAttributes = \"\";\n\n\t\t\t// Id_Item\n\t\t\t$this->Id_Item->LinkCustomAttributes = \"\";\n\t\t\t$this->Id_Item->HrefValue = \"\";\n\t\t\t$this->Id_Item->TooltipValue = \"\";\n\n\t\t\t// codigo_item\n\t\t\t$this->codigo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->codigo_item->HrefValue = \"\";\n\t\t\t$this->codigo_item->TooltipValue = \"\";\n\n\t\t\t// nombre_item\n\t\t\t$this->nombre_item->LinkCustomAttributes = \"\";\n\t\t\t$this->nombre_item->HrefValue = \"\";\n\t\t\t$this->nombre_item->TooltipValue = \"\";\n\n\t\t\t// und_item\n\t\t\t$this->und_item->LinkCustomAttributes = \"\";\n\t\t\t$this->und_item->HrefValue = \"\";\n\t\t\t$this->und_item->TooltipValue = \"\";\n\n\t\t\t// precio_item\n\t\t\t$this->precio_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_item->HrefValue = \"\";\n\t\t\t$this->precio_item->TooltipValue = \"\";\n\n\t\t\t// costo_item\n\t\t\t$this->costo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_item->HrefValue = \"\";\n\t\t\t$this->costo_item->TooltipValue = \"\";\n\n\t\t\t// tipo_item\n\t\t\t$this->tipo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->tipo_item->HrefValue = \"\";\n\t\t\t$this->tipo_item->TooltipValue = \"\";\n\n\t\t\t// marca_item\n\t\t\t$this->marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->marca_item->HrefValue = \"\";\n\t\t\t$this->marca_item->TooltipValue = \"\";\n\n\t\t\t// cod_marca_item\n\t\t\t$this->cod_marca_item->LinkCustomAttributes = \"\";\n\t\t\t$this->cod_marca_item->HrefValue = \"\";\n\t\t\t$this->cod_marca_item->TooltipValue = \"\";\n\n\t\t\t// detalle_item\n\t\t\t$this->detalle_item->LinkCustomAttributes = \"\";\n\t\t\t$this->detalle_item->HrefValue = \"\";\n\t\t\t$this->detalle_item->TooltipValue = \"\";\n\n\t\t\t// saldo_item\n\t\t\t$this->saldo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->saldo_item->HrefValue = \"\";\n\t\t\t$this->saldo_item->TooltipValue = \"\";\n\n\t\t\t// activo_item\n\t\t\t$this->activo_item->LinkCustomAttributes = \"\";\n\t\t\t$this->activo_item->HrefValue = \"\";\n\t\t\t$this->activo_item->TooltipValue = \"\";\n\n\t\t\t// maneja_serial_item\n\t\t\t$this->maneja_serial_item->LinkCustomAttributes = \"\";\n\t\t\t$this->maneja_serial_item->HrefValue = \"\";\n\t\t\t$this->maneja_serial_item->TooltipValue = \"\";\n\n\t\t\t// asignado_item\n\t\t\t$this->asignado_item->LinkCustomAttributes = \"\";\n\t\t\t$this->asignado_item->HrefValue = \"\";\n\t\t\t$this->asignado_item->TooltipValue = \"\";\n\n\t\t\t// si_no_item\n\t\t\t$this->si_no_item->LinkCustomAttributes = \"\";\n\t\t\t$this->si_no_item->HrefValue = \"\";\n\t\t\t$this->si_no_item->TooltipValue = \"\";\n\n\t\t\t// precio_old_item\n\t\t\t$this->precio_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->precio_old_item->HrefValue = \"\";\n\t\t\t$this->precio_old_item->TooltipValue = \"\";\n\n\t\t\t// costo_old_item\n\t\t\t$this->costo_old_item->LinkCustomAttributes = \"\";\n\t\t\t$this->costo_old_item->HrefValue = \"\";\n\t\t\t$this->costo_old_item->TooltipValue = \"\";\n\n\t\t\t// registra_item\n\t\t\t$this->registra_item->LinkCustomAttributes = \"\";\n\t\t\t$this->registra_item->HrefValue = \"\";\n\t\t\t$this->registra_item->TooltipValue = \"\";\n\n\t\t\t// fecha_registro_item\n\t\t\t$this->fecha_registro_item->LinkCustomAttributes = \"\";\n\t\t\t$this->fecha_registro_item->HrefValue = \"\";\n\t\t\t$this->fecha_registro_item->TooltipValue = \"\";\n\n\t\t\t// empresa_item\n\t\t\t$this->empresa_item->LinkCustomAttributes = \"\";\n\t\t\t$this->empresa_item->HrefValue = \"\";\n\t\t\t$this->empresa_item->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "private function populate_rows() {\n\t\t\t$this->load->model('users_table');\n\t\t\t$data = $this->users_table->get_entries(); //echo $data[0]->Ime; //echo $data[0]->Prezime;\n\n\t return $data;\n\t\t}", "public function row($content)\n\t{\n\t\tif ($content instanceof Closure) {\n\t\t\t$row = new Row();\n\t\t\tcall_user_func($content, $row);\n\t\t} else {\n\t\t\t$row = new Row($content);\n\t\t}\n\n\t\tob_start();\n\n\t\t$row->build();\n\t\t$contents = ob_get_contents();\n\n\t\tob_end_clean();\n\n\t\treturn $this->append($contents);\n\t}", "private function _make_item_row($data) {\n $item = \"<b>$data->title</b>\";\n if ($data->description) {\n $item.=\"<br /><span>\" . nl2br($data->description) . \"</span><br><span style='float:right;'>\".$data->category.\"<span>\";\n }\n $type = $data->unit_type ? $data->unit_type : \"\";\n\n $val = $this->Sales_Invoices_model->get_details(array(\"id\" => $data->fid_invoices))->row();\n\n if($val->status != \"posting\"){\n return array(\n modal_anchor(get_uri(\"sales/s_invoices/item_modal_form\"), \"<i class='fa fa-pencil'></i>\", array(\"class\" => \"edit\", \"title\" => lang('edit_invoice'), \"data-post-id\" => $data->id)).js_anchor(\"<i class='fa fa-times fa-fw'></i>\", array('title' => lang('delete'), \"class\" => \"delete\", \"data-id\" => $data->id, \"data-action-url\" => get_uri(\"sales/s_invoices/delete_item\"), \"data-action\" => \"delete\")),\n $item,\n to_decimal_format($data->quantity) . \" \" . $type,\n to_currency($data->rate),\n to_currency($data->total),\n\n\n );\n\n }else{\n return array(\n \"&nbsp;\",\n $item,\n to_decimal_format($data->quantity) . \" \" . $type,\n to_currency($data->rate),\n to_currency($data->total)\n\n \n\n );\n\n }\n }", "public function renderRows( $cList, $action ) {\n\t\t$out = $this->getOutput();\n\t\t$out->setPageTitle( wfMessage( 'gather-lists-title' ) );\n\t\t$data = [\n\t\t\t'canHide' => $this->canHideLists(),\n\t\t\t'action' => $action,\n\t\t\t'nextPageUrl' => $cList->getContinueUrl(),\n\t\t];\n\n\t\t$view = new views\\ReportTable( $this->getUser(), $this->getLanguage(), $cList );\n\t\t$view->render( $this->getOutput(), $data );\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t// Convert decimal values if posted back\n\n\t\tif ($this->tarif->FormValue == $this->tarif->CurrentValue && is_numeric(ew_StrToFloat($this->tarif->CurrentValue)))\n\t\t\t$this->tarif->CurrentValue = ew_StrToFloat($this->tarif->CurrentValue);\n\n\t\t// Convert decimal values if posted back\n\t\tif ($this->bhp->FormValue == $this->bhp->CurrentValue && is_numeric(ew_StrToFloat($this->bhp->CurrentValue)))\n\t\t\t$this->bhp->CurrentValue = ew_StrToFloat($this->bhp->CurrentValue);\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// id\n\t\t// id_admission\n\t\t// nomr\n\t\t// statusbayar\n\t\t// kelas\n\t\t// tanggal\n\t\t// kode_tindakan\n\t\t// qty\n\t\t// tarif\n\t\t// bhp\n\t\t// user\n\t\t// nama_tindakan\n\t\t// kelompok_tindakan\n\t\t// kelompok1\n\t\t// kelompok2\n\t\t// kode_dokter\n\t\t// no_ruang\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// id\n\t\t$this->id->ViewValue = $this->id->CurrentValue;\n\t\t$this->id->ViewCustomAttributes = \"\";\n\n\t\t// id_admission\n\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\n\t\t// nomr\n\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t$this->nomr->ViewCustomAttributes = \"\";\n\n\t\t// statusbayar\n\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\n\t\t// kelas\n\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t$this->kelas->ViewCustomAttributes = \"\";\n\n\t\t// tanggal\n\t\t$this->tanggal->ViewValue = $this->tanggal->CurrentValue;\n\t\t$this->tanggal->ViewValue = ew_FormatDateTime($this->tanggal->ViewValue, 7);\n\t\t$this->tanggal->ViewCustomAttributes = \"\";\n\n\t\t// kode_tindakan\n\t\tif (strval($this->kode_tindakan->CurrentValue) <> \"\") {\n\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t$sWhereWrk = \"\";\n\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\tif ($rswrk && !$rswrk->EOF) { // Lookup values found\n\t\t\t\t$arwrk = array();\n\t\t\t\t$arwrk[1] = $rswrk->fields('DispFld');\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->DisplayValue($arwrk);\n\t\t\t\t$rswrk->Close();\n\t\t\t} else {\n\t\t\t\t$this->kode_tindakan->ViewValue = $this->kode_tindakan->CurrentValue;\n\t\t\t}\n\t\t} else {\n\t\t\t$this->kode_tindakan->ViewValue = NULL;\n\t\t}\n\t\t$this->kode_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// qty\n\t\t$this->qty->ViewValue = $this->qty->CurrentValue;\n\t\t$this->qty->ViewCustomAttributes = \"\";\n\n\t\t// tarif\n\t\t$this->tarif->ViewValue = $this->tarif->CurrentValue;\n\t\t$this->tarif->ViewCustomAttributes = \"\";\n\n\t\t// bhp\n\t\t$this->bhp->ViewValue = $this->bhp->CurrentValue;\n\t\t$this->bhp->ViewCustomAttributes = \"\";\n\n\t\t// user\n\t\t$this->user->ViewValue = $this->user->CurrentValue;\n\t\t$this->user->ViewCustomAttributes = \"\";\n\n\t\t// nama_tindakan\n\t\t$this->nama_tindakan->ViewValue = $this->nama_tindakan->CurrentValue;\n\t\t$this->nama_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok_tindakan\n\t\t$this->kelompok_tindakan->ViewValue = $this->kelompok_tindakan->CurrentValue;\n\t\t$this->kelompok_tindakan->ViewCustomAttributes = \"\";\n\n\t\t// kelompok1\n\t\t$this->kelompok1->ViewValue = $this->kelompok1->CurrentValue;\n\t\t$this->kelompok1->ViewCustomAttributes = \"\";\n\n\t\t// kelompok2\n\t\t$this->kelompok2->ViewValue = $this->kelompok2->CurrentValue;\n\t\t$this->kelompok2->ViewCustomAttributes = \"\";\n\n\t\t// kode_dokter\n\t\t$this->kode_dokter->ViewValue = $this->kode_dokter->CurrentValue;\n\t\t$this->kode_dokter->ViewCustomAttributes = \"\";\n\n\t\t// no_ruang\n\t\t$this->no_ruang->ViewValue = $this->no_ruang->CurrentValue;\n\t\t$this->no_ruang->ViewCustomAttributes = \"\";\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\t\t\t$this->id_admission->TooltipValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\t\t\t$this->nomr->TooltipValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\t\t\t$this->statusbayar->TooltipValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\t\t\t$this->kelas->TooltipValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\t\t\t$this->tanggal->TooltipValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\t\t\t$this->kode_tindakan->TooltipValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\t\t\t$this->qty->TooltipValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\t\t\t$this->tarif->TooltipValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\t\t\t$this->bhp->TooltipValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\t\t\t$this->user->TooltipValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\t\t\t$this->nama_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\t\t\t$this->kelompok_tindakan->TooltipValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\t\t\t$this->kelompok1->TooltipValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\t\t\t$this->kelompok2->TooltipValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\t\t\t$this->kode_dokter->TooltipValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t\t$this->no_ruang->TooltipValue = \"\";\n\t\t} elseif ($this->RowType == EW_ROWTYPE_ADD) { // Add row\n\n\t\t\t// id_admission\n\t\t\t$this->id_admission->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->id_admission->EditCustomAttributes = \"\";\n\t\t\tif ($this->id_admission->getSessionValue() <> \"\") {\n\t\t\t\t$this->id_admission->CurrentValue = $this->id_admission->getSessionValue();\n\t\t\t$this->id_admission->ViewValue = $this->id_admission->CurrentValue;\n\t\t\t$this->id_admission->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->id_admission->EditValue = ew_HtmlEncode($this->id_admission->CurrentValue);\n\t\t\t$this->id_admission->PlaceHolder = ew_RemoveHtml($this->id_admission->FldCaption());\n\t\t\t}\n\n\t\t\t// nomr\n\t\t\t$this->nomr->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nomr->EditCustomAttributes = \"\";\n\t\t\tif ($this->nomr->getSessionValue() <> \"\") {\n\t\t\t\t$this->nomr->CurrentValue = $this->nomr->getSessionValue();\n\t\t\t$this->nomr->ViewValue = $this->nomr->CurrentValue;\n\t\t\t$this->nomr->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->nomr->EditValue = ew_HtmlEncode($this->nomr->CurrentValue);\n\t\t\t$this->nomr->PlaceHolder = ew_RemoveHtml($this->nomr->FldCaption());\n\t\t\t}\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->statusbayar->EditCustomAttributes = \"\";\n\t\t\tif ($this->statusbayar->getSessionValue() <> \"\") {\n\t\t\t\t$this->statusbayar->CurrentValue = $this->statusbayar->getSessionValue();\n\t\t\t$this->statusbayar->ViewValue = $this->statusbayar->CurrentValue;\n\t\t\t$this->statusbayar->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->statusbayar->EditValue = ew_HtmlEncode($this->statusbayar->CurrentValue);\n\t\t\t$this->statusbayar->PlaceHolder = ew_RemoveHtml($this->statusbayar->FldCaption());\n\t\t\t}\n\n\t\t\t// kelas\n\t\t\t$this->kelas->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelas->EditCustomAttributes = \"\";\n\t\t\tif ($this->kelas->getSessionValue() <> \"\") {\n\t\t\t\t$this->kelas->CurrentValue = $this->kelas->getSessionValue();\n\t\t\t$this->kelas->ViewValue = $this->kelas->CurrentValue;\n\t\t\t$this->kelas->ViewCustomAttributes = \"\";\n\t\t\t} else {\n\t\t\t$this->kelas->EditValue = ew_HtmlEncode($this->kelas->CurrentValue);\n\t\t\t$this->kelas->PlaceHolder = ew_RemoveHtml($this->kelas->FldCaption());\n\t\t\t}\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tanggal->EditCustomAttributes = \"\";\n\t\t\t$this->tanggal->EditValue = ew_HtmlEncode(ew_FormatDateTime($this->tanggal->CurrentValue, 7));\n\t\t\t$this->tanggal->PlaceHolder = ew_RemoveHtml($this->tanggal->FldCaption());\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_tindakan->EditCustomAttributes = \"\";\n\t\t\tif (trim(strval($this->kode_tindakan->CurrentValue)) == \"\") {\n\t\t\t\t$sFilterWrk = \"0=1\";\n\t\t\t} else {\n\t\t\t\t$sFilterWrk = \"`kode`\" . ew_SearchString(\"=\", $this->kode_tindakan->CurrentValue, EW_DATATYPE_NUMBER, \"\");\n\t\t\t}\n\t\t\t$sSqlWrk = \"SELECT `kode`, `nama_tindakan` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld`, '' AS `SelectFilterFld`, '' AS `SelectFilterFld2`, '' AS `SelectFilterFld3`, '' AS `SelectFilterFld4` FROM `vw_bill_ranap_data_tarif_tindakan`\";\n\t\t\t$sWhereWrk = \"\";\n\t\t\t$this->kode_tindakan->LookupFilters = array();\n\t\t\t$lookuptblfilter = \"`kelompok_tindakan`='5'\";\n\t\t\tew_AddFilter($sWhereWrk, $lookuptblfilter);\n\t\t\tew_AddFilter($sWhereWrk, $sFilterWrk);\n\t\t\t$this->Lookup_Selecting($this->kode_tindakan, $sWhereWrk); // Call Lookup selecting\n\t\t\tif ($sWhereWrk <> \"\") $sSqlWrk .= \" WHERE \" . $sWhereWrk;\n\t\t\t$rswrk = Conn()->Execute($sSqlWrk);\n\t\t\t$arwrk = ($rswrk) ? $rswrk->GetRows() : array();\n\t\t\tif ($rswrk) $rswrk->Close();\n\t\t\t$this->kode_tindakan->EditValue = $arwrk;\n\n\t\t\t// qty\n\t\t\t$this->qty->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->qty->EditCustomAttributes = \"\";\n\t\t\t$this->qty->EditValue = ew_HtmlEncode($this->qty->CurrentValue);\n\t\t\t$this->qty->PlaceHolder = ew_RemoveHtml($this->qty->FldCaption());\n\n\t\t\t// tarif\n\t\t\t$this->tarif->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->tarif->EditCustomAttributes = \"\";\n\t\t\t$this->tarif->EditValue = ew_HtmlEncode($this->tarif->CurrentValue);\n\t\t\t$this->tarif->PlaceHolder = ew_RemoveHtml($this->tarif->FldCaption());\n\t\t\tif (strval($this->tarif->EditValue) <> \"\" && is_numeric($this->tarif->EditValue)) $this->tarif->EditValue = ew_FormatNumber($this->tarif->EditValue, -2, -1, -2, 0);\n\n\t\t\t// bhp\n\t\t\t$this->bhp->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->bhp->EditCustomAttributes = \"\";\n\t\t\t$this->bhp->EditValue = ew_HtmlEncode($this->bhp->CurrentValue);\n\t\t\t$this->bhp->PlaceHolder = ew_RemoveHtml($this->bhp->FldCaption());\n\t\t\tif (strval($this->bhp->EditValue) <> \"\" && is_numeric($this->bhp->EditValue)) $this->bhp->EditValue = ew_FormatNumber($this->bhp->EditValue, -2, -1, -2, 0);\n\n\t\t\t// user\n\t\t\t$this->user->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->user->EditCustomAttributes = \"\";\n\t\t\t$this->user->EditValue = ew_HtmlEncode($this->user->CurrentValue);\n\t\t\t$this->user->PlaceHolder = ew_RemoveHtml($this->user->FldCaption());\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->nama_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->EditValue = ew_HtmlEncode($this->nama_tindakan->CurrentValue);\n\t\t\t$this->nama_tindakan->PlaceHolder = ew_RemoveHtml($this->nama_tindakan->FldCaption());\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok_tindakan->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->EditValue = ew_HtmlEncode($this->kelompok_tindakan->CurrentValue);\n\t\t\t$this->kelompok_tindakan->PlaceHolder = ew_RemoveHtml($this->kelompok_tindakan->FldCaption());\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok1->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok1->EditValue = ew_HtmlEncode($this->kelompok1->CurrentValue);\n\t\t\t$this->kelompok1->PlaceHolder = ew_RemoveHtml($this->kelompok1->FldCaption());\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kelompok2->EditCustomAttributes = \"\";\n\t\t\t$this->kelompok2->EditValue = ew_HtmlEncode($this->kelompok2->CurrentValue);\n\t\t\t$this->kelompok2->PlaceHolder = ew_RemoveHtml($this->kelompok2->FldCaption());\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->kode_dokter->EditCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->EditValue = ew_HtmlEncode($this->kode_dokter->CurrentValue);\n\t\t\t$this->kode_dokter->PlaceHolder = ew_RemoveHtml($this->kode_dokter->FldCaption());\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->EditAttrs[\"class\"] = \"form-control\";\n\t\t\t$this->no_ruang->EditCustomAttributes = \"\";\n\t\t\t$this->no_ruang->EditValue = ew_HtmlEncode($this->no_ruang->CurrentValue);\n\t\t\t$this->no_ruang->PlaceHolder = ew_RemoveHtml($this->no_ruang->FldCaption());\n\n\t\t\t// Add refer script\n\t\t\t// id_admission\n\n\t\t\t$this->id_admission->LinkCustomAttributes = \"\";\n\t\t\t$this->id_admission->HrefValue = \"\";\n\n\t\t\t// nomr\n\t\t\t$this->nomr->LinkCustomAttributes = \"\";\n\t\t\t$this->nomr->HrefValue = \"\";\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->LinkCustomAttributes = \"\";\n\t\t\t$this->statusbayar->HrefValue = \"\";\n\n\t\t\t// kelas\n\t\t\t$this->kelas->LinkCustomAttributes = \"\";\n\t\t\t$this->kelas->HrefValue = \"\";\n\n\t\t\t// tanggal\n\t\t\t$this->tanggal->LinkCustomAttributes = \"\";\n\t\t\t$this->tanggal->HrefValue = \"\";\n\n\t\t\t// kode_tindakan\n\t\t\t$this->kode_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_tindakan->HrefValue = \"\";\n\n\t\t\t// qty\n\t\t\t$this->qty->LinkCustomAttributes = \"\";\n\t\t\t$this->qty->HrefValue = \"\";\n\n\t\t\t// tarif\n\t\t\t$this->tarif->LinkCustomAttributes = \"\";\n\t\t\t$this->tarif->HrefValue = \"\";\n\n\t\t\t// bhp\n\t\t\t$this->bhp->LinkCustomAttributes = \"\";\n\t\t\t$this->bhp->HrefValue = \"\";\n\n\t\t\t// user\n\t\t\t$this->user->LinkCustomAttributes = \"\";\n\t\t\t$this->user->HrefValue = \"\";\n\n\t\t\t// nama_tindakan\n\t\t\t$this->nama_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->nama_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok_tindakan\n\t\t\t$this->kelompok_tindakan->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok_tindakan->HrefValue = \"\";\n\n\t\t\t// kelompok1\n\t\t\t$this->kelompok1->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok1->HrefValue = \"\";\n\n\t\t\t// kelompok2\n\t\t\t$this->kelompok2->LinkCustomAttributes = \"\";\n\t\t\t$this->kelompok2->HrefValue = \"\";\n\n\t\t\t// kode_dokter\n\t\t\t$this->kode_dokter->LinkCustomAttributes = \"\";\n\t\t\t$this->kode_dokter->HrefValue = \"\";\n\n\t\t\t// no_ruang\n\t\t\t$this->no_ruang->LinkCustomAttributes = \"\";\n\t\t\t$this->no_ruang->HrefValue = \"\";\n\t\t}\n\t\tif ($this->RowType == EW_ROWTYPE_ADD ||\n\t\t\t$this->RowType == EW_ROWTYPE_EDIT ||\n\t\t\t$this->RowType == EW_ROWTYPE_SEARCH) { // Add / Edit / Search row\n\t\t\t$this->SetupFieldTitles();\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "function RenderRow() {\n\t\tglobal $conn, $Security, $Language, $archv_finished;\n\n\t\t// Initialize URLs\n\t\t$this->ExportPrintUrl = $this->PageUrl() . \"export=print&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportHtmlUrl = $this->PageUrl() . \"export=html&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportExcelUrl = $this->PageUrl() . \"export=excel&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportWordUrl = $this->PageUrl() . \"export=word&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportXmlUrl = $this->PageUrl() . \"export=xml&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->ExportCsvUrl = $this->PageUrl() . \"export=csv&\" . \"ID=\" . urlencode($archv_finished->ID->CurrentValue);\n\t\t$this->AddUrl = $archv_finished->AddUrl();\n\t\t$this->EditUrl = $archv_finished->EditUrl();\n\t\t$this->CopyUrl = $archv_finished->CopyUrl();\n\t\t$this->DeleteUrl = $archv_finished->DeleteUrl();\n\t\t$this->ListUrl = $archv_finished->ListUrl();\n\n\t\t// Call Row_Rendering event\n\t\t$archv_finished->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// ID\n\n\t\t$archv_finished->ID->CellCssStyle = \"\"; $archv_finished->ID->CellCssClass = \"\";\n\t\t$archv_finished->ID->CellAttrs = array(); $archv_finished->ID->ViewAttrs = array(); $archv_finished->ID->EditAttrs = array();\n\n\t\t// strjrfnum\n\t\t$archv_finished->strjrfnum->CellCssStyle = \"\"; $archv_finished->strjrfnum->CellCssClass = \"\";\n\t\t$archv_finished->strjrfnum->CellAttrs = array(); $archv_finished->strjrfnum->ViewAttrs = array(); $archv_finished->strjrfnum->EditAttrs = array();\n\n\t\t// strquarter\n\t\t$archv_finished->strquarter->CellCssStyle = \"\"; $archv_finished->strquarter->CellCssClass = \"\";\n\t\t$archv_finished->strquarter->CellAttrs = array(); $archv_finished->strquarter->ViewAttrs = array(); $archv_finished->strquarter->EditAttrs = array();\n\n\t\t// strmon\n\t\t$archv_finished->strmon->CellCssStyle = \"\"; $archv_finished->strmon->CellCssClass = \"\";\n\t\t$archv_finished->strmon->CellAttrs = array(); $archv_finished->strmon->ViewAttrs = array(); $archv_finished->strmon->EditAttrs = array();\n\n\t\t// stryear\n\t\t$archv_finished->stryear->CellCssStyle = \"\"; $archv_finished->stryear->CellCssClass = \"\";\n\t\t$archv_finished->stryear->CellAttrs = array(); $archv_finished->stryear->ViewAttrs = array(); $archv_finished->stryear->EditAttrs = array();\n\n\t\t// strdate\n\t\t$archv_finished->strdate->CellCssStyle = \"\"; $archv_finished->strdate->CellCssClass = \"\";\n\t\t$archv_finished->strdate->CellAttrs = array(); $archv_finished->strdate->ViewAttrs = array(); $archv_finished->strdate->EditAttrs = array();\n\n\t\t// strtime\n\t\t$archv_finished->strtime->CellCssStyle = \"\"; $archv_finished->strtime->CellCssClass = \"\";\n\t\t$archv_finished->strtime->CellAttrs = array(); $archv_finished->strtime->ViewAttrs = array(); $archv_finished->strtime->EditAttrs = array();\n\n\t\t// strusername\n\t\t$archv_finished->strusername->CellCssStyle = \"\"; $archv_finished->strusername->CellCssClass = \"\";\n\t\t$archv_finished->strusername->CellAttrs = array(); $archv_finished->strusername->ViewAttrs = array(); $archv_finished->strusername->EditAttrs = array();\n\n\t\t// strusereadd\n\t\t$archv_finished->strusereadd->CellCssStyle = \"\"; $archv_finished->strusereadd->CellCssClass = \"\";\n\t\t$archv_finished->strusereadd->CellAttrs = array(); $archv_finished->strusereadd->ViewAttrs = array(); $archv_finished->strusereadd->EditAttrs = array();\n\n\t\t// strcompany\n\t\t$archv_finished->strcompany->CellCssStyle = \"\"; $archv_finished->strcompany->CellCssClass = \"\";\n\t\t$archv_finished->strcompany->CellAttrs = array(); $archv_finished->strcompany->ViewAttrs = array(); $archv_finished->strcompany->EditAttrs = array();\n\n\t\t// strdepartment\n\t\t$archv_finished->strdepartment->CellCssStyle = \"\"; $archv_finished->strdepartment->CellCssClass = \"\";\n\t\t$archv_finished->strdepartment->CellAttrs = array(); $archv_finished->strdepartment->ViewAttrs = array(); $archv_finished->strdepartment->EditAttrs = array();\n\n\t\t// strloc\n\t\t$archv_finished->strloc->CellCssStyle = \"\"; $archv_finished->strloc->CellCssClass = \"\";\n\t\t$archv_finished->strloc->CellAttrs = array(); $archv_finished->strloc->ViewAttrs = array(); $archv_finished->strloc->EditAttrs = array();\n\n\t\t// strposition\n\t\t$archv_finished->strposition->CellCssStyle = \"\"; $archv_finished->strposition->CellCssClass = \"\";\n\t\t$archv_finished->strposition->CellAttrs = array(); $archv_finished->strposition->ViewAttrs = array(); $archv_finished->strposition->EditAttrs = array();\n\n\t\t// strtelephone\n\t\t$archv_finished->strtelephone->CellCssStyle = \"\"; $archv_finished->strtelephone->CellCssClass = \"\";\n\t\t$archv_finished->strtelephone->CellAttrs = array(); $archv_finished->strtelephone->ViewAttrs = array(); $archv_finished->strtelephone->EditAttrs = array();\n\n\t\t// strcostcent\n\t\t$archv_finished->strcostcent->CellCssStyle = \"\"; $archv_finished->strcostcent->CellCssClass = \"\";\n\t\t$archv_finished->strcostcent->CellAttrs = array(); $archv_finished->strcostcent->ViewAttrs = array(); $archv_finished->strcostcent->EditAttrs = array();\n\n\t\t// strsubject\n\t\t$archv_finished->strsubject->CellCssStyle = \"\"; $archv_finished->strsubject->CellCssClass = \"\";\n\t\t$archv_finished->strsubject->CellAttrs = array(); $archv_finished->strsubject->ViewAttrs = array(); $archv_finished->strsubject->EditAttrs = array();\n\n\t\t// strnature\n\t\t$archv_finished->strnature->CellCssStyle = \"\"; $archv_finished->strnature->CellCssClass = \"\";\n\t\t$archv_finished->strnature->CellAttrs = array(); $archv_finished->strnature->ViewAttrs = array(); $archv_finished->strnature->EditAttrs = array();\n\n\t\t// strdescript\n\t\t$archv_finished->strdescript->CellCssStyle = \"\"; $archv_finished->strdescript->CellCssClass = \"\";\n\t\t$archv_finished->strdescript->CellAttrs = array(); $archv_finished->strdescript->ViewAttrs = array(); $archv_finished->strdescript->EditAttrs = array();\n\n\t\t// strarea\n\t\t$archv_finished->strarea->CellCssStyle = \"\"; $archv_finished->strarea->CellCssClass = \"\";\n\t\t$archv_finished->strarea->CellAttrs = array(); $archv_finished->strarea->ViewAttrs = array(); $archv_finished->strarea->EditAttrs = array();\n\n\t\t// strattach\n\t\t$archv_finished->strattach->CellCssStyle = \"\"; $archv_finished->strattach->CellCssClass = \"\";\n\t\t$archv_finished->strattach->CellAttrs = array(); $archv_finished->strattach->ViewAttrs = array(); $archv_finished->strattach->EditAttrs = array();\n\n\t\t// strpriority\n\t\t$archv_finished->strpriority->CellCssStyle = \"\"; $archv_finished->strpriority->CellCssClass = \"\";\n\t\t$archv_finished->strpriority->CellAttrs = array(); $archv_finished->strpriority->ViewAttrs = array(); $archv_finished->strpriority->EditAttrs = array();\n\n\t\t// strduedate\n\t\t$archv_finished->strduedate->CellCssStyle = \"\"; $archv_finished->strduedate->CellCssClass = \"\";\n\t\t$archv_finished->strduedate->CellAttrs = array(); $archv_finished->strduedate->ViewAttrs = array(); $archv_finished->strduedate->EditAttrs = array();\n\n\t\t// strstatus\n\t\t$archv_finished->strstatus->CellCssStyle = \"\"; $archv_finished->strstatus->CellCssClass = \"\";\n\t\t$archv_finished->strstatus->CellAttrs = array(); $archv_finished->strstatus->ViewAttrs = array(); $archv_finished->strstatus->EditAttrs = array();\n\n\t\t// strlastedit\n\t\t$archv_finished->strlastedit->CellCssStyle = \"\"; $archv_finished->strlastedit->CellCssClass = \"\";\n\t\t$archv_finished->strlastedit->CellAttrs = array(); $archv_finished->strlastedit->ViewAttrs = array(); $archv_finished->strlastedit->EditAttrs = array();\n\n\t\t// strcategory\n\t\t$archv_finished->strcategory->CellCssStyle = \"\"; $archv_finished->strcategory->CellCssClass = \"\";\n\t\t$archv_finished->strcategory->CellAttrs = array(); $archv_finished->strcategory->ViewAttrs = array(); $archv_finished->strcategory->EditAttrs = array();\n\n\t\t// strassigned\n\t\t$archv_finished->strassigned->CellCssStyle = \"\"; $archv_finished->strassigned->CellCssClass = \"\";\n\t\t$archv_finished->strassigned->CellAttrs = array(); $archv_finished->strassigned->ViewAttrs = array(); $archv_finished->strassigned->EditAttrs = array();\n\n\t\t// strdatecomplete\n\t\t$archv_finished->strdatecomplete->CellCssStyle = \"\"; $archv_finished->strdatecomplete->CellCssClass = \"\";\n\t\t$archv_finished->strdatecomplete->CellAttrs = array(); $archv_finished->strdatecomplete->ViewAttrs = array(); $archv_finished->strdatecomplete->EditAttrs = array();\n\n\t\t// strwithpr\n\t\t$archv_finished->strwithpr->CellCssStyle = \"\"; $archv_finished->strwithpr->CellCssClass = \"\";\n\t\t$archv_finished->strwithpr->CellAttrs = array(); $archv_finished->strwithpr->ViewAttrs = array(); $archv_finished->strwithpr->EditAttrs = array();\n\n\t\t// strremarks\n\t\t$archv_finished->strremarks->CellCssStyle = \"\"; $archv_finished->strremarks->CellCssClass = \"\";\n\t\t$archv_finished->strremarks->CellAttrs = array(); $archv_finished->strremarks->ViewAttrs = array(); $archv_finished->strremarks->EditAttrs = array();\n\n\t\t// sap_num\n\t\t$archv_finished->sap_num->CellCssStyle = \"\"; $archv_finished->sap_num->CellCssClass = \"\";\n\t\t$archv_finished->sap_num->CellAttrs = array(); $archv_finished->sap_num->ViewAttrs = array(); $archv_finished->sap_num->EditAttrs = array();\n\n\t\t// work_days\n\t\t$archv_finished->work_days->CellCssStyle = \"\"; $archv_finished->work_days->CellCssClass = \"\";\n\t\t$archv_finished->work_days->CellAttrs = array(); $archv_finished->work_days->ViewAttrs = array(); $archv_finished->work_days->EditAttrs = array();\n\t\tif ($archv_finished->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->ViewValue = $archv_finished->ID->CurrentValue;\n\t\t\t$archv_finished->ID->CssStyle = \"\";\n\t\t\t$archv_finished->ID->CssClass = \"\";\n\t\t\t$archv_finished->ID->ViewCustomAttributes = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->ViewValue = $archv_finished->strjrfnum->CurrentValue;\n\t\t\t$archv_finished->strjrfnum->CssStyle = \"\";\n\t\t\t$archv_finished->strjrfnum->CssClass = \"\";\n\t\t\t$archv_finished->strjrfnum->ViewCustomAttributes = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->ViewValue = $archv_finished->strquarter->CurrentValue;\n\t\t\t$archv_finished->strquarter->CssStyle = \"\";\n\t\t\t$archv_finished->strquarter->CssClass = \"\";\n\t\t\t$archv_finished->strquarter->ViewCustomAttributes = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->ViewValue = $archv_finished->strmon->CurrentValue;\n\t\t\t$archv_finished->strmon->CssStyle = \"\";\n\t\t\t$archv_finished->strmon->CssClass = \"\";\n\t\t\t$archv_finished->strmon->ViewCustomAttributes = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->ViewValue = $archv_finished->stryear->CurrentValue;\n\t\t\t$archv_finished->stryear->CssStyle = \"\";\n\t\t\t$archv_finished->stryear->CssClass = \"\";\n\t\t\t$archv_finished->stryear->ViewCustomAttributes = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->ViewValue = $archv_finished->strdate->CurrentValue;\n\t\t\t$archv_finished->strdate->CssStyle = \"\";\n\t\t\t$archv_finished->strdate->CssClass = \"\";\n\t\t\t$archv_finished->strdate->ViewCustomAttributes = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->ViewValue = $archv_finished->strtime->CurrentValue;\n\t\t\t$archv_finished->strtime->CssStyle = \"\";\n\t\t\t$archv_finished->strtime->CssClass = \"\";\n\t\t\t$archv_finished->strtime->ViewCustomAttributes = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->ViewValue = $archv_finished->strusername->CurrentValue;\n\t\t\t$archv_finished->strusername->CssStyle = \"\";\n\t\t\t$archv_finished->strusername->CssClass = \"\";\n\t\t\t$archv_finished->strusername->ViewCustomAttributes = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->ViewValue = $archv_finished->strusereadd->CurrentValue;\n\t\t\t$archv_finished->strusereadd->CssStyle = \"\";\n\t\t\t$archv_finished->strusereadd->CssClass = \"\";\n\t\t\t$archv_finished->strusereadd->ViewCustomAttributes = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->ViewValue = $archv_finished->strcompany->CurrentValue;\n\t\t\t$archv_finished->strcompany->CssStyle = \"\";\n\t\t\t$archv_finished->strcompany->CssClass = \"\";\n\t\t\t$archv_finished->strcompany->ViewCustomAttributes = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->ViewValue = $archv_finished->strdepartment->CurrentValue;\n\t\t\t$archv_finished->strdepartment->CssStyle = \"\";\n\t\t\t$archv_finished->strdepartment->CssClass = \"\";\n\t\t\t$archv_finished->strdepartment->ViewCustomAttributes = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->ViewValue = $archv_finished->strloc->CurrentValue;\n\t\t\t$archv_finished->strloc->CssStyle = \"\";\n\t\t\t$archv_finished->strloc->CssClass = \"\";\n\t\t\t$archv_finished->strloc->ViewCustomAttributes = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->ViewValue = $archv_finished->strposition->CurrentValue;\n\t\t\t$archv_finished->strposition->CssStyle = \"\";\n\t\t\t$archv_finished->strposition->CssClass = \"\";\n\t\t\t$archv_finished->strposition->ViewCustomAttributes = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->ViewValue = $archv_finished->strtelephone->CurrentValue;\n\t\t\t$archv_finished->strtelephone->CssStyle = \"\";\n\t\t\t$archv_finished->strtelephone->CssClass = \"\";\n\t\t\t$archv_finished->strtelephone->ViewCustomAttributes = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->ViewValue = $archv_finished->strcostcent->CurrentValue;\n\t\t\t$archv_finished->strcostcent->CssStyle = \"\";\n\t\t\t$archv_finished->strcostcent->CssClass = \"\";\n\t\t\t$archv_finished->strcostcent->ViewCustomAttributes = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->ViewValue = $archv_finished->strsubject->CurrentValue;\n\t\t\t$archv_finished->strsubject->CssStyle = \"\";\n\t\t\t$archv_finished->strsubject->CssClass = \"\";\n\t\t\t$archv_finished->strsubject->ViewCustomAttributes = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->ViewValue = $archv_finished->strnature->CurrentValue;\n\t\t\t$archv_finished->strnature->CssStyle = \"\";\n\t\t\t$archv_finished->strnature->CssClass = \"\";\n\t\t\t$archv_finished->strnature->ViewCustomAttributes = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->ViewValue = $archv_finished->strdescript->CurrentValue;\n\t\t\t$archv_finished->strdescript->CssStyle = \"\";\n\t\t\t$archv_finished->strdescript->CssClass = \"\";\n\t\t\t$archv_finished->strdescript->ViewCustomAttributes = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->ViewValue = $archv_finished->strarea->CurrentValue;\n\t\t\t$archv_finished->strarea->CssStyle = \"\";\n\t\t\t$archv_finished->strarea->CssClass = \"\";\n\t\t\t$archv_finished->strarea->ViewCustomAttributes = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->ViewValue = $archv_finished->strattach->CurrentValue;\n\t\t\t$archv_finished->strattach->CssStyle = \"\";\n\t\t\t$archv_finished->strattach->CssClass = \"\";\n\t\t\t$archv_finished->strattach->ViewCustomAttributes = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->ViewValue = $archv_finished->strpriority->CurrentValue;\n\t\t\t$archv_finished->strpriority->CssStyle = \"\";\n\t\t\t$archv_finished->strpriority->CssClass = \"\";\n\t\t\t$archv_finished->strpriority->ViewCustomAttributes = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->ViewValue = $archv_finished->strduedate->CurrentValue;\n\t\t\t$archv_finished->strduedate->CssStyle = \"\";\n\t\t\t$archv_finished->strduedate->CssClass = \"\";\n\t\t\t$archv_finished->strduedate->ViewCustomAttributes = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->ViewValue = $archv_finished->strstatus->CurrentValue;\n\t\t\t$archv_finished->strstatus->CssStyle = \"\";\n\t\t\t$archv_finished->strstatus->CssClass = \"\";\n\t\t\t$archv_finished->strstatus->ViewCustomAttributes = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->ViewValue = $archv_finished->strlastedit->CurrentValue;\n\t\t\t$archv_finished->strlastedit->CssStyle = \"\";\n\t\t\t$archv_finished->strlastedit->CssClass = \"\";\n\t\t\t$archv_finished->strlastedit->ViewCustomAttributes = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->ViewValue = $archv_finished->strcategory->CurrentValue;\n\t\t\t$archv_finished->strcategory->CssStyle = \"\";\n\t\t\t$archv_finished->strcategory->CssClass = \"\";\n\t\t\t$archv_finished->strcategory->ViewCustomAttributes = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->ViewValue = $archv_finished->strassigned->CurrentValue;\n\t\t\t$archv_finished->strassigned->CssStyle = \"\";\n\t\t\t$archv_finished->strassigned->CssClass = \"\";\n\t\t\t$archv_finished->strassigned->ViewCustomAttributes = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->ViewValue = $archv_finished->strdatecomplete->CurrentValue;\n\t\t\t$archv_finished->strdatecomplete->CssStyle = \"\";\n\t\t\t$archv_finished->strdatecomplete->CssClass = \"\";\n\t\t\t$archv_finished->strdatecomplete->ViewCustomAttributes = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->ViewValue = $archv_finished->strwithpr->CurrentValue;\n\t\t\t$archv_finished->strwithpr->CssStyle = \"\";\n\t\t\t$archv_finished->strwithpr->CssClass = \"\";\n\t\t\t$archv_finished->strwithpr->ViewCustomAttributes = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->ViewValue = $archv_finished->strremarks->CurrentValue;\n\t\t\t$archv_finished->strremarks->CssStyle = \"\";\n\t\t\t$archv_finished->strremarks->CssClass = \"\";\n\t\t\t$archv_finished->strremarks->ViewCustomAttributes = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->ViewValue = $archv_finished->sap_num->CurrentValue;\n\t\t\t$archv_finished->sap_num->CssStyle = \"\";\n\t\t\t$archv_finished->sap_num->CssClass = \"\";\n\t\t\t$archv_finished->sap_num->ViewCustomAttributes = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->ViewValue = $archv_finished->work_days->CurrentValue;\n\t\t\t$archv_finished->work_days->CssStyle = \"\";\n\t\t\t$archv_finished->work_days->CssClass = \"\";\n\t\t\t$archv_finished->work_days->ViewCustomAttributes = \"\";\n\n\t\t\t// ID\n\t\t\t$archv_finished->ID->HrefValue = \"\";\n\t\t\t$archv_finished->ID->TooltipValue = \"\";\n\n\t\t\t// strjrfnum\n\t\t\t$archv_finished->strjrfnum->HrefValue = \"\";\n\t\t\t$archv_finished->strjrfnum->TooltipValue = \"\";\n\n\t\t\t// strquarter\n\t\t\t$archv_finished->strquarter->HrefValue = \"\";\n\t\t\t$archv_finished->strquarter->TooltipValue = \"\";\n\n\t\t\t// strmon\n\t\t\t$archv_finished->strmon->HrefValue = \"\";\n\t\t\t$archv_finished->strmon->TooltipValue = \"\";\n\n\t\t\t// stryear\n\t\t\t$archv_finished->stryear->HrefValue = \"\";\n\t\t\t$archv_finished->stryear->TooltipValue = \"\";\n\n\t\t\t// strdate\n\t\t\t$archv_finished->strdate->HrefValue = \"\";\n\t\t\t$archv_finished->strdate->TooltipValue = \"\";\n\n\t\t\t// strtime\n\t\t\t$archv_finished->strtime->HrefValue = \"\";\n\t\t\t$archv_finished->strtime->TooltipValue = \"\";\n\n\t\t\t// strusername\n\t\t\t$archv_finished->strusername->HrefValue = \"\";\n\t\t\t$archv_finished->strusername->TooltipValue = \"\";\n\n\t\t\t// strusereadd\n\t\t\t$archv_finished->strusereadd->HrefValue = \"\";\n\t\t\t$archv_finished->strusereadd->TooltipValue = \"\";\n\n\t\t\t// strcompany\n\t\t\t$archv_finished->strcompany->HrefValue = \"\";\n\t\t\t$archv_finished->strcompany->TooltipValue = \"\";\n\n\t\t\t// strdepartment\n\t\t\t$archv_finished->strdepartment->HrefValue = \"\";\n\t\t\t$archv_finished->strdepartment->TooltipValue = \"\";\n\n\t\t\t// strloc\n\t\t\t$archv_finished->strloc->HrefValue = \"\";\n\t\t\t$archv_finished->strloc->TooltipValue = \"\";\n\n\t\t\t// strposition\n\t\t\t$archv_finished->strposition->HrefValue = \"\";\n\t\t\t$archv_finished->strposition->TooltipValue = \"\";\n\n\t\t\t// strtelephone\n\t\t\t$archv_finished->strtelephone->HrefValue = \"\";\n\t\t\t$archv_finished->strtelephone->TooltipValue = \"\";\n\n\t\t\t// strcostcent\n\t\t\t$archv_finished->strcostcent->HrefValue = \"\";\n\t\t\t$archv_finished->strcostcent->TooltipValue = \"\";\n\n\t\t\t// strsubject\n\t\t\t$archv_finished->strsubject->HrefValue = \"\";\n\t\t\t$archv_finished->strsubject->TooltipValue = \"\";\n\n\t\t\t// strnature\n\t\t\t$archv_finished->strnature->HrefValue = \"\";\n\t\t\t$archv_finished->strnature->TooltipValue = \"\";\n\n\t\t\t// strdescript\n\t\t\t$archv_finished->strdescript->HrefValue = \"\";\n\t\t\t$archv_finished->strdescript->TooltipValue = \"\";\n\n\t\t\t// strarea\n\t\t\t$archv_finished->strarea->HrefValue = \"\";\n\t\t\t$archv_finished->strarea->TooltipValue = \"\";\n\n\t\t\t// strattach\n\t\t\t$archv_finished->strattach->HrefValue = \"\";\n\t\t\t$archv_finished->strattach->TooltipValue = \"\";\n\n\t\t\t// strpriority\n\t\t\t$archv_finished->strpriority->HrefValue = \"\";\n\t\t\t$archv_finished->strpriority->TooltipValue = \"\";\n\n\t\t\t// strduedate\n\t\t\t$archv_finished->strduedate->HrefValue = \"\";\n\t\t\t$archv_finished->strduedate->TooltipValue = \"\";\n\n\t\t\t// strstatus\n\t\t\t$archv_finished->strstatus->HrefValue = \"\";\n\t\t\t$archv_finished->strstatus->TooltipValue = \"\";\n\n\t\t\t// strlastedit\n\t\t\t$archv_finished->strlastedit->HrefValue = \"\";\n\t\t\t$archv_finished->strlastedit->TooltipValue = \"\";\n\n\t\t\t// strcategory\n\t\t\t$archv_finished->strcategory->HrefValue = \"\";\n\t\t\t$archv_finished->strcategory->TooltipValue = \"\";\n\n\t\t\t// strassigned\n\t\t\t$archv_finished->strassigned->HrefValue = \"\";\n\t\t\t$archv_finished->strassigned->TooltipValue = \"\";\n\n\t\t\t// strdatecomplete\n\t\t\t$archv_finished->strdatecomplete->HrefValue = \"\";\n\t\t\t$archv_finished->strdatecomplete->TooltipValue = \"\";\n\n\t\t\t// strwithpr\n\t\t\t$archv_finished->strwithpr->HrefValue = \"\";\n\t\t\t$archv_finished->strwithpr->TooltipValue = \"\";\n\n\t\t\t// strremarks\n\t\t\t$archv_finished->strremarks->HrefValue = \"\";\n\t\t\t$archv_finished->strremarks->TooltipValue = \"\";\n\n\t\t\t// sap_num\n\t\t\t$archv_finished->sap_num->HrefValue = \"\";\n\t\t\t$archv_finished->sap_num->TooltipValue = \"\";\n\n\t\t\t// work_days\n\t\t\t$archv_finished->work_days->HrefValue = \"\";\n\t\t\t$archv_finished->work_days->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($archv_finished->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$archv_finished->Row_Rendered();\n\t}", "function createRowJoined(&$table, $startIndex, $rowData) {\r\n\t\t\t$row = $table->addRow();\r\n\t\t\t//$row->setLanguage($this->getLanguage());\r\n\t\t\treset($rowData);\r\n\t\t\t$nr = $table->getColumnCount();\r\n\t\t\tfor ($i = 0; $i < $nr; $i++) {\r\n\t\t\t\t$index = $i + $startIndex;\r\n\t\t\t\t$val = $rowData[$index];\r\n\t\t\t\tif ($val !== null) {\r\n\t\t\t\t\t//$val = stripSlashes($val);\r\n\t\t\t\t\t$alias = $table->getAlias($i);\r\n\t\t\t\t\tif ($alias !== false) {\r\n\t\t\t\t\t\t$type = $table->getColumnType($alias);\r\n\r\n\t\t\t\t\t\t// Convert the value of the database to the correct PHP format\r\n\t\t\t\t\t\tswitch($type) {\r\n\t\t\t\t\t\t\tcase 'date': // 2003-09-23 21:04:23\r\n\t\t\t\t\t\t\t\tlist($date, $time) = explode(\" \", $val);\r\n\t\t\t\t\t\t\t\tlist($year, $month, $dayOfMonth) = explode(\"-\", $date);\r\n\t\t\t\t\t\t\t\tlist($hour, $minute, $second) = explode(\":\", $time);\r\n\t\t\t\t\t\t\t\t$dateTime = new LibDateTime($hour, $minute, $second, $month, $dayOfMonth, $year);\r\n\t\t\t\t\t\t\t\t$row->setValue($alias, $dateTime);\r\n\t\t\t\t\t\t\t\t//$row->setValue($alias, strToTime($val));\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'time': // 21:04:23\r\n\t\t\t\t\t\t\t\tlist($hour, $minute, $second) = explode(\":\", $val);\r\n\t\t\t\t\t\t\t\t$dateTime = new LibDateTime($hour, $minute, $second);\r\n\t\t\t\t\t\t\t\t$row->setValue($alias, $dateTime);\r\n\t\t\t\t\t\t\t\t//$row->setValue($alias, strToTime($val));\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'bool':\r\n\t\t\t\t\t\t\t\t$row->setValue($alias, ($val == \"yes\") ? true : false);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 'enum':\r\n\t\t\t\t\t\t\t\t$row->setValue($alias, $table->getEnumAliasValue($alias, $val));\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t$row->setValue($alias, $val);\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$row->setStored(); // tell that the data is in the database\r\n\t\t\treturn $row;\r\n\t\t}", "function _build_row_by_post()\n{\n\t$row = array(\n\t\t'syno_id' => $this->_post_class->get_post_get_int( 'syno_id' ),\n\t\t'syno_time_create' => $this->_post_class->get_post_int( 'syno_time_create' ),\n\t\t'syno_time_update' => $this->_post_class->get_post_int( 'syno_time_update' ),\n\t\t'syno_weight' => $this->_post_class->get_post_int( 'syno_weight' ),\n\t\t'syno_key' => $this->_post_class->get_post_text( 'syno_key' ),\n\t\t'syno_value' => $this->_post_class->get_post_text( 'syno_value' ),\n\t);\n\treturn $row;\n}", "function getRows() {\r\n\t\t$start_row = isset($_REQUEST['start'])?$_REQUEST['start']:0;\r\n\t\t$start_row = 3 * (int)$start_row;\r\n\t\t\r\n\t\t$mouses = dajProizvode($start_row);\r\n\t\t\r\n\t\t$formatted_mouses = \"<div id='formatted_mouses'>\" . formatData($mouses) . \"</div>\";\r\n\t\t\r\n\t\techo $formatted_mouses;\r\n\t}", "function RenderRow() {\n\t\tglobal $Security, $Language, $gsLanguage;\n\n\t\t// Initialize URLs\n\t\t$this->AddUrl = $this->GetAddUrl();\n\t\t$this->EditUrl = $this->GetEditUrl();\n\t\t$this->CopyUrl = $this->GetCopyUrl();\n\t\t$this->DeleteUrl = $this->GetDeleteUrl();\n\t\t$this->ListUrl = $this->GetListUrl();\n\t\t$this->SetupOtherOptions();\n\n\t\t// Call Row_Rendering event\n\t\t$this->Row_Rendering();\n\n\t\t// Common render codes for all row types\n\t\t// unid\n\t\t// u_id\n\t\t// acl_id\n\t\t// Title\n\t\t// LV\n\t\t// Type\n\t\t// ResetTime\n\t\t// ResetType\n\t\t// CompleteTask\n\t\t// Occupation\n\t\t// Target\n\t\t// Data\n\t\t// Reward_Gold\n\t\t// Reward_Diamonds\n\t\t// Reward_EXP\n\t\t// Reward_Goods\n\t\t// Info\n\t\t// DATETIME\n\n\t\tif ($this->RowType == EW_ROWTYPE_VIEW) { // View row\n\n\t\t// unid\n\t\t$this->unid->ViewValue = $this->unid->CurrentValue;\n\t\t$this->unid->ViewCustomAttributes = \"\";\n\n\t\t// u_id\n\t\t$this->u_id->ViewValue = $this->u_id->CurrentValue;\n\t\t$this->u_id->ViewCustomAttributes = \"\";\n\n\t\t// acl_id\n\t\t$this->acl_id->ViewValue = $this->acl_id->CurrentValue;\n\t\t$this->acl_id->ViewCustomAttributes = \"\";\n\n\t\t// Title\n\t\t$this->Title->ViewValue = $this->Title->CurrentValue;\n\t\t$this->Title->ViewCustomAttributes = \"\";\n\n\t\t// LV\n\t\t$this->LV->ViewValue = $this->LV->CurrentValue;\n\t\t$this->LV->ViewCustomAttributes = \"\";\n\n\t\t// Type\n\t\t$this->Type->ViewValue = $this->Type->CurrentValue;\n\t\t$this->Type->ViewCustomAttributes = \"\";\n\n\t\t// ResetTime\n\t\t$this->ResetTime->ViewValue = $this->ResetTime->CurrentValue;\n\t\t$this->ResetTime->ViewCustomAttributes = \"\";\n\n\t\t// ResetType\n\t\t$this->ResetType->ViewValue = $this->ResetType->CurrentValue;\n\t\t$this->ResetType->ViewCustomAttributes = \"\";\n\n\t\t// CompleteTask\n\t\t$this->CompleteTask->ViewValue = $this->CompleteTask->CurrentValue;\n\t\t$this->CompleteTask->ViewCustomAttributes = \"\";\n\n\t\t// Occupation\n\t\t$this->Occupation->ViewValue = $this->Occupation->CurrentValue;\n\t\t$this->Occupation->ViewCustomAttributes = \"\";\n\n\t\t// Target\n\t\t$this->Target->ViewValue = $this->Target->CurrentValue;\n\t\t$this->Target->ViewCustomAttributes = \"\";\n\n\t\t// Data\n\t\t$this->Data->ViewValue = $this->Data->CurrentValue;\n\t\t$this->Data->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Gold\n\t\t$this->Reward_Gold->ViewValue = $this->Reward_Gold->CurrentValue;\n\t\t$this->Reward_Gold->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Diamonds\n\t\t$this->Reward_Diamonds->ViewValue = $this->Reward_Diamonds->CurrentValue;\n\t\t$this->Reward_Diamonds->ViewCustomAttributes = \"\";\n\n\t\t// Reward_EXP\n\t\t$this->Reward_EXP->ViewValue = $this->Reward_EXP->CurrentValue;\n\t\t$this->Reward_EXP->ViewCustomAttributes = \"\";\n\n\t\t// Reward_Goods\n\t\t$this->Reward_Goods->ViewValue = $this->Reward_Goods->CurrentValue;\n\t\t$this->Reward_Goods->ViewCustomAttributes = \"\";\n\n\t\t// Info\n\t\t$this->Info->ViewValue = $this->Info->CurrentValue;\n\t\t$this->Info->ViewCustomAttributes = \"\";\n\n\t\t// DATETIME\n\t\t$this->DATETIME->ViewValue = $this->DATETIME->CurrentValue;\n\t\t$this->DATETIME->ViewValue = ew_FormatDateTime($this->DATETIME->ViewValue, 0);\n\t\t$this->DATETIME->ViewCustomAttributes = \"\";\n\n\t\t\t// unid\n\t\t\t$this->unid->LinkCustomAttributes = \"\";\n\t\t\t$this->unid->HrefValue = \"\";\n\t\t\t$this->unid->TooltipValue = \"\";\n\n\t\t\t// u_id\n\t\t\t$this->u_id->LinkCustomAttributes = \"\";\n\t\t\t$this->u_id->HrefValue = \"\";\n\t\t\t$this->u_id->TooltipValue = \"\";\n\n\t\t\t// acl_id\n\t\t\t$this->acl_id->LinkCustomAttributes = \"\";\n\t\t\t$this->acl_id->HrefValue = \"\";\n\t\t\t$this->acl_id->TooltipValue = \"\";\n\n\t\t\t// Title\n\t\t\t$this->Title->LinkCustomAttributes = \"\";\n\t\t\t$this->Title->HrefValue = \"\";\n\t\t\t$this->Title->TooltipValue = \"\";\n\n\t\t\t// LV\n\t\t\t$this->LV->LinkCustomAttributes = \"\";\n\t\t\t$this->LV->HrefValue = \"\";\n\t\t\t$this->LV->TooltipValue = \"\";\n\n\t\t\t// Type\n\t\t\t$this->Type->LinkCustomAttributes = \"\";\n\t\t\t$this->Type->HrefValue = \"\";\n\t\t\t$this->Type->TooltipValue = \"\";\n\n\t\t\t// ResetTime\n\t\t\t$this->ResetTime->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetTime->HrefValue = \"\";\n\t\t\t$this->ResetTime->TooltipValue = \"\";\n\n\t\t\t// ResetType\n\t\t\t$this->ResetType->LinkCustomAttributes = \"\";\n\t\t\t$this->ResetType->HrefValue = \"\";\n\t\t\t$this->ResetType->TooltipValue = \"\";\n\n\t\t\t// CompleteTask\n\t\t\t$this->CompleteTask->LinkCustomAttributes = \"\";\n\t\t\t$this->CompleteTask->HrefValue = \"\";\n\t\t\t$this->CompleteTask->TooltipValue = \"\";\n\n\t\t\t// Occupation\n\t\t\t$this->Occupation->LinkCustomAttributes = \"\";\n\t\t\t$this->Occupation->HrefValue = \"\";\n\t\t\t$this->Occupation->TooltipValue = \"\";\n\n\t\t\t// Target\n\t\t\t$this->Target->LinkCustomAttributes = \"\";\n\t\t\t$this->Target->HrefValue = \"\";\n\t\t\t$this->Target->TooltipValue = \"\";\n\n\t\t\t// Data\n\t\t\t$this->Data->LinkCustomAttributes = \"\";\n\t\t\t$this->Data->HrefValue = \"\";\n\t\t\t$this->Data->TooltipValue = \"\";\n\n\t\t\t// Reward_Gold\n\t\t\t$this->Reward_Gold->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Gold->HrefValue = \"\";\n\t\t\t$this->Reward_Gold->TooltipValue = \"\";\n\n\t\t\t// Reward_Diamonds\n\t\t\t$this->Reward_Diamonds->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Diamonds->HrefValue = \"\";\n\t\t\t$this->Reward_Diamonds->TooltipValue = \"\";\n\n\t\t\t// Reward_EXP\n\t\t\t$this->Reward_EXP->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_EXP->HrefValue = \"\";\n\t\t\t$this->Reward_EXP->TooltipValue = \"\";\n\n\t\t\t// Reward_Goods\n\t\t\t$this->Reward_Goods->LinkCustomAttributes = \"\";\n\t\t\t$this->Reward_Goods->HrefValue = \"\";\n\t\t\t$this->Reward_Goods->TooltipValue = \"\";\n\n\t\t\t// Info\n\t\t\t$this->Info->LinkCustomAttributes = \"\";\n\t\t\t$this->Info->HrefValue = \"\";\n\t\t\t$this->Info->TooltipValue = \"\";\n\n\t\t\t// DATETIME\n\t\t\t$this->DATETIME->LinkCustomAttributes = \"\";\n\t\t\t$this->DATETIME->HrefValue = \"\";\n\t\t\t$this->DATETIME->TooltipValue = \"\";\n\t\t}\n\n\t\t// Call Row Rendered event\n\t\tif ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)\n\t\t\t$this->Row_Rendered();\n\t}", "public function SummaryLine_HTML_row() {\n\t$sCatNum = $this->CatNum();\n\t$htLink = $this->ShopLink($sCatNum);\n\t$sName = $this->NameString();\n\t$sStats = $this->RenderStatus_HTML_cells();\n\treturn \"\\n<tr><td>$htLink</td><td>&ldquo;$sName&rdquo;</td>$sStats</tr>\";\n }", "abstract public function transform(Row $row);", "function _build_row_by_post()\n{\n\t$row = array(\n\t\t'vote_id' => $this->_post_class->get_post_get_int( 'vote_id' ),\n\t\t'vote_time_create' => $this->_post_class->get_post_int( 'vote_time_create' ),\n\t\t'vote_time_update' => $this->_post_class->get_post_int( 'vote_time_update' ),\n\t\t'vote_photo_id' => $this->_post_class->get_post_int( 'vote_photo_id' ),\n\t\t'vote_uid' => $this->_post_class->get_post_int( 'vote_uid' ),\n\t\t'vote_rating' => $this->_post_class->get_post_int( 'vote_rating' ),\n\t\t'vote_hostname' => $this->_post_class->get_post_text( 'vote_hostname' ),\n\n\t);\n\treturn $row;\n}", "public function getExpandedList() {}", "public function enumerate_values_table_row(){\n\t\treturn \"\n\t\t\t<tr>\n\t\t\t\t<td>$this->avg_reaction_time_m_no_faces</td> \n\t\t\t\t<td>$this->accuracy_m_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_m_faces</td> \n\t\t\t\t<td>$this->accuracy_m_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_aba_no_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_no_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_aba_faces</td> \n\t\t\t\t<td>$this->accuracy_aba_faces</td> \n\n\t\t\t\t<td>$this->avg_reaction_time_faces</td> \n\t\t\t\t<td>$this->accuracy_faces</td> \n\t\t\t\t<td>$this->avg_reaction_time_no_faces</td> \n\t\t\t\t<td>$this->accuracy_no_faces</td> \n\t\t\t</tr>\n\t\t\";\n\t}", "protected function outputMany($data)\n {\n \n if(is_object($data))\n $data=$data->getRows();\n\n $output = array();\n foreach ($data as $row) {\n $output[$row['id']] = $this->outputOne($row);\n $output[$row['id']]['rating'] = round($output[$row['id']]['rating'],1);\n $output[$row['id']]['offer_count'] = $output[$row['id']]['offers'];\n unset($output[$row['id']]['offers']);\n unset($output[$row['id']]['discounts']);\n $output[$row['id']]['discount'] = $output[$row['id']]['discount_percentage_to_be_given'];\n //get offers\n $offer_asso = $this->add('Model_RestaurantOffer')\n ->addCondition('restaurant_id',$row['id'])\n ->addCondition('is_active',true)\n ;\n\n $offers_temp = [];\n foreach ($offer_asso as $temp) {\n $offers_temp[] = ['id'=>$temp['id'],'name'=>$temp['name'],'detail'=>$temp['detail']];\n }\n $output[$row['id']]['restaurant_offers'] = $offers_temp;\n\n }\n\n return array_values($output); \n }", "function Row_Rendering() {\n\n\t\t// Enter your code here\t\n\t}" ]
[ "0.8538828", "0.7905523", "0.7905523", "0.7706144", "0.7706144", "0.7706144", "0.7706144", "0.7508382", "0.7508382", "0.6526411", "0.62312543", "0.59437543", "0.5897697", "0.5854228", "0.57490796", "0.56716526", "0.5665254", "0.5550654", "0.55296373", "0.5517833", "0.55015576", "0.5498512", "0.5484972", "0.54801744", "0.54730576", "0.5472788", "0.5451849", "0.53941405", "0.5307877", "0.5306746", "0.53033954", "0.52897805", "0.5261863", "0.5254216", "0.52496225", "0.5243473", "0.52381134", "0.5207453", "0.5206916", "0.52065736", "0.5186471", "0.51844734", "0.51691157", "0.5155728", "0.5154877", "0.5130275", "0.5129072", "0.51142716", "0.5112618", "0.5105226", "0.51051956", "0.509373", "0.5088663", "0.5084736", "0.5076129", "0.5075531", "0.5074681", "0.5073923", "0.5072991", "0.50656813", "0.5065614", "0.5064967", "0.50604475", "0.50569445", "0.5050682", "0.50468934", "0.50436705", "0.5039499", "0.5036651", "0.5025009", "0.5019383", "0.50141346", "0.50100774", "0.5009535", "0.5008709", "0.5008476", "0.50070465", "0.50070465", "0.5002481", "0.500093", "0.4996997", "0.49913266", "0.49849752", "0.49824628", "0.49792185", "0.49757987", "0.49697396", "0.49472415", "0.49416095", "0.4936771", "0.49290276", "0.49285847", "0.4916524", "0.49023956", "0.49020448", "0.48987973", "0.48975167", "0.4889874" ]
0.7488407
11
Export data in HTML/CSV/Word/Excel/Email/PDF format
function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = "") { if (!$Recordset || !$Doc) return; if (!$Doc->ExportCustom) { // Write header $Doc->ExportTableHeader(); if ($Doc->Horizontal) { // Horizontal format, write header $Doc->BeginExportRow(); if ($ExportPageType == "view") { if ($this->peg_id->Exportable) $Doc->ExportCaption($this->peg_id); if ($this->b_mn->Exportable) $Doc->ExportCaption($this->b_mn); if ($this->b_sn->Exportable) $Doc->ExportCaption($this->b_sn); if ($this->b_sl->Exportable) $Doc->ExportCaption($this->b_sl); if ($this->b_rb->Exportable) $Doc->ExportCaption($this->b_rb); if ($this->b_km->Exportable) $Doc->ExportCaption($this->b_km); if ($this->b_jm->Exportable) $Doc->ExportCaption($this->b_jm); if ($this->b_sb->Exportable) $Doc->ExportCaption($this->b_sb); if ($this->l_mn->Exportable) $Doc->ExportCaption($this->l_mn); if ($this->l_sn->Exportable) $Doc->ExportCaption($this->l_sn); if ($this->l_sl->Exportable) $Doc->ExportCaption($this->l_sl); if ($this->l_rb->Exportable) $Doc->ExportCaption($this->l_rb); if ($this->l_km->Exportable) $Doc->ExportCaption($this->l_km); if ($this->l_jm->Exportable) $Doc->ExportCaption($this->l_jm); if ($this->l_sb->Exportable) $Doc->ExportCaption($this->l_sb); } else { if ($this->gjd_id->Exportable) $Doc->ExportCaption($this->gjd_id); if ($this->gjm_id->Exportable) $Doc->ExportCaption($this->gjm_id); if ($this->peg_id->Exportable) $Doc->ExportCaption($this->peg_id); if ($this->b_mn->Exportable) $Doc->ExportCaption($this->b_mn); if ($this->b_sn->Exportable) $Doc->ExportCaption($this->b_sn); if ($this->b_sl->Exportable) $Doc->ExportCaption($this->b_sl); if ($this->b_rb->Exportable) $Doc->ExportCaption($this->b_rb); if ($this->b_km->Exportable) $Doc->ExportCaption($this->b_km); if ($this->b_jm->Exportable) $Doc->ExportCaption($this->b_jm); if ($this->b_sb->Exportable) $Doc->ExportCaption($this->b_sb); if ($this->l_mn->Exportable) $Doc->ExportCaption($this->l_mn); if ($this->l_sn->Exportable) $Doc->ExportCaption($this->l_sn); if ($this->l_sl->Exportable) $Doc->ExportCaption($this->l_sl); if ($this->l_rb->Exportable) $Doc->ExportCaption($this->l_rb); if ($this->l_km->Exportable) $Doc->ExportCaption($this->l_km); if ($this->l_jm->Exportable) $Doc->ExportCaption($this->l_jm); if ($this->l_sb->Exportable) $Doc->ExportCaption($this->l_sb); } $Doc->EndExportRow(); } } // Move to first record $RecCnt = $StartRec - 1; if (!$Recordset->EOF) { $Recordset->MoveFirst(); if ($StartRec > 1) $Recordset->Move($StartRec - 1); } while (!$Recordset->EOF && $RecCnt < $StopRec) { $RecCnt++; if (intval($RecCnt) >= intval($StartRec)) { $RowCnt = intval($RecCnt) - intval($StartRec) + 1; // Page break if ($this->ExportPageBreakCount > 0) { if ($RowCnt > 1 && ($RowCnt - 1) % $this->ExportPageBreakCount == 0) $Doc->ExportPageBreak(); } $this->LoadListRowValues($Recordset); // Render row $this->RowType = EW_ROWTYPE_VIEW; // Render view $this->ResetAttrs(); $this->RenderListRow(); if (!$Doc->ExportCustom) { $Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled if ($ExportPageType == "view") { if ($this->peg_id->Exportable) $Doc->ExportField($this->peg_id); if ($this->b_mn->Exportable) $Doc->ExportField($this->b_mn); if ($this->b_sn->Exportable) $Doc->ExportField($this->b_sn); if ($this->b_sl->Exportable) $Doc->ExportField($this->b_sl); if ($this->b_rb->Exportable) $Doc->ExportField($this->b_rb); if ($this->b_km->Exportable) $Doc->ExportField($this->b_km); if ($this->b_jm->Exportable) $Doc->ExportField($this->b_jm); if ($this->b_sb->Exportable) $Doc->ExportField($this->b_sb); if ($this->l_mn->Exportable) $Doc->ExportField($this->l_mn); if ($this->l_sn->Exportable) $Doc->ExportField($this->l_sn); if ($this->l_sl->Exportable) $Doc->ExportField($this->l_sl); if ($this->l_rb->Exportable) $Doc->ExportField($this->l_rb); if ($this->l_km->Exportable) $Doc->ExportField($this->l_km); if ($this->l_jm->Exportable) $Doc->ExportField($this->l_jm); if ($this->l_sb->Exportable) $Doc->ExportField($this->l_sb); } else { if ($this->gjd_id->Exportable) $Doc->ExportField($this->gjd_id); if ($this->gjm_id->Exportable) $Doc->ExportField($this->gjm_id); if ($this->peg_id->Exportable) $Doc->ExportField($this->peg_id); if ($this->b_mn->Exportable) $Doc->ExportField($this->b_mn); if ($this->b_sn->Exportable) $Doc->ExportField($this->b_sn); if ($this->b_sl->Exportable) $Doc->ExportField($this->b_sl); if ($this->b_rb->Exportable) $Doc->ExportField($this->b_rb); if ($this->b_km->Exportable) $Doc->ExportField($this->b_km); if ($this->b_jm->Exportable) $Doc->ExportField($this->b_jm); if ($this->b_sb->Exportable) $Doc->ExportField($this->b_sb); if ($this->l_mn->Exportable) $Doc->ExportField($this->l_mn); if ($this->l_sn->Exportable) $Doc->ExportField($this->l_sn); if ($this->l_sl->Exportable) $Doc->ExportField($this->l_sl); if ($this->l_rb->Exportable) $Doc->ExportField($this->l_rb); if ($this->l_km->Exportable) $Doc->ExportField($this->l_km); if ($this->l_jm->Exportable) $Doc->ExportField($this->l_jm); if ($this->l_sb->Exportable) $Doc->ExportField($this->l_sb); } $Doc->EndExportRow(); } } // Call Row Export server event if ($Doc->ExportCustom) $this->Row_Export($Recordset->fields); $Recordset->MoveNext(); } if (!$Doc->ExportCustom) { $Doc->ExportTableFooter(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function exportData(): void\n\t{\n\t\t$entries = [];\n\t\tif (!$this->exportColumns && $this->quickExport && $this->queryOptions['viewname']) {\n\t\t\t[$headers, $entries] = $this->getEntriesForQuickExport();\n\t\t} else {\n\t\t\t[$headers, $entries] = $this->getEntriesExport();\n\t\t}\n\t\t$this->output($headers, $entries);\n\t}", "public function getExport(){\n\n $Model = new \\EmailNewsletter\\model\\Email;\n\n $result = $Model\n ->select('email')\n ->order('created_on DESC')\n ->data();\n\n $csv = '';\n\n while($row = $result->fetch()){\n $csv .= \"{$row['email']}\\n\";\n }//while\n\n $path = ENACT_STORAGE . 'email-newsletter-dump.csv';\n\n file_put_contents(ENACT_STORAGE . 'email-newsletter-dump.csv', $csv);\n\n if(!is_file($path)){\n $back = enact_cpSlug('email-newsletter/');\n $this->html(\"<h1>Sorry, the email newsletter export doesn't exist</h1><a href='{$back}'>Go back</a>\");\n }//if\n\n $this->download($path);\n\n }", "function attendance_exporttocsv($data, $filename) {\n $filename .= \".txt\";\n\n header(\"Content-Type: application/download\\n\");\n header(\"Content-Disposition: attachment; filename=\\\"$filename\\\"\");\n header(\"Expires: 0\");\n header(\"Cache-Control: must-revalidate,post-check=0,pre-check=0\");\n header(\"Pragma: public\");\n\n echo get_string('course').\"\\t\".$data->course.\"\\n\";\n echo get_string('group').\"\\t\".$data->group.\"\\n\\n\";\n\n echo implode(\"\\t\", $data->tabhead).\"\\n\";\n foreach ($data->table as $row) {\n echo implode(\"\\t\", $row).\"\\n\";\n }\n}", "public function exportCsvAction()\n {\n $fileName = 'traineedoc.csv';\n $content = $this->getLayout()->createBlock('bs_traineedoc/adminhtml_traineedoc_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function export(){\n\t $list_id = $this->uri->segment(3);\n\t $list_name = $this->distributiondata->getinfobyid('title',$list_id); \n\t \t$query = $this->distributionemails->getbyattribute('list_id',$list_id);\n\t\t\tif ($query->num_rows() > 0){\n\t\t\t\t$header[] = \"Email\";\n\t\t\t\t$header[] = \"Owner\";\n\t\t\t\t$header[] = \"Domains\";\n\t\t\t\t$this->exportxls->addHeader($header);\n\t\t\t\t\n\t\t\t\tforeach ($query->result() as $row){\n\t\t\t\t\t\n\t\t\t\t\t\t$data_row = array();\n\t\t\t\t\t\t$data_row[] = $row->email;\n\t\t\t\t\t\t$data_row[] = $row->owner;\n\t\t\t\t\t\t$data_row[] = $row->domains;\n\t\t\t\t\t\t$this->exportxls->addRow($data_row);\n\t\t\t\t }\n\t\t\t}\n\t\t\n\t\t$list_name = str_replace(' ','',strtolower($list_name));\n\t\t$this->exportxls->sendFile($list_name.'.xls');\n\t}", "public function exportAction()\r\n {\r\n $this->_setParam('outputformat', 'csv');\r\n $this->indexAction(); \r\n }", "public function exportHtml()\n {\n $html = '<table>\n <tr>\n <td>Name</td>\n <td>Description</td>\n <td>Image url</td>\n </tr>';\n\n foreach ($this->items as $item) {\n $html .= \"<tr>\n <td>{$item['name']}</td>\n <td>{$item['description']}</td>\n <td>{$item['image']}</td>\n </tr>\";\n }\n\n $html .= '</table>';\n\n $time = time();\n $filePath = ROOT_DIR . \"/data/beer_$time.html\";\n\n try {\n file_put_contents($filePath, $html);\n\n App::cliLog(\"Successfully exported to $filePath\");\n } catch (Exception $e) {\n App::cliLog($e->getMessage());\n }\n }", "public function export() { \n\t\t$type = $this->uri->segment ( 4 );\n\n\t\t$uri_array = $this->uri->uri_to_assoc ( 3, array (\n\t\t\t\t'export' \n\t\t) );\n\n\t\t// Export selected data\n\t\tif (($uri_array ['export'] == 'csv') || ($uri_array ['export'] == 'xls') && $type == \"user\") {\n\t\t\t$this->export_user ( $uri_array, $uri_array ['export'] );\n\t\t}\n\t\t\n\t}", "public function export()\r\n {\r\n $file_name = 'Leave_details_' . date('d-m-Y') . '.csv';\r\n // print_r($file_name);exit;\r\n header(\"Content-Description: File Transfer\");\r\n header(\"Content-Disposition: attachment; filename=$file_name\");\r\n header(\"Content-Type: application/csv;\");\r\n\r\n\r\n // get data \r\n $data = $this->model->getcsvData();\r\n // print_r($data['exportData']);exit;\r\n\r\n // file creation \r\n $file = fopen('php://output', 'w');\r\n\r\n\r\n // $header = array(\"Department id\",\"Department name\", \"description\",\"status\");\r\n // print_r($header);exit;\r\n // fputcsv($file, $header);\r\n foreach ($data as $value) {\r\n $csv = fputcsv($file, $value);\r\n }\r\n // $csv->move(WRITEPATH.'uploads');\r\n fclose($file);\r\n exit;\r\n }", "function export_csv($file_name, $export_data) {\n\t\theader(\"Content-type:text/csv\");\n\t\theader(\"Content-Disposition:attachment;filename=\" . $file_name);\n\t\theader('Cache-Control:must-revalidate,post-check=0,pre-check=0');\n\t\theader('Expires:0');\n\t\theader('Pragma:public');\n\t\techo $export_data;\n\t\texit;\n\t}", "function export_csv() {\n\t\tglobal $EM_Event;\n\t\tif($EM_Event->event_id != $this->event_id ){\n\t\t\t$event = $this->get_event();\n\t\t\t$event_name = $event->name;\n\t\t}else{\n\t\t\t$event_name = $EM_Event->name;\n\t\t}\n\t\t// The name of the file on the user's pc\n\t\t$file_name = sanitize_title($event_name). \"-bookings.csv\";\n\t\t\n\t\theader(\"Content-Type: application/octet-stream\");\n\t\theader(\"Content-Disposition: Attachment; filename=$file_name\");\n\t\tem_locate_template('templates/csv-event-bookings.php', true);\n\t\texit();\n\t}", "function ExportReportWord($html) {\n\t\tglobal $gsExportFile;\n\t\theader('Content-Type: application/vnd.ms-word' . (EW_CHARSET <> '' ? ';charset=' . EW_CHARSET : ''));\n\t\theader('Content-Disposition: attachment; filename=' . $gsExportFile . '.doc');\n\t\techo $html;\n\t}", "function woocommerce_export_csv_page() {\n\t\t\tglobal $wpdb;\n\t\t\twoocommerce_export_csv_template_header();\n\t\t\twoocommerce_export_csv_template_form();\n\t\t\twoocommerce_export_csv_template_footer();\n\t\t}", "function ExportData() {\n\t\tglobal $t_tinbai_mainsite;\n\t\t$utf8 = TRUE;\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->lTotalRecs = $t_tinbai_mainsite->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->lStartRec = 1;\n\n\t\t// Export all\n\t\tif ($t_tinbai_mainsite->ExportAll) {\n\t\t\t$this->lDisplayRecs = $this->lTotalRecs;\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->lStartRec-1, $this->lDisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\tif ($t_tinbai_mainsite->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument(EW_XML_ENCODING);\n\t\t\t$XmlDoc->AddRoot();\n\t\t} else {\n\t\t\t$ExportDoc = new cExportDocument($t_tinbai_mainsite, \"h\");\n\t\t\t$ExportDoc->ExportHeader();\n\t\t\tif ($ExportDoc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$ExportDoc->BeginExportRow();\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->PK_TINBAI_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_CONGTY_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DMGIOITHIEU_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DMTUYENSINH_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DTSVDANGHOC_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DTCUUSV_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_TITLE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_HIT_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_NEW_MYSEFLT);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_COMMENT_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_ORDER_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_STATUS_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_VISITOR_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_ACTIVE_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_NOTE);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_USER_ADD);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_ADD_TIME);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_USER_EDIT);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->C_EDIT_TIME);\n\t\t\t\t$ExportDoc->ExportCaption($t_tinbai_mainsite->FK_EDITOR_ID);\n\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\tif (!$bSelectLimit && $this->lStartRec > 1)\n\t\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row\n\t\t\t\t$t_tinbai_mainsite->CssClass = \"\";\n\t\t\t\t$t_tinbai_mainsite->CssStyle = \"\";\n\t\t\t\t$t_tinbai_mainsite->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($t_tinbai_mainsite->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->AddRow();\n\t\t\t\t\t$XmlDoc->AddField('PK_TINBAI_ID', $t_tinbai_mainsite->PK_TINBAI_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_CONGTY_ID', $t_tinbai_mainsite->FK_CONGTY_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DMGIOITHIEU_ID', $t_tinbai_mainsite->FK_DMGIOITHIEU_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DMTUYENSINH_ID', $t_tinbai_mainsite->FK_DMTUYENSINH_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DTSVTUONGLAI_ID', $t_tinbai_mainsite->FK_DTSVTUONGLAI_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DTSVDANGHOC_ID', $t_tinbai_mainsite->FK_DTSVDANGHOC_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DTCUUSV_ID', $t_tinbai_mainsite->FK_DTCUUSV_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_DTDOANHNGHIEP_ID', $t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_TITLE', $t_tinbai_mainsite->C_TITLE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_HIT_MAINSITE', $t_tinbai_mainsite->C_HIT_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_NEW_MYSEFLT', $t_tinbai_mainsite->C_NEW_MYSEFLT->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_COMMENT_MAINSITE', $t_tinbai_mainsite->C_COMMENT_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_ORDER_MAINSITE', $t_tinbai_mainsite->C_ORDER_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_STATUS_MAINSITE', $t_tinbai_mainsite->C_STATUS_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_VISITOR_MAINSITE', $t_tinbai_mainsite->C_VISITOR_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_ACTIVE_MAINSITE', $t_tinbai_mainsite->C_ACTIVE_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_TIME_ACTIVE_MAINSITE', $t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_NGUOIDUNGID_MAINSITE', $t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_NOTE', $t_tinbai_mainsite->C_NOTE->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_USER_ADD', $t_tinbai_mainsite->C_USER_ADD->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_ADD_TIME', $t_tinbai_mainsite->C_ADD_TIME->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_USER_EDIT', $t_tinbai_mainsite->C_USER_EDIT->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('C_EDIT_TIME', $t_tinbai_mainsite->C_EDIT_TIME->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('FK_EDITOR_ID', $t_tinbai_mainsite->FK_EDITOR_ID->ExportValue($t_tinbai_mainsite->Export, $t_tinbai_mainsite->ExportOriginalValue));\n\t\t\t\t} else {\n\t\t\t\t\t$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->PK_TINBAI_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_CONGTY_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DMGIOITHIEU_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DMTUYENSINH_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DTSVTUONGLAI_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DTSVDANGHOC_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DTCUUSV_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_DTDOANHNGHIEP_ID);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_TITLE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_HIT_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_NEW_MYSEFLT);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_COMMENT_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_ORDER_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_STATUS_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_VISITOR_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_ACTIVE_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_TIME_ACTIVE_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_NGUOIDUNGID_MAINSITE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_NOTE);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_USER_ADD);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_ADD_TIME);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_USER_EDIT);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->C_EDIT_TIME);\n\t\t\t\t\t$ExportDoc->ExportField($t_tinbai_mainsite->FK_EDITOR_ID);\n\t\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\tif ($t_tinbai_mainsite->Export <> \"xml\")\n\t\t\t$ExportDoc->ExportFooter();\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write BOM if utf-8\n\t\tif ($utf8 && !in_array($t_tinbai_mainsite->Export, array(\"email\", \"xml\")))\n\t\t\techo \"\\xEF\\xBB\\xBF\";\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\tif ($t_tinbai_mainsite->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} elseif ($t_tinbai_mainsite->Export == \"email\") {\n\t\t\t$this->ExportEmail($ExportDoc->Text);\n\t\t\t$this->Page_Terminate($t_tinbai_mainsite->ExportReturnUrl());\n\t\t} else {\n\t\t\techo $ExportDoc->Text;\n\t\t}\n\t}", "public function csv()\n {\n // if dirty data exists\n $this->swallow();\n // if redirecting\n if ($this->redirect) {\n /*header(\"Location: {$this->redirect}\");\n // more headers\n foreach ( $this->headers as $header ) {\n header($header);\n }*/\n $this->redirect($this->redirect, array(), false);\n } else {\n // header xml data\n header('Content-Type: application/csv');\n //过滤$CFG\n if (!empty($this->vars['CFG'])) {\n unset($this->vars['CFG']);\n }\n // more headers\n foreach ($this->headers as $header) {\n header($header);\n }\n // set varibales data\n $results = Utility::array2CSV($this->vars);\n // send\n echo $results;\n }\n }", "public function actionExport(){\n $dompdf = new Dompdf();\n\n\n $dompdf->loadHtml(include('GestorRestauranteWeb/GestorRestaurante/backend/web/index.php?r=fatura%2Findex'));\n\n// (Optional) Setup the paper size and orientation\n $dompdf->setPaper('A4', 'portatil');\n\n// Render the HTML as PDF\n $dompdf->render();\n\n// Output the generated PDF to Browser\n $dompdf->stream();\n exit;\n\n }", "function _export()\n\t{\n\t\t$title=get_page_title('EXPORT');\n\n\t\tif (!array_key_exists('tables',$_POST)) warn_exit(do_lang_tempcode('IMPROPERLY_FILLED_IN'));\n\n\t\t$xml=export_to_xml($_POST['tables'],post_param_integer('comcode_xml',0)==1);\n\n\t\tbreadcrumb_set_self(do_lang_tempcode('_RESULTS'));\n\t\tbreadcrumb_set_parents(array(array('_SELF:_SELF:misc',do_lang_tempcode('XML_DATA_MANAGEMENT'))));\n\n\t\treturn do_template('XML_STORAGE_EXPORT_RESULTS_SCREEN',array('TITLE'=>$title,'XML'=>$xml));\n\t}", "public function export() {\n\t\tif ( ! $this->can_export() ) {\n\t\t\twp_die(\n\t\t\t\t__( 'You do not have permission to export data.', 'affiliate-wp' ),\n\t\t\t\t__( 'Error', 'affiliate-wp' ),\n\t\t\t\tarray( 'response' => 403 )\n\t\t\t);\n\t\t}\n\n\t\t// Set headers.\n\t\t$this->headers();\n\n\t\t$file = $this->get_file();\n\n\t\t@unlink( $this->file );\n\n\t\techo $file;\n\n\t\tdie();\n\t}", "function places_email_listing_csv() {\n\n $query = db_select('meeting_places_emails', 'm');\n $query->fields('m', array('name', 'date'));\n\n $results = $query->execute()->fetchAll();\n\n $rows = array();\n $rows[] = array(\n 'name' => 'name',\n 'date' => 'date'\n );\n\n foreach ($results as $row) {\n $rows[] = array(\n 'name' => $row->name,\n 'date' => format_date($row->date, 'custom', 'Y-m-d'),\n );\n }\n\n array_to_CSV($rows);\n\n header(\"Content-type: application/octet-stream\");\n header(\"Content-Disposition: attachment; filename=meeting_place_email.xls\");\n header(\"Pragma: no-cache\");\n header(\"Expires: 0\");\n return;\n}", "public function export(){\n header(\"Content-type: application/vnd-ms-excel\");\n header(\"Content-Disposition: attachment; filename=Data_Card.xls\");\n \n $data['card'] = $this->Card_model->get_all_card();\n $this->load->view('card/export', $data);\n }", "public function exportExcelAction()\n {\n $fileName = 'traineedoc.xls';\n $content = $this->getLayout()->createBlock('bs_traineedoc/adminhtml_traineedoc_grid')\n ->getExcelFile();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "private static function downloadCsv() {\r\n header('Content-Type: text/csv; charset=utf-8');\r\n header('Content-Disposition: attachment; filename=data.csv');\r\n\r\n // create a file pointer connected to the output stream\r\n $output = fopen('php://output', 'w');\r\n\r\n // output the column headings\r\n fputcsv($output, array('Column 1', 'Column 2', 'Column 3'));\r\n\r\n // fetch the data\r\n $rows = self::getSignatures();\r\n // loop over the rows, outputting them\r\n while ($row = mysqli_fetch_assoc($rows)) fputcsv($output, $row);\r\n }", "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\n\t\t// Export all\n\t\tif ($this->ExportAll) {\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$ExportDoc = ew_ExportDocument($this, \"h\");\n\t\t$ParentTable = \"\";\n\t\tif ($bSelectLimit) {\n\t\t\t$StartRec = 1;\n\t\t\t$StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\t\t\t$StartRec = $this->StartRec;\n\t\t\t$StopRec = $this->StopRec;\n\t\t}\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$ExportDoc->Text .= $sHeader;\n\t\t$this->ExportDocument($ExportDoc, $rs, $StartRec, $StopRec, \"\");\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$ExportDoc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Export header and footer\n\t\t$ExportDoc->ExportHeaderAndFooter();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\t$ExportDoc->Export();\n\t}", "function ExportData() {\r\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\r\n\t\t$bSelectLimit = FALSE;\r\n\r\n\t\t// Load recordset\r\n\t\tif ($bSelectLimit) {\r\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\r\n\t\t} else {\r\n\t\t\tif (!$this->Recordset)\r\n\t\t\t\t$this->Recordset = $this->LoadRecordset();\r\n\t\t\t$rs = &$this->Recordset;\r\n\t\t\tif ($rs)\r\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\r\n\t\t}\r\n\t\t$this->StartRec = 1;\r\n\t\t$this->SetUpStartRec(); // Set up start record position\r\n\r\n\t\t// Set the last record to display\r\n\t\tif ($this->DisplayRecs <= 0) {\r\n\t\t\t$this->StopRec = $this->TotalRecs;\r\n\t\t} else {\r\n\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\r\n\t\t}\r\n\t\tif (!$rs) {\r\n\t\t\theader(\"Content-Type:\"); // Remove header\r\n\t\t\theader(\"Content-Disposition:\");\r\n\t\t\t$this->ShowMessage();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$this->ExportDoc = ew_ExportDocument($this, \"v\");\r\n\t\t$Doc = &$this->ExportDoc;\r\n\t\tif ($bSelectLimit) {\r\n\t\t\t$this->StartRec = 1;\r\n\t\t\t$this->StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\r\n\t\t} else {\r\n\r\n\t\t\t//$this->StartRec = $this->StartRec;\r\n\t\t\t//$this->StopRec = $this->StopRec;\r\n\r\n\t\t}\r\n\r\n\t\t// Call Page Exporting server event\r\n\t\t$this->ExportDoc->ExportCustom = !$this->Page_Exporting();\r\n\t\t$ParentTable = \"\";\r\n\t\t$sHeader = $this->PageHeader;\r\n\t\t$this->Page_DataRendering($sHeader);\r\n\t\t$Doc->Text .= $sHeader;\r\n\t\t$this->ExportDocument($Doc, $rs, $this->StartRec, $this->StopRec, \"view\");\r\n\r\n\t\t// Export detail records (observacion_tutor)\r\n\t\tif (EW_EXPORT_DETAIL_RECORDS && in_array(\"observacion_tutor\", explode(\",\", $this->getCurrentDetailTable()))) {\r\n\t\t\tglobal $observacion_tutor;\r\n\t\t\tif (!isset($observacion_tutor)) $observacion_tutor = new cobservacion_tutor;\r\n\t\t\t$rsdetail = $observacion_tutor->LoadRs($observacion_tutor->GetDetailFilter()); // Load detail records\r\n\t\t\tif ($rsdetail && !$rsdetail->EOF) {\r\n\t\t\t\t$ExportStyle = $Doc->Style;\r\n\t\t\t\t$Doc->SetStyle(\"h\"); // Change to horizontal\r\n\t\t\t\tif ($this->Export <> \"csv\" || EW_EXPORT_DETAIL_RECORDS_FOR_CSV) {\r\n\t\t\t\t\t$Doc->ExportEmptyRow();\r\n\t\t\t\t\t$detailcnt = $rsdetail->RecordCount();\r\n\t\t\t\t\t$observacion_tutor->ExportDocument($Doc, $rsdetail, 1, $detailcnt);\r\n\t\t\t\t}\r\n\t\t\t\t$Doc->SetStyle($ExportStyle); // Restore\r\n\t\t\t\t$rsdetail->Close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t$sFooter = $this->PageFooter;\r\n\t\t$this->Page_DataRendered($sFooter);\r\n\t\t$Doc->Text .= $sFooter;\r\n\r\n\t\t// Close recordset\r\n\t\t$rs->Close();\r\n\r\n\t\t// Call Page Exported server event\r\n\t\t$this->Page_Exported();\r\n\r\n\t\t// Export header and footer\r\n\t\t$Doc->ExportHeaderAndFooter();\r\n\r\n\t\t// Clean output buffer\r\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\r\n\t\t\tob_end_clean();\r\n\r\n\t\t// Write debug message if enabled\r\n\t\tif (EW_DEBUG_ENABLED && $this->Export <> \"pdf\")\r\n\t\t\techo ew_DebugMsg();\r\n\r\n\t\t// Output data\r\n\t\t$Doc->Export();\r\n\t}", "public function export()\n {\n return Excel::download(new ProductExport, 'products.xlsx');\n // return (new ProductExport)->download('products.pdf', \\Maatwebsite\\Excel\\Excel\\::MDPDF);\n }", "public function exportCsvAction()\n {\n $fileName = 'coursedoc.csv';\n $content = $this->getLayout()->createBlock('bs_coursedoc/adminhtml_coursedoc_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function export($filename, $data, $options = array(),$headers_text=array()) {\n\t\t$options = array_merge($this->defaults, $options);\n\t\t\n\t\t// open the file\n\t\tif ($file = @fopen($filename, 'w')) {\n\t\t\t// Iterate through and format data\n\t\t\t$firstRecord = true;\n\t\t\tforeach ($data as $record) {\n\t\t\t\t$row = array();\n\t\t\t\tforeach ($record as $model => $fields) {\n\t\t\t\t\t// TODO add parsing for HABTM\n\t\t\t\t\tif($model==\"BusinessOwner\"){ $fields = array_reverse($fields);}\n\t\t\t\t\tforeach ($fields as $field => $value) {\n\t\t\t\t\t\tif (!is_array($value)) {\n\t\t\t\t\t\t\tif (strpos(strtolower($field),'date') !== false) {\n\t\t\t\t\t\t\t\t$value = date('m-d-Y',strtotime($value));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (strtolower($field) == \"is_active\") {\n\t\t\t\t\t\t\t\t$value = ($value==1) ? \"Active\" : \"Inactive\";\n\t\t\t\t\t\t\t\t$field = \"Status\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (strtolower($field) == \"is_registered\") {\n\t\t\t\t\t\t\t\t$value = ($value==1) ? \"Registered\" : \"Guest\";\n\t\t\t\t\t\t\t\t$field = \"Type\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif ($firstRecord) {\n\t\t\t\t\t\t\t\t//$headers[] = $this->_encode($model . '.' . $field);\n\t\t\t\t\t\t\t\t$field = ucwords(str_replace('_', ' ', $field));\n\t\t\t\t\t\t\t\t$headers[] = $this->_encode($field);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$row[] = $this->_encode($value);\n\t\t\t\t\t\t} // TODO due to HABTM potentially being huge, creating an else might not be plausible\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$rows[] = $row;\n\t\t\t\t$firstRecord = false;\n\t\t\t}\n\n\t\t\tif ($options['headers']) {\n\t\t\t\t// write the 1st row as headings\n\t\t\t\tif($headers_text){\n\t\t\t\t\tfputcsv($file, $headers_text, $options['delimiter'], $options['enclosure']);\n\t\t\t\t}else{\n\t\t\t\t\tfputcsv($file, $headers, $options['delimiter'], $options['enclosure']);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t// Row counter\n\t\t\t$r = 0;\n\t\t\tforeach ($rows as $row) {\n\t\t\t\tfputcsv($file, $row, $options['delimiter'], $options['enclosure']);\n\t\t\t\t$r++;\n\t\t\t}\n\n\t\t\t// close the file\n\t\t\tfclose($file);\n\t\t\t$ok = @chmod($filename, 0777);\t\t\t\n\t\t\treturn $r;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private function htmlToCsv($html) {\n\t\t$html = str_replace ( array (\n\t\t\t\t\"\\t\",\n\t\t\t\t\"\\r\",\n\t\t\t\t\"\\n\" \n\t\t), \"\", $html );\n\t\t$csv = \"\";\n\t\t$dom = new Zend_Dom_Query ( $html );\n\t\t$results = $dom->query ( 'tr' );\n\t\t$count = count ( $results ); // get number of matches: 4\n\t\tforeach ( $results as $result ) {\n\t\t\t\n\t\t\t$domTd = new Zend_Dom_Query ( self::DOMinnerHTML($result) );\n\t\t\t$resultsTd = $domTd->query ( 'td' );\n\t\t\t$countTd = count ( $resultsTd );\n\t\t\t$i = 0;\n\t\t\tforeach( $resultsTd as $resultTd) {\n\t\t\t\t$value = $resultTd->nodeValue;\n\t\t\t\tif ($i != $countTd - 1) {\n\t\t\t\t\t$csv .= trim ( $value ) . \";,\";\n\t\t\t\t} else {\n\t\t\t\t\t$csv .= trim ( $value );\n\t\t\t\t}\n\t\t\t\t$i++;\n\t\t\t}\n\t\t\t$csv .= \"\\n\";\n\t\t}\n\t\t$exportData = str_getcsv ( $csv, \"\\n\" );\n\t\treturn $exportData;\n\t}", "public function export()\n {\n $this->loadModel(\"ExportModel\")->exportCSVResults();\n }", "public function render() {\n\t\tob_clean();\n\n\t\t$csvContent = '';\n\t\t\n\t\t$full_filename = $this->generateFilenameFromTs();\n\n\t\t$this->sendHeader($full_filename);\n\n $out = fopen('php://output', 'w');\n\n\t\t// Fields\n\t\t$header = array();\n\t\tforeach ($this->getItemById('columns') as $column) {\n\t\t\t\t$header[] = $column['label'];\n\t\t}\n fputcsv($out, $header, \";\");\n\n\t\t// Rows\n\t\tforeach ($this->getItemById('listItems') as $row) {\n\t\t\t$row = tx_pttools_div::iconvArray($row, 'UTF-8', 'ISO-8859-1'); // TODO: make encoding configurable via TS\n fputcsv($out, $row, \";\");\n\t\t}\n\n fclose($out);\n\n exit();\n\t}", "public function actionExport()\n {\n // export data to excel file\n return $this->render('export');\n }", "public function csv_export() {\n\t\t\t// Strip edit inline extra html\n\t\t\tremove_filter( 'map_meta_cap', 'wct_map_meta_caps', 10, 4 );\n\t\t\tadd_filter( 'user_has_cap', array( $this, 'filter_has_cap' ), 10, 1 );\n\n\t\t\t// Get all talks\n\t\t\tadd_action( 'wct_admin_request', array( $this, 'get_talks_by_status' ), 10, 1 );\n\n\t\t\t$html_list_table = _get_list_table( 'WP_Posts_List_Table' );\n\t\t\t$html_list_table->prepare_items();\n\t\t\tob_start();\n\t\t\t?>\n\t\t\t<table>\n\t\t\t\t<tr>\n\t\t\t\t\t<?php $html_list_table->print_column_headers(); ?>\n\t\t\t\t</tr>\n\t\t\t\t\t<?php $html_list_table->display_rows_or_placeholder(); ?>\n\t\t\t\t</tr>\n\t\t\t</table>\n\t\t\t<?php\n\t\t\t$output = ob_get_clean();\n\n\t\t\t// Keep only table tags\n\t\t\t$allowed_html = array(\n\t\t\t\t'table' => array(),\n\t\t\t\t'tbody' => array(),\n\t\t\t\t'td' => array(),\n\t\t\t\t'th' => array(),\n\t\t\t\t'tr' => array()\n\t\t\t);\n\n\t\t\t$output = wp_kses( $output, $allowed_html );\n\n\t\t\t$comma = ',';\n\n\t\t\t// If some users are still using Microsoft ;)\n\t\t\tif ( preg_match( \"/Windows/i\", $_SERVER['HTTP_USER_AGENT'] ) ) {\n\t\t\t\t$comma = ';';\n\t\t\t\t$output = utf8_decode( $output );\n\t\t\t}\n\n\t\t\t// $output to csv\n\t\t\t$csv = array();\n\t\t\tpreg_match( '/<table(>| [^>]*>)(.*?)<\\/table( |>)/is', $output, $b );\n\t\t\t$table = $b[2];\n\t\t\tpreg_match_all( '/<tr(>| [^>]*>)(.*?)<\\/tr( |>)/is', $table, $b );\n\t\t\t$rows = $b[2];\n\t\t\tforeach ( $rows as $row ) {\n\t\t\t\t//cycle through each row\n\t\t\t\tif ( preg_match( '/<th(>| [^>]*>)(.*?)<\\/th( |>)/is', $row ) ) {\n\t\t\t\t\t//match for table headers\n\t\t\t\t\tpreg_match_all( '/<th(>| [^>]*>)(.*?)<\\/th( |>)/is', $row, $b );\n\t\t\t\t\t$csv[] = '\"' . implode( '\"' . $comma . '\"', array_map( 'wct_generate_csv_content', $b[2] ) ) . '\"';\n\t\t\t\t} else if ( preg_match( '/<td(>| [^>]*>)(.*?)<\\/td( |>)/is', $row ) ) {\n\t\t\t\t\t//match for table cells\n\t\t\t\t\tpreg_match_all( '/<td(>| [^>]*>)(.*?)<\\/td( |>)/is', $row, $b );\n\t\t\t\t\t$csv[] = '\"' . implode( '\"' . $comma . '\"', array_map( 'wct_generate_csv_content', $b[2] ) ) . '\"';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$file = implode( \"\\n\", $csv );\n\n\t\t\tstatus_header( 200 );\n\t\t\theader( 'Cache-Control: cache, must-revalidate' );\n\t\t\theader( 'Pragma: public' );\n\t\t\theader( 'Content-Description: File Transfer' );\n\t\t\theader( 'Content-Disposition: attachment; filename=' . sprintf( '%s-%s.csv', esc_attr_x( 'talks', 'prefix of the downloaded csv', 'wordcamp-talks' ), date('Y-m-d-his' ) ) );\n\t\t\theader( 'Content-Type: text/csv;' );\n\t\t\tprint( $file );\n\t\t\texit();\n\t\t}", "public function export() {\n\t\t// Are we allowed to do this?\n\t\tif (!$this->mojo->auth->is_admin()) {\n\t\t\tdie('Unauthorised access!');\n\t\t}\n\t\t\n\t\t// Get all the posts\n\t\t$blogs = $this->mojo->blog_model->select(\"DISTINCT(blog)\")->get();\n\t\t$posts = array();\n\t\t\n\t\tforeach ($blogs as $blog) {\n\t\t\t$posts[$blog->blog] = $this->mojo->blog_model->where('blog', $blog->blog)->get();\n\t\t}\n\t\t\n\t\t// Build up the serialised PHP!\n\t\t$export_data['mojo_blog_export'] = TRUE;\n\t\t$export_data['blogs'] = $posts;\n\t\t$data = serialize($export_data);\n\t\t$filename = \"mojoblog_export_\".date('Y-m-d');\n\t\t\n\t\theader('Content-Type: application/php');\n\t\theader('Content-Disposition: attachment; filename=\"'.$filename.'\"');\n\t\theader(\"Content-Transfer-Encoding: binary\");\n\t\theader('Expires: 0');\n\t\theader('Pragma: no-cache');\n\t\theader(\"Content-Length: \".strlen($data));\n\t\t\n\t\texit($data);\n\t}", "protected function doExport(array $options)\n\t{\n\t\t/*\n\t\t * get data in an array\n\t\t */\n\t\t$exportClass = $options['exportClass'];\n\t\t$export = new $exportClass($options['module']->getTable(), $this->getI18n());\n\t\t$data = $export->generate($options['format']);\n\n\t\t/*\n\t\t * transform into downloadable data\n\t\t */\n\t\tswitch($options['extension'])\n\t\t{\n\t\t\tdefault:\n\t\t\t\t$csv = new dmCsvWriter(',', '\"');\n\t\t\t\t$csv->setCharset($options['encoding']);\n\t\t\t\t$data = $csv->convert($data);\n\t\t\t\t$mime = 'text/csv';\n\t\t}\n\n\t\t$this->download($data, array(\n 'file_name' => sprintf('%s-%s_%s.%s',\n\t\tdmConfig::get('site_name'),\n\t\t$this->getI18n()->__($options['module']->getName()),\n\t\tdate('Y-m-d'),\n\t\t$options['extension']\n\t\t),\n 'mime_type' => sprintf('%s; charset=%s', $mime, $options['encoding'])\n\t\t));\n\t}", "function export()\n {\n $form = new Apeform(0, 0, false);\n $form->hidden(\"export\", \"method\");\n $table = $form->hidden($this->table->tablename(), \"table\");\n $options = array(\n 'csv' => '<acronym title=\"Comma Separated Values\"><u>C</u>SV</acronym>/TXT',\n 'sql' => '<acronym title=\"Structured Query Language\"><u>S</u>QL</acronym> dump',\n 'xml' => '<acronym title=\"Extensible Markup Language\"><u>X</u>ML</acronym> <span style=\"font-size:smaller\">(<a href=\"http://www.google.de/search?q=FlatXmlDataSet\">FlatXmlDataSet</a>)</span>'\n );\n $type = $form->radio(\"Export as\", \"\", $options, \"csv\");\n $options = array(\n \",\" => \"Comma (,)\",\n \";\" => \"Semikolon (;)\",\n \"\\t\" => \"Tabulator\",\n \"\\\\0\" => \"Nul\",\n \"|\" => \"Pipe (|)\",\n \"&\" => \"Ampersand (&amp;)\",\n \":\" => \"Colon (:)\",\n \" \" => \"Space\"\n );\n $delimiter = $form->select(\"CSV/TXT <u>d</u>elimiter\", \"\", $options, \",\");\n if ($delimiter == \"\\\\0\")\n $delimiter = chr(0);\n $sections = $form->checkbox(\"SQL sections\", \"\", \"Structure|Data\", \"Structure|Data\");\n $save = $form->checkbox(\"Save as <u>f</u>ile\");\n if (function_exists(\"gzencode\"))\n $compress = $form->checkbox(\"Save <u>g</u>zip compressed\");\n $form->submit(\"Export\");\n\n $tablename = preg_replace('/\\W+/', '_', basename($this->table->tablename()));\n\n if ($form->isValid() && $type == \"csv\") {\n $this->table->delimiter = $delimiter;\n $export = $this->table->export();\n } elseif ($form->isValid() && $type == \"sql\") {\n $export = \"CREATE TABLE `\" . $tablename . \"` (\\n\";\n foreach ($this->table->fields as $field) {\n $export .= \" `\" . preg_replace('/\\W+/', '_', $field) . \"` \";\n if ($this->types[$field] == \"varchar\" || $this->types[$field] == \"null\")\n $export .= \"VARCHAR(255)\";\n elseif ($this->types[$field] == \"bool\")\n $export .= \"TINYINT\";\n else\n $export .= strtoupper($this->types[$field]);\n $export .= \" NOT NULL\";\n if ($field == \"id\")\n $export .= \" AUTO_INCREMENT\";\n $export .= \",\\n\";\n }\n $export .= \" PRIMARY KEY (`id`)\\n);\\n\\n\";\n if (! in_array(\"Structure\", $sections))\n $export = \"\";\n if (! in_array(\"Data\", $sections))\n $this->table->delete();\n while ($row = $this->table->each()) {\n foreach ($row as $field => $value) {\n $sqlRow[preg_replace('/\\W+/', '_', $field)] = \"'\" . addslashes($value) . \"'\";\n }\n $export .= \"INSERT INTO `\" . $tablename;\n $export .= \"` (`\" . implode(\"`, `\", array_keys($sqlRow)) . \"`) VALUES (\" . implode(\", \", $sqlRow) . \");\\n\";\n }\n } elseif ($form->isValid() && $type == \"xml\") {\n $export = '<?xml version=\"1.0\" encoding=\"' . $this->charset . \"\\\"?>\\n\";\n $export .= \"<dataset>\\n\";\n while ($row = $this->table->each()) {\n $export .= ' <' . $tablename . ' id=\"' . $row['id'] . '\"';\n unset($row['id']);\n foreach ($row as $field => $value) {\n $field = preg_replace('/[^a-z0-9-]+/i', '_', $field);\n if (! preg_match('/^[a-z]/i', $field))\n $field = \"field\" . $field;\n $export .= ' ' . $field . '=\"' . htmlspecialchars($value) . '\"';\n }\n $export .= \" />\\n\";\n }\n $export .= \"</dataset>\\n\";\n }\n\n if ($save) {\n $mimeType = 'text/comma-separated-values';\n $extension = \".\" . $type;\n if ($type == \"csv\" && $delimiter == \"\\t\") {\n $mimeType = 'text/tab-separated-values';\n $extension = \".txt\";\n } elseif ($type == \"sql\")\n $mimeType = 'application/octet-stream';\n elseif ($type == \"xml\")\n $mimeType = 'text/xml';\n if (isset($compress) && $compress) {\n $export = gzencode($export);\n $mimeType = 'application/x-gzip';\n $extension .= \".gz\";\n }\n $filename = basename($this->table->tablename()) . $extension;\n header('Content-Type: ' . $mimeType);\n header('Content-Length: ' . strlen($export));\n header('Content-Disposition: attachement; filename=\"' . $filename . '\";');\n echo $export;\n return;\n }\n\n $this->displayHead();\n\n $form->display();\n\n echo \"<pre>\";\n if (isset($export))\n echo htmlentities($export, ENT_NOQUOTES, $this->charset);\n }", "public function exportCsvAction()\n {\n $fileName = 'curriculumdoc.csv';\n $content = $this->getLayout()->createBlock('bs_curriculumdoc/adminhtml_curriculumdoc_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "private function htmlToCsv($html) {\r\n\t\t$html = str_replace(array(\"\\t\", \"\\r\", \"\\n\"), \"\", $html);\r\n\t\t$csv = \"\";\r\n\t\t$dom = new Zend_Dom_Query($html);\r\n\t\t$results = $dom->query('tr');\r\n\t\t$count = count($results); // get number of matches: 4\r\n\t\tforeach ($results as $result) {\r\n\t\t\t$tdList = $result->childNodes;\r\n\t\t\t$tdNumber = $tdList->length;\r\n\t\t\tif ($tdNumber > 0) {\r\n\t\t\t\tfor ($i = 0; $i < $tdNumber; $i++) {\r\n\t\t\t\t\t$value = $tdList->item($i)->nodeValue;\r\n\t\t\t\t\tif ($i != $tdNumber - 1) {\r\n\t\t\t\t\t\t$csv .= trim($value).\";\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$csv .= trim($value);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t$csv .= \"\\n\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t$exportData = str_getcsv($csv, \"\\n\");\r\n\t\treturn $exportData;\r\n\t}", "function printContent() {\n\n $this->content.=$this->doc->endPage();\n\t\tif(isset($_REQUEST[export])){\n\t\t\theader(\"Content-type: application/force-download\");\n\t\t\theader(\"Content-Disposition: filename=participants_\".$_REQUEST['cuid'].\".csv\");\n\n\t\t\theader(\"Content-Description: Downloaded File\");\n\n\t\t\techo $this->csvExport($_REQUEST['cuid']);\n\t\t} else {\n\t\t\techo $this->content;\n\t\t}\n }", "function export_data_to_csv($data,$filename='export',$delimiter = ';',$enclosure = '\"')\n{\n // Tells to the browser that a file is returned, with its name : $filename.csv\n header(\"Content-disposition: attachment; filename=$filename.csv\");\n // Tells to the browser that the content is a csv file\n header(\"Content-Type: text/csv\");\n\n // I open PHP memory as a file\n $fp = fopen(\"php://output\", 'w');\n\n // Insert the UTF-8 BOM in the file\n fputs($fp, $bom =( chr(0xEF) . chr(0xBB) . chr(0xBF) ));\n\n // I add the array keys as CSV headers\n fputcsv($fp,array_keys($data[0]),$delimiter,$enclosure);\n\n // Add all the data in the file\n foreach ($data as $fields) {\n fputcsv($fp, $fields,$delimiter,$enclosure);\n }\n\n // Close the file\n fclose($fp);\n\n // Stop the script\n die();\n}", "public function export()\n {\n \t/*create pdf file here with */\n \t$pdfOutput = \"\";\n \t\n \treturn $pdfOutput;\n }", "public function exportData()\n {\n $locales = Lang::allLocales();\n $columns[] = 'ID';\n\n foreach (['Name', 'Title', 'Alt'] as $label) {\n foreach ($locales as $lang => $langName) {\n $columns[] = strtoupper($lang) . ' ' . $label;\n }\n }\n\n $filename = tempnam(sys_get_temp_dir(), 'CSV');\n $datafile = fopen($filename, 'w');\n\n fputcsv($datafile, $columns);\n\n $files = FileLibrary::select('*')->withLanguage(LANG)->orderBy('file_path')->get();\n\n foreach ($files as $file) {\n $row = [$file->id];\n\n foreach (['file_path', 'title', 'alt'] as $field) {\n foreach ($locales as $lang => $langName) {\n if ($field == 'file_path' && $lang != LANG && $file->languages[$lang]->file_path == $file->languages[LANG]->file_path) {\n $row[] = '';\n } else {\n $row[] = $file->languages[$lang]->{$field};\n }\n }\n }\n\n fputcsv($datafile, $row);\n }\n\n fclose($datafile);\n\n return Response::download($filename, 'FilesData.csv');\n }", "public function export()\n { \n $this->title = 'Export Data'; \n return view('mitra::Product.BOF.export')->with([\n 'page' => $this\n ]);\n }", "public static function view_Download () {\n header(\"Content-type: text/csv\");\n header('Content-disposition: attachment; filename=\"'.$_SESSION['CSV']['title'].'.csv\"');\n echo $_SESSION['CSV']['csv'];\n exit;\n }", "public function export() {\n\n foreach ( $this::getFieldMap() as $key => $mappedField ) {\n\n if ( $mappedField->sheet == '-None-' )\n continue;\n\n if ( $this->setActiveSheet( $mappedField->sheet, 'name' ) ) {\n\n $this->activeSheet->setCellValue( $mappedField->cell, $this->getValueForField( (int) $mappedField->field_id ) );\n\n $this->saveActiveSheetChanges();\n\n }\n }\n\n $this->saveAndFlushCalculationCaches();\n\n $current_user = get_userdata( get_current_user_id() );\n\n $emailContent = 'This is an automated email containing an exported copy of a user form submission'\n . \"\\n\\n User Login: \" . $current_user->user_login\n . \"\\n User Email: \" . $current_user->user_email;\n\n if ( $current_user->first_name && $current_user->last_name ) {\n\n $emailContent .= \"\\n Name: \" . $current_user->first_name . ' ' . $current_user->last_name;\n }\n\n wp_mail( $this::getExportDestinationEmails(), 'Gravityforms Entry Export from GEB', $emailContent, '', $this->args['destinationFile'] );\n }", "function csv() {\n header('Content-Type: text/csv; charset=utf-8');\n header('Content-Disposition: attachment; filename=fflives.csv');\n\n // create a file pointer connected to the output stream\n $output = fopen('php://output', 'w');\n\n // output the column headings\n fputcsv($output, array('im_name', 'im_url'));\n\n // fetch the data\n foreach ($this->data as $id) {\n $im_name = \"$id.png\";\n $im_url = SITE_ROOT . \"themes/fflives/images/data/$id.png\";\n fputcsv($output, array($im_name, $im_url));\n }\n }", "public function exportPDF() { \n $this->load->helper('pdf_helper');\n $data['activities'] = $this->mod_activities->exportAllDatas('activities');\n $this->load->view('include/BE/activities/pdfexport', $data);\n }", "public function export()\n {\n JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));\n\n $app = JFactory::getApplication();\n\n $email = $app->input->getString('email');\n $filename = \"user-data-export.json\";\n\n /**\n * @var EventgalleryModelGdpr $model\n */\n $model = $this->getModel();\n\n $carts = $model->getCarts($email);\n $orders = $model->getOrders($email);\n $users = $model->getUsers($email);\n\n $data = [];\n\n $data[JText::_('COM_EVENTGALLERY_GDPR_CARTS')] = array_map(array($this,'renderCart'), $carts);\n $data[JText::_('COM_EVENTGALLERY_GDPR_ORDERS')] = array_map(array($this,'renderOrder'), $orders);\n $data[JText::_('COM_EVENTGALLERY_GDPR_USERS')] = array_map(array($this,'renderUser'), $users);\n\n echo json_encode($data, JSON_PRETTY_PRINT);\n\n header('Content-type: text/plain');\n header('Content-disposition: attachment; filename=\"' . $filename . '\"');\n\n $app->close();\n\n }", "public function exportDataAsCSVFormat()\n\t{\n\t\t$emailResult=array();\n\t\t\n\t\t//$record=1;\n\t\t$qry=$this->getAllDetails();\n\t\t\n\t\t\n\t\t// THIS LINE WRITES THE TABLE HEADERS VALUES TO A MULTI-DIMENSIONAL ARRAY\t\n\t\t$emailResult[]=array(\"itemId\",\"title\",\"firstName\",\"lastName\",\"email\",\"countryCode\",\"subscribe\");\n\t\t\n\t\t\n\t\tforeach($qry as $rs)\n\t\t{\n\t\t\t\n\t\t\t$itemId=$rs->getId();\n\t\t\t$title=$rs->getTitle();\n\t\t\t$firstName=$rs->getFirstName();\n\t\t\t$lastName=$rs->getLastName();\n\t\t\t$email=$rs->getEmail();\n\t\t\t$countryCode=$rs->getCountryCode();\n\t\t\t$subscribe=$rs->getSubscribe();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tif($subscribe==1){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t$excelFileSubscribe='Subscribe';\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\t$excelFileSubscribe='Unsubscribe';\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// THIS LINE WRITES THE ROW VALUES OBTAINED TO A MULTI-DIMENSIONAL ARRAY\t\n\t\t\t$emailResult[]=array($itemId,$title,$firstName,$lastName,$email,$countryCode,$excelFileSubscribe);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $emailResult;\n\t\n\t}", "function exportall_user_txt()\n\t {\n\t\t$this->db->select('users.username,profiles.Fname,profiles.Lname,users.email,profiles.live,profiles.work,profiles.phnum,profiles.describe,users.timezone,users.banned,users.last_ip,users.last_login,users.created,users.role_id');\n\t\t$this->db->join('profiles','profiles.id=users.id');\n\t\t$this->db->from('users');\t\n\t\t$data=$this->db->get();\n\t\t\t\t\n\t\t$this->load->dbutil();\n\t\t$delimiter = \"|\";\n\t\t$newline = \"\\r\\n\";\n\t\t$query=$this->dbutil->csv_from_result($data, $delimiter, $newline);\n\t\t$site_name = $this->dx_auth->get_site_title(); \n\t\t$name='Export'.$site_name.'.txt';\n\t\tforce_download($name, $query); \n\t }", "function CSVExport ($sql_csv)\n {\n header(\"Content-type:text/octect-stream\");\n header(\"Content-Disposition:attachment;filename=data.csv\");\n while ($row = mysql_fetch_row($sql_csv))\n {\n print '\"' . stripslashes(implode('\",\"', $row)) . \"\\\"\\n\";\n }\n exit();\n }", "public function export()\n {\n return Excel::download(new PeopleExport, 'people-' . date('Y-m-d H:i:s') . '.' . request('format', 'xlsx'));\n }", "function ExportData() {\n\t\t$utf8 = (strtolower(EW_CHARSET) == \"utf-8\");\n\t\t$bSelectLimit = $this->UseSelectLimit;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->TotalRecs = $this->SelectRecordCount();\n\t\t} else {\n\t\t\tif (!$this->Recordset)\n\t\t\t\t$this->Recordset = $this->LoadRecordset();\n\t\t\t$rs = &$this->Recordset;\n\t\t\tif ($rs)\n\t\t\t\t$this->TotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->StartRec = 1;\n\n\t\t// Export all\n\t\tif ($this->ExportAll) {\n\t\t\tset_time_limit(EW_EXPORT_ALL_TIME_LIMIT);\n\t\t\t$this->DisplayRecs = $this->TotalRecs;\n\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->DisplayRecs <= 0) {\n\t\t\t\t$this->StopRec = $this->TotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->StopRec = $this->StartRec + $this->DisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->StartRec-1, $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\t$this->ExportDoc = ew_ExportDocument($this, \"h\");\n\t\t$Doc = &$this->ExportDoc;\n\t\tif ($bSelectLimit) {\n\t\t\t$this->StartRec = 1;\n\t\t\t$this->StopRec = $this->DisplayRecs <= 0 ? $this->TotalRecs : $this->DisplayRecs;\n\t\t} else {\n\n\t\t\t//$this->StartRec = $this->StartRec;\n\t\t\t//$this->StopRec = $this->StopRec;\n\n\t\t}\n\n\t\t// Call Page Exporting server event\n\t\t$this->ExportDoc->ExportCustom = !$this->Page_Exporting();\n\t\t$ParentTable = \"\";\n\t\t$sHeader = $this->PageHeader;\n\t\t$this->Page_DataRendering($sHeader);\n\t\t$Doc->Text .= $sHeader;\n\t\t$this->ExportDocument($Doc, $rs, $this->StartRec, $this->StopRec, \"\");\n\t\t$sFooter = $this->PageFooter;\n\t\t$this->Page_DataRendered($sFooter);\n\t\t$Doc->Text .= $sFooter;\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Call Page Exported server event\n\t\t$this->Page_Exported();\n\n\t\t// Export header and footer\n\t\t$Doc->ExportHeaderAndFooter();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\t$Doc->Export();\n\t}", "public function reportExport()\n {\n \t$report = Report::join('report_natures', 'reports.report_nature', '=', 'report_natures.id')\n ->join('residents', 'reports.submitted_by', '=', 'user_id')\n ->select('reports.*', 'residents.name_first', 'residents.name_middle', 'residents.name_last', 'report_natures.nature_name')\n ->get();\n\n \t$pdf = PDF::loadView('exporttopdf');\n\n \t$html = '<html>' . \n\t\t\t\t\t'<style>' .\n\t\t \t\t\t'table {\n\t\t\t\t\t\t border-collapse: collapse;\n\t\t\t\t\t\t align: center;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttable, th, td {\n\t\t\t\t\t\t\tpadding-left: 5px;\n\t\t\t\t\t\t\tpadding-right: 5px;\n\t\t\t\t\t\t border: 1px solid black;\n\t\t\t\t\t\t text-align: center;\n\t\t\t\t\t\t}' .\n 'h3 {\n text-align: center;\n }' .\n\t\t\t\t\t'</style>' .\n \t\t\t\t'<body>' .\n '<h3> Reports List </h3><br>' .\n \t\t\t\t\t'<table>' . \n \t\t\t\t\t\t'<thead>' .\n \t\t\t\t\t\t\t'<tr>' .\n \t\t\t\t\t\t\t\t'<th><b>Report Nature</b></th>' .\n \t\t\t\t\t\t\t\t'<th><b>Description</b></th>' . \n \t\t\t\t\t\t\t\t'<th><b>Location</b></th>' . \n \t\t\t\t\t\t\t\t'<th><b>Time Submitted</b></th>' .\n \t\t\t\t\t\t\t\t'<th><b>Submitted By</b></th>' .\n \t\t\t\t\t\t\t'</tr>' .\n \t\t\t\t\t\t'</thead>' .\n \t\t\t\t\t\t'<tbody>'; \n\n \tforeach ($report as $details) \n \t{ \n \t\t$html .= \t\"<tr>\" .\n \t\t\t\t\t\"<td>\" . $details->nature_name . \"</td>\" .\n \t\t\t\t\t\"<td>\" . $details->description . \"</td>\" . \n \t\t\t\t\t\"<td>\" . $details->location . \"</td>\" . \n \t\t\t\t\t\"<td>\" . $details->created_at . \"</td>\" .\n \t\t\t\t\t\"<td>\" . $details->name_first . \" \" . $details->name_middle . \" \" . $details->name_last . \"</td>\" .\n \t\t\t\t\t\"</tr>\"; \n \t} \n \t\t$html .= \t'</tbody>' . \n \t\t\t\t\t\t'</table>' .\n \t\t\t\t\t\t\t'</body>' . \n \t\t\t\t\t\t\t\t'</html>'; \n\n \t\t$pdf->loadHTML($html); \n\n \t\treturn $pdf->stream('Report List');\n }", "public function exportExcelAction()\n {\n $fileName = 'coursedoc.xls';\n $content = $this->getLayout()->createBlock('bs_coursedoc/adminhtml_coursedoc_grid')\n ->getExcelFile();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function csv_export() {\n\t$export = \"\";\n\t$order_id = null;\n\t$order_ids = array();\n\t$headers = array();\n\t$products = array();\n\t$summaries = array();\n\tforeach ($this->records as $record) {\n\t $order_id = $record[\"order_id\"];\n\t $order_ids[] = $order_id;\n\t if(!isset($headers[$order_id])) {\n\t\t$headers[$order_id] = $this->build_order_header($record);\n\t }\n\t $products[$order_id] = (isset($products[$order_id]) ? $products[$order_id] : '').$this->build_order_product_line($record);\n\t if(!isset($summaries[$order_id])) {\n\t\t$summaries[$order_id] = $this->build_order_summary($record);\n\t }\n\t}\n\t$order_ids = array_unique($order_ids);\n\tforeach($order_ids as $oid) {\n\t $export .= $headers[$oid].$products[$oid].$summaries[$oid];\n\t}\n\n\treturn $export;\n }", "public function actionExport($id) {\n \t//header('Content-Type: text/csv; charset=windows-1251; Content-Disposition: attachment; filename*=\"Na%C3%AFve%20file.txt\"');\n\n $model = $this->loadModel($id);\n $arrayForExport = ExportFiles::getArrayForExport($id);\n $questions_arr = $arrayForExport['questions_arr'];\n $respondents = $arrayForExport['respondents'];\n $content = Utils::getFullRespondentData($questions_arr, $respondents);//получаем все как форматированный текст\n $filename = Yii::t('app', 'Quiz').'_'.$model->title.'_'.date('d_m_Y_H_i_s').'.csv';\n $content = '\"'.Utils::intoCharset($model->title, \"UTF-8\", \"windows-1251\").'\";' . \"\\n\\n\" . $content;\n Yii::app()->getRequest()->sendFile($filename, $content, \"text/csv\", false);\n //exit();\n }", "public function export(){\r\n $specified = $this->__isExportFieldSpecified();\r\n if($specified){\r\n $csv = $this->Student->export($specified);\r\n $this->Response->csv($csv);\r\n }else{\r\n $schemas = $this->Student->export();\r\n $this->set(compact('specified', 'schemas'));\r\n }\r\n }", "function download_feedback_as_csv() {\n\t\tif ( empty( $_POST['feedback_export_nonce'] ) )\n\t\t\treturn;\n\n\t\tcheck_admin_referer( 'feedback_export', 'feedback_export_nonce' );\n\n\t\t$args = array(\n\t\t\t'posts_per_page' => -1,\n\t\t\t'post_type' => 'feedback',\n\t\t\t'post_status' => 'publish',\n\t\t\t'order' => 'ASC',\n\t\t\t'fields' => 'ids',\n\t\t\t'suppress_filters' => false,\n\t\t);\n\n\t\t$filename = date( \"Y-m-d\" ) . '-feedback-export.csv';\n\n\t\t// Check if we want to download all the feedbacks or just a certain contact form\n\t\tif ( ! empty( $_POST['post'] ) && $_POST['post'] !== 'all' ) {\n\t\t\t$args['post_parent'] = (int) $_POST['post'];\n\t\t\t$filename = date( \"Y-m-d\" ) . '-' . str_replace( '&nbsp;', '-', get_the_title( (int) $_POST['post'] ) ) . '.csv';\n\t\t}\n\n\t\t$feedbacks = get_posts( $args );\n\t\t$filename = sanitize_file_name( $filename );\n\t\t$fields = $this->get_field_names( $feedbacks );\n\n\t\tarray_unshift( $fields, __( 'Contact Form', 'jetpack' ) );\n\n\t\tif ( empty( $feedbacks ) )\n\t\t\treturn;\n\n\t\t// Forces the download of the CSV instead of echoing\n\t\theader( 'Content-Disposition: attachment; filename=' . $filename );\n\t\theader( 'Pragma: no-cache' );\n\t\theader( 'Expires: 0' );\n\t\theader( 'Content-Type: text/csv; charset=utf-8' );\n\n\t\t$output = fopen( 'php://output', 'w' );\n\n\t\t// Prints the header\n\t\tfputcsv( $output, $fields );\n\n\t\t// Create the csv string from the array of post ids\n\t\tforeach ( $feedbacks as $feedback ) {\n\t\t\tfputcsv( $output, self::make_csv_row_from_feedback( $feedback, $fields ) );\n\t\t}\n\n\t\tfclose( $output );\n\t}", "function exportList()\n{\n header(\"Content-type: text/csv; charset=UTF-8\");\n header('Content-Disposition: attachment; filename=\"keywords.csv\"');\n // UTF-8 BOM for proper character handling in newer versions of Excel:\n echo chr(hexdec('EF')), chr(hexdec('BB')), chr(hexdec('BF'));\n echo getCsv();\n exit;\n}", "public function exportCsvAction()\n {\n $fileName = 'traineecert.csv';\n $content = $this->getLayout()->createBlock('bs_traineecert/adminhtml_traineecert_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function export_preview_data()\n {\n }", "public function export_preview_data()\n {\n }", "public function export_preview_data()\n {\n }", "public function excel()\r\n {\r\n $data = $this->AdminJobModel->getJobsForCSV($this->xssCleanInput('ids'));\r\n $data = sortForCSV(objToArr($data));\r\n $excel = new SimpleExcel('csv'); \r\n $excel->writer->setData($data);\r\n $excel->writer->saveFile('jobs'); \r\n exit;\r\n }", "public function exportCsvAction() {\n $fileName = 'supportticket.csv';\n $grid = $this->getLayout()->createBlock('supportticket/adminhtml_supportticket_grid');\n $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());\n }", "abstract function exportData();", "public function print_header() {\n header('Content-type: text/csv');\n $filename = $this->page->title;\n $filename = preg_replace('/[^a-z0-9_-]/i', '_', $filename);\n $filename = preg_replace('/_{2,}/', '_', $filename);\n $filename = $filename.'.csv';\n header(\"Content-Disposition: attachment; filename=$filename\");\n }", "function export(){\n header(\"Content-type: aplication/vnd-ms-excel\");\n header(\"Content-Disposition: attachment; filename=Data_Siswa.xls\");\n \n $data ['siswa'] = $this->SiswaModel->view();\n $this->load->view('export', $data);\n }", "public function exportCsvAction()\n {\n $fileName = 'ifeedback.csv';\n $content = $this->getLayout()->createBlock('bs_kst/adminhtml_ifeedback_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function actionDoExport() {\n $years = $this->getParam('years');\n\n $subjectsModel = new \\SubjectsModel();\n $subjects = $subjectsModel->getSubjectsByYear($years);\n\n // get subject ids\n $subjectIds = array();\n foreach ($subjects as $subs)\n $subjectIds = array_merge($subjectIds, array_keys($subs)); \n\n $usersModel = new \\UsersModel();\n $students = $usersModel->getStudentsInSubjects($subjectIds);\n\n $this->template->students = $students;\n $this->template->years = $subjects;\n }", "function Page_Exporting() {\r\n\r\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\r\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\r\n\r\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\r\n\t}", "public function outputPdfToBrowser();", "public function exportCsvAction()\n {\n $fileName = 'kstitem.csv';\n $content = $this->getLayout()->createBlock('bs_kst/adminhtml_kstitem_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function exportExcel()\n {\n $posts = array();\n if (!empty(session('download-data'))) {\n //get the data stored on session.\n $download_data = session('download-data')->toArray()[\"data\"];\n\n if (count($download_data) > 0) {\n foreach ($download_data as $data) {\n //exclude the 'id' attribute.\n $collection = collect($data);\n $filtered = $collection->except(['id']);\n //add to export array.\n array_push($posts, $filtered->all());\n }\n }\n }\n\n //download the data.\n $export = new PostsExport($posts);\n return Excel::download($export, 'posts.xlsx');\n }", "function excel_export($template = 0) {\n $data = $this->tour->get_tours()->result_object();\n $this->load->helper('report');\n $rows = array();\n $row = array(lang('tour_tour_id'), lang('tour_tour_name'), lang('tour_action_name_key'), lang('tour_sort'), lang('tour_deleted'));\n\n $n = 1;\n $rows[] = $row;\n foreach ($data as $r) {\n $row = array(\n $n ++,\n $r->tour_name,\n $r->action_name_key,\n $r->sort,\n $r->deleted,\n );\n $rows[] = $row;\n }\n\n $content = array_to_csv($rows);\n\n if ($template) {\n force_download('tours_export_mass_update.csv', $content);\n } else {\n force_download('tours_export.csv', $content);\n }\n exit;\n }", "function generate_csv($header, $data, $filename)\n\t{\n\t\theader('Content-Type: text/csv; charset=utf-8');\n\t\theader('Content-Disposition: attachment; filename = '.$filename.'.csv');\n\n\t\t$fp = fopen('php://output', 'w');\n\n\t\tfputcsv($fp, $header);\n\t\t\n\t\tforeach($data as $row)\n\t\t\tfputcsv($fp, $row);\n\n\t\tfclose($fp);\n\t}", "public static function exportGiudeReport()\n {\n /**\n * TODO\n */\n }", "public function generateCsv()\n\t{\n\t\t$doc = new CsvDocument(array(\"Member Name\",\"Email Address\",\"Alternate Email\"));\n\t\tforeach($this->emailList as $record)\n\t\t{\n\t\t\t$doc->addRow(array(\n\t\t\t\t$record->name,\n\t\t\t\t$record->emailAddress, \n\t\t\t\t$record->alternateEmail\n\t\t\t));\n\t\t}\n\n\t\t$filename = \"svenskaklubben_maillist_\" . date(\"d-m-Y_G-i\");\n\t\theader(\"Content-type: application/csv\");\n\t\theader(\"Content-Disposition: attachment; filename={$filename}.csv\");\n\t\theader(\"Pragma: no-cache\");\n\t\theader(\"Expires: 0\");\n\n\t\techo $doc->getDocument();\n\t\texit; //premature exit so the templates aren't appended to the document\n\t}", "function ExportData() {\n\t\tglobal $scholarship_package;\n\t\t$utf8 = FALSE;\n\t\t$bSelectLimit = EW_SELECT_LIMIT;\n\n\t\t// Load recordset\n\t\tif ($bSelectLimit) {\n\t\t\t$this->lTotalRecs = $scholarship_package->SelectRecordCount();\n\t\t} else {\n\t\t\tif ($rs = $this->LoadRecordset())\n\t\t\t\t$this->lTotalRecs = $rs->RecordCount();\n\t\t}\n\t\t$this->lStartRec = 1;\n\n\t\t// Export all\n\t\tif ($scholarship_package->ExportAll) {\n\t\t\t$this->lDisplayRecs = $this->lTotalRecs;\n\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t} else { // Export one page only\n\t\t\t$this->SetUpStartRec(); // Set up start record position\n\n\t\t\t// Set the last record to display\n\t\t\tif ($this->lDisplayRecs < 0) {\n\t\t\t\t$this->lStopRec = $this->lTotalRecs;\n\t\t\t} else {\n\t\t\t\t$this->lStopRec = $this->lStartRec + $this->lDisplayRecs - 1;\n\t\t\t}\n\t\t}\n\t\tif ($bSelectLimit)\n\t\t\t$rs = $this->LoadRecordset($this->lStartRec-1, $this->lDisplayRecs);\n\t\tif (!$rs) {\n\t\t\theader(\"Content-Type:\"); // Remove header\n\t\t\theader(\"Content-Disposition:\");\n\t\t\t$this->ShowMessage();\n\t\t\treturn;\n\t\t}\n\t\tif ($scholarship_package->Export == \"xml\") {\n\t\t\t$XmlDoc = new cXMLDocument(EW_XML_ENCODING);\n\t\t\t$XmlDoc->AddRoot();\n\t\t} else {\n\t\t\t$ExportDoc = new cExportDocument($scholarship_package, \"h\");\n\t\t\t$ExportDoc->ExportHeader();\n\t\t\tif ($ExportDoc->Horizontal) { // Horizontal format, write header\n\t\t\t\t$ExportDoc->BeginExportRow();\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->scholarship_package_id);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->start_date);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->end_date);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->status);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->annual_amount);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->grant_package_grant_package_id);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->sponsored_student_sponsored_student_id);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->scholarship_type);\n\t\t\t\t$ExportDoc->ExportCaption($scholarship_package->scholarship_type_scholarship_type);\n\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t}\n\t\t}\n\n\t\t// Move to first record\n\t\t$this->lRecCnt = $this->lStartRec - 1;\n\t\tif (!$rs->EOF) {\n\t\t\t$rs->MoveFirst();\n\t\t\tif (!$bSelectLimit && $this->lStartRec > 1)\n\t\t\t\t$rs->Move($this->lStartRec - 1);\n\t\t}\n\t\twhile (!$rs->EOF && $this->lRecCnt < $this->lStopRec) {\n\t\t\t$this->lRecCnt++;\n\t\t\tif (intval($this->lRecCnt) >= intval($this->lStartRec)) {\n\t\t\t\t$this->LoadRowValues($rs);\n\n\t\t\t\t// Render row\n\t\t\t\t$scholarship_package->CssClass = \"\";\n\t\t\t\t$scholarship_package->CssStyle = \"\";\n\t\t\t\t$scholarship_package->RowType = EW_ROWTYPE_VIEW; // Render view\n\t\t\t\t$this->RenderRow();\n\t\t\t\tif ($scholarship_package->Export == \"xml\") {\n\t\t\t\t\t$XmlDoc->AddRow();\n\t\t\t\t\t$XmlDoc->AddField('scholarship_package_id', $scholarship_package->scholarship_package_id->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('start_date', $scholarship_package->start_date->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('end_date', $scholarship_package->end_date->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('status', $scholarship_package->status->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('annual_amount', $scholarship_package->annual_amount->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('grant_package_grant_package_id', $scholarship_package->grant_package_grant_package_id->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('sponsored_student_sponsored_student_id', $scholarship_package->sponsored_student_sponsored_student_id->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('scholarship_type', $scholarship_package->scholarship_type->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t\t$XmlDoc->AddField('scholarship_type_scholarship_type', $scholarship_package->scholarship_type_scholarship_type->ExportValue($scholarship_package->Export, $scholarship_package->ExportOriginalValue));\n\t\t\t\t} else {\n\t\t\t\t\t$ExportDoc->BeginExportRow(TRUE); // Allow CSS styles if enabled\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->scholarship_package_id);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->start_date);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->end_date);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->status);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->annual_amount);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->grant_package_grant_package_id);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->sponsored_student_sponsored_student_id);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->scholarship_type);\n\t\t\t\t\t$ExportDoc->ExportField($scholarship_package->scholarship_type_scholarship_type);\n\t\t\t\t\t$ExportDoc->EndExportRow();\n\t\t\t\t}\n\t\t\t}\n\t\t\t$rs->MoveNext();\n\t\t}\n\t\tif ($scholarship_package->Export <> \"xml\")\n\t\t\t$ExportDoc->ExportFooter();\n\n\t\t// Close recordset\n\t\t$rs->Close();\n\n\t\t// Clean output buffer\n\t\tif (!EW_DEBUG_ENABLED && ob_get_length())\n\t\t\tob_end_clean();\n\n\t\t// Write BOM if utf-8\n\t\tif ($utf8 && !in_array($scholarship_package->Export, array(\"email\", \"xml\")))\n\t\t\techo \"\\xEF\\xBB\\xBF\";\n\n\t\t// Write debug message if enabled\n\t\tif (EW_DEBUG_ENABLED)\n\t\t\techo ew_DebugMsg();\n\n\t\t// Output data\n\t\tif ($scholarship_package->Export == \"xml\") {\n\t\t\theader(\"Content-Type: text/xml\");\n\t\t\techo $XmlDoc->XML();\n\t\t} elseif ($scholarship_package->Export == \"email\") {\n\t\t\t$this->ExportEmail($ExportDoc->Text);\n\t\t\t$this->Page_Terminate($scholarship_package->ExportReturnUrl());\n\t\t} else {\n\t\t\techo $ExportDoc->Text;\n\t\t}\n\t}", "public function index()\n {\n if (!empty($this->fileName) && !empty($this->expOption)) {\n require_once(\"Models/ExportModel.php\");\n $ob_exporter = new ExportModel($this->fileName, $this->filters);\n\n if ($ob_exporter->filteredCount > 0) {\n switch ($this->expOption) {\n case 'pdf':\n $export_file = $ob_exporter->exportPdf();\n break;\n case 'excel':\n $export_file = $ob_exporter->exportExcel();\n break;\n default:\n $export_file = $ob_exporter->exportCsv();\n break;\n }\n $response = [\n \"success\" => true,\n \"message\" => \"File successfully exported.\",\n \"data\" => $export_file\n ];\n } else {\n $response = [\n \"success\" => false,\n \"message\" => \"No Data to export.\"\n ];\n }\n } else {\n $response = [\n \"success\" => false,\n \"message\" => \"Invalid Access.\"\n ];\n }\n\n echo json_encode($response);\n exit;\n }", "function export_csv()\n {\n $filter_custom_fields = JRequest::getVar('filter_custom_fields');\n $a_custom_fields = $this->_build_a_custom_fields($filter_custom_fields);\n $data = array();\n $k=0;\n for($i=0; $i<count($a_custom_fields);$i++ )\n {\n $custom_field = $a_custom_fields[$i];\n $query = &$this->_buils_export_query($custom_field);\n $this->_db->setQuery((string)$query);\n $rows = $this->_db->loadAssocList();\n foreach ($rows as $row)\n {\n $data[$k]['virtuemart_custom_id'] = $row['virtuemart_custom_id'];\n $data[$k]['virtuemart_product_id'] = $row['virtuemart_product_id'];\n $data[$k]['product_name'] = iconv(\"utf-8\", \"windows-1251\",$row['product_name']);\n $data[$k]['intvalue'] = iconv(\"utf-8\", \"windows-1251\",str_replace('.', ',', $row['intvalue']));\n $data[$k]['custom_title'] = iconv(\"utf-8\", \"windows-1251\",$row['custom_title']);\n $k++;\n }\n }\n $name = 'com_condpower.csv';\n $path = JPATH_ROOT.DS.'tmp'.DS.$name;\n if ($fp = fopen($path, \"w+\"))\n {\n foreach ($data as $fields) {\n fputcsv($fp, $fields, ';', '\"');\n }\n fclose($fp);\n }\n else\n {\n return array(FALSE, JTEXT::_('COM_CONDPOWER_ERROR_OPEN_TO_EXPORT'));\n }\n// $href = str_replace('administrator/', '', JURI::base()).'tmp/'.$name;\n// $href = JURI::base().'components/com_condpower/download.php?path='.$path;\n return array(TRUE,'OK');\n\n }", "public function exportExcelAction()\n {\n $fileName = 'curriculumdoc.xls';\n $content = $this->getLayout()->createBlock('bs_curriculumdoc/adminhtml_curriculumdoc_grid')\n ->getExcelFile();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function exportToExcel(){\n\t\theader('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); \n\t\theader(\"Content-Disposition: attachment; filename = DataNilaiMataKuliah.xls\"); \n\t\t$data['data_nilai'] = $this->Database_Nilai->ambil_data(); \n\t\t$this->load->view('export', $data);\n\t}", "public function exportCsv($data, $headers) {\n \n \t$csv = \"\";\n \n \t// table header\n \tforeach ( $headers as $key => $value ) {\n \t\t$csv .= $value . \";\";\n \t}\n \t$csv .= \"\\r\\n\";\n \t// table body\n \tforeach ( $data as $dat ) {\n \t\tif ($this->printIt ( $dat )) {\n \t\t\tforeach ( $headers as $key => $value ) {\n \t\t\t\t$csv .= htmlspecialchars ( $dat [$key], ENT_QUOTES, 'UTF-8', false ) . \";\";\n \t\t\t}\n \t\t\t$csv .= \"\\r\\n\";\n \t\t}\n \t}\n \n \theader(\"Content-Type: application/csv-tab-delimited-table\");\n \theader(\"Content-disposition: filename=projects.csv\");\n \techo $csv;\n }", "function woocommerce_generate_csv_header() {\n\t\t\theader( 'Content-type: application/csv' );\n\t\t\theader( 'Content-Disposition: attachment; filename=woocommerce-export.csv' );\n\t\t\theader( 'Pragma: no-cache' );\n\t\t\theader( 'Expires: 0' );\n\t\t}", "public function importFormatDownload()\n {\n // figure out the importable fields.\n $importFields = $this->getImportableFields();\n\n $headers = array(\n \"Content-type\" => \"text/csv\",\n \"Content-Disposition\" => \"attachment; filename=\" . $this->importSampleFilename(),\n \"Pragma\" => \"no-cache\",\n \"Cache-Control\" => \"must-revalidate, post-check=0, pre-check=0\",\n \"Expires\" => \"0\"\n );\n\n $columns = [];\n foreach ($importFields as $idx_1 => $importField) {\n $columns[] = $importField['label'];\n }\n\n $callback = function () use ($columns) {\n $file = fopen('php://output', 'w');\n fputcsv($file, $columns);\n\n fclose($file);\n };\n return response()->stream($callback, 200, $headers);\n }", "public function exportCsvAction()\n {\n $fileName = 'offer.csv';\n $content = $this->getLayout()->createBlock('mfb_myflyingbox/adminhtml_offer_grid')\n ->getCsv();\n $this->_prepareDownloadResponse($fileName, $content);\n }", "public function exportCsvAction()\n {\n $fileName = 'appointments.csv';\n $grid = $this->getLayout()->createBlock('appointments/adminhtml_appointments_grid');\n $this->_prepareDownloadResponse($fileName, $grid->getCsvFile());\n }", "function export()\n\t{\n\t\t$zip = $this->buildExportFile();\n\t\t\n\t ilUtil::deliverFile($zip, $this->object->getTitle().\".zip\", '', false, true);\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "function Page_Exporting() {\n\n\t\t//$this->ExportDoc->Text = \"my header\"; // Export header\n\t\t//return FALSE; // Return FALSE to skip default export and use Row_Export event\n\n\t\treturn TRUE; // Return TRUE to use default export and skip Row_Export event\n\t}", "public function export_data($params = array())\n\t{\n\t\t$CI =& get_instance();\n\t\t$form_name = (int) $this->input->post('form_name');\n\t\t$form = $CI->fuel->forms->get($form_name);\n\n\t\t// normalize parameters\n\t\t$valid_params = array('col', 'order');\n\t\tforeach($valid_params as $p)\n\t\t{\n\t\t\tif (!isset($params[$p]))\n\t\t\t{\n\t\t\t\t$params[$p] = NULL;\n\t\t\t}\n\t\t}\n\n\t\t$this->is_export = TRUE;\n\t\t$items = $this->list_items(NULL, NULL, $params['col'], $params['order']);\n\n \t$field_terminator=',';\n \t$line_terminator=\"\\n\";\n $data = '';\n $data = array();\n $header = '';\n\n\n // get a list of all the fields we'll need\n $headings = array();\n foreach($items as $item)\n\t\t{\n\t\t\t$post = json_decode($item['post'], TRUE);\n\t\t\tunset($item['post']);\n\t\t\t$item = array_merge($item, $post);\n\t\t\t$headings = array_unique(array_merge($headings, array_keys($item)));\n\t\t}\n\n\t\t// create headings\n\t\tforeach($headings as $heading)\n\t\t{\n\t\t\t$data[0][$heading] = ucwords(str_replace(array('_', '-'), ' ', $heading));\n\t\t}\n\n\t\t// now loop through the data and place the data based on all the ehadings\n\t\t$i = count($data);\n\n \tforeach($items as $item)\n\t\t{\n\t\t\t$post = json_decode($item['post'], TRUE);\n\n\t\t\t// we don't know what was thrown into the post so we'll remove any values from post that may conflict\n\t\t\tunset($post['id'], $post['remote_ip'], $post['date_added'], $item['post']);\n\n\t\t\t// merge data from post\n\t\t\t$item = array_merge($item, $post);\n\n\t\t\tforeach($headings as $heading)\n\t\t\t{\n\t\t\t\t$data[$i][$heading] = (isset($item[$heading])) ? $item[$heading] : '';\n\t\t\t}\n\t\t\t$i++;\n\t\t}\n\n\t\t$filename = (isset($form->id)) ? $form->name : 'forms';\n\t\t$filename .= '_' . date(\"Ymd\") . '.csv';\t\n\t\t\t\t\n\t\theader('Content-type: application/download');\n\t\theader('Content-Type: text/csv' );\n\t\theader('Content-Disposition: attachment;filename='.$filename);\n\t\t$fp = fopen('php://output', 'w');\n\t\tforeach($data as $d)\n\t\t{\n\t\t\tfputcsv($fp, $d);\n\t\t}\n\t\tfclose($fp);\n\t\t// exit to prevent running the rest of the script\n\t\texit();\n\t}", "function array_to_csv_download($array, $filename = \"PDF_Statistic_Report.csv\", $delimiter = \",\") {\n\t$f = fopen('php://memory', 'w');\n\t// loop over the input array\n\tforeach ($array as $line) {\n\t\t// generate csv lines from the inner arrays\n\t\tfputcsv($f, $line, $delimiter);\n\t}\n\t// rewrind the \"file\" with the csv lines\n\tfseek($f, 0);\n\t// tell the browser it's going to be a csv file\n\theader('Content-Type: application/csv');\n\t// tell the browser we want to save it instead of displaying it\n\theader('Content-Disposition: attachement; filename=\"'.$filename.'\"');\n\t// make php send the generated csv lines to the browser\n\tfpassthru($f);\n}", "public function export(){\n \n // Skrip berikut ini adalah skrip yang bertugas untuk meng-export data tadi ke excel\n header(\"Content-type: application/vnd-ms-excel\");\n header(\"Content-Disposition: attachment; filename=Data_Transaksi.xls\");\n \n $data['header_transaksi'] = $this->header_transaksi_model->listing();\n $this->load->view('admin/export/vw_laporan_excel', $data);\n\n }" ]
[ "0.68248874", "0.68087006", "0.6619614", "0.65934956", "0.65741396", "0.6445818", "0.64255357", "0.6400132", "0.6397597", "0.63945794", "0.63721895", "0.63285875", "0.6325745", "0.63110954", "0.6310963", "0.63064724", "0.63052684", "0.6283708", "0.6282662", "0.6278344", "0.62693393", "0.62625325", "0.6256477", "0.62446123", "0.62396514", "0.6231508", "0.6229636", "0.62077165", "0.61826783", "0.6164846", "0.61612916", "0.6159726", "0.6154887", "0.6147341", "0.6146181", "0.6132856", "0.61294824", "0.61232805", "0.6114042", "0.6106968", "0.6103521", "0.60969186", "0.60945934", "0.60599047", "0.6052703", "0.6048226", "0.6047943", "0.604533", "0.6043046", "0.6037038", "0.6032384", "0.6030121", "0.60274434", "0.6025958", "0.6024979", "0.6001859", "0.5992914", "0.5984248", "0.5971679", "0.59649783", "0.5953024", "0.59527606", "0.59527606", "0.5947294", "0.59413594", "0.59386164", "0.5935501", "0.5933694", "0.5921156", "0.59133697", "0.59127754", "0.5904036", "0.58798194", "0.5869699", "0.5862677", "0.58583814", "0.5857972", "0.58568543", "0.58508325", "0.5850817", "0.58439314", "0.58365154", "0.58336025", "0.5827526", "0.58237094", "0.58176476", "0.5811341", "0.58044344", "0.580053", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.5797724", "0.57940507", "0.5793399", "0.5789113" ]
0.0
-1
Get auto fill value
function GetAutoFill($id, $val) { $rsarr = array(); $rowcnt = 0; // Output if (is_array($rsarr) && $rowcnt > 0) { $fldcnt = count($rsarr[0]); for ($i = 0; $i < $rowcnt; $i++) { for ($j = 0; $j < $fldcnt; $j++) { $str = strval($rsarr[$i][$j]); $str = ew_ConvertToUtf8($str); if (isset($post["keepCRLF"])) { $str = str_replace(array("\r", "\n"), array("\\r", "\\n"), $str); } else { $str = str_replace(array("\r", "\n"), array(" ", " "), $str); } $rsarr[$i][$j] = $str; } } return ew_ArrayToJson($rsarr); } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getFilledVal($grab_from=FALSE, $dropdown_val=false) {\n\n\t\tif ($grab_from === FALSE)\n\t\t\t$grab_from=$_POST;\n\n\t\tif(isset($grab_from['field_'.$this->getFieldType()][$this->id_common]))\n\t\t\treturn $grab_from['field_'.$this->getFieldType()][$this->id_common];\n\t\telse\n\t\t\treturn NULL;\n\t}", "private function autofill()\n\t{\n\t\t$this->autofiller->autofill_number\n\t\t(\n\t\t\t$this->fields,\n\t\t\t\"Project\",\n\t\t\t\"ProjectNum\",\n\t\t\t\"Year = YEAR(CURDATE())\"\n\t\t);\n\n\t}", "protected function populate_value()\n {\n }", "public function getAutoFit()\n {\n return $this->autoFit;\n }", "function getInitialValue () {\n\t\treturn $this->initialValue;\n\t}", "public function getCurrentVal() {}", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "function getDefault()\n {\n return $this->_defValue;\n }", "public function getValue()\n {\n return 1;\n }", "function sequence_value() {\n\t\treturn $this->data[$this->sequence_field];\n\t}", "function get_value_db()\n\t{\n\t\treturn $this->value;\n\t}", "abstract public function getAutoinc();", "public function getFormattedValue()\n {\n return $this->dbObject('Value');\n }", "function get_value_edit()\n\t{\n\t\treturn $this->value;\n\t}", "public function getRentalInitialValue()\n {\n return $this->_fields['RentalInitialValue']['FieldValue'];\n }", "public function getFillColorsField()\n {\n return $this->fillColorsField;\n }", "public function getAutoSelect()\n {\n return $this->options['autoSelect'];\n }", "function getDefault() {\n return $this->records[2];\n }", "public function getAutomaticMinimum() {\r\n return $this->automaticMinimum;\r\n }", "public function getValorInicial() {\n return $this->nValorInicial;\n }", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "public function getValue() {}", "function getAutofocus()\n {\n return $this->getAttribute(\"autofocus\");\n }", "function getValue(){\r\n\t\treturn $this->value;\r\n\t}", "public function getValue()\n {\n return '';\n }", "function autonumber(){\n $field_id = 'id_kain';\n $len = 3;\n $query = $this->db->query(\"SELECT MAX(RIGHT(\".$field_id.\",\".$len.\")) as kode FROM \".$this->table); \n\n if($query->num_rows() <> 0){ \n //cek dulu apakah ada sudah ada kode di tabel. \n //jika kode ternyata sudah ada. \n $data = $query->row();\n $last = intval($data->kode); \n $kode = $last + 1; \n }else{ \n //jika kode belum ada \n $kode = 1; \n }\n\n $kodemax = str_pad($kode, $len, \"0\", STR_PAD_LEFT); \n $kodejadi = $kodemax; \n return $kodejadi;\n }", "function getDefaultValue() {\n return $this->getProperty('default_value');\n }", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getValue();", "public function getDefaultValue()\n {\n\treturn $this->default;\n }", "function getValue(&$autoText, $id=NULL){\n if ($id){\n $autoText->content = '00/xx/www/wwww';\n }\n }", "public function fetchField();", "public function getValue(): mixed\n {\n return $this->field?->getValue();\n }", "public function getDefaultValue()\n {\n return $this->default_value;\n }", "public function getFormInputFiller()\n {\n return $this->formInputFiller;\n }", "public function firstValue()\n\t{\n\t\treturn $this->first()->value;\n\t}", "public function getresistanceValue()\n {\n return $this->value;\n }", "public function getValue(){\n \treturn $this->value;\n }", "public function getValidDefaultValue(): mixed;", "public function getDataInputField();", "public function getValue(): string\n {\n return $this->fusionValue('value') ?? '';\n }", "function getValue() {\n return $this->value;\n }", "private function setAutofillFields() {\n foreach (static::getFields() as $field_name => $field) {\n if ($field instanceof AutofillField) {\n $this->values[$field_name] = $field->fill();\n }\n }\n }", "public function getDefaultValue() {}", "public function getDefaultValue() {}", "public function getValue(){\n return $this->value;\n }", "public function getValue(){\n return $this->value;\n }", "public function getDefaultValue()\n {\n return $this->domain->getDefaultValue();\n }", "protected function getVal(): ?string\n {\n // make sure it's got the correct number of decimal places\n return (!is_null($this->value)\n ? bcadd($this->value, '0', $this->internalMaxDecPl())\n : null);\n }", "public function getResetValue()\n {\n return null;\n }", "public function getValue(){\n return $this->_value;\n }", "public function getDefaultValue() {\n return $this->_default_value;\n }", "public function getValorAtual() {\n return $this->nValorAtual;\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "public function getValue()\n {\n return isset($this->value) ? $this->value : '';\n }", "public function fillupDefault()\n {\n\n foreach (static::$cols as $key => $col) {\n if ('' != $col[self::COL_DEFAULT]) {\n $this->data[$key] = $col[self::COL_DEFAULT];\n }\n }\n\n }", "public function getValue() {\n\t\t$db = Loader::db();\n\t\t$value = $db->GetOne('select value from atDefault where avID = ?', array($this->getAttributeValueID()));\n\t\t\n\t\t$jsonHelper = Loader::helper('json');\n\t\treturn $jsonHelper->decode($value);\n\t}", "public function getDefaultVal(): string\n {\n return $this->defaultText;\n }", "public function fillCode()\n {\n \treturn $this->forceFill([\n \t\t'code' => $this->generateCode(),\n \t]); \n }", "public function get_value()\n {\n return $this->value;\n }", "public function getValue(){ }" ]
[ "0.60391384", "0.60226", "0.57897604", "0.5712205", "0.5607204", "0.5591595", "0.558106", "0.558106", "0.5559225", "0.54479885", "0.54444635", "0.5440138", "0.54401314", "0.54272896", "0.5384298", "0.5380179", "0.53790176", "0.53754073", "0.53676975", "0.53573644", "0.5355812", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5341732", "0.5340701", "0.5340701", "0.5340701", "0.5340701", "0.5340701", "0.53190535", "0.5315933", "0.530942", "0.5300123", "0.5287356", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.525886", "0.5256544", "0.52476", "0.5239237", "0.52301234", "0.52160025", "0.5214603", "0.5201044", "0.51889455", "0.5188898", "0.51835746", "0.5179868", "0.5176474", "0.51724005", "0.5170493", "0.51699775", "0.5169472", "0.5156382", "0.5156382", "0.5153235", "0.51500523", "0.5146032", "0.514474", "0.51401955", "0.5134921", "0.5134597", "0.5134597", "0.5129747", "0.51264614", "0.5122313", "0.51209587", "0.5120525", "0.51138675" ]
0.60075325
4
Write Audit Trail start/end for grid update
function WriteAuditTrailDummy($typ) { $table = 't_gaji_detail'; $usr = CurrentUserName(); ew_WriteAuditTrail("log", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, "", "", "", ""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function audit($operation, $details) {\r\n $columns = array(\r\n \"#timestamp\" => \"STR_TO_DATE('\" . date('d/m/Y H:i:s') . \"','%d/%m/%Y %H:%i:%s')\",\r\n \"username\" => $_SESSION['_ebb_username'],\r\n \"operation\" => $operation,\r\n \"details\" => $details\r\n );\r\n\r\n $this->database->insert(\"tb_audit\", $columns);\r\n }", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && array_key_exists($fldname, $rsold) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function update_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::update($this->id, 'siis', $parameter_array);\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'pase_establecimiento';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Id_Pase'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'mst_vendor';\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = $typ;\n\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, \"\", \"\", \"\", \"\");\n\t}", "function insert_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('siis', $parameter_array);\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnAdd) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rs['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$usr = CurrentUserName();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") {\n\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\"); // Password Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {\n\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$newvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$newvalue = \"[MEMO]\"; // Memo Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {\n\t\t\t\t\t$newvalue = \"[XML]\"; // XML Field\n\t\t\t\t} else {\n\t\t\t\t\t$newvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"A\", $table, $fldname, $key, \"\", $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'servidor_escolar';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'tutores';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'pase_establecimiento';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'scholarship_package';\n\t $usr = CurrentUserID();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'servidor_escolar';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Cue'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 'user';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t $usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function getLastAudit();", "public function log_activity() {\n \n \n $CI =& get_instance();\n $CI->load->library('audit_trail');\n // Start off with the session stuff we know\n $data = array();\n $data['user_id'] = $CI->session->userdata('user_id');\n \n // Next up, we want to know what page we're on, use the router class\n $data['section'] = $CI->router->class;\n $data['action'] = $CI->router->method;\n \n // Lastly, we need to know when this is happening\n $data['when'] = date('Y-m-d G:i:s');\n \n // We don't need it, but we'll log the URI just in case\n $data['uri'] = uri_string();\n $path = realpath(APPPATH);\n // And write it to the database\n if($CI->router->method!='checkPortal' && $CI->router->method!='getAttendanceUpdates' && $CI->router->method!='getAverageDailyAttendance'):\n $CI->audit_trail->lfile($path.'/modules/logs/'.$CI->session->userdata('user_id').'.txt');\n $CI->audit_trail->lwrite($CI->session->userdata('name').' access '.$CI->router->method.' through '. uri_string().'.' , 'TRACE');\n endif;\n }", "public function process_access_log(){\n $this->load->model('rest_model');\n $today = date(\"Y-m-d\");\n $access_log_folder = $this->config->item('admin_access_log_path');\n $record_log_file = $access_log_folder . 'api_access_log.txt';\n if (!is_file($record_log_file)) {\n $fp = fopen($record_log_file, 'a+');\n chmod($record_log_file, 0777);\n $end_date = date(\"Y-m-d\", strtotime(\"-15 day\", strtotime($today)));\n } else {\n $db_end_date = end(explode('~~', file_get_contents($record_log_file)));\n }\n if ($end_date < $today) {\n while (strtotime($end_date) < strtotime($today)) {\n $end_date = date(\"Y-m-d\", strtotime(\"+1 day\", strtotime($end_date)));\n $date_arr[] = $end_date;\n }\n $log_data = $this->get_access_log($date_arr);\n if(!empty($log_data[$today])){\n $deletion = $this->rest_model->deleteAccessLog($today);\n }\n foreach ($date_arr as $date_log) {\n if (!empty($log_data[$date_log])) {\n $insertion = $this->rest_model->insertAccessLog($log_data[$date_log]);\n }\n }\n }\n $log_date = date(\"Y-m-d\", strtotime(\"-1 day\", strtotime($today)));\n file_put_contents($sql_file, \"$end_date~~$log_date\");\n echo 1;\n $this->skip_template_view();\n }", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'user';\n\t $usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function onBeforeWrite() {\n if(!isset($this->FinishDateTime) || strtotime($this->FinishDateTime) < 1000) {\n $this->FinishDateTime = date('Y-m-d H:i:s', strtotime(date('Y-m-d', strtotime($this->StartDateTime)) . ' 23:59:59'));\n }\n\n /**\n * Increment the .ics calendar invite sequence number if any of the\n * key properties of this Event have been updated (after initital creation)\n */\n if(!empty($this->ID)) {\n $cf = $this->getChangedFields(true, 2);\n foreach(static::$key_properties as $property) {\n if(isset($cf[$property])) {\n $this->Sequence = $this->Sequence + 1;\n $this->UpdatedSequenceNotification($this);\n break;\n }\n }\n }\n\n\n parent::onBeforeWrite();\n\n }", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnDelete) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rs['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$curUser = CurrentUserName();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") {\n\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\"); // Password Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {\n\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "public function updateLog () {\n\t\t$this->log = json_encode($this->SYN_Log);\n\t\t$this->save();\n\t}", "protected static function __describe__timestamps()\n {\n self::events()->addListener('describe', self::__timestamps__describeListener());\n }", "function changeLogs() {\n\n }", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'tbl_profile';\n\t $usr = CurrentUserID();\n\t\tup_WriteAuditTrail(\"log\", up_StdCurrentDateTime(), up_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function onAfterSave($event)\r\n {\r\n \tif($this->logTableHistory && get_class($this->mLogHistory)==='Loghistory' )\r\n \t\tif($this->mLogHistory->isDifferences($this->attributes,array('create_by','create_dt','update_by','update_dt')))\r\n \t\t\t$this->mLogHistory->saveDifferences();\r\n }", "protected function updateLastTrace() {\n $this->last_trace = time();\n }", "function logMe($comment, $status_id = 0, $data = array(), $update_process = 0) {\n\n if (!class_exists('systemToolkit')) {\n return; // not loaded (cache fix)\n }\n $toolkit = systemToolkit::getInstance();\n $centerLogMapper = $toolkit->getMapper('log', 'log');\n\n if(count($data)) {\n ob_start();\n $i = 1;\n foreach($data as $d) {\n var_dump($d);\n if($i < count($data)) {\n echo \"<br />===<br />\";\n }\n $i++;\n }\n $err_content = ob_get_contents();\n ob_end_clean();\n $comment .= \"<br />{$err_content}\";\n }\n\n $log = $centerLogMapper->create();\n $log->setTime(new SQLFunction('UNIX_TIMESTAMP'));\n $log->setModule($toolkit->getRequest()->getModule());\n $log->setAction($toolkit->getRequest()->getAction());\n $log->setComment($comment);\n $log->setStatus($status_id);\n if ($user = systemToolkit::getInstance()->getUser()) {\n $log->setUser($user);\n }\n if ($update_process) {\n $log->setProcessId($update_process);\n }\n $centerLogMapper->save($log);\n}", "public function recordJournalingStart();", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "function EventLog($page,$action,$orignal_value,$new_value)\n{\n\t\t$email = $_SESSION['user_email'];\n\t\t$ipaddress = getUserIP();\n\t\t\n\t\t$data = sprintf(\"%s,%s,%s,%s,%s\" . PHP_EOL, $ipaddress,date(\"F j Y g:i a\"), $email, $page, $action);\n\t\t\n\t\t//file_put_contents($_SERVER['DOCUMENT_ROOT'] .'/log.txt', $data, FILE_APPEND);\t\t\n\t\tfile_put_contents('log.txt', $data, FILE_APPEND);\t\t\t\n\t\t\n\t\t\n}", "public function logMonitorCommitEvent(MonitoringEvent $event)\n {\n $this->output->writeln('MonitoringEvent:: Monitor committing data record for '.json_encode(array(\n 'date' => $event->getStats()->getMonitorDate()\n )));\n }", "function audit_log()\n\t{\n\t\tif($this->session->userdata('logged_in')==\"\")\n\t\t\theader(\"Location: \".$this->config->base_url().\"Login\");\n\t\t\t$this->cache_update();\n\t\t\t$this->check_privilege(14);\n\t\t//mandatory\n\t\t$this->load->driver('cache',array('adapter' => 'file'));\n\t\t$u_type = array('var'=>$this->cache->get('Active_status'.$this->session->userdata('loginid'))['user_type_id_fk']);\n\t\t$this->load->model('profile_model');\n\t\t$noti = array('meeting'=>$this->profile_model->meeting_notification());\n\t\t$u_type['notification'] = $noti;\n\t\t$u_type['noti1']=$this->profile_model->custom_notification();\n\t\t$this->load->view('dashboard/navbar',$u_type);\n\t\t$da = $this->profile_model->get_profile_info($this->session->userdata('uid'));\n\t\t$this->load->view('dashboard/sidebar',$da);\n\t// ends here\n\t\t$this->load->model('Sup_Admin');\n\t\t$this->load->model('Crud_model');\n\t\t$data['audit']=$this->Sup_Admin->get_user_details();\n\t\t$data['login_as']=array();\n\t\tforeach ($data['audit'] as $key) \n\t\t{\n\t\t\tarray_push($data['login_as'],$this->Sup_Admin->get_log_id($key['login_id_fk']));\n\t\t}\n\t\t$this->load->view('audit_view',$data);\n\t\t$this->db->trans_off();\n\t \t$this->db->trans_strict(FALSE);\n\t\t$this->db->trans_start();\n\t\t$this->Crud_model->audit_upload($this->session->userdata('loginid'),\n\t\t\t\t\t\t\t current_url(),\n\t\t\t\t\t\t\t 'Audit Log Page Visited',\n\t\t\t\t\t\t\t 'Custom message here');\n\t\t$this->db->trans_complete();\n\t\t$this->load->view('dashboard/footer');\n\n\t}", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $tbl_profile;\n\t\t$table = 'tbl_profile';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= UP_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['facultyprofile_ID'];\n\n\t\t// Write Audit Trail\n\t\t$dt = up_StdCurrentDateTime();\n\t\t$id = up_ScriptName();\n\t $curUser = CurrentUserID();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $tbl_profile->fields) && $tbl_profile->fields[$fldname]->FldDataType <> UP_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_MEMO) {\n\t\t\t\t\tif (UP_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tup_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "public function update($log) { ; }", "public function log_activity() {\n\t\t$data = array();\n\t\t$data['page'] = current_url();\n\t\t$data['ip_address'] = $this->_ci->input->ip_address();\n\t\t$data['user_agent'] = $this->_ci->agent->agent_string(); \n\t\t$data['request_method'] = $this->_ci->input->server('REQUEST_METHOD');\n\t\t$data['request_params'] = serialize($this->_ci->input->get_post(NULL, TRUE)); \n\t\t$data['uri_string'] = $this->_ci->uri->uri_string();\n\t\t$data['created_at'] = date('Y-m-d h:i:s');\n\n\t\tif($this->verify_activity()) {\n\t\t\t// And write it to the database\n\t\t\t$this->_ci->db->insert('hooks', $data);\n\t\t}\n\t}", "public function createChangeLog() {}", "function uLog($site_id, $up_id, $action, $info)\n{\n $toolkit = systemToolkit::getInstance();\n $updateLogMapper = $toolkit->getMapper('update', 'updateLog');\n\n $log = $updateLogMapper->create();\n $log->setSiteId($site_id);\n $log->setUpId($up_id);\n $log->setAction($action);\n $log->setInfo($info);\n $log->setTime(new SQLFunction(\"UNIX_TIMESTAMP\"));\n\n $updateLogMapper->save($log);\n}", "public function logBeforeSave($event)\n {\n $logAttributes = $this->logAttributes;\n\n $this->_to_save_log = false;\n foreach ($logAttributes as $key => $val) {\n if (is_int($key)) {\n // Значения - это имена атрибутов\n $aName = $val;\n $aValue = $this->owner->getAttribute($aName);\n } elseif ($val instanceof \\Closure) {\n // Ключ - имя атрибута, значение - вычисляемое\n $aName = $key;\n $aValue = call_user_func($val, $this->owner);\n } else {\n $aName = $key;\n $aValue = $val;\n }\n\n if ($this->owner->hasAttribute($aName)) {\n if ($aName === $this->timeField) {\n continue;\n } elseif ($this->owner->getOldAttribute($aName) != $aValue) {\n $this->_to_save_attributes[$aName] = $aValue;\n $this->_to_save_log = true;\n $this->_changed_attributes[] = $aName;\n } else {\n $this->_to_save_attributes[$aName] = $aValue;\n }\n } else {\n $this->_to_save_attributes[$aName] = $aValue;\n }\n\n if ($this->owner->hasHiddenAttribute($aName)) {\n $ahValue = $this->owner->getHiddenAttribute($aName);\n\n (($ahValue === null) || ($ahValue->getAttributes() === null))\n ? $ahoValue = null\n : $ahoValue = json_encode($this->owner->getHiddenAttribute($aName)->prepareSaveJsonB());\n\n if ($aName === $this->timeField) {\n continue;\n } elseif ($this->owner->getOldAttribute($aName) != $ahoValue) {\n $this->_to_save_attributes[$aName] = $ahValue;\n $this->_to_save_log = true;\n $this->_changed_attributes[] = $aName;\n } else {\n $this->_to_save_attributes[$aName] = $ahValue;\n }\n }\n }\n\n if ($this->_to_save_log) {\n $time = static::returnTimeStamp();\n $this->owner->{$this->timeField} = $time;\n $this->_to_save_attributes[$this->timeField] = $time;\n } else {\n return true;\n }\n\n // Check current version of the record before update\n if (isset($this->versionField)) {\n if ($event->name === 'beforeUpdate') {\n $row = $this->owner->find()->where($this->owner->getPrimaryKey(true))->select($this->versionField)->asArray()->one();\n if (isset($row[$this->versionField]) && (string)$row[$this->versionField] !== (string)$this->owner->getAttribute($this->versionField)) {\n throw new StaleObjectException('The object being updated is outdated.');\n }\n }\n $this->setNewVersion();\n }\n $this->_to_save_attributes[$this->versionField] = $this->owner->{$this->versionField};\n\n return true;\n }", "public function setRecordLog() {\n \t$msg = '';\n \t$defaultFilterFields = array( 'id', 'modify_user_id' ,'modify_time', 'create_user_id', 'create_time','check_user_id','check_time');\n \t$addFilterFields = !empty($this->filterFields) ? $this->filterFields : array();\n \t$filterFields = array_merge($defaultFilterFields,$addFilterFields);\n \tforeach ( $this->getAttributes() as $key => $val ) {\n \t\tif ( ! $this->getIsNewRecord() && $val == $this->beforeSaveInfo[$key] ) {\n \t\t\tcontinue;\n \t\t}\n// \t\t$label = $this->getAttributeLabel($key);\n $label = get_class($this) . ':'.$key; //by shenll\n \t\tif (in_array($key, $filterFields)) {\n \t\t\tcontinue;\n \t\t}else {\n \t\t\tif ( $this->getIsNewRecord() ) {\n \t\t\t\t$msg .= MHelper::formatInsertFieldLog($label, $val);\n \t\t\t} else {\n \t\t\t\t$msg .= MHelper::formatUpdateFieldLog($label, $this->beforeSaveInfo[$key], $val);\n \t\t\t}\n \t\t}\n \t}\n //\treturn $msg;\n \t$this->addLogMsg($msg);\n }", "function frl_perform_update(){\n\n\t$task_for_out = frl_get_tasks();\n\t$log_for_out = frl_get_log();\n\t$log_queue = frl_get_log_queue();\n\n\t$step = count($log_for_out);\n\tif($step > $log_queue){\n\t\tfrl_perform_reset();\n\t\treturn;\n\t}\n\n\t//add action into log\n\t$new_line = $log_queue[$step]; \n\tarray_unshift($log_for_out, $new_line);\n\n\t$file = dirname(__FILE__).'/data/log-out.csv'; \n $csv_handler = fopen($file,'w');\n foreach ($log_for_out as $l) {\n \tfputcsv($csv_handler, $l, \",\");\n }\n fclose($csv_handler);\n\n //change status of task\n if($new_line[2] == 'Запрос уточнения'){\n \t//change status to Ждет уточнения\n \t$task_for_out = frl_change_task_status($task_for_out, $new_line[4], 'Ждет уточнения');\n }\n\n if($new_line[2] == 'Отклик на задачу'){\n \t//change status to Подтверждено\n \t$task_for_out = frl_change_task_status($task_for_out, $new_line[4], 'Подтверждено');\n }\n\n $file = dirname(__FILE__).'/data/tasks-out.csv';\n $csv_handler = fopen($file,'w');\n foreach ($task_for_out as $t) {\n \tfputcsv($csv_handler, $t, \",\");\n }\n fclose($csv_handler);\n\n}", "public function run()\n {\n $data = [\n \t\t\t'Company-Updated',\n \t\t\t'Project-Updated',\n 'User-Updated'\n \t\t];\n\n foreach($data as $key => $value) {\n\t\t\tLog::create(['name'=>$value]);\n\t\t}\t\t\n }", "public function toLogEntry();", "function logheader() {\n $str = \"\\n=============================\"\n .\"======================================\";\n $str .= \"\\n============================ \"\n .\"logrecord ============================\";\n $str .= \"\\nstartlogrecord timestamp : \".date(\"Y-m-d H:i:s\",time()).\"\\n\";\n\n $this->prn($str);\n// fwrite($this->fp, $str.\"\\n\");\n }", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "function create_run_log() {\n\n\t\t$this->log = new Log();\n\t\t$this->log->set_workflow_id( $this->get_id() );\n\t\t$this->log->set_date( new DateTime() );\n\n\t\tif ( $this->is_tracking_enabled() ) {\n\t\t\t$this->log->set_tracking_enabled( true );\n\n\t\t\tif ( $this->is_conversion_tracking_enabled() ) {\n\t\t\t\t$this->log->set_conversion_tracking_enabled( true );\n\t\t\t}\n\t\t}\n\n\t\t$this->log->save();\n\t\t$this->log->store_data_layer( $this->data_layer() );\n\n\t\tdo_action( 'automatewoo_create_run_log', $this->log, $this );\n\t}", "public static function auditAccess() {\n\t\t\t$memberid = getLoggedOnMemberID();\n\t\t\t$auditid = $_SESSION['SESS_LOGIN_AUDIT'];\n\n\t\t\t$sql = \"UPDATE {$_SESSION['DB_PREFIX']}members SET \n\t\t\t\t\tlastaccessdate = NOW(), \n\t\t\t\t\tmetamodifieddate = NOW(), \n\t\t\t\t\tmetamodifieduserid = $memberid\n\t\t\t\t\tWHERE member_id = $memberid\";\n\t\t\t$result = mysql_query($sql);\n\t\t\t\n\t\t\t$sql = \"UPDATE {$_SESSION['DB_PREFIX']}loginaudit SET \n\t\t\t\t\ttimeoff = NOW(), \n\t\t\t\t\tmetamodifieddate = NOW(), \n\t\t\t\t\tmetamodifieduserid = $memberid\n\t\t\t\t\tWHERE id = $auditid\";\n\t\t\t$result = mysql_query($sql);\n\t\t}", "function log_action($workdir,$string)\n{\n\nif (empty($workdir))\n{\n\t$script_filename = $_SERVER['SCRIPT_FILENAME'];\n\t$workdir = dirname($script_filename).'/';\n}\n$logfile = $workdir.'logfile.txt';\n\n$num_params_per_tag = 3; // number of parameters for each line (es.: \"welcome::5635::20/12/2009 22:12:02\")\n\n// read logdata\n$file = file($logfile);\nif ($file === false)\n{\n\t$logdata = Array();\n}\nelse\n{\n\tforeach($file as $line)\n\t{\n\t\t$var = split(\"::\",trim($line));\n\t\tif (!empty($var[1])) // parse lines with at least two parameters\n\t\t{\n\t\t\t$logdata[$var[0]] = array_slice($var,1);\n\t\t}\n\t}\n}\n\n// edit logdata\n\n$item = $logdata[$string];\n\n$ks_date = date(\"d/m/Y H:m:s\",time()); // current date and time\n$counter = $item[0]+1;\n$item[0] = $counter;\n$item[1] = $ks_date;\n\n$logdata[$string] = $item;\n\n// write logdata\n$fid = fopen($logfile,'w');\n\nif ($fid !== False)\n{\n\tforeach ($logdata as $tag => $value_array)\n\t{\n\t\t// assemble line\n\t\t$ks = $tag;\n\t\tforeach ($value_array as $value)\n\t\t{\n\t\t\t$ks .= \"::\".$value;\n\t\t}\n\t\t\n\t\t$ks .= \"\\n\";\n\t\tfwrite($fid,$ks);\n\t}\n\tfclose($fid);\n}\nelse\n{\n\tdie(\"File I/O error writing $logfile\");\n}\n\nreturn $counter;\n\n}", "public function getCreationAudit();", "public function log() {\r\n\t\t$this->resource->log();\r\n\t}", "function log_update($type) {\n $this->updates_counter[$type] += 1;\n }", "public function onUpdateRecord()\n {\n $this->updated = new \\DateTime();\n $this->rev++;\n }", "public static function updateAuditLog($ticketID, $remarks=null) {\n DB::run(\"INSERT INTO trouble_ticket_audits (user_id, ticket_id, change_description, date) VALUES (?,?,?,GETDATE())\", [$_SESSION['id'], $ticketID, $remarks]);\n }", "protected function log($pastTenseAction)\n {\n if ($this->previousAttributeValues !== null) {\n $changes = $this->getChangesForLog($this->previousAttributeValues);\n } else {\n $changes = null;\n }\n \n $nameOfCurrentUser = \\Yii::app()->user->getDisplayName();\n \n Event::log(sprintf(\n 'Key %s was %s%s%s.',\n $this->key_id,\n $pastTenseAction,\n (is_null($nameOfCurrentUser) ? '' : ' by ' . $nameOfCurrentUser),\n (is_null($changes) ? '' : ': ' . json_encode($changes))\n ), $this->api_id, $this->key_id, $this->user_id);\n }", "function eventclass_bill_record()\n\t{\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "public function logPerformance();", "public function logPerformance();", "function logTime($dir_root,$script_name,$begin,$end) {\n $file = fopen($dir_root . 'log/tempsChargement.log','a');\n $temps = $end - $begin;\n fputs($file,date('Y-m-d H:i:s') . \" - Chargement de la page '\". basename($script_name) . \"' en : $temps ms.\\n\"); \n fclose($file);\n}", "public function afterSave(){\n\t\t$Log = Logger::getLogger(\"accessLog\");\n\n\t\tif($this->oldAttributes==NULL)\n \t\t$action=\"create\";\n \telse \t\n \t\t$action=\"update\";\n \t\n\t\t$uid=Yii::app()->user->getState(\"uid\");\n\t \t$Log->info($uid.\"\\t\".Yii::app()->user->name.\"\\t\".$this->getModelName().\"\\t\".$action.\"\\t\".$this->orgId);\t\n\t \n\t \tif($this->orgName != $this->oldAttributes['orgName'])\n\t \t\t{$Log->info(\"orgName \".$this->oldAttributes['orgName'].\" \".$this->orgName);}\n\t \tif($this->noEmp != $this->oldAttributes['noEmp'])\n\t \t\t{$Log->info(\"noEmp \".$this->oldAttributes['noEmp'].\" \".$this->noEmp);}\n\t\tif($this->phone != $this->oldAttributes['phone'])\n\t \t\t{$Log->info(\"phone \".$this->oldAttributes['phone'].\" \".$this->phone);}\n\t\tif($this->email != $this->oldAttributes['email'])\n\t \t\t{$Log->info(\"email \".$this->oldAttributes['email'].\" \".$this->email);}\n\t\tif($this->addr1 != $this->oldAttributes['addr1'])\n\t \t\t{$Log->info(\"addr1 \".$this->oldAttributes['addr1'].\" \".$this->addr1);}\n\t\tif($this->addr2 != $this->oldAttributes['addr2'])\n\t \t\t{$Log->info(\"addr2 \".$this->oldAttributes['addr2'].\" \".$this->addr2);}\n\t\tif($this->state != $this->oldAttributes['state'])\n\t \t\t{$Log->info(\"state \".$this->oldAttributes['state'].\" \".$this->state);}\n\t\tif($this->country != $this->oldAttributes['country'])\n\t \t\t{$Log->info(\"country \".$this->oldAttributes['country'].\" \".$this->country);}\n\t\tif($this->orgType != $this->oldAttributes['orgType'])\n\t \t\t{$Log->info(\"orgType \".$this->oldAttributes['orgType'].\" \".$this->orgType);}\n\t\tif($this->description != $this->oldAttributes['description'])\n\t \t\t{$Log->info(\"description \".$this->oldAttributes['description'].\" \".$this->description);}\n\t\tif($this->fax != $this->oldAttributes['fax'])\n\t \t\t{$Log->info(\"fax \".$this->oldAttributes['fax'].\" \".$this->fax);}\n\t\tif($this->validity != $this->oldAttributes['validity'])\n\t \t\t{$Log->info(\"validity \".$this->oldAttributes['validity'].\" \".$this->validity);}\t\t\t\t\t\t\t\t\n\treturn parent::afterSave();\t\n\t}", "public function logData() {\n\t\t/* Implement in subclasses */\n\t}", "function alog($line){\n $cur_user = $_SESSION['user']['user_username'];\n $time = getTimestamp();\n writeLineToLog(\"$time - $cur_user - $line\");\n}", "public function addAudit(Audit $audit);", "public function write_log($operation, $info_to_log){}", "public static function debugTrail() {}", "function __saveLog() {\n $this->__UserLog->save($this->__UserLog->data,false);\n }", "function getChangeLog(\\PDO $dbh, $naIndex, $stDate = \"\", $endDate = \"\") {\r\n if ($stDate == \"\" && $endDate == \"\" && $naIndex < 1) {\r\n return \"Set a Start date. \";\r\n }\r\n\r\n $logDates = \"\";\r\n $whDates = \"\";\r\n $whereName = \"\";\r\n\r\n if ($stDate != \"\") {\r\n $logDates = \" and Date_Time >= '$stDate' \";\r\n $whDates = \" and a.Effective_Date >= '$stDate' \";\r\n }\r\n\r\n if ($endDate != \"\") {\r\n $logDates .= \" and Date_Time <= '$endDate' \";\r\n $whDates .= \" and a.Effective_Date <= '$endDate' \";\r\n }\r\n\r\n $whereName = ($naIndex == 0) ? \"\" : \" and idName = \" . $naIndex;\r\n\r\n $result2 = $dbh->query(\"SELECT * FROM name_log WHERE 1=1 \" . $whereName . $logDates . \" order by Date_Time desc limit 200;\");\r\n\r\n $data = \"<table id='dataTbl' class='display'><thead><tr>\r\n <th>Date</th>\r\n <th>Type</th>\r\n <th>Sub-Type</th>\r\n <th>User Id</th>\r\n <th>Member Id</th>\r\n <th>Log Text</th></tr></thead><tbody>\";\r\n\r\n while ($row2 = $result2->fetch(\\PDO::FETCH_ASSOC)) {\r\n\r\n $data .= \"<tr>\r\n <td>\" . date(\"Y-m-d H:i:s\", strtotime($row2['Timestamp'])) . \"</td>\r\n <td>\" . $row2['Log_Type'] . \"</td>\r\n <td>\" . $row2['Sub_Type'] . \"</td>\r\n <td>\" . $row2['WP_User_Id'] . \"</td>\r\n <td>\" . $row2['idName'] . \"</td>\r\n <td>\" . $row2['Log_Text'] . \"</td></tr>\";\r\n }\r\n\r\n\r\n // activity table has volunteer data\r\n $query = \"select a.idName, a.Effective_Date, a.Action_Codes, a.Other_Code, a.Source_Code, g.Description as Code, g2.Description as Category, ifnull(g3.Description, '') as Rank\r\nfrom activity a left join gen_lookups g on substring_index(Product_Code, '|', 1) = g.Table_Name and substring_index(Product_Code, '|', -1) = g.Code\r\nleft join gen_lookups g2 on g2.Table_Name = 'Vol_Category' and substring_index(Product_Code, '|', 1) = g2.Code\r\nleft join gen_lookups g3 on g3.Table_Name = 'Vol_Rank' and g3.Code = a.Other_Code\r\n where a.Type = 'vol' $whereName $whDates order by a.Effective_Date desc limit 100;\";\r\n\r\n $result3 = $dbh->query($query);\r\n\r\n while ($row2 = $result3->fetch(\\PDO::FETCH_ASSOC)) {\r\n\r\n $data .= \"<tr>\r\n <td>\" . date(\"Y-m-d H:i:s\", strtotime($row2['Effective_Date'])) . \"</td>\r\n <td>Volunteer</td>\r\n <td>\" . $row2['Action_Codes'] . \"</td>\r\n <td>\" . $row2['Source_Code'] . \"</td>\r\n <td>\" . $row2['idName'] . \"</td>\r\n <td>\" . $row2['Category'] . \"/\" . $row2[\"Code\"] . \", Rank = \" . $row2[\"Rank\"] . \"</td></tr>\";\r\n }\r\n\r\n\r\n return $data . \"</tbody></table>\";\r\n}", "public function actionTrail()\n {\n $searchModel = new AuditTrailSearch;\n $dataProvider = $searchModel->search(Yii::$app->request->get());\n\n return $this->render('trail', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "function SaveDetails()\n\t{\n\t\t// Check permissions\n\t\tAuthenticatedUser()->CheckAuth();\n\t\tAuthenticatedUser()->PermissionOrDie(PERMISSION_ADMIN);\n\n\t\t// Load the automatic invoice run events for the invoice run\n\t\t$strWhere = \"invoice_run_id = <INVOICE_RUN_ID>\";\n\t\t$arrWhere = array('INVOICE_RUN_ID' => DBO()->InvoiceRun->Id->Value);\n\t\tDBL()->current_automatic_invoice_run_event->SetTable('automatic_invoice_run_event');\n\t\tDBL()->current_automatic_invoice_run_event->Where->Set($strWhere, $arrWhere);\n\t\tDBL()->current_automatic_invoice_run_event->Load();\n\n\t\tTransactionStart();\n\n\t\tforeach (DBL()->current_automatic_invoice_run_event as $dboAutomaticInvoiceRunEvent)\n\t\t{\n\t\t\t// Get the submitted version\n\t\t\t$name = 'automatic_invoice_run_event_' . $dboAutomaticInvoiceRunEvent->id->Value;\n\t\t\t$submitted = DBO()->{$name};\n\n\t\t\t// Check to see if the value is set\n\t\t\tif ($dboAutomaticInvoiceRunEvent->id->Value == $submitted->Id->Value)\n\t\t\t{\n\t\t\t\t// Parse the submitted datetime (expected format h:i:s d/m/Y)\n\t\t\t\tif (!$submitted->scheduled_datetime || !$submitted->scheduled_datetime->Value)\n\t\t\t\t{\n\t\t\t\t\t$scheduledDatetime = NULL;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$scheduledDatetime = trim($submitted->scheduled_datetime->Value);\n\t\t\t\t\t$parts = array();\n\t\t\t\t\t$gap = \"(?:[^0-9]+)\";\n\t\t\t\t\t$dig0 = \"([0-9]{0,2})\";\n\t\t\t\t\t$dig2 = \"([0-9]{1,2})\";\n\t\t\t\t\t$dig4 = \"([0-9]{4,4})\";\n\t\t\t\t\t$regExp = \"/^{$dig2}{$gap}{$dig2}{$gap}(?:{$dig2}{$gap}|){$dig2}{$gap}{$dig2}{$gap}{$dig4}$/\";\n\t\t\t\t\tif (!preg_match($regExp, $scheduledDatetime, $parts) || !($mktime = mktime(intval($parts[1]), intval($parts[2]), intval($parts[3]), intval($parts[5]), intval($parts[4]), intval($parts[6]))))\n\t\t\t\t\t{\n\t\t\t\t\t\tAjax()->AddCommand(\"Alert\", \"The expected date/time format is hour:minute:seconds day/month/year (e.g. \" . date(\"H:i:s d/m/Y\") . \"). You entered $scheduledDatetime\");\n\t\t\t\t\t\tAjax()->AddCommand(\"SetFocus\", \"automatic_invoice_run_event_\" . $submitted->Id->Value . \".scheduled_datetime\");\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t}\n\t\t\t\t\t$scheduledDatetime = date('Y-m-d H:i:s', $mktime);\n\t\t\t\t}\n\n\t\t\t\t// Get the previous scheduled datetime\n\t\t\t\tif (!$dboAutomaticInvoiceRunEvent->scheduled_datetime || !$dboAutomaticInvoiceRunEvent->scheduled_datetime->Value)\n\t\t\t\t{\n\t\t\t\t\t$previousDatetime = NULL;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$previousDatetime = $dboAutomaticInvoiceRunEvent->scheduled_datetime->Value;\n\t\t\t\t}\n\n\t\t\t\t// Check to see if the value has been changed\n\t\t\t\tif ($scheduledDatetime != $previousDatetime)\n\t\t\t\t{\n\t\t\t\t\t// Update the value and change it\n\t\t\t\t\t$dboAutomaticInvoiceRunEvent->SetColumns(array('scheduled_datetime', 'update_user_id', 'update_datetime'));\n\t\t\t\t\t$dboAutomaticInvoiceRunEvent->Id = $dboAutomaticInvoiceRunEvent->id->Value;\n\t\t\t\t\t$dboAutomaticInvoiceRunEvent->scheduled_datetime = $scheduledDatetime;\n\t\t\t\t\t$dboAutomaticInvoiceRunEvent->update_user_id = AuthenticatedUser()->GetUserId();\n\t\t\t\t\t$dboAutomaticInvoiceRunEvent->update_datetime = date('Y-m-d H:i:s');\n\n\t\t\t\t\tif (!$dboAutomaticInvoiceRunEvent->Save())\n\t\t\t\t\t{\n\t\t\t\t\t\tTransactionRollback();\n\t\t\t\t\t\tAjax()->AddCommand(\"Alert\", \"ERROR: Saving changes to the scheduled times failed.\");\n\t\t\t\t\t\treturn TRUE;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Fire the OnCustomerGroupDetailsUpdate Event\n\t\tTransactionCommit();\n\t\tAjax()->FireEvent('OnInvoiceRunEventsUpdate', array());\n\t\treturn TRUE;\n\t}", "private function add_to_log($action) {\n if ($action) {\n $event = \\mod_simplecertificate\\event\\course_module_viewed::create(\n array(\n 'objectid' => $this->get_course_module()->instance,\n 'context' => $this->get_context(),\n 'other' => array('certificatecode' => $this->get_issue()->code)));\n $event->add_record_snapshot('course', $this->get_course());\n }\n\n if (!empty($event)) {\n $event->trigger();\n }\n }", "function appendTableChangeFile($tableName, $alterations, $alteration_descriptions)\n{\n\n static $overwrite = true;\n if($overwrite){\n $writemode = 'w';\n $overwrite = false;\n $content = \"<?php \\$alterations_moduleID = '{$this->ModuleID}';\\n\";\n $content .= \"\\$alterations = array();\\n\";\n $content .= \"\\$alteration_descriptions = array();?>\\n\";\n } else {\n $writemode = 'a';\n $content = \"\\n\";\n }\n\n $outFile = GEN_LOG_PATH . '/'.$this->ModuleID.'_dbChanges.gen';\n\n $content .= \"<?php \\$alterations['$tableName'] = unserialize('\".escapeSerialize($alterations).\"');\\n\";\n $content .= \"\\$alteration_descriptions['$tableName'] = unserialize('\".escapeSerialize($alteration_descriptions).\"');?>\\n\";\n\n $fh = fopen($outFile, $writemode);\n fwrite($fh, $content);\n fclose($fh);\n\n return true;\n}", "public function getLastModifiedAudit();", "function track_log_entries($type=array()) {\r\n $args = func_get_args();\r\n $mkt_id ='';\r\n //if one of the arguments is marketing ID, then we need to filter by it\r\n foreach($args as $arg){\r\n if(isset($arg['EMAIL_MARKETING_ID_VALUE'])){\r\n $mkt_id = $arg['EMAIL_MARKETING_ID_VALUE'];\r\n }\r\n }\r\n\t\tif (empty($type)) \r\n\t\t\t$type[0]='targeted';\r\n\t\t$this->load_relationship('log_entries');\r\n\t\t$query_array = $this->log_entries->getQuery(true);\r\n\t\t$query_array['select'] =\"SELECT campaign_log.* \";\r\n\t\t$query_array['where'] = $query_array['where']. \" AND activity_type='{$type[0]}' AND archived=0\";\r\n //add filtering by marketing id, if it exists\r\n if (!empty($mkt_id)) $query_array['where'] = $query_array['where']. \" AND marketing_id ='$mkt_id' \";\r\n\t\treturn (implode(\" \",$query_array));\r\n\t}", "function after_update_log($value, $primary_key)\n {\n $format = 'DATE_RFC822';\n $time = time();\n $date = standard_date($format, $time);\n\n $data = array(\n 'action' => 'update',\n 'user' => $this->session->userdata('username'),\n 'section' => 'Idiomas',\n 'fk_section' => $primary_key,\n 'date' => $date\n );\n $this->db->insert('user_log', $data);\n }", "function after_update_log($value, $primary_key)\n {\n $format = 'DATE_RFC822';\n $time = time();\n $date = standard_date($format, $time);\n\n $data = array(\n 'action' => 'update',\n 'user' => $this->session->userdata('username'),\n 'section' => 'Sitios',\n 'fk_section' => $primary_key,\n 'date' => $date\n );\n $this->db->insert('user_log', $data);\n }", "private function recordAuditLog ($attribute)\n {\n $currentValue = $this->convertObjectToString($this->model->getAttribute($attribute)) ? : 'null';\n $originalValue = $this->convertObjectToString($this->model->getOriginal($attribute)) ? : 'null';\n\n $updatedBy = $this->model->updated_by ? : 'null';\n\n $time = $this->getTime();\n\n //create record for the dynamodb record\n $item = [\n 'model_hash' => ['S' => '' . $this->model->class_hash . '-' . $this->model->id . ''],\n 'parameter' => ['S' => '' . $attribute . ''],\n 'old_value' => ['S' => '' . $originalValue . ''],\n 'new_value' => ['S' => '' . $currentValue . ''],\n 'created_at' => ['N' => '' . $time . ''],\n 'created_by' => ['S' => '' . $updatedBy . ''],\n ];\n array_push($this->records, $item);\n\n //see if audit for transactional db is enabled or not\n if ( !in_array($attribute, $this->doubleAuditEnabled) ) return;\n\n //create a db record in transactional db\n AuditLog::create([\n 'model_hash' => $this->model->class_hash,\n 'model_id' => $this->model->id,\n 'parameter' => $attribute,\n 'old_value' => $originalValue,\n 'new_value' => $currentValue,\n 'created_by' => $updatedBy,\n ]);\n }", "public function logEvents(array $auditLogs);", "function e107_db_debug() {\n\t\tglobal $eTimingStart;\n\n\t\t$this->aTimeMarks[0]=array(\n\t\t'Index' => 0,\n\t\t'What' => 'Start',\n\t\t'%Time' => 0,\n\t\t'%DB Time' => 0,\n\t\t'%DB Count' => 0,\n\t\t'Time' => ($eTimingStart),\n\t\t'DB Time' => 0,\n\t\t'DB Count' => 0\n\t\t);\n\t\t\n\t\tregister_shutdown_function('e107_debug_shutdown');\n\t}", "public function run()\n {\n $current_invoice_number = [\n 'DCB0008320',\n 'DCB0008322',\n 'DCB0008323',\n 'DCB0008324',\n 'DCB0008325',\n 'DCB0008326'\n ];\n\n $new_invoice_number = [\n 'DBA26390',\n 'DBA26391',\n 'DBA26392',\n 'DBA26393',\n 'DBA26394',\n 'DBA26395'\n ];\n\n for ($counter=0; $counter < count($current_invoice_number); $counter++) {\n if(ModelFactory::getInstance('TxnSalesOrderHeader')->where('salesman_code','=','C06')->where('invoice_number','=',$current_invoice_number[$counter])->count()){\n $sales_order_header = ModelFactory::getInstance('TxnSalesOrderHeader')->where('salesman_code','=','C06')->where('invoice_number','=',$current_invoice_number[$counter])->first();\n $sales_order_header_id = $sales_order_header->sales_order_header_id;\n ModelFactory::getInstance('TxnSalesOrderHeader')->where('sales_order_header_id','=',$sales_order_header_id)->update([\n 'invoice_number' => $new_invoice_number[$counter],\n 'updated_by' => 1\n ]);\n\n ModelFactory::getInstance('TableLog')->insert([\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n 'table' => 'txn_sales_order_header',\n 'column' => 'invoice_number',\n 'value' => $new_invoice_number[$counter],\n 'pk_id' => $sales_order_header_id,\n 'updated_by' => 1,\n 'before' => $current_invoice_number[$counter],\n 'comment' => 'wrong invoice number and inconsistent data upon migration',\n 'report_type' => 'Sales & Collection - Report'\n ]);\n }\n }\n }", "function insert_audit_trail($params=array()) {\n\t\tif (empty($params)) return false;\n\t\t$required_params = array('asset', 'asset_id', 'action_taken');\n\t\tforeach ($required_params as $param) {\n\t\t\tif (!isset($params[$param])) return false;\n\t\t}\n\t\t$model = &NModel::factory($this->name);\n\t\t// apply fields in the model\n\t\t$fields = $model->fields();\n\t\tforeach ($fields as $field) {\n\t\t\t$model->$field = isset($params[$field])?$params[$field]:null;\n\t\t}\n\t\t$model->user_id = $this->website_user_id;\n\t\t$model->ip = NServer::env('REMOTE_ADDR');\n\t\tif (in_array('cms_created', $fields)) {\n\t\t\t$model->cms_created = $model->now();\n\t\t}\n\t\tif (in_array('cms_modified', $fields)) {\n\t\t\t$model->cms_modified = $model->now();\n\t\t}\n\t\t// set the user id if it's applicable and available\n\t\tif (in_array('cms_modified_by_user', $fields)) {\n\t\t\t$model->cms_modified_by_user = $this->website_user_id;\n\t\t}\n\t\t$model->insert();\n\t}", "protected function audit_record($action = false,$area = false,$id = false,$data = false){\n\t\treturn;\n\t}", "function amendLog($logHandle, $fn)\r\n\t{\r\n\t\tif (! ($logHandle > 0 && $logHandle <= count($this->dbgInfo)) )\r\n\t\t\treturn;\r\n\t\t$fn($this->dbgInfo[$logHandle-1]);\r\n\t}", "public function logTrace()\n {\n $output = new Output(Output::MODE_FILE, $this->getLogPath());\n $output->open();\n \\DebugHelper::dump()->showtrace($output);\n $output->close();\n }", "function add2log($filename,$entry,$debug=true){\n $TimeStamp = date(\"Y-m-dTH:i:s+0000\");\n $entry .= \"\\n\";\n $FileHandle=fopen($filename, \"a\");\n\n if($FileHandle){\n fwrite($FileHandle, \"[ $TimeStamp ] \".$entry);\n fclose($FileHandle);\n\n //~ If debug is enable we also print some infos to the console\n if($debug){ echo($entry); }\n }\n}", "public function updateCitizenIncomeGainLogLog($transaction_id,$status,$country_citizen_distribute_amount,$friend_follower_distribute_amount,$citizen_affiliator_amount,$store_affiliation_amount,$purchaser_distribute_amount,$sixthcontinent_amount,$amount,$user_id,$store_id,$discount_amount,$total_amount,$count,$cron_status,$job_status) {\n \n /** get entity manager object **/\n \n $this->container->get('doctrine')->resetEntityManager();\n /** reset the EM and all aias **/\n $this->container->set('doctrine.orm.entity_manager', null);\n $this->container->set('doctrine.orm.default_entity_manager', null);\n /** get a fresh EM **/\n $this->entityManager = $this->container->get('doctrine')->getEntityManager(); \n \n $em = $this->getDoctrine()->getManager();\n $time = new \\DateTime(\"now\");\n \n $citizen_income_log_check = $em\n ->getRepository('PaymentPaymentDistributionBundle:CitizenIncomeGainLog')\n ->findOneBy(array('transactionId' => (string)$transaction_id));\n if(count($citizen_income_log_check) > 0) {\n $citizen_income_log_check->setStatus($status);\n $citizen_income_log_check->setJobStatus($job_status);\n $citizen_income_log_check->setUpdatedAt($time);\n /** persist the store object **/\n $em->persist($citizen_income_log_check);\n /** save the store info **/\n $em->flush();\n }else {\n $citizen_income_log = new CitizenIncomeGainLog();\n /** set CitizenIncomeGainLog fields **/ \n $citizen_income_log->setTransactionId($transaction_id);\n $citizen_income_log->setCitizenAffiliateAmount($citizen_affiliator_amount);\n $citizen_income_log->setShopAffiliateAmount($store_affiliation_amount);\n $citizen_income_log->setFriendsFollowerAmount($friend_follower_distribute_amount);\n $citizen_income_log->setPurchaserUserAmount($purchaser_distribute_amount);\n $citizen_income_log->setCountryCitizenAmount($country_citizen_distribute_amount);\n $citizen_income_log->setSixthcontinentAmount($sixthcontinent_amount);\n $citizen_income_log->setTotalAmount($total_amount);\n $citizen_income_log->setDistributedAmount($amount);\n $citizen_income_log->setDiscountAmount($discount_amount);\n $citizen_income_log->setUserId($user_id);\n $citizen_income_log->setShopId($store_id);\n $citizen_income_log->setCitizenCount($count);\n $citizen_income_log->setCronStatus($cron_status);\n $citizen_income_log->setStatus($status);\n $citizen_income_log->setCreatedAt($time);\n $citizen_income_log->setUpdatedAt($time);\n $citizen_income_log->setApprovedAt($time);\n $citizen_income_log->setJobStatus($job_status);\n /** persist the store object **/\n $em->persist($citizen_income_log);\n /** save the store info **/\n $em->flush();\n } \n \n return true;\n }", "public function caseLogAction()\n {\n $applicationUuId = $this->getSymfonyRequest()->query->get('uuid');\n\n $application = $this\n ->getIrisAgentContext()\n ->getReferencingApplicationClient()\n ->getReferencingApplication(array(\n 'referencingApplicationUuId' => $applicationUuId,\n ))\n ;\n\n $entries = array();\n\n $activities = $this\n ->getIrisAgentContext()\n ->getActivityClient()\n ->getActivities(array(\n 'referencingApplicationUuId' => $applicationUuId,\n ))\n ;\n\n $notes = $this\n ->getIrisAgentContext()\n ->getNoteClient()\n ->getReferencingApplicationNotes(array(\n 'applicationUuId' => $applicationUuId,\n ))\n ;\n\n $i = 0;\n\n foreach ($activities as $activity) {\n $entries[sprintf('%s-activity-%d', date('U', strtotime($activity->getRecordedAt())), $i)] = array(\n 'content' => $activity->getNote(),\n 'recordedAt' => $activity->getRecordedAt(),\n 'type' => 'activity',\n );\n $i ++;\n }\n\n foreach ($notes as $note) {\n $entries[sprintf('%s-note-%d', date('U', strtotime($note->getRecordedAt())), $i)] = array(\n 'content' => $note->getNote(),\n 'recordedAt' => $note->getRecordedAt(),\n 'createdBy' => $note->getCreatedBy(),\n 'creatorType' => $note->getCreatorType(),\n 'type' => 'note',\n );\n $i ++;\n }\n\n $this->knatsort($entries);\n\n $this->renderTwigView('/iris-referencing/case-log.html.twig', array(\n 'application' => $application,\n 'entries' => $entries,\n ));\n }", "public function updateLog($type, $detail){\n\t\t$this->db->where('name', 'user_logging');\n\t\t$fetch_config = $this->db->get('configuration');\n\t\tif ($fetch_config->row()->value) {\n\t\t\t$raw_data = array(\n\t\t\t\t'owner_id'\t=> $this->session->userdata('id'),\n\t\t\t\t'action'\t=> $type,\n\t\t\t\t'detail'\t=> $detail,\n\t\t\t\t'time'\t\t=> time()\n\t\t\t\t);\n\t\t\t$this->db->insert('user_activity', $raw_data);\n\t\t}\n\t\t\n\t}", "private function snapshotEntriesInDateRange() {\n\t\tforeach ($this->report['snapshot'] as $file) {\n\t\t\t$handle = @fopen($file, \"r\");\n\t\t\tif ($handle) {\n\t\t\t\twhile (($buffer = fgets($handle, 4096)) !== false) {\n\t\t\t\t\t$this->Log->parseLogLine($buffer);\n\t\t\t\t\t// is it an log entry for the customer of interest?\n\t\t\t\t\tif ($this->Log->logLine['customer'] == $this->report['customer']) {\n\t\t\t\t\t\t// if the log entry is in the specific date range, save it\n//\t\t\t\t\t\t\t$this->ddd($this->Log->meta, 'pre');\n//\t\t\t\t\t\tif ($this->Log->meta['datetime'] >= $this->report['firstTime'] && $this->Log->meta['datetime'] <= $this->report['finalTime']) {\n//\t\t\t\t\t\t\t$this->ddd($this->Log->meta, 'post');\n\t\t\t\t\t\t$this->report['items'][$this->Log->logLine['id']]['Snapshot'][] = array_merge($this->Log->meta, $this->Log->logLine);\n//\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t}\n\t\t\t\tif (!feof($handle)) {\n\t\t\t\t\techo \"Error: unexpected fgets() fail\\n<br />\";\n\t\t\t\t}\n\t\t\t\tfclose($handle);\n\t\t\t}\n\t\t}\n\t}", "public function logUpdate(RevisionInterface $revision)\n {\n $this->log($revision->describeUp());\n }", "public function postUpdate(LifecycleEventArgs $args)\n {\n $this->doctrineLog($args,\n array(\n 'action' => 'updated',\n 'level' => 'doctrine',\n ));\n }", "public function updated(Lab $lab)\n {\n $lab->postLog();\n }", "public function touch() {\n\t\t$this->timestamp();\n\t\t$this->save();\n\t}", "function track_timings($user_id,$checklist_id){\r\n $query = $this->db->query(\"SELECT createdate FROM `event_log` WHERE user_id = '$user_id' AND value = '$checklist_id' AND action = 'checklist_started' ORDER BY createdate desc LIMIT 1\");\r\n $result = $query->row_array();\r\n\r\n $then = $result['createdate'];\r\n $now = date(\"Y-m-d H:i:s\");\r\n\r\n $time_between = strtotime($now) - strtotime($then);\r\n\r\n $query = $this->db->query(\"INSERT INTO checklist_timings (user_id, checklist_id, time, createdate) VALUES ('$user_id','$checklist_id','$time_between', NOW())\");\r\n\r\n\t}", "public function change()\n {\n $this->table('change_history')\n ->setComment('数据修改记录')\n ->setEngine('InnoDB')\n ->addColumn('model_type','string', ['comment' => '数据模型类名'])\n ->addColumn('model_id', 'integer', ['comment' => '数据ID'])\n ->addColumn('before', 'text', ['comment' => '修改前内容'])\n ->addColumn('after', 'text', ['comment' => '修改后内容'])\n ->addColumn('method', 'string', ['comment' => '请求方式'])\n ->addColumn('url', 'text', ['comment' => '请求url'])\n ->addColumn('param', 'text', ['comment' => '请求参数'])\n ->addFingerPrint()\n ->create();\n }", "function account_log()\n {\n }", "function update_system_log($action, $description) {\n\t\tglobal $database;\n\t\t\n\t\t// write to system log\n\t\t$action = strtoupper($action);\n\t\t$ip = get_client_ip();\n\t\t$now = datetime_now();\n\t\t\n\t\t$action = str_sanitize($action);\n\t\t$description = str_sanitize($description);\n\t\t\n\t\t$ret = $database->query(\"INSERT INTO system_log(action,ipaddress,entrydate,description)\n\t\t VALUES('$action', '$ip','$now', '$description');\");\t\n}", "function __log($alias, $action, $details, $foreign_key=null){\n if($this->__isLogRequired($action)) {\n $this->__UserLog->create();\n $this->__UserLog->data = array(\n 'user_id' => User::get('id'),\n 'resource' => $alias,\n 'resource_type' => 'model',\n 'action' => $action,\n 'foreign_key' => $foreign_key,\n 'details' => $this->__isLogDetailsRequired($alias,$action) ? $details : null\n );\n if(!$this->__deferred) {\n $this->__saveLog();\n }\n }\n }", "public function test_addOrderLineActivityAudit() {\n\n }", "function amendLog($logHandle, $fn)\n\t{\n\t\tif (! ($logHandle > 0 && $logHandle <= count($this->dbgInfo)) )\n\t\t\treturn;\n\t\t$fn($this->dbgInfo[$logHandle-1]);\n\t}", "function log_change($instigator, $verb, $person_id, $preposition, $project_id, $week) {\n $instigator = addslashes($instigator);\n $query = \"INSERT INTO changes (timestamp, instigator, verb, person_id, preposition, project_id, week) VALUES (NOW(), '$instigator', '$verb', $person_id, '$preposition', $project_id, '$week')\";\n\n if ($result = mysql_query($query)) {\n \t#echo \"added record \" . mysql_insert_id();\n } else {\n \tdie(\"<p>could not insert item because:<br>\" .mysql_error(). \"<br>the query was $query.</p>\");\n }\n}", "static function update_tracing_data($lead_id, $status){\n\t\t$table = self::get_offline_table();\n\t\tglobal $wpdb;\n\t\t$wpdb->update($table, array('crm_status'=>(int)$status), array('lead_id'=>(int)$lead_id), array('%d'), array('%d'));\n\t\t\n\t}" ]
[ "0.5931603", "0.589313", "0.5870273", "0.58512795", "0.58074933", "0.580181", "0.57816154", "0.5750017", "0.57469946", "0.5732304", "0.5726611", "0.5574392", "0.5569128", "0.55315965", "0.549425", "0.5461808", "0.54315203", "0.542446", "0.5416752", "0.5407153", "0.5398535", "0.5398421", "0.534764", "0.53358513", "0.53308135", "0.5306465", "0.5285963", "0.5280142", "0.5277265", "0.5271168", "0.51914304", "0.5184817", "0.51790255", "0.516839", "0.5141796", "0.51403624", "0.51375186", "0.5130259", "0.5119669", "0.51134187", "0.5106232", "0.51037735", "0.5091285", "0.504536", "0.504536", "0.5015385", "0.49935514", "0.49858505", "0.49824882", "0.4978838", "0.4976038", "0.49628475", "0.4949706", "0.49425536", "0.49244642", "0.491562", "0.491562", "0.4908616", "0.4908409", "0.4900507", "0.48739687", "0.48682788", "0.48550087", "0.4854827", "0.48522568", "0.48405722", "0.48341644", "0.48248562", "0.48226687", "0.48193756", "0.48187464", "0.48187146", "0.48135743", "0.4812334", "0.4811598", "0.48007658", "0.47894675", "0.47884256", "0.47762057", "0.47577393", "0.47569036", "0.47560078", "0.47554383", "0.47534442", "0.475222", "0.475194", "0.47486565", "0.47460467", "0.47452357", "0.47400516", "0.47392052", "0.47358748", "0.47334096", "0.47331825", "0.47309762", "0.4722888", "0.4721031", "0.47138342", "0.4712519", "0.47079998" ]
0.5678193
11
Write Audit Trail (add page)
function WriteAuditTrailOnAdd(&$rs) { global $Language; if (!$this->AuditTrailOnAdd) return; $table = 't_gaji_detail'; // Get key value $key = ""; if ($key <> "") $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"]; $key .= $rs['gjd_id']; // Write Audit Trail $dt = ew_StdCurrentDateTime(); $id = ew_ScriptName(); $usr = CurrentUserName(); foreach (array_keys($rs) as $fldname) { if (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields if ($this->fields[$fldname]->FldHtmlTag == "PASSWORD") { $newvalue = $Language->Phrase("PasswordMask"); // Password Field } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { if (EW_AUDIT_TRAIL_TO_DATABASE) $newvalue = $rs[$fldname]; else $newvalue = "[MEMO]"; // Memo Field } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { $newvalue = "[XML]"; // XML Field } else { $newvalue = $rs[$fldname]; } ew_WriteAuditTrail("log", $dt, $id, $usr, "A", $table, $fldname, $key, "", $newvalue); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insert_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('siis', $parameter_array);\n }", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'tutores';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'mst_vendor';\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = $typ;\n\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'pase_establecimiento';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 't_gaji_detail';\n\t\t$usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function EventLog($page,$action,$orignal_value,$new_value)\n{\n\t\t$email = $_SESSION['user_email'];\n\t\t$ipaddress = getUserIP();\n\t\t\n\t\t$data = sprintf(\"%s,%s,%s,%s,%s\" . PHP_EOL, $ipaddress,date(\"F j Y g:i a\"), $email, $page, $action);\n\t\t\n\t\t//file_put_contents($_SERVER['DOCUMENT_ROOT'] .'/log.txt', $data, FILE_APPEND);\t\t\n\t\tfile_put_contents('log.txt', $data, FILE_APPEND);\t\t\t\n\t\t\n\t\t\n}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'servidor_escolar';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'tbl_profile';\n\t $usr = CurrentUserID();\n\t\tup_WriteAuditTrail(\"log\", up_StdCurrentDateTime(), up_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'user';\n\t $usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'scholarship_package';\n\t $usr = CurrentUserID();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function addAudit(Audit $audit);", "function insert_audit_trail($params=array()) {\n\t\tif (empty($params)) return false;\n\t\t$required_params = array('asset', 'asset_id', 'action_taken');\n\t\tforeach ($required_params as $param) {\n\t\t\tif (!isset($params[$param])) return false;\n\t\t}\n\t\t$model = &NModel::factory($this->name);\n\t\t// apply fields in the model\n\t\t$fields = $model->fields();\n\t\tforeach ($fields as $field) {\n\t\t\t$model->$field = isset($params[$field])?$params[$field]:null;\n\t\t}\n\t\t$model->user_id = $this->website_user_id;\n\t\t$model->ip = NServer::env('REMOTE_ADDR');\n\t\tif (in_array('cms_created', $fields)) {\n\t\t\t$model->cms_created = $model->now();\n\t\t}\n\t\tif (in_array('cms_modified', $fields)) {\n\t\t\t$model->cms_modified = $model->now();\n\t\t}\n\t\t// set the user id if it's applicable and available\n\t\tif (in_array('cms_modified_by_user', $fields)) {\n\t\t\t$model->cms_modified_by_user = $this->website_user_id;\n\t\t}\n\t\t$model->insert();\n\t}", "public function addPage() {\n $build = [\n '#theme' => 'log_add_list',\n '#cache' => [\n 'tags' => $this->entityManager()->getDefinition('log_type')->getListCacheTags(),\n ],\n ];\n\n $content = array();\n\n // Only use log types the user has access to.\n foreach ($this->entityManager()->getStorage('log_type')->loadMultiple() as $type) {\n $access = $this->entityManager()->getAccessControlHandler('log')->createAccess($type->id(), NULL, [], TRUE);\n if ($access->isAllowed()) {\n $content[$type->id()] = $type;\n }\n $this->renderer->addCacheableDependency($build, $access);\n }\n\n // Bypass the log/add listing if only one content type is available.\n if (count($content) == 1) {\n $type = array_shift($content);\n return $this->redirect('log.add', array('log_type' => $type->id()));\n }\n\n $build['#content'] = $content;\n\n return $build;\n }", "public function log_activity() {\n\t\t$data = array();\n\t\t$data['page'] = current_url();\n\t\t$data['ip_address'] = $this->_ci->input->ip_address();\n\t\t$data['user_agent'] = $this->_ci->agent->agent_string(); \n\t\t$data['request_method'] = $this->_ci->input->server('REQUEST_METHOD');\n\t\t$data['request_params'] = serialize($this->_ci->input->get_post(NULL, TRUE)); \n\t\t$data['uri_string'] = $this->_ci->uri->uri_string();\n\t\t$data['created_at'] = date('Y-m-d h:i:s');\n\n\t\tif($this->verify_activity()) {\n\t\t\t// And write it to the database\n\t\t\t$this->_ci->db->insert('hooks', $data);\n\t\t}\n\t}", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $tbl_profile;\n\t\t$table = 'tbl_profile';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= UP_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['facultyprofile_ID'];\n\n\t\t// Write Audit Trail\n\t\t$dt = up_StdCurrentDateTime();\n\t\t$id = up_ScriptName();\n\t $curUser = CurrentUserID();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $tbl_profile->fields) && $tbl_profile->fields[$fldname]->FldDataType <> UP_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_MEMO) {\n\t\t\t\t\tif (UP_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tup_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "function appendPage($pageName, $newPageBody)\n{\n $newPageBody = trim($newPageBody);\n $sFile = getPagePath($pageName);\n if($newPageBody != \"\")\n {\n $f = fopen($sFile, \"at\");\n fwrite($f, \"\\n\\n\\n\\n\");\n fwrite($f, $newPageBody);\n fclose($f);\n }\n else\n {\n @unlink($sFile);\n }\n}", "function add2log($filename,$entry,$debug=true){\n $TimeStamp = date(\"Y-m-dTH:i:s+0000\");\n $entry .= \"\\n\";\n $FileHandle=fopen($filename, \"a\");\n\n if($FileHandle){\n fwrite($FileHandle, \"[ $TimeStamp ] \".$entry);\n fclose($FileHandle);\n\n //~ If debug is enable we also print some infos to the console\n if($debug){ echo($entry); }\n }\n}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && array_key_exists($fldname, $rsold) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function __construct() {\n\t\t$view_event = ( isset( \\REALTY_BLOC_LOG::$option['view_event'] ) ? \\REALTY_BLOC_LOG::$option['view_event'] : array() );\n\n\t\t// Property Page view log\n\t\tif ( isset( $view_event['property'] ) and $view_event['property'] == \"on\" ) {\n\t\t\tadd_action( 'rb_page_view_property_log', array( $this, 'save_property' ), 10, 5 );\n\t\t}\n\n\t\t// building Page View log\n\t\tif ( isset( $view_event['building'] ) and $view_event['building'] == \"on\" ) {\n\t\t\tadd_action( 'rb_page_view_building_log', array( $this, 'save_building' ), 10, 5 );\n\t\t}\n\t}", "public function actionTrail()\n {\n $searchModel = new AuditTrailSearch;\n $dataProvider = $searchModel->search(Yii::$app->request->get());\n\n return $this->render('trail', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "public function log_activity() {\n \n \n $CI =& get_instance();\n $CI->load->library('audit_trail');\n // Start off with the session stuff we know\n $data = array();\n $data['user_id'] = $CI->session->userdata('user_id');\n \n // Next up, we want to know what page we're on, use the router class\n $data['section'] = $CI->router->class;\n $data['action'] = $CI->router->method;\n \n // Lastly, we need to know when this is happening\n $data['when'] = date('Y-m-d G:i:s');\n \n // We don't need it, but we'll log the URI just in case\n $data['uri'] = uri_string();\n $path = realpath(APPPATH);\n // And write it to the database\n if($CI->router->method!='checkPortal' && $CI->router->method!='getAttendanceUpdates' && $CI->router->method!='getAverageDailyAttendance'):\n $CI->audit_trail->lfile($path.'/modules/logs/'.$CI->session->userdata('user_id').'.txt');\n $CI->audit_trail->lwrite($CI->session->userdata('name').' access '.$CI->router->method.' through '. uri_string().'.' , 'TRACE');\n endif;\n }", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'pase_establecimiento';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Id_Pase'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected function _write($event)\n {\n $this->logs[] = $event;\n }", "public function writeRecords_pages_order() {}", "function addToLog ($content){\n\t\t$file = fopen ('../../data/log.txt', 'a+');\n\n\t\tfwrite ($file, $content);\n\t\tfclose ($file);\n\t}", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnDelete) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rs['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$curUser = CurrentUserName();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") {\n\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\"); // Password Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {\n\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "public function addHistory($date, $history_id) {\n if ( $_SESSION['addHistory'] = true ) {\n $file = fopen( \"loginHistory.txt\", \"a\");\n if($file) {\n $output = ++$history_id . \"~\" . $_POST['username'] . \"~\" . $date . \"\\n\";\n fwrite($file, $output);\n fclose($file); \n } else {\n echo \"Could not save history!\";\n } \n }\n }", "function addFileLog($file, $text) {\n\t$today = date(\"Ymd\");\n\t$timeStamp = date(\"Y-m-d H:i:s\");\n\t$filePath = \"./__logs__/\".$today.\"_\".$file;\n\tfile_put_contents($filePath, \"\\n\".$timeStamp.\"\\n\".$text, FILE_APPEND | LOCK_EX);\n}", "static function afterPageHistoryEntry($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)\n\t{\n\t\tself::saveMobUsage($a_page, $a_old_domdoc, $a_old_nr);\n\t}", "public function store() {\n $logData = \"=========================================\\n\";\n $logData .= \"Date Time: \".$this->record_date.\"\\n\";\n $logData .= $this->title.\" (\".$this->type.\") \\n\";\n if(!empty($this->data)) {\n $logData .= var_export($this->data, true).\"\\n\";\n }\n \n file_put_contents($this->file, $logData, FILE_APPEND);\n \n }", "function application_log($title,$info){\n if(!is_dir(ROOTPATH.'/Log/'.date('Y-m-d',time()).'/')){\n if(!is_dir(ROOTPATH.'/Log/')){\n mkdir(ROOTPATH.'/Log/');\n }\n mkdir(ROOTPATH.'/Log/'.date('Y-m-d',time()).'/');\n }\n $filename=ROOTPATH.'/Log/'.date('Y-m-d',time()).'/DbLog.txt';\n $handle=fopen($filename,\"a+\");\n fwrite($handle,\"$title:$info\\n\");\n fclose($handle);\n}", "function ilog(){\r\n\t\tif($this->input['action'] != 'mylog'){\r\n\t\t\tif($this->vars['logSavePage'] == 1) $logSavePage = addslashes(serialize($this->page));\r\n\t\t\t// user log\r\n\t\t\t$this->DB->query(\"\r\n\t\t\t\tINSERT INTO `log` (`userid` , `title` , `area` , `module` , `action` , `id` , `ip` , `kinput` , `page` , `dateline`)\r\n\t\t\t\tVALUES (\r\n\t\t\t\t'\".$this->user['userid'].\"', '\".$this->page['title'].\"', '\".$this->vars['area'].\"', '\".$this->input['module'].\"', '\".$this->input['action'].\"', '\".$this->iif($this->input[$this->input['module'].'id'] > 0, $this->input[$this->input['module'].'id'], 0).\"', '\".IP.\"', '\".serialize($this->input).\"', '\".$logSavePage.\"', '\".TIMENOW.\"'\r\n\t\t\t\t)\r\n\t\t\t\");\r\n\t\t}\r\n\t}", "public function add(WebPage $page);", "private function audit($operation, $details) {\r\n $columns = array(\r\n \"#timestamp\" => \"STR_TO_DATE('\" . date('d/m/Y H:i:s') . \"','%d/%m/%Y %H:%i:%s')\",\r\n \"username\" => $_SESSION['_ebb_username'],\r\n \"operation\" => $operation,\r\n \"details\" => $details\r\n );\r\n\r\n $this->database->insert(\"tb_audit\", $columns);\r\n }", "public function addLog($data);", "function save_log($g,$p,$file) {\n\t$txt = '';\n\t$txt .= \"GET\\n\";\n\tforeach ($g as $key => $string_value)\t{\n\t\t$txt .= $key.\" = \".$string_value.\"\\n\";\n\t}\n\t$txt .= \"POST\\n\";\n\tforeach ($p as $key => $string_value)\t{\n\t\t$txt .= $key.\" = \".$string_value.\"\\n\";\n\t}\n\n// ECRITURE FICHIER\n\t// ENREGISTREMENT LOG\n\tif ($fp=fopen($file, \"a\")) {\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\");\n\t\tfwrite($fp, $txt);\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\\n\");\n\t\tfclose($fp);\n\t} else {\n\t\techo \"Erreur d'ouverture de \".$file;\n\t}\n}", "public function testComDayCqWcmCoreImplEventPageEventAuditListener()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.day.cq.wcm.core.impl.event.PageEventAuditListener';\n\n $crawler = $client->request('POST', $path);\n }", "function stupid_log( $i, $label, $wikidata_ID ) {\n\t$log_message = sprintf( \"%d,%s,%s,%s\\n\",\n\t\t$i,\n\t\t$wikidata_ID,\n\t\t$label,\n\t\tdate('Y-m-d H:i:s')\n\t);\n\tfile_put_contents( 'log.txt', $log_message, FILE_APPEND );\n}", "public function createAuditLog($request)\n {\n return $this->start()->uri(\"/api/system/audit-log\")\n ->bodyHandler(new JSONBodyHandler($request))\n ->post()\n ->go();\n }", "public function addPage() {\n\t\t\n\t\t$output = array();\n\t\t$url = Request::post('url');\n\n\t\t// Validation of $_POST. URL, title and template must exist and != false.\n\t\tif ($url && ($Page = $this->Automad->getPage($url))) {\n\t\n\t\t\t$subpage = Request::post('subpage');\n\n\t\t\tif (is_array($subpage) && !empty($subpage['title'])) {\n\t\t\n\t\t\t\t// Check if the current page's directory is writable.\n\t\t\t\tif (is_writable(dirname($this->getPageFilePath($Page)))) {\n\t\n\t\t\t\t\tCore\\Debug::log($Page->url, 'page');\n\t\t\t\t\tCore\\Debug::log($subpage, 'new subpage');\n\t\n\t\t\t\t\t// The new page's properties.\n\t\t\t\t\t$title = $subpage['title'];\n\t\t\t\t\t$themeTemplate = $this->getTemplateNameFromArray($subpage, 'theme_template');\n\t\t\t\t\t$theme = dirname($themeTemplate);\n\t\t\t\t\t$template = basename($themeTemplate);\n\t\t\t\t\t\n\t\t\t\t\t// Save new subpage below the current page's path.\t\t\n\t\t\t\t\t$subdir = Core\\Str::sanitize($title, true, AM_DIRNAME_MAX_LEN);\n\t\t\t\t\t\n\t\t\t\t\t// If $subdir is an empty string after sanitizing, set it to 'untitled'.\n\t\t\t\t\tif (!$subdir) {\n\t\t\t\t\t\t$subdir = 'untitled';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Add trailing slash.\n\t\t\t\t\t$subdir .= '/';\n\t\t\t\t\t\n\t\t\t\t\t// Build path.\n\t\t\t\t\t$newPagePath = $Page->path . $subdir;\n\t\t\t\t\t$suffix = FileSystem::uniquePathSuffix($newPagePath);\n\t\t\t\t\t$newPagePath = FileSystem::appendSuffixToPath($newPagePath, $suffix); \n\t\t\t\t\t\n\t\t\t\t\t// Data. Also directly append possibly existing suffix to title here.\n\t\t\t\t\t$data = array(\n\t\t\t\t\t\tAM_KEY_TITLE => $title . ucwords(str_replace('-', ' ', $suffix)),\n\t\t\t\t\t\tAM_KEY_PRIVATE => (!empty($subpage['private']))\n\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t\tif ($theme != '.') {\n\t\t\t\t\t\t$data[AM_KEY_THEME] = $theme;\n\t\t\t\t\t}\n\n\t\t\t\t\t// Set date.\n\t\t\t\t\t$data[AM_KEY_DATE] = date('Y-m-d H:i:s');\n\t\t\t\t\t\n\t\t\t\t\t// Build the file name and save the txt file. \n\t\t\t\t\t$file = FileSystem::fullPagePath($newPagePath) . str_replace('.php', '', $template) . '.' . AM_FILE_EXT_DATA;\n\t\t\t\t\tFileSystem::writeData($data, $file);\n\t\t\t\t\t\n\t\t\t\t\t$output['redirect'] = $this->contextUrlByPath($newPagePath);\n\t\t\t\t\t\n\t\t\t\t\t$this->clearCache();\n\t\t\n\t\t\t\t} else {\n\t\t\t\n\t\t\t\t\t$output['error'] = Text::get('error_permission') . '<p>' . dirname($this->getPageFilePath($Page)) . '</p>';\n\t\t\t\n\t\t\t\t}\n\t\t\n\t\t\t} else {\n\t\n\t\t\t\t$output['error'] = Text::get('error_page_title');\n\t\n\t\t\t}\t\n\t\n\t\t} else {\n\t\n\t\t\t$output['error'] = Text::get('error_no_destination');\n\t\n\t\t}\t\n\t\t\n\t\treturn $output;\n\t\t\n\t}", "public function main()\n {\n $records = array();\n\n $this->pObj->arrReport[] = '\n <h2>\n ' . $this->pObj->pi_getLL('ts_create_header') . '\n </h2>';\n\n $records = $this->page();\n $this->sqlInsert($records);\n }", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 'user';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t $usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private function add_to_log($action) {\n if ($action) {\n $event = \\mod_simplecertificate\\event\\course_module_viewed::create(\n array(\n 'objectid' => $this->get_course_module()->instance,\n 'context' => $this->get_context(),\n 'other' => array('certificatecode' => $this->get_issue()->code)));\n $event->add_record_snapshot('course', $this->get_course());\n }\n\n if (!empty($event)) {\n $event->trigger();\n }\n }", "function add_info($page, $add) {\r\n \r\n $this->db->insert($page, $add);\r\n }", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'servidor_escolar';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Cue'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function audit_log()\n\t{\n\t\tif($this->session->userdata('logged_in')==\"\")\n\t\t\theader(\"Location: \".$this->config->base_url().\"Login\");\n\t\t\t$this->cache_update();\n\t\t\t$this->check_privilege(14);\n\t\t//mandatory\n\t\t$this->load->driver('cache',array('adapter' => 'file'));\n\t\t$u_type = array('var'=>$this->cache->get('Active_status'.$this->session->userdata('loginid'))['user_type_id_fk']);\n\t\t$this->load->model('profile_model');\n\t\t$noti = array('meeting'=>$this->profile_model->meeting_notification());\n\t\t$u_type['notification'] = $noti;\n\t\t$u_type['noti1']=$this->profile_model->custom_notification();\n\t\t$this->load->view('dashboard/navbar',$u_type);\n\t\t$da = $this->profile_model->get_profile_info($this->session->userdata('uid'));\n\t\t$this->load->view('dashboard/sidebar',$da);\n\t// ends here\n\t\t$this->load->model('Sup_Admin');\n\t\t$this->load->model('Crud_model');\n\t\t$data['audit']=$this->Sup_Admin->get_user_details();\n\t\t$data['login_as']=array();\n\t\tforeach ($data['audit'] as $key) \n\t\t{\n\t\t\tarray_push($data['login_as'],$this->Sup_Admin->get_log_id($key['login_id_fk']));\n\t\t}\n\t\t$this->load->view('audit_view',$data);\n\t\t$this->db->trans_off();\n\t \t$this->db->trans_strict(FALSE);\n\t\t$this->db->trans_start();\n\t\t$this->Crud_model->audit_upload($this->session->userdata('loginid'),\n\t\t\t\t\t\t\t current_url(),\n\t\t\t\t\t\t\t 'Audit Log Page Visited',\n\t\t\t\t\t\t\t 'Custom message here');\n\t\t$this->db->trans_complete();\n\t\t$this->load->view('dashboard/footer');\n\n\t}", "function turnitintooltwo_add_to_log($courseid, $eventname, $link, $desc, $cmid, $userid = 0) {\n global $USER;\n\n $eventname = str_replace(' ', '_', $eventname);\n $eventpath = '\\mod_turnitintooltwo\\event\\\\'.$eventname;\n\n $data = array(\n 'objectid' => $cmid,\n 'context' => ( $cmid == 0 ) ? context_course::instance($courseid) : context_module::instance($cmid),\n 'other' => array('desc' => $desc)\n );\n if (!empty($userid) && ($userid != $USER->id)) {\n $data['relateduserid'] = $userid;\n }\n $event = $eventpath::create($data);\n $event->trigger();\n}", "function owa_insertPageTags() {\r\n\t\r\n\t// Don't log if the page request is a preview - Wordpress 2.x or greater\r\n\tif (function_exists('is_preview')) {\r\n\t\tif (is_preview()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$owa = owa_getInstance();\r\n\t\r\n\t$page_properties = $owa->getAllEventProperties($owa->pageview_event);\r\n\t$cmds = '';\r\n\tif ( $page_properties ) {\r\n\t\t$page_properties_json = json_encode( $page_properties );\r\n\t\t$cmds .= \"owa_cmds.push( ['setPageProperties', $page_properties_json] );\";\r\n\t}\r\n\t\r\n\t//$wgOut->addInlineScript( $cmds );\r\n\t\r\n\t$options = array( 'cmds' => $cmds );\r\n\t\r\n\t\r\n\t$owa->placeHelperPageTags(true, $options);\t\r\n}", "function log_action($action, $message=\"\"){\n\t\t$logfile = SITE_ROOT.DS.'logs'.DS.'log.txt';\n\t\t\n\t\t// check the file is writable or output error\n\t\t// append new entries to the end of the file\n\t\tif($handle = fopen($logfile, 'a')){ // append\n\t\t\n\t\t\t// Sample Entry: 2012-01-01 13:10:03 | Login: freeze logged in. \n\t\t\t//(for windows newline is \\r\\n) for unix it is just \\n\n\t\t\t$timestamp = date('Y-m-d h:i:s A');\n\t\t\t$content = \"{$timestamp} | {$action}: {$message}\\r\\n\";\n\t\t\tfwrite($handle, $content); \n\t\t\n\t\t\tfclose($handle);\n\t\t} else {\n\t\t\techo \"Could not open file for writing\";\n\t\t}\t\n\t}", "function update_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::update($this->id, 'siis', $parameter_array);\n }", "public function testAuditLogNavigationLinksOpensAuditLogPage()\n {\n $user = User::find(User::JANITOR_USER_ID);\n\n $this->browse(function ($browser) use ($user) {\n $browser->loginAs($user)\n ->visit(new HomePage)\n ->click('@nav-cog')\n ->clickLink('Audit Log')\n ->on(new AuditLogPage);\n });\n }", "public static function logPageView($pagetype,$pageid,$additionalData) {\n // get too intensive\n $sessionid = session_id();\n Log::debug('Logging page view for ' . $pagetype . '-' . $pageid . ' on session record ' . $sessionid,1);\n $query = \"insert into pageView(sessionId,pageType,pageId,additionalData) values (\";\n $query .= \"'\" . $sessionid . \"'\";\n $query .= \",'\" . $pagetype . \"'\";\n $query .= \",\" . $pageid;\n $query .= \",'\" . $additionalData . \"');\";\n try {\n $con = mysqli_connect(Config::$server,Config::$user,Config::$password, Config::$database);\n }\n catch(Exception $e) {\n Log::debug('unable to write to pageView table: ' . $e->getMessage(),10);\n }\n if ($con) {\n mysqli_query($con,$query);\n }\n else \n {\n Log::debug('unable to connect to database for debug: no connection returned.',10);\n }\n }", "public static function handlePageCreated(ilWikiPage $a_page_obj, $a_user_id)\n\t{\t\t\t\n\t\t// wiki: num_pages (count)\n\t\tself::writeStat($a_page_obj->getWikiId(), \n\t\t\tarray(\n\t\t\t\t\"num_pages\" => array(\"integer\", self::countPages($a_page_obj->getWikiId()))\n\t\t\t));\n\t\t\n\t\t// user: new_pages+1\n\t\tself::writeStatUser($a_page_obj->getWikiId(), $a_user_id, \n\t\t\tarray(\n\t\t\t\t\"new_pages\" => array(\"increment\", 1)\n\t\t\t));\t\t\t\t\n\t}", "function writeLog($text)\n {\n $file = fopen(\"../log.txt\", \"a+\") or die(\"Unable to open file!\");\n fwrite($file, $text . \"\\n\");\n fclose($file);\n }", "function logfile() {\n\tglobal $urlpath, $staticFile, $log_file;\n\t$page = \"\";\n\t$buttons = \"\";\n\n\t$page .= hlc(t(\"sweep_title\"));\n\t$page .= hl(t(\"sweep_log\"),4);\n\t$page .= par(t(\"sweep_log_path\").\" $log_file: \");\n\t$page .= '<a href=\"#bottom\">'.t(\"sweep_scroll_down\").'</a>';\n $page .= ptxt(file_get_contents($log_file));\n $page .= '<hr id=\"bottom\" />';\n\n\n $buttons .= addButton(array('label'=>t(\"sweep_button_status\"),'class'=>'btn btn-success', 'href'=>\"$urlpath\", 'divOptions'=>array('class'=>'btn-group')));\n\t$buttons .= addButton(array('label'=>t(\"sweep_button_reload\"),'class'=>'btn btn-success', 'href'=>\"$urlpath/logfile\", 'divOptions'=>array('class'=>'btn-group')));\n\t\t\n\n $page .= $buttons;\n\treturn(array('type' => 'render','page' => $page));\n}", "protected function writeSysFileStorageRecords() {}", "function logTransaction($text){\n\t$fp = fopen (PAYPAL_LOG_FILE , 'a');\n\tfwrite ($fp, $text . \"\\n\");\n\tfclose ($fp );\n\tchmod (PAYPAL_LOG_FILE , 0600);\n}", "function write_log($msg) {\n global $transaction_ID;\n $todays_date = date(\"Y-m-d H:i:s\");\n $file = fopen(\"process.log\",\"a\");\n fputs($file,$todays_date. \" [\".$transaction_ID.\"] \". $msg.\"\\n\");\n fclose($file);\n}", "function writeAccessInfo(){\r\n\t\t$sql=\"INSERT INTO \".$this->schema.\".accessi_log(ipaddr,username,data_enter,application) VALUES('$this->user_ip','$this->username',CURRENT_TIMESTAMP(1),'$app')\";\r\n\t\t$this->db->sql_query($sql);\r\n\t}", "function log($type, $log) {\n try {\n $fh = fopen($this->logFilePath, 'a');\n fwrite($fh, date($this->dateFormat) . \" - {$type} -> {$log}\" . PHP_EOL);\n fclose($fh);\n } catch(Exception $e) {\n $this->error($e->getMessage());\n }\n }", "function log_stats($page_id)\n {\n global $app, $HTTP_USER_AGENT, $REMOTE_ADDR;\n\t\t$app[current_page] = $page_id;\n\t\t$year = date('Y');\n $hour = date('g a');\n $week = date('w');\n $month = date('F');\n\n\t\t## total hit \n $sql = \"select * from {$app[table][stats_hit]}\n where year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_hit]} \n set counter = counter + 1\n where year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_hit]} (counter, year) values(1,'$year')\";\n endif;\n db::qry($sql);\n \n ## by page\n $sql = \"select * from {$app[table][stats_page]}\n where page_id = '$page_id' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_page]} \n \tset counter = counter + 1\n\t\t\t\t\twhere page_id = '$page_id' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_page]} (page_id, counter, year) values('$page_id',1,'$year')\";\n endif;\n db::qry($sql);\n\t\n ## by browser\n if (eregi(\"Nav\", $HTTP_USER_AGENT) || eregi(\"Gold\", $HTTP_USER_AGENT) || eregi(\"X11\", $HTTP_USER_AGENT) || eregi(\"en-US\", $HTTP_USER_AGENT) || eregi(\"Netscape\", $HTTP_USER_AGENT) || eregi(\"Mozilla/4.74\", $HTTP_USER_AGENT)):\n $browser = \"Netscape\";\n elseif (eregi(\"Lynx\", $HTTP_USER_AGENT)): \n $browser = \"Lynx\";\n elseif (eregi(\"Opera\", $HTTP_USER_AGENT)): \n $browser = \"Opera\";\n elseif (eregi(\"Konqueror\", $HTTP_USER_AGENT)): \n $browser = \"Konqueror\";\n elseif (eregi(\"Bot\", $HTTP_USER_AGENT) || eregi(\"Google\", $HTTP_USER_AGENT) || eregi(\"Slurp\", $HTTP_USER_AGENT) || eregi(\"Scooter\", $HTTP_USER_AGENT) || eregi(\"Spider\", $HTTP_USER_AGENT) || eregi(\"Infoseek\", $HTTP_USER_AGENT)):\n $browser = \"Bot\";\n elseif (eregi(\"MSIE\", $HTTP_USER_AGENT)):\n $browser = \"MSIE\";\n else:\n $browser = \"Other\";\n endif;\n \n $sql = \"select * from {$app[table][stats_browser]}\n where browser = '$browser' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_browser]} \n set counter = counter + 1\n where browser = '$browser' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_browser]} (browser, counter, year) values('$browser',1,'$year')\";\n endif; \n db::qry($sql); \n\t\n ## by OS\n if (eregi(\"Win\", $HTTP_USER_AGENT)):\n $os = \"Windows\";\n elseif (eregi(\"Mac\", $HTTP_USER_AGENT)): \n $os = \"Mac\";\n elseif (eregi(\"PPC\", $HTTP_USER_AGENT)): \n $os = \"Mac\";\n elseif (eregi(\"Linux\", $HTTP_USER_AGENT)): \n $os = \"Linux\";\n elseif (eregi(\"FreeBSD\", $HTTP_USER_AGENT)): \n $os = \"FreeBSD\";\n elseif (eregi(\"SunOS\", $HTTP_USER_AGENT)):\n $os = \"SunOS\";\n elseif (eregi(\"IRIX\", $HTTP_USER_AGENT)):\n $os = \"IRIX\";\n elseif (eregi(\"BeOS\", $HTTP_USER_AGENT)):\n $os = \"BeOS\";\n elseif (eregi(\"OS/2\", $HTTP_USER_AGENT)):\n $os = \"OS2\";\n elseif (eregi(\"AIX\", $HTTP_USER_AGENT)):\n $os = \"AIX\";\n else:\n $os = \"Other\";\n endif;\n \n $sql = \"select * from {$app[table][stats_os]}\n where os = '$os' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_os]} \n set counter = counter + 1\n where os = '$os' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_os]} (os, counter, year) values('$os',1,'$year')\";\n endif;\n\t\tdb::qry($sql);\n\t\n\t\t## by hour\n\t\t$sql = \"select * from {$app[table][stats_hour]}\n where jam = '$hour' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_hour]} \n set counter = counter + 1\n where jam = '$hour' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_hour]} (jam, counter, year) values('$hour',1,'$year')\";\n endif;\n\t\tdb::qry($sql);\n\t\t\n\t\t## by weekday\n\t\t$sql = \"select * from {$app[table][stats_week]}\n where hari = '$week' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_week]} \n set counter = counter + 1\n where hari = '$week' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_week]} (hari, counter, year) values('$week',1,'$year')\";\n endif;\n\t\tdb::qry($sql);\n\t\t\t\n ## by month\n $sql = \"select * from {$app[table][stats_month]}\n where bulan = '$month' and year = '$year'\";\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_month]} \n set counter = counter + 1\n where bulan = '$month' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_month]} (bulan, counter, year) values('$month',1,'$year')\";\n endif;\n\t\tdb::qry($sql);\n \t\n \t## by IP\n \t$ip = $REMOTE_ADDR;\n \t#$hostname = @gethostbyaddr($ip);\n\t\t$hostname = $ip;\n\t\t$sql = \"select * from {$app[table][stats_ip]} where ip = '$ip' and year = '$year'\";\n\t\t#echo $sql;exit;\n db::query($sql, $rs, $nr);\n if ($nr):\n $sql = \"update {$app[table][stats_ip]} \n set counter = counter + 1\n where ip = '$ip' and year = '$year'\";\n else:\n $sql = \"insert into {$app[table][stats_ip]} (ip, hostname, counter, year) values('$ip','$hostname', 1, '$year')\";\n endif;\n db::qry($sql);\n\t}", "public static function writeLog($data){\n\n $directory_path = WINEAC_DIR_PATH.self::DIRECTORY_LOGS;\n $file_path = WINEAC_DIR_PATH.self::DIRECTORY_LOGS.self::DIRECTORY_SEPARATOR.self::LOGS_FILE;\n\n if (!file_exists($directory_path)) {\n mkdir($directory_path, 0777, true);\n }\n\n if(!file_exists($file_path)){\n fopen($file_path , 'w');\n }\n\n if(is_array($data)) {\n $data = json_encode($data);\n }\n $file = fopen($file_path ,\"a\");\n fwrite($file, \"\\n\" . date('Y-m-d h:i:s') . \" :: \" . $data);\n fclose($file);\n\n }", "function publishLog() {\n\t\t$id = $this->current_log;\t\t\n\t\t$res = $this->query(\"SELECT event_id FROM $this->table_log WHERE id=$id\");\n\t\t$row = $res->fetch_assoc();\n\t\t$cal_id = explode(\",\",$row['event_id']);\n\t\t$calEvent = $this->calendar_instance->getEventDetails($row['event_id']);\n\t\t$topic = $calEvent['caption'];\n\t\t$year = $calEvent['year'];\n\t\t$slug = $calEvent['slug'];\n\t\t$url = $this->generateCoolURL(\"/$year/$slug\");\n\t\t$this->addToActivityLog(\"publiserte logg fra <a href=\\\"$url\\\">$topic</a>.\",false,\"major\");\n\t}", "function registerAudit($action, $type, $name) {\n $reference = $this->getReference(AUDIT . '/' . date(\"YmdHis\"));\n try {\n $reference->set([\n 'action' => $action,\n 'type' => $type,\n 'name' => $name,\n 'date' => date(\"d/m/Y\"),\n 'hour' => date(\"H:i:s\"),\n 'author' => $_SESSION[\"payload\"][\"email\"]\n ]);\n } catch (\\Kreait\\Firebase\\Exception\\DatabaseException $e) {\n }\n }", "public function audit($itemid, $itemname, $action)\n\t{\n\t\t#$userid = get_userid();\n\t\t#$username = $_SESSION[\"cms_admin_username\"];\n\t\taudit($itemid, $itemname, $action);\n\t}", "function WriteLog($log_file)\n{\n global $SPECIAL_VALUES;\n\n@\t$log_fp = fopen($log_file,\"a\");\n\n\tif (!$log_fp)\n\t\treturn;\n\t$date = gmdate(\"H:i:s d-M-y T\");\n\t$entry = $date.\":\".$SPECIAL_VALUES[\"email\"].\",\".\n\t\t\t$SPECIAL_VALUES[\"realname\"].\",\".$SPECIAL_VALUES[\"subject\"].\"\\n\";\n\tfwrite($log_fp,$entry);\n\tfclose($log_fp);\n}", "function logActivity($inputData){\n\tif (!file_exists('./activityLog/'))\n\t\tmkdir('./activityLog/');\n\t$fileHandle = fopen('./activityLog/data.log','a');\n\tfputs($fileHandle , trim($inputData).\"\\n\" , 1024 );\n\tfclose($fileHandle);\n}", "public static function trace($s)\n {\n if($_SERVER['SERVER_NAME'] == 'localhost')\n {\n ///NEED TO UPDATE PERMISSIONS TO BE ABLE TO WRITE FILES :(\n // open file\n if(self::$LOG_PATH == '') self::$LOG_PATH = self::$DEFAULT_PATH;\n $filePath = $_SERVER['DOCUMENT_ROOT'].'/utils/loggers/'.self::$LOG_PATH;\n\n $contents = file_get_contents($filePath);\n $mode = (strlen($contents) > self::LOG_LIMIT) ? 'w' : 'a';\n $fd = fopen($filePath, $mode) or die('could not open or create phplog file!');\n\n // write string\n fwrite($fd, $s . \"\\r\\n\");\n// fwrite($fd, 'count: '.strlen($contents) . \"\\r\\n\");\n\n // close file\n fclose($fd);\n }\n }", "function uLog($site_id, $up_id, $action, $info)\n{\n $toolkit = systemToolkit::getInstance();\n $updateLogMapper = $toolkit->getMapper('update', 'updateLog');\n\n $log = $updateLogMapper->create();\n $log->setSiteId($site_id);\n $log->setUpId($up_id);\n $log->setAction($action);\n $log->setInfo($info);\n $log->setTime(new SQLFunction(\"UNIX_TIMESTAMP\"));\n\n $updateLogMapper->save($log);\n}", "protected static function writeStatPage($a_wiki_id, $a_page_id, $a_values)\n\t{\n\t\t$primary = array(\n\t\t\t\"wiki_id\" => array(\"integer\", $a_wiki_id),\n\t\t\t\"page_id\" => array(\"integer\", $a_page_id),\n\t\t);\n\t\tself::writeData(\"wiki_stat_page\", $primary, $a_values);\n\t}", "function db_log($query,$executedto){\n\t//$temp = $_SERVER['DOCUMENT_ROOT'].\"\\\\pk\\\\errorlog\\\\\";\n\t//$default_folder = str_replace(\"/\",\"\\\\\",$temp);\t\n\t$file_name = \"./errorlog/querylog.html\";//$default_folder.\"querylog.html\";\n\t$file_handler = fopen($file_name,\"a\");\n\t$serializedPost = serialize($_POST);\n\t$message = \"<br><i>executed at: \".date('l jS \\of F Y h:i:s A').\" details: \".$executedto.\"</i><br><b>\".$query.\" </b>\".$serializedPost.\"<br>\";\t\n\tfwrite($file_handler,$message);\n\tfclose($file_handler);\n}", "function audit($username,$action,$object_name){\n\trequire_once('../conf/config.php');\n\t//Connect to mysql server\n\t$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);\n\tif(!$link){\n\t\tdie('Failed to connect to server: ' . mysql_error());\n\t}\n\t//Select database\n\t$db = mysql_select_db(DB_DATABASE);\n\tif(!$db){\n\t\tdie(\"Unable to select database\");\n\t}\n\t$query = \"INSERT into audit_log( username,date_field,time_field,action,object_name)\n\tvalues ('$username',curdate(),curtime(),'$action','$object_name')\";\n\t//echo \"<pre>$insert</pre>\\n\";\n\t$result=mysql_query($query) or die(\"<b>A fatal MySQL error occured</b>.\\n<br />Query: \" . $query . \n\t\t\"<br />\\nError: (\" . mysql_errno() . \") \" . mysql_error());\n}", "function owa_newBlogActionTracker($blog_id, $user_id, $domain, $path, $site_id) {\r\n\r\n\t$owa = owa_getInstance();\r\n\t$owa->trackAction('wordpress', 'Blog Created', $domain);\r\n}", "public function putLog(string $packet, string $url): void\n {\n $fp = fopen($_SERVER['DOCUMENT_ROOT'].'/log/packets_1.x.dump', 'a+');\n fwrite($fp, $url.\"?p=\".$packet.\"\\n\");\n fclose($fp);\n }", "protected function writeSitemap()\n {\n $this->mOutput->writeln(__METHOD__);\n\n //generate the other sitemaps\n $lRenderParams = array();\n $lRenderParams[\"urls\"] = $this->mCurrentSitemap;\n $lRenderParams[\"serverName\"] = \"http://\" . $this->mServerName;\n $lResult = $this->getContainer()->get('templating')->render('WegeooWebsiteBundle:Default:sitemap.xml.twig', $lRenderParams);\n //$output->writeln($lResult);\n\n $lSitemapPath = sprintf(\"%s/sitemap%s.xml\" , self::SITEMAP_DIRECTORY , $this->mNumSitemaps++);\n $lSuccess = file_put_contents($lSitemapPath , $lResult);\n if ( $lSuccess !== FALSE)\n {\n $this->mOutput->writeln(sprintf(\"Sitemap '%s' Successfully Created\" , basename($lSitemapPath)));\n }else{\n $this->mOutput->writeln(\"ERROR: Sitemapindex '%s' not Created\" , basename($lSitemapPath));\n }\n }", "function addToAuditLog($jsonArray, $oldinfo, $id, $type ){\n\t\t\t\n\t\t\t$array = array(); \n\n\t\t\tforeach ($jsonArray as $key => $value) {\n\n\t\t\t\t\t$k = $key;\n\t\t\t\t\tif ($k == 'Reference') {continue; } //skip the reference\n\t\t\t\t\tif ($k == 'Comments') {continue; } //skip the reference\n\t\t\t\t\tif ($k == 'Name'){ $k = 'FullName'; } //cuz Name is stored as FullName in db\n\n\t\t\t\t\t//compare the json assoc array value and the old db value\n\t\t\t\t\tif ($oldinfo[0][$k] != $value){\n\t\t\t\t\t\t$delta = new DELTA();\n\n\t\t\t\t\t\t$delta->FieldName = $k;\n\t\t\t\t\t\t$delta->OldValue = $oldinfo[0][$k];\n\t\t\t\t\t\t$delta->NewValue = $value;\n\n\t\t\t\t\t\tarray_push($array, $delta);\n\n\t\t\t\t\t}\n\t\t\t}\n\n\n\t\t\tif (count($array) > 0 ){\n\t\t\t\t//create the database object\n\t\t\t\t$database = createDb();\n\n\t\t\t\t$database->insert(\"AuditLog\", [\n\t\t\t\t\t\"ChangeText\" => json_encode($array),\n\t\t\t\t\t\"Type\"\t\t\t=>\t$type,\n\t\t\t\t\t\"Id\"\t\t\t=>\t$id\n\t\t\t\t]);\n\t\t\t}\n\n\t}", "function inbound_record_log( $title = '', $message = '', $rule_id = 0, $job_id = '', $type = null ) {\n\tglobal $inbound_automation_logs;\n\t$inbound_automation_logs->add( $title, $message, $rule_id, $job_id, $type );\n\n}", "function atkWriteLog($text)\n{\n\tif (atkconfig(\"debug\") > 0 && atkconfig(\"debuglog\"))\n\t{\n\t\tatkWriteToFile($text, atkconfig(\"debuglog\"));\n\t}\n}", "protected function record($payload)\n {\n $this->client->breadcrumbs->record(array_merge(array(\n 'data' => null,\n 'level' => 'info',\n ), $payload));\n }", "function logThisToTxtFile($logENID,$action)\n{\n\t$detect = new Mobile_Detect();\n\t\n\t$user_browser=user_browser();\n\t$user_os=user_os();\n\t$user_ip=getRealIpAddr();\n\t\t\t\t\n\tif ($detect->isMobile())\n\t{\n\t\t// mobile content\n\t\t$device='Mobile';\n\t} \t\t\t\t\n\telse\n\t{\n\t\t// other content for desktops\n\t\t$device='Desktop';\n\t}\n\tdate_default_timezone_set('UTC');\t\n\t$logDateTime= date('Y-m-d H:i:s');\t\t\n\t$log_this = 'EN client '.$logENID.': '.$action.' on UTC '.$logDateTime.' from '.$user_ip.' using '.$device.' through browser '.$user_browser.' ,OS: '.$user_os;\n\t$filename= 'ENLog_'.date('MY').'.txt';\n \t$myfile = file_put_contents($filename, $log_this.PHP_EOL , FILE_APPEND);\t\n\n}", "function auditLog($msg) {\n global $DB;\n $id = 0;\n if (isset($_SESSION['user'])) {\n $id = $_SESSION['user']['id'];\n }\n $data = array(\"id\" => $id, \"call\" => $msg);\n $ins = $DB->prepare(\"INSERT INTO AuditLog VALUES(NULL, NOW(), :id, :call)\");\n $ins->execute($data);\n}", "public function write_log($operation, $info_to_log){}", "function insertBugTrace($UUID, $data, $debugInfo) {\n\tob_start();\n\t//$firephp = FirePHP::getInstance(true);\n\t//$firephp->log(\"insertBugTrace entered.\");\n\t$time = time();\n\t$fullTrace = \"$data\\n<!-- $debugInfo -->\";\n\t$filename = \"bugtraces/$time\" . \"_\" . $UUID . \".xml\";\n\t// $firephp->log(\"putting bug trace ($filename) to disk: $fullTrace\");\n\t//$firephp->log(\"putting bug trace ($filename) to disk.\");\n file_put_contents($filename, $fullTrace);\n}", "public function auditTrail(Request $request)\n {\n \n if ( !isset($request->dateRange) ) {\n\n return redirect('/reports');\n\n } else {\n\n $page = [\n 'title' => 'Audit Trail Reports',\n ];\n \n $dates = explode( ' - ', $request->dateRange );\n $start_date = Carbon::parse( $dates[ 0 ] ); //date range - start\n $end_date = Carbon::parse( $dates[ 1 ]. '23:59:59' );//date range - end\n $dateTime = Carbon::now();\n $dateTime = Carbon::parse( $dateTime )->format( 'F d, Y - h:i:s A' );\n \n $user = Auth::user();\n \n $counter = 0;\n \n //normal user\n if ( $user->user_type == 0 ) {\n \n //used to display the office name in report.\n $office_name = Office::where( 'id', $user->office_id )->value( 'office_name' );\n \n //get all the audit trails from the database of an office.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->where('tbl_audit_trails.user_id', $user->id)\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n $allrecords = array();\n foreach ( $auditTrail_reports as $auditTrail_report ) {\n \n $allrecords[] = array(\n \"id\" => $auditTrail_report->auditTrail_id,\n \"action\" => $auditTrail_report->action,\n \"created_at\" => Carbon::parse( $auditTrail_report->auditTrail_date )->format('m-d-Y | h:i:s a'),\n \"email\" => $auditTrail_report->email,\n \"office_code\" => $auditTrail_report->office_code,\n );\n \n }\n \n //date range - start\n $start_date = Carbon::parse( $dates[ 0 ] )->format('F d, Y');\n \n //date range - end\n $end_date = Carbon::parse( $dates[ 1 ] )->format('F d, Y');\n \n return view( 'reports.auditTrail_report', compact( 'user', 'page', 'allrecords', 'dateTime', 'office_name', 'start_date', 'end_date' ) );\n \n } elseif ( $user->user_type == 1 ) {\n //super user\n \n if ( $request->office == null ) {\n \n $office_name = 'ALL OFFICES';\n \n //get all the audit trails from the database of all offices.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n \n } else {\n \n //used to display the office name in report.\n $office_name = Office::where('id', $request->office)->value( 'office_name' );\n \n //get all the audit trails from the database of selected office.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->where('tbl_offices.id', $request->office)\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n }\n \n $allrecords = array();\n foreach ( $auditTrail_reports as $auditTrail_report ) {\n \n $allrecords[] = array(\n \"id\" => $auditTrail_report->auditTrail_id,\n \"action\" => $auditTrail_report->action,\n \"created_at\" => Carbon::parse( $auditTrail_report->auditTrail_date )->format('m-d-Y | h:i:s a'),\n \"email\" => $auditTrail_report->email,\n \"office_code\" => $auditTrail_report->office_code,\n );\n \n }\n \n $start_date = Carbon::parse( $dates[ 0 ] )->format('F d, Y');\n \n $end_date = Carbon::parse( $dates[ 1 ] )->format('F d, Y');\n \n $ifOfficeSelected = $request->office;\n \n return view( 'reports.auditTrail_report', compact( 'user', 'page', 'allrecords', 'dateTime', 'office_name', 'start_date', 'end_date', 'ifOfficeSelected' ) );\n \n } \n\n }\n \n }", "function WriteLog($functionName,$content)\r\n{\r\n\t// $myFile = LOG_FILE;\r\n\t// $fh = fopen($myFile, 'a') or die(\"can't open file\");\r\n\t// $stringData = $today.\" \\t\".$functionName.\"\\t\".$content.\"\\n\\n\";\r\n\t// fwrite($fh, $stringData);\r\n\t// fclose($fh);\r\n}", "function page_add_page($pagerec) {\n return page_edit_page($pagerec, 0, null, null);\n}", "function write_log($log) {\n $orderLog = new Logger('order');\n $orderLog->pushHandler(new StreamHandler(storage_path('logs/frontend.log')), Logger::INFO);\n $orderLog->info('OrderLog', $log);\n}", "private function writeMigration($name, $eventObjectTable, $actionTiming, $event)\n {\n $file = pathinfo($this->creator->write(\n $name,\n $eventObjectTable,\n $actionTiming,\n $event,\n $this->getMigrationPath()\n ), PATHINFO_FILENAME);\n\n $this->line(\"<info>Created Migration:</info> {$file}\");\n }", "public function addPage(Page $page): void\n {\n if (null === ($breadcrumb = $this->getPageBreadcrumb($page))) {\n return;\n }\n\n $nbEntries = count($breadcrumb);\n $parentEntry = $this;\n\n // Summary order\n $summaryOrder = $page->getMeta('summary-order', '');\n !is_array($summaryOrder) && $summaryOrder = explode(';', (string)$summaryOrder);\n array_walk($summaryOrder, fn(&$value) => $value = (int)trim($value));\n array_walk($summaryOrder, fn(&$value) => $value = empty($value) ? null : $value);\n $summaryOrder = array_pad($summaryOrder, 0 - $nbEntries, null);\n $summaryOrder = array_slice($summaryOrder, 0, $nbEntries);\n\n for ($i = 0; $i < $nbEntries; $i++) {\n $entry = $parentEntry->getEntryByTitle($breadcrumb[$i]);\n\n // Create if not exists or it's the last of list\n if (null === $entry) {\n $entry = new Entry($breadcrumb[$i]);\n $parentEntry->addEntry($entry);\n }\n\n // Define url and order if it's last element\n if ($i + 1 == $nbEntries) {\n $entryVisible = (bool)$page->getMeta('summary-visible', true);\n $entry->setPath($page->getPath());\n $entry->setVisible($entryVisible, $entryVisible);\n }\n\n if (isset($summaryOrder[$i])) {\n $entry->setOrder($summaryOrder[$i]);\n }\n\n $parentEntry = $entry;\n }\n\n $this->orderEntries();\n }", "function to_log($vvod)\n{\n $date = date(\"Y_m_d\");\n $filename = \"logs/log_\".$date.\".txt\";\n $string = date(\"d.m.Y H:i:s\").\" => $vvod\".\"\\n\";\n $f = fopen($filename,\"a+\");\n fwrite($f,$string);\n fclose($f);\n}", "protected function trackAdd($item, $key) {\n\t\t/** @var RepeaterPage $item */\n\t\t$item->traversalPages($this);\n\t\tparent::trackAdd($item, $key);\n\t}", "function customcert_add_page($data) {\n global $DB;\n\n // Set the page number to 1 to begin with.\n $pagenumber = 1;\n // Get the max page number.\n $sql = \"SELECT MAX(pagenumber) as maxpage\n FROM {customcert_pages} cp\n WHERE cp.customcertid = :customcertid\";\n if ($maxpage = $DB->get_record_sql($sql, array('customcertid' => $data->id))) {\n $pagenumber = $maxpage->maxpage + 1;\n }\n\n // Store time in a variable.\n $time = time();\n\n // New page creation.\n $page = new stdClass();\n $page->customcertid = $data->id;\n $page->width = '210';\n $page->height = '297';\n $page->pagenumber = $pagenumber;\n $page->timecreated = $time;\n $page->timemodified = $time;\n\n // Insert the page.\n $DB->insert_record('customcert_pages', $page);\n}", "public function addNewPage($data) \n {\n // Create new Page entity.\n $page = new Page();\n $page->setTitle($data['title']);\n $page->setContent($data['content']);\n $page->setStatus($data['status']);\n $currentDate = date('Y-m-d H:i:s');\n $page->setDateCreated($currentDate); \n \n // Add the entity to entity manager.\n $this->entityManager->persist($page);\n \n // Add tags to page\n $this->addTagsToPage($data['tags'], $page);\n \n // Apply changes to database.\n $this->entityManager->flush();\n }", "function log_to_file($message) {\n $fh = fopen('superlinks_log.txt', 'a') or die(\"can't open file\");\n fwrite($fh, $message . \"\\n\");\n fclose($fh);\n }", "public function addLog($tableName) {\n\t\t$scrapeLog = new \\model\\ScrapeLog(0, $tableName, 0, date('Y-m-d H:i:s'), null);\n\t\t\n\t\t// add() returns inserted id, which is added to the ScrapeLog object before returning it.\n\t\t$scrapeLogId = $this->scrapeLogRepository->add($scrapeLog);\n\t\t$scrapeLog->setId($scrapeLogId);\n\t\t\n\t\treturn $scrapeLog;\n\t}", "function WriteLogEss($log) {\r\n//echo $log.'<br/>';\r\n/*\r\n $datum=Date('d.m.Y H:i:s');\r\n $tmp = '/tmp/logESS.txt';\r\n $text = $datum . '-'.$log.chr(10);\r\n $fp = fopen($tmp, 'a');\r\n fwrite($fp, $text);\r\n fclose($fp);\r\n*/\r\n}", "public static function debugTrail() {}", "function logEvent($message)\n\t{\n\t\tdate_default_timezone_set ( \"America/Chicago\" );\n\t\t$time = date( \"Y-m-d H:i:s\");\n\t\t$fp = fopen('files/log.txt', 'a');\n\t\tfwrite($fp, $time.\"-- \");\n\t\tfwrite($fp, $message);\n\t\tfwrite($fp, \"\\n\");\n\t\tfclose($fp);\n\t}" ]
[ "0.6219081", "0.61986804", "0.61795044", "0.6126687", "0.6098565", "0.60865706", "0.6049993", "0.6015703", "0.59356296", "0.5805402", "0.5776123", "0.57185715", "0.553756", "0.55358005", "0.5516143", "0.54683465", "0.54660666", "0.54451233", "0.54080117", "0.539782", "0.5395989", "0.53906816", "0.53739125", "0.5331114", "0.5300017", "0.52737653", "0.52372336", "0.52358586", "0.521582", "0.51994574", "0.5178834", "0.5166868", "0.51649547", "0.51643765", "0.51479805", "0.51357454", "0.51343465", "0.51024866", "0.5099808", "0.5092463", "0.50911", "0.5066811", "0.5061088", "0.5054359", "0.5038001", "0.50378746", "0.5037088", "0.5036765", "0.5028679", "0.49965307", "0.49917006", "0.49880373", "0.49866173", "0.49796015", "0.49725005", "0.49720335", "0.49654418", "0.4958184", "0.4943024", "0.49363708", "0.4931902", "0.49286306", "0.4924212", "0.49226612", "0.49125805", "0.49095285", "0.4909081", "0.49087378", "0.49040413", "0.48976043", "0.4895658", "0.4895452", "0.48891822", "0.48806387", "0.48760527", "0.4858445", "0.48566347", "0.48559955", "0.4851125", "0.48444203", "0.4843893", "0.48431322", "0.48429552", "0.48398224", "0.48333845", "0.483013", "0.48195466", "0.48186836", "0.48181683", "0.48173964", "0.48153836", "0.48151225", "0.48107925", "0.47935185", "0.47895637", "0.47836655", "0.47832373", "0.47797337", "0.47757778", "0.4770024" ]
0.6100122
4
Write Audit Trail (edit page)
function WriteAuditTrailOnEdit(&$rsold, &$rsnew) { global $Language; if (!$this->AuditTrailOnEdit) return; $table = 't_gaji_detail'; // Get key value $key = ""; if ($key <> "") $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"]; $key .= $rsold['gjd_id']; // Write Audit Trail $dt = ew_StdCurrentDateTime(); $id = ew_ScriptName(); $usr = CurrentUserName(); foreach (array_keys($rsnew) as $fldname) { if (array_key_exists($fldname, $this->fields) && array_key_exists($fldname, $rsold) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields if ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field $modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0)); } else { $modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]); } if ($modified) { if ($this->fields[$fldname]->FldHtmlTag == "PASSWORD") { // Password Field $oldvalue = $Language->Phrase("PasswordMask"); $newvalue = $Language->Phrase("PasswordMask"); } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field if (EW_AUDIT_TRAIL_TO_DATABASE) { $oldvalue = $rsold[$fldname]; $newvalue = $rsnew[$fldname]; } else { $oldvalue = "[MEMO]"; $newvalue = "[MEMO]"; } } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field $oldvalue = "[XML]"; $newvalue = "[XML]"; } else { $oldvalue = $rsold[$fldname]; $newvalue = $rsnew[$fldname]; } ew_WriteAuditTrail("log", $dt, $id, $usr, "U", $table, $fldname, $key, $oldvalue, $newvalue); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'pase_establecimiento';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Id_Pase'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 'user';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t $usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\r\n\t\tglobal $Language;\r\n\t\tif (!$this->AuditTrailOnEdit) return;\r\n\t\t$table = 'servidor_escolar';\r\n\r\n\t\t// Get key value\r\n\t\t$key = \"\";\r\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\r\n\t\t$key .= $rsold['Cue'];\r\n\r\n\t\t// Write Audit Trail\r\n\t\t$dt = ew_StdCurrentDateTime();\r\n\t\t$id = ew_ScriptName();\r\n\t\t$usr = CurrentUserID();\r\n\t\tforeach (array_keys($rsnew) as $fldname) {\r\n\t\t\tif ($this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\r\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\r\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\r\n\t\t\t\t}\r\n\t\t\t\tif ($modified) {\r\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\r\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\r\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\r\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\r\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\r\n\t\t\t\t\t\t$newvalue = \"[XML]\";\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\r\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "function update_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::update($this->id, 'siis', $parameter_array);\n }", "function insert_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('siis', $parameter_array);\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnAdd) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rs['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$usr = CurrentUserName();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") {\n\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\"); // Password Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {\n\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$newvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$newvalue = \"[MEMO]\"; // Memo Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {\n\t\t\t\t\t$newvalue = \"[XML]\"; // XML Field\n\t\t\t\t} else {\n\t\t\t\t\t$newvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"A\", $table, $fldname, $key, \"\", $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'mst_vendor';\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = $typ;\n\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, \"\", \"\", \"\", \"\");\n\t}", "public function actionTrail()\n {\n $searchModel = new AuditTrailSearch;\n $dataProvider = $searchModel->search(Yii::$app->request->get());\n\n return $this->render('trail', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $tbl_profile;\n\t\t$table = 'tbl_profile';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= UP_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['facultyprofile_ID'];\n\n\t\t// Write Audit Trail\n\t\t$dt = up_StdCurrentDateTime();\n\t\t$id = up_ScriptName();\n\t $curUser = CurrentUserID();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $tbl_profile->fields) && $tbl_profile->fields[$fldname]->FldDataType <> UP_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_MEMO) {\n\t\t\t\t\tif (UP_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tup_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'tutores';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 't_gaji_detail';\n\t\t$usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'pase_establecimiento';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnDelete) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rs['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$curUser = CurrentUserName();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") {\n\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\"); // Password Field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) {\n\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "function EventLog($page,$action,$orignal_value,$new_value)\n{\n\t\t$email = $_SESSION['user_email'];\n\t\t$ipaddress = getUserIP();\n\t\t\n\t\t$data = sprintf(\"%s,%s,%s,%s,%s\" . PHP_EOL, $ipaddress,date(\"F j Y g:i a\"), $email, $page, $action);\n\t\t\n\t\t//file_put_contents($_SERVER['DOCUMENT_ROOT'] .'/log.txt', $data, FILE_APPEND);\t\t\n\t\tfile_put_contents('log.txt', $data, FILE_APPEND);\t\t\t\n\t\t\n\t\t\n}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'servidor_escolar';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'user';\n\t $usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function editLog($logId,$page) {\n\n $data['page'] = $page;\n\n if (!$this->session->userType) {\n redirect('/');\n }\n\n // GET ALL LAB NAMES WITH ID\n $data['labs'] = $this->labs_model->get_all_labs();\n // GET ALL COURSES\n $data['courses'] = $this->labs_model->get_all_courses();\n // GET ALL PURPOSES\n $data['purposes'] = $this->labs_model->get_all_purposes();\n\n \n $data['log'] = $this->logs_model->get_log($logId);\n $data['log']['checkIn'] = date_format(date_create($data['log']['checkIn']), \"Y-m-d\\TH:i\");\n if (isset($data['log']['checkOut'])) {\n $data['log']['checkOut'] = date_format(date_create($data['log']['checkOut']), \"Y-m-d\\TH:i\"); \n }\n \n $this->load->view('templates/header');\n $this->load->view('templates/navigation');\n $this->load->view('logs/edit_log', $data);\n $this->load->view('templates/footer');\n }", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'tbl_profile';\n\t $usr = CurrentUserID();\n\t\tup_WriteAuditTrail(\"log\", up_StdCurrentDateTime(), up_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function audit($itemid, $itemname, $action)\n\t{\n\t\t#$userid = get_userid();\n\t\t#$username = $_SESSION[\"cms_admin_username\"];\n\t\taudit($itemid, $itemname, $action);\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'scholarship_package';\n\t $usr = CurrentUserID();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function audit_log()\n\t{\n\t\tif($this->session->userdata('logged_in')==\"\")\n\t\t\theader(\"Location: \".$this->config->base_url().\"Login\");\n\t\t\t$this->cache_update();\n\t\t\t$this->check_privilege(14);\n\t\t//mandatory\n\t\t$this->load->driver('cache',array('adapter' => 'file'));\n\t\t$u_type = array('var'=>$this->cache->get('Active_status'.$this->session->userdata('loginid'))['user_type_id_fk']);\n\t\t$this->load->model('profile_model');\n\t\t$noti = array('meeting'=>$this->profile_model->meeting_notification());\n\t\t$u_type['notification'] = $noti;\n\t\t$u_type['noti1']=$this->profile_model->custom_notification();\n\t\t$this->load->view('dashboard/navbar',$u_type);\n\t\t$da = $this->profile_model->get_profile_info($this->session->userdata('uid'));\n\t\t$this->load->view('dashboard/sidebar',$da);\n\t// ends here\n\t\t$this->load->model('Sup_Admin');\n\t\t$this->load->model('Crud_model');\n\t\t$data['audit']=$this->Sup_Admin->get_user_details();\n\t\t$data['login_as']=array();\n\t\tforeach ($data['audit'] as $key) \n\t\t{\n\t\t\tarray_push($data['login_as'],$this->Sup_Admin->get_log_id($key['login_id_fk']));\n\t\t}\n\t\t$this->load->view('audit_view',$data);\n\t\t$this->db->trans_off();\n\t \t$this->db->trans_strict(FALSE);\n\t\t$this->db->trans_start();\n\t\t$this->Crud_model->audit_upload($this->session->userdata('loginid'),\n\t\t\t\t\t\t\t current_url(),\n\t\t\t\t\t\t\t 'Audit Log Page Visited',\n\t\t\t\t\t\t\t 'Custom message here');\n\t\t$this->db->trans_complete();\n\t\t$this->load->view('dashboard/footer');\n\n\t}", "private function audit($operation, $details) {\r\n $columns = array(\r\n \"#timestamp\" => \"STR_TO_DATE('\" . date('d/m/Y H:i:s') . \"','%d/%m/%Y %H:%i:%s')\",\r\n \"username\" => $_SESSION['_ebb_username'],\r\n \"operation\" => $operation,\r\n \"details\" => $details\r\n );\r\n\r\n $this->database->insert(\"tb_audit\", $columns);\r\n }", "function insert_audit_trail($params=array()) {\n\t\tif (empty($params)) return false;\n\t\t$required_params = array('asset', 'asset_id', 'action_taken');\n\t\tforeach ($required_params as $param) {\n\t\t\tif (!isset($params[$param])) return false;\n\t\t}\n\t\t$model = &NModel::factory($this->name);\n\t\t// apply fields in the model\n\t\t$fields = $model->fields();\n\t\tforeach ($fields as $field) {\n\t\t\t$model->$field = isset($params[$field])?$params[$field]:null;\n\t\t}\n\t\t$model->user_id = $this->website_user_id;\n\t\t$model->ip = NServer::env('REMOTE_ADDR');\n\t\tif (in_array('cms_created', $fields)) {\n\t\t\t$model->cms_created = $model->now();\n\t\t}\n\t\tif (in_array('cms_modified', $fields)) {\n\t\t\t$model->cms_modified = $model->now();\n\t\t}\n\t\t// set the user id if it's applicable and available\n\t\tif (in_array('cms_modified_by_user', $fields)) {\n\t\t\t$model->cms_modified_by_user = $this->website_user_id;\n\t\t}\n\t\t$model->insert();\n\t}", "protected function audit_record($action = false,$area = false,$id = false,$data = false){\n\t\treturn;\n\t}", "public function log_activity() {\n \n \n $CI =& get_instance();\n $CI->load->library('audit_trail');\n // Start off with the session stuff we know\n $data = array();\n $data['user_id'] = $CI->session->userdata('user_id');\n \n // Next up, we want to know what page we're on, use the router class\n $data['section'] = $CI->router->class;\n $data['action'] = $CI->router->method;\n \n // Lastly, we need to know when this is happening\n $data['when'] = date('Y-m-d G:i:s');\n \n // We don't need it, but we'll log the URI just in case\n $data['uri'] = uri_string();\n $path = realpath(APPPATH);\n // And write it to the database\n if($CI->router->method!='checkPortal' && $CI->router->method!='getAttendanceUpdates' && $CI->router->method!='getAverageDailyAttendance'):\n $CI->audit_trail->lfile($path.'/modules/logs/'.$CI->session->userdata('user_id').'.txt');\n $CI->audit_trail->lwrite($CI->session->userdata('name').' access '.$CI->router->method.' through '. uri_string().'.' , 'TRACE');\n endif;\n }", "public static function auditAccess() {\n\t\t\t$memberid = getLoggedOnMemberID();\n\t\t\t$auditid = $_SESSION['SESS_LOGIN_AUDIT'];\n\n\t\t\t$sql = \"UPDATE {$_SESSION['DB_PREFIX']}members SET \n\t\t\t\t\tlastaccessdate = NOW(), \n\t\t\t\t\tmetamodifieddate = NOW(), \n\t\t\t\t\tmetamodifieduserid = $memberid\n\t\t\t\t\tWHERE member_id = $memberid\";\n\t\t\t$result = mysql_query($sql);\n\t\t\t\n\t\t\t$sql = \"UPDATE {$_SESSION['DB_PREFIX']}loginaudit SET \n\t\t\t\t\ttimeoff = NOW(), \n\t\t\t\t\tmetamodifieddate = NOW(), \n\t\t\t\t\tmetamodifieduserid = $memberid\n\t\t\t\t\tWHERE id = $auditid\";\n\t\t\t$result = mysql_query($sql);\n\t\t}", "public function profileActivityLogAction()\r\n {\r\n $em = $this->getDoctrine()->getEntityManager();\r\n\r\n $tbUserActivities = $em->getRepository('YilinkerCoreBundle:UserActivityHistory');\r\n $user = $this->getUser();\r\n $timeline = $tbUserActivities->getTimelinedActivities($user->getId());\r\n\r\n $data = compact('timeline');\r\n\r\n return $this->render('YilinkerFrontendBundle:Profile:profile_activity_log.html.twig', $data);\r\n }", "function audit($username,$action,$object_name){\n\trequire_once('../conf/config.php');\n\t//Connect to mysql server\n\t$link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD);\n\tif(!$link){\n\t\tdie('Failed to connect to server: ' . mysql_error());\n\t}\n\t//Select database\n\t$db = mysql_select_db(DB_DATABASE);\n\tif(!$db){\n\t\tdie(\"Unable to select database\");\n\t}\n\t$query = \"INSERT into audit_log( username,date_field,time_field,action,object_name)\n\tvalues ('$username',curdate(),curtime(),'$action','$object_name')\";\n\t//echo \"<pre>$insert</pre>\\n\";\n\t$result=mysql_query($query) or die(\"<b>A fatal MySQL error occured</b>.\\n<br />Query: \" . $query . \n\t\t\"<br />\\nError: (\" . mysql_errno() . \") \" . mysql_error());\n}", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "protected function saveData()\n {\n $this->beforeSave();\n\n $changed = $this->setReceptionCode(\n $this->formData[$this->receptionCodeItem],\n $this->loader->getCurrentUser()->getUserId()\n );\n\n $this->afterSave($changed);\n\n $this->accesslog->logChange($this->request, null, $this->formData);\n }", "public static function updateAuditLog($ticketID, $remarks=null) {\n DB::run(\"INSERT INTO trouble_ticket_audits (user_id, ticket_id, change_description, date) VALUES (?,?,?,GETDATE())\", [$_SESSION['id'], $ticketID, $remarks]);\n }", "public function addAudit(Audit $audit);", "function uLog($site_id, $up_id, $action, $info)\n{\n $toolkit = systemToolkit::getInstance();\n $updateLogMapper = $toolkit->getMapper('update', 'updateLog');\n\n $log = $updateLogMapper->create();\n $log->setSiteId($site_id);\n $log->setUpId($up_id);\n $log->setAction($action);\n $log->setInfo($info);\n $log->setTime(new SQLFunction(\"UNIX_TIMESTAMP\"));\n\n $updateLogMapper->save($log);\n}", "function set_audit_trail_by_Id($log_id)\n {\n $parameter_array = array();\n \n array_push($parameter_array, array(\n 'and',\n 'id',\n '=',\n $log_id\n ));\n \n $output = $this->result('i', $parameter_array);\n $row = mysqli_fetch_assoc($output);\n \n $this->id = $row['id'];\n $this->form_type = $row['form_type'];\n $this->target_id = $row['target_id'];\n $this->user_id = $row['user_id'];\n $this->action = $row['action'];\n $this->action_date_time = $row['action_date_time'];\n }", "public function edit(AuditQuestion $auditQuestion)\n {\n //\n }", "function ilog(){\r\n\t\tif($this->input['action'] != 'mylog'){\r\n\t\t\tif($this->vars['logSavePage'] == 1) $logSavePage = addslashes(serialize($this->page));\r\n\t\t\t// user log\r\n\t\t\t$this->DB->query(\"\r\n\t\t\t\tINSERT INTO `log` (`userid` , `title` , `area` , `module` , `action` , `id` , `ip` , `kinput` , `page` , `dateline`)\r\n\t\t\t\tVALUES (\r\n\t\t\t\t'\".$this->user['userid'].\"', '\".$this->page['title'].\"', '\".$this->vars['area'].\"', '\".$this->input['module'].\"', '\".$this->input['action'].\"', '\".$this->iif($this->input[$this->input['module'].'id'] > 0, $this->input[$this->input['module'].'id'], 0).\"', '\".IP.\"', '\".serialize($this->input).\"', '\".$logSavePage.\"', '\".TIMENOW.\"'\r\n\t\t\t\t)\r\n\t\t\t\");\r\n\t\t}\r\n\t}", "public function saveAction()\n {\n\n if (!$this->request->isPost()) {\n $this->dispatcher->forward(array(\n 'controller' => \"export_yy_logs\",\n 'action' => 'index'\n ));\n\n return;\n }\n\n $id = $this->request->getPost(\"id\");\n $export_yy_log = ExportYyLogs::findFirstByid($id);\n\n if (!$export_yy_log) {\n $this->flash->error(\"移出記録が見つからなくなりました。\" . $id);\n\n $this->dispatcher->forward(array(\n 'controller' => \"export_yy_logs\",\n 'action' => 'index'\n ));\n\n return;\n }\n\n if ($export_yy_log->updated !== $this->request->getPost(\"updated\")) {\n $this->flash->error(\"他のプロセスから移出記録が変更されたため更新を中止しました。\"\n . $id . \",uid=\" . $export_yy_log->kousin_user_id . \" tb=\" . $export_yy_log->updated .\" pt=\" . $this->request->getPost(\"updated\"));\n\n $this->dispatcher->forward(array(\n 'controller' => \"export_yy_logs\",\n 'action' => 'edit',\n 'params' => array($id)\n ));\n\n return;\n }\n\n $post_flds = [];\n $post_flds = [\"cd\",\n \"name\",\n \"time_from\",\n \"time_to\",\n \"updated\",\n ];\n \n\n $thisPost=[]; // カンマ編集を消すとか日付編集0000-00-00を入れるとか$thisPost[]で行う\n $chg_flg = 0;\n foreach ($post_flds as $post_fld) {\n if ((array_key_exists($post_fld, $thisPost)?$thisPost[$post_fld]:$this->request->getPost($post_fld)) !== $export_yy_log->$post_fld) {\n $chg_flg = 1;\n break;\n }\n }\n if ($chg_flg === 0) {\n $this->flash->error(\"変更がありません。\" . $id);\n\n $this->dispatcher->forward(array(\n \"controller\" => \"export_yy_logs\",\n \"action\" => \"edit\",\n \"params\" => array($export_yy_log->id)\n ));\n\n return;\n }\n\n $this->_bakOut($export_yy_log);\n\n foreach ($post_flds as $post_fld) {\n $export_yy_log->$post_fld = array_key_exists($post_fld, $thisPost)?$thisPost[$post_fld]:$this->request->getPost($post_fld);\n }\n\n if (!$export_yy_log->save()) {\n\n foreach ($export_yy_log->getMessages() as $message) {\n $this->flash->error($message);\n }\n\n $this->dispatcher->forward(array(\n 'controller' => \"export_yy_logs\",\n 'action' => 'edit',\n 'params' => array($id)\n ));\n\n return;\n }\n\n $this->flash->success(\"移出記録の情報を更新しました。\");\n\n $this->dispatcher->forward(array(\n 'controller' => \"export_yy_logs\",\n 'action' => 'edit',\n 'params' => array($export_yy_log->id)\n ));\n }", "function appendTableChangeFile($tableName, $alterations, $alteration_descriptions)\n{\n\n static $overwrite = true;\n if($overwrite){\n $writemode = 'w';\n $overwrite = false;\n $content = \"<?php \\$alterations_moduleID = '{$this->ModuleID}';\\n\";\n $content .= \"\\$alterations = array();\\n\";\n $content .= \"\\$alteration_descriptions = array();?>\\n\";\n } else {\n $writemode = 'a';\n $content = \"\\n\";\n }\n\n $outFile = GEN_LOG_PATH . '/'.$this->ModuleID.'_dbChanges.gen';\n\n $content .= \"<?php \\$alterations['$tableName'] = unserialize('\".escapeSerialize($alterations).\"');\\n\";\n $content .= \"\\$alteration_descriptions['$tableName'] = unserialize('\".escapeSerialize($alteration_descriptions).\"');?>\\n\";\n\n $fh = fopen($outFile, $writemode);\n fwrite($fh, $content);\n fclose($fh);\n\n return true;\n}", "public function edit(inv_logs $inv_logs)\n {\n //\n }", "public function log_activity() {\n\t\t$data = array();\n\t\t$data['page'] = current_url();\n\t\t$data['ip_address'] = $this->_ci->input->ip_address();\n\t\t$data['user_agent'] = $this->_ci->agent->agent_string(); \n\t\t$data['request_method'] = $this->_ci->input->server('REQUEST_METHOD');\n\t\t$data['request_params'] = serialize($this->_ci->input->get_post(NULL, TRUE)); \n\t\t$data['uri_string'] = $this->_ci->uri->uri_string();\n\t\t$data['created_at'] = date('Y-m-d h:i:s');\n\n\t\tif($this->verify_activity()) {\n\t\t\t// And write it to the database\n\t\t\t$this->_ci->db->insert('hooks', $data);\n\t\t}\n\t}", "function log_act($text, $name, $detail) {\n\n\tglobal $zurich;\t\n\t\n\t$text = addslashes($text);\n\tdb_write(\"INSERT INTO log (name, action, detail, time) \n\t\t\t\tVALUES ('$name', '$text', '$detail', '$zurich->time')\");\n}", "function log_action($action, $message=\"\"){\n\t\t$logfile = SITE_ROOT.DS.'logs'.DS.'log.txt';\n\t\t\n\t\t// check the file is writable or output error\n\t\t// append new entries to the end of the file\n\t\tif($handle = fopen($logfile, 'a')){ // append\n\t\t\n\t\t\t// Sample Entry: 2012-01-01 13:10:03 | Login: freeze logged in. \n\t\t\t//(for windows newline is \\r\\n) for unix it is just \\n\n\t\t\t$timestamp = date('Y-m-d h:i:s A');\n\t\t\t$content = \"{$timestamp} | {$action}: {$message}\\r\\n\";\n\t\t\tfwrite($handle, $content); \n\t\t\n\t\t\tfclose($handle);\n\t\t} else {\n\t\t\techo \"Could not open file for writing\";\n\t\t}\t\n\t}", "public function store() {\n $logData = \"=========================================\\n\";\n $logData .= \"Date Time: \".$this->record_date.\"\\n\";\n $logData .= $this->title.\" (\".$this->type.\") \\n\";\n if(!empty($this->data)) {\n $logData .= var_export($this->data, true).\"\\n\";\n }\n \n file_put_contents($this->file, $logData, FILE_APPEND);\n \n }", "public function editAction()\n {\n $traineedocId = $this->getRequest()->getParam('id');\n $traineedoc = $this->_initTraineedoc();\n if ($traineedocId && !$traineedoc->getId()) {\n $this->_getSession()->addError(\n Mage::helper('bs_traineedoc')->__('This trainee document no longer exists.')\n );\n $this->_redirect('*/*/');\n return;\n }\n $data = Mage::getSingleton('adminhtml/session')->getTraineedocData(true);\n if (!empty($data)) {\n $traineedoc->setData($data);\n }\n Mage::register('traineedoc_data', $traineedoc);\n $this->loadLayout();\n $this->_title(Mage::helper('bs_traineedoc')->__('Trainee Document'))\n ->_title(Mage::helper('bs_traineedoc')->__('Trainee Document'));\n if ($traineedoc->getId()) {\n $this->_title($traineedoc->getTraineeDocName());\n } else {\n $this->_title(Mage::helper('bs_traineedoc')->__('Add trainee document'));\n }\n if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {\n $this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);\n }\n $this->renderLayout();\n }", "function auditForm(){\n?>\n<p>\n\t<div class=\"paragraph\">\n\t\t<div>Also see: <a href=\"./badWords.php\">Bad word management</a></div>\n\t\tFill out fields you want to filter on. \n\t</div>\n\n\t<div id=\"allAudits\">\n\t\t<fieldset class=\"audit\">\n\t\t<legend class=\"auditSubtitle\">Users</legend>\n\t\t\t<form action=\"./audit.php\" method=\"post\">\n\t\t\t\t<table style=\"width:150\" align=\"center\">\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Field</th>\n\t\t\t\t\t\t<th>Search restriction</th>\n\t\t\t \t\t</tr>\n\t\t\t \t\t<!--<tr>\n\t\t\t\t\t\t<th>UserID</th>\n\t\t\t\t\t\t<th><input type=\"number\" name=\"UserID\"></th>\n\t\t\t \t\t</tr>-->\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Username</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Username\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>First name</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"First_Name\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Last name</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Last_Name\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Email</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Email\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Phone number</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Phone_Number\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>User Type</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"User_Type\"></th>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\n\t\t\t\t<input type=\"hidden\" name=\"audit_type\" value=\"user\" />\n\t\t\t\t<input type=\"submit\" value=\"Perform Audit\" name=\"Submit\">\n\t\t\t</form>\n\t\t</fieldset>\n\n\t\t<fieldset class=\"audit\">\n\t\t<legend class=\"auditSubtitle\">User Login History</legend>\n\t\t\t<form action=\"./audit.php\" method=\"post\">\n\t\t\t\t<table style=\"width:150\" align=\"center\">\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Field</th>\n\t\t\t\t\t\t<th>Search restriction</th>\n\t\t\t \t\t</tr>\n\t\t\t \t\t<!--<tr>\n\t\t\t\t\t\t<th>UserID</th>\n\t\t\t\t\t\t<th><input type=\"number\" name=\"UserID\"></th>\n\t\t\t \t\t</tr>-->\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Username</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Username\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>First name</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"First_Name\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Last name</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Last_Name\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Email</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Email\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Phone number</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Phone_Number\"></th>\n\t\t\t\t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>User Type</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"User_Type\"></th>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\n\t\t\t\t<input type=\"hidden\" name=\"audit_type\" value=\"user_login\" />\n\t\t\t\t<input type=\"submit\" value=\"Perform Audit\" name=\"Submit\">\n\t\t\t</form>\n\t\t</fieldset>\n\n\t\t<fieldset class=\"audit\">\n\t\t<legend class=\"auditSubtitle\">Forum Topic Search</legend>\n\t\t\t<form action=\"./audit.php\" method=\"post\">\n\t\t\t\t<table style=\"width:150\" align=\"center\">\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Field</th>\n\t\t\t\t\t\t<th>Search restriction</th>\n\t\t\t \t\t</tr>\n\t\t\t \t\t<tr>\n\t\t\t\t\t\t<th>Topic Name</th>\n\t\t\t\t\t\t<th><input type=\"text\" name=\"Name\"></th>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<input type=\"hidden\" name=\"audit_type\" value=\"forumTopic\" />\n\t\t\t\t<input type=\"submit\" value=\"Perform audit\" name=\"Submit\">\n\t\t\t</form>\n\t\t</fieldset>\n\n\t\t<fieldset class=\"audit\">\n\t\t<legend class=\"auditSubtitle\">Bad Word Search (Public comments)</legend>\n\t\t\t<form action=\"./audit.php\" method=\"post\">\n\t\t\t\t<input type=\"hidden\" name=\"audit_type\" value=\"cussWord_pub\" />\n\t\t\t\t<input type=\"submit\" value=\"Perform audit\" name=\"Submit\">\n\t\t\t</form>\n\t\t</fieldset>\n\t\t\n\t\t<fieldset class=\"audit\">\n\t\t<legend class=\"auditSubtitle\">Bad Word Search (Private conversations)</legend>\n\t\t\t<form action=\"./audit.php\" method=\"post\">\n\t\t\t\t<input type=\"hidden\" name=\"audit_type\" value=\"cussWord_pm\" />\n\t\t\t\t<input type=\"submit\" value=\"Perform audit\" name=\"Submit\">\n\t\t\t</form>\n\t\t</fieldset>\n\n\t</div>\n<?php\n}", "public function setHeader() {\n $dt = date('j M, Y');\n $name_header = '';\n $ao = new Application_Model_DbTable_AuditOwner();\n if ($this->usertype != '') {\n $name_header = \"&nbsp {$this->userfullname}\";\n }\n $complete_user = array('ADMIN','USER','APPROVER');\n $complete_audit = '';\n $audit_id = $this->audit['audit_id'];\n logit(\"audit: \" . print_r($this->audit, true));\n $complete_audit .= <<<\"END\"\n<li class=\"divider\"></li>\n<li class=\"tri\"><span style=\"color:black;padding-left: 15px;\"> With Selected Audit:</span></li>\nEND;\n\n # incomplete and owned audit OR not incomplete audit can be viewed\n if (($this->audit['status'] == 'INCOMPLETE' && $this->audit['owner']) || $this->audit['status'] != 'INCOMPLETE') {\n $complete_audit .= <<<\"END\"\n<!li class=\"divider\"></li-->\n<li><a href=\"{$this->baseurl}/audit/view\"><span title=\".icon .icon-color .icon-book \" class=\"icon icon-color icon-book\"></span> View Audit</a></li>\nEND;\n }\n # only incomplete and owned audit can be edited\n if ($this->audit['status'] == 'INCOMPLETE' && $this->audit['owner']) {\n $complete_audit .= <<<\"END\"\n<!--li class=\"divider\"></li-->\n<li><a href=\"{$this->baseurl}/audit/edit/\"><span title=\".icon .icon-color .icon-edit \" class=\"icon icon-color icon-edit\"></span> Edit Audit</a></li>\nEND;\n }\n if (in_array($this->usertype, $complete_user)) {\n $complete_audit .= <<<\"END\"\n<!--li class=\"divider\"></li-->\n<li><a href=\"{$this->baseurl}/audit/exportdata\"><span title=\".icon .icon-color .icon-extlink \" class=\"icon icon-color icon-extlink\"></span> Export Audit Data</a></li>\nEND;\n if ($this->audit['owner']) {\n # $ao->isOwned($audit_id, $this->userid)) {\n $complete_audit .= <<<\"END\"\n<li><a href=\"{$this->baseurl}/audit/delete\"\n onclick=\" return confirm('Do you want to delete Selected Audit?');\">\n <span title=\".icon .icon-color .icon-trash \" class=\"icon icon-color icon-trash\"></span>\n Delete Audit</a></li>\nEND;\n }\n $complete_audit .= <<<\"END\"\n<li class=\"divider\"></li>\n<li class=\"tri\"><span style=\"color:black;padding-left: 15px;\"> Change Audit State:</span></li>\nEND;\n if ($this->audit['status'] == 'INCOMPLETE' && $ao->isOwned($audit_id, $this->userid)) {\n $complete_audit .= <<<\"END\"\n<li><a href=\"{$this->baseurl}/audit/complete\">\n<span title=\".icon .icon-color .icon-locked \" class=\"icon icon-color icon-locked\"></span> Mark Audit Complete</a></li>\nEND;\n }\n if ($this->audit['status'] == 'COMPLETE' && $ao->isOwned($audit_id, $this->userid)) {\n $complete_audit .= <<<\"END\"\n<li><a href=\"{$this->baseurl}/audit/incomplete\">\n<span title=\".icon .icon-color .icon-unlocked \" class=\"icon icon-color icon-unlocked\"></span> Mark Audit Incomplete</a></li>\nEND;\n }\n if ($this->audit['status'] == 'COMPLETE' && $this->usertype == 'APPROVER') {\n $complete_audit .= <<<\"END\"\n<li><a href=\"{$this->baseurl}/audit/finalize\"\nonclick=\" return confirm('Do you want to finalize Audit (#{$this->audit['audit_id']}-{$this->audit['tag']})?');\"><span title=\".icon .icon-color .icon-sent \" class=\"icon icon-color icon-sent\"></span> Mark Audit Finalized</a></li>\n<li><a href=\"{$this->baseurl}/audit/reject\"\n onclick=\" return confirm('Do you want to reject Audit (#{$this->audit['audit_id']}-{$this->audit['tag']})?');\"><span title=\".icon .icon-color .icon-cross \" class=\"icon icon-color icon-cross\"></span> Mark Audit Rejected</a></li>\nEND;\n }\n }\n $this->header = <<<\"END\"\n<div class=\"navbar\">\n <div class=\"navbar-inner\">\n <div class=\"container-fluid\">\n <a class=\"brand\" href=\"{$this->baseurl}{$this->mainpage}\">\n <span title=\".icon .icon-black .icon-check \" class=\"icon icon-black icon-check\"></span> <span>eChecklist</span>\n </a>\nEND;\n $newuser = '';\n if ($this->usertype != '') {\n if ($this->usertype == 'ADMIN') {\n $newuser = <<<\"END\"\n<li><a href=\"{$this->baseurl}/user/create\">\n<span title=\".icon .icon-green .icon-user \" class=\"icon icon-green icon-user\"></span> New User</a></li>\nEND;\n }\n\n $this->header = $this->header . <<<\"END\"\n<div class=\"btn-group pull-left\" style=\"margin-left:100px;\">\n<a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n <span title=\".icon .icon-blue .icon-clipboard \" class=\"icon icon-blue icon-clipboard\"></span>\n <span class=\"hidden-phone\">Audit</span>\n <span class=\"caret\"></span></a>\n<ul class=\"dropdown-menu\">\nEND;\n if (in_array($this->usertype, $complete_user)) {\n $this->header .= <<<\"END\"\n <li><a href=\"{$this->baseurl}/audit/create\"><span title=\".icon .icon-green .icon-clipboard \" class=\"icon icon-green icon-clipboard\"></span> New Audit</a></li>\nEND;\n }\n $this->header .= <<<\"END\"\n <li><a href=\"{$this->baseurl}/audit/search\"><span title=\".icon .icon-blue .icon-search \" class=\"icon icon-blue icon-search\"></span> Search for Audit</a></li>\n{$complete_audit}\n <li class=\"divider\"></li>\n <li><a href=\"{$this->baseurl}/audit/runreports\"><span title=\".icon .icon-color .icon-newwin \" class=\"icon icon-color icon-newwin\"></span> Run Reports</a></li>\nEND;\n\n if (in_array($this->usertype, $complete_user)) {\n $this->header .= <<<\"END\"\n <li class=\"divider\"></li>\n <li><a href=\"{$this->baseurl}/audit/import\"><span title=\".icon .icon-blue .icon-import \" class=\"icon icon-blue icon-archive\"></span> Import Audit</a></li>\nEND;\n }\n $this->header .= <<<\"END\"\n</ul>\n</div>\n\n<div class=\"btn-group pull-left\">\n<a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n <span title=\".icon .icon-blue .icon-tag \" class=\"icon icon-blue icon-tag\"></span>\n <span class=\"hidden-phone\">Lab</span>\n <span class=\"caret\"></span></a>\n<ul class=\"dropdown-menu\">\n <li><a href=\"{$this->baseurl}/lab/create\"><span title=\".icon .icon-green .icon-tag \" class=\"icon icon-green icon-tag\"></span> New Lab</a></li>\n <li><a href=\"{$this->baseurl}/lab/select\"><span title=\".icon .icon-blue .icon-search \" class=\"icon icon-blue icon-search\"></span> Select a Lab</a></li>\n <li class=\"divider\"></li>\n <li><a href=\"{$this->baseurl}/lab/edit\"><span title=\".icon .icon-blue .icon-search \" class=\"icon icon-blue icon-search\"></span> Edit Selected Lab</a></li>\n</ul>\n</div>\n\n<div class=\"btn-group pull-left\">\n<a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n<span title=\".icon .icon-blue .icon-user \" class=\"icon icon-blue icon-user\"></span>\n<span class=\"hidden-phone\">User</span>\n<span class=\"caret\"></span></a>\n<ul class=\"dropdown-menu\">\n {$newuser}\n <li><a href=\"{$this->baseurl}/user/find\"><span title=\".icon .icon-blue .icon-search \" class=\"icon icon-blue icon-search\"></span>Find User</a></li>\n</ul>\n</div>\n\n<!--div class=\"btn-group pull-left\">\n<a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n<span title=\".icon .icon-blue .icon-flag \" class=\"icon icon-blue icon-flag\"></span>\n<span class=\"hidden-phone\">Language</span>\n<span class=\"caret\"></span></a>\n<ul class=\"dropdown-menu\">\n <li><a href=\"{$this->baseurl}/language/switch/EN\"><span title=\".icon .icon-green .icon-flag \" class=\"icon icon-green icon-flag\"></span> English</a></li>\n <li><a href=\"{$this->baseurl}/language/switch/FR\"><span title=\".icon .icon-green .icon-flag \" class=\"icon icon-green icon-flag\"></span> French</a></li>\n <li><a href=\"{$this->baseurl}/language/switch/VI\"><span title=\".icon .icon-green .icon-flag \" class=\"icon icon-green icon-flag\"></span> Vietnamese</a></li>\n</ul>\n</div-->\n\n<!-- user dropdown starts -->\n<div class=\"btn-group pull-right\">\n <a class=\"btn dropdown-toggle\" data-toggle=\"dropdown\" href=\"#\">\n <span title=\".icon .icon-orange .icon-user \" class=\"icon icon-orange icon-user\"></span>\n <span class=\"hidden-phone\"> {$name_header}</span>\n\t<span class=\"caret\"></span>\n </a>\n <ul class=\"dropdown-menu\">\n <li><a href=\"{$this->baseurl}/user/profile\"><span title=\".icon .icon-blue .icon-contacts \" class=\"icon icon-blue icon-contacts\"></span> Profile</a></li>\n <li><a href=\"{$this->baseurl}/user/changepw\"><span title=\".icon .icon-blue .icon-contacts \" class=\"icon icon-blue icon-contacts\"></span> Change Password</a></li>\n <li class=\"divider\"></li>\n\t<li><a href=\"{$this->baseurl}/user/logout\">Logout</a></li>\n </ul>\n</div>\n<!-- user dropdown ends -->\nEND;\n $auditinfo = '';\n //if ($this->dialog_name == 'audit/edit') {\n $auditinfo = \"<div style=\\\"margin:6px 0 6px 20px;padding-right:5px;\\\">Selected Audit: {$this->showaudit}</div>\";\n //}\n $this->header .= <<<\"END\"\n<div style=\"display:inline-block;\">\n <div style=\"margin:6px 0px 6px 20px;padding-right:5px;\">Selected Lab: {$this->showlab}</div>\n {$auditinfo}\n <div style=\"clear:both;\"></div></div>\nEND;\n } else {\n $this->header = $this->header . <<<\"END\"\n<div class=\"btn-group pull-left\" style=\"margin-left:100px;\">\n<a class=\"btn\" href=\"{$this->baseurl}/user/login\"><span title=\".icon .icon-blue .icon-contacts \" class=\"icon icon-blue icon-contacts\"></span> Login</a></div>\nEND;\n }\n $this->header = $this->header . <<<\"END\"\n </div>\n </div> <!-- style=\"clear:both;\"></div -->\n</div>\nEND;\n\n $this->view->header = $this->header;\n }", "function stupid_log( $i, $label, $wikidata_ID ) {\n\t$log_message = sprintf( \"%d,%s,%s,%s\\n\",\n\t\t$i,\n\t\t$wikidata_ID,\n\t\t$label,\n\t\tdate('Y-m-d H:i:s')\n\t);\n\tfile_put_contents( 'log.txt', $log_message, FILE_APPEND );\n}", "function add2log($filename,$entry,$debug=true){\n $TimeStamp = date(\"Y-m-dTH:i:s+0000\");\n $entry .= \"\\n\";\n $FileHandle=fopen($filename, \"a\");\n\n if($FileHandle){\n fwrite($FileHandle, \"[ $TimeStamp ] \".$entry);\n fclose($FileHandle);\n\n //~ If debug is enable we also print some infos to the console\n if($debug){ echo($entry); }\n }\n}", "function save_log($g,$p,$file) {\n\t$txt = '';\n\t$txt .= \"GET\\n\";\n\tforeach ($g as $key => $string_value)\t{\n\t\t$txt .= $key.\" = \".$string_value.\"\\n\";\n\t}\n\t$txt .= \"POST\\n\";\n\tforeach ($p as $key => $string_value)\t{\n\t\t$txt .= $key.\" = \".$string_value.\"\\n\";\n\t}\n\n// ECRITURE FICHIER\n\t// ENREGISTREMENT LOG\n\tif ($fp=fopen($file, \"a\")) {\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\");\n\t\tfwrite($fp, $txt);\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\\n\");\n\t\tfclose($fp);\n\t} else {\n\t\techo \"Erreur d'ouverture de \".$file;\n\t}\n}", "public function viewAction()\n\t{\n\t\t$log = $this->_initLog();\n\t\t\n if (!$log->getId()) {\n $this->_getSession()->addError(Mage::helper('logging')->__('This log no longer exists.'));\n $this->_redirect('*/*/');\n return;\n }\n\n $this->_title( Mage::helper('logging')->__('Showing log entry') );\n\n\t\t$this->loadLayout();\n\t\t\n\t\t$this->getLayout()->getBlock('head')->setCanLoadExtJs(false);\n\t\t$this->renderLayout();\n\t}", "function writeAccessInfo(){\r\n\t\t$sql=\"INSERT INTO \".$this->schema.\".accessi_log(ipaddr,username,data_enter,application) VALUES('$this->user_ip','$this->username',CURRENT_TIMESTAMP(1),'$app')\";\r\n\t\t$this->db->sql_query($sql);\r\n\t}", "public function createAuditLog($request)\n {\n return $this->start()->uri(\"/api/system/audit-log\")\n ->bodyHandler(new JSONBodyHandler($request))\n ->post()\n ->go();\n }", "public function afterSave(){\n\t\t$Log = Logger::getLogger(\"accessLog\");\n\n\t\tif($this->oldAttributes==NULL)\n \t\t$action=\"create\";\n \telse \t\n \t\t$action=\"update\";\n \t\n\t\t$uid=Yii::app()->user->getState(\"uid\");\n\t \t$Log->info($uid.\"\\t\".Yii::app()->user->name.\"\\t\".$this->getModelName().\"\\t\".$action.\"\\t\".$this->orgId);\t\n\t \n\t \tif($this->orgName != $this->oldAttributes['orgName'])\n\t \t\t{$Log->info(\"orgName \".$this->oldAttributes['orgName'].\" \".$this->orgName);}\n\t \tif($this->noEmp != $this->oldAttributes['noEmp'])\n\t \t\t{$Log->info(\"noEmp \".$this->oldAttributes['noEmp'].\" \".$this->noEmp);}\n\t\tif($this->phone != $this->oldAttributes['phone'])\n\t \t\t{$Log->info(\"phone \".$this->oldAttributes['phone'].\" \".$this->phone);}\n\t\tif($this->email != $this->oldAttributes['email'])\n\t \t\t{$Log->info(\"email \".$this->oldAttributes['email'].\" \".$this->email);}\n\t\tif($this->addr1 != $this->oldAttributes['addr1'])\n\t \t\t{$Log->info(\"addr1 \".$this->oldAttributes['addr1'].\" \".$this->addr1);}\n\t\tif($this->addr2 != $this->oldAttributes['addr2'])\n\t \t\t{$Log->info(\"addr2 \".$this->oldAttributes['addr2'].\" \".$this->addr2);}\n\t\tif($this->state != $this->oldAttributes['state'])\n\t \t\t{$Log->info(\"state \".$this->oldAttributes['state'].\" \".$this->state);}\n\t\tif($this->country != $this->oldAttributes['country'])\n\t \t\t{$Log->info(\"country \".$this->oldAttributes['country'].\" \".$this->country);}\n\t\tif($this->orgType != $this->oldAttributes['orgType'])\n\t \t\t{$Log->info(\"orgType \".$this->oldAttributes['orgType'].\" \".$this->orgType);}\n\t\tif($this->description != $this->oldAttributes['description'])\n\t \t\t{$Log->info(\"description \".$this->oldAttributes['description'].\" \".$this->description);}\n\t\tif($this->fax != $this->oldAttributes['fax'])\n\t \t\t{$Log->info(\"fax \".$this->oldAttributes['fax'].\" \".$this->fax);}\n\t\tif($this->validity != $this->oldAttributes['validity'])\n\t \t\t{$Log->info(\"validity \".$this->oldAttributes['validity'].\" \".$this->validity);}\t\t\t\t\t\t\t\t\n\treturn parent::afterSave();\t\n\t}", "public function caseLogAction()\n {\n $applicationUuId = $this->getSymfonyRequest()->query->get('uuid');\n\n $application = $this\n ->getIrisAgentContext()\n ->getReferencingApplicationClient()\n ->getReferencingApplication(array(\n 'referencingApplicationUuId' => $applicationUuId,\n ))\n ;\n\n $entries = array();\n\n $activities = $this\n ->getIrisAgentContext()\n ->getActivityClient()\n ->getActivities(array(\n 'referencingApplicationUuId' => $applicationUuId,\n ))\n ;\n\n $notes = $this\n ->getIrisAgentContext()\n ->getNoteClient()\n ->getReferencingApplicationNotes(array(\n 'applicationUuId' => $applicationUuId,\n ))\n ;\n\n $i = 0;\n\n foreach ($activities as $activity) {\n $entries[sprintf('%s-activity-%d', date('U', strtotime($activity->getRecordedAt())), $i)] = array(\n 'content' => $activity->getNote(),\n 'recordedAt' => $activity->getRecordedAt(),\n 'type' => 'activity',\n );\n $i ++;\n }\n\n foreach ($notes as $note) {\n $entries[sprintf('%s-note-%d', date('U', strtotime($note->getRecordedAt())), $i)] = array(\n 'content' => $note->getNote(),\n 'recordedAt' => $note->getRecordedAt(),\n 'createdBy' => $note->getCreatedBy(),\n 'creatorType' => $note->getCreatorType(),\n 'type' => 'note',\n );\n $i ++;\n }\n\n $this->knatsort($entries);\n\n $this->renderTwigView('/iris-referencing/case-log.html.twig', array(\n 'application' => $application,\n 'entries' => $entries,\n ));\n }", "function logfile() {\n\tglobal $urlpath, $staticFile, $log_file;\n\t$page = \"\";\n\t$buttons = \"\";\n\n\t$page .= hlc(t(\"sweep_title\"));\n\t$page .= hl(t(\"sweep_log\"),4);\n\t$page .= par(t(\"sweep_log_path\").\" $log_file: \");\n\t$page .= '<a href=\"#bottom\">'.t(\"sweep_scroll_down\").'</a>';\n $page .= ptxt(file_get_contents($log_file));\n $page .= '<hr id=\"bottom\" />';\n\n\n $buttons .= addButton(array('label'=>t(\"sweep_button_status\"),'class'=>'btn btn-success', 'href'=>\"$urlpath\", 'divOptions'=>array('class'=>'btn-group')));\n\t$buttons .= addButton(array('label'=>t(\"sweep_button_reload\"),'class'=>'btn btn-success', 'href'=>\"$urlpath/logfile\", 'divOptions'=>array('class'=>'btn-group')));\n\t\t\n\n $page .= $buttons;\n\treturn(array('type' => 'render','page' => $page));\n}", "public function editAction()\n\t{\n try {\n // load the logging ID from the request\n if (($id = $this->_getRequest()->getAttribute(\n TDProject_Project_Controller_Util_WebRequestKeys::TASK_USER_ID)) == null) {\n $id = $this->_getRequest()->getParameter(\n TDProject_Project_Controller_Util_WebRequestKeys::TASK_USER_ID\n );\n }\n // initialize the ActionForm with the data from the DTO\n $this->_getActionForm()->populate(\n $dto = $this->_getDelegate()->getLoggingViewData(\n $this->_getSystemUser()->getUserId(),\n TechDivision_Lang_Integer::valueOf(\n new TechDivision_Lang_String($id)\n )\n )\n );\n } catch(Exception $e) {\n\t\t\t// create and add and save the error\n\t\t\t$errors = new TechDivision_Controller_Action_Errors();\n\t\t\t$errors->addActionError(\n\t\t\t new TechDivision_Controller_Action_Error(\n TDProject_Project_Controller_Util_ErrorKeys::SYSTEM_ERROR,\n $e->__toString()\n )\n );\n\t\t\t// adding the errors container to the Request\n\t\t\t$this->_saveActionErrors($errors);\n\t\t\t// set the ActionForward in the Context\n\t\t\treturn $this->_findForward(\n\t\t\t TDProject_Core_Controller_Util_GlobalForwardKeys::SYSTEM_ERROR\n\t\t\t);\n\t\t}\n // return to the logging detail page\n return $this->_findForward(\n TDProject_Project_Controller_Logging::LOGGING_VIEW\n );\n\t}", "function log_action($blog_id, $note) {\r\n\t //grab data\r\n\t $log = get_blog_option($blog_id, 'psts_action_log');\r\n\r\n\t if (!is_array($log))\r\n\t $log = array();\r\n\r\n\t //append\r\n\t $timestamp = microtime(true);\r\n\r\n\t\t//make sure timestamp is unique by padding seconds, or they will be overwritten\r\n\t while (isset($log[$timestamp]))\r\n\t $timestamp += 0.0001;\r\n\r\n\t $log[$timestamp] = $note;\r\n\r\n\t //save\r\n\t update_blog_option($blog_id, 'psts_action_log', $log);\r\n\t}", "public function edit(VTPassLogs $vTPassLogs)\n {\n //\n }", "public function getLastAudit();", "public function testAuditLogNavigationLinksOpensAuditLogPage()\n {\n $user = User::find(User::JANITOR_USER_ID);\n\n $this->browse(function ($browser) use ($user) {\n $browser->loginAs($user)\n ->visit(new HomePage)\n ->click('@nav-cog')\n ->clickLink('Audit Log')\n ->on(new AuditLogPage);\n });\n }", "function saveOrderingAndIndentObject()\n\t{\n\t\tglobal $ilCtrl, $lng;\n\n\t\t$this->checkPermission(\"write\");\n\n\t\t$this->object->saveOrderingAndIndentation($_POST[\"ord\"], $_POST[\"indent\"]);\n\t\tilUtil::sendSuccess($lng->txt(\"wiki_ordering_and_indent_saved\"), true);\n\t\t$ilCtrl->redirect($this, \"editImportantPages\");\n\t}", "protected function log($pastTenseAction)\n {\n if ($this->previousAttributeValues !== null) {\n $changes = $this->getChangesForLog($this->previousAttributeValues);\n } else {\n $changes = null;\n }\n \n $nameOfCurrentUser = \\Yii::app()->user->getDisplayName();\n \n Event::log(sprintf(\n 'Key %s was %s%s%s.',\n $this->key_id,\n $pastTenseAction,\n (is_null($nameOfCurrentUser) ? '' : ' by ' . $nameOfCurrentUser),\n (is_null($changes) ? '' : ': ' . json_encode($changes))\n ), $this->api_id, $this->key_id, $this->user_id);\n }", "public function edit(JournalEntry $entry)\n {\n //\n }", "function edithistory_edit_page()\n{\n\tglobal $db, $lang, $mybb, $post, $templates, $post_errors, $reason, $postreason;\n\t$lang->load(\"edithistory\");\n\n\tif($mybb->input['previewpost'] || $post_errors)\n\t{\n\t\t$postreason = htmlspecialchars_uni($mybb->input['reason']);\n\t}\n\telse\n\t{\n\t\t$postreason = htmlspecialchars_uni($post['reason']);\n\t}\n\n\teval(\"\\$reason = \\\"\".$templates->get(\"editpost_reason\").\"\\\";\");\n}", "public function makeAuditLines($rows, $options = array()) {\n $cb = false;\n $addsel = false;\n $cb = (get_arrval($options, 'cb', false)) ? true : false;\n $addsel = (get_arrval($options, 'addsel', false)) ? true : false;\n $rev_level = rev('getLevels', $this->tlist);\n $rev_affil = rev('getAffiliations', $this->tlist);\n $tout = array();\n\n $ct = 0;\n if ($cb) {\n /* $tout[] = <<<\"END\"\n<form method=\"post\" action=\"{$this->baseurl}/output/process\"\n enctype=\"multipart/form-data\" name=\"action\"\n id=\"action\">\nEND;\n*/\n }\n $tout[] = '<table style=\"margin-left:50px;color:black;\">';\n $tout[] = \"<tr class='even'>\";\n\n if ($cb) {\n $tout[] = \"<td style='width:55px;'><center>Select/<br />Deselect<br />All<br /><input type='checkbox' name='allcb' id='allcb'></center></td>\";\n } else {\n $tout[] = \"<td style='width:55px;'></td>\";\n }\n $tout[] = <<<\"END\"\n<td style='width:43px;font-weight:bold;padding:2px 0;'>Audit<br />Id</td>\n<td style='width:55px;font-weight:bold;'>Type</td>\n<td style='width:55px;font-weight:bold;'>SLMTA<br />Type</td>\n<td style='width:55px;font-weight:bold;'>Slipta<br />Off.</td>\n<td style='width:130px;font-weight:bold;'>Date</td>\n<td style='width:100px;font-weight:bold;'>Labnum</td>\n<td style='width:150px;font-weight:bold;'>Labname</td>\n<td style='width:85px;font-weight:bold;'>Country</td>\n<td style='width:100px;font-weight:bold;'>Level</td>\n<td style='width:145px;font-weight:bold;'>Affiliation</td>\n<td style='width:45px;font-weight:bold;'>Co-<br />hort<br />Id</td>\n<td style='width:92px;font-weight:bold;'>Status</td>\nEND;\n if (! $cb) {\n $tout[] = \"<td></td></tr>\";\n } else {\n $tout[] = \"</tr>\";\n }\n foreach($rows as $row) {\n logit('Audit: ' . print_r($row, true));\n if (! $row['owner'] && $row['status'] == 'INCOMPLETE') continue;\n //if ($)\n $ct ++;\n $cls = ($ct % 2 == 0) ? 'even' : 'odd';\n /*$edit = ($row['status'] == 'INCOMPLETE' && $row['owner']) ?\n \"<a href=\\\"{$this->baseurl}/audit/edit/{$row['audit_id']}/\\\" class=\\\"btn btn-mini btn-inverse\\\">Edit</a>\" : '';\n $view = \"<a href=\\\"{$this->baseurl}/audit/view/{$row['audit_id']}\\\" class=\\\"btn btn-mini btn-success\\\">View</a>\";\n */\n $adduser = '';\n if ($this->audit['audit_id'] != $row[\"audit_id\"]) {\n $selx = \"<a href=\\\"{$this->baseurl}/audit/choose/{$row[\"audit_id\"]}\\\" class=\\\"btn btn-mini btn-info\\\">Select</a>\";\n } else {\n $cls = 'hilight';\n $selx = \"<div style=\\\"color:red;\\\">Selected</div>\";\n }\n $tout[] = \"<tr class='{$cls} ' style=\\\"height:24px;\\\">\";\n if ($cb) {\n $name = \"cb_{$row['audit_id']}\";\n $tout[] = \"<td style='width:40px;padding:4px 0;'>\" .\n \"<center><input type='checkbox' name='{$name}' id='{$name}'></center></td>\";\n } else if ($addsel) {\n $butt = \"<a href=\\\"{$this->baseurl}/lab/choose/{$row['audit_id']}\\\"\" .\n \" class=\\\"btn btn-mini btn-success\\\">Select</a>\";\n $tout[] = \"<td style='width:40px;padding:2px 4px;'>{$butt}</td>\";\n } else {\n $tout[] = \"<td style='width:40px;padding:2px 4px;'>{$selx}</td>\";\n }\n $tout[] = <<<\"END\"\n<td>{$row['audit_id']}</td>\n<td>{$row['audit_type']}</td><td>{$row['slmta_type']}</td><td>{$row['slipta_official']}</td>\n<td>{$row['end_date']}</td>\n<td>{$row['labnum']}</td>\n<td>{$row['labname']}</td><td>{$row['country']}</td>\n<td><p class=\"small\">{$rev_level[$row['lablevel']]}</p></td>\n<td><p class=\"small\">{$rev_affil[$row['labaffil']]}</p></td>\n<td>{$row['cohort_id']}</td><td>{$row['status']}</td>\n\nEND;\n if (! $cb) {\n $tout[] = \"<td></td></tr>\";\n //{$export} {$delete}\n } else {\n $tout[] = \"</tr>\";\n }\n}\nif ($cb) {\n $tout[] = '<tr><td colspan=13 style=\"text-align:right;\" ><input class=\"input-xlarge submit\" type=\"submit\" name=\"doit\" value=\"Process Request\">';\n}\n$tout[] = '</table><div style=\"height: 65px;\">&nbsp;</div>' . '<div style=\"clear: both;\"></div>';\n/* if ($cb) {\n $tour[] = '</form>';\n }*/\n$lines = implode(\"\\n\", $tout);\nreturn $lines;\n }", "function editar_historial($back){\n\t\t$this->accion=\"Editar de Nota de Seguimiento\";\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Guardar\" && isset($_GET['id']) && $_GET['id']!=\"\"){\n\t\t\t$id=$_GET['id'];\n\t\t\t$this->asignar_valores();\n\t\t\t\n\t\t\t$sql=\"UPDATE historial SET asunto_his='$this->asunto', descripcion_his='$this->descripcion' WHERE id_hiso='$id'\";\n\t\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\theader(\"location:/admin/$this->tabla/editar.php?id=$back\");\n\t\t\t\t\n\t\t}else{\n\t\t $this->mostrar_historial();\n\t\t}\n\t}", "public function auditTrail(Request $request)\n {\n \n if ( !isset($request->dateRange) ) {\n\n return redirect('/reports');\n\n } else {\n\n $page = [\n 'title' => 'Audit Trail Reports',\n ];\n \n $dates = explode( ' - ', $request->dateRange );\n $start_date = Carbon::parse( $dates[ 0 ] ); //date range - start\n $end_date = Carbon::parse( $dates[ 1 ]. '23:59:59' );//date range - end\n $dateTime = Carbon::now();\n $dateTime = Carbon::parse( $dateTime )->format( 'F d, Y - h:i:s A' );\n \n $user = Auth::user();\n \n $counter = 0;\n \n //normal user\n if ( $user->user_type == 0 ) {\n \n //used to display the office name in report.\n $office_name = Office::where( 'id', $user->office_id )->value( 'office_name' );\n \n //get all the audit trails from the database of an office.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->where('tbl_audit_trails.user_id', $user->id)\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n $allrecords = array();\n foreach ( $auditTrail_reports as $auditTrail_report ) {\n \n $allrecords[] = array(\n \"id\" => $auditTrail_report->auditTrail_id,\n \"action\" => $auditTrail_report->action,\n \"created_at\" => Carbon::parse( $auditTrail_report->auditTrail_date )->format('m-d-Y | h:i:s a'),\n \"email\" => $auditTrail_report->email,\n \"office_code\" => $auditTrail_report->office_code,\n );\n \n }\n \n //date range - start\n $start_date = Carbon::parse( $dates[ 0 ] )->format('F d, Y');\n \n //date range - end\n $end_date = Carbon::parse( $dates[ 1 ] )->format('F d, Y');\n \n return view( 'reports.auditTrail_report', compact( 'user', 'page', 'allrecords', 'dateTime', 'office_name', 'start_date', 'end_date' ) );\n \n } elseif ( $user->user_type == 1 ) {\n //super user\n \n if ( $request->office == null ) {\n \n $office_name = 'ALL OFFICES';\n \n //get all the audit trails from the database of all offices.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n \n } else {\n \n //used to display the office name in report.\n $office_name = Office::where('id', $request->office)->value( 'office_name' );\n \n //get all the audit trails from the database of selected office.\n $auditTrail_reports = AuditTrail::join('tbl_users', 'tbl_audit_trails.user_id', '=', 'tbl_users.id')\n ->join('tbl_offices', 'tbl_users.office_id', '=', 'tbl_offices.id')\n ->select(\n 'tbl_audit_trails.id as auditTrail_id', \n 'tbl_audit_trails.action', \n 'tbl_audit_trails.created_at as auditTrail_date', \n 'tbl_users.email', \n 'tbl_offices.office_code'\n )\n ->where('tbl_offices.id', $request->office)\n ->whereBetween('tbl_audit_trails.created_at', [ $start_date, $end_date ])\n ->orderBy( 'tbl_audit_trails.created_at', 'DESC')\n ->get();\n \n }\n \n $allrecords = array();\n foreach ( $auditTrail_reports as $auditTrail_report ) {\n \n $allrecords[] = array(\n \"id\" => $auditTrail_report->auditTrail_id,\n \"action\" => $auditTrail_report->action,\n \"created_at\" => Carbon::parse( $auditTrail_report->auditTrail_date )->format('m-d-Y | h:i:s a'),\n \"email\" => $auditTrail_report->email,\n \"office_code\" => $auditTrail_report->office_code,\n );\n \n }\n \n $start_date = Carbon::parse( $dates[ 0 ] )->format('F d, Y');\n \n $end_date = Carbon::parse( $dates[ 1 ] )->format('F d, Y');\n \n $ifOfficeSelected = $request->office;\n \n return view( 'reports.auditTrail_report', compact( 'user', 'page', 'allrecords', 'dateTime', 'office_name', 'start_date', 'end_date', 'ifOfficeSelected' ) );\n \n } \n\n }\n \n }", "public function addHistory($date, $history_id) {\n if ( $_SESSION['addHistory'] = true ) {\n $file = fopen( \"loginHistory.txt\", \"a\");\n if($file) {\n $output = ++$history_id . \"~\" . $_POST['username'] . \"~\" . $date . \"\\n\";\n fwrite($file, $output);\n fclose($file); \n } else {\n echo \"Could not save history!\";\n } \n }\n }", "public function process_access_log(){\n $this->load->model('rest_model');\n $today = date(\"Y-m-d\");\n $access_log_folder = $this->config->item('admin_access_log_path');\n $record_log_file = $access_log_folder . 'api_access_log.txt';\n if (!is_file($record_log_file)) {\n $fp = fopen($record_log_file, 'a+');\n chmod($record_log_file, 0777);\n $end_date = date(\"Y-m-d\", strtotime(\"-15 day\", strtotime($today)));\n } else {\n $db_end_date = end(explode('~~', file_get_contents($record_log_file)));\n }\n if ($end_date < $today) {\n while (strtotime($end_date) < strtotime($today)) {\n $end_date = date(\"Y-m-d\", strtotime(\"+1 day\", strtotime($end_date)));\n $date_arr[] = $end_date;\n }\n $log_data = $this->get_access_log($date_arr);\n if(!empty($log_data[$today])){\n $deletion = $this->rest_model->deleteAccessLog($today);\n }\n foreach ($date_arr as $date_log) {\n if (!empty($log_data[$date_log])) {\n $insertion = $this->rest_model->insertAccessLog($log_data[$date_log]);\n }\n }\n }\n $log_date = date(\"Y-m-d\", strtotime(\"-1 day\", strtotime($today)));\n file_put_contents($sql_file, \"$end_date~~$log_date\");\n echo 1;\n $this->skip_template_view();\n }", "private function syslog_write_changelog ($changelog) {\n\t\t# fetch user id\n\t\t$this->get_active_user_id ();\n\t\t# set update id based on action\n\t\tif ($this->object_action==\"add\")\t{ $obj_id = $this->object_new['id']; }\n\t\telse\t\t\t\t\t\t\t\t{ $obj_id = $this->object_old['id']; }\n\n\t\t# format\n\t\t$changelog = str_replace(\"<br>\", \",\",$changelog);\n\t\t$changelog = str_replace(\"<hr>\", \",\",$changelog);\n\n\t\t# formulate\n\t\t$log = array();\n if(isset($changelog)) {\n if (is_array($changelog)) {\n \t\tforeach($changelog as $k=>$l) {\n \t \t\t$log[] = \"$k: $l\";\n \t\t }\n\t\t }\n\n \t\t# open syslog and write log\n \t\topenlog('phpipam-changelog', LOG_NDELAY | LOG_PID, LOG_USER);\n \t\tsyslog(LOG_DEBUG, \"changelog | $this->log_username | $this->object_type | $obj_id | $this->object_action | \".date(\"Y-m-d H:i:s\").\" | \".implode(\", \",$log));\n \t\t# close\n \t\tcloselog();\n }\n\t}", "function turnitintooltwo_add_to_log($courseid, $eventname, $link, $desc, $cmid, $userid = 0) {\n global $USER;\n\n $eventname = str_replace(' ', '_', $eventname);\n $eventpath = '\\mod_turnitintooltwo\\event\\\\'.$eventname;\n\n $data = array(\n 'objectid' => $cmid,\n 'context' => ( $cmid == 0 ) ? context_course::instance($courseid) : context_module::instance($cmid),\n 'other' => array('desc' => $desc)\n );\n if (!empty($userid) && ($userid != $USER->id)) {\n $data['relateduserid'] = $userid;\n }\n $event = $eventpath::create($data);\n $event->trigger();\n}", "function owa_editAttachmentActionTracker($post_id) {\r\n\r\n\t$owa = owa_getInstance();\r\n\t$post = get_post($post_id);\r\n\t$label = $post->post_title;\r\n\t$owa->trackAction('wordpress', 'Attachment Edit', $label);\r\n}", "function edithistory_run()\n{\n\tglobal $db, $mybb, $post, $session;\n\t$edit = get_post($post['pid']);\n\n\t// Insert original message into edit history\n\t$edit_history = array(\n\t\t\"pid\" => intval($edit['pid']),\n\t\t\"tid\" => intval($edit['tid']),\n\t\t\"uid\" => intval($mybb->user['uid']),\n\t\t\"dateline\" => TIME_NOW,\n\t\t\"originaltext\" => $db->escape_string($edit['message']),\n\t\t\"subject\" => $db->escape_string($edit['subject']),\n\t\t\"ipaddress\" => $db->escape_string($session->ipaddress),\n\t\t\"reason\" => $db->escape_string($mybb->input['reason'])\n\t);\n\t$db->insert_query(\"edithistory\", $edit_history);\n\n\t$reason = array(\n\t\t\"reason\" => $db->escape_string($mybb->input['reason']),\n\t);\n\t$db->update_query(\"posts\", $reason, \"pid='{$edit['pid']}'\");\n}", "public function edit(UserLog $userLog)\n {\n //\n }", "public function edits($type = '', $page = '', $op = false) {\n $this->permission('Garden.Moderation.Manage');\n list($offset, $limit) = offsetLimit($page, 10);\n $this->setData('Title', t('Change Log'));\n $this->setData('_flaggedByTitle', t('Updated By'));\n\n $operations = ['Edit', 'Delete', 'Ban'];\n if ($op && in_array(ucfirst($op), $operations)) {\n $operations = ucfirst($op);\n }\n\n $where = [\n 'Operation' => $operations//,\n// 'RecordType' => array('Discussion', 'Comment', 'Activity')\n ];\n\n $allowedTypes = ['Discussion', 'Comment', 'Activity', 'User'];\n\n $type = strtolower($type);\n if ($type == 'configuration') {\n $this->permission('Garden.Settings.Manage');\n $where['RecordType'] = ['Configuration'];\n } else {\n if (in_array(ucfirst($type), $allowedTypes)) {\n $where['RecordType'] = ucfirst($type);\n } else {\n $where['RecordType'] = $allowedTypes;\n }\n }\n\n $recordCount = $this->LogModel->getCountWhere($where);\n $this->setData('RecordCount', $recordCount);\n if ($offset >= $recordCount) {\n $offset = $recordCount - $limit;\n }\n\n $log = $this->LogModel->getWhere($where, 'LogID', 'Desc', $offset, $limit);\n $this->setData('Log', $log);\n\n if ($this->deliveryType() == DELIVERY_TYPE_VIEW) {\n $this->View = 'Table';\n }\n\n Gdn_Theme::section('Moderation');\n $this->setHighlightRoute('dashboard/log/edits');\n $this->render();\n }", "public function saveTechReviewAction()\n\t{\n\t\tif($this->_request-> isPost() && $this->adminLogin->userId)\n\t\t{\n\t\t\t$tech_params=$this->_request->getParams();\n\n\t\t\t//echo \"<pre>\";print_r($tech_params);exit;\n\n\t\t\t$quote_id=$tech_params['quote_id'];\n\n\t\t\tif(isset($tech_params['review_skip'])) $status='skipped';\n\t\t\telse if(isset($tech_params['review_challenge'])) $status='challenged';\n\t\t\telse if(isset($tech_params['review_save'])) $status='challenged';\n\t\t\telse if(isset($tech_params['review_validate'])) $status='validated';\n\n\t\t\tif($quote_id)\n\t\t\t{\t\n\t\t\t\t\n\t\t\t\t//get Quote version\n\t\t\t\t$quote_obj=new Ep_Quote_Quotes();\n\t\t\t\t$version=$quote_obj->getQuoteVersion($quote_id);\n\t\t\t\n\n\t\t\t\t//Insert Quote log\n\t\t\t\t$log_params['quote_id']\t= $quote_id;\n\t\t\t\t$log_params['bo_user']\t= $this->adminLogin->userId;\t\t\t\t\t\n\t\t\t\t$log_params['version']\t= $version;\n\t\t\t\t$log_params['action']\t= 'tech_'.$status;\t\t\n\n\t\t\t\t\n\n\t\t\t\tif(isset($tech_params['review_skip'])|| isset($tech_params['review_challenge']))\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t$quote_obj=new Ep_Quote_Quotes();\n\t\t\t\t\t$update_quote['tec_review']=$status;\n\n\t\t\t\t\tif(isset($tech_params['review_challenge']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$quoteDetails=$quote_obj->getQuoteDetails($quote_id);\t\t\t\t\t\n\t\t\t\t\t\t/* $tech_params['tech_timeline']=str_replace(\"/\",\"-\",$tech_params['tech_timeline']);\n\t\t\t\t\t\t$tech_params['tech_timeline']=$tech_params['tech_timeline'].\" \".$tech_params['tech_time']; */\n\t\t\t\t\t\t$tech_params['tech_timeline']=$quoteDetails[0]['response_time'];\n\t\t\t\t\t\t$update_quote['tech_timeline']=date(\"Y-m-d H:i:s\",strtotime($tech_params['tech_timeline']));\n\t\t\t\t\t\t$update_quote['tech_challenge_comments']=$tech_params['tech_challenge_comments'];\n\t\t\t\t\t\t$update_quote['tech_challenge']='no';\n\t\t\t\t\t\t\n\t\t\t\t\t\t$log_params['challenge_time']=dateDiffHours(time(),strtotime($tech_params['tech_timeline']));\n\t\t\t\t\t\t$log_params['comments']=$update_quote['tech_challenge_comments'];\n\t\t\t\t\t\t$quiteActionId=3;\n\n\t\t\t\t\t\t$challenge_hours=round($log_params['challenge_time']);\n\t\t\t\t\t\t$update_quote['quote_delivery_hours'] = new Zend_Db_Expr('quote_delivery_hours+'.$challenge_hours);//Quote delivery time update\n\n\t\t\t\t\t\t//echo \"<pre>\";print_r($update_quote);exit;\n\n\t\t\t\t\t\t//send notifcation email to sales\n\t\t\t\t\t\t\n\n\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t$receiver_id=$quoteDetails[0]['quote_by'];\n\t\t\t\t\t\t$mail_parameters['sales_user']=$quoteDetails[0]['quote_by'];\n\t\t\t\t\t\t$mail_parameters['bo_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t$mail_parameters['quote_title']=$quoteDetails[0]['title'];\n\t\t\t\t\t\t//$mail_parameters['challenge_time']=$update_quote['tech_timeline'];\t\t\t\t\t\t\n\t\t\t\t\t\t$mail_parameters['followup_link_en']='/quote/quote-followup?quote_id='.$quoteDetails[0]['identifier'];\n\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,136,$mail_parameters); \t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$update_quote[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\n\t\t\t\t\t\t$log_params['skip_date']\t= date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t$log_params['comments']=$tech_params['skip_comments'];\n\n\t\t\t\t\t\t$quiteActionId=2;\n\t\t\t\t\t}\n\n\t\t\t\t\t$log_obj=new Ep_Quote_QuotesLog();\n\t\t\t\t\t$log_obj->insertLog($quiteActionId,$log_params);\n\t\t\t\t\t//echo \"<pre>\";print_r($log_params);exit;\t\n\t\t\t\t\t$quote_obj->updateQuote($update_quote,$quote_id);\n\n\t\t\t\t\tif($status=='skipped')\n\t\t\t\t\t\t$this->_redirect(\"/quote/sales-quotes-list?submenuId=ML13-SL2\");\n\t\t\t\t\telse if($status=='challenged')\n\t\t\t\t\t\t$this->_redirect(\"/quote/tech-quote-review?quote_id=\".$quote_id.\"&submenuId=ML13-SL2\");\t\n\t\t\t\t}\n\t\t\t\telseif(isset($tech_params['review_save'])|| isset($tech_params['review_validate']))\n\t\t\t\t{\t\t\t\t\t\n\n\t\t\t\t\t//echo \"<pre>\";print_r($tech_params);exit;\n\n\t\t\t\t\tif(count($tech_params['mission_title'])>0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$j=0;\n\t\t\t\t\t\tforeach($tech_params['mission_title'] as $mission)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tech_obj=new Ep_Quote_TechMissions();\n\n\t\t\t\t\t\t\t$tech_data['title']=$tech_params['mission_title'][$j];\n\t\t\t\t\t\t\t$tech_data['delivery_time']=$tech_params['delivery_time'][$j];\n\t\t\t\t\t\t\t$tech_data['delivery_option']=$tech_params['delivery_option'][$j];\n\t\t\t\t\t\t\t$tech_data['cost']=$tech_params['mission_cost'][$j];\n\t\t\t\t\t\t\t$tech_data['comments']=$tech_params['comments'][$j];\n\t\t\t\t\t\t\t$tech_data['currency']=$tech_params['currency'];\n\t\t\t\t\t\t\t$tech_data['before_prod']=$tech_params['before_prod_'.($j+1)]?'yes':'no';\n\t\t\t\t\t\t\t$tech_data['version']=$version;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(!$tech_params['tech_mission_id'][$j])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$tech_data['created_by']=$this->adminLogin->userId;\n\t\t\t\t\t\t\t\t$tech_obj->insertTechMission($tech_data);\n\t\t\t\t\t\t\t\t$missionIdentifier = $techmissions_assigned[]=$tech_obj->getIdentifier();\n\t\t\t\t\t\t\t\t//$prod_timeupdate=true;\n\t\t\t\t\t\t\t\t//echo \"<pre>\";print_r($tech_data);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif($tech_params['tech_mission_id'][$j])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$missionIdentifier=$tech_params['tech_mission_id'][$j];\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$techmissions_assigned[]=$tech_params['tech_mission_id'][$j];\n\t\t\t\t\t\t\t\t$tech_data['updated_at']=date(\"Y-m-d H:i:s\");\n\t\t\t\t\t\t\t\t$tech_obj->updateTechMission($tech_data,$missionIdentifier);\n\n\t\t\t\t\t\t\t\t$updated_tech_missions=TRUE;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//uploading mission document\n\t\t\t\t\t\t\t$update = false;\n\t\t\t\t\t\t\t$uploaded_documents = array();\n\t\t\t\t\t\t\t$uploaded_document_names = array();\n\t\t\t\t\t\t\t$k = 0;\n\t\t\t\t\t\t\tforeach($_FILES['tech_documents_'.($j+1)]['name'] as $row):\n\n\t\t\t\t\t\t\tif($_FILES['tech_documents_'.($j+1)]['name'][$k])\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$missionDir=$this->mission_documents_path.$missionIdentifier.\"/\";\n\t\t\t\t\t\t\t\tif(!is_dir($missionDir))\n\t\t\t\t\t\t\t\t\tmkdir($missionDir,TRUE);\n\t\t\t\t\t\t\t\t\tchmod($missionDir,0777);\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t$document_name=frenchCharsToEnglish($_FILES['tech_documents_'.($j+1)]['name'][$k]);\n\t\t\t\t\t\t\t\t$document_name=str_replace(' ','_',$document_name);\n\t\t\t\t\t\t\t\t$pathinfo = pathinfo($document_name);\n\t\t\t\t\t\t\t\t$document_name =$pathinfo['filename'].rand(100,1000).\".\".$pathinfo['extension'];\n\t\t\t\t\t\t\t\t$document_path=$missionDir.$document_name;\n\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\tif(move_uploaded_file($_FILES['tech_documents_'.($j+1)]['tmp_name'][$k],$document_path))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tchmod($document_path,0777);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//$seo_mission_data['documents_path']=$missionIdentifier.\"/\".$document_name;\n\t\t\t\t\t\t\t\t$uploaded_documents[] = $missionIdentifier.\"/\".$document_name;\n\t\t\t\t\t\t\t\t$uploaded_document_names[] = str_replace('|',\"_\",$tech_params['document_name'.($j+1)][$k]);\n\t\t\t\t\t\t\t\t$update = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$k++;\n\t\t\t\t\t\t\tendforeach;\n\n\t\t\t\t\t\t\tif($update)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$result =$tech_obj->getTechMissionDetails(array('identifier'=>$missionIdentifier));\n\t\t\t\t\t\t\t\t$uploaded_documents1 = explode(\"|\",$result[0]['documents_path']);\n\t\t\t\t\t\t\t\t$uploaded_documents =array_merge($uploaded_documents,$uploaded_documents1);\n\t\t\t\t\t\t\t\t$seo_mission_data['documents_path'] = implode(\"|\",$uploaded_documents);\n\t\t\t\t\t\t\t\t$document_names =explode(\"|\",$result[0]['documents_name']);\n\t\t\t\t\t\t\t\t$document_names =array_merge($uploaded_document_names,$document_names);\n\t\t\t\t\t\t\t\t$seo_mission_data['documents_name'] = implode(\"|\",$document_names);\n\t\t\t\t\t\t\t\t$tech_obj->updateTechMission($seo_mission_data,$missionIdentifier);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$j++;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//updating tehcmissions assigned in quote table\n\t\t\t\t\tif(count($techmissions_assigned)>0)\n\t\t\t\t\t{\n\t\t\t\t\t\t$update_quote_tech['techmissions_assigned']=implode(\",\",$techmissions_assigned);\t\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\n\n\t\t\t\t\tif($status=='challenged')\n\t\t\t\t\t{\n\t\t\t\t\t\t$quote_obj->updateQuote($update_quote_tech,$quote_id);\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t$log_params['action']= 'tech_saved';\n\t\t\t\t\t\tif($tech_params['quote_updated_comments'])\n\t\t\t\t\t\t\t$log_params['comments']=$tech_params['quote_updated_comments'];\n\n\t\t\t\t\t\t$quiteActionId=4;\t\n\t\t\t\t\t\t$log_obj=new Ep_Quote_QuotesLog();\n\t\t\t\t\t\t$log_obj->insertLog($quiteActionId,$log_params);\n\n\n\t\t\t\t\t\t//sending email to tech managers\n\t\t\t\t\t\t$techManager_holiday=$this->configval[\"tech_manager_holiday\"];\n\t\t\t\t\t\t$user_type=$this->adminLogin->type;\n\t\t\t\t\t\tif($techManager_holiday=='no' && $user_type=='techuser')\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(!$updated_tech_missions)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$client_obj=new Ep_Quote_Client();\n\t\t\t\t\t\t\t\t$email_users=$get_head_prods=$client_obj->getEPContacts('\"techmanager\"');\n\n\t\t\t\t\t\t\t\tif(count($email_users)>0)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tforeach($email_users as $user=>$name)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t\t\t\t$receiver_id=$user;\n\t\t\t\t\t\t\t\t\t\t$mail_parameters['bo_user']=$user;\n\t\t\t\t\t\t\t\t\t\t$mail_parameters['sales_user']=$this->adminLogin->userId;\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t$mail_parameters['followup_link']='/quote/tech-quote-review?quote_id='.$quote_id.'&submenuId=ML13-SL2';\n\n\t\t\t\t\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,152,$mail_parameters); \t\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t }\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->_redirect(\"/quote/sales-quotes-list?submenuId=ML13-SL2\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$this->_redirect(\"/quote/tech-quote-review?quote_id=\".$quote_id.\"&submenuId=ML13-SL2\");\n\t\t\t\t\t}\n\t\t\t\t\telseif($status=='validated')\n\t\t\t\t\t{\n\t\t\t\t\t\t$quoteDetails=$quote_obj->getQuoteDetails($quote_id);\n\t\t\t\t\t\tif($quoteDetails[0]['tech_timeline'])\n\t\t\t\t\t\t\t$tech_time_line=strtotime($quoteDetails[0]['tech_timeline']);\n\n\t\t\t\t\t\tif($tech_time_line>time())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$log_params['action']= 'tech_validated_ontime';\n\t\t\t\t\t\t\t$quiteActionId=5;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$delay_hours=dateDiffHours($tech_time_line,time());\n\n\t\t\t\t\t\t\t$log_params['action']= 'tech_validated_delay';\n\t\t\t\t\t\t\t$log_params['delay_hours']=$delay_hours;\n\t\t\t\t\t\t\t$quiteActionId=6;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif($tech_params['quote_updated_comments'])\n\t\t\t\t\t\t\t$log_params['comments']=$tech_params['quote_updated_comments'];\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t$log_obj=new Ep_Quote_QuotesLog();\n\t\t\t\t\t\t$log_obj->insertLog($quiteActionId,$log_params);\n\t\t\t\t\t\t//exit;\n\n\t\t\t\t\t\t$quoteDetailsNew=$quote_obj->getQuoteDetails($quote_id);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$update_quote_tech[\"prod_timeline\"]=time()+($this->configval['prod_timeline']*60*60);\n\t\t\t\t\t\tif(isset($tech_params['review_validate']))\n\t\t\t\t\t\t\t$update_quote_tech['tec_review']=$status;\n\n\t\t\t\t\t\tif($quoteDetailsNew[0]['prod_review']=='auto_skipped')\n\t\t\t\t\t\t\t$update_quote_tech[\"sales_validation_expires\"]=time()+($this->configval['sales_validation_timeline']*60*60);\n\n\t\t\t\t\t\t//echo \"<pre>\";print_r($update_quote_tech);exit;\n\n\t\t\t\t\t\t$quote_obj->updateQuote($update_quote_tech,$quote_id);\n\n\n\t\t\t\t\t\t//sending email to sales user(Quote is finalized )\n\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t$receiver_id=$quoteDetails[0]['quote_by'];\n\t\t\t\t\t\t$mail_parameters['sales_user']=$quoteDetails[0]['quote_by'];\n\t\t\t\t\t\t$mail_parameters['bo_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t$mail_parameters['bo_user_type']='tech';\n\t\t\t\t\t\t$mail_parameters['quote_title']=$quoteDetails[0]['title'];\n\t\t\t\t\t\t$mail_parameters['followup_link']='/quote/quote-followup?quote_id='.$quoteDetails[0]['identifier'];\n\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,134,$mail_parameters);\n\n\t\t\t\t\t\t\n\t\t\t\t\t\t//send notifcation email to sales (Quote arrives to prod)\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(($quoteDetailsNew[0]['tec_review']=='skipped' || $quoteDetailsNew[0]['tec_review']=='auto_skipped' ||$quoteDetailsNew[0]['tec_review']=='validated') \n\t\t\t\t\t\t\t\t&& ($quoteDetailsNew[0]['seo_review']=='skipped' || $quoteDetailsNew[0]['seo_review']=='auto_skipped' ||$quoteDetailsNew[0]['seo_review']=='validated') && $quoteDetailsNew[0]['prod_review']!='auto_skipped')\n\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t$mail_obj=new Ep_Message_AutoEmails();\n\t\t\t\t\t\t\t\t$receiver_id=$quoteDetailsNew[0]['quote_by'];\n\t\t\t\t\t\t\t\t$mail_parameters['sales_user']=$quoteDetailsNew[0]['quote_by'];\n\t\t\t\t\t\t\t\t$mail_parameters['bo_user']=$this->adminLogin->userId;\n\t\t\t\t\t\t\t\t$mail_parameters['quote_title']=$quoteDetailsNew[0]['title'];\n\t\t\t\t\t\t\t\t$mail_parameters['challenge_time']=date(\"Y-m-d H:i:s\",$update_quote_tech[\"prod_timeline\"]);\n\t\t\t\t\t\t\t\t$mail_parameters['followup_link']='/quote/quote-followup?quote_id='.$quoteDetailsNew[0]['identifier'];\n\t\t\t\t\t\t\t\t$mail_obj->sendQuotePersonalEmail($receiver_id,137,$mail_parameters);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//sending intimation emails when quote edited\n\t\t\t\t $update_comments= $tech_params['quote_updated_comments'];\n\t\t\t\t if($update_comments)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$bo_user_type='tech';\t\t\t\t\n\t\t\t\t\t\t\t\t$this->sendIntimationEmail($quote_id,$bo_user_type,$update_comments,$newmissionAdded);\n\t\t\t\t\t\t\t\t//exit;\n\t\t\t\t\t\t\t}\t\n\n\t\t\t\t\t\t$this->_redirect(\"/quote/sales-quotes-list?submenuId=ML13-SL2\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "function db_log($query,$executedto){\n\t//$temp = $_SERVER['DOCUMENT_ROOT'].\"\\\\pk\\\\errorlog\\\\\";\n\t//$default_folder = str_replace(\"/\",\"\\\\\",$temp);\t\n\t$file_name = \"./errorlog/querylog.html\";//$default_folder.\"querylog.html\";\n\t$file_handler = fopen($file_name,\"a\");\n\t$serializedPost = serialize($_POST);\n\t$message = \"<br><i>executed at: \".date('l jS \\of F Y h:i:s A').\" details: \".$executedto.\"</i><br><b>\".$query.\" </b>\".$serializedPost.\"<br>\";\t\n\tfwrite($file_handler,$message);\n\tfclose($file_handler);\n}", "public function invoice_audit_trail() {\n //$this->output->enable_profiler(true);\n $data['sideMenuData'] = fetch_non_main_page_content();\n\n //Read page parameter to display report\n $tenant_id = $this->session->userdata('userDetails')->tenant_id;\n $invoice_id = $this->input->get('invoice_id');\n $start_date = $this->input->get('start_date');\n $end_date = $this->input->get('end_date');\n\n $company_id = $this->input->get('company_id');\n\n if ($invoice_id != '' || $company_id != '' || ($start_date != '' && $end_date != '')) {\n //Build required values to display invoice audit report in table format\n $records_per_page = RECORDS_PER_PAGE;\n $baseurl = base_url() . 'reports_finance/invoice_audit_trail/';\n $pageno = ($this->uri->segment(3)) ? $this->uri->segment(3) : 1;\n $offset = (($pageno - 1) * $records_per_page);\n $field = ($this->input->get('f')) ? $this->input->get('f') : 'invoice_id';\n $order_by = ($this->input->get('o')) ? $this->input->get('o') : 'DESC';\n $tabledata = $this->reportsModel->get_invoice_audit_trail($tenant_id, $records_per_page, $offset, $field, $order_by, $payment_status, $start_date, $end_date, $invoice_id, $company_id);\n $totalrows = $this->reportsModel->get_invoice_audit_trail_rows($tenant_id, $records_per_page, $offset, $field, $order_by, $payment_status, $start_date, $end_date, $invoice_id, $company_id);\n\n //echo $totalrows;exit;\n $data['tabledata'] = $tabledata;\n $data['sort_order'] = $order_by;\n $data['controllerurl'] = 'reports_finance/invoice_audit_trail/';\n $this->load->helper('pagination');\n $data['sort_link'] = $sort_link = \"start_date=\" . $this->input->get('start_date') . \"&end_date=\" . $this->input->get('end_date') . \"&invoice_id=\" . $this->input->get('invoice_id');\n $data['pagination'] = get_pagination($records_per_page, $pageno, $baseurl, $totalrows, $field, $order_by . '&' . $sort_link);\n }\n //Render audit trail page\n $data['page_title'] = 'Accounting Reports - Invoice Audit Trail';\n $data['main_content'] = 'reports/invoice_audit_trail';\n $this->load->view('layout', $data);\n }", "function saveEvent(&$req, &$t) {\n\t\t$id = $req->cleanInt('id');\n\t\t$area = new Cgn_DataItem('cgn_site_area');\n\t\tif ($id > 0 ) {\n\t\t\t$area->load($id);\n\t\t} else {\n\t\t\t$area->created_on = time();\n\t\t\t$u = $req->getUser();\n\t\t\t$area->owner_id = $u->userId;\n\t\t}\n\n\t\t$area->title = $req->cleanString('title');\n\t\t$area->site_template = $req->cleanString('template');\n\t\t$area->template_style = 'index';\n\t\t$area->cgn_def_menu_id = $req->cleanString('menu_id');\n\t\t$area->description = $req->cleanString('description');\n\t\t$area->edited_on = time();\n\t\t$id = $area->save();\n\n\t\t$this->presenter = 'redirect';\n\t\t$t['url'] = cgn_adminurl(\n\t\t\t'site','area','view',array('id'=>$id));\n\t}", "function logThisToTxtFile($logENID,$action)\n{\n\t$detect = new Mobile_Detect();\n\t\n\t$user_browser=user_browser();\n\t$user_os=user_os();\n\t$user_ip=getRealIpAddr();\n\t\t\t\t\n\tif ($detect->isMobile())\n\t{\n\t\t// mobile content\n\t\t$device='Mobile';\n\t} \t\t\t\t\n\telse\n\t{\n\t\t// other content for desktops\n\t\t$device='Desktop';\n\t}\n\tdate_default_timezone_set('UTC');\t\n\t$logDateTime= date('Y-m-d H:i:s');\t\t\n\t$log_this = 'EN client '.$logENID.': '.$action.' on UTC '.$logDateTime.' from '.$user_ip.' using '.$device.' through browser '.$user_browser.' ,OS: '.$user_os;\n\t$filename= 'ENLog_'.date('MY').'.txt';\n \t$myfile = file_put_contents($filename, $log_this.PHP_EOL , FILE_APPEND);\t\n\n}", "public function edit(iot $iot)\n {\n //\n }", "function update_system_log($action, $description) {\n\t\tglobal $database;\n\t\t\n\t\t// write to system log\n\t\t$action = strtoupper($action);\n\t\t$ip = get_client_ip();\n\t\t$now = datetime_now();\n\t\t\n\t\t$action = str_sanitize($action);\n\t\t$description = str_sanitize($description);\n\t\t\n\t\t$ret = $database->query(\"INSERT INTO system_log(action,ipaddress,entrydate,description)\n\t\t VALUES('$action', '$ip','$now', '$description');\");\t\n}", "public function __construct() {\n\t\t$view_event = ( isset( \\REALTY_BLOC_LOG::$option['view_event'] ) ? \\REALTY_BLOC_LOG::$option['view_event'] : array() );\n\n\t\t// Property Page view log\n\t\tif ( isset( $view_event['property'] ) and $view_event['property'] == \"on\" ) {\n\t\t\tadd_action( 'rb_page_view_property_log', array( $this, 'save_property' ), 10, 5 );\n\t\t}\n\n\t\t// building Page View log\n\t\tif ( isset( $view_event['building'] ) and $view_event['building'] == \"on\" ) {\n\t\t\tadd_action( 'rb_page_view_building_log', array( $this, 'save_building' ), 10, 5 );\n\t\t}\n\t}", "function logMe($comment, $status_id = 0, $data = array(), $update_process = 0) {\n\n if (!class_exists('systemToolkit')) {\n return; // not loaded (cache fix)\n }\n $toolkit = systemToolkit::getInstance();\n $centerLogMapper = $toolkit->getMapper('log', 'log');\n\n if(count($data)) {\n ob_start();\n $i = 1;\n foreach($data as $d) {\n var_dump($d);\n if($i < count($data)) {\n echo \"<br />===<br />\";\n }\n $i++;\n }\n $err_content = ob_get_contents();\n ob_end_clean();\n $comment .= \"<br />{$err_content}\";\n }\n\n $log = $centerLogMapper->create();\n $log->setTime(new SQLFunction('UNIX_TIMESTAMP'));\n $log->setModule($toolkit->getRequest()->getModule());\n $log->setAction($toolkit->getRequest()->getAction());\n $log->setComment($comment);\n $log->setStatus($status_id);\n if ($user = systemToolkit::getInstance()->getUser()) {\n $log->setUser($user);\n }\n if ($update_process) {\n $log->setProcessId($update_process);\n }\n $centerLogMapper->save($log);\n}", "function logActivity($inputData){\n\tif (!file_exists('./activityLog/'))\n\t\tmkdir('./activityLog/');\n\t$fileHandle = fopen('./activityLog/data.log','a');\n\tfputs($fileHandle , trim($inputData).\"\\n\" , 1024 );\n\tfclose($fileHandle);\n}", "public function createChangeLog() {}", "function AfterEdit(&$values, $where, &$oldvalues, &$keys, $inline, &$pageObject)\n{\n\n\t\t\n//DB::Delete(\"dloglimit2\", \"ID>0\" );\n\n\n//$rs = DB::Select(\"dloglimit\", \"EmployeeID>0\" );\n\n//while( $record = $rs->fetchAssoc() )\n\n//{\n\n//$emp = $record[\"EmployeeID\"];\n//$sdat = $record[\"SDate\"];\n//$sti = $record[\"STimeInC\"];\n\n//$sql = \"INSERT INTO dloglimit2 (EmployeeID, SDate, STimeInC) values ('$emp', '$sdat', '$sti')\";\n\n//CustomQuery($sql);\n\n//}\n;\t\t\n}", "function to_log($vvod)\n{\n $date = date(\"Y_m_d\");\n $filename = \"logs/log_\".$date.\".txt\";\n $string = date(\"d.m.Y H:i:s\").\" => $vvod\".\"\\n\";\n $f = fopen($filename,\"a+\");\n fwrite($f,$string);\n fclose($f);\n}", "public function processEdit() {\n if (!empty($_POST['studNo'])) {\n $this->form_validation->set_rules('studNo', 'Student ID', 'required|callback_validate_student');\n $this->form_validation->set_message('validate_student', 'Student Not Found.');\n }\n $this->form_validation->set_rules('purpose', 'Purpose', 'required|callback_validate_purpose');\n $this->form_validation->set_message('validate_purpose', 'Purpose Not Found.');\n $this->form_validation->set_rules('lab', 'Lab', 'required');\n $this->form_validation->set_rules('courseId', 'Course', 'required');\n $this->form_validation->set_rules('purposeDetail', 'Purpose Detail', 'required');\n $this->form_validation->set_rules('checkIn', 'Check In DateTime', 'required');\n \n if ($this->form_validation->run() == FALSE) {\n $this->editLog($this->input->post('id'));\n } else {\n $updateData = array(\n 'id' => $this->input->post('id'),\n 'checkIn' => $this->input->post('checkIn'),\n 'checkOut' => $this->input->post('checkOut'),\n 'purposeDetail' => $this->input->post('purposeDetail'),\n 'courseId' => $this->input->post('courseId'),\n 'purpose' => $this->input->post('purpose'),\n 'lab' => $this->input->post('lab')\n );\n\n if (isset($_POST['studNo']) && $_POST['studNo']!= '') {\n $updateData['studNo'] = $this->input->post('studNo');\n } else {\n $updateData['userType'] = $this->input->post('userType');\n $updateData['name'] = $this->input->post('name');\n }\n\n $pageNum = $this->input->post('page');\n\n $result = $this->logs_model->update_log($updateData);\n if($result) {\n // Get the Lab ID to bring back to original page of allLogs\n $lab = $this->labs_model->get_lab_id($updateData['lab']);\n\n $this->session->set_flashdata('labEditMessage','Successfully Updated Lab Log');\n redirect(base_url('logs/allLogs/'.$lab['id'].'/'.$pageNum));\n } else {\n $this->session->set_flashdata('labEditMessage','Unable to Update Lab Log');\n redirect(base_url('logs/editLog/'.$updateData['id']));\n }\n }\n \n }", "private function add_to_log($action) {\n if ($action) {\n $event = \\mod_simplecertificate\\event\\course_module_viewed::create(\n array(\n 'objectid' => $this->get_course_module()->instance,\n 'context' => $this->get_context(),\n 'other' => array('certificatecode' => $this->get_issue()->code)));\n $event->add_record_snapshot('course', $this->get_course());\n }\n\n if (!empty($event)) {\n $event->trigger();\n }\n }", "function wiki_edit_page($page_id, $title, $description, $notes, $hide_posts, $meta_keywords, $meta_description, $member = null, $edit_time = null, $add_time = null, $views = null, $null_is_literal = false)\n{\n if (is_null($edit_time)) {\n $edit_time = $null_is_literal ? null : time();\n }\n\n $pages = $GLOBALS['SITE_DB']->query_select('wiki_pages', array('*'), array('id' => $page_id), '', 1);\n if (!array_key_exists(0, $pages)) {\n warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'wiki_page'));\n }\n $page = $pages[0];\n $_description = $page['description'];\n $_title = $page['title'];\n\n $log_id = log_it('WIKI_EDIT_PAGE', strval($page_id), get_translated_text($_title));\n if (addon_installed('actionlog')) {\n require_code('revisions_engine_database');\n $revision_engine = new RevisionEngineDatabase();\n $revision_engine->add_revision(\n 'wiki_page',\n strval($page_id),\n strval($page_id),\n get_translated_text($_title),\n get_translated_text($_description),\n $page['submitter'],\n $page['add_date'],\n $log_id\n );\n }\n\n $update_map = array(\n 'hide_posts' => $hide_posts,\n 'notes' => $notes,\n );\n\n $update_map['edit_date'] = $edit_time;\n if (!is_null($add_time)) {\n $update_map['add_date'] = $add_time;\n }\n if (!is_null($views)) {\n $update_map['wiki_views'] = $views;\n }\n if (!is_null($member)) {\n $update_map['submitter'] = $member;\n } else {\n $member = $page['submitter'];\n }\n\n require_code('attachments2');\n require_code('attachments3');\n\n $update_map += lang_remap('title', $_title, $title);\n $update_map += update_lang_comcode_attachments('description', $_description, $description, 'wiki_page', strval($page_id), null, $member);\n\n $GLOBALS['SITE_DB']->query_update('wiki_pages', $update_map, array('id' => $page_id), '', 1);\n\n require_code('seo2');\n seo_meta_set_for_explicit('wiki_page', strval($page_id), $meta_keywords, $meta_description);\n\n if (post_param_integer('send_notification', null) !== 0) {\n dispatch_wiki_page_notification($page_id, 'EDIT');\n }\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n generate_resource_fs_moniker('wiki_page', strval($page_id));\n }\n\n require_code('sitemap_xml');\n notify_sitemap_node_edit('_SEARCH:wiki:browse:' . strval($page_id), has_category_access($GLOBALS['FORUM_DRIVER']->get_guest_id(), 'wiki', strval($page_id)));\n}", "#[Route(path: '/{id}/edit', name: 'logger_edit', methods: ['GET'])]\n public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n //process.py script: replaced namespace by ::class: ['AppUserdirectoryBundle:Logger'] by [Logger::class]\n $entity = $em->getRepository(Logger::class)->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Logger entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n );\n }", "function __saveLog() {\n $this->__UserLog->save($this->__UserLog->data,false);\n }", "function save_debug($txt,$file) {\n\n// ECRITURE FICHIER\n\t// ENREGISTREMENT LOG\n\tif ($fp=fopen($file, \"a\")) {\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\");\n\t\tfwrite($fp, $txt);\n\t\tfwrite($fp, \"\\n---------------------------------------------------------\\n\\n\");\n\t\tfclose($fp);\n\t} else {\n\t\techo \"Erreur d'ouverture de \".$file;\n\t}\n}", "function log_change($instigator, $verb, $person_id, $preposition, $project_id, $week) {\n $instigator = addslashes($instigator);\n $query = \"INSERT INTO changes (timestamp, instigator, verb, person_id, preposition, project_id, week) VALUES (NOW(), '$instigator', '$verb', $person_id, '$preposition', $project_id, '$week')\";\n\n if ($result = mysql_query($query)) {\n \t#echo \"added record \" . mysql_insert_id();\n } else {\n \tdie(\"<p>could not insert item because:<br>\" .mysql_error(). \"<br>the query was $query.</p>\");\n }\n}", "function logAction($action) {\n\tglobal $dbLog;\n\n\t$dbLog->exec('INSERT INTO log (descripcion) VALUES (\"'.$action.'\")');\n}", "protected function saveHtml()\n {\n $this->fsio->put($this->page->getTarget(), $this->html);\n }", "public function getLastModifiedAudit();" ]
[ "0.65512574", "0.63216615", "0.6300166", "0.62651145", "0.62341446", "0.6217015", "0.6171161", "0.61588687", "0.6150249", "0.6140557", "0.60996354", "0.6071218", "0.60576624", "0.60096145", "0.599582", "0.5971851", "0.5841329", "0.5832444", "0.58175707", "0.5706911", "0.56959933", "0.56883466", "0.5645531", "0.56181544", "0.5609299", "0.5597476", "0.5505339", "0.54825824", "0.54478943", "0.5425447", "0.5417832", "0.5417832", "0.541337", "0.5404984", "0.54042757", "0.5395913", "0.53749996", "0.53418565", "0.5331499", "0.5294206", "0.5266499", "0.5249267", "0.52231854", "0.5207577", "0.52026564", "0.5197398", "0.51962113", "0.51929986", "0.5167642", "0.5152796", "0.5136227", "0.51352435", "0.5132369", "0.5128866", "0.5128046", "0.51169056", "0.5107335", "0.51067907", "0.5106501", "0.50981927", "0.5092461", "0.5086018", "0.50811553", "0.50767976", "0.5073832", "0.507089", "0.5066789", "0.50665975", "0.5051226", "0.5050808", "0.5050709", "0.5038575", "0.5035691", "0.501751", "0.50157374", "0.5010457", "0.50104505", "0.5010119", "0.5006816", "0.5005645", "0.5002824", "0.49991423", "0.49969885", "0.49942753", "0.49853712", "0.4984182", "0.49780628", "0.49752638", "0.49710888", "0.49694332", "0.49685353", "0.49515346", "0.4950492", "0.4925357", "0.49209568", "0.49207467", "0.4919532", "0.49144945", "0.49141598", "0.49095613" ]
0.66816205
0
Write Audit Trail (delete page)
function WriteAuditTrailOnDelete(&$rs) { global $Language; if (!$this->AuditTrailOnDelete) return; $table = 't_gaji_detail'; // Get key value $key = ""; if ($key <> "") $key .= $GLOBALS["EW_COMPOSITE_KEY_SEPARATOR"]; $key .= $rs['gjd_id']; // Write Audit Trail $dt = ew_StdCurrentDateTime(); $id = ew_ScriptName(); $curUser = CurrentUserName(); foreach (array_keys($rs) as $fldname) { if (array_key_exists($fldname, $this->fields) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields if ($this->fields[$fldname]->FldHtmlTag == "PASSWORD") { $oldvalue = $Language->Phrase("PasswordMask"); // Password Field } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { if (EW_AUDIT_TRAIL_TO_DATABASE) $oldvalue = $rs[$fldname]; else $oldvalue = "[MEMO]"; // Memo field } elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { $oldvalue = "[XML]"; // XML field } else { $oldvalue = $rs[$fldname]; } ew_WriteAuditTrail("log", $dt, $id, $curUser, "D", $table, $fldname, $key, $oldvalue, ""); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function WriteAuditTrailOnDelete(&$rs) {\n\t\tglobal $tbl_profile;\n\t\t$table = 'tbl_profile';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\")\n\t\t\t$key .= UP_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['facultyprofile_ID'];\n\n\t\t// Write Audit Trail\n\t\t$dt = up_StdCurrentDateTime();\n\t\t$id = up_ScriptName();\n\t $curUser = CurrentUserID();\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $tbl_profile->fields) && $tbl_profile->fields[$fldname]->FldDataType <> UP_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_MEMO) {\n\t\t\t\t\tif (UP_AUDIT_TRAIL_TO_DATABASE)\n\t\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t\telse\n\t\t\t\t\t\t$oldvalue = \"[MEMO]\"; // Memo field\n\t\t\t\t} elseif ($tbl_profile->fields[$fldname]->FldDataType == UP_DATATYPE_XML) {\n\t\t\t\t\t$oldvalue = \"[XML]\"; // XML field\n\t\t\t\t} else {\n\t\t\t\t\t$oldvalue = $rs[$fldname];\n\t\t\t\t}\n\t\t\t\tup_WriteAuditTrail(\"log\", $dt, $id, $curUser, \"D\", $table, $fldname, $key, $oldvalue, \"\");\n\t\t\t}\n\t\t}\n\t}", "function delete_audit_trail($log_id)\n {\n $parameter_array = array();\n \n array_push($parameter_array, array(\n 'and',\n 'id',\n '=',\n $log_id\n ));\n \n parent::delete('i', $parameter_array);\n }", "function delete()\n{\n\t$model = $this->getModel('logs');\n\t$read = $model->delete();\n\t$this->view_logs();\n}", "public function destroy($id)\n {\n $log = new audit();\n $log->AuditTabla=\"requerimientos\";\n $log->AuditType=\"Eliminado\";\n $log->AuditRegistro=$Requerimiento->ID_Req;\n $log->AuditUser=Auth::user()->email;\n $log->Auditlog=$request->all();\n $log->save();\n }", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'tutores';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'mst_vendor';\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = $typ;\n\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'pase_establecimiento';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 't_gaji_detail';\n\t\t$usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function WriteAuditTrailDummy($typ) {\r\n\t\t$table = 'servidor_escolar';\r\n\t\t$usr = CurrentUserID();\r\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\r\n\t}", "public function delete($type)\n {\n $filename = self::getFile($type);\n @unlink($filename);\n // re-create log file\n $translator = Msd_Language::getInstance()->getTranslator();\n $this->write($type, $translator->_('L_LOG_CREATED'));\n }", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'tbl_profile';\n\t $usr = CurrentUserID();\n\t\tup_WriteAuditTrail(\"log\", up_StdCurrentDateTime(), up_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "public function onAfterDelete()\n {\n parent::onAfterDelete();\n $this->createAudit($this->owner->toMap());\n }", "function cpatient_detail_delete() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"patient_detail\"] = new cpatient_detail();\n\n\t\t// Intialize page id (for backward compatibility)\n\t\tif (!defined(\"EW_PAGE_ID\"))\n\t\t\tdefine(\"EW_PAGE_ID\", 'delete', TRUE);\n\n\t\t// Initialize table name (for backward compatibility)\n\t\tif (!defined(\"EW_TABLE_NAME\"))\n\t\t\tdefine(\"EW_TABLE_NAME\", 'patient_detail', TRUE);\n\n\t\t// Open connection to the database\n\t\t$conn = ew_Connect();\n\t}", "function AfterDelete($where, &$deleted_values, &$message, &$pageObject)\n{\n\n\t\t$delete_jobfile_sql = \"DELETE FROM jobfile WHERE \".$where;\n//unlink($_SESSION[\"output_dir\"].\"\\\\test_alex\\\\\");\n// Place event code here.\n// Use \"Add Action\" button to add code snippets.\n;\t\t\n}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'user';\n\t $usr = CurrentUserName();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function wLogErase($path,$param) {\n \n $fp = unlink($path.\"/\".$param.\".log\");\n //fclose ($fp);\n \n}", "function WriteAuditTrailDummy($typ) {\n\t\t$table = 'scholarship_package';\n\t $usr = CurrentUserID();\n\t\tew_WriteAuditTrail(\"log\", ew_StdCurrentDateTime(), ew_ScriptName(), $usr, $typ, $table, \"\", \"\", \"\", \"\");\n\t}", "function clean_act_log () {\n\t\tfile_put_contents(DIRLOG.\"act.log\",\"\");\n\t}", "public function processDelete(): void \n {\n if ($this->delete()) { // The tag is deleted in the database storage.\n auth()->user()->logActivity($this, 'Tags', 'Has deleted an issue tag with the name ' . $this->name);\n flash(\"The ticket tag with the name <strong>{$this->name}</strong> has been deleted in the application.\")->info()->important();\n }\n }", "function edithistory_delete_post($pid)\n{\n\tglobal $db, $mybb;\n\t$db->delete_query(\"edithistory\", \"pid='{$pid}'\");\n}", "function deleteExpiredLog() {\n\n\t\t$refObj = new REF();\n\t\t//get evt_del from refObj, use alm_del for now\n\t\t$event_del = $refObj->ref['evt_del'];\n\t\tif($event_del == 0){\n\t\t\t$event_del = $refObj->default['evt_del'];\n\t\t\tif($event_del == 0)\n\t\t\t\t$event_del = 180;\n\t\t}\n\n\t\t//convert value into seconds\n\t\t$event_del_in_sec = $event_del * 86400;\n\t\t\n\t\t$current_timestamp = time();\n\t\t\n\t\t$expired_timestamp = $current_timestamp - $event_del_in_sec;\n\t\t\n\t\t$expired_date = date('Y-m-d', $expired_timestamp);\n\n\t\t$eventObj = new EVENTLOG(\"\",\"\",\"\",\"\");\n\t\t$eventObj->deleteExpiredLog($expired_date);\n\n\t\treturn;\n\t}", "function delete_audit($id){\n $status = $this->db->delete('audit',array('id'=>$id));\n\t\t$db_error = $this->db->error();\n\t\tif (!empty($db_error['code'])){\n\t\t\techo 'Database error! Error Code [' . $db_error['code'] . '] Error: ' . $db_error['message'];\n\t\t\texit;\n\t\t}\n\t\treturn $status;\n }", "public static function handlePageDeletion(ilWikiPage $a_page_obj, $a_user_id)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t// copy last entry to have deletion timestamp\n\t\t$sql = \"SELECT * \".\t\t\t\t\t\t\n\t\t\t\" FROM wiki_stat_page\".\n\t\t\t\" WHERE wiki_id = \".$ilDB->quote($a_page_obj->getWikiId(), \"integer\").\n\t\t\t\" AND page_id = \".$ilDB->quote($a_page_obj->getId(), \"integer\");\n\t\t\t\" ORDER BY ts DESC\";\n\t\t$ilDB->setLimit(1);\n\t\t$set = $ilDB->query($sql);\n\t\t\n\t\t// #15748\n\t\tif($ilDB->numRows($set))\n\t\t{\n\t\t\t$data = $ilDB->fetchAssoc($set);\n\n\t\t\t// see self::handlePageUpdated()\n\t\t\t$values = array(\n\t\t\t\t\"int_links\" => array(\"integer\", $data[\"int_links\"]),\n\t\t\t\t\"ext_links\" => array(\"integer\", $data[\"ext_links\"]),\n\t\t\t\t\"footnotes\" => array(\"integer\", $data[\"footnotes\"]),\n\t\t\t\t\"num_words\" => array(\"integer\", $data[\"num_words\"]),\n\t\t\t\t\"num_chars\" => array(\"integer\", $data[\"num_chars\"]),\n\t\t\t\t\"num_ratings\" => array(\"integer\", $data[\"num_ratings\"]),\n\t\t\t\t\"avg_rating\" => array(\"integer\", $data[\"avg_rating\"]),\n\t\t\t);\n\t\t\tself::writeStatPage($a_page_obj->getWikiId(), $a_page_obj->getId(), $values);\t\t\t\n\t\t}\n\t\t\n\t\t// mark all page entries as deleted\n\t\t$ilDB->manipulate(\"UPDATE wiki_stat_page\".\n\t\t\t\" SET deleted = \".$ilDB->quote(1, \"integer\").\n\t\t\t\" WHERE page_id = \".$ilDB->quote($a_page_obj->getId(), \"integer\").\n\t\t\t\" AND wiki_id = \".$ilDB->quote($a_page_obj->getWikiId(), \"integer\"));\t\t\n\t\t\n\t\t// wiki: del_pages+1, num_pages (count), avg_rating\n\t\t$rating = self::getAverageRating($a_page_obj->getWikiId());\t\t\n\t\tself::writeStat($a_page_obj->getWikiId(), \n\t\t\tarray(\n\t\t\t\t\"del_pages\" => array(\"increment\", 1),\n\t\t\t\t\"num_pages\" => array(\"integer\", self::countPages($a_page_obj->getWikiId())),\n\t\t\t\t\"avg_rating\" => array(\"integer\", $rating[\"avg\"]*100)\n\t\t\t));\n\t}", "function wiki_delete_page($page_id)\n{\n if (php_function_allowed('set_time_limit')) {\n @set_time_limit(0);\n }\n\n // Get page details\n $pages = $GLOBALS['SITE_DB']->query_select('wiki_pages', array('*'), array('id' => $page_id), '', 1);\n if (!array_key_exists(0, $pages)) {\n warn_exit(do_lang_tempcode('MISSING_RESOURCE', 'wiki_page'));\n }\n $page = $pages[0];\n $_description = $page['description'];\n $_title = $page['title'];\n\n // Delete posts\n $start = 0;\n do {\n $posts = $GLOBALS['SITE_DB']->query_select('wiki_posts', array('id'), array('page_id' => $page_id), '', 500, $start);\n foreach ($posts as $post) {\n wiki_delete_post($post['id']);\n }\n //$start += 500; No, we just deleted, so offsets would have changed\n } while (array_key_exists(0, $posts));\n\n // Log revision\n $log_id = log_it('WIKI_DELETE_PAGE', strval($page_id), $_title);\n if (addon_installed('actionlog')) {\n require_code('revisions_engine_database');\n $revision_engine = new RevisionEngineDatabase();\n $revision_engine->add_revision(\n 'wiki_page',\n strval($page_id),\n strval($page_id),\n get_translated_text($_title),\n get_translated_text($_description),\n $page['submitter'],\n $page['add_date'],\n $log_id\n );\n }\n\n // Delete and update caching...\n\n delete_lang($_description);\n delete_lang($_title);\n $GLOBALS['SITE_DB']->query_delete('wiki_pages', array('id' => $page_id), '', 1);\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('parent_id' => $page_id));\n $GLOBALS['SITE_DB']->query_delete('wiki_children', array('child_id' => $page_id));\n\n if (addon_installed('catalogues')) {\n update_catalogue_content_ref('wiki_page', strval($page_id), '');\n }\n\n if ((addon_installed('commandr')) && (!running_script('install')) && (!get_mass_import_mode())) {\n require_code('resource_fs');\n expunge_resource_fs_moniker('wiki_page', strval($page_id));\n }\n\n require_code('sitemap_xml');\n notify_sitemap_node_delete('_SEARCH:wiki:browse:' . strval($page_id));\n}", "function edithistory_delete()\n{\n\tglobal $db, $mybb, $user;\n\t$db->update_query(\"edithistory\", array('uid' => 0), \"uid='{$user['uid']}'\");\n}", "public function delete()\n {\n\n\n $myDataAccess = aDataAccess::getInstance();\n $myDataAccess->connectToDB();\n // I just made it cascade null when deleted ;)\n\n\n \t$recordsAffected = $myDataAccess->deletePage($this->m_Pageid);\n\n \treturn \"$recordsAffected row(s) affected!\";\n }", "protected static function logDeletion($status, $path)\n {\n if ($status) {\n MyLog::info(\"[Delete Old] File Deleted\", [$path], 'main');\n } else {\n MyLog::error(\"[Delete Old] Can`t Delete File:\", [$path], 'main');\n }\n }", "function delete_all()\n{\n\t$model = $this->getModel('logs');\n\t$read = $model->delete_all();\n\t$this->view_logs();\n}", "public static function purgeLog(){\n\t\t$fichier = fopen('log/log.txt', 'w');\n}", "function clear_logs_entry(string $logs_filepath, int $index): void {\n $file = null;\n switch ($index) {\n case ALL_ENTRIES:\n $file = fopen($logs_filepath, \"w\");\n flock($file, LOCK_EX);\n break;\n case LATEST_ENTRY:\n $lines = file($logs_filepath);\n unset($lines[count($lines) - 1]);\n $file = fopen($logs_filepath, \"w\");\n flock($file, LOCK_EX);\n foreach ($lines as $line) {\n fwrite($file, $line);\n }\n break;\n default:\n $lines = file($logs_filepath);\n unset($lines[$index - 1]);\n $lines = array_values($lines);\n $file = fopen($logs_filepath, \"w\");\n flock($file, LOCK_EX);\n foreach ($lines as $line) {\n fwrite($file, $line);\n }\n break;\n }\n flock($file, LOCK_UN);\n fclose($file);\n }", "function lerror_log_delete()\n\t{\n\t\tif (file_exists(\"data/error_log.txt\")) return unlink(\"data/error_log.txt\");\n\t\telse return false;\n\t}", "public function processDelete()\n {\n $pageId = Tools::getValue('id_page');\n\n Db::getInstance()->delete($this->module->table_name, 'id_page='.$pageId);\n Db::getInstance()->delete($this->module->table_lang, 'id_page='.$pageId);\n Db::getInstance()->delete($this->module->table_related, 'id_parent='.$pageId.' OR id_related='.$pageId);\n\n $this->redirect_after = static::$currentIndex.'&conf=1&token='.$this->token;\n }", "function EventLog($page,$action,$orignal_value,$new_value)\n{\n\t\t$email = $_SESSION['user_email'];\n\t\t$ipaddress = getUserIP();\n\t\t\n\t\t$data = sprintf(\"%s,%s,%s,%s,%s\" . PHP_EOL, $ipaddress,date(\"F j Y g:i a\"), $email, $page, $action);\n\t\t\n\t\t//file_put_contents($_SERVER['DOCUMENT_ROOT'] .'/log.txt', $data, FILE_APPEND);\t\t\n\t\tfile_put_contents('log.txt', $data, FILE_APPEND);\t\t\t\n\t\t\n\t\t\n}", "protected function _delete()\n {\n $pages = $this->getTable('ExhibitPage')->findBy(array('exhibit'=>$this->id));\n foreach($pages as $page) {\n $page->delete();\n }\n $this->deleteTaggings();\n }", "public function destroy($id)\n {\n \n $ocs = OCS::findOrFail($id);\n $ocs->delete();\n \n $log = new Log();\n\n $log->table_name = 'ocs';\n $log->table_item_id = $id;\n $log->activity = 'delete';\n $log->user_id = Auth::user()->id;\n $log->save();\n\n // Log::info($id.\" OCS deleted by \".Session::get('email').\" on \".date('l jS \\of F Y h:i:s A'));\n return Redirect()->route('the_ocs.index');\n }", "function keepLog($type, $data) {\n\t$file = DOCUMENTROOT.'logs/'.$type.'.log';\n\t@file_put_contents($file, $data, FILE_APPEND);\n}", "function time_tracker_activity_delete($entity) {\n entity_get_controller('time_tracker_activity')->delete($entity);\n}", "public function testComAdobeCqAuditPurgePages()\n {\n $client = static::createClient();\n\n $path = '/system/console/configMgr/com.adobe.cq.audit.purge.Pages';\n\n $crawler = $client->request('POST', $path);\n }", "function before_delete_log($primary_key)\n {\n $query = $this->db->get_where('sites', array('id' => $primary_key))->row();\n\n $format = 'DATE_RFC822';\n $time = time();\n $date = standard_date($format, $time);\n\n $data = array(\n 'action' => 'delete',\n 'user' => $this->session->userdata('username'),\n 'section' => 'Sitios',\n 'fk_section' => $query->id,\n 'description' => 'Se ha eliminado el sitio \"' . $query->name . '\" con URL \"' . $query->url . '\"',\n 'date' => $date\n );\n $this->db->insert('user_log', $data);\n }", "public function deleteWorklog(){\n\n }", "public function destroy($id)\n {\n\n $president = President::findOrFail($id);\n $type = $president->type;\n File::delete('uploads/'.$type.'/'.$president->image);\n File::delete('uploads/'.$type.'/'.$president->image_thumb);\n $search = Search::where('table_name','president')->where('table_id',$id);\n $search->delete();\n $president->delete();\n \n $log = new Log();\n\n $log->table_name = 'president';\n $log->table_item_id = $id;\n $log->activity = 'delete';\n $log->user_id = Auth::user()->id;\n $log->save();\n\n // Log::info($id.\" President record deleted by \".Session::get('email').\" on \".date('l jS \\of F Y h:i:s A'));\n return Redirect()->route('admin_'.$type);\n }", "function write_log($cadena){\n\t\t\t$arch = fopen(\"../../logs/deletes\".\".txt\", \"a+\"); //date(\"Y-m-d\"). define hora en archivo\n\t\t\n\t\t\tfwrite($arch, \"[\".date(\"Y-m-d H:i:s\").\" \".$_SERVER['REMOTE_ADDR'].\" \".\" - Elimino produccion ] \".$cadena.\"\\n\");\n\t\t\tfclose($arch);\n\t\t}", "public function remove_old_log_events() {\n global $wpdb;\n\n $older_than = (time() - H5PEventBase::$log_time);\n\n $wpdb->query($wpdb->prepare(\"\n DELETE FROM {$wpdb->prefix}h5p_events\n\t\t WHERE created_at < %d\n \", $older_than));\n }", "protected function cleanHistory()\n {\n $createdAt = new \\DateTime();\n $logs = $this->instance->getLogs();\n foreach($logs as $log) {\n if(($createdAt->getTimestamp() - $log->getCreatedAt()->getTimestamp()) > $this->expiredTimestamp) {\n $this->instance->removeLog($log);\n }\n }\n }", "public function removeLog(): void\n {\n unlink($this->logFile);\n }", "public function sitePageDeleteAction ()\n {\n\t\t$Page = Tg_Site::getInstance ()->getPageById($this->_getParam ('id'));\n\t\tif (!$Page)\n\t\t\tthrow new Exception (\"Page not found\");\n\t\t\t\n\t\tif ($Page->locked)\n\t\t\tthrow new Exception (\"Page is locked\");\n\t\t\n \t$Page->delete();\n \t\n\t\techo '{\"success\":true,\"msg\":\"Delete successful\"}';\n\t\tdie;\n }", "public function destroy($id)\n {\n $ArtProvs = ArticuloPorProveedor::where('ID_ArtiProve', $id)->first();\n\n if ($ArtProvs->ArtDelete == 0){\n $ArtProvs->ArtDelete = 1;\n }\n else{\n $ArtProvs->ArtDelete = 0;\n }\n $ArtProvs->save();\n\n $log = new audit();\n $log->AuditTabla = \"articulo_por_proveedors\";\n $log->AuditType = \"Eliminado\";\n $log->AuditRegistro = $ArtProvs->ID_ArtiProve;\n $log->AuditUser = Auth::user()->email;\n $log->Auditlog = $ArtProvs->ArtDelete;\n $log->save();\n\n return redirect()->route('articulos-proveedor.index');\n }", "public function clear_log() {\r\n\t\t@unlink( $this->file );\r\n\t}", "public function cleanUpOldLog() {\n\t\t$timestamp = Utils::instance()->localToUtc( apply_filters( 'ip_lockout_logs_store_backward', '-' . Settings::instance()->storage_days . ' days' ) );\n\t\tLog_Model::deleteAll( array(\n\t\t\t'date' => array(\n\t\t\t\t'compare' => '<=',\n\t\t\t\t'value' => $timestamp\n\t\t\t),\n\t\t), '0,1000' );\n\t}", "public function afterDeleteCommit(): void\n {\n }", "public function deleteBackup($event) {\n\t\t$img = $event->argumentsByName('pagefile');\n\n\t\t@unlink($img->filename . '.autosmush');\n\t}", "function afap_clear_log() {\n\n if (!empty($_GET) && wp_verify_nonce($_GET['_wpnonce'], 'afap-clear-log-nonce')) {\n\n global $wpdb;\n\n $log_table_name = $wpdb->prefix . 'afap_logs';\n\n $wpdb->query(\"TRUNCATE TABLE $log_table_name\");\n\n $_SESSION['afap_message'] = __('Logs cleared successfully.', 'accesspress-facebook-auto-post');\n\n wp_redirect(admin_url('admin.php?page=afap&tab=logs'));\n\n exit();\n\n } else {\n\n die('No script kiddies please!');\n\n }\n\n }", "public function test_delete() {\n global $DB;\n\n self::setAdminUser();\n $this->resetAfterTest(true);\n\n // Save new outage.\n $now = time();\n $outage = new outage([\n 'autostart' => false,\n 'warntime' => $now - 60,\n 'starttime' => 60,\n 'stoptime' => 120,\n 'title' => 'Title',\n 'description' => 'Description',\n ]);\n $outage->id = outagedb::save($outage);\n self::$outage = $outage;\n\n outagedb::delete(self::$outage->id);\n\n // Should not exist.\n $event = $DB->get_record_select(\n 'event',\n \"(eventtype = 'auth_outage' AND instance = :idoutage) OR (id = :idevent)\",\n ['idoutage' => self::$outage->id, 'idevent' => self::$event->id],\n 'id',\n IGNORE_MISSING\n );\n self::assertFalse($event);\n }", "public function delete()\n\t{\n\t\tthrow new Exception(\"You shouldn't be doing that, you'll break logs.\");\n\t}", "public function delete (){\n\n $table = new simple_table_ops();\n $table->set_id_column('timetable_id');\n $table->set_table_name('timetables');\n $table->delete();\n\n header(\"Location: http://\".WEBSITE_URL.\"/index.php?controller=timetable&action=show&submit=yes&timetable_period_id={$_GET['timetable_period_id']}\");\n }", "public function deletePage() {\n\t\t\n\t\t$output = array();\n\t\t$url = Request::post('url');\n\t\t$title = Request::post('title');\n\n\t\t// Validate $_POST.\n\t\tif ($url && ($Page = $this->Automad->getPage($url)) && $url != '/' && $title) {\n\n\t\t\t// Check if the page's directory and parent directory are wirtable.\n\t\t\tif (is_writable(dirname($this->getPageFilePath($Page))) && is_writable(dirname(dirname($this->getPageFilePath($Page))))) {\n\n\t\t\t\tFileSystem::movePageDir($Page->path, '..' . AM_DIR_TRASH . dirname($Page->path), $this->extractPrefixFromPath($Page->path), $title);\n\t\t\t\t$output['redirect'] = '?context=edit_page&url=' . urlencode($Page->parentUrl);\n\t\t\t\tCore\\Debug::log($Page->url, 'deleted');\n\n\t\t\t\t$this->clearCache();\n\n\t\t\t} else {\n\t\t\n\t\t\t\t$output['error'] = Text::get('error_permission') . '<p>' . dirname(dirname($this->getPageFilePath($Page))) . '</p>';\n\t\t\n\t\t\t}\n\t\n\t\t} else {\n\t\t\t\n\t\t\t$output['error'] = Text::get('error_page_not_found');\n\t\t\t\n\t\t}\n\t\t\n\t\treturn $output;\n\t\t\n\t}", "public function logDelete($value='')\n {\n # code...\n }", "function AfterDelete($where, &$deleted_values, &$message, &$pageObject)\n{\n\n\t\t\n\n$do=$deleted_values[\"LvID\"];\n\n$sqldel = \"DELETE FROM indleave WHERE LvID='$do'\";\nCustomQuery($sqldel);\n\n\n;\t\t\n}", "public function delete($file)\n {\n $filename=Log::getLogfile($file);\n @unlink($filename);\n if ($file == Log::PHP) {\n // re-create main log\n if (substr($filename, -3) == '.gz') {\n $log = date('d.m.Y H:i:s') . \" Log created.\\n\";\n if ($_SESSION['config']['logcompression'] == 1) {\n $fp = @gzopen($filename, \"wb\");\n @gzwrite($fp, $log);\n @chmod($file . '.gz', 0777);\n $this->handle[$file]=$fp;\n } else {\n $fp = @fopen($filename, \"wb\");\n @fwrite($fp, $log);\n @chmod($file, 0777);\n $this->handle[$file]=$fp;\n }\n }\n }\n }", "public function afterDelete()\n\t{\n\t\t$userActionLog = new UserActionHistory();\n\t\treturn $userActionLog->saveActionLog($this->tableName(), $this->id, true, true);\n\t}", "public function __invoke(Page $page): void\n {\n $this->authorize('delete', $page);\n\n $page->delete();\n\n abort(Response::HTTP_NO_CONTENT);\n }", "protected function deleteCommunicationLog() {\n if (file_exists($this->_directories[\"communication.log\"])) {\n unlink($this->_directories[\"communication.log\"]);\n $this->log(\"Deleted the old log file.\");\n }\n }", "function after_delete() {}", "protected function _postDelete()\n {\n $this->getResource()->delete();\n\n $this->getIssue()->compileHorizontalPdfs();\n }", "function delete($id)\r\n{\r\n\t$query = \"DELETE FROM #__flexicontact_log WHERE id = $id\";\r\n\t$result = $this->ladb_execute($query);\r\n\tif ($result === false)\r\n\t\t$this->_app->enqueueMessage($this->ladb_error_text, 'error');\r\n}", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "function before_delete_log($primary_key)\n {\n $query = $this->db->get_where('languages', array('id' => $primary_key))->row();\n\n $format = 'DATE_RFC822';\n $time = time();\n $date = standard_date($format, $time);\n\n $data = array(\n 'action' => 'delete',\n 'user' => $this->session->userdata('username'),\n 'section' => 'Idiomas',\n 'fk_section' => $query->id,\n 'description' => 'Se ha eliminado el idioma \"' . $query->language . '\" de abreviatura \"' . $query->acronym . '\"',\n 'date' => $date\n );\n $this->db->insert('user_log', $data);\n }", "public function deleteAction()\n {\n if ( $this->getRequest()->getParam('id') > 0) {\n try {\n $traineedoc = Mage::getModel('bs_traineedoc/traineedoc');\n $traineedoc->setId($this->getRequest()->getParam('id'))->delete();\n Mage::getSingleton('adminhtml/session')->addSuccess(\n Mage::helper('bs_traineedoc')->__('Trainee Document was successfully deleted.')\n );\n $this->_redirect('*/*/');\n return;\n } catch (Mage_Core_Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError($e->getMessage());\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n } catch (Exception $e) {\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('There was an error deleting trainee document.')\n );\n $this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));\n Mage::logException($e);\n return;\n }\n }\n Mage::getSingleton('adminhtml/session')->addError(\n Mage::helper('bs_traineedoc')->__('Could not find trainee document to delete.')\n );\n $this->_redirect('*/*/');\n }", "public function onAfterDelete();", "function WriteAuditTrailOnEdit(&$rsold, &$rsnew) {\n\t\tglobal $Language;\n\t\tif (!$this->AuditTrailOnEdit) return;\n\t\t$table = 't_gaji_detail';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= $GLOBALS[\"EW_COMPOSITE_KEY_SEPARATOR\"];\n\t\t$key .= $rsold['gjd_id'];\n\n\t\t// Write Audit Trail\n\t\t$dt = ew_StdCurrentDateTime();\n\t\t$id = ew_ScriptName();\n\t\t$usr = CurrentUserName();\n\t\tforeach (array_keys($rsnew) as $fldname) {\n\t\t\tif (array_key_exists($fldname, $this->fields) && array_key_exists($fldname, $rsold) && $this->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore BLOB fields\n\t\t\t\tif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_DATE) { // DateTime field\n\t\t\t\t\t$modified = (ew_FormatDateTime($rsold[$fldname], 0) <> ew_FormatDateTime($rsnew[$fldname], 0));\n\t\t\t\t} else {\n\t\t\t\t\t$modified = !ew_CompareValue($rsold[$fldname], $rsnew[$fldname]);\n\t\t\t\t}\n\t\t\t\tif ($modified) {\n\t\t\t\t\tif ($this->fields[$fldname]->FldHtmlTag == \"PASSWORD\") { // Password Field\n\t\t\t\t\t\t$oldvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t\t$newvalue = $Language->Phrase(\"PasswordMask\");\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) { // Memo field\n\t\t\t\t\t\tif (EW_AUDIT_TRAIL_TO_DATABASE) {\n\t\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$oldvalue = \"[MEMO]\";\n\t\t\t\t\t\t\t$newvalue = \"[MEMO]\";\n\t\t\t\t\t\t}\n\t\t\t\t\t} elseif ($this->fields[$fldname]->FldDataType == EW_DATATYPE_XML) { // XML field\n\t\t\t\t\t\t$oldvalue = \"[XML]\";\n\t\t\t\t\t\t$newvalue = \"[XML]\";\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$oldvalue = $rsold[$fldname];\n\t\t\t\t\t\t$newvalue = $rsnew[$fldname];\n\t\t\t\t\t}\n\t\t\t\t\tew_WriteAuditTrail(\"log\", $dt, $id, $usr, \"U\", $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function deleted(EntryInterface $entry)\n {\n parent::deleted($entry);\n\n $this->dispatch(new DumpPages());\n }", "private function delete_existing_lines(){\n\n\t\tLine::where('event_id', '=', $this->event->id)->delete();\n\n\t}", "public function destroy($id)\n\t{\n\t\t$Vehicle = Vehiculo::where('VehicPlaca', $id)->first();\n\t\tif (!$Vehicle) {\n\t\t\tabort(404);\n\t\t}\n\t\t\tif ($Vehicle->VehicDelete == 0) {\n\t\t\t\t$Vehicle->VehicDelete = 1;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$Vehicle->VehicDelete = 0;\n\t\t\t}\n\t\t$Vehicle->save();\n\n\t\t$log = new audit();\n\t\t$log->AuditTabla = \"vehiculos\";\n\t\t$log->AuditType = \"Eliminado\";\n\t\t$log->AuditRegistro = $Vehicle->VehicPlaca;\n\t\t$log->AuditUser = Auth::user()->email;\n\t\t$log->Auditlog = $Vehicle->VehicDelete;\n\t\t$log->save();\n\n\t\treturn redirect()->route('vehicle.index');\n\t}", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public function delete() {\n global $DB;\n foreach ($this->targets as $target) {\n $DB->delete_records('progressreview_tutor', array('id' => $target->id));\n }\n }", "public function clearlogAction()\n {\n $this->_helper->layout->disableLayout();\n $this->_helper->viewRenderer->setNoRender(true); \n $bizlogModel = new Core_Model_Bizlog;\n $bizlogModel->deleteAllEntries();\n $this->_helper->FlashMessenger('Cleared log');\n $this->_helper->redirector('viewlog', 'status', 'admin');\n }", "public function deleted(Officer $model)\n {\n $logs = $this->deleteLog('Officer', ['name' => $model->name], auth()->user()->email);\n Log::create($logs);\n }", "public function destroy(Page $page)\n {\n //\n }", "public function destroy(Page $page)\n {\n //\n }", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function __destruct ()\n {\n //if no records to push to audit, then leave dont call the dynamo push job\n if ( !sizeof($this->records) ) return;\n\n //get the table onto which audit logs are to be pushed to\n $table = LaravelUtility::getProperty('dynamo.audit.table', 'dz_audit_logs');\n DynamoManager::pushMultipleToDynamo($table, $this->records);\n }", "public function deleteContentAndCopyLivePage() {}", "function test_restrict_deletion_of_Home_page(){}", "function log_event($action) {\n\t$now = new DateTime();\t\n\tfile_put_contents(WP_PLUGIN_DIR.\"/StandardsReader/cron_log.txt\", \"|\" . $now->format('Y-m-d H:i:s') . \" \". $action . \"\\r\\n\", FILE_APPEND | LOCK_EX);\n}", "public function deleteContentAndCopyDraftPage() {}", "function process_bulk_action()\n {\n global $wpdb;\n\n $table_name = $wpdb->prefix.WSPRA_DB.'api_log';\n \n if ('delete' === $this->current_action()) {\n\n $ids = isset($_REQUEST['id']) ? esc_attr($_REQUEST['id']) : array();\n\n if (is_array($ids)) $ids = implode(',', $ids);\n\n if (!empty($ids)) {\n $cnt = $wpdb->get_var(\"SELECT count(*) FROM $table_name WHERE id IN($ids)\");\n $_get_logged_user = wcra_get_logged_user();\n $notification = \"<strong>$cnt</strong> Log has been deleted by <strong>$_get_logged_user </strong>\";\n // wcra_save_recent_activity(array('txt' => $notification ));\n $wpdb->query(\"DELETE FROM $table_name WHERE id IN($ids)\");\n }\n\n }\n\n }", "public function afterDelete(Model $model) {\n if (!$this->_shouldProcess('delete', $model)) {\n return;\n }\n\n $source = $this->_getSource($model);\n $audit = [$model->alias => $this->_original[$model->alias]];\n\n $data = [\n 'Audit' => [\n 'event' => 'DELETE',\n 'model' => $model->alias,\n 'entity_id' => $model->id,\n 'json_object' => json_encode($audit),\n 'source_id' => $source['id'],\n 'source_ip' => $source['ip'],\n 'source_url' => $source['url'],\n 'description' => $source['description'],\n 'user_id' => $this->getCurrentUser()\n ]\n ];\n\n if ('Audit' !== $model->alias) {\n $audit = ClassRegistry::init('AuditLog.Audit');\n $audit->create();\n $audit->save($data);\n }\n }", "public function after_delete() {}", "function insert_audit_trail()\n {\n $parameter_array = $this->get_parameter_array();\n \n parent::insert('siis', $parameter_array);\n }", "public function onAfterDelete() {\n\n\t\tparent::onAfterDelete();\n\n\t\t// Determine whether this page has been completely removed.\n\n\t\tif(Config::inst()->get(MisdirectionRequestFilter::class, 'replace_default') && !$this->owner->isPublished() && !$this->owner->isOnDraft()) {\n\n\t\t\t// Convert any link mappings that are directly associated with this page.\n\n\t\t\t$mappings = LinkMapping::get()->filter(array(\n\t\t\t\t'RedirectType' => 'Page',\n\t\t\t\t'RedirectPageID' => $this->owner->ID\n\t\t\t));\n\t\t\tforeach($mappings as $mapping) {\n\t\t\t\t$mapping->RedirectType = 'Link';\n\t\t\t\t$mapping->RedirectLink = Director::makeRelative(($this->owner->Link() === Director::baseURL()) ? Controller::join_links(Director::baseURL(), 'home/') : $this->owner->Link());\n\t\t\t\t$mapping->write();\n\t\t\t}\n\t\t}\n\t}", "public function actionTrail()\n {\n $searchModel = new AuditTrailSearch;\n $dataProvider = $searchModel->search(Yii::$app->request->get());\n\n return $this->render('trail', [\n 'dataProvider' => $dataProvider,\n 'searchModel' => $searchModel,\n ]);\n }", "function stupid_log( $i, $label, $wikidata_ID ) {\n\t$log_message = sprintf( \"%d,%s,%s,%s\\n\",\n\t\t$i,\n\t\t$wikidata_ID,\n\t\t$label,\n\t\tdate('Y-m-d H:i:s')\n\t);\n\tfile_put_contents( 'log.txt', $log_message, FILE_APPEND );\n}", "protected function MetaAfterDelete() {\n\t\t}", "public function flushAction()\n {\n $em = $this->getDoctrine()->getManager();\n $entities = $em->getRepository('OjsUserBundle:EventLog')->findAll();\n\n foreach ($entities as $entity)\n $em->remove($entity);\n\n $em->flush();\n\n $message = $this->get('translator')->trans('All records removed successfully!');\n $this->get('session')->getFlashBag()->add('success', $message);\n return $this->redirect($this->generateUrl('ojs_admin_event_log_index'));\n }", "function delete() {\n\t\t$sqlStatements = array();\n\t\t$sqlStatements[] = \"DROP TABLE IF EXISTS tags\";\n\t\t$sqlStatements[] = \"DROP TABLE IF EXISTS siteViews\";\n\t\texecuteSqlStatements($sqlStatements);\n\t}", "function __destruct() {\n\t\t// print to log files\n\t\tif (TIMERS_FILE) {\n\t\t\t$data = json_encode(self::$results_all());\n\t\t\tif ($data != \"[]\") {\n\t\t\t\t$file = $_SERVER['DOCUMENT_ROOT'].'/timers.txt';\n\t\t\t\tfile_put_contents($file, \"\\n\".$_SERVER['REQUEST_TIME'].\" (\".date('r', $_SERVER['REQUEST_TIME']).\")\\n\", FILE_APPEND);\n\t\t\t\tfile_put_contents($file, $data, FILE_APPEND);\n\t\t\t}\n\t\t}\n\t}", "function process_link_action() {\n global $catpdf_templates;\n if (isset($_GET['catpdf_action']) && $_GET['catpdf_action'] == 'delete') {\n $catpdf_templates->delete_template($_GET['template']);\n }\n }", "public function testRemovePageWhenDeleted()\n {\n\n // Add a public page.\n $page = $this->_simplePage(true);\n\n // Delete.\n $page->delete();\n\n // Should remove Solr document.\n $this->_assertNotRecordInSolr($page);\n\n }", "function post_deleteFromDB() {\n\n if ((isset($this->input['_no_history']) && $this->input['_no_history'])\n || (!static::$logs_for_item_1\n && !static::$logs_for_item_2)) {\n return;\n }\n\n $item1 = $this->getConnexityItem(static::$itemtype_1, static::$items_id_1);\n $item2 = $this->getConnexityItem(static::$itemtype_2, static::$items_id_2);\n\n if (($item1 !== false)\n && ($item2 !== false)) {\n\n if ($item1->dohistory\n && static::$logs_for_item_1) {\n $changes[0] = '0';\n $changes[1] = addslashes($this->getHistoryNameForItem1($item2, 'delete'));\n $changes[2] = \"\";\n\n Log::history($item1->getID(), $item1->getType(), $changes, $item2->getType(),\n static::$log_history_1_delete);\n }\n\n if ($item2->dohistory\n && static::$logs_for_item_2) {\n $changes[0] = '0';\n $changes[1] = addslashes($this->getHistoryNameForItem2($item1, 'delete'));\n $changes[2] = \"\";\n Log::history($item2->getID(), $item2->getType(), $changes, $item1->getType(),\n static::$log_history_2_delete);\n }\n }\n\n }", "public function delete(): void\n {\n $this->record(new AgendaWasDeleted($this->identity));\n }" ]
[ "0.62720513", "0.5986256", "0.5867979", "0.5821402", "0.57780766", "0.57658535", "0.5730903", "0.5688219", "0.5639611", "0.55539846", "0.5406664", "0.5387227", "0.5372039", "0.5370422", "0.5329571", "0.53178877", "0.53115416", "0.5309778", "0.53015274", "0.5290822", "0.525617", "0.52422196", "0.5204908", "0.5197672", "0.51879275", "0.51666373", "0.5137495", "0.5122437", "0.5122212", "0.5120475", "0.5113095", "0.5112518", "0.5100391", "0.50893825", "0.50893337", "0.5079195", "0.5053591", "0.5051098", "0.50499725", "0.5039325", "0.50242114", "0.50047207", "0.5002028", "0.49937332", "0.49912336", "0.4961076", "0.4954793", "0.49479595", "0.4927725", "0.49241364", "0.4920991", "0.49036658", "0.4899487", "0.48935753", "0.4888033", "0.48854506", "0.487515", "0.48645046", "0.4853133", "0.48419324", "0.4830454", "0.4826307", "0.48213655", "0.4816883", "0.481337", "0.47941825", "0.4792234", "0.4791256", "0.478488", "0.4779982", "0.47781333", "0.47766808", "0.47741798", "0.4767931", "0.47673702", "0.4762578", "0.47604054", "0.47511166", "0.47511166", "0.47415733", "0.47404715", "0.47285986", "0.4727364", "0.4724803", "0.47231802", "0.47196466", "0.47168496", "0.47142825", "0.47109792", "0.46990713", "0.469686", "0.46943125", "0.46929672", "0.46904504", "0.46860778", "0.46828565", "0.46827096", "0.46797264", "0.46784586", "0.4674409" ]
0.6097203
1
Table level events Recordset Selecting event
function Recordset_Selecting(&$filter) { // Enter your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EventsTable()\n {\n return \n $this->ItemsTableDataGroup\n (\n \"\",\n 0,\n $this->ApplicationObj()->EventGroup,\n $this->ApplicationObj()->Events\n );\n }", "function logs_tbl()\n {\n // SELECT \n }", "public function getEvent($id)\r\n {\r\n $select = $this->gateway->select(array('id' => $id));\r\n \r\n \r\n foreach ($select as $rows) {\r\n $rowset = array(\r\n 'event_name' => $rows['event_name'],\r\n 'event_description' => $rows['event_description'],\r\n 'start_date' => $rows['start_date'],\r\n 'end_date' => $rows['end_date'],\r\n );\r\n }\r\n \r\n return $rowset;\r\n }", "function afficherevent(){\r\n\t\t$sql=\"SElECT * From eventt\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t\t$liste=$db->query($sql);\r\n\t\t\treturn $liste;\r\n\t\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '. $e->getMessage());\r\n \t\t\t\t\t}\t\r\n\t}", "function Recordset_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function Recordset_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function Recordset_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t}", "function selectEvent($id)\n{\n require_once(\"model/database.php\");\n $query = \"SELECT events.*, images.path, lans.start AS 'minTime', lans.end AS 'maxTime', lans.name AS 'lan' FROM events LEFT JOIN lan_contains_event AS j ON j.event_id = events.id LEFT JOIN lans ON lans.id = j.lan_id LEFT JOIN images ON images.id = events.image_id WHERE events.id = :id LIMIT 1;\";\n return executeQuerySelect($query, createBinds([[\":id\", $id, PDO::PARAM_INT]]))[0] ?? null;\n}", "function select($query){\n $select = $this->db->prepare($query);\n $select->bindParam('id_event', $this->id_event, PDO::PARAM_STR);\n $select->bindParam('eventName', $this->eventName, PDO::PARAM_STR);\n $select->bindParam('relay', $this->relay, PDO::PARAM_INT);\n $select->bindParam('type', $this->type, PDO::PARAM_STR);\n $select->bindParam('weight', $this->weight, PDO::PARAM_INT);\n $select->execute();\n return $select->fetchAll(PDO::FETCH_ASSOC);\n }", "private function _getEventData()\n {\n $query = $this->app->query->newSelect();\n $query->cols(['*'])\n ->from('events')\n ->orderBy(['event_date desc', 'post_date desc'])\n ->limit(3);\n\n return $this->app->db->fetchAll($query);\n }", "function selectAllEvents($date){\n\n\n $selectAllEventsQuery=\"SELECT * FROM events WHERE date ='$date'\";\n \trequire_once 'model/dbConnector.php';\n\n \t$result = executeQuerySelect($selectAllEventsQuery);\n\n return $result;\n}", "abstract function selectHook();", "public function select($table, $fields, $where, $order, $start);", "function allEventRowsForDocument($doc,$table)\r{\r\r\tglobal $db_conn;\r\t$query = \"SELECT * FROM $table WHERE tmlfile = '$doc'\";\r\t//if ($table == 'tb_events') {\r\t//\t$query = \"SELECT * FROM $table WHERE tmlfile = '$doc' order by sentid\"; }\r\t// echo $query;\r\t$result = mysql_query($query, $db_conn);\r\t$rows = Array();\r\tif (mysql_errno()) {\r\t\tprintMySqlErrors($query,\"allLinkRowsForDocument($doc,$table)\"); }\r\telse {\r\t\twhile ($row = mysql_fetch_assoc($result)) {\r\t\t\t$rows[] = $row; }}\r\treturn $rows; \r}", "function eventclass_bill_record()\n\t{\n\t\t$this->events[\"BeforeDelete\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "function selectRecord($table,$field,$where) {\n\t\tif($where!='')\n\t\t\t$where= ' WHERE '.$where;\n \t$query = \"SELECT \".$field.\"\n \t FROM \".$this->tablePrefix .$table.$where ;\n\t\t // echo $query.'<br>';exit;\n $res = $this->execute($query);\n \treturn $this->fetchRow($res);\n }", "function bindEventObject()\r\n\t{\r\n JTable::addIncludePath( JPATH_ADMINISTRATOR . '/components/com_calendar/tables' );\r\n\t\t$table = JTable::getInstance( 'Events', 'CalendarTable' );\r\n\t\t\r\n\t if (!empty($this->event_id))\r\n\t {\r\n\t $table->load( $this->event_id );\r\n\t }\r\n\t \r\n\t\t$table->trimProperties();\r\n\t\t\r\n\t\t$properties = $this->getProperties();\r\n\t\t$table_properties = $table->getProperties();\r\n\r\n\t\tforeach ($table_properties as $prop=>$value)\r\n\t\t{\r\n\t\t if (!array_key_exists($prop, $properties))\r\n\t\t {\r\n\t\t $this->$prop = $table->$prop;\r\n\t\t }\r\n\t\t}\r\n\t}", "public function selecteventmaster()\n\t{\n\t\t$result = mysql_query(\"SELECT * FROM eventmaster\") or die(mysql_error());\n\t\treturn $result;\n\t}", "public function select();", "public function select();", "public function select();", "function Recordset_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t\t$r = Security()->CurrentUserLevelID();\n\t\tif($r==4)\n\t\t{\n\t\t\tew_AddFilter($filter, \"TGLREG >= (CURDATE() - interval 6 day)\");\n\t\t}\n\t}", "public function selectRow($row);", "public function Do_select_Example1(){\n\n\t}", "public function testQueryEvents()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "protected function getTableFromEvent(Doctrine_Event $event)\n {\n $treatedRecord = $event->getInvoker();\n if ($treatedRecord instanceof Doctrine_Record) {\n $recordClass = get_class($treatedRecord);\n return Doctrine::getTable($recordClass);\n } else if ($treatedRecord instanceof Doctrine_Table) {\n return $treatedRecord;\n } else {\n throw new LogicException(\"Zikula_Doctrine_Template_Listener_Base::getTableFromEvent() unknown invoker: \"+ get_class($treatedRecord));\n }\n }", "public function getEventObject(){\n $eventTimeID = $this->getID();\n\n $prepared = self::adhocQuery(function( \\PDO $connection ) use ($eventTimeID){\n $statement = $connection->prepare(\"\n SELECT sev.id FROM SchedulizerEvent sev\n JOIN SchedulizerEventTime sevTime ON sevTime.eventID = sev.id\n WHERE sevTime.id = :eventTimeID\n \");\n $statement->bindValue(\":eventTimeID\", $eventTimeID);\n return $statement;\n });\n\n return Event::getByID($prepared->fetch(\\PDO::FETCH_COLUMN));\n }", "function ReadEvents()\n {\n $this->ApplicationObj()->Events=\n $this->Sql_Select_Hashes\n (\n $this->ApplicationObj()->HtmlEventsWhere(),\n array(),\n array(\"StartDate\",\"ID\")\n );\n \n $this->ApplicationObj()->Events=array_reverse($this->ApplicationObj()->Events);\n }", "function selectEventSpecific($name, $start, $end)\n{\n require_once(\"model/database.php\");\n $query = \"SELECT * FROM events WHERE name LIKE :name AND start LIKE :start AND end LIKE :end LIMIT 1\";\n return executeQuerySelect($query, createBinds([[\":name\", $name], [\":start\", $start], [\":end\", $end]]))[0] ?? null;\n}", "public function listEvents()\n\t{\n\n\t\t$table=CaseItemModel::getInstance()->getTable();\n $pTable=ProcessModel::getInstance()->getTable();\n $piTable=ProcessItemModel::getInstance()->getTable();\n \n\t\t$status =\"status not in ('Complete','Terminated') \";\n \n\t\t$sql=\"select 'Case Item' as source,id,null as processName, processNodeId,caseId,type,subType,label,timer,timerDue,message,signalName \"\n . \" from $table \"\n . \" where $status\"\n .\" and subType in('timer','message','signal')\";\n\t\t$arr1= $this->db->select($sql);\n\n\t\t$sql=\"select 'Process Item' as source ,p.processName as processName, pi.id as id,pi.processNodeId,null as caseId,pi.type,subType,label,timer,timerDue,message,signalName \"\n . \" from $piTable pi\n join $pTable p on p.processId=pi.processId\n where subType in('timer','message','signal')\";\n \n \n\t\t$arr2= $this->db->select($sql);\n\t\t$results= array_merge($arr1,$arr2);\n\n\t\treturn $results;\n\t}", "private function getEvents () \n\n\t\t{\n\t\t\t $dbs = new DB ( $this->config['database'] );\n $c = $dbs->query (\"SELECT * FROM tbl_events_record WHERE org_id = '\" . $this->c . \"'\");\n\t\t\t if ( count ( $c ) ) {\n\t\t\t\t$this->result['data']['id'] = trim ( $this->c );\n\t\t\t\t$this->result['data']['events'] = $c[0]['events'];\n\t\t\t\t$this->result['data']['date'] = $c[0]['date_rec'];\n\t\t\t } else \n\t\t\t\t$this->result['data']['result'] = \"Not found [error code:100:101]\";\n\n\t\t\t $dbs->CloseConnection ();\n\t\t\t\n\t\t \treturn;\n\t\t}", "function GetOneEvents($event_id)\n\t{\n\t\t$sql = \"SELECT * FROM event WHERE event_id = '\".$event_id.\"'\";\n\t\t$data = CDBCon::GetInstance()->GetRow($sql);\n\t\treturn $data;\n\t}", "public function select() {\r\n\t\t//$src = Dbi_Source::GetModelSource($this);\r\n\t\t//return $src->select($this);\r\n\t\treturn $this->source->select($this);\r\n\t}", "public function createEventTable()\n {\n $table = $this->getEventTable();\n $recurr = $this->getRecurrenceTable();\n if (empty($table) || empty($recurr)) {\n return PHPWS_Error::get(CAL_CANNOT_MAKE_EVENT_TABLE, 'calendar',\n 'Calendar_Schedule::createEventTable');\n }\n\n $template['TABLE'] = $table;\n $template['RECURR_TABLE'] = $recurr;\n $template['INDEX_NAME'] = str_replace('_', '', $table) . '_idx';\n $template['RECURR_INDEX_NAME'] = str_replace('_', '', $recurr) . '_idx';\n\n $file = PHPWS_SOURCE_DIR . 'mod/calendar/inc/event_table.sql';\n\n if (!is_file($file)) {\n return PHPWS_Error::get(PHPWS_FILE_NOT_FOUND, 'calendar',\n 'Calendar_Schedule::createEventTable', $file);\n }\n\n $query = PHPWS_Template::process($template, 'calendar', $file, true);\n return PHPWS_DB::import($query);\n }", "function getEvents()\n {\n //1. Define the query\n $sql = \"SELECT * FROM events\";\n\n //2. Prepare the statement\n $statement = $this->_dbh->prepare($sql);\n\n //4. Execute the query\n $statement->execute();\n\n //5. Process the results (get OrderID)\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getTableName()\n\t\t{\n\t\t\treturn 'cfe_event';\n\t\t}", "function update_events ($eID, &$set_arr) {\n\t// Initialize variables\n\t$errArr=init_errArr(__FUNCTION__);\n\t// Construct passing parameters \n\t$table_name = \"events\";\n\t$key_arr = array();\n\t$key_1 = \"eID\"; // this is key column from events table\n\t$key_arr [$key_1] = $eID; // set up value to the key\n\t\n\t// call the universal function to do the update\n\t$errArr = update_any_table($table_name, $key_arr, $set_arr) ;\n\t\t\n\treturn $errArr;\n}", "private function _getEventRow($event, $input = 'alias')\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$table = JTable::getInstance('Event', 'JticketingTable', array('dbo', $db));\n\t\t$table->load(array($input => $event));\n\n\t\treturn $table;\n\t}", "function testSelect()\r\n\t{\r\n\t\t$data = new Data();\r\n\t\t$data->setTableAlias( \"d\" );\r\n\r\n\t\t$dic = new Dictionary();\r\n\t\t$dic->setTableAlias( \"dic\" );\r\n\t\t\r\n\t\t$stm = new SQLStatementSelect( $data );\r\n\t\t$stm->setExpression(\r\n\t\t\tnew ExprAND(\r\n\t\t\t\tnew ExprEQ( $data->tag_value(), 1),\r\n\t\t\t\t new ExprEQ( $data->tag_date(), 1),\r\n\t\t\t\t new ExprEQ( $data->tag_string(), \"\"),\r\n\t\t\t\t new ExprEQ( $data->tag_text(), \"\"),\r\n\t\t\t\t new ExprEQ( $data->tag_text(), null)\r\n\t\t\t\t) );\r\n\t\t\r\n\t\t$stm->addOrder( $data->tag_date() );\r\n\t\t$stm->addGroup( $data->tag_date() );\r\n\t\t$stm->addColumn( $dic->tag_text(\"dic_text1\") );\r\n\t\t$stm->addColumn( $dic->tag_text(\"dic_text\") ); //same and alias\r\n\t\t$stm->addJoin( $data->key_dictionary_id($dic) );\r\n\r\n\t\t$query = $stm->generate(new MysqlGenerator());\r\n\t\t\r\n\t\t$expected = \"SELECT\"\r\n\t\t .\" `d`.`data_id` AS `data_id`,\"\r\n\t\t\t.\" `d`.`date` AS `date`,\"\r\n\t\t\t.\" `d`.`value` AS `value`,\"\r\n\t\t\t.\" `d`.`string` AS `string`,\"\r\n\t\t\t.\" `d`.`text` AS `text`,\"\r\n\t\t\t.\" `d`.`enum` AS `enum`,\"\r\n\t\t\t.\" `d`.`blob` AS `blob`,\"\r\n\t\t\t.\" `d`.`real` AS `real`,\"\r\n\t\t\t.\" `d`.`dictionary_id` AS `dictionary_id`,\"\r\n\t\t\t.\" `dic`.`text` AS `dic_text1`,\"\r\n\t\t\t.\" `dic`.`text` AS `dic_text`\"\r\n\t\t\t.\" FROM `t_data` AS `d` \"\r\n\t\t\t.\"LEFT JOIN `t_dictionary` AS `dic` ON (`dic`.`dictionary_id` = `d`.`dictionary_id`) \"\r\n\t\t\t.\"WHERE ((`d`.`value` = 1)\"\r\n\t\t\t.\" AND (`d`.`date` = '1970-01-01 03:00:01')\"\r\n\t\t\t.\" AND (`d`.`string` = '')\"\r\n\t\t\t.\" AND (`d`.`text` = '')\"\r\n\t\t\t.\" AND (`d`.`text` IS NULL)) \"\r\n\t\t\t.\"GROUP BY `d`.`date` \"\r\n\t\t\t.\"ORDER BY `d`.`date` ASC\"\r\n\t\t\t;\r\n\t\t\r\n\t\tTS_ASSERT_EQUALS( $expected, $this->ws($query) );\r\n\t}", "function getEvent($idEvent)\n{\n require_once 'model/dbConnector.php';\n $connexion = openDBConnexion();\n $request = $connexion->prepare('SELECT * FROM bdd_satisfevent.events WHERE idEvents = ?');\n $request->execute(array($idEvent));\n $result = $request->fetchAll();\n return $result[0];\n}", "function LoadRow() {\r\n\t\tglobal $conn, $Security, $fs_multijoin_v;\r\n\t\t$sFilter = $fs_multijoin_v->KeyFilter();\r\n\r\n\t\t// Call Row Selecting event\r\n\t\t$fs_multijoin_v->Row_Selecting($sFilter);\r\n\r\n\t\t// Load SQL based on filter\r\n\t\t$fs_multijoin_v->CurrentFilter = $sFilter;\r\n\t\t$sSql = $fs_multijoin_v->SQL();\r\n\t\t$res = FALSE;\r\n\t\t$rs = ew_LoadRecordset($sSql);\r\n\t\tif ($rs && !$rs->EOF) {\r\n\t\t\t$res = TRUE;\r\n\t\t\t$this->LoadRowValues($rs); // Load row values\r\n\r\n\t\t\t// Call Row Selected event\r\n\t\t\t$fs_multijoin_v->Row_Selected($rs);\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\treturn $res;\r\n\t}", "private function _readSubTableData() {}", "function selectEventFromDatabase($database) {\r\n\t\t//mysql statement\r\n\t\t$statement = \"SELECT * FROM reminders WHERE email='$this->email' && phoneNumber='$this->phone_number' && eventName='$this->name'\";\r\n\t\t$query = $database->query($statement) or die(\"Unable to select event from database. \" . $database->error);\r\n\t\treturn $query;\r\n\t}", "function selectRow($table,$field,$where) {\n\t\tif($where!='')\n\t\t\t$where= ' WHERE '.$where;\n \t$query = \"SELECT \".$field.\"\n \t FROM \".$this->tablePrefix .$table.$where ;\n $res = $this->execute($query);\n \treturn $this->fetchOne($res);\n }", "public function dumpEventTable(){\n\t\t$this->db->select('name, id, CAST(status AS UNSIGNED) AS status');\n\t\t$this->db->from('event');\n\t\t$this->db->order_by('creationDate', 'DESC');\n\t\t$query = $this->db->get();\n\t\treturn $query->result_array();\n\t}", "public function getEvent();", "public function getViaTableCondition();", "public function getOtherEvents();", "abstract public function getEventName();", "function getEventById()\n\t{\n\t\t//echo \" From ByID: \" . $this->_id;\n\t\t$eventId = 1;\n\t\t$db\t\t= JFactory::getDbo();\n\t\t$query\t= $db->getQuery(true);\n\n\t\t$query->select(\"DATE_FORMAT(dt_event_time, '%d.%m.%Y')\");\n\t\t$query->select(\"DATE_FORMAT(dt_event_time, '%H:%i')\");\n\t\t$query->select(\"DATE_FORMAT(dt_event_end, '%H:%i')\");\n\t\t$query->select($db->nameQuote('t1.s_category'));\n\t\t$query->select($db->nameQuote('t1.s_place'));\n\t\t$query->select($db->nameQuote('t1.s_price'));\n\t\t$query->select($db->nameQuote('t1.idt_drivin_event'));\n\t\t$query->select($db->nameQuote('t1.n_num_part'));\n\t\t$query->select('t1.`n_num_part` - (SELECT COUNT(t2.`idt_drivin_event_apply`) ' .\n\t\t\t' FROM #__jevent_events_apply as t2 ' .\n\t\t\t' WHERE t2.`idt_drivin_event` = t1.`idt_drivin_event` AND t2.dt_cancel is null) as n_num_free');\n\t\t$query->from('#__jevent_events as t1');\n\t\t$query->where($db->nameQuote('idt_drivin_event') . '=' . $this->_id);\n\n\t\t$db->setQuery($query);\n\t\tif ($link = $db->loadRowList()) {\n\t\t}\n\t\t//echo \" From ByID: \" . count($link);\n\t\t//echo \" From ByID: \" . $query;\n\t\treturn $link;\n\t}", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "function qselect(){\r\n\t\t\r\n\t\r\n\t}", "function fetch_events($event_id=SELECT_ALL_EVENTS, $sdate_time=MIN_DATE_TIME, $edate_time=MAX_DATE_TIME,\n\t\t$date_time_option=SELECT_DT_BOTH, $privacy=PRIVACY_ALL, $tag_name=NULL) {\n\tglobal $cxn;\n\t// Initialize variables\n\t$ret_events= NULL;\n\t\n\t$errArr=init_errArr(__FUNCTION__);\n\ttry {\n\t\t// initialize variables\n\t\t$where = ZERO_LENGTH_STRING;\n\t\t$param_types = ZERO_LENGTH_STRING;\n\t\t$param_values = array();\n\t\t$sql_and = \" \"; \n\t\t// Set up event id selection\n\t\tif ($event_id != NULL AND $event_id != SELECT_ALL_EVENTS) {\n\t\t\t$where = $where . $sql_and . \" eID = ? \";\n\t\t\t$sql_and = \" AND \"; // set up \"AND\" value tobe used in following settings\n\t\t\t$param_types = $param_types . \"i\"; // add parameter type\n\t\t\t$param_values [] = $event_id; // add parameter value\n\t\t}\n\t\t// Set up date and time selection\n\t\tif (($sdate_time != NULL AND $sdate_time != MIN_DATE_TIME) OR\n\t\t\t\t($edate_time != NULL AND $edate_time != MAX_DATE_TIME)) {\n\t\t\t// Check and set up if need to compare both (start and end time) or just start or end time\n\t\t\t// Set up Start date\n\t\t\tif ($date_time_option == SELECT_DT_START) {\n\t\t\t\t$where = $where . $sql_and .\n\t\t\t\t\" (sdate_time BETWEEN ? AND ? ) \";\n\t\t\t\t$param_types = $param_types . \"ss\"; // add parameter type\n\t\t\t\tarray_push($param_values, $sdate_time, $edate_time); // add parameter value\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Set up end date\n\t\t\t\tif ($date_time_option == SELECT_DT_END) {\n\t\t\t\t\t$where = $where . $sql_and .\n\t\t\t\t\t\" (edate_time BETWEEN ? AND ? ) \";\n\t\t\t\t\t$param_types = $param_types . \"ss\"; // add parameter type\n\t\t\t\t\tarray_push($param_values, $sdate_time, $edate_time); // add parameter value\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$where = $where . $sql_and .\n\t\t\t\t\t\" ( (sdate_time BETWEEN ? AND ? )\"\n\t\t\t\t\t\t\t. \" OR \" .\n\t\t\t\t\t\t\t\" (edate_time BETWEEN ? AND ? ) )\";\n\t\t\t\t\t$param_types = $param_types . \"ssss\"; // add parameter type\n\t\t\t\t\tarray_push($param_values,$sdate_time, $edate_time, $sdate_time, $edate_time); // add parameter value\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sql_and = \" AND \"; // set up \"AND\" value tobe used in following settings\n\t\t}\n\t\t\n\t\t// Set up privacy \n\t\tif ($privacy != NULL AND $privacy != PRIVACY_ALL) {\n\t\t\t$where = $where . $sql_and . \" privacy = ? \";\n\t\t\t$sql_and = \" AND \"; // set up \"AND\" value tobe used in following settings\n\t\t\t$param_types = $param_types . \"s\"; // add parameter type\n\t\t\t$param_values [] = $privacy; // add parameter value\n\t\t}\n\t\t//\n\t\t//\n\t\tif ($tag_name != NULL) {\n\t\t\t$where = $where . $sql_and . \" ( tag_1=? OR tag_2=? OR tag_3=? OR tag_4=? OR tag_5=? OR tag_6=? ) \";\n\t\t\t$sql_and = \" AND \"; // set up \"AND\" value tobe used in following settings\n\t\t\t$i = 0;\n\t\t\tdo {\n\t\t\t\t$param_types = $param_types . \"s\" ; // add parameter type\n\t\t\t\t$param_values [] = $tag_name; // add parameter value\n\t\t\t\t$i++;\n\t\t\t} while ($i < 6);\n\t\t}\n\t\t// Add WHERE keyword\n\t\tif (trim($where) !== ZERO_LENGTH_STRING) {\n\t\t\t$where = \" WHERE \" . $where;\n\t\t}\n\t\t// build sqlstring \n\t\t$sqlString = \n\t\t \"SELECT * FROM events_all_v \"\n\t\t \t\t. $where .\n\t\t \" ORDER BY sdate_time, edate_time, eID\";\n\t\t// prepare statement\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\t\t\t\n\t\t// bind parameters\n\t\t// Create array of types and their values\n\t\t$params=array_merge( array($param_types), $param_values);\n\t\t\n\t\tif (count($param_values) > 0) {\n\t\t\tcall_user_func_array ( array($stmt, \"bind_param\"), ref_values($params) );\n\t\t}\n\t\t// execute statement\n\t\t$stmt->execute();\n\t\t// Store result\n\t\t/* Bind results to variables */\n\t\tbind_array($stmt, $row);\n\t\twhile ($stmt->fetch()) {\n\t\t\t$ret_events[]=cvt_to_key_values($row);\n\t\t}\n\t}\n\tcatch (mysqli_sql_exception\t$err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error selecting events, event id: \" . $event_id .\n\t\t\" Date time: \" . $start_date_time . \" \" . $end_date_time .\n\t\t\" Date time option: \" . $date_time_option . \" privacy: \" . $privacy;\n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn array($errArr, $ret_events);\n}", "function selectEventsWithName($name)\n{\n require_once(\"model/database.php\");\n $query = \"SELECT * FROM events WHERE events.name LIKE :name ;\";\n return executeQuerySelect($query, createBinds([[\":name\", $name]]));\n}", "function event_info($dbObj, $event_id, $error_add = \"\") {\n\n\t$sql = \"SELECT * FROM events WHERE id=$event_id\";\n\t\n\t$res = $dbObj->getRow($sql, DB_FETCHMODE_ASSOC);\n\t\n\tif (DB::isError($res)) {\n\t\t$error_add = \" ($error_add)\";\n\t\tdbError(\"Could not retrieve event info$error_add\" . print_r($_SESSION), $res, $sql);\n\t}\n\t \n\treturn $res;\n\t\n}", "public function showEventsTable() {\r\n\t\t$stmt = $this->connect()->query(\"SELECT * FROM event\");\r\n\t\techo \"<h3>Event Table</h3>\";\r\n\t\techo \"<table><tr><td>\" . \"id\" . \"</td><td>\" . \"competition_id\" . \"</td><td>\" . \"name\" . \"</td><td>\" . \"score\" . \"</td><td>\" . \"time\" . \"</td><td>\" . \"tie_break\" . \"</td></tr>\";\r\n\t\twhile ($row = $stmt->fetch()) {\r\n\t\t\techo \"<tr><td>\" . $row['id'] . \"</td><td>\" . $row['competition_id'] . \"</td><td>\" . $row['name'] . \"</td><td>\" . $row['score'] . \"</td><td>\" . $row['time'] . \"</td><td>\" . $row['tie_break'] . \"</td></tr>\"; \r\n\t\t}\r\n\t\techo \"</table>\";\r\n\t}", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "public function getEventById($id){\n $this->db->query('SELECT * FROM events WHERE id = :id');\n $this->db->bind(':id', $id);\n\n $row = $this->db->single();\n return $row;\n }", "function fetch_repeat_events ($event_id, $sdate_time=MIN_DATE_TIME, $fetch_option=FETCH_ALL) {\n\tglobal $cxn;\n\t// Initialize variables\n\t$repeat_events = NULL;\n\n\t$errArr=init_errArr(__FUNCTION__);\n\ttry\n\t{\n\t\t// Set up WHERE condition depending on passed parameters\n\t\tif ($fetch_option==FETCH_ALL) {\n\t\t\t$where = \" AND sdate_time >= ? \";\n\t\t}\n\t\telse {\n\t\t\t$where = \" AND sdate_time = ? \";\n\t\t}\n\t\t// Sql String\n\t\t$sqlString = \"SELECT *\n\t\t\t\t\t FROM repeat_events\n\t\t\t\t WHERE event_id = ?\"\n\t\t\t \t. $where .\n\t\t\t \t\" ORDER BY sdate_time \";\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\t$stmt->bind_param(\"is\", $event_id, $sdate_time);\n\t\t\n\t\t$stmt->execute();\n\t\t// Store result\n\t\t/* Bind results to variables */\n\t\tbind_array($stmt, $row);\n\t\twhile ($stmt->fetch()) {\n\t\t\t$repeat_events[]=cvt_to_key_values($row);\n\t\t}\n\n\t}\n\tcatch (mysqli_sql_exception\t$err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error selecting from repeat_events, event_id: \" . $event_id . \"start date_time: \"\n\t\t\t\t .$sdate_time . \" fetch option: \" . $fetch_option; \n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn array($errArr, $repeat_events);\n}", "public function byEventId($eventId)\n {\n return $this->select('resultId', 'eventId', 'pilotId', 'position','notes')\n ->where('eventId', '=', $eventId)->orderBy('position', 'asc')->get();\n /*return $this->select('results.resultId', 'results.eventId', 'results.pilotId', 'results.position', 'rankings.*')\n ->join('rankings', 'rankings.pilotId', '=', 'results.pilotId')\n ->where([['results.eventId', '=', $eventId],['rankings.current','=',1]])\n ->orderBy('results.position', 'asc')->get();*/\n }", "function getJoinOnEventID()\n { \n return $this->getJoinOnFieldX('event_id');\n }", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "function SelectSQL() {\n\t\t$sFilter = $this->getSessionWhere();\n\t\tew_AddFilter($sFilter, $this->CurrentFilter);\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$this->Recordset_Selecting($sFilter);\n\t\t$sSort = $this->getSessionOrderBy();\n\t\treturn ew_BuildSelectSql($this->getSqlSelect(), $this->getSqlWhere(), $this->getSqlGroupBy(),\n\t\t\t$this->getSqlHaving(), $this->getSqlOrderBy(), $sFilter, $sSort);\n\t}", "public function recoverLogsbyEventId($eventid)\n\t{\n\t\t$select = parent::select()->where('idEvento =?',$eventid)->order('id asc');\n\t\t$res = parent::fetchAll($select)->toArray();\n\t\treturn $res;\n\t}", "function CreateTableEvent(){\r\n\t\t$qry = \"CREATE TABLE IF NOT EXISTS $this->tablename2 (\". \r\n\t\t\t\t\"Eid INT AUTO_INCREMENT,\".\r\n\t\t\t\t\"UuserName CHAR(255) NOT NULL,\".\r\n\t\t\t\t\"Evename VARCHAR(255) NOT NULL,\".\r\n\t\t\t\t\"EstartDate VARCHAR(20) NOT NULL,\".\r\n\t\t\t\t\"EendDate VARCHAR(20) NOT NULL,\".\r\n\t\t\t\t\"Eaddress VARCHAR(255) NOT NULL,\".\r\n\t\t\t\t\"Ecity VARCHAR(50) NOT NULL,\".\r\n\t\t\t\t\"Estate CHAR(10) NOT NULL,\".\r\n\t\t\t\t\"Ezip INT(5) NOT NULL,\".\r\n\t\t\t\t\"EphoneNumber VARCHAR(50),\".\r\n\t\t\t\t\"Edescription VARCHAR(500) NOT NULL,\".\r\n\t\t\t\t\"Etype VARCHAR(26) NOT NULL,\".\r\n\t\t\t\t\"Ewebsite VARCHAR(500) NOT NULL,\".\r\n\t\t\t\t\"Ehashtag CHAR(255),\".\r\n\t\t\t\t\"Efacebook CHAR(255),\".\r\n\t\t\t\t\"Etwitter CHAR(255),\".\r\n\t\t\t\t\"Egoogle CHAR(255),\".\r\n\t\t\t\t\"Eflyer CHAR(255),\".\r\n\t\t\t\t\"Ebanner CHAR(255),\".\r\n\t\t\t\t\"Eother CHAR(255),\".\r\n\t\t\t\t\"EtimeStart CHAR(255),\".\r\n\t\t\t\t\"EtimeEnd CHAR(255),\".\r\n\t\t\t\t\"Elat DECIMAL(10,6),\".\r\n\t\t\t\t\"Elong DECIMAL(10,6),\".\r\n\t\t\t\t\"Erank CHAR(255),\".\r\n\t\t\t\t\"Edisplay INT(1),\".\r\n\t\t\t\t\"PRIMARY KEY(Eid, UuserName)\".\r\n\t\t\t\");\";\r\n\r\n\t\tif(!mysql_query($qry, $this->connection)){\r\n\t\t\t$this->HandleDBError(\"Error creating the table \\nquery was\\n $qry\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "function ShowEvents()\n {\n $this->ReadEvents();\n echo\n $this->H(1,$this->MyLanguage_GetMessage(\"Events_Table_Title\")).\n $this->EventsHtmlTable(),\n \"\";\n }", "public function getDataById($table = null, $id = null){\n $stmt = $this->conn->prepare(\"SELECT * FROM \".$table.\" WHERE evenement_id ='\".$id.\"'\"); \n $stmt->execute();\n $stmt->setFetchMode(PDO::FETCH_ASSOC);\n $events = $stmt->fetchAll();\n return $events[0];\n }", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "function current_event($offset = 0)\n{\n return XPSPL::instance()->current_event($offset);\n}", "public function select($table_name, $fields = array(), $where = array(), $order_by = '')\r\n {\r\n }", "public function getTablesListening() {}", "function getCurrentEvents()\n {\n //1. Define the query\n $sql = \"SELECT * FROM events WHERE starttime < CURRENT_DATE && event_complete != 1 ORDER BY starttime\";\n\n //2. Prepare the statement\n $statement = $this->_dbh->prepare($sql);\n\n //4. Execute the query\n $statement->execute();\n\n //5. Process the results (get OrderID)\n return $statement->fetchAll(PDO::FETCH_ASSOC);\n }", "public function test_database_events_check()\n {\n $this->seeInDatabase('events', ['event_name' => 'Test Event1']);\n }", "function view_new(){\n echo \"<tr onclick='record.select(this)' id='{$this->entity->name}'>\";\n //\n //loop through the column and out puts its td element.\n foreach ($this->entity->columns as $col){\n //\n //Get the tds for every column\n echo $col->view();\n }\n //\n echo \"</tr>\";\n }", "function getEventID() \n {\n return $this->getValueByFieldName('event_id');\n }", "public function Do_Allselect_Example1(){\n\n\t}", "public function selectAll()\n {\n $sql = \"SELECT idagenda, visita_idvisita, horario_idhorario, created, modified\n FROM \" . $this->schema . \".\" . $this->table;\n }", "protected static function select()\n {\n }", "public function get_events_table_name() {\n\t\treturn $this::$dbtable;\n\t}", "public function getEvents();", "public function getEvents();", "protected function configureTableSelection()\n {\n return [ 'Table1', 'Table2', '...' ];\n }", "public function select()\n {\n\n }", "function selecteditevent()\n\t{\n\t\t\n\t\n\t $id = $_REQUEST['id'];\n\t\t$timediff = $_REQUEST['timediff'];\n\t\n\t\t$eventdata = $this->TutEvent->find('first',array('conditions'=>array('TutEvent.id'=> $id )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t );\n\t\t\n\t\t$start_formatted_date = $eventdata['TutEvent']['start_date'];\n\t\t\n\t\t$cookie_year = date('Y', strtotime($start_formatted_date));\n\t\t$cookie_month = date('m', strtotime($start_formatted_date));\n\t\t$cookie_day = date('d', strtotime($start_formatted_date));\n\t\t\n\t\t$past_end_date = $eventdata['TutEvent']['end_date'];\n\t\t\n\t\t$timedifference = $timediff.\" minutes\";\n\t\t\n\t\t$end_formatted_date = date('Y-m-d H:i:s',strtotime($timedifference, strtotime($past_end_date)));\n\t\t\n\t\n\t\t$comparestart =\t$this->TutEvent->find('all',array('conditions' =>\n\t\t\t\t\t\t\t\t\t\t\t\t array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.id !='=>$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.start_date between ? and ?' => array($start_formatted_date,$end_formatted_date),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.tutor_id' => $this->Session->read('Member.memberid')),\n\t\t\t\t\t\t\t\t\t\t\t\t \t 'recursive' => -1\n\t\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\n\t\t\n\t\t$compareend =\t$this->TutEvent->find('all',array('conditions' =>\n\t\t\t\t\t\t\t\t\t\t\t array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.id !='=>$id,\n\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.end_date between ? and ?' => array($start_formatted_date,$end_formatted_date),\n\t\t\t\t\t\t\t\t\t\t\t\t\t'TutEvent.tutor_id' => $this->Session->read('Member.memberid')),\n\t\t\t\t\t\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t\t\t\t\t\t 'recursive' => -1\n\t\t\t\t\t\t\t\t\t\t\t ));\n\t\t\n\t\t\n\t\t\n\t\t\tif(count($comparestart) > 0 || count($compareend) > 0)\n\t\t\t{\n\t\t\t\t\t$x = 'allready';\n\t\t\t\t\n\t\t\t\t\t$resp = $x.','.$cookie_year.','.$cookie_month.','.$cookie_day;\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t\t$this->TutEvent->updateAll(array(\n\t\t\t\t\t'TutEvent.end_date' => \"'\" . $end_formatted_date . \"'\",\n\t\t\t\t\t), array(\n\t\t\t\t\t'TutEvent.id' => $id\n\t\t\t\t\t) //(conditions) where userid=schoolid\n\t\t\t\t\t);\n\t\t\t\t\n\t\t\t\t\t$x = 'ok';\n\t\t\t\t\n\t\t\t\t\t$resp = $x.','.$cookie_year.','.$cookie_month.','.$cookie_day;\n\t\t\t}\n\t\t\t\n\t\t/*\techo '<pre>';\n\t\t\tprint_r($_REQUEST);\n\t\t\tprint_r($comparestart);\n\t\t\tprint_r($compareend);\n\t\t\t\n\t\t\techo $timedifference.'<br/>';\n\t\t\techo $past_end_date.'<br/>';\n\t\t\techo $end_formatted_date.'<br/>';\n\t\t\t*/\n\t\t\t\n\t\t\t\n\t\t\techo $resp;\n\t\t\tdie;\n\t\t\t\n\t\t\n\t\t\n\t}", "public function viewEvents();", "function mSELECT(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$SELECT;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:116:3: ( 'select' ) \n // Tokenizer11.g:117:3: 'select' \n {\n $this->matchString(\"select\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "public function viewAllEvents();", "public function getNextEvents($table, $uid, $limit = 5)\n {\n $databaseConnection = HelperUtility::getDatabaseConnection();\n $now = DateTimeUtility::getNow();\n $now->setTime(0, 0, 0);\n return $databaseConnection->exec_SELECTgetRows('*', self::TABLE_NAME,\n 'start_date >= ' . $now->getTimestamp() . ' AND foreign_table=' . $databaseConnection->fullQuoteStr($table,\n self::TABLE_NAME) . ' AND foreign_uid=' . (int)$uid, '', 'start_date ASC, start_time ASC', $limit);\n }", "function EventsHtmlTable()\n {\n return \n $this->Html_Table\n (\n \"\",\n $this->EventsTable()\n );\n }", "public function dispalyEventsTable(){\n $sql=\"SELECT * FROM `events` ORDER BY `event_date` asc\";\n $result=$this->conn->query($sql);\n $rows=array();\n\n if($result->num_rows>0){\n while($displayEvent=$result->fetch_assoc()){\n $rows[]=$displayEvent;\n }\n return $rows;\n }else{\n return false;\n }\n\n }", "function LoadRow() {\n\t\tglobal $conn, $Security, $selection_grade_point;\n\t\t$sFilter = $selection_grade_point->KeyFilter();\n\n\t\t// Call Row Selecting event\n\t\t$selection_grade_point->Row_Selecting($sFilter);\n\n\t\t// Load SQL based on filter\n\t\t$selection_grade_point->CurrentFilter = $sFilter;\n\t\t$sSql = $selection_grade_point->SQL();\n\t\t$res = FALSE;\n\t\t$rs = ew_LoadRecordset($sSql);\n\t\tif ($rs && !$rs->EOF) {\n\t\t\t$res = TRUE;\n\t\t\t$this->LoadRowValues($rs); // Load row values\n\n\t\t\t// Call Row Selected event\n\t\t\t$selection_grade_point->Row_Selected($rs);\n\t\t\t$rs->Close();\n\t\t}\n\t\treturn $res;\n\t}", "public function allDatabaseEntrysForTableEventlogAction() {\r\n\t\ttry {\r\n\t\t\t$startDateFilterForDbRecords = strtotime($this->getModuleData('tx_extracache_manager_startDateFilterForDbRecords'));\r\n\t\t\t$stopDateFilterForDbRecords = strtotime($this->getModuleData('tx_extracache_manager_stopDateFilterForDbRecords'));\r\n\t\t\tif(is_integer($startDateFilterForDbRecords) === FALSE) {\r\n\t\t\t\t$startDateFilterForDbRecords = 0;\r\n\t\t\t}\r\n\t\t\tif(is_integer($stopDateFilterForDbRecords) === FALSE) {\r\n\t\t\t\t$stopDateFilterForDbRecords = 0;\r\n\t\t\t} else {\r\n\t\t\t\t$stopDateFilterForDbRecords += 86399;\r\n\t\t\t}\r\n\t\t\t$sqlWhere = '1=1';\r\n\t\t\tif($startDateFilterForDbRecords > 0) {\r\n\t\t\t\t$sqlWhere .= ' AND start_time >='.$startDateFilterForDbRecords;\r\n\t\t\t}\r\n\t\t\tif($stopDateFilterForDbRecords > 0) {\r\n\t\t\t\t$sqlWhere .= ' AND stop_time <='.$stopDateFilterForDbRecords;\r\n\t\t\t}\r\n\t\t\t$this->getView()->assign ( 'allDatabaseEntrysForTableEventlog', $this->getCacheDatabaseEntryRepositoryForTableEventlog()->query ($sqlWhere) );\r\n\t\t\treturn $this->getView()->render ( 'allDatabaseEntrysForTableEventlog' );\r\n\t\t} catch (Exception $e) {\r\n\t\t\treturn $this->showErrorMessage($e);\r\n\t\t}\r\n\t}", "public function getMappedIdRedcapFieldEvent()\r\n\t{\r\n\t\t// Query table\r\n\t\t$sql = \"select field_name, event_id from redcap_ddp_mapping \r\n\t\t\t\twhere project_id = \".$this->project_id.\" and is_record_identifier = 1 limit 1\";\r\n\t\t$q = db_query($sql);\t\t\r\n\t\t// Return boolean\r\n\t\tif (db_num_rows($q) > 0) {\r\n\t\t\treturn array(db_result($q, 0, 'field_name'), db_result($q, 0, 'event_id'));\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function getEventsArray($from,$to,$exc_entries){\n\t\t$select_fields = \t'tx_tdcalendar_events.*';\n\t\t$select_fields .=\t', tx_tdcalendar_categories.title as category';\n\t\t$select_fields .= \t', tx_tdcalendar_categories.color as catcolor';\n\t\t$select_fields .= \t', tx_tdcalendar_locations.location as location_name';\n\t\t$select_fields .= \t', tx_tdcalendar_organizer.name as organizer_name';\n\n\t\t$from_table =\t\t'((tx_tdcalendar_events'; \n\t\t$from_table .= \t\t' INNER JOIN tx_tdcalendar_categories';\n $from_table .= \t\t' ON tx_tdcalendar_events.category = tx_tdcalendar_categories.uid)';\n\t\t$from_table .= \t\t' LEFT JOIN tx_tdcalendar_locations';\n\t\t$from_table .= \t\t' ON tx_tdcalendar_events.location_id = tx_tdcalendar_locations.uid)';\n\t\t$from_table .= \t\t' LEFT JOIN tx_tdcalendar_organizer';\n\t\t$from_table .= \t\t' ON tx_tdcalendar_events.organizer_id = tx_tdcalendar_organizer.uid';\n\n\t\t$where_clause = \t\"((tx_tdcalendar_events.begin < '\".$from.\"' AND tx_tdcalendar_events.end >= '\".$from.\"')\";\n\t\t$where_clause .= \t\" OR (tx_tdcalendar_events.begin >= '\".$from.\"' AND tx_tdcalendar_events.begin < '\".$to.\"')\";\n\n\t\t$where_clause.= \t\" OR(event_type > 0 AND event_type < 5 AND ((begin < '\".$from.\"' AND rec_end_date = 0) OR (begin < '\".$from.\"' AND rec_end_date >= '\".$from.\"') )))\";\n\n\t\t$where_clause .= \t$this->enableFieldsCategories;\n\t\t$where_clause .=\t$this->enableFieldsEvents;\n\n\t\tif ($this->conf['currCat'] AND !$this->conf['hideCategorySelection'])\n\t\t\t$where_clause .= ' AND tx_tdcalendar_events.category = '.$this->conf['currCat'];\n\t\telse\n\t\t\t$where_clause .= \t$this->getCategoryQuery('tx_tdcalendar_events.category');\n\n\t\t$where_clause .=\t$this->getPagesQuery();\n\n\t\t$orderBy =\t\t\t'tx_tdcalendar_events.begin, tx_tdcalendar_events.uid';\n\n\t\t$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\n\t\t\t$select_fields,\n\t\t\t$from_table,\n\t\t\t$where_clause,\n\t\t\t$groupBy='',\n\t\t\t$orderBy,\n\t\t\t$limit=''\n\t\t);\n\n\t\treturn $this->makeArray($res, $from, $to, $exc_entries);\n\t}", "function fetch_child_events($parent_event_id) {\n\tglobal $cxn;\n\t// Initialize variables\n\t$events = NULL;\n\n\t$errArr=init_errArr(__FUNCTION__);\n\ttry\n\t{\n\t\t// Sql String\n\t\t$sqlString = \"SELECT *\n\t\t\t\tFROM events\n\t\t\t\tWHERE parent_event_id = ?\n\t\t\t\tORDER BY sdate_time, eID \";\n\t\t// Bind variables\n\t\t$stmt = $cxn->prepare($sqlString);\n\t\t$stmt->bind_param(\"i\", $parent_event_id);\n\n\t\t$stmt->execute();\n\n\t\t/* Bind results to variables */\n\t\tbind_array($stmt, $row);\n\t\twhile ($stmt->fetch()) {\n\t\t\t$events []=cvt_to_key_values($row);\n\t\t}\n\t}\n\tcatch (mysqli_sql_exception\t$err)\n\t{\n\t\t// Error settings\n\t\t$err_code=1;\n\t\t$err_descr=\"Error selecting events by parent event id: \" . $parent_event_id; \n\t\tset_errArr($err, $err_code, $err_descr, $errArr);\n\t}\n\t// Return Error code\n\t$errArr[ERR_AFFECTED_ROWS] = $cxn->affected_rows;\n\t$errArr[ERR_SQLSTATE] = $cxn->sqlstate;\n\t$errArr[ERR_SQLSTATE_MSG] = $cxn->error;\n\treturn array($errArr, $events);\n}", "public static function select($config)\n\t{\n\t\treturn self::new_instance_records()->select($config);\n\t}", "public function getevents()\n\t{\n\t$query = mysql_query(\"SELECT * from events ORDER BY eventid DESC\");\n $data_result = array();\n\t\t\tif($query)\n\t\t\t{\n\t\t\t\twhile ($row = mysql_fetch_array($query)) {\n\t\t\t\t\tarray_push($data_result, $row);\n\t\t\t\t}\n\t\t\t\treturn $data_result;\n\t\t\t\n\t\t\t\t\n\t\t\t} \n\t\t\n\t\telse\n\t\t{\n\t\t\t\n\t\t\treturn false;\n\t\t}\t\n \n\t}", "public function getEvent($id){\n\t\t$this->db->select('id,name,description');\n\t\t$this->db->from('event');\n\t\t$this->db->where('id',$id); \n\t\t\n\t\t$query = $this->db->get();\n\t\t$mediate = $query->result_array();\n\t\treturn $mediate[0];\n\t}" ]
[ "0.58868307", "0.5764944", "0.56804115", "0.5598736", "0.55737114", "0.55737114", "0.55737114", "0.5483271", "0.546499", "0.54234254", "0.53481054", "0.5288927", "0.528116", "0.5270597", "0.52539504", "0.5250941", "0.5233373", "0.52096486", "0.5189512", "0.5189512", "0.5189512", "0.5187628", "0.51851845", "0.5183289", "0.517618", "0.51756567", "0.5173561", "0.5168952", "0.5129846", "0.5096242", "0.5089099", "0.5083976", "0.5052905", "0.504781", "0.5044386", "0.5037088", "0.5026008", "0.50132", "0.5012042", "0.5007083", "0.49988118", "0.4989178", "0.49807355", "0.49796972", "0.49447924", "0.49360225", "0.49331048", "0.4928781", "0.48997217", "0.48947412", "0.4889771", "0.48852816", "0.48833647", "0.48816577", "0.48691583", "0.4866039", "0.48502693", "0.48502693", "0.48480538", "0.48460022", "0.48352847", "0.48308903", "0.48308128", "0.48308128", "0.4821165", "0.4804393", "0.48025134", "0.48009962", "0.47958204", "0.47952005", "0.47880703", "0.47853187", "0.47815335", "0.47727492", "0.4770163", "0.47660917", "0.47607478", "0.4758182", "0.47567058", "0.47525042", "0.47515678", "0.47515678", "0.47506863", "0.4748667", "0.4742578", "0.47403693", "0.47396237", "0.47347644", "0.47327328", "0.471991", "0.47063473", "0.47053653", "0.47039577", "0.4699118", "0.46968806", "0.46946493", "0.4686487", "0.46720603", "0.4671388" ]
0.55809563
5
Recordset Search Validated event
function Recordset_SearchValidated() { // Example: //$this->MyField1->AdvancedSearch->SearchValue = "your search criteria"; // Search value }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Recordset_SearchValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->AdvancedSearch->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//$this->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function Page_FilterValidated() {\n\n\t\t// Example:\n\t\t//global $MyTable;\n\t\t//$MyTable->MyField1->SearchValue = \"your search criteria\"; // Search value\n\n\t}", "function get_search_validate()\r\n {\r\n return $this->get_search_form()->validate();\r\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->inscricao_evento_id) AND ( (is_scalar($data->inscricao_evento_id) AND $data->inscricao_evento_id !== '') OR (is_array($data->inscricao_evento_id) AND (!empty($data->inscricao_evento_id)) )) )\n {\n\n $filters[] = new TFilter('inscricao_id', 'in', \"(SELECT id FROM inscricao WHERE evento_id = '{$data->inscricao_evento_id}')\");// create the filter \n }\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n }", "public function RunSearch()\n {\n BizSystem::log(LOG_DEBUG,\"FORMOBJ\",$this->m_Name.\"::RunSearch()\");\n global $g_BizSystem;\n $this->m_SearchRule = \"\";\n foreach ($this->m_RecordRow as $fldCtrl) {\n $value = $g_BizSystem->GetClientProxy()->GetFormInputs($fldCtrl->m_Name);\n if ($value) {\n $searchStr = $this->InputValToRule($fldCtrl->m_BizFieldName, $value);\n if ($this->m_SearchRule == \"\")\n $this->m_SearchRule .= $searchStr;\n else\n $this->m_SearchRule .= \" AND \" . $searchStr;\n }\n }\n\n $this->SetDisplayMode (MODE_R);\n $this->GotoPage(1);\n $this->m_RecordId = null; // clean the current record id\n $this->m_ClearSearchRule = true;\n return $this->ReRender();\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n \n if ($this->formFilters)\n {\n foreach ($this->formFilters as $filterKey => $formFilter)\n {\n $operator = isset($this->operators[$filterKey]) ? $this->operators[$filterKey] : 'like';\n $filterField = isset($this->filterFields[$filterKey]) ? $this->filterFields[$filterKey] : $formFilter;\n $filterFunction = isset($this->filterTransformers[$filterKey]) ? $this->filterTransformers[$filterKey] : null;\n \n // check if the user has filled the form\n if (isset($data->{$formFilter}) AND $data->{$formFilter})\n {\n // $this->filterTransformers\n if ($filterFunction)\n {\n $fieldData = $filterFunction($data->{$formFilter});\n }\n else\n {\n $fieldData = $data->{$formFilter};\n }\n \n // creates a filter using what the user has typed\n if (stristr($operator, 'like'))\n {\n $filter = new TFilter($filterField, $operator, \"%{$fieldData}%\");\n }\n else\n {\n $filter = new TFilter($filterField, $operator, $fieldData);\n }\n \n // stores the filter in the session\n TSession::setValue($this->activeRecord.'_filter', $filter); // BC compatibility\n TSession::setValue($this->activeRecord.'_filter_'.$formFilter, $filter);\n TSession::setValue($this->activeRecord.'_'.$formFilter, $data->{$formFilter});\n }\n else\n {\n TSession::setValue($this->activeRecord.'_filter', NULL); // BC compatibility\n TSession::setValue($this->activeRecord.'_filter_'.$formFilter, NULL);\n TSession::setValue($this->activeRecord.'_'.$formFilter, '');\n }\n }\n }\n \n TSession::setValue($this->activeRecord.'_filter_data', $data);\n TSession::setValue(get_class($this).'_filter_data', $data);\n \n // fill the form with data again\n $this->form->setData($data);\n \n $param=array();\n $param['offset'] =0;\n $param['first_page']=1;\n $this->onReload($param);\n }", "function searchEvent(){\r\n\t\tif(!isset($_POST['submitted'])){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$formvars = array();\r\n\r\n\t\tif(!$this->ValidateSearchSubmission()){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$this->CollectSearchSubmission($formvars);\r\n\t\t\r\n\t\tif(!$this->searchEventHelper($formvars)){\r\n\t\t\t//$this->HandleError(\"Did not Find any Results by 2 \" . $formvars['eventSearch']);\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\t$result = $this->searchEventHelper($formvars);\r\n\t\t}\r\n\r\n\t\treturn $result;\r\n\t}", "function validate() {\n\t\t// execute the column validation \n\t\tparent::validate();\n\t\t\n\t\t// connection\t\t\n\t\t$conn = Doctrine_Manager::connection();\n\t\t\n\t\t// query for check if location exists\n\t\t$unique_query = \"SELECT id FROM company WHERE name = '\".$this->getName().\"' AND id <> '\".$this->getID().\"'\";\n\t\t$result = $conn->fetchOne($unique_query);\n\t\t// debugMessage($unique_query);\n\t\t// debugMessage(\"result is \".$result);\n\t\tif(!isEmptyString($result)){ \n\t\t\t$this->getErrorStack()->add(\"unique.name\", \"The name \".$this->getName().\" already exists. Please specify another.\");\n\t\t}\n\t}", "abstract public function runValidation();", "public function search(){}", "public function validateEntries() \n {\n //verify if first entry is a START entry\n $this->firstItemIsStartEntry();\n\n //Detect the right order of entries\n $this->detectRightEntryOrder();\n\n //check if last entry is pause or end when the record is not current\n $this->obligePauseWhenNotCurrent();\n }", "function validate() {\n $errors = parent::validate();\n // Verify that search fields are set up.\n $style_options = $this->get_option('style_options');\n if (!isset($style_options['search_fields'])) {\n $errors[] = t('Display \"@display\" needs a selected search fields to work properly. See the settings for the Entity Reference list format.', array('@display' => $this->display->display_title));\n }\n else {\n // Verify that the search fields used actually exist.\n //$fields = array_keys($this->view->get_items('field'));\n $fields = array_keys($this->handlers['field']);\n foreach ($style_options['search_fields'] as $field_alias => $enabled) {\n if ($enabled && !in_array($field_alias, $fields)) {\n $errors[] = t('Display \"@display\" uses field %field as search field, but the field is no longer present. See the settings for the Entity Reference list format.', array('@display' => $this->display->display_title, '%field' => $field_alias));\n }\n }\n }\n return $errors;\n }", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->exemplar_id) AND ( (is_scalar($data->exemplar_id) AND $data->exemplar_id !== '') OR (is_array($data->exemplar_id) AND (!empty($data->exemplar_id)) )) )\n {\n\n $filters[] = new TFilter('exemplar_id', '=', $data->exemplar_id);// create the filter \n }\n\n if (isset($data->leitor_id) AND ( (is_scalar($data->leitor_id) AND $data->leitor_id !== '') OR (is_array($data->leitor_id) AND (!empty($data->leitor_id)) )) )\n {\n\n $filters[] = new TFilter('leitor_id', '=', $data->leitor_id);// create the filter \n }\n\n if (isset($data->dt_emprestimo) AND ( (is_scalar($data->dt_emprestimo) AND $data->dt_emprestimo !== '') OR (is_array($data->dt_emprestimo) AND (!empty($data->dt_emprestimo)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '>=', $data->dt_emprestimo);// create the filter \n }\n\n if (isset($data->dt_emprestimo_final) AND ( (is_scalar($data->dt_emprestimo_final) AND $data->dt_emprestimo_final !== '') OR (is_array($data->dt_emprestimo_final) AND (!empty($data->dt_emprestimo_final)) )) )\n {\n\n $filters[] = new TFilter('dt_emprestimo', '<=', $data->dt_emprestimo_final);// create the filter \n }\n\n if (isset($data->dt_previsao) AND ( (is_scalar($data->dt_previsao) AND $data->dt_previsao !== '') OR (is_array($data->dt_previsao) AND (!empty($data->dt_previsao)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '>=', $data->dt_previsao);// create the filter \n }\n\n if (isset($data->dt_prevista_final) AND ( (is_scalar($data->dt_prevista_final) AND $data->dt_prevista_final !== '') OR (is_array($data->dt_prevista_final) AND (!empty($data->dt_prevista_final)) )) )\n {\n\n $filters[] = new TFilter('dt_previsao', '<=', $data->dt_prevista_final);// create the filter \n }\n\n if (isset($data->dt_devolucao) AND ( (is_scalar($data->dt_devolucao) AND $data->dt_devolucao !== '') OR (is_array($data->dt_devolucao) AND (!empty($data->dt_devolucao)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '>=', $data->dt_devolucao);// create the filter \n }\n\n if (isset($data->dt_devolucao_final) AND ( (is_scalar($data->dt_devolucao_final) AND $data->dt_devolucao_final !== '') OR (is_array($data->dt_devolucao_final) AND (!empty($data->dt_devolucao_final)) )) )\n {\n\n $filters[] = new TFilter('dt_devolucao', '<=', $data->dt_devolucao_final);// create the filter \n }\n\n $param = array();\n $param['offset'] = 0;\n $param['first_page'] = 1;\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n\n $this->onReload($param);\n }", "public function _run_search(&$resultRecords, $clearSearchRule=true)\n {\n if (!$this->m_DataObjName)\n return;\n $dataobj = $this->GetDataObj();\n if (strlen($this->m_FixSearchRule) > 0) {\n if (strlen($this->m_SearchRule) > 0)\n $this->m_SearchRule .= \" AND \" . $this->m_FixSearchRule;\n else\n $this->m_SearchRule = $this->m_FixSearchRule;\n }\n if ($clearSearchRule)\n $dataobj->ClearSearchRule();\n $dataobj->SetSearchRule($this->m_SearchRule);\n if ($this->m_Range && $this->m_Range > 0)\n {\n $this->m_TotalRecords = $dataobj->Count();\n $this->m_TotalPages = ceil($this->m_TotalRecords/$this->m_Range);\n if ($this->m_TotalPages == 0)\n return true;\n if ($this->m_CurrentPage > $this->m_TotalPages)\n $this->m_CurrentPage = $this->m_TotalPages;\n $dataobj->setLimit($this->m_Range, ($this->m_CurrentPage-1)*$this->m_Range);\n }\n $resultRecords = $dataobj->Fetch();\n return true;\n }", "public function SearchRecord()\n {\n $this->UpdateActiveRecord(null);\n $this->m_QueryONRender = false;\n $this->SetDisplayMode(MODE_Q);\n return $this->ReRender(true,false);\n }", "public function onSearch()\r\n {\r\n // get the search form data\r\n $data = $this->form->getData();\r\n \r\n // clear session filters\r\n TSession::setValue('MusicaList_filter_muscodigo', NULL);\r\n TSession::setValue('MusicaList_filter_musnome', NULL);\r\n TSession::setValue('MusicaList_filter_musregistro', NULL);\r\n\r\n if (isset($data->muscodigo) AND ($data->muscodigo)) {\r\n $filter = new TFilter('muscodigo', 'like', \"%{$data->muscodigo}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_muscodigo', $filter); // stores the filter in the session\r\n }\r\n\r\n\r\n if (isset($data->musnome) AND ($data->musnome)) {\r\n $filter = new TFilter('musnome', 'like', \"%{$data->musnome}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_musnome', $filter); // stores the filter in the session\r\n }\r\n\r\n\r\n if (isset($data->musregistro) AND ($data->musregistro)) {\r\n $filter = new TFilter('musregistro', 'like', \"%{$data->musregistro}%\"); // create the filter\r\n TSession::setValue('MusicaList_filter_musregistro', $filter); // stores the filter in the session\r\n }\r\n\r\n \r\n // fill the form with data again\r\n $this->form->setData($data);\r\n \r\n // keep the search data in the session\r\n TSession::setValue('Musica_filter_data', $data);\r\n \r\n $param=array();\r\n $param['offset'] =0;\r\n $param['first_page']=1;\r\n $this->onReload($param);\r\n }", "public function filter(Record $record);", "public function search(){ \n\t\t$this->layout = false;\t \n\t\t$q = trim(Sanitize::escape($_GET['q']));\t\n\t\tif(!empty($q)){\n\t\t\t// execute only when the search keywork has value\t\t\n\t\t\t$this->set('keyword', $q);\n\t\t\t$data = $this->BdSpoc->find('all', array('fields' => array('HrEmployee.first_name'),\n\t\t\t'group' => array('first_name'), 'conditions' => \tarray(\"OR\" => array ('first_name like' => '%'.$q.'%'),\n\t\t\t'AND' => array('HrEmployee.status' => '1', 'HrEmployee.is_deleted' => 'N','BdSpoc.is_deleted' => 'N'))));\t\t\n\t\t\t$this->set('results', $data);\n\t\t}\n }", "public function search()\n\t{\n\t\t\n\t}", "public function validate() {\n//\t\tif( intval($this->params[\"startYear\"] < date(\"yyyy\"))) $this->add_validation_error(\"Season cannot exist in the past.\");\n\t}", "public static function validate()\n\t{\n\t\tself::engine()->validate();\n\t}", "function process() // OK\n { \n if(! $this->validate()) {\n\t $this->_errors->addError('Failed at event validation.');\n\t return false;\n }\n \n $this->_getTransactions();\n \n// -- added\n if(! $this->validate()) {\n\t $this->_errors->addError('Failed after dynamic validations.');\n\t return false;\n }\n// --\n if (! $this->_executeTransactions()) return false;\n else return $this->storeEventDetail();\n }", "public function validate() {\n\n // Tell ourselves that the client has initiated validation.\n $this->hasRanValidation = true;\n\n // Sanitize and filter all of our field data.\n $this->filterFields();\n\n // Validate each field individually.\n foreach ($this->fields as $field) {\n\n // Skip fields with no rules.\n if (!$field->getGumpRules()) {\n continue;\n }\n\n // Validate this field.\n $fieldError = $field->validate();\n\n // Add any errors to our error log.\n if ($fieldError) {\n $this->addError($field, $fieldError);\n }\n }\n }", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function validate();", "public function valid ()\n\t{\n\t\tif (is_a($this->rs,'iterator'))\n\t\t{\n\t\t\treturn $this->rs->valid();\n\t\t}\n\t\treturn false;\n\t}", "protected function validate()\r\n\t{\r\n\t\tif (!$this->isFetched())\r\n\t\t{\r\n\t\t\treturn;\r\n }\r\n \r\n\t\tif ($this->validationInfo)\r\n\t\t{\r\n\t\t\t$this->validationInfo->validate($this->normalizedValue);\r\n\t\t}\r\n\t\t$this->isValid = true;\r\n\t}", "function sopac_search_catalog_validate($form, &$form_state) {\n if (trim($form_state['values']['search_query']) == '') {\n form_set_error('search_query', t('Please enter a search term to start your search'));\n }\n}", "public function perform()\n {\n // Truncate the `search_texts` table before indexing to clean out\n // obsolete records.\n $sql = \"TRUNCATE TABLE {$this->_db->SearchText}\";\n $this->_db->query($sql);\n\n foreach (get_custom_search_record_types() as $key => $value) {\n $recordType = is_string($key) ? $key : $value;\n\n if (!class_exists($recordType)) {\n // The class does not exist or cannot be found.\n continue;\n }\n $record = new $recordType;\n if (!($record instanceof Omeka_Record_AbstractRecord)) {\n // The class is not a valid record.\n continue;\n }\n if (!is_callable(array($record, 'addSearchText'))) {\n // The record does not implement the search mixin.\n continue;\n }\n\n $pageNumber = 1;\n $recordTable = $record->getTable();\n // Query a limited number of rows at a time to prevent memory issues.\n while ($recordObjects = $recordTable->fetchObjects($recordTable->getSelect()->limitPage($pageNumber, 100))) {\n foreach ($recordObjects as $recordObject) {\n // Save the record object, which indexes its search text.\n try {\n $recordObject->save();\n } catch (Omeka_Validate_Exception $e) {\n _log($e, Zend_Log::ERR);\n _log(sprintf('Failed to index %s #%s',\n get_class($recordObject), $recordObject->id),\n Zend_Log::ERR);\n }\n release_object($recordObject);\n }\n $pageNumber++;\n }\n }\n }", "protected function performValidation()\n {\n // no required arguments\n }", "public function isValidRecord()\n {\n // Get specific record\n $Model = $this->setWhereIndexes(clone $this->Model);\n $record = $Model->first();\n // Is valid record\n if (!$record) {\n // Redirect to List Page\n // Set session flash for notify Entry is not exist\n return redirect($this->getFormAction())\n ->with('dk_' . $this->getIdentifier() . '_info_error', trans('dkscaffolding.no.entry'));\n }\n return $record;\n }", "function validate(){\r\n\t\t$missing_fields = Array ();\r\n\t\tforeach ( $this->required_fields as $field ) {\r\n\t\t\t$true_field = $this->fields[$field]['name'];\r\n\t\t\tif ( $this->$true_field == \"\") {\r\n\t\t\t\t$missing_fields[] = $field;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ( count($missing_fields) > 0){\r\n\t\t\t// TODO Create friendly equivelant names for missing fields notice in validation \r\n\t\t\t$this->errors[] = __ ( 'Missing fields: ' ) . implode ( \", \", $missing_fields ) . \". \";\r\n\t\t}\r\n\t\treturn apply_filters('em_event_validate', count($this->errors) == 0, $this );\r\n\t}", "public function validation();", "public function valid() {\n\t\t// Init the recordset if needed.\n\t\t$this->initRecordSet();\n\t\t// Is current position valid?\n\t\treturn ((!$this->recordSet->EOF) and $this->currentIndex < $this->recordSet->RecordCount() );\n\t}", "public function search();", "public function search();", "function exposed_validate(&$form, &$form_state) {\n if (!isset($this->options['expose']['identifier'])) {\n return;\n }\n\n $key = $this->options['expose']['identifier'];\n if (!empty($form_state['values'][$key])) {\n $this->query_parse_search_expression($form_state['values'][$key]);\n if (count($this->search_query->words()) == 0) {\n form_set_error($key, format_plural(variable_get('minimum_word_size', 3), 'You must include at least one positive keyword with 1 character or more.', 'You must include at least one positive keyword with @count characters or more.'));\n }\n }\n }", "public function validate()\n {\n // query for validation information\n // set the validation flag\n // close database\n }", "abstract public function validateData();", "protected function _validate() {\n\t}", "private function collectValidateErrors()\n {\n // collect errors from current model\n $this->addModelErrors();\n }", "protected function preValidate() {}", "abstract public function validate();", "abstract public function validate();", "protected function localValidation()\n\t\t{\n\t\t}", "function clsRecorditemsSearch()\r\n {\r\n\r\n global $FileName;\r\n $this->Visible = true;\r\n $this->Errors = new clsErrors();\r\n $this->InsertAllowed = false;\r\n $this->UpdateAllowed = false;\r\n $this->DeleteAllowed = false;\r\n if($this->Visible)\r\n {\r\n $this->ComponentName = \"itemsSearch\";\r\n $this->HTMLFormAction = $FileName . \"?\" . CCAddParam(CCGetQueryString(\"QueryString\", \"\"), \"ccsForm\", $this->ComponentName);\r\n $CCSForm = CCGetFromGet(\"ccsForm\", \"\");\r\n $this->FormSubmitted = ($CCSForm == $this->ComponentName);\r\n $Method = $this->FormSubmitted ? ccsPost : ccsGet;\r\n $this->s_title = new clsControl(ccsTextBox, \"s_title\", \"s_title\", ccsText, \"\", CCGetRequestParam(\"s_title\", $Method));\r\n $this->s_description = new clsControl(ccsTextBox, \"s_description\", \"s_description\", ccsMemo, \"\", CCGetRequestParam(\"s_description\", $Method));\r\n $this->CatID = new clsControl(ccsCheckBox, \"CatID\", \"CatID\", ccsInteger, \"\", CCGetRequestParam(\"CatID\", $Method));\r\n $this->CatID->CheckedValue = 1;\r\n $this->CatID->UncheckedValue = 0;\r\n $this->DoSearch = new clsButton(\"DoSearch\");\r\n }\r\n }", "public function valid() : bool\n {\n return !($this->key() >= count($this->currentRecordSet) && count($this->currentRecordSet) != $this->pageSize);\n }", "function search() {}", "public function searchprocessAction() {\n\t\t$this->_helper->ajaxgrid->setConfig ( Invoices::grid() )->search ();\n\t}", "function search()\n\t{}", "function search()\n\t{}", "public function onSearch()\n {\n // get the search form data\n $data = $this->form->getData();\n $filters = [];\n\n if (count($data->relatorio_id) == 0)\n { \n TTransaction::open('bedevops');\n $conn = TTransaction::get();\n $result = $conn->query('SELECT * FROM relatorio WHERE user_id = '.TSession::getValue(\"userid\").' ORDER BY id DESC LIMIT 4');\n $objects = $result->fetchAll(PDO::FETCH_CLASS, \"stdClass\");\n foreach ($objects as $value) {\n array_push($data->relatorio_id,$value->id);\n }\n TTransaction::close();\n } \n\n TSession::setValue(__CLASS__.'_filter_data', NULL);\n TSession::setValue(__CLASS__.'_filters', NULL);\n\n if (isset($data->categoria_id) AND ( (is_scalar($data->categoria_id) AND $data->categoria_id !== '') OR (is_array($data->categoria_id) AND (!empty($data->categoria_id)) )) )\n {\n\n $filters[] = new TFilter('categoria_id', '=', $data->categoria_id);// create the filter \n }\n\n if (count($data->relatorio_id) <= 4)\n {\n if (isset($data->relatorio_id) AND ( (is_scalar($data->relatorio_id) AND $data->relatorio_id !== '') OR (is_array($data->relatorio_id) AND (!empty($data->relatorio_id)) )) )\n {\n\n $filters[] = new TFilter('relatorio_id', 'in', $data->relatorio_id);// create the filter \n }\n } else {\n throw new Exception('Selecione no máximo 4 relatórios!');\n }\n\n // fill the form with data again\n $this->form->setData($data);\n\n // keep the search data in the session\n TSession::setValue(__CLASS__.'_filter_data', $data);\n TSession::setValue(__CLASS__.'_filters', $filters);\n }", "public function search()\n {\n\n }", "public function search()\n {\n\n }", "public function _on_validate()\n {\n return true;\n }", "public function valid()\n\t{\n\t\treturn $this->query->valid();\n\t}", "function form_backend_validation()\r\n {\r\n // Need to make sure file contains meet results.\r\n //\r\n // What is a results file?\r\n //\r\n // - 1 A0 record\r\n // - 1 B1 record\r\n // - 1 B2 record (optional)\r\n // - 1 or more C1 records\r\n // - 1 or more C2 records\r\n // - 0 or more D0 records\r\n // - 0 or more D3 records\r\n // - 0 or more G0 records\r\n // - 0 or more E0 records\r\n // - 0 or more F0 records\r\n // - 0 or more G0 records\r\n // - 1 Z0 record\r\n //\r\n // A results file can contain results for more than\r\n // one team - so what to do if that happens?\r\n\r\n $legal_records = array(\"A0\" => 1, \"B1\" => 1, \"B2\" => 0,\r\n \"C1\" => 1, \"C2\" => 0, \"D0\" => 0, \"D3\" => 0, \"G0\" => 0,\r\n \"E0\" => 0, \"F0\" => 0, \"Z0\" => 1) ;\r\n \r\n $record_counts = array(\"A0\" => 0, \"B1\" => 0, \"B2\" => 0,\r\n \"C1\" => 0, \"C2\" => 0, \"D0\" => 0, \"D3\" => 0, \"G0\" => 0,\r\n \"E0\" => 0, \"F0\" => 0, \"Z0\" => 0) ;\r\n \r\n $z0_record = new SDIFZ0Record() ;\r\n\r\n $file = $this->get_element(\"SDIF Filename\") ; \r\n $fileInfo = $file->get_file_info() ; \r\n\r\n $lines = file($fileInfo['tmp_name']) ; \r\n\r\n // Scan the records to make sure there isn't something odd in the file\r\n\r\n $line_number = 1 ;\r\n\r\n foreach ($lines as $line)\r\n {\r\n if (trim($line) == \"\") continue ;\r\n\r\n $record_type = substr($line, 0, 2) ;\r\n\r\n if (!array_key_exists($record_type, $legal_records))\r\n {\r\n $this->add_error(\"SDIF Filename\", sprintf(\"Invalid record \\\"%s\\\" encountered in SDIF file on line %s.\", $record_type, $line_number)) ;\r\n return false ;\r\n }\r\n else\r\n {\r\n $record_counts[$record_type]++ ;\r\n }\r\n\r\n $line_number++ ;\r\n\r\n if ($record_type == \"Z0\")\r\n $z0_record->setSDIFRecord($line) ;\r\n }\r\n\r\n // Got this far, the file has the right records in it, do\r\n // the counts make sense?\r\n \r\n foreach ($record_counts as $record_type => $record_count)\r\n {\r\n if ($record_count < $legal_records[$record_type])\r\n {\r\n $this->add_error(\"SDIF Filename\", sprintf(\"Missing required \\\"%s\\\" record(s) in SDIF file.\", $record_type)) ;\r\n return false ;\r\n }\r\n }\r\n\r\n // Suppress Z0 checking?\r\n if ($this->get_element('Override Z0 Record Validation'))\r\n {\r\n return true ;\r\n }\r\n\r\n // Got this far, the file has the right records in it, do\r\n // the counts match what is reported in the Z0 record?\r\n\r\n $z0_record->ParseRecord() ;\r\n\r\n // Make sure this is a results file!\r\n if ($z0_record->getFileCode() != FT_SDIF_FTT_CODE_MEET_RESULTS_VALUE)\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('File Code (%02d) field in Z0 record does not match Results File Code(%02d).',\r\n $z0_record->getFileCode(), FT_SDIF_FTT_CODE_MEET_RESULTS_VALUE)) ;\r\n return false ;\r\n }\r\n \r\n // Make sure number of B records match Z0 record field\r\n if ($z0_record->getBRecordCount() != $record_counts['B1'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of B records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['B1'], $z0_record->getBRecordCount())) ;\r\n return false ;\r\n }\r\n\r\n // Make sure number of C records match Z0 record field\r\n if ($z0_record->getCRecordCount() != $record_counts['C1'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of C records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['C1'], $z0_record->getCRecordCount())) ;\r\n return false ;\r\n }\r\n\r\n // Make sure number of D records match Z0 record field\r\n if ($z0_record->getDRecordCount() != $record_counts['D0'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of D records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['D0'], $z0_record->getDRecordCount())) ;\r\n return false ;\r\n }\r\n\r\n // Make sure number of E records match Z0 record field\r\n if ($z0_record->getERecordCount() != $record_counts['E0'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of E records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['E0'], $z0_record->getERecordCount())) ;\r\n return false ;\r\n }\r\n\r\n // Make sure number of F records match Z0 record field\r\n if ($z0_record->getFRecordCount() != $record_counts['F0'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of F records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['F0'], $z0_record->getFRecordCount())) ;\r\n return false ;\r\n }\r\n\r\n // Make sure number of G records match Z0 record field\r\n if ($z0_record->getGRecordCount() != $record_counts['G0'])\r\n {\r\n $this->add_error('SDIF Filename',\r\n sprintf('Number of G records (%d) does not match field in Z0 record (%d).',\r\n $record_counts['G0'], $z0_record->getGRecordCount())) ;\r\n return false ;\r\n }\r\n\r\n unset($lines) ; \r\n\r\n\t return true ;\r\n }", "public function beforeValidate($event)\n {\n parent::beforeValidate($event);\n $docs = $this->getOwner()->{$this->arrayPropertyName};\n if (is_array($docs)) {\n if (is_array(reset($docs))) {\n $this->parseExistingArray();\n } else {\n // Clear errors before validation begins\n foreach ($docs as $doc) {\n $doc->clearErrors();\n }\n \t}\n }\n }", "public abstract function validation();", "protected function preValidate()\n {\n $this->setFilter( preg_quote($this->getFilter()) );\n }", "public function validate() {\n }", "public function validate() {\n }", "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n \n \n\t\t$criteria->compare('ESUB_ID',$this->ESUB_ID);\n\t\t$criteria->compare('ESUB_EMP_ID',$this->ESUB_EMP_ID);\n//\t\t$criteria->compare('ESUB_SUBSCRS_ID',$this->ESUB_SUBSCRS_ID);\n// $criteria->together=true;\n\t\t\n//\t\t$criteria->compare('ESUB_PAYMENT_ID',$this->ESUB_PAYMENT_ID);\n $criteria->with = array( 'eSUBSUBSCRS' );\n $criteria->compare('eSUBSUBSCRS.SUBSCR_RATE', $this->ESUB_PAYMENT_ID,true);\n $criteria->compare('eSUBSUBSCRS.SUBSCR_DESC', $this->ESUB_SUBSCRS_ID,true);\n\t\t$criteria->compare('ESUB_STATUS',$this->ESUB_STATUS,true);\n $criteria->compare('ESUB_PURCHASE_DATE',$this->ESUB_PURCHASE_DATE,true);\n\t\t$criteria->compare('ESUB_EXPIRY_DATE',$this->ESUB_EXPIRY_DATE,true);\n\t\t$criteria->compare('ESUB_UTILIZED_COUNT',$this->ESUB_UTILIZED_COUNT,true);\n\t\t$criteria->compare('ESUB_REMAIN_COUNT',$this->ESUB_REMAIN_COUNT,true);\n// $criteria->compare('date(ESUB_PURCHASE_DATE)',$this->ESUB_PURCHASE_DATE,true);\n////\n// $criteria->compare('date(ESUB_EXPIRY_DATE)',$this->ESUB_EXPIRY_DATE,true);\n// $criteria->compare(\"DATE_FORMAT(date,'%yy-%mm-%dd')\",$this->ESUB_PURCHASE_DATE,true);\n// $criteria->compare(\"DATE_FORMAT(date,'%yy-%mm-%dd')\",$this->ESUB_EXPIRY_DATE,true);\n// if($this->ESUB_SUBSCRS_ID)\n// {\n// $criteria->together = true;\n// $criteria->with = ( 'eSUBSUBSCRS' );\n// $criteria->compare('eSUBSUBSCRS.SUBSCR_DESC', $model->ESUB_SUBSCRS_ID,true);\n// }\n// if(strlen($this->ESUB_PURCHASE_DATE) && strlen($this->ESUB_EXPIRY_DATE)) {\n// $criteria->params[':ESUB_PURCHASE_DATE'] = date('Y-m-d', strtotime($this->ESUB_PURCHASE_DATE));\n// \n// $criteria->params[':ESUB_EXPIRY_DATE'] = date('Y-m-d', strtotime($this->ESUB_EXPIRY_DATE));\n//// (strlen($this->ESUB_EXPIRY_DATE)) ? date('Y-m-d', strtotime($this->ESUB_EXPIRY_DATE)) : $criteria->params[':post_date'];\n// $criteria->addCondition('DATE(ESUB_PURCHASE_DATE) BETWEEN :ESUB_PURCHASE_DATE AND :ESUB_EXPIRY_DATE');\n// }\n \n\t\treturn new CActiveDataProvider($this, array(\n\t\t\t'criteria'=>$criteria,\n \n\t\t));\n\t}", "public function afterValidate($event)\n {\n parent::afterValidate($event);\n if (is_array($this->getOwner()->{$this->arrayPropertyName})) {\n foreach ($this->getOwner()->{$this->arrayPropertyName} as $doc) {\n if (!$doc->validate(null, false)) {\n $this->getOwner()->addErrors($doc->getErrors());\n }\n }\n }\n }", "function seekPageInRecSet()\n\t{\n\t\t\n\t\t$this->resultData = $this->plugin->getGroupList( $this->searchClauseObj->getAllFieldsSearchValue() );\n\t\t$this->numRowsFromSQL = $this->resultData ? count( $this->resultData ) : 0;\n\t\t$this->recSet = $this->numRowsFromSQL;\n\t}", "public function doValidate(){\n if (!is_array($this->getValidates())){\n throw new \\Exception(\"dose this function must call setValidate() function first.\");\n }\n\n foreach($this->getValidates() as $k => $v){\n //$v = (ValidateData)$v;\n if (TextUtils::isEmpty($v->getInput()) && $v->getRequire() == true){\n $v->setResult(false);\n }else{\n $v->setResult(true);\n }\n\n if ($v->getResult() && !TextUtils::isEmpty($v->getInput())){\n switch($v->getValidator()){\n case ValidateData::VALIDATOR_CUSTOM:\n $v->setResult($this->check($v->getInput(),$v->getRegexp()));\n break;\n case ValidateData::VALIDATOR_COMPARE:\n $result = false;\n if (!TextUtils::isEmpty($v->getOperator())){\n switch ($v->getOperator()){\n case ValidateData::OPERATOR_EQUIVALENT:\n $result = $v->getInput() == $v->getTo();\n break;\n case ValidateData::OPERATOR_GREATER:\n $result = $v->getInput() > $v->getTo();\n break;\n case ValidateData::OPERATOR_LESS:\n $result = $v->getInput() < $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_GREATER:\n $result = $v->getInput() >= $v->getTo();\n break;\n case ValidateData::OPERATOR_EQUIVALENT_LESS:\n $result = $v->getInput() <= $v->getTo();\n break;\n case ValidateData::OPERATOR_NOT_EQUIVALENT:\n $result = $v->getInput() != $v->getTo();\n break;\n }\n\n }\n $v->setResult($result);\n break;\n case ValidateData::VALIDATOR_LENGTH:\n $len = mb_strlen($v->getInput(),'UTF-8');\n $v->setResult($len >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult($len <= $v->getMax() && $len >= $v->getMin());\n }\n\n break;\n\n case ValidateData::VALIDATOR_RANGE:\n $v->setResult((int)$v->getInput() >= $v->getMin());\n if ($v->getMax() > $v->getMin()){\n $v->setResult((int)$v->getInput() <= $v->getMax() && (int)$v->getInput() >= $v->getMin());\n }\n\n break;\n default:\n $v->setResult($this->check($v->getInput(),$this->getValidator($v->getValidator())));\n break;\n }\n }\n }\n return $this->getError();\n }", "public function searchFailureBadFilterInput()\n {\n $this->ldap->bind()->search(null, null, '(noEqualSign)');\n }", "abstract protected function afterSuccessValidation();", "public function validate()\n\t{\n\t\t// Build the validation data\n\t\t$data = array();\n\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\t$data[$field_name] = $this->get($field_name);\n\t\t}\n\n\t\t$data = Validation::factory($data);\n\n\t\t// Add rules\n\t\tforeach ($this->_meta->fields as $field_name => $field)\n\t\t{\n\t\t\tforeach ($field->rules as $rule)\n\t\t\t{\n\t\t\t\t$callback = Arr::get($rule, 0);\n\t\t\t\t$params = Arr::get($rule, 1);\n\n\t\t\t\t$data->rule($field_name, $callback, $params);\n\t\t\t}\n\t\t}\n\n\t\t// Bind :model parameters to this model so the validation callback\n\t\t// can have access to the model\n\t\t$data->bind(':model', $this);\n\n\t\t// If the data does not validate, throw an exception\n\t\tif ( ! $data->check())\n\t\t{\n\t\t\tthrow new DORM_Validation_Exception($this, $data);\n\t\t}\n\t}", "function _admin_search_query()\n {\n }", "public function matchedDocs() {\n\t\tthrow new \\Core\\Search\\Lucene\\Exception ( 'Wildcard query should not be directly used for search. Use $query->rewrite($index)' );\n\t}", "function ValidateSearchSubmission(){\r\n\t\tif(!empty($_POST[$this->GetSpamTrapInputName()]) ){\r\n\t\t\t//The proper error is not given intentionally\r\n\t\t\t$this->HandleError(\"Automated submission prevention: case 2 failed\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t$validator = new FormValidator();\r\n\t\t$validator->addValidation(\"eventSearch\", \"req\", \"Search Field is Empty!\");\r\n\r\n\t\tif(!$validator->ValidateForm()){\r\n\t\t\t$error = '';\r\n\t\t\t$error_hash = $validator->GetErrors();\r\n\t\t\tforeach($error_hash as $inpname => $inp_err){\r\n\t\t\t\t$error .= $inpname.':'.$inp_err.\"\\n\";\r\n\t\t\t}\r\n\t\t\t$this->HandleError($error);\r\n\t\t\treturn false;\r\n\t\t} \r\n\t\treturn true;\r\n\t}", "private function validate_query_key()\n {\n if (!isset($this->arrSearch['query'])) {\n throw new DocumentSearchMissingSearch('Missing request \"query\" key!');\n }\n }", "function validate()\n\t{\n\t}", "function addSearchstep($sss_details){\n\t if ($this->db->insert('vc_search',$sss_details))\n\t\t\t{ \n\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn FALSE;\n\t\t\t}\n }", "public function registerRules(){\n \t// $this->applyValidationDateRange('start_event', 'end_event', 'editable_cierre');\n \t// $this->applyValidationTextMemo('desc_sol_comun', 3000, 0);\n \t$this->applyValidationClear('desc_sol_comun', 3000, 0);\n\t}", "public function validaterecord() {\n if ($this->application_id == 0) {\n $temp = Propertyapplication::find()->where(['application_no' => $this->application_no, 'project_id' => $this->project_id])->one();\n if ($temp != NULL) {\n $this->addError('application_no', 'Form No. already exist.');\n return FALSE;\n }\n } else {\n $temp = Propertyapplication::find()->where(['application_no' => $this->application_no, 'project_id' => $this->project_id])->andFilterWhere(['!=', 'application_id', $this->application_id])->one();\n if ($temp != NULL) {\n $this->addError('application_no', 'Form No. already exist.');\n return FALSE;\n }\n\n if ($this->application_status == 10) {\n $this->addError('application_no', 'Form is already submitted.');\n return false;\n }\n }\n\n if ($this->property_against == 1 && ($this->owner_id == NULL || $this->owner_id == 0)) {\n $this->addError('property_against', 'Form is already submitted.');\n return false;\n }\n\n return true;\n }", "private function validate() {\n $this->valid = (1 === count($this->marriages));\n }", "public function iCheckRecordUnchanged()\n {\n preg_match('/UQ:(\\d+)/', $this->getSession()->getCurrentUrl(), $pid);\n $data = new Fez_Record_Searchkey($pid[0]);\n $keys = $data->getSekData();\n $errors = '';\n foreach ($keys as $title => $value) {\n if ( $keys[$title]['value'] !== $this->_tempRecordStore[$title]['value']) {\n if ($title != 'Updated Date' && $title != 'Collection Year') {\n $errors .= $title.', ';\n }\n }\n }\n if ($errors) {\n throw new Exception(\"Miss match on sek titles - \". $errors. \" - post update when there shouldn't be on pid: \".$pid[0]);\n }\n }", "protected function buildValidationCallback() {\n }", "public function valid()\n {\n return $this->dataSource->valid();\n }", "public function found_rows() {\n\t\t$this->FoundRows();\n\t}", "function validate_on_update() {}" ]
[ "0.72500247", "0.6086671", "0.6086671", "0.59902674", "0.59902674", "0.58735514", "0.5709695", "0.5412624", "0.53925264", "0.5377436", "0.5355056", "0.533273", "0.5314459", "0.53127974", "0.5310694", "0.53099185", "0.5260204", "0.51939625", "0.5158454", "0.5146206", "0.5136012", "0.51354533", "0.5129588", "0.5122341", "0.51189184", "0.511746", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51160955", "0.51157886", "0.50939965", "0.5082747", "0.5079674", "0.50662947", "0.5054892", "0.5047847", "0.5046508", "0.5023834", "0.50144935", "0.50144935", "0.5001577", "0.49983636", "0.49962288", "0.4988197", "0.4948308", "0.49159878", "0.4910727", "0.4910727", "0.48941097", "0.4891505", "0.48890558", "0.4885883", "0.48772952", "0.48744026", "0.48744026", "0.48727036", "0.4858273", "0.4858273", "0.48486182", "0.48477063", "0.48440918", "0.48405305", "0.484012", "0.48390412", "0.4829004", "0.4829004", "0.4828534", "0.48240054", "0.4820195", "0.4808096", "0.48078722", "0.48056608", "0.48048782", "0.48044014", "0.47997022", "0.4797901", "0.47944388", "0.47823852", "0.4782348", "0.47782654", "0.47747168", "0.47706676", "0.477017", "0.47670117", "0.4765624", "0.47574848", "0.47572467" ]
0.7448673
4
Row Update Conflict event
function Row_UpdateConflict($rsold, &$rsnew) { // Enter your code here // To ignore conflict, set return value to FALSE return TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Row_UpdateConflict(&$rsold, &$rsnew) {\n\n\t\t// Enter your code here\n\t\t// To ignore conflict, set return value to FALSE\n\n\t\treturn TRUE;\n\t}", "public function testUpdateConflict() {\n\t\tself::$sag->put(\"foo\", self::$temp);\n\t}", "public function testUpdateConflictBetweenRecurAndExistEvent()\n {\n $event = $this->_getEvent();\n $event->dtstart = '2010-05-20 06:00:00';\n $event->dtend = '2010-05-20 06:15:00';\n $event->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n $this->_controller->create($event);\n\n $event1 = $this->_getRecurEvent();\n $event1->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n \n $event1 = $this->_controller->create($event1);\n $event1->rrule = \"FREQ=DAILY;INTERVAL=2\";\n \n $this->setExpectedException('Calendar_Exception_AttendeeBusy');\n $this->_controller->update($event1, TRUE);\n }", "public function testUpdateConflictBetweenRecurAndExistEvent()\n {\n $event = $this->_getEvent();\n $event->dtstart = '2010-05-20 06:00:00';\n $event->dtend = '2010-05-20 06:15:00';\n $event->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n $this->_controller->create($event);\n\n $event1 = $this->_getRecurEvent();\n $event1->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n \n $event1 = $this->_controller->create($event1);\n $event1->rrule = \"FREQ=DAILY;INTERVAL=2\";\n \n $this->setExpectedException('Calendar_Exception_AttendeeBusy');\n $this->_controller->update($event1, TRUE);\n }", "protected function updateRow()\n { \n $tableName = $this->getTableName($this->className);\n $assignedValues = $this->getAssignedValues();\n $updateDetails = [];\n\n for ($i = 0; $i < count($assignedValues['columns']); $i++) { \n array_push($updateDetails, $assignedValues['columns'][$i] .' =\\''. $assignedValues['values'][$i].'\\'');\n }\n\n $connection = Connection::connect();\n\n $allUpdates = implode(', ' , $updateDetails);\n $update = $connection->prepare('update '.$tableName.' set '. $allUpdates.' where id='.$this->resultRows[0]['id']);\n \n if ($update->execute()) { \n return 'Row updated';\n } else { \n throw new Exception(\"Unable to update row\"); \n }\n }", "public function updateFailed();", "public function incrementRowsUpdated(): void\n {\n $this->rowsUpdated++;\n }", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->SetDbValueDef($rsnew, $this->Con_SIM->CurrentValue, NULL, $this->Con_SIM->ReadOnly);\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->SetDbValueDef($rsnew, $this->Observaciones->CurrentValue, NULL, $this->Observaciones->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t\tif ($this->fbid->CurrentValue <> \"\") { // Check field with unique index\n\t\t\t$sFilterChk = \"(`fbid` = \" . ew_AdjustSql($this->fbid->CurrentValue) . \")\";\n\t\t\t$sFilterChk .= \" AND NOT (\" . $sFilter . \")\";\n\t\t\t$this->CurrentFilter = $sFilterChk;\n\t\t\t$sSqlChk = $this->SQL();\n\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t$rsChk = $conn->Execute($sSqlChk);\n\t\t\t$conn->raiseErrorFn = '';\n\t\t\tif ($rsChk === FALSE) {\n\t\t\t\treturn FALSE;\n\t\t\t} elseif (!$rsChk->EOF) {\n\t\t\t\t$sIdxErrMsg = str_replace(\"%f\", $this->fbid->FldCaption(), $Language->Phrase(\"DupIndex\"));\n\t\t\t\t$sIdxErrMsg = str_replace(\"%v\", $this->fbid->CurrentValue, $sIdxErrMsg);\n\t\t\t\t$this->setFailureMessage($sIdxErrMsg);\n\t\t\t\t$rsChk->Close();\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t$rsChk->Close();\n\t\t}\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// fbid\n\t\t\t$this->fbid->SetDbValueDef($rsnew, $this->fbid->CurrentValue, NULL, $this->fbid->ReadOnly);\n\n\t\t\t// name\n\t\t\t$this->name->SetDbValueDef($rsnew, $this->name->CurrentValue, \"\", $this->name->ReadOnly);\n\n\t\t\t// email\n\t\t\t$this->_email->SetDbValueDef($rsnew, $this->_email->CurrentValue, \"\", $this->_email->ReadOnly);\n\n\t\t\t// password\n\t\t\t$this->password->SetDbValueDef($rsnew, $this->password->CurrentValue, NULL, $this->password->ReadOnly);\n\n\t\t\t// validated_mobile\n\t\t\t$this->validated_mobile->SetDbValueDef($rsnew, $this->validated_mobile->CurrentValue, NULL, $this->validated_mobile->ReadOnly);\n\n\t\t\t// role_id\n\t\t\t$this->role_id->SetDbValueDef($rsnew, $this->role_id->CurrentValue, 0, $this->role_id->ReadOnly);\n\n\t\t\t// image\n\t\t\t$this->image->SetDbValueDef($rsnew, $this->image->CurrentValue, NULL, $this->image->ReadOnly);\n\n\t\t\t// newsletter\n\t\t\t$this->newsletter->SetDbValueDef($rsnew, $this->newsletter->CurrentValue, 0, $this->newsletter->ReadOnly);\n\n\t\t\t// points\n\t\t\t$this->points->SetDbValueDef($rsnew, $this->points->CurrentValue, NULL, $this->points->ReadOnly);\n\n\t\t\t// last_modified\n\t\t\t$this->last_modified->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->last_modified->CurrentValue, 7), NULL, $this->last_modified->ReadOnly);\n\n\t\t\t// p2\n\t\t\t$this->p2->SetDbValueDef($rsnew, $this->p2->CurrentValue, NULL, $this->p2->ReadOnly || (EW_ENCRYPTED_PASSWORD && $rs->fields('p2') == $this->p2->CurrentValue));\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\tif ($EditRow) {\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\n\t\t}\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "public function updateRow($row);", "public function update_or_ignore()\n {\n $this->update_ignore('table', array('foo' => 'bar'), array('hello' => 'world'));\n\n // you can also do\n $this->ignore();\n $this->update('table', array('foo' => 'bar'), array('hello' => 'world'));\n }", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// model_id\n\t\t\t$this->model_id->SetDbValueDef($rsnew, $this->model_id->CurrentValue, 0, $this->model_id->ReadOnly);\n\n\t\t\t// title\n\t\t\t$this->title->SetDbValueDef($rsnew, $this->title->CurrentValue, NULL, $this->title->ReadOnly);\n\n\t\t\t// description\n\t\t\t$this->description->SetDbValueDef($rsnew, $this->description->CurrentValue, NULL, $this->description->ReadOnly);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->SetDbValueDef($rsnew, $this->s_order->CurrentValue, 0, $this->s_order->ReadOnly);\n\n\t\t\t// status\n\t\t\t$this->status->SetDbValueDef($rsnew, $this->status->CurrentValue, 0, $this->status->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function validate_on_update() {}", "public function isUpdateRequired();", "public function sql_affected_rows() {}", "public function sql_affected_rows() {}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\tif ($this->Supplier_Number->CurrentValue <> \"\") { // Check field with unique index\n\t\t\t$sFilterChk = \"(`Supplier_Number` = '\" . ew_AdjustSql($this->Supplier_Number->CurrentValue, $this->DBID) . \"')\";\n\t\t\t$sFilterChk .= \" AND NOT (\" . $sFilter . \")\";\n\t\t\t$this->CurrentFilter = $sFilterChk;\n\t\t\t$sSqlChk = $this->SQL();\n\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"]; // v11.0.4\n\t\t\t$rsChk = $conn->Execute($sSqlChk);\n\t\t\t$conn->raiseErrorFn = '';\n\t\t\tif ($rsChk === FALSE) {\n\t\t\t\treturn FALSE;\n\t\t\t} elseif (!$rsChk->EOF) {\n\t\t\t\t$sIdxErrMsg = str_replace(\"%f\", $this->Supplier_Number->FldCaption(), $Language->Phrase(\"DupIndex\"));\n\t\t\t\t$sIdxErrMsg = str_replace(\"%v\", $this->Supplier_Number->CurrentValue, $sIdxErrMsg);\n\t\t\t\t$this->setFailureMessage($sIdxErrMsg);\n\t\t\t\t$rsChk->Close();\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t$rsChk->Close();\n\t\t}\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"]; // v11.0.4\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Begin transaction\n\t\t\tif ($this->getCurrentDetailTable() <> \"\")\n\t\t\t\t$conn->BeginTrans();\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// Supplier_Number\n\t\t\t$this->Supplier_Number->SetDbValueDef($rsnew, $this->Supplier_Number->CurrentValue, \"\", $this->Supplier_Number->ReadOnly);\n\n\t\t\t// Supplier_Name\n\t\t\t$this->Supplier_Name->SetDbValueDef($rsnew, $this->Supplier_Name->CurrentValue, \"\", $this->Supplier_Name->ReadOnly);\n\n\t\t\t// Address\n\t\t\t$this->Address->SetDbValueDef($rsnew, $this->Address->CurrentValue, \"\", $this->Address->ReadOnly);\n\n\t\t\t// City\n\t\t\t$this->City->SetDbValueDef($rsnew, $this->City->CurrentValue, \"\", $this->City->ReadOnly);\n\n\t\t\t// Country\n\t\t\t$this->Country->SetDbValueDef($rsnew, $this->Country->CurrentValue, \"\", $this->Country->ReadOnly);\n\n\t\t\t// Contact_Person\n\t\t\t$this->Contact_Person->SetDbValueDef($rsnew, $this->Contact_Person->CurrentValue, \"\", $this->Contact_Person->ReadOnly);\n\n\t\t\t// Phone_Number\n\t\t\t$this->Phone_Number->SetDbValueDef($rsnew, $this->Phone_Number->CurrentValue, \"\", $this->Phone_Number->ReadOnly);\n\n\t\t\t// Email\n\t\t\t$this->_Email->SetDbValueDef($rsnew, $this->_Email->CurrentValue, \"\", $this->_Email->ReadOnly);\n\n\t\t\t// Mobile_Number\n\t\t\t$this->Mobile_Number->SetDbValueDef($rsnew, $this->Mobile_Number->CurrentValue, \"\", $this->Mobile_Number->ReadOnly);\n\n\t\t\t// Notes\n\t\t\t$this->Notes->SetDbValueDef($rsnew, $this->Notes->CurrentValue, \"\", $this->Notes->ReadOnly);\n\n\t\t\t// Balance\n\t\t\t$this->Balance->SetDbValueDef($rsnew, $this->Balance->CurrentValue, NULL, $this->Balance->ReadOnly);\n\n\t\t\t// Is_Stock_Available\n\t\t\t$this->Is_Stock_Available->SetDbValueDef($rsnew, ((strval($this->Is_Stock_Available->CurrentValue) == \"Y\") ? \"Y\" : \"N\"), \"N\", $this->Is_Stock_Available->ReadOnly);\n\n\t\t\t// Date_Added\n\t\t\t$this->Date_Added->SetDbValueDef($rsnew, $this->Date_Added->CurrentValue, NULL, $this->Date_Added->ReadOnly);\n\n\t\t\t// Added_By\n\t\t\t$this->Added_By->SetDbValueDef($rsnew, $this->Added_By->CurrentValue, NULL, $this->Added_By->ReadOnly);\n\n\t\t\t// Date_Updated\n\t\t\t$this->Date_Updated->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['Date_Updated'] = &$this->Date_Updated->DbValue;\n\n\t\t\t// Updated_By\n\t\t\t$this->Updated_By->SetDbValueDef($rsnew, CurrentUserName(), NULL);\n\t\t\t$rsnew['Updated_By'] = &$this->Updated_By->DbValue;\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"]; // v11.0.4\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\n\t\t\t\t// Update detail records\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\t$DetailTblVar = explode(\",\", $this->getCurrentDetailTable());\n\t\t\t\t\tif (in_array(\"a_purchases\", $DetailTblVar) && $GLOBALS[\"a_purchases\"]->DetailEdit) {\n\t\t\t\t\t\tif (!isset($GLOBALS[\"a_purchases_grid\"])) $GLOBALS[\"a_purchases_grid\"] = new ca_purchases_grid(); // Get detail page object\n\t\t\t\t\t\t$EditRow = $GLOBALS[\"a_purchases_grid\"]->GridUpdate();\n\t\t\t\t\t}\n\t\t\t\t\tif (in_array(\"a_stock_items\", $DetailTblVar) && $GLOBALS[\"a_stock_items\"]->DetailEdit) {\n\t\t\t\t\t\tif (!isset($GLOBALS[\"a_stock_items_grid\"])) $GLOBALS[\"a_stock_items_grid\"] = new ca_stock_items_grid(); // Get detail page object\n\t\t\t\t\t\t$EditRow = $GLOBALS[\"a_stock_items_grid\"]->GridUpdate();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Commit/Rollback transaction\n\t\t\t\tif ($this->getCurrentDetailTable() <> \"\") {\n\t\t\t\t\tif ($EditRow) {\n\t\t\t\t\t\t$conn->CommitTrans(); // Commit transaction\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$conn->RollbackTrans(); // Rollback transaction\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function onDuplicateKeyUpdate(array $columns)\n\t{\n\t\t$this->updateColumns = $columns;\n\t}", "public function _onEdit(&$row, $old_row)\n {\n $row[$this->edited_field] = TIP::formatDate('datetime_sql');\n $row[$this->editor_field] = TIP::getUserId();\n isset($this->edits_field) &&\n array_key_exists($this->edits_field, $row) &&\n ++ $row[$this->edits_field];\n\n $engine = &$this->data->getProperty('engine');\n if (!$engine->startTransaction()) {\n // This error must be caught here to avoid the rollback\n return false;\n }\n\n // Process the row\n $done = $this->data->updateRow($row, $old_row) &&\n $this->_onDbAction('Edit', $row, $old_row);\n $done = $engine->endTransaction($done) && $done;\n\n return $done;\n }", "public function testUpdateUnsuccessfulReason()\n {\n }", "public function test_if_failed_update()\n {\n }", "public function throwConflict()\n {\n throw new Exception\\ConflictException('Conflict', 1449131059);\n }", "public function eventObjectChange(Zend_Db_Table_Row_Abstract $new, Zend_Db_Table_Row_Abstract $old)\n {\n $tableClass = $new->getTableClass();\n\n if ($tableClass !== $old->getTableClass()) {\n Throw new Exception('Repository critical error');\n }\n\n if ($tableClass !== 'Application_Model_Upowaznienia') {\n //vd($new, $old);\n }\n\n foreach ($this->versionedObjects as $objectName => $objectConfig) {\n if (!empty($objectConfig['updatedOn'])) {\n foreach ($objectConfig['updatedOn'] as $updateOnModel) {\n if ($updateOnModel === $tableClass) {\n $versionModel = $objectConfig['versionModel'];\n\n $newData = $new->toArray();\n $oldData = $old->toArray();\n\n list ($checkData, $uniqueIndex) = $versionModel->prepareDataForCheck($newData, $oldData);\n\n $versionData = $this->processCheckData($checkData, $newData, $uniqueIndex);\n\n if ($versionData !== false) {\n //we know that were changes\n //store data for further repository update\n $this->addObjectToUpdate($objectConfig, $versionData, $uniqueIndex);\n }\n\n //there can be only one\n break;\n }\n }\n }\n }\n }", "protected function performPostUpdateCallback()\n {\n // echo 'updated a record ...';\n return true;\n }", "protected function onUpdating()\n {\n return $this->isDataOnUpdateValid();\n }", "public function testCreateConflictBetweenRecurAndExistEvent()\n {\n Tinebase_Core::getLogger()->debug(__METHOD__ . ' (' . __LINE__ . ') handle event of type ');\n $event = $this->_getEvent();\n $event->dtstart = '2010-05-20 06:00:00';\n $event->dtend = '2010-05-20 06:15:00';\n $event->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n $this->_controller->create($event);\n\n $event1 = $this->_getRecurEvent();\n $event1->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n \n $this->setExpectedException('Calendar_Exception_AttendeeBusy');\n $this->_controller->create($event1, TRUE);\n }", "public function changeRowData(&$row){}", "function update_sales_order_version($order)\n{\n foreach ($order as $so_num => $so_ver) {\n $sql= 'UPDATE '.TB_PREF.'sales_orders SET version=version+1 WHERE order_no='. db_escape($so_num).\n\t' AND version='.$so_ver . \" AND trans_type=30\";\n db_query($sql, 'Concurrent editing conflict while sales order update');\n }\n}", "public function onUpdateRecord()\n {\n $this->updated = new \\DateTime();\n $this->rev++;\n }", "protected function relationFieldUpdateExit(){\n return true;\n }", "public function commitUpdate();", "public function validateRowForReplace(array $rowData, $rowNumber)\n {\n $this->validateRowForDelete($rowData, $rowNumber);\n $this->validateRowForUpdate($rowData, $rowNumber);\n }", "function UpdateRows() {\r\n\t\tglobal $Language;\r\n\t\t$conn = &$this->Connection();\r\n\t\t$conn->BeginTrans();\r\n\t\tif ($this->AuditTrailOnEdit) $this->WriteAuditTrailDummy($Language->Phrase(\"BatchUpdateBegin\")); // Batch update begin\r\n\r\n\t\t// Get old recordset\r\n\t\t$this->CurrentFilter = $this->GetKeyFilter();\r\n\t\t$sSql = $this->SQL();\r\n\t\t$rsold = $conn->Execute($sSql);\r\n\r\n\t\t// Update all rows\r\n\t\t$sKey = \"\";\r\n\t\tforeach ($this->RecKeys as $key) {\r\n\t\t\tif ($this->SetupKeyValues($key)) {\r\n\t\t\t\t$sThisKey = $key;\r\n\t\t\t\t$this->SendEmail = FALSE; // Do not send email on update success\r\n\t\t\t\t$this->UpdateCount += 1; // Update record count for records being updated\r\n\t\t\t\t$UpdateRows = $this->EditRow(); // Update this row\r\n\t\t\t} else {\r\n\t\t\t\t$UpdateRows = FALSE;\r\n\t\t\t}\r\n\t\t\tif (!$UpdateRows)\r\n\t\t\t\tbreak; // Update failed\r\n\t\t\tif ($sKey <> \"\") $sKey .= \", \";\r\n\t\t\t$sKey .= $sThisKey;\r\n\t\t}\r\n\r\n\t\t// Check if all rows updated\r\n\t\tif ($UpdateRows) {\r\n\t\t\t$conn->CommitTrans(); // Commit transaction\r\n\r\n\t\t\t// Get new recordset\r\n\t\t\t$rsnew = $conn->Execute($sSql);\r\n\t\t\tif ($this->AuditTrailOnEdit) $this->WriteAuditTrailDummy($Language->Phrase(\"BatchUpdateSuccess\")); // Batch update success\r\n\t\t} else {\r\n\t\t\t$conn->RollbackTrans(); // Rollback transaction\r\n\t\t\tif ($this->AuditTrailOnEdit) $this->WriteAuditTrailDummy($Language->Phrase(\"BatchUpdateRollback\")); // Batch update rollback\r\n\t\t}\r\n\t\treturn $UpdateRows;\r\n\t}", "protected function updateDBRow(array $data = [])\n {\n $action = 'update';\n if ( !$this->exists ) {\n return $this->addError( \"Can't \" . $this->getActionString( 'present', $action ) . \" because it doesn't exist.\" );\n }\n $messageNoChanges = 'No changes were made to ' . $this->entityName . $this->getIDBadge( null, 'primary' );\n\n\n if ( empty( $data ) ) {\n $this->messages->add( $messageNoChanges, 'warning' );\n return false;\n }\n $result = $this->db->update( $this->tableName, $data, ['ID' => $this->id] );\n $dataHTMLTable = $this->getDataHTMLTable( $data );\n if ( $result === 0 ) {\n return $this->addError( $messageNoChanges . '. Attempted to update the following data:' . $dataHTMLTable );\n }\n if ( empty( $result ) ) {\n return $this->addError( 'Failed to ' . $this->getActionString( 'present', $action ) . $this->getIDBadge( null, 'danger' ) . ' with the following data:' . $dataHTMLTable );\n }\n $this->messages->add( ucfirst( $this->getActionString( 'past', $action ) ) . $this->getIDBadge( null, 'success' ) . ' with the following data:' . $dataHTMLTable, 'success' );\n $this->changed = [];\n return $result;\n }", "protected function applyUpdatesAlertTable()\n\t{\n\t\tif (Configuration::get('ADN_ALTER_TABLE') != 2)\n\t\t{\n\t\t\tif(!$this->isColumnExistInTable('details', 'authorizedotnet_refund_history')) { \n\t\t\t\tDb::getInstance()->Execute(\"ALTER TABLE `\"._DB_PREFIX_.\"authorizedotnet_refund_history` ADD `details` varchar(255) AFTER `amount`\");\n\t\t\t}\n\t\t\t\n\t\t\tif(!$this->isColumnExistInTable('auth_code', 'authorizedotnet_refunds')) { \n\t\t\t\tDb::getInstance()->Execute(\"ALTER TABLE `\"._DB_PREFIX_.\"authorizedotnet_refunds` ADD `auth_code` varchar(10) NOT NULL AFTER `card`\");\n\t\t\t}\n\n\t\t\tif(!$this->isColumnExistInTable('captured', 'authorizedotnet_refunds')) { \n\t\t\t\tDb::getInstance()->Execute(\"ALTER TABLE `\"._DB_PREFIX_.\"authorizedotnet_refunds` ADD `captured` TINYINT(1) NOT NULL DEFAULT '0' AFTER `auth_code`\");\n\t\t\t}\n\n\t\t\tConfiguration::updateValue('ADN_ALTER_TABLE','2');\n\t\t}\n\t}", "abstract public function affectedRows();", "abstract public function affectedRows();", "protected function beforeUpdating()\n {\n }", "function UpdateRows() {\n\t\tglobal $Language;\n\t\t$conn = &$this->Connection();\n\t\t$conn->BeginTrans();\n\n\t\t// Get old recordset\n\t\t$this->CurrentFilter = $this->GetKeyFilter();\n\t\t$sSql = $this->SQL();\n\t\t$rsold = $conn->Execute($sSql);\n\n\t\t// Update all rows\n\t\t$sKey = \"\";\n\t\tforeach ($this->RecKeys as $key) {\n\t\t\tif ($this->SetupKeyValues($key)) {\n\t\t\t\t$sThisKey = $key;\n\t\t\t\t$this->SendEmail = FALSE; // Do not send email on update success\n\t\t\t\t$this->UpdateCount += 1; // Update record count for records being updated\n\t\t\t\t$UpdateRows = $this->EditRow(); // Update this row\n\t\t\t} else {\n\t\t\t\t$UpdateRows = FALSE;\n\t\t\t}\n\t\t\tif (!$UpdateRows)\n\t\t\t\tbreak; // Update failed\n\t\t\tif ($sKey <> \"\") $sKey .= \", \";\n\t\t\t$sKey .= $sThisKey;\n\t\t}\n\n\t\t// Check if all rows updated\n\t\tif ($UpdateRows) {\n\t\t\t$conn->CommitTrans(); // Commit transaction\n\n\t\t\t// Get new recordset\n\t\t\t$rsnew = $conn->Execute($sSql);\n\t\t} else {\n\t\t\t$conn->RollbackTrans(); // Rollback transaction\n\t\t}\n\t\treturn $UpdateRows;\n\t}", "function wp_plugin_update_rows()\n {\n }", "function EditRow() {\n\t\tglobal $conn, $Security, $Language, $financial_year;\n\t\t$sFilter = $financial_year->KeyFilter();\n\t\t$financial_year->CurrentFilter = $sFilter;\n\t\t$sSql = $financial_year->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold =& $rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// year_name\n\t\t\t$financial_year->year_name->SetDbValueDef($rsnew, $financial_year->year_name->CurrentValue, NULL, FALSE);\n\n\t\t\t// date_start\n\t\t\t$financial_year->date_start->SetDbValueDef($rsnew, ew_UnFormatDateTime($financial_year->date_start->CurrentValue, 7, FALSE), NULL);\n\n\t\t\t// date_end\n\t\t\t$financial_year->date_end->SetDbValueDef($rsnew, ew_UnFormatDateTime($financial_year->date_end->CurrentValue, 7, FALSE), NULL);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $financial_year->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\t$EditRow = $conn->Execute($financial_year->UpdateSQL($rsnew));\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($financial_year->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setMessage($financial_year->CancelMessage);\n\t\t\t\t\t$financial_year->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$financial_year->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function my_affected_rows( ){ \r\n\t\tglobal $connection; \r\n\t\treturn $connection->affected_rows(); \r\n\t\t\r\n\t}", "public function testCreateConflictBetweenRecurAndExistEvent()\n {\n $event = $this->_getEvent();\n $event->dtstart = '2010-05-20 06:00:00';\n $event->dtend = '2010-05-20 06:15:00';\n $event->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n $this->_controller->create($event);\n\n $event1 = $this->_getRecurEvent();\n $event1->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['sclever']->getId()),\n array('user_type' => Calendar_Model_Attender::USERTYPE_USER, 'user_id' => $this->_personasContacts['pwulf']->getId())\n ));\n \n $this->setExpectedException('Calendar_Exception_AttendeeBusy');\n $this->_controller->create($event1, TRUE);\n }", "public function isUpdated() {}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language, $st_peserta_kelas_kelompok;\r\n\t\t$sFilter = $st_peserta_kelas_kelompok->KeyFilter();\r\n\t\t$st_peserta_kelas_kelompok->CurrentFilter = $sFilter;\r\n\t\t$sSql = $st_peserta_kelas_kelompok->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold =& $rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// identitas\r\n\t\t\t$st_peserta_kelas_kelompok->identitas->SetDbValueDef($rsnew, $st_peserta_kelas_kelompok->identitas->CurrentValue, \"\", $st_peserta_kelas_kelompok->identitas->ReadOnly);\r\n\r\n\t\t\t// kode_otomatis_kelompok\r\n\t\t\t$st_peserta_kelas_kelompok->kode_otomatis_kelompok->SetDbValueDef($rsnew, $st_peserta_kelas_kelompok->kode_otomatis_kelompok->CurrentValue, \"\", $st_peserta_kelas_kelompok->kode_otomatis_kelompok->ReadOnly);\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t// Call Row Updating event\r\n\r\n\t\t\t$bUpdateRow = $st_peserta_kelas_kelompok->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $conn->Execute($st_peserta_kelas_kelompok->UpdateSQL($rsnew));\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($st_peserta_kelas_kelompok->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($st_peserta_kelas_kelompok->CancelMessage);\r\n\t\t\t\t\t$st_peserta_kelas_kelompok->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$st_peserta_kelas_kelompok->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "protected function _upsert($data) {\n\t\tif (!pudl_array($data) || empty($data)) return false;\n\n\t\treturn\t' ON CONFLICT (' .\n\t\t\t\t$this->identifier(key($data)) .\n\t\t\t\t') DO UPDATE SET ' .\n\t\t\t\t$this->_update($data);\n\t}", "public abstract function affectedRows();", "public function add_or_update()\n {\n $this->on_duplicate_key('foo = foo + 1');\n $this->insert('table', array('foo' => 'bar'));\n }", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "protected function performUpdate() {}", "function affectedRows();", "function db_driver_affected_count($resource)\n{\n global $_db;\n\n return pg_affected_rows($resource);\n}", "public function testSaveDataTableUpdateRows() {\r\n\t\t// Prepare the database table via SQL\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testReadMultipleRecords 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testReadMultipleRecords 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testReadMultipleRecords 3']\r\n ];\r\n foreach ($records as $record) {\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$record['UUID'].'\\','.($record['bool'] ? 1:0).','.$record['int'].', \\''.$record['string'].'\\')');\r\n }\r\n\t\t// Create a datatable where only one column should be updated\r\n\t\t$datatable = new avorium_core_data_DataTable(3, 2);\r\n\t\t$datatable->setHeader(0, 'UUID');\r\n\t\t$datatable->setHeader(1, 'STRING_VALUE');\r\n\t\t// Store a new record without any null values\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$datatable->setCellValue($i, 0, $records[$i]['UUID']);\r\n\t\t\t$datatable->setCellValue($i, 1, 'New value '.$i);\r\n\t\t}\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t\t// Read out the database, all other columns must have the old values\r\n\t\t$result = $this->executeQuery('select UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE from POTEST order by UUID');\r\n\t\t$this->assertEquals(3, count($result), 'Wrong row count');\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$this->assertEquals($records[$i]['UUID'], $result[$i]['UUID'], 'UUID from database is not as expected in row '.$i.'.');\r\n\t\t\t$this->assertEquals($records[$i]['bool']?1:0, $result[$i]['BOOLEAN_VALUE'], 'Boolean value from database is not as expected in row '.$i.'.');\r\n\t\t\t$this->assertEquals($records[$i]['int'], $result[$i]['INT_VALUE'], 'Integer value from database is not as expected in row '.$i.'.');\r\n\t\t\t$this->assertEquals('New value '.$i, $result[$i]['STRING_VALUE'], 'String value from database is not as expected in row '.$i.'.');\r\n\t\t}\r\n\t}", "public function testExecuteUpdateBatchDependentStatements()\n {\n $id = $this->randId();\n\n $db = self::$database;\n $res = $db->runTransaction(function ($t) {\n $id = $this->randId();\n $res = $t->executeUpdateBatch([\n [\n 'sql' => 'INSERT INTO ' . self::TABLE_NAME . ' (id, intField) VALUES (@id, @int)',\n 'parameters' => [\n 'id' => $id,\n 'int' => 0\n ]\n ], [\n 'sql' => 'UPDATE ' . self::TABLE_NAME . ' SET intField = intField+1 WHERE id = @id',\n 'parameters' => [\n 'id' => $id\n ]\n ]\n ]);\n\n $t->commit();\n\n return $res;\n });\n\n $this->assertEquals([1, 1], $res->rowCounts());\n }", "function affected_rows();", "public function updateTasksForMismatchedHasJob()\n\t{\n\t\tif ($this->hasTaskCategory(Task::NOT_REPLIED)) return;\n\t\t$this->deleteMismatchedNoJobTasks();\n\t\t$this->createMismatchedHasJobTask();\n\t}", "function my_affected_rows( ){ \r\n\t\tglobal $connection; \r\n\t\treturn mysql_affected_rows($connection); \r\n\t\t\r\n\t}", "function prepare_update($rowindex) {\r\n foreach ($this->properties as $colvar=>$col) {\r\n if ($col->on_edit_callback != '') {\r\n $this->ds->{$colvar}[$rowindex] = eval($col->on_edit_callback);\r\n }\r\n }\r\n return True;\r\n }", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$this->Ruta_Archivo->OldUploadPath = 'ArchivosPase';\r\n\t\t\t$this->Ruta_Archivo->UploadPath = $this->Ruta_Archivo->OldUploadPath;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->SetDbValueDef($rsnew, $this->Serie_Equipo->CurrentValue, NULL, $this->Serie_Equipo->ReadOnly);\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->SetDbValueDef($rsnew, $this->Id_Hardware->CurrentValue, NULL, $this->Id_Hardware->ReadOnly);\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly);\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->SetDbValueDef($rsnew, $this->Modelo_Net->CurrentValue, NULL, $this->Modelo_Net->ReadOnly);\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->SetDbValueDef($rsnew, $this->Marca_Arranque->CurrentValue, NULL, $this->Marca_Arranque->ReadOnly);\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->SetDbValueDef($rsnew, $this->Nombre_Titular->CurrentValue, NULL, $this->Nombre_Titular->ReadOnly);\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->SetDbValueDef($rsnew, $this->Dni_Titular->CurrentValue, NULL, $this->Dni_Titular->ReadOnly);\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->SetDbValueDef($rsnew, $this->Cuil_Titular->CurrentValue, NULL, $this->Cuil_Titular->ReadOnly);\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->SetDbValueDef($rsnew, $this->Nombre_Tutor->CurrentValue, NULL, $this->Nombre_Tutor->ReadOnly);\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->SetDbValueDef($rsnew, $this->DniTutor->CurrentValue, NULL, $this->DniTutor->ReadOnly);\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->SetDbValueDef($rsnew, $this->Domicilio->CurrentValue, NULL, $this->Domicilio->ReadOnly);\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->SetDbValueDef($rsnew, $this->Tel_Tutor->CurrentValue, NULL, $this->Tel_Tutor->ReadOnly);\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->SetDbValueDef($rsnew, $this->CelTutor->CurrentValue, NULL, $this->CelTutor->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Alta->CurrentValue, NULL, $this->Cue_Establecimiento_Alta->ReadOnly);\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->SetDbValueDef($rsnew, $this->Escuela_Alta->CurrentValue, NULL, $this->Escuela_Alta->ReadOnly);\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->SetDbValueDef($rsnew, $this->Directivo_Alta->CurrentValue, NULL, $this->Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->SetDbValueDef($rsnew, $this->Cuil_Directivo_Alta->CurrentValue, NULL, $this->Cuil_Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->SetDbValueDef($rsnew, $this->Dpto_Esc_alta->CurrentValue, NULL, $this->Dpto_Esc_alta->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->SetDbValueDef($rsnew, $this->Localidad_Esc_Alta->CurrentValue, NULL, $this->Localidad_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->SetDbValueDef($rsnew, $this->Domicilio_Esc_Alta->CurrentValue, NULL, $this->Domicilio_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->SetDbValueDef($rsnew, $this->Rte_Alta->CurrentValue, NULL, $this->Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->SetDbValueDef($rsnew, $this->Tel_Rte_Alta->CurrentValue, NULL, $this->Tel_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->SetDbValueDef($rsnew, $this->Email_Rte_Alta->CurrentValue, NULL, $this->Email_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->SetDbValueDef($rsnew, $this->Serie_Server_Alta->CurrentValue, NULL, $this->Serie_Server_Alta->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Baja->CurrentValue, NULL, $this->Cue_Establecimiento_Baja->ReadOnly);\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->SetDbValueDef($rsnew, $this->Escuela_Baja->CurrentValue, NULL, $this->Escuela_Baja->ReadOnly);\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->SetDbValueDef($rsnew, $this->Directivo_Baja->CurrentValue, NULL, $this->Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->SetDbValueDef($rsnew, $this->Cuil_Directivo_Baja->CurrentValue, NULL, $this->Cuil_Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->SetDbValueDef($rsnew, $this->Dpto_Esc_Baja->CurrentValue, NULL, $this->Dpto_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->SetDbValueDef($rsnew, $this->Localidad_Esc_Baja->CurrentValue, NULL, $this->Localidad_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->SetDbValueDef($rsnew, $this->Domicilio_Esc_Baja->CurrentValue, NULL, $this->Domicilio_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->SetDbValueDef($rsnew, $this->Rte_Baja->CurrentValue, NULL, $this->Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->SetDbValueDef($rsnew, $this->Tel_Rte_Baja->CurrentValue, NULL, $this->Tel_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->SetDbValueDef($rsnew, $this->Email_Rte_Baja->CurrentValue, NULL, $this->Email_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->SetDbValueDef($rsnew, $this->Serie_Server_Baja->CurrentValue, NULL, $this->Serie_Server_Baja->ReadOnly);\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->Fecha_Pase->CurrentValue, 7), NULL, $this->Fecha_Pase->ReadOnly);\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->SetDbValueDef($rsnew, $this->Id_Estado_Pase->CurrentValue, 0, $this->Id_Estado_Pase->ReadOnly);\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->ReadOnly && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->Upload->DbValue = $rsold['Ruta_Archivo']; // Get original value\r\n\t\t\t\tif ($this->Ruta_Archivo->Upload->FileName == \"\") {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = NULL;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\r\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file)) {\r\n\t\t\t\t\t\t\t\tif (!in_array($file, $OldFiles)) {\r\n\t\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file); // Get new file name\r\n\t\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\r\n\t\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1)) // Make sure did not clash with existing upload file\r\n\t\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file1, TRUE); // Use indexed name\r\n\t\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file, ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1);\r\n\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->Ruta_Archivo->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t\t\t$NewFiles2 = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $rsnew['Ruta_Archivo']);\r\n\t\t\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $NewFiles[$i];\r\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\r\n\t\t\t\t\t\t\t\t\t\t$this->Ruta_Archivo->Upload->SaveToFile($this->Ruta_Archivo->UploadPath, (@$NewFiles2[$i] <> \"\") ? $NewFiles2[$i] : $NewFiles[$i], TRUE, $i); // Just replace\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$FileCount = count($OldFiles);\r\n\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\r\n\t\t\t\t\t\t\t\t@unlink(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->OldUploadPath) . $OldFiles[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\r\n\t\t// Ruta_Archivo\r\n\t\tew_CleanUploadTempPath($this->Ruta_Archivo, $this->Ruta_Archivo->Upload->Index);\r\n\t\treturn $EditRow;\r\n\t}", "public static function isConflict(Event $event1, Event $event2) {\n /*\n 2 points\n Determine if there are overlaps between\n the two events, the two events can be in any\n order.\n return true is conflict, else return false\n */\n \n\n }", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$this->featured_image->OldUploadPath = \"../uploads/product/\";\n\t\t\t$this->featured_image->UploadPath = $this->featured_image->OldUploadPath;\n\t\t\t$rsnew = array();\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->SetDbValueDef($rsnew, $this->cat_id->CurrentValue, 0, $this->cat_id->ReadOnly || $this->cat_id->MultiUpdate <> \"1\");\n\n\t\t\t// company_id\n\t\t\t$this->company_id->SetDbValueDef($rsnew, $this->company_id->CurrentValue, 0, $this->company_id->ReadOnly || $this->company_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->SetDbValueDef($rsnew, $this->pro_model->CurrentValue, NULL, $this->pro_model->ReadOnly || $this->pro_model->MultiUpdate <> \"1\");\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->SetDbValueDef($rsnew, $this->pro_name->CurrentValue, NULL, $this->pro_name->ReadOnly || $this->pro_name->MultiUpdate <> \"1\");\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->SetDbValueDef($rsnew, $this->pro_description->CurrentValue, NULL, $this->pro_description->ReadOnly || $this->pro_description->MultiUpdate <> \"1\");\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->SetDbValueDef($rsnew, $this->pro_condition->CurrentValue, NULL, $this->pro_condition->ReadOnly || $this->pro_condition->MultiUpdate <> \"1\");\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->SetDbValueDef($rsnew, $this->pro_features->CurrentValue, NULL, $this->pro_features->ReadOnly || $this->pro_features->MultiUpdate <> \"1\");\n\n\t\t\t// post_date\n\t\t\t$this->post_date->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['post_date'] = &$this->post_date->DbValue;\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->SetDbValueDef($rsnew, $this->ads_id->CurrentValue, NULL, $this->ads_id->ReadOnly || $this->ads_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->SetDbValueDef($rsnew, $this->pro_base_price->CurrentValue, NULL, $this->pro_base_price->ReadOnly || $this->pro_base_price->MultiUpdate <> \"1\");\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->SetDbValueDef($rsnew, $this->pro_sell_price->CurrentValue, NULL, $this->pro_sell_price->ReadOnly || $this->pro_sell_price->MultiUpdate <> \"1\");\n\n\t\t\t// featured_image\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->ReadOnly && strval($this->featured_image->MultiUpdate) == \"1\" && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->Upload->DbValue = $rsold['featured_image']; // Get original value\n\t\t\t\tif ($this->featured_image->Upload->FileName == \"\") {\n\t\t\t\t\t$rsnew['featured_image'] = NULL;\n\t\t\t\t} else {\n\t\t\t\t\t$rsnew['featured_image'] = $this->featured_image->Upload->FileName;\n\t\t\t\t}\n\t\t\t\t$this->featured_image->ImageWidth = 875; // Resize width\n\t\t\t\t$this->featured_image->ImageHeight = 665; // Resize height\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->SetDbValueDef($rsnew, $this->folder_image->CurrentValue, \"\", $this->folder_image->ReadOnly || $this->folder_image->MultiUpdate <> \"1\");\n\n\t\t\t// pro_status\n\t\t\t$tmpBool = $this->pro_status->CurrentValue;\n\t\t\tif ($tmpBool <> \"Y\" && $tmpBool <> \"N\")\n\t\t\t\t$tmpBool = (!empty($tmpBool)) ? \"Y\" : \"N\";\n\t\t\t$this->pro_status->SetDbValueDef($rsnew, $tmpBool, \"N\", $this->pro_status->ReadOnly || $this->pro_status->MultiUpdate <> \"1\");\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->SetDbValueDef($rsnew, $this->branch_id->CurrentValue, NULL, $this->branch_id->ReadOnly || $this->branch_id->MultiUpdate <> \"1\");\n\n\t\t\t// lang\n\t\t\t$this->lang->SetDbValueDef($rsnew, $this->lang->CurrentValue, \"\", $this->lang->ReadOnly || $this->lang->MultiUpdate <> \"1\");\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file)) {\n\t\t\t\t\t\t\t\t$OldFileFound = FALSE;\n\t\t\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\t\t\tfor ($j = 0; $j < $OldFileCount; $j++) {\n\t\t\t\t\t\t\t\t\t$file1 = $OldFiles[$j];\n\t\t\t\t\t\t\t\t\tif ($file1 == $file) { // Old file found, no need to delete anymore\n\t\t\t\t\t\t\t\t\t\tunset($OldFiles[$j]);\n\t\t\t\t\t\t\t\t\t\t$OldFileFound = TRUE;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($OldFileFound) // No need to check if file exists further\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx($this->featured_image->PhysicalUploadPath(), $file); // Get new file name\n\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\n\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1) || file_exists($this->featured_image->PhysicalUploadPath() . $file1)) // Make sure no file name clash\n\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename($this->featured_image->PhysicalUploadPath(), $file1, TRUE); // Use indexed name\n\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file, ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1);\n\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->featured_image->Upload->DbValue = empty($OldFiles) ? \"\" : implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $OldFiles);\n\t\t\t\t\t$this->featured_image->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\n\t\t\t\t\t$this->featured_image->SetDbValueDef($rsnew, $this->featured_image->Upload->FileName, \"\", $this->featured_image->ReadOnly || $this->featured_image->MultiUpdate <> \"1\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t\t\t$NewFiles2 = array($rsnew['featured_image']);\n\t\t\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $NewFiles[$i];\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\n\t\t\t\t\t\t\t\t\t\tif (@$NewFiles2[$i] <> \"\") // Use correct file name\n\t\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $NewFiles2[$i];\n\t\t\t\t\t\t\t\t\t\tif (!$this->featured_image->Upload->ResizeAndSaveToFile($this->featured_image->ImageWidth, $this->featured_image->ImageHeight, EW_THUMBNAIL_DEFAULT_QUALITY, $NewFiles[$i], TRUE, $i)) {\n\t\t\t\t\t\t\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UploadErrMsg7\"));\n\t\t\t\t\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$NewFiles = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\tfor ($i = 0; $i < $OldFileCount; $i++) {\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\n\t\t\t\t\t\t\t\t@unlink($this->featured_image->OldPhysicalUploadPath() . $OldFiles[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\n\t\t// featured_image\n\t\tew_CleanUploadTempPath($this->featured_image, $this->featured_image->Upload->Index);\n\t\treturn $EditRow;\n\t}", "private function verifyConflictId(Model $model, $tableInfos) {\n\t\t$DBMS = $model->getSerializationSettings()->getValue('database')->getValue('DBMS');\n\t\t$sameId = true;\n\t\tif (count($tableInfos['first_model']->getIdProperties()) != count($model->getIdProperties())) {\n\t\t\t$sameId = false;\n\t\t} else {\n\t\t\t$existing = [];\n\t\t\tforeach ($tableInfos['first_model']->getIdProperties() as $idProperty) {\n\t\t\t\t$existing[$idProperty->getSerializationName()] = $this->getColumnType($idProperty, $DBMS);\n\t\t\t}\n\t\t\tforeach ($model->getIdProperties() as $idProperty) {\n\t\t\t\tif (\n\t\t\t\t\t!array_key_exists($idProperty->getSerializationName(), $existing)\n\t\t\t\t\t|| $existing[$idProperty->getSerializationName()] !== $this->getColumnType($idProperty, $DBMS)\n\t\t\t\t) {\n\t\t\t\t\t$sameId = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (!$sameId) {\n\t\t\tthrow new \\Exception(\n\t\t\t\t\"Conflict between id properties from different models \"\n\t\t\t\t.\"using same SQL table '{$model->getSerializationSettings()->getValue('name')}' : \".PHP_EOL\n\t\t\t\t.\" - model '{$tableInfos['first_model']->getName()}'\".PHP_EOL\n\t\t\t\t.\" - model '{$model->getName()}'\"\n\t\t\t);\n\t\t}\n\t}", "public function isExtListUpdateNecessary() {}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// nomr\n\t\t\t$this->nomr->SetDbValueDef($rsnew, $this->nomr->CurrentValue, \"\", $this->nomr->ReadOnly);\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->SetDbValueDef($rsnew, $this->ket_nama->CurrentValue, NULL, $this->ket_nama->ReadOnly);\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->ket_tgllahir->CurrentValue, 0), NULL, $this->ket_tgllahir->ReadOnly);\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->SetDbValueDef($rsnew, $this->ket_alamat->CurrentValue, NULL, $this->ket_alamat->ReadOnly);\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->SetDbValueDef($rsnew, $this->ket_jeniskelamin->CurrentValue, NULL, $this->ket_jeniskelamin->ReadOnly);\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->SetDbValueDef($rsnew, $this->ket_title->CurrentValue, NULL, $this->ket_title->ReadOnly);\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->SetDbValueDef($rsnew, $this->dokterpengirim->CurrentValue, 0, $this->dokterpengirim->ReadOnly);\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->SetDbValueDef($rsnew, $this->statusbayar->CurrentValue, 0, $this->statusbayar->ReadOnly);\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->SetDbValueDef($rsnew, $this->kirimdari->CurrentValue, 0, $this->kirimdari->ReadOnly);\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->SetDbValueDef($rsnew, $this->keluargadekat->CurrentValue, \"\", $this->keluargadekat->ReadOnly);\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->SetDbValueDef($rsnew, $this->panggungjawab->CurrentValue, \"\", $this->panggungjawab->ReadOnly);\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->masukrs->CurrentValue, 0), NULL, $this->masukrs->ReadOnly);\n\n\t\t\t// noruang\n\t\t\t$this->noruang->SetDbValueDef($rsnew, $this->noruang->CurrentValue, 0, $this->noruang->ReadOnly);\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->SetDbValueDef($rsnew, $this->tempat_tidur_id->CurrentValue, 0, $this->tempat_tidur_id->ReadOnly);\n\n\t\t\t// nott\n\t\t\t$this->nott->SetDbValueDef($rsnew, $this->nott->CurrentValue, \"\", $this->nott->ReadOnly);\n\n\t\t\t// NIP\n\t\t\t$this->NIP->SetDbValueDef($rsnew, $this->NIP->CurrentValue, \"\", $this->NIP->ReadOnly);\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->SetDbValueDef($rsnew, $this->dokter_penanggungjawab->CurrentValue, 0, $this->dokter_penanggungjawab->ReadOnly);\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->SetDbValueDef($rsnew, $this->KELASPERAWATAN_ID->CurrentValue, NULL, $this->KELASPERAWATAN_ID->ReadOnly);\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->SetDbValueDef($rsnew, $this->NO_SKP->CurrentValue, NULL, $this->NO_SKP->ReadOnly);\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglsep->CurrentValue, 5), NULL, $this->sep_tglsep->ReadOnly);\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglrujuk->CurrentValue, 5), NULL, $this->sep_tglrujuk->ReadOnly);\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->SetDbValueDef($rsnew, $this->sep_kodekelasrawat->CurrentValue, NULL, $this->sep_kodekelasrawat->ReadOnly);\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->SetDbValueDef($rsnew, $this->sep_norujukan->CurrentValue, NULL, $this->sep_norujukan->ReadOnly);\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->SetDbValueDef($rsnew, $this->sep_kodeppkasal->CurrentValue, NULL, $this->sep_kodeppkasal->ReadOnly);\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->SetDbValueDef($rsnew, $this->sep_namappkasal->CurrentValue, NULL, $this->sep_namappkasal->ReadOnly);\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->SetDbValueDef($rsnew, $this->sep_kodeppkpelayanan->CurrentValue, NULL, $this->sep_kodeppkpelayanan->ReadOnly);\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->SetDbValueDef($rsnew, $this->sep_jenisperawatan->CurrentValue, NULL, $this->sep_jenisperawatan->ReadOnly);\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->SetDbValueDef($rsnew, $this->sep_catatan->CurrentValue, NULL, $this->sep_catatan->ReadOnly);\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->SetDbValueDef($rsnew, $this->sep_kodediagnosaawal->CurrentValue, NULL, $this->sep_kodediagnosaawal->ReadOnly);\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->SetDbValueDef($rsnew, $this->sep_namadiagnosaawal->CurrentValue, NULL, $this->sep_namadiagnosaawal->ReadOnly);\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->SetDbValueDef($rsnew, $this->sep_lakalantas->CurrentValue, NULL, $this->sep_lakalantas->ReadOnly);\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->SetDbValueDef($rsnew, $this->sep_lokasilaka->CurrentValue, NULL, $this->sep_lokasilaka->ReadOnly);\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->SetDbValueDef($rsnew, $this->sep_user->CurrentValue, NULL, $this->sep_user->ReadOnly);\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->SetDbValueDef($rsnew, $this->sep_flag_cekpeserta->CurrentValue, NULL, $this->sep_flag_cekpeserta->ReadOnly);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->SetDbValueDef($rsnew, $this->sep_flag_generatesep->CurrentValue, NULL, $this->sep_flag_generatesep->ReadOnly);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->SetDbValueDef($rsnew, $this->sep_nik->CurrentValue, NULL, $this->sep_nik->ReadOnly);\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->SetDbValueDef($rsnew, $this->sep_namapeserta->CurrentValue, NULL, $this->sep_namapeserta->ReadOnly);\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->SetDbValueDef($rsnew, $this->sep_jeniskelamin->CurrentValue, NULL, $this->sep_jeniskelamin->ReadOnly);\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->SetDbValueDef($rsnew, $this->sep_pisat->CurrentValue, NULL, $this->sep_pisat->ReadOnly);\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->SetDbValueDef($rsnew, $this->sep_tgllahir->CurrentValue, NULL, $this->sep_tgllahir->ReadOnly);\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->SetDbValueDef($rsnew, $this->sep_kodejeniskepesertaan->CurrentValue, NULL, $this->sep_kodejeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->SetDbValueDef($rsnew, $this->sep_namajeniskepesertaan->CurrentValue, NULL, $this->sep_namajeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->SetDbValueDef($rsnew, $this->sep_nokabpjs->CurrentValue, NULL, $this->sep_nokabpjs->ReadOnly);\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->SetDbValueDef($rsnew, $this->sep_status_peserta->CurrentValue, NULL, $this->sep_status_peserta->ReadOnly);\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->SetDbValueDef($rsnew, $this->sep_umur_pasien_sekarang->CurrentValue, NULL, $this->sep_umur_pasien_sekarang->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "function before_validation_on_update() {}", "public function save(){\n\t\t$res = true;\n\t\t$changedData = $this->changedData();\n\t\tif(count($changedData)){\n\t\t\tif(!empty($this->orig)){\n\t\t\t\t$res = (dbHelper::updateQry($this->tableName,$changedData,array($this->primaryKey=>$this->data[$this->primaryKey]))?true:false);\n\t\t\t\t$this->orig = $this->data;\n\t\t\t} else {\n\t\t\t\t//if this row has been deleted but someone else saves data to it this will automatically restore the row from $data\n\t\t\t\t$res = (dbHelper::insertQry($this->tableName,$this->data)?true:false);\n\t\t\t\t$this->data[$this->primaryKey] = db::insertID();\n\t\t\t\tdbData::addRow($this->tableName,$this->primaryKey,$this->data);\n\t\t\t\t$this->orig =& dbData::rowRefrence($this->tableName,$this->primaryKey,$this->data[$this->primaryKey]);\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "function ibase_affected_rows($link_identifier = NULL)\n{\n}", "function updateExistingTables() {\n \t$changes = array(\n \t \"alter table `\" . TABLE_PREFIX . \"project_objects` add `is_locked` tinyint(0) unsigned null default null after `has_time`\",\n \t \"alter table `\" . TABLE_PREFIX . \"project_objects` change `project_id` `project_id` int(10) unsigned not null default '0'\",\n \t \"alter table `\" . TABLE_PREFIX . \"pinned_projects` change `project_id` `project_id` int(10) unsigned not null default '0'\",\n \t \"alter table `\" . TABLE_PREFIX . \"project_config_options` change `project_id` `project_id` int(10) unsigned not null default '0'\",\n \t \"alter table `\" . TABLE_PREFIX . \"project_users` change `project_id` `project_id` int(10) unsigned not null default '0'\",\n \t);\n \t\n \tforeach($changes as $change) {\n \t $update = $this->utility->db->execute($change);\n \t if(is_error($update)) {\n \t return $update->getMessage();\n \t } // if\n \t} // foreach\n \t\n \treturn true;\n }", "public function complete(){\n\n $flag = 0;\n \n $query = \"SET foreign_key_checks = 0\";\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n \n $query1 = \"DELETE FROM \" . $this->table_name . \"\n WHERE id_ordine=?\";\n $stmt1 = $this->conn->prepare($query1);\n $this->id_ordine=htmlspecialchars($this->id_ordine);\n $stmt1->bindParam(1, $this->id_ordine);\n $stmt1->execute();\n if($stmt1){\n $query2 = \"UPDATE articolo set id_ordine = NULL \n WHERE id_ordine=?\";\n\n $stmt2 = $this->conn->prepare($query2);\n $this->id_ordine=htmlspecialchars($this->id_ordine);\n $stmt2->bindParam(1, $this->id_ordine);\n $stmt2->execute();\n\n if($stmt2){\n\n $query3 = \"SET foreign_key_checks = 1\";\n $stmt3 = $this->conn->prepare($query3);\n $stmt3->execute();\n if($stmt3)\n return true;\n }\n }\n else\n return false;\n }", "function GridUpdate() {\r\n\t\tglobal $conn, $Language, $objForm, $gsFormError, $rekeningju;\r\n\t\t$bGridUpdate = TRUE;\r\n\r\n\t\t// Get old recordset\r\n\t\t$rekeningju->CurrentFilter = $this->BuildKeyFilter();\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\tif ($rs = $conn->Execute($sSql)) {\r\n\t\t\t$rsold = $rs->GetRows();\r\n\t\t\t$rs->Close();\r\n\t\t}\r\n\t\t$sKey = \"\";\r\n\r\n\t\t// Update row index and get row key\r\n\t\t$objForm->Index = 0;\r\n\t\t$rowcnt = strval($objForm->GetValue(\"key_count\"));\r\n\t\tif ($rowcnt == \"\" || !is_numeric($rowcnt))\r\n\t\t\t$rowcnt = 0;\r\n\r\n\t\t// Update all rows based on key\r\n\t\tfor ($rowindex = 1; $rowindex <= $rowcnt; $rowindex++) {\r\n\t\t\t$objForm->Index = $rowindex;\r\n\t\t\t$rowkey = strval($objForm->GetValue(\"k_key\"));\r\n\t\t\t$rowaction = strval($objForm->GetValue(\"k_action\"));\r\n\r\n\t\t\t// Load all values and keys\r\n\t\t\tif ($rowaction <> \"insertdelete\") { // Skip insert then deleted rows\r\n\t\t\t\t$this->LoadFormValues(); // Get form values\r\n\t\t\t\tif ($rowaction == \"\" || $rowaction == \"edit\" || $rowaction == \"delete\") {\r\n\t\t\t\t\t$bGridUpdate = $this->SetupKeyValues($rowkey); // Set up key values\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$bGridUpdate = TRUE;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Skip empty row\r\n\t\t\t\tif ($rowaction == \"insert\" && $this->EmptyRow()) {\r\n\r\n\t\t\t\t\t// No action required\r\n\t\t\t\t// Validate form and insert/update/delete record\r\n\r\n\t\t\t\t} elseif ($bGridUpdate) {\r\n\t\t\t\t\tif ($rowaction == \"delete\") {\r\n\t\t\t\t\t\t$rekeningju->CurrentFilter = $rekeningju->KeyFilter();\r\n\t\t\t\t\t\t$bGridUpdate = $this->DeleteRows(); // Delete this row\r\n\t\t\t\t\t} else if (!$this->ValidateForm()) {\r\n\t\t\t\t\t\t$bGridUpdate = FALSE; // Form error, reset action\r\n\t\t\t\t\t\t$this->setFailureMessage($gsFormError);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tif ($rowaction == \"insert\") {\r\n\t\t\t\t\t\t\t$bGridUpdate = $this->AddRow(); // Insert this row\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tif ($rowkey <> \"\") {\r\n\t\t\t\t\t\t\t\t$rekeningju->SendEmail = FALSE; // Do not send email on update success\r\n\t\t\t\t\t\t\t\t$bGridUpdate = $this->EditRow(); // Update this row\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} // End update\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif ($bGridUpdate) {\r\n\t\t\t\t\tif ($sKey <> \"\") $sKey .= \", \";\r\n\t\t\t\t\t$sKey .= $rowkey;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($bGridUpdate) {\r\n\r\n\t\t\t// Get new recordset\r\n\t\t\tif ($rs = $conn->Execute($sSql)) {\r\n\t\t\t\t$rsnew = $rs->GetRows();\r\n\t\t\t\t$rs->Close();\r\n\t\t\t}\r\n\t\t\t$this->ClearInlineMode(); // Clear inline edit mode\r\n\t\t} else {\r\n\t\t\tif ($this->getFailureMessage() == \"\")\r\n\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateFailed\")); // Set update failed message\r\n\t\t\t$rekeningju->EventCancelled = TRUE; // Set event cancelled\r\n\t\t\t$rekeningju->CurrentAction = \"gridedit\"; // Stay in Grid Edit mode\r\n\t\t}\r\n\t\treturn $bGridUpdate;\r\n\t}", "public function hasUpdate();", "public function updateRow($data)\r\n\t{\r\n\t\t$data = (array)$data;\r\n\t\t$data = $this->cleanupFieldNames($data);\r\n\t\t\r\n\t\t// Build SQL\r\n\t\t$sql = 'UPDATE `'.$this->name.'` SET ';\r\n\t\t$values = array();\r\n\t\t$pkFound = false;\r\n\t\tforeach($data as $key => $val)\r\n\t\t{\r\n\t\t\t// Ignore if field is not in table\r\n\t\t\tif (!$this->hasField($key))\r\n\t\t\t{\r\n\t\t\t\tunset($data[$key]);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Include value, but not if primary key and table has auto-incr PK\r\n\t\t\t$include = true;\r\n\t\t\tif ($key == $this->primaryKey)\r\n\t\t\t{\r\n\t\t\t\tif ($this->primaryKeyIsAutoIncrement)\r\n\t\t\t\t{\r\n\t\t\t\t\t$include = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Found non-empty primary key\r\n\t\t\t\tif (!empty($val))\r\n\t\t\t\t{\r\n\t\t\t\t\t$pkFound = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Include and process special value\r\n\t\t\tif ($include)\r\n\t\t\t{\r\n\t\t\t\tif ($val === 'NULL')\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = NULL\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = :$key\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t// Quit if has no primary key\r\n\t\tif (!$pkFound)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Cannot update: The supplied data does not contain a primary key');\r\n\t\t}\r\n\t\r\n\t\t// No fields were found - update makes no sense\r\n\t\tif (count($values) == 0)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('No fields were added to the UPDATE query');\r\n\t\t}\r\n\t\t\t\r\n\t\t// Add values to query\r\n\t\t$sql .= implode(', ', $values);\r\n\t\r\n\t\t// Add where\r\n\t\t$sql .= ' WHERE `'.$this->primaryKey.'` = :' . $this->primaryKey;\r\n\r\n\t\t// Execute\r\n\t\t$result = $this->db->runQuery($sql, $data);\r\n\t\t\r\n\t\treturn $this->db->getAffectedRows();\r\n\t}", "public function updateRow(Request $request)\n {\n $result=MyRow::where('id',$request->id)->update([$request->column_name=>$request->value]);\n if ($result) echo 'Data Updated';\n }", "public static function userMergeCallback(LMergeEvent $event){\n $model = Tag2::model();\n $model->dbConnection->createCommand()->delete($model->relationTableName(), 'uid=:uid', array(':uid'=>$event->oldUid));\n }", "public function updated() {\n\t\tif (!$this->connection) return 0;\n\t\treturn @pg_affected_rows($this->connection);\n\t}", "public function changed() {\n\t\t\tif (!$this->original_data) {\n\t\t\t\tthrow new Exception('call exists() before calling changed()');\n\t\t\t}\n\t\t\t\n\t\t\tif ($this->last_change != $this->original_last_change ||\n\t\t\t $this->last_change_reason != $this->original_last_change_reason ||\n\t\t\t $this->lanes_affected != $this->original_lanes_affected ||\n\t\t\t $this->traffic_impact != $this->original_traffic_impact ||\n\t\t\t $this->reason != $this->original_reason) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\treturn false;\n\t\t}", "protected function onUpdated()\n {\n return true;\n }", "function updateDB ($sql_stmt) {\n //connect to DB\n $dbh = connectMySQL();\n \n try {\n //create and execute the MySQL statement\n $stmt = $dbh->prepare($sql_stmt);\n $stmt->execute();\n \n //check if anything was updated\n $rowsUpdated = $stmt->rowCount();\n if ($rowsUpdated == 0) {\n return 0; //nothing was updated\n }\n else {\n return 1; //at least one record was updated\n }\n }\n catch (Exception $e) {\n return 0;\n }\n}", "public function onSelectChangeStatus(GridRowEventData $event)\n {\n $id = $event->getId();\n $value = $event->getData();\n $control = $event->getControl();\n try {\n $this->adminFacade->changeStatus($id,(bool) $value);\n $control->flashMessage(\n self::MESSAGE_SUCCESS_CHANGE_STATUS,\n AdminPresenter::STATUS_SUCCESS,\n null,\n AdminPresenter::ICON_SUCCESS,\n 100\n );\n $control->reload();\n return;\n } catch (AdminException $exc) {\n $control->getPresenter()->flashMessage(\n $exc->getMessage(),\n AdminPresenter::STATUS_DANGER,\n null,\n AdminPresenter::ICON_DANGER,\n 100\n );\n $control->getPresenter()->redirect(AdminPresenter::ACTION_DEFAULT);\n }\n }", "protected function _validateRowForUpdate(array $rowData, $rowNumber)\n {\n $multiSeparator = $this->getMultipleValueSeparator();\n if ($this->_checkUniqueKey($rowData, $rowNumber)) {\n $email = strtolower($rowData[self::COLUMN_EMAIL]);\n $website = $rowData[self::COLUMN_WEBSITE];\n $addressId = $rowData[self::COLUMN_ADDRESS_ID];\n $customerId = $this->_getCustomerId($email, $website);\n\n if ($customerId === false) {\n $this->addRowError(self::ERROR_CUSTOMER_NOT_FOUND, $rowNumber);\n } else {\n if ($this->_checkRowDuplicate($customerId, $addressId)) {\n $this->addRowError(self::ERROR_DUPLICATE_PK, $rowNumber);\n } else {\n // check simple attributes\n foreach ($this->_attributes as $attributeCode => $attributeParams) {\n $websiteId = $this->_websiteCodeToId[$website];\n $attributeParams = $this->adjustAttributeDataForWebsite($attributeParams, $websiteId);\n\n if (in_array($attributeCode, $this->_ignoredAttributes)) {\n continue;\n }\n if (isset($rowData[$attributeCode]) && strlen($rowData[$attributeCode])) {\n $this->isAttributeValid(\n $attributeCode,\n $attributeParams,\n $rowData,\n $rowNumber,\n $multiSeparator\n );\n } elseif ($attributeParams['is_required']\n && !$this->addressStorage->doesExist(\n (string)$addressId,\n (string)$customerId\n )\n ) {\n $this->addRowError(self::ERROR_VALUE_IS_REQUIRED, $rowNumber, $attributeCode);\n }\n }\n\n if (isset($rowData[self::COLUMN_POSTCODE])\n && isset($rowData[self::COLUMN_COUNTRY_ID])\n && !$this->postcodeValidator->isValid(\n $rowData[self::COLUMN_COUNTRY_ID],\n $rowData[self::COLUMN_POSTCODE]\n )\n ) {\n $this->addRowError(self::ERROR_VALUE_IS_REQUIRED, $rowNumber, self::COLUMN_POSTCODE);\n }\n\n if (isset($rowData[self::COLUMN_COUNTRY_ID]) && isset($rowData[self::COLUMN_REGION])) {\n $countryRegions = isset(\n $this->_countryRegions[strtolower($rowData[self::COLUMN_COUNTRY_ID])]\n ) ? $this->_countryRegions[strtolower(\n $rowData[self::COLUMN_COUNTRY_ID]\n )] : [];\n\n if (!empty($rowData[self::COLUMN_REGION]) && !empty($countryRegions) && !isset(\n $countryRegions[strtolower($rowData[self::COLUMN_REGION])]\n )\n ) {\n $this->addRowError(self::ERROR_INVALID_REGION, $rowNumber, self::COLUMN_REGION);\n }\n }\n }\n }\n }\n }", "protected function _postUpdate()\n\t{\n\t}", "public function prepareUpdate() {\n $this->connection->update($this->mapTable)\n ->fields(array('needs_update' => MigrateMap::STATUS_NEEDS_UPDATE))\n ->execute();\n }", "function after_validation_on_update() {}", "function before_update() {}", "public function eventObjectRemove(Zend_Db_Table_Row $object)\n {\n $tableClass = $object->getTableClass();\n $tableModel = $object->getTable();\n\n foreach ($this->versionedObjects as $objectName => $objectConfig) {\n if (!empty($objectConfig['updatedOn'])) {\n foreach ($objectConfig['updatedOn'] as $updateOnModel) {\n if ($updateOnModel === $tableClass) {\n $versionModel = $objectConfig['versionModel'];\n\n $emptyData = $tableModel->createRow()->toArray();\n $oldData = $object->toArray();\n\n list ($checkData, $uniqueIndex) = $versionModel->prepareDataForCheck($oldData, $emptyData);\n $versionData = $this->processCheckData($checkData, $oldData, $uniqueIndex);\n $versions = $this->saveChanges($objectConfig, $versionData, $uniqueIndex, true);\n\n if (!empty($versions)) {\n $this->addUpdatedObject($objectConfig, $uniqueIndex, $versions);\n }\n\n //there can be only one\n break;\n }\n }\n }\n }\n }", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language, $rekeningju;\r\n\t\t$sFilter = $rekeningju->KeyFilter();\r\n\t\t$rekeningju->CurrentFilter = $sFilter;\r\n\t\t$sSql = $rekeningju->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold =& $rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// NoRek\r\n\t\t\t$rekeningju->NoRek->SetDbValueDef($rsnew, $rekeningju->NoRek->CurrentValue, \"\", $rekeningju->NoRek->ReadOnly);\r\n\r\n\t\t\t// Keterangan\r\n\t\t\t$rekeningju->Keterangan->SetDbValueDef($rsnew, $rekeningju->Keterangan->CurrentValue, NULL, $rekeningju->Keterangan->ReadOnly);\r\n\r\n\t\t\t// debet\r\n\t\t\t$rekeningju->debet->SetDbValueDef($rsnew, $rekeningju->debet->CurrentValue, 0, $rekeningju->debet->ReadOnly);\r\n\r\n\t\t\t// kredit\r\n\t\t\t$rekeningju->kredit->SetDbValueDef($rsnew, $rekeningju->kredit->CurrentValue, 0, $rekeningju->kredit->ReadOnly);\r\n\r\n\t\t\t// kode_bukti\r\n\t\t\t$rekeningju->kode_bukti->SetDbValueDef($rsnew, $rekeningju->kode_bukti->CurrentValue, NULL, $rekeningju->kode_bukti->ReadOnly);\r\n\r\n\t\t\t// tanggal\r\n\t\t\t$rekeningju->tanggal->SetDbValueDef($rsnew, ew_UnFormatDateTime($rekeningju->tanggal->CurrentValue, 7), ew_CurrentDate(), $rekeningju->tanggal->ReadOnly);\r\n\r\n\t\t\t// tanggal_nota\r\n\t\t\t$rekeningju->tanggal_nota->SetDbValueDef($rsnew, ew_UnFormatDateTime($rekeningju->tanggal_nota->CurrentValue, 7), ew_CurrentDate(), $rekeningju->tanggal_nota->ReadOnly);\r\n\r\n\t\t\t// kode_otomatis\r\n\t\t\t// kode_otomatis_tingkat\r\n\r\n\t\t\t$rekeningju->kode_otomatis_tingkat->SetDbValueDef($rsnew, $rekeningju->kode_otomatis_tingkat->CurrentValue, \"\", $rekeningju->kode_otomatis_tingkat->ReadOnly);\r\n\r\n\t\t\t// apakah_original\r\n\t\t\t$rekeningju->apakah_original->SetDbValueDef($rsnew, $rekeningju->apakah_original->CurrentValue, \"\", $rekeningju->apakah_original->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $rekeningju->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $conn->Execute($rekeningju->UpdateSQL($rsnew));\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($rekeningju->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($rekeningju->CancelMessage);\r\n\t\t\t\t\t$rekeningju->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$rekeningju->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "private function row_failed( $row ) {\n\t\t$this->failed_rows[] = $row + 1;\n\t}", "abstract public function AffectedRows();", "protected function _onOwnRowUpdateNotVisible(Kwf_Component_Data $c, Kwf_Events_Event_Row_Abstract $event)\n {\n parent::_onOwnRowUpdateNotVisible($c, $event);\n if ($event->isDirty(array('kwf_upload_id', 'width', 'height',\n 'dimension', 'crop_x', 'crop_y',\n 'crop_width', 'crop_height'))\n ) {\n $this->_fireMediaChanged($c);\n }\n }", "public function atualizarClientes($reg,$nome,$rg,$cpf,$cnpj,$telefone,$dtnascimento,$habilitado){\n //$conexao = $c->conexao();\n\n $usuid = $_SESSION['usuid'];\n $_SESSION['nomeAnterior'] = $nome;\n\n $sql = \"SELECT reg,rg FROM tbclientes c WHERE reg = '$reg' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if($rg != $row['rg']){\n $sql = \"SELECT count(*) as existe FROM tbclientes c WHERE rg = '$rg' \";\n $sql = $this->conexao->query($sql);\n $row = $sql->fetch_assoc();\n\n if ($row['existe'] >= 1 ) {\n return 0;\n }else{ \n\n $sql = \"UPDATE tbclientes SET nome = '$nome', rg = '$rg', cpf='$cpf', cnpj = '$cnpj', telefone = '$telefone', dt_nascimento = '$dtnascimento', habilitado = '$habilitado', modificado = NOW(), usuid = '$usuid' WHERE reg = '$reg'\";\n echo $this->conexao->query($sql);\n\n $mensagem = \"O Usuário \".$_SESSION['email'].\" atualizou o Cliente para $nome \";\n $this->salvaLog($mensagem);\n }\n \n }else{ \n\n $sql = \"UPDATE tbclientes SET nome = '$nome', rg = '$rg', cpf='$cpf', cnpj = '$cnpj',telefone = '$telefone', dt_nascimento = '$dtnascimento', habilitado = '$habilitado', modificado = NOW(), usuid = '$usuid' WHERE reg = '$reg'\";\n\n echo $this->conexao->query($sql);\n\n $mensagem = \"O Usuário \".$_SESSION['email'].\" atualizou o Cliente para $nome \";\n $this->salvaLog($mensagem);\n\n }\n\n \n\n }", "private function confirmFailureHelper($event){\n $dbObject = Yii::app()->db;\n $transaction = $dbObject->beginTransaction();\n try {\n $kind_id = false;\n if(isset($this->transactionId) && is_int($this->transactionId)){\n $act_id = $this->transactionId;\n } else {\n $isExist = $dbObject->createCommand()\n ->select('kind_id')\n ->from('pm_transaction_kind')\n ->where('description=:desc', array(':desc'=>$this->transactionKind));\n $read = $isExist->query();\n $kind_id = $read->read();\n if($kind_id == false){\n $dbObject->createCommand()\n ->insert('pm_transaction_kind', array('description'=>$this->transactionKind));\n $act_id = Yii::app()->db->getLastInsertID();\n } else {\n $act_id = $kind_id['kind_id'];\n }\n }\n $isExist = $dbObject->createCommand()\n ->select('err_id')\n ->from('pm_transaction_error')\n ->where('description=:desc', array(':desc'=>$event->sender->dataOut('ERROR')));\n $read = $isExist->query();\n $err_id = $read->read();\n if($err_id == false){\n $dbObject->createCommand()->insert('pm_transaction_error', array('description'=>$event->sender->dataOut('ERROR')));\n $act2_id = Yii::app()->db->getLastInsertID();\n } else {\n $act2_id = $err_id['err_id'];\n }\n $dbObject->createCommand()->insert('pm_transaction_log', array(\n 'from_user_id'=>$this->payerId,\n 'from_purse'=>$this->payerAccount,\n 'to_user_id'=>$this->payeeId,\n 'to_purse'=>$this->payeeAccount,\n 'notation'=>$this->notation,\n 'amount'=>$this->amount,\n 'currency'=>'USD',\n 'tr_kind_id'=>$act_id,\n 'tr_err_code'=>$act2_id,\n ));\n // ..............................\n // commit - включить запись транзакций с ошибками в бд rollback - выключить\n $transaction->commit();\n //$transaction->rollback();\n }catch(Exception $exception){\n // Действия по логированию в файл\n //TO DO\n $transaction->rollback();\n }\n\n }", "public function doUpdate() {\n\t\ttry {\n\t\t\tcall_user_func_array( $this->doUpdateFunction, $this->arguments );\n\t\t} catch ( Exception $ex ) {\n\t\t\t$this->exceptionHandler->handleException( $ex, 'data-update-failed',\n\t\t\t\t'A data update callback triggered an exception' );\n\t\t}\n\t}", "public function validateRowForUpdate(array $rowData, $rowNumber)\n {\n if (!empty($rowData['conditions_serialized'])) {\n $conditions = $this->serializer->unserialize($rowData['conditions_serialized']);\n if (is_array($conditions)) {\n $this->validateConditions($conditions, $rowNumber);\n } else {\n $errorMessage = __('invalid conditions serialized.');\n $this->addRowError($errorMessage, $rowNumber);\n }\n }\n\n if (!empty($rowData['actions_serialized'])) {\n $actions = $this->serializer->unserialize($rowData['actions_serialized']);\n if (is_array($actions)) {\n $this->validateActions($actions, $rowNumber);\n } else {\n $errorMessage = __('invalid actions serialized.');\n $this->addRowError($errorMessage, $rowNumber);\n }\n }\n }", "public function updaterecorddataAction()\n {\n \t$this->_helper->viewRenderer->setNoRender();\n \t\n \t$itemid = $this->getRequest()->getParam('itemID');\n \t$columnname = $this->getRequest()->getParam('column');\n \t$newvalue = $this->getRequest()->getParam('newdata');\n \t$group = GroupNamespace::getCurrentGroup();\n \t\n \tif (isset($itemid) && isset($group))\n \t{\n \t\t$records = $group->getRecords();\n \t\tif (isset($records[$itemid]))\n \t\t{\n \t\t\t$record = $records[$itemid];\n \t\t\t$updatedrecord = $this->updateRecord($record, $columnname, $newvalue);\n \t\t\tif ($this->isIdentification($columnname))\n \t\t\t{\n \t\t\t\t$itemid = ItemDAO::getItemDAO()->saveItemIdentification($updatedrecord, $record);\n \t\t\t}\n \t\t\telseif ($this->isProposal($columnname))\n \t\t\t{\n \t\t\t\t$proposalid = ProposalDAO::getProposalDAO()->saveItemProposal($updatedrecord->getFunctions()->getProposal(), $updatedrecord);\n \t\t\t\t//Set the itemid to null if the proposal update failed.\n \t\t\t\tif (is_null($proposalid))\n \t\t\t\t{\n \t\t\t\t\t$itemid = NULL;\n \t\t\t\t}\n \t\t\t}\n \t\t\telseif ($this->isReport($columnname))\n \t\t\t{\n \t\t\t\t$reportid = ReportDAO::getReportDAO()->saveItemReport($updatedrecord->getFunctions()->getReport(), $record->getFunctions()->getReport(), $updatedrecord);\n \t\t\t\t//Set the itemid to null if the report update failed.\n \t\t\t\tif (is_null($reportid))\n \t\t\t\t{\n \t\t\t\t\t$itemid = NULL;\n \t\t\t\t}\n \t\t\t}\n \t\t\t//If the save was successful, then update the namespace\n \t\t\tif (!is_null($itemid))\n \t\t\t{\n \t\t\t\t$records[$itemid] = $updatedrecord;\n \t\t\t\t$group->setRecords($records);\n \t\t\t\tGroupNamespace::setCurrentGroup($group);\n \t\t\t}\n \t\t\t//TODO: Otherwise, throw an error via json\n \t\t\telse\n \t\t\t{\n \t\t\t\tLogger::log('Update record did not save', Zend_Log::ERR);\n \t\t\t}\n \t\t}\n \t}\n }" ]
[ "0.7000185", "0.6084395", "0.5946005", "0.5946005", "0.58686906", "0.5530605", "0.5464296", "0.54131573", "0.53923947", "0.53806365", "0.53739953", "0.5354468", "0.531133", "0.52724993", "0.5270639", "0.5248363", "0.5248363", "0.521066", "0.51994187", "0.5190816", "0.51811147", "0.51651144", "0.51582575", "0.5138291", "0.51375914", "0.5117083", "0.5110402", "0.5105483", "0.50832987", "0.50716716", "0.5067864", "0.5053282", "0.5049465", "0.5049199", "0.50228685", "0.501386", "0.49901265", "0.49825937", "0.49825937", "0.49700713", "0.4968297", "0.49601525", "0.49571553", "0.49524844", "0.49484304", "0.494273", "0.4942655", "0.4916637", "0.49047127", "0.49008438", "0.49008206", "0.48942518", "0.48884583", "0.48870254", "0.48553348", "0.48429644", "0.48422506", "0.4840943", "0.48394623", "0.48370534", "0.48365402", "0.48339343", "0.4833277", "0.4833206", "0.48291633", "0.4825973", "0.48219463", "0.48182103", "0.4815191", "0.47990346", "0.47976664", "0.47971582", "0.4790229", "0.47872096", "0.47736388", "0.47701973", "0.47678328", "0.47675395", "0.47533455", "0.47513634", "0.47507152", "0.47450927", "0.4737994", "0.47353995", "0.47295374", "0.472532", "0.47189516", "0.4714348", "0.47138602", "0.47091138", "0.47072098", "0.4702848", "0.47010183", "0.46926302", "0.4689883", "0.46894836" ]
0.7126175
4
User ID Filtering event
function UserID_Filtering(&$filter) { // Enter your code here }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filterUser(int|UniqueId $id): self;", "public function filterUser(int $id): self;", "public function onKernelRequest(): void\n {\n $user = $this->em->getRepository(User::class)->findOneBy(['username' => 'jane.doe']);\n $filter = $this->em->getFilters()->enable('user_filter');\n $filter->setParameter('id', $user->getId());\n }", "public function applyUserIDFilters($filter)\n\t{\n\t\treturn $filter;\n\t}", "public function applyUserIDFilters($filter, $id = \"\")\n\t{\n\t\treturn $filter;\n\t}", "function get_editable_user_ids($user_id, $exclude_zeros = \\true, $post_type = 'post')\n {\n }", "function getAllUserIds($filter) {\n\t//SELECT id FROM students\n\t$sql = \"SELECT id FROM users WHERE $filter = 1\";\n\t$userIds = queryColumn($sql);\n\n\treturn $userIds;\n}", "function ApplyUserIDFilters($sFilter) {\n\t\treturn $sFilter;\n\t}", "function ApplyUserIDFilters($sFilter) {\n\t\treturn $sFilter;\n\t}", "function ApplyUserIDFilters($sFilter) {\n\t\treturn $sFilter;\n\t}", "function ApplyUserIDFilters($sFilter) {\n\t\treturn $sFilter;\n\t}", "public function broadcastOn()\n {\n $user = $this->user;\n \n return [$user->id];\n }", "private function getUserIds($filter_name, $filter_values)\n {\n switch ($filter_name) {\n case 'common':\n $list = user_auth_peer::instance()->get_list(['del' => 0], [], ['id ASC']);\n break;\n\n case 'group':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.groups_members_peer::instance()->get_table_name(\n ).' WHERE group_id IN ('.implode(',', $filter_values).')'\n );\n break;\n\n case 'ppo':\n\n\n $ppo = ppo_peer::instance()->get_item($filter_values[0]);\n $list = ppo_members_peer::instance()->get_members($ppo['id'], false, $ppo);\n break;\n\n case 'status':\n $list = db::get_cols(\n 'SELECT id as user_id FROM '.user_auth_peer::instance()->get_table_name(\n ).' WHERE status IN ('.implode(',', $filter_values).')'\n );\n break;\n\n case 'func':\n\n foreach ($filter_values as $id => $a) {\n $where[] = \"functions && '{\".$a.\"}'\";\n }\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_desktop_peer::instance()->get_table_name().' WHERE '.implode(\n ' OR ',\n $where\n )\n );\n break;\n\n case 'region':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE region_id IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'lists':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.lists_users_peer::instance()->get_table_name().' WHERE list_id IN ('.implode(\n ',',\n $filter_values\n ).') AND type = 0'\n );\n break;\n\n case 'district':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE city_id IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'sferas':\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name().' WHERE segment IN ('.implode(\n ',',\n $filter_values\n ).')'\n );\n break;\n\n case 'political_views':\n\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_data_peer::instance()->get_table_name(\n ).' WHERE political_views = '.$filter_values\n );\n break;\n\n case 'targets':\n $i = 0;\n foreach ($filter_values as $fv) {\n $sqladd .= 'admin_target && \\'{'.$fv.'}\\' ';\n if ($i < count($filter_values) - 1) {\n $sqladd .= ' OR ';\n }\n $i++;\n }\n $list = db::get_cols(\n 'SELECT user_id\n FROM user_data WHERE '.$sqladd\n );\n break;\n\n case 'visit':\n $name = 'visit_ts';\n $value = $filter_values;\n $time = time() - abs($value * 24 * 60 * 60);\n if ($value > 0) {\n $where = \"user_id in (SELECT user_id FROM user_sessions WHERE $name > $time)\";\n } elseif ($value < 0) {\n $where = \"user_id in (SELECT user_id FROM user_sessions WHERE $name < $time)\";\n }\n $list = db::get_cols(\n 'SELECT user_id FROM '.user_sessions_peer::instance()->get_table_name().' WHERE '.$where\n );\n break;\n }\n\n\n foreach ($list as $key => $value) {\n $usr = user_auth_peer::instance()->get_item($value);\n if (1 === $usr['del'] || 0 === (int)$usr['active'] || 1 === (int)$usr['offline']) {\n unset($list[$key]);\n }\n }\n\n internal_mailing_peer::instance()->update(\n [\n 'id' => $this->mailing_id,\n 'count' => count($list),\n ]\n );\n\n return $list;\n }", "public function getEventOwnerUser($id)\n {\n $user = User::findOrFail($id);\n if(count($user) > 0){\n\n return $user;\n\n }else{\n\n return false;\n }\n\n }", "function filterCourseUserNotTheme($userdata,$filter) {\n $ret = \"\";\n for($i=0;$i<count($userdata);$i++) {\n $out = $userdata[$i];\n $id = $userdata[$i][\"id\"];\n if (is_array($id)) {\n $id = $id[\"id\"];\n }\n // Adapt 2\n if (in_array($id, $filter)) {\n $ret[] = $out;\n }\n }\n return $ret;\n}", "public function onCoreController(FilterControllerEvent $event)\r\n { \r\n $user= $this->getUser();\r\n \r\n $em= $this->container->get('doctrine.orm.entity_manager');\r\n // ici nous vérifions que la requête est une \"MASTER_REQUEST\" pour que les sous-requête soit ingoré (par exemple si vous faites un render() dans votre template)\r\n // ou qu'un token d'autentification est bien présent avant d'essayer manipuler l'utilisateur courant.\r\n if (!$event->isMasterRequest() || $user == null ) {\r\n return;\r\n }\r\n // Nous vérifions qu'un token d'autentification est bien présent avant d'essayer manipuler l'utilisateur courant.\r\n \r\n\r\n // Nous utilisons un délais pendant lequel nous considèrerons que l'utilisateur est toujours actif et qu'il n'est pas nécessaire de refaire de mise à jour\r\n $delay = new \\Datetime();\r\n //$delay->modify(\"-2 minutes\");\r\n $delay->setTimestamp(strtotime('2 minutes ago'));\r\n // dump($user->getLastActivity() );\r\n // dd($delay);\r\n // Nous vérifions que l'utilisateur est bien du bon type pour ne pas appeler getLastActivity() sur un objet autre objet User\r\n if ($user->getLastActivity() < $delay) {\r\n $user->isActiveNow(); \r\n $em->persist($user);\r\n $em->flush($user);\r\n }\r\n }", "function userid_action_handler( $user_or_id ) {\n\t\tif ( is_object($user_or_id) )\n\t\t\t$userid = intval( $user_or_id->ID );\n\t\telse\n\t\t\t$userid = intval( $user_or_id );\n\t\tif ( !$userid )\n\t\t\treturn;\n\t\t$this->add_ping( 'db', array( 'user' => $userid ) );\n\t}", "function get_nonauthor_user_ids()\n {\n }", "public function beforeFilter(Event $event)\n {\n parent::beforeFilter($event);\n\n $session = $this->request->session(); \n $this->user_data = $session->read('User.data'); \n \n if( isset($this->user_data) ){\n if( $this->user_data->group_id == 1 ){ //Admin \n $this->Auth->allow();\n }\n }\n }", "function _uid_filter ($dn) { return('(uid='.dn2uid($dn).')'); }", "function get_author_user_ids()\n {\n }", "public function beforeFilter(Event $event) \n {\n $this->set('usuarioActual', $this->Auth->user());\n }", "abstract protected function foreignIDFilter($id = null);", "public function SeeOneUserEvents($id) {\n\n try{\n $select5 = $this->connexion->prepare(\"SELECT * \n FROM cp_user_has_group A, cp_event_has_group B\n JOIN cp_event C \n ON C.event_id = B.event_event_id \n WHERE A.user_user_id = :userID\n AND A.group_group_id = B.group_group_id \");\n \n $select5->bindValue(':userID', $id, PDO::PARAM_INT);\n $select5->execute();\n $select5->setFetchMode(PDO::FETCH_ASSOC);\n $array = $select5->FetchAll();\n $select5->closeCursor(); \n\n\n return $array;\n } catch (Exception $e) {\n echo 'Message:' . $e->getMessage();\n }\n\n }", "public function userId($user);", "public function filter_user() {\n// ----------------------------------------------\n// SELECT * FROM wp_groups_user_group rt\n// LEFT JOIN wp_user u ON rt.user_id = u.ID\n// LEFT JOIN wp_user u ON rt.user_id = u.ID\n// WHERE rt.group_id = 6\n// \n// \n// SELECT * FROM\n// (SELECT \n// rt.user_id,\n// rt.group_id AS location_id\n// FROM wp_groups_user_group rt\n// LEFT JOIN wp_users u ON rt.user_id = u.ID\n// LEFT JOIN wp_users u2 ON rt.user_id = u2.ID\n// WHERE rt.group_id = 6 ) AS rl\n// INNER JOIN\n// (SELECT \n// rt.user_id,\n// rt.group_id AS agency_id\n// FROM wp_groups_user_group rt\n// LEFT JOIN wp_users u ON rt.user_id = u.ID\n// LEFT JOIN wp_users u2 ON rt.user_id = u2.ID\n// WHERE rt.group_id = 3 ) AS ra\n// ON rl.user_id = ra.user_id\n// LEFT JOIN wp_users wu ON rl.user_id = wu.ID ORDER BY `ID` ASC\n }", "public function beforeFilter( Event $event ) {\r\n\t\t// receive user informations and ACL control\r\n\t\tif( null !== $this->Auth->user() ) {\r\n\t\t\t// receive userinformation from mediawiki\r\n\t\t\t$userInfos\t\t= $this->MediawikiAPI->mw_getMyUserinfos()->query->userinfo;\r\n\t\t\t\r\n\t\t\t// create temporary array for usergroups\r\n\t\t\t$groups\t\t\t= array();\r\n\t\t\t\r\n\t\t\t// remove allusers (= *-symbol) from usergrouplist and sort to reindex the array\r\n\t\t\tunset( $userInfos->groups[ array_search( '*', $userInfos->groups ) ] );\r\n\t\t\tunset( $userInfos->groups[ array_search( 'autoconfirmed', $userInfos->groups ) ] );\r\n\t\t\tsort( $userInfos->groups );\r\n\t\t\t\r\n\t\t\t// set missing user values in auth session\r\n\t\t\tif( !empty( $userInfos->realname ) ) {\r\n\t\t\t\t$this->request->session()->write( 'Auth.User.realname', $userInfos->realname );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif( !empty( $userInfos->email ) ) {\r\n\t\t\t\t$this->request->session()->write( 'Auth.User.email', $userInfos->email );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// load usergroup entites\r\n\t\t\tforeach( $userInfos->groups as $group ) {\r\n\t\t\t\t// search current mw usergroup in database and add to usergroup array\r\n\t\t\t\tarray_push( $groups, $this->Users->Groups->get( $group ) );\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// set usergroups for ACL\r\n\t\t\t$this->request->session()->write( 'Auth.User.groups', $groups );\r\n\t\t\r\n\t\t\t// control variable \t\r\n\t\t\t$isAllow\t= false;\r\n\t\t\t\r\n\t\t\tfor( $i = 0; $i < count( $this->Auth->user()[\"groups\"] ); $i++ ) {\r\n\t\t\t\tif( $this->Auth->user()[\"groups\"][$i][\"users\"] == 1 ) {\r\n\t\t\t\t\t$isAllow\t= true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tswitch( $this->request->action ) {\r\n\t\t\t\tcase 'index':\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'add':\r\n\t\t\t\t\tif( $isAllow != true ) {\r\n\t\t\t\t\t\treturn $this->redirect( [ 'controller' => 'users', 'action' => 'index' ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'addbycsv':\r\n\t\t\t\t\tif( $isAllow != true ) {\r\n\t\t\t\t\t\treturn $this->redirect( [ 'controller' => 'users', 'action' => 'index' ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'create':\r\n\t\t\t\t\tif( $isAllow != true ) {\r\n\t\t\t\t\t\treturn $this->redirect( [ 'controller' => 'users', 'action' => 'index' ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'edit':\r\n\t\t\t\t\tif( $isAllow != true ) {\r\n\t\t\t\t\t\treturn $this->redirect( [ 'controller' => 'users', 'action' => 'index' ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 'listusers':\r\n\t\t\t\t\tif( $isAllow != true ) {\r\n\t\t\t\t\t\treturn $this->redirect( [ 'controller' => 'users', 'action' => 'index' ] );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private function useridOrEmailFilter($identifier) {\r\n return ctype_digit($identifier) ? 'userid=' . $identifier : 'email=\\'' . pg_escape_string($identifier) . '\\'';\r\n }", "private function filterByPermission(){\n\n }", "public static function onBeforeFeedRendered(OW_Event $event)\n {\n $params = $event->getParams();\n if(isset($params['userId'])) {\n if($params['userId'] == ow::getUser()->getId())\n {\n IISSecurityProvider::setStatusMessage(OW::getLanguage()->text('iissecurityessentials', 'status_field_ownUser'));\n }\n else\n {\n $user = BOL_UserService::getInstance()->findUserById($params['userId']);\n $username = $user->getUsername();\n IISSecurityProvider::setStatusMessage(OW::getLanguage()->text('iissecurityessentials', 'status_field_otherUser',array('username' => $username)));\n }\n }\n else\n {\n IISSecurityProvider::setStatusMessage(OW::getLanguage()->text('iissecurityessentials', 'status_field_invintation'));\n }\n }", "function getUserIds() {\n\t\t$charIds = $this->getCharIds();\n\t\t$idsToReturn = array();\n\t\tforeach ($charIds as $id) {\n\t\t\n\t\t\t$idsToReturn[] = getOneThing(\"playedby\", \"gamestate_characters\", \"id=$id and gameid=$this->gameId\");\n\t\t\n\t\t}\n\t\tdbug(\"getUserIds is about to return \".implode(\", \", $idsToReturn));\n\t\treturn $idsToReturn;\n\t}", "function beforeFilter() { \n\t\tparent::beforeFilter();\n //$this->facebook_id = $this->facebookId;\n $this->loadModel('User'); \n $this->user = $this->User->find('first', array('conditions' => array('User.account_id' => $this->account_id))); \n $this->User->id = $this->user['User']['id'];\n //$id = preg_replace(\"/[^A-Za-z0-9-]/\",\"\",$this->facebook->api_client->session_key);\n\t\t//$this->Session->id($id); \n\t\t$this->loadModel('Message');\n\t\t$this->set('newMessages', $this->Message->checkUnreadMessages($this->user['User']['id']));\n\t\t$this->set('parms', $this->parms);\n }", "function Recordset_Selecting(&$filter) {\n\n\t\t// Enter your code here\n\t\t$r = Security()->CurrentUserLevelID();\n\t\tif($r==4)\n\t\t{\n\t\t\tew_AddFilter($filter, \"TGLREG >= (CURDATE() - interval 6 day)\");\n\t\t}\n\t}", "function hide_Events($EventID) {\r\n $sql = $this->db->prepare(\"INSERT INTO MYEVENTHIDDEN (`EventID`, `UserID`) VALUES (:event,:user)\");\r\n $result = $sql->execute(array(\r\n \"user\" => $_SESSION['userid'],\r\n \"event\" => $EventID\r\n ));\r\n if ($result)\r\n return true;\r\n else\r\n return false;\r\n }", "public function addUserFilter(FilterCollectionEvent $event): void\n {\n $qb = $event->getQueryBuilder();\n $query = $qb->query()->bool()\n ->addMust($qb->query()->term(['_index' => 'user']))\n ->addMust($qb->query()->term(['enabled' => true]))\n ->addMust($qb->query()->term(['has_profile' => true]))\n ;\n $event->addFilter($query);\n }", "protected function getUserId() {}", "protected function getUserId() {}", "public function beforeFilter(Event $event)\n {\n $this->Auth->allow(['view', 'index']);\n $this->set('current_user', $this->Auth->user());\n }", "public function onUserEvent(UserEvent $event) {\n /** @var \\Drupal\\Core\\Entity\\EntityInterface $user */\n $user = $event->getUser();\n\n\n }", "public function is_watched_by_auth_user() {\n $id = Auth::id();\n\n\n $watcher_user_ids = [];\n\n foreach($this->watchers as $watcher) {\n\n //ja polnime nizata so user_id-s od konkretniot watcher\n $watcher_user_ids[] = $watcher->user_id;\n\n }\n\n // go sporeduvame sekoj user_id od watchers so id-to na logiraniot user\n if(in_array($id, $watcher_user_ids)){\n\n return true;\n }else{\n\n return false;\n }\n\n\n }", "function identifyUser() {\n}", "private function _event_field_filter($prefix = '')\n\t{\n\t\t// Apply prefix to field if given\n\t\t$field_name = ($prefix ? $prefix.'.' : '') . 'field_id';\n\n\t\t// Check parameter\n\t\tif ($event_field = $this->EE->TMPL->fetch_param('events_field'))\n\t\t{\n\t\t\t// Get fields from parameter\n\t\t\tlist($fields, $in) = low_explode_param($event_field);\n\n\t\t\t// Get id for each field\n\t\t\tforeach ($fields AS &$field)\n\t\t\t{\n\t\t\t\t$field = $this->_get_field_id($field);\n\t\t\t}\n\n\t\t\t$this->EE->db->{($in ? 'where_in' : 'where_not_in')}($field_name, $fields);\n\t\t}\n\t}", "function todos_get_assignee_filter_callback($row) {\n\t$result = new stdClass();\n\t$result->name = $row->name;\n\t$result->guid = (int) $row->guid;\n\t\n\treturn $result;\n}", "public function filter($event, $subject = null, $params = array());", "public function findEventsForUser($userId, \\DateTime $from, \\DateTime $to);", "static public function ctrGetNotRegisteredEvents($idUser){\n //Leer todos los eventos\n $allEvents = EventsController::ctrReadEvents();\n //Leer eventos a los cuales ya se ha registrado el usuario\n $eventsUsers = EventsUsersController::ctrReadEventsUsers(\"usuarioID\", $idUser);\n $eventsNotRegistered = array();\n //Verficiar que eventos no se ha inscrito el usuario\n foreach ($allEvents as $event) {\n $isAlreadyRegistered = false;\n foreach($eventsUsers as $eventUs){\n if($event[\"eventoID\"] == $eventUs[\"eventoID\"])\n $isAlreadyRegistered = true;\n }\n if(!$isAlreadyRegistered)\n array_push($eventsNotRegistered, $event);\n }\n return $eventsNotRegistered;\n }", "function seeOnFilter($seeFilter)\n{\n\tglobal $con;\n\t\n\t$query_ConsultaFuncion = sprintf(\"SELECT * FROM inscriptions WHERE id_student = %s\",\n\t\t GetSQLValueString($seeFilter, \"int\"));\n\t//echo $query_ConsultaFuncion;\n\t$ConsultaFuncion = mysqli_query($con, $query_ConsultaFuncion) or die(mysqli_error($con));\n\t$row_ConsultaFuncion = mysqli_fetch_assoc($ConsultaFuncion);\n\t$totalRows_ConsultaFuncion = mysqli_num_rows($ConsultaFuncion);\n\t\n\treturn $row_ConsultaFuncion[\"id_insc\"];\t\n\t\n\tmysqli_free_result($ConsultaFuncion);\n}", "abstract protected function getUserId() ;", "function wc_pre_user_query($user_search) {\n\n\t\t$user = wp_get_current_user();\n\t\tif ($user->ID != 1) {\n\n\t\t\tglobal $wpdb;\n\t\t\t$user_search->query_where = str_replace('WHERE 1=1', \"WHERE 1=1 AND {$wpdb->users}.ID <> 1\", $user_search->query_where);\n\t\t}\n\t}", "public function filterByPrimaryKey($key)\n\t{\n\t\treturn $this->addUsingAlias(UserPeer::UID, $key, Criteria::EQUAL);\n\t}", "public function broadcastOn()\n {\n return ['user.' . $this->task->project->user->uuid];\n }", "protected function handleGetFiltered() {\n\t\t\tif ($this->verifyRequest('GET') && $this->verifyParams()) {\n\t\t\t\textract($this->getResultParams());\n\t\t\t\t\n\t\t\t\t$strFilterBy = $this->objUrl->getFilter('by');\n\t\t\t\t$mxdFilter = str_replace('.' . $this->strFormat, '', $this->objUrl->getSegment(3));\n\t\t\t\t\n\t\t\t\tif ($strFilterBy == 'username') {\n\t\t\t\t\tAppLoader::includeUtility('DataHelper');\n\t\t\t\t\t$mxdFilter = DataHelper::getUserIdByUsername($mxdFilter);\n\t\t\t\t\t$strFilterBy = 'userid';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($strFilterBy == 'userid') {\n\t\t\t\t\t$blnCached = $this->loadFromCache($strNamespace = sprintf(AppConfig::get('UserEventNamespace'), $mxdFilter));\n\t\t\t\t} else {\n\t\t\t\t\t$blnCached = $this->loadFromCache();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (empty($blnCached)) {\n\t\t\t\t\t$objUserEvent = $this->initModel();\n\t\t\t\t\tswitch ($strFilterBy) {\n\t\t\t\t\t\tcase 'userid':\n\t\t\t\t\t\t\t$blnResult = $objUserEvent->loadByUserId($mxdFilter, $arrFilters, false);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif ($blnResult) {\n\t\t\t\t\t\t$this->blnSuccess = true;\n\t\t\t\t\t\tif ($objUserEvent->count()) {\n\t\t\t\t\t\t\t$this->arrResult = array(\n\t\t\t\t\t\t\t\t'events' => $this->formatEvents($objUserEvent),\n\t\t\t\t\t\t\t\t'total' => $objUserEvent->count()\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$this->arrResult = array(\n\t\t\t\t\t\t\t\t'events' => array(),\n\t\t\t\t\t\t\t\t'total' => 0\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (isset($blnCached)) { \n\t\t\t\t\t\t\tif (isset($strNamespace)) {\n\t\t\t\t\t\t\t\t$this->saveToCache($this->intCacheExpire, $strNamespace);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$this->saveToCache($this->intCacheExpire);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error loading the event data'));\n\t\t\t\t\t\t$this->error();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->error(400);\n\t\t\t}\n\t\t}", "static public function ctrGetRegisteredEvents($idUser){\n //Leer todos los eventos\n $allEvents = EventsController::ctrReadEvents();\n //Leer eventos a los cuales ya se ha registrado el usuario\n $eventsUsers = EventsUsersController::ctrReadEventsUsers(\"usuarioID\", $idUser);\n $eventsRegistered = array();\n //Verficiar que eventos no se ha inscrito el usuario\n foreach ($allEvents as $event) {\n $isAlreadyRegistered = false;\n foreach($eventsUsers as $eventUs){\n if($event[\"eventoID\"] == $eventUs[\"eventoID\"])\n $isAlreadyRegistered = true;\n }\n if($isAlreadyRegistered)\n array_push($eventsRegistered, $event);\n }\n return $eventsRegistered;\n }", "public function isUser($id_artista){\r\n $data = $this->db=$this->conexaoDB()->query(\"SELECT id_user FROM `artista` WHERE id=\".$id_artista)->fetchAll();\r\n foreach ($data as $row) {\r\n return $row['id'];\r\n } \r\n }", "public function broadcastOn()\n {\n return [\"user.{$this->user->id}\"];\n }", "function process_event($event, $userid, $handle, $cookieid, $params)\n\t\t{\n\t\t\t$loggeduserid = qa_get_logged_in_userid();\n\t\t\t$dolog=true;\n\t\t\t$postid = @$params['postid'];\n\t\t\t// grab all preferences for notifying users \n\t\t\t$all_preferences = qw_get_all_notification_settings();\n\t\t\tswitch($event){\n\t\t\t\tcase 'a_post': // user's question had been answered\n\t\t\t\t\t\n\t\t\t\t\tif ($loggeduserid != $params['parent']['userid']){\n\t\t\t\t\t\t$effecteduserid = $params['parent']['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'c_post': // user's answer had been commented\n\t\t\t\t\t\n\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t$thread = $params['thread'];\n\t\t\t\t\t$already_notified = \"\" ;\n\t\t\t\t\tunset($params['thread']);\n\t\t\t\t\tif ($loggeduserid != $params['parent']['userid']){\n\t\t\t\t\t\t$effecteduserid = $params['parent']['userid'];\n\t\t\t\t\t\t$this->AddEvent($postid, $userid, $params['parent']['userid'], $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$already_notified = $effecteduserid ;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(count($thread) > 0){\n\t\t\t\t\t\t$user_array = array();\n\t\t\t\t\t\tforeach ($thread as $t){\n\t\t\t\t\t\t\tif ($loggeduserid != $t['userid'])\n\t\t\t\t\t\t\t\t$user_array[] = $t['userid'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$user_array = array_unique($user_array, SORT_REGULAR);\n\t\t\t\t\t\tforeach ($user_array as $user){\t\n\t\t\t\t\t\t\tif ($user == $already_notified) continue ;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t$this->AddEvent($postid, $userid, $user, $params, $event);\t\n\t\t\t\t\t\t\t$effecteduserid = $user ; //for this scenario the $user_array contains all user ids in the current commented thread \n\t\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'q_reshow':\t\t\t\t\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\tif ($loggeduserid != $post['userid']){\n\t\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'a_reshow':\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\tif ($loggeduserid != $post['userid']){\n\t\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\tunset($params['oldanswer']);\n\t\t\t\t\t\tunset($params['content']);\n\t\t\t\t\t\tunset($params['text']);\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'c_reshow':\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\tif ($loggeduserid != $post['userid']){\n\t\t\t\t\t\tunset($params['oldcomment']);\n\t\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t/* case 'a_unselect':\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\tqa_db_query_sub(\n\t\t\t\t\t\t\"DELETE FROM ^ra_userevent WHERE effecteduserid=$ AND event=$ AND postid=$\",\n\t\t\t\t\t\t$effecteduserid, 'a_select', $postid\n\t\t\t\t\t);\n\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak; */\n\t\t\t\tcase 'a_select':\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\tif ($loggeduserid != $post['userid']){\n\t\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'q_vote_up':\n\t\t\t\t\t$this->UpdateVote('q_vote_up', $postid,$userid, $params, 'q_vote_up', 1);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'a_vote_up':\n\t\t\t\t\t$this->UpdateVote('a_vote_up', $postid,$userid, $params, 'a_vote_up', 1);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'q_vote_down':\n\t\t\t\t\t$this->UpdateVote('q_vote_down', $postid,$userid, $params, 'q_vote_down', -1);\t\t\t\t\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'a_vote_down':\n\t\t\t\t\t$this->UpdateVote('a_vote_down', $postid,$userid, $params, 'a_vote_down', -1);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'q_vote_nil':\n\t\t\t\t\t$this->UpdateVote('q_vote_nil', $postid,$userid, $params, 'q_vote_nil', 0);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'a_vote_nil':\n\t\t\t\t\t$this->UpdateVote('a_vote_nil', $postid,$userid, $params, 'a_vote_nil', 0);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'q_approve':\n\t\t\t\tcase 'a_approve':\n\t\t\t\tcase 'c_approve':\n\t\t\t\tcase 'q_reject':\n\t\t\t\tcase 'a_reject':\n\t\t\t\tcase 'c_reject':\n\t\t\t\t\trequire_once QA_INCLUDE_DIR.'qa-app-posts.php';\n\t\t\t\t\t$post = qa_post_get_full($postid);\n\t\t\t\t\tif ($loggeduserid != $post['userid']){\n\t\t\t\t\t\t$effecteduserid = $post['userid'];\n\t\t\t\t\t\t$question = $this->GetQuestion($params);\n\t\t\t\t\t\t$params['qtitle'] = $question['title'];\n\t\t\t\t\t\t$params['qid'] = $question['postid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\t\t\t\n\t\t\t\tcase 'q_favorite':\n\t\t\t\t\t$this->UpdateVote('q_favorite', $postid,$userid, $params, 'favorite', 1);\n\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t}\n\t\t\t\t\t$dolog=false;\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t/* case 'q_unfavorite':\n\t\t\t\t\t$this->UpdateVote('q_unfavorite', $postid,$userid, $params, 'unfavorite', -1);\n\t\t\t\t\t$dolog=false;\t\t\t\t\t\n\t\t\t\t\tbreak; */\n\t\t\t\tcase 'q_post':\n\t\t\t\t\t\n\t\t\t\t\t$already_notified = \"\" ;\n\t\t\t\t\tif ($params['parent']['type']=='A') // related question\n\t\t\t\t\t{\n\t\t\t\t\t\t$effecteduserid = $params['parent']['userid'];\n\t\t\t\t\t\tif ($loggeduserid != $effecteduserid){\n\t\t\t\t\t\t\t$event = 'related';\n\t\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$already_notified = $effecteduserid ;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// for social postings \n\t\t\t\t\tif (qw_check_pref_for_event(@$effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\tqw_do_action('user_event_q_post_social', $postid,$userid, null , $params, 'q_post');\n\t\t\t\t\t}\n\t\t\t\t\t$categoryid = isset($params['categoryid']) ? $params['categoryid'] : '' ;\n $tags = isset($params['tags']) ? $params['tags'] : '' ;\n\t\t\t\t\t$user_datas = $this->qw_get_users_details_notify_email($userid , $tags , $categoryid );\n\t\t\t\t\tif (count($user_datas)) {\n\t\t\t\t\t\tforeach ($user_datas as $user_data ) {\n\t\t\t\t\t\t\t$effecteduserid = $user_data['userid'] ;\n\t\t\t\t\t\t\t$event = $user_data['event'] ; \n\n\t\t\t\t\t\t\tif ( $effecteduserid != $already_notified ) {\n\t\t\t\t\t\t\t\t// $this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'u_favorite':\n\t\t\t\t\tif ($loggeduserid != $params['userid']){\n\t\t\t\t\t\t$this->UpdateUserFavorite($postid,$userid, $params, 'u_favorite', 1);\n\t\t\t\t\t\t$effecteduserid = $params['userid'];\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$dolog=false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t/* case 'u_unfavorite':\n\t\t\t\t\t$this->UpdateUserFavorite($postid,$userid, $params, 'u_unfavorite', -1);\n\t\t\t\t\t$dolog=false;\n\t\t\t\t\tbreak; */\n\t\t\t\tcase 'u_message':\n\t\t\t\t\tif ($loggeduserid != $params['userid']){\n\t\t\t\t\t\t$effecteduserid = $params['userid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'u_wall_post':\n\t\t\t\t\tif ($loggeduserid != $params['userid']){\n\t\t\t\t\t\t$effecteduserid = $params['userid'];\n\t\t\t\t\t\t$params['message'] = $params['content'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'u_level':\n\t\t\t\t\t$old_level = $params['oldlevel'];\n $new_level = $params['level'];\n if ( $new_level > $old_level ) {\n \t//add the event only if the level increases \n\t $effecteduserid = $params['userid'];\n\t\t\t\t\t\t$this->AddEvent($postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\tif (qw_check_pref_for_event($effecteduserid , $event , $all_preferences )) {\n\t\t\t\t\t\t\tqw_do_action('user_event_'.$event, $postid,$userid, $effecteduserid, $params, $event);\n\t\t\t\t\t\t}\n }\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$dolog=false;\n\t\t\t\n\t\t\t}\n\t\t}", "function filterUsername($username) {\r\n \treturn $username;\r\n }", "function filterUsername($username)\r\n {\r\n return $username;\r\n }", "public static function getUserEventList($event_type,$id)\n\t{\n\t\t// Page My Event is Own Event\n\t\t\n\t\t$limit = 100;\n\t\t$page = 1;\n\t\t\n\t\tif($page==\"\") $page = 1;\n\t\t\n\t\t$date_now = date(\"Y-m-d\");\n\t\t$result = CommonFunction::resultPaging(\n\t\t\t\t\t\t$page, $limit, EventModel::where('userId', '=', $id)->count(),\n\t\t\t\t\t\tEventModel::where(\"status\",\"=\",$event_type)->\n\t\t\t\t\t\twhere(\"endDate\",\">=\",$date_now)->where('userId', '=', $id)->take($limit)->skip(($page-1)*$limit)->get(array('id', 'name','description', 'avenueName','avanueAddress','latitude','longitude','coverImage','facebook','twitter','line','website','host','categoryId','status','private','share','userId','startDate','endDate','time','startTime','endTime'))\n\t\t\t\t\t);\n\n\n\t\treturn $result;\n\n\t}", "public function filterUserContext($filterChain)\n\t{\n\t\t//load the associated user and accounts for this transaction which will be the currently\n\t\t//logged in user and his or her accounts\n\t\t$uid = Yii::app()->user->id;\n\t\t$this->loadUser($uid);\n\t\t$this->loadUserAccounts($uid);\n\t\t$this->loadUserCategorys($uid);\n\t\t$this->loadUserPayees($uid);\n\n\t\t//continue to process the filter\n\t\t$filterChain->run();\t\n\t}", "function get_users_by_filter($filterCode,$users_id = '')\n\t{\n\t\tlog_message('debug', '_message/get_users_by_filter');\n\t\tlog_message('debug', '_message/get_users_by_filter:: [1] filterCode='.$filterCode);\n\n\t\tswitch($filterCode){\n\t\t\tcase \"all_users\":\n\t\t\t\treturn $this->get_types(array('invited_shopper','random_shopper','clout_merchant'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_admins\":\n\t\t\t\treturn $this->get_types(array('clout_owner','clout_admin_user'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_store_owners\":\n\t\t\t\treturn $this->get_types(array('store_owner_owner'));\n\t\t\tbreak;\n\n\t\t\tcase \"all_shoppers\":\n\t\t\t\treturn $this->get_types(array('invited_shopper','random_shopper'));\n\t\t\tbreak;\n\n\t\t\tcase \"shoppers_without_bank_account\":\n\t\t\t\treturn server_curl(CRON_SERVER_URL, array('__action'=>'get_single_column_as_array', 'query'=>'get_users_without_bank_account', 'column'=>'user_id', 'variables'=>array() ));\n\t\t\tbreak;\n\n\t\t\tcase \"shoppers_without_network\":\n\t\t\t\treturn server_curl(CRON_SERVER_URL, array('__action'=>'get_single_column_as_array', 'query'=>'get_users_without_network', 'column'=>'user_id', 'variables'=>array() ));\n\t\t\tbreak;\n\n\t\t\tcase \"select_user\":\n\t\t\t\treturn $this->get_select_user($users_id);\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\treturn array();\n\t\t\tbreak;\n\t\t}\n\t}", "public function find_vote($event_id, $user_id);", "function revalidateUserID() {\n\t\tglobal $pun_user;\n\t\t\n\t\tif($this->getUserRole() === AJAX_CHAT_GUEST && $pun_user['is_guest'] || ($this->getUserID() === $pun_user['id'])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public function scopeUserId($query, $id)\n {\n return $query->where('user_id', $id);\n }", "public function beforeFilter() {\n parent::beforeFilter();\n $this->Auth->allow('indexOfMember', 'search');\n }", "function plexIDToUsername($id, $data) {\n\t foreach ($data->User as $usr){\n\t\tif ($usr->attributes()['id'] == $id) {\n\t\t\treturn $usr->attributes()['username'];\n\t\t\tbreak;\n\t\t}\n\t }\n }", "function getEventsHostedByCompany()\n{\n\t$companyUserName=validate_input($_GET['companyUserName']);\n\t$companyid=getCompanyIdfromCompanyUserName($companyUserName);\t\n}", "protected abstract function filter();", "public function hasUserId(){\n return $this->_has(2);\n }", "public function hasUserId(){\n return $this->_has(2);\n }", "public function hasUserId(){\n return $this->_has(2);\n }", "public function hasUserId(){\n return $this->_has(2);\n }", "public function hasUserId(){\n return $this->_has(2);\n }", "function askUserForCount(int $eventid) \n {\n // CHECK IF USER HASNT ZUGESAGT YET\n // echo \"<div class='newFahrt'>\";\n // echo \"<p>Bitte teilen uns mit, mit wie vielen Personen du bei der Veranstaltung erscheinst.</p>\";\n\n // echo \"</div>\";\n }", "private function getAllUserId()\n {\n $input=$this->readFromLocalFile();\n $tempArray = json_decode($input);\n $userId = [];\n foreach($tempArray as $key=>$array)\n {\n if($array->type == 'user')\n {\n $userId[] = $array->id;\n }\n }\n return $userId;\n }", "function filtering_instructor_custom($qs=false,$object=false){\n \tif($object!='members')//hide for members only\n\t return $qs;\n\t \n\t $args=array('role' => 'Instructor','fields' => 'ID');\n\t $users = new WP_User_Query($args);\n\n\t $included_user = implode(',',$users->results);\n\t //$included_user='1,2,3';//comma separated ids of users whom you want to exclude\n\t \n\t $args=wp_parse_args($qs);\n\t if(!isset($args['scope']) || $args['scope'] != 'instructors')\n\t \treturn $qs;\n\t //check if we are searching or we are listing friends?, do not exclude in this case\n\t if(!empty($args['user_id'])||!empty($args['search_terms']))\n\t return $qs;\n\t \n\t if(!empty($args['include']))\n\t $args['include']=$args['include'].','.$included_user;\n\t else\n\t $args['include']=$included_user;\n\n\n\t $qs=build_query($args);\n\t \n\t return $qs;\n \n}", "private function filter_fields_by_user_status( $all_fields = array(), $filter_attribute = 'none' ) {\n // Filter criteria:\n // 1. If the provided filter_attribute is missing or \"none\", return all fields\n // 2. if the field attribute is \"all\", return that field\n // 3. If the field attribute is \"member\", return if the user is logged in\n return array_filter(\n $all_fields,\n function( $field ) use ( $filter_attribute ) {\n return ( 'none' === $filter_attribute ) ||\n ( 'all' === $field[ $filter_attribute ] ) ||\n ( is_user_logged_in() && ( 'member' === $field[ $filter_attribute ] ) );\n }\n );\n }", "public function giveListEventsIds($idu,$keyword='', $showBlocked=true){\r\n //contenenti la parola $keyword. Operazione permessa a tutti\r\n $idu = self::$conn->real_escape_string($idu);\r\n $keyword = self::$conn->real_escape_string($keyword);\r\n $keyword = mb_strtoupper($keyword,'UTF-8');\r\n $bl = !$showBlocked ? 'AND blocked=FALSE': '';\r\n $q = '';\r\n if($keyword != ''){\r\n $categ = self::CategorieEventi();\r\n $types = self::TipiDiEventi();\r\n $tipo = -1;\r\n $cat = -1;\r\n $tot = sizeof($types);\r\n for($i = 0; $i < $tot && $tipo == -1; ++$i){ \r\n if(strpos (mb_strtoupper($types[$i],'UTF-8'), $keyword) !== false)\r\n $tipo = $this->giveIdTypeEvent($types[$i]);\r\n }\r\n $tot = sizeof($categ);\r\n for($i = 0; $i < $tot && $cat == -1; ++$i){\r\n if(strpos (mb_strtoupper($categ[$i],'UTF-8'), $keyword) !== false)\r\n $cat = $this->giveIdCatEvent($categ[$i]);\r\n }\r\n $q = \"AND id IN (SELECT id FROM \".$this->tables['eventoTable'].\r\n \" WHERE UCASE(titolo) LIKE '%$keyword%' OR UCASE(breveDesc) LIKE '%$keyword%' OR tipo = $tipo OR categ = $cat)\";\r\n }\r\n $query = \"SELECT id FROM \".$this->tables['eventoTable'].\r\n \" WHERE creator = '$idu' $bl $q\"; \r\n\t\t$result = self::$conn->query($query);\r\n $list = array();\r\n if($result){\r\n if($result->num_rows == 0)\r\n return $list;\r\n while ($row = $result->fetch_assoc()) \r\n $list[] = $row['id'];\r\n $result->free();\r\n }\r\n return $list;\r\n }", "public function filterCheckNoteOwner($filterChain)\n\t{\n\t\tif (isset($_GET['id']))\n\t\t{\n\t\t\t$model = $this->loadModel($_GET['id']);\n\t\t\tif ($model->student_id !== Yii::app()->user->id)\n\t\t\t{\n\t\t\t\tthrow new CHttpException(403, 'Berkas ini bukan milik Anda.');\n\t\t\t}\n\t\t}\n\n\t\t$filterChain->run();\n\t}", "public function getUserId()\n {\n return $this->baseEvent->getUserId();\n }", "function get_EventNamesAttending($EventID){\r\n $sql = $this->db->prepare(\"SELECT u.firstname, u.lastname, e.EventID FROM MYEVENTGOING e\r\n LEFT JOIN USER u on e.UserID = u.UserID WHERE e.EventID = :event;\");\r\n $result = $sql->execute(array(\r\n \"event\" => $EventID\r\n ));\r\n\r\n if ($result){\r\n return $sql->fetchAll(PDO::FETCH_ASSOC);\r\n }\r\n else{\r\n return false;\r\n }\r\n }", "public function beforeFilter(Event $event)\n {\n parent::beforeFilter($event);\n // Deny un-authenticated users from seeing the following actions\n //$this->Auth->deny(['index']);\n \n // Allow un-authenticated users to see the following actions\n $this->Auth->allow(['search']);\n }", "public function byId($id) {\n return $this->andWhere(['userId' => $id]);\n }", "public function beforeFilter() {\n //parent::beforeFilter();\n // Call to the function to allow actions to non logged in users. \n if ($this->Auth->user('id')) {\n \t$this->Auth->allow('*');\n\n }\n\n }", "public function filtermember() {\n $response = $this->Allusers_model->filtermember();\n return $response;\n }", "public function accept_all()\n {\n $ids = $_POST['ids'];\n foreach ($ids as $id) {\n $accepted = EventMobile::find($id);\n $accepted->update(['event_status_id' => 2]);\n $accepted->save();\n //Notify Each event owner\n $event_owner = $accepted->user;\n if ($event_owner) {\n $notification_message['en'] = 'YOUR EVENT IS APPROVED';\n $notification_message['ar'] = 'تم الموافقة على الحدث';\n $notification = $this->NotifcationService->save_notification($notification_message, 3, 4, $accepted->id, $event_owner->id);\n $this->NotifcationService->PushToSingleUser($event_owner, $notification);\n }\n //get users have this event in their interests\n $this->NotifcationService->EventInterestsPush($accepted);\n }\n\n }", "function todos_get_assignee_filter_for_container(ElggEntity $container) {\n\t\n\t$result = array(\n\t\t'' => elgg_echo('todos:form:filters:assignee:all'),\n\t\t-1 => elgg_echo('todos:form:filters:assignee:unassigned'),\n\t);\n\t\n\tif (!($container instanceof ElggEntity)) {\n\t\treturn $result;\n\t}\n\t\n\t$dbprefix = elgg_get_config('dbprefix');\n\t\n\t$metadata_options = array(\n\t\t'type' => 'object',\n\t\t'subtype' => TodoItem::SUBTYPE,\n\t\t'metadata_name' => 'assignee',\n\t\t'limit' => false,\n\t\t'joins' => array(\n\t\t\t\"JOIN {$dbprefix}entities e ON n_table.entity_guid = e.guid\",\n\t\t\t\"JOIN {$dbprefix}entities ce ON e.container_guid = ce.guid\"\n\t\t),\n\t\t'wheres' => array(\"ce.container_guid = {$container->guid}\"),\n\t);\n\t$meta_batch = new ElggBatch('elgg_get_metadata', $metadata_options);\n\t$user_guids = array();\n\tforeach ($meta_batch as $metadata) {\n\t\t$user_guids[] = (int) $metadata->value;\n\t}\n\t\n\tif (empty($user_guids)) {\n\t\treturn $result;\n\t}\n\t\n\t$user_guids = array_unique($user_guids);\n\t$user_options = array(\n\t\t'type' => 'user',\n\t\t'limit' => false,\n\t\t'guids' => $user_guids,\n\t\t'joins' => array(\"JOIN {$dbprefix}users_entity ue ON e.guid = ue.guid\"),\n\t\t'order_by' => 'ue.name',\n\t);\n\t$user_batch = new ElggBatch('elgg_get_entities', $user_options, 'todos_get_assignee_filter_callback');\n\tforeach ($user_batch as $user_row) {\n\t\t$result[$user_row->guid] = $user_row->name;\n\t}\n\t\n\treturn $result;\n}", "function get_events_user_count( $options=array() ){\n\t\tglobal $gamo, $dbh;\n\t\n\t\t$error_append = \" CLASS[\".__CLASS__.\"] METHOD[\".__METHOD__.\"] DATE[\".date('Y-m-d H:i:s').\"]\";\n\t\n\t\tif( empty( $options['user_id'] ) ){\n\t\t\t$error = Core::error($this->errors, 1);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\t$action_types_rsvp = Core::r('actions')->action_types_id(array(\n\t\t\t\t'action_key' => 'rsvp_fevent'\n\t\t\t)\n\t\t);\n\n\t\tif( Core::has_error($action_types_rsvp) or empty($action_types_rsvp) ){\n\t\t\t$error = Core::error($this->errors, 5);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\n\t\t$sql = \t\"SELECT\n\t\tcount(ve.id) as count\n\t\tFROM \".CORE_DB.\".\".self::$table_name.\" as ve \".\n\t\t\"INNER JOIN \".CORE_DB.\".actions_log as al on ve.id=al.int_other \".\n\t\t\"WHERE al.action_types_id = \".$action_types_rsvp.\" AND \".\n\t\t\"user_id = :user_id AND al.active = 1 AND al.point_value_use IS NOT NULL AND al.point_value_use > 0 \";\n\t\n\t\t//error_log($sql);\n\t\t\n\t\ttry{\n\t\n\t\t\t$stm = $dbh->prepare($sql);\n\t\t\tif( empty($stm) ){\n\t\t\t\t$error = Core::error($this->errors, 2);\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\n\t\t\t$sres = $stm->execute( array(\n\t\t\t\t\t':user_id' => $options['user_id']\n\t\t\t) );\n\t\t\tif( empty($sres) ){\n\t\t\t\t$error = Core::error($this->errors, 3);\n\t\t\t\t$error['error_msg'] .= $error_append;\n\t\t\t\treturn $error;\n\t\t\t}\n\t\n\t\t\t$id = $stm->fetch(PDO::FETCH_ASSOC);\n\t\n\t\t}catch(PDOException $e){\n\t\t\t$error = Core::error($this->errors, 4);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\tif( !empty( $id['count'] ) ){\n\t\n\t\t\treturn $id['count'];\n\t\n\t\t}else{\n\t\n\t\t\treturn false;\n\t\n\t\t}\n\t\n\t}", "function user_logged_in($user_id) {\n \n }", "public function scopeuserbyid($query,$id){\n return $query->where('id',$id)->get();\n }", "function get_events_user( $options=array() ){\n\t\tglobal $gamo, $dbh;\n\t\t\n\t\t$error_append = \" CLASS[\".__CLASS__.\"] METHOD[\".__METHOD__.\"] DATE[\".date('Y-m-d H:i:s').\"]\";\n\t\t\n\t\tif( empty( $options['user_id'] ) ){\n\t\t\t$error = Core::error($this->errors, 1);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\t\tCore::ensure_defaults(array(\n\t\t\t\t'start' => 0,\n\t\t\t\t'number' => 1\n\t\t\t),\n\t\t$options);\n\t\t\n\t\t$action_types_rsvp = Core::r('actions')->action_types_id(array(\n\t\t\t\t'action_key' => 'rsvp_fevent'\n\t\t\t)\n\t\t);\n\t\t\n\t\t$action_types_attend = Core::r('actions')->action_types_id(array(\n\t\t\t\t'action_key' => 'attend_fevent'\n\t\t)\n\t\t);\n\n\t\tif( Core::has_error($action_types_rsvp) or empty($action_types_rsvp) ){\n\t\t\t$error = Core::error($this->errors, 5);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\t\tif( Core::has_error($action_types_attend) or empty($action_types_attend) ){\n\t\t\t$error = Core::error($this->errors, 5);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\t\n\t\t\n\t\t//error_log(print_r($action_type,true));\n\t\t//error_log(print_r($action_types,true));\n\t\t//error_log(print_r($options['user_id'],true));\n\t\t\n\t\t$sql = \t\"SELECT\n\t\t\tve.id as id,\n\t\t\tdate_time as date,\n\t\t\ttitle as name,\n\t\t\t(\n\t\t\t\tSELECT\n\t\t\t\tint_info\n\t\t\t\tFROM \" . CORE_DB . \".virtual_events_info AS a\n\t\t\t\tWHERE a.event_id = ve.id\n\t\t\t\tAND a.info_type = 'launched'\n\t\t\t) AS launched,\n\t\t\tal.point_value_use+COALESCE( (\n\t\t\t\tSELECT\n\t\t\t\t\tal2.point_value_use\n\t\t\t\tFROM \".CORE_DB.\".actions_log as al2\n\t\t\t\tWHERE \n\t\t\t\t\tal2.user_id = \".$options['user_id'].\"\n\t\t\t\t\tAND al2.action_types_id = \".$action_types_attend.\"\n\t\t\t\t\tAND al2.int_other = ve.id\n\t\t\t\t\tAND al2.active = 1\n\t\t\t),0 ) as points\n\t\t\tFROM \".CORE_DB.\".\".self::$table_name.\" as ve \".\n\t\t\t\"INNER JOIN \".CORE_DB.\".actions_log as al on ve.id=al.int_other \".\n\t\t\t\"WHERE al.action_types_id = \".$action_types_rsvp.\" AND \".\n\t\t\t\"user_id = :user_id AND al.active = 1 AND al.point_value_use IS NOT NULL AND al.point_value_use > 0 ORDER BY date_time ASC LIMIT \".$options['start'].\",\".$options['number'];\n\t\t\n\t\t//error_log($sql);\n\t\t//,\".$action_types_attend.\")\n\t\t\n\t\t$stm = $dbh->prepare($sql);\n\t\tif( empty($stm) ){\n\t\t\t$error = Core::error($this->errors, 2);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\t$sres = $stm->execute( array(\n\t\t\t\t':user_id' => $options['user_id']\n\t\t) );\n\t\tif( empty($sres) ){\n\t\t\t$error = Core::error($this->errors, 3);\n\t\t\t$error['error_msg'] .= $error_append;\n\t\t\treturn $error;\n\t\t}\n\t\n\t\t$id = $stm->fetchAll(PDO::FETCH_ASSOC);\n\t\t\n\t\tif( !empty( $id ) ){\n\t\t\n\t\t\treturn $id;\n\t\t\n\t\t}else{\n\t\t\n\t\t\treturn false;\n\t\t\n\t\t}\n\t\t\n\t}", "public static function handleTransactionFilter ($filter, $userId) {\n switch ($filter)\n {\n case Config::get('constant.E_VOUCHER_SENT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_TRANSACTION_TYPE') . \"' AND user_transactions.from_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_RECEIVED_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.MONEY_SENT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ONE_TO_ONE_TRANSACTION_TYPE') . \"' AND user_transactions.from_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.MONEY_RECEIVED_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ONE_TO_ONE_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.ADDED_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ADD_MONEY_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.WITHDRAW_MONEY_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.WITHDRAW_MONEY_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.CASHIN_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.CASH_IN_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.CASHOUT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.CASH_OUT_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.ADDED_COMMISSION_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.ADD_COMMISSION_TO_WALLET_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.WITHDRAWAL_OF_COMMISSION_FROM_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.WITHDRAW_MONEY_FROM_COMMISSION_TRANSACTION_TYPE') . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_ADDED_TO_WALLET_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.REDEEMED_TRANSACTION_TYPE') . \"' AND user_transactions.to_user_id = '\" . $userId . \"'\";\n break;\n case Config::get('constant.E_VOUCHER_CASHED_OUT_FILTER'): // code to be executed if $filter = ;\n $whereTransactionTypeClause = \"user_transactions.transaction_type = '\" . Config::get('constant.E_VOUCHER_CASHOUT_TRANSACTION_TYPE') . \"'\";\n break;\n default: // code to be executed if filter doesn't match any cases\n $whereTransactionTypeClause = \"1=1\";\n } \n return $whereTransactionTypeClause;\n }", "function eventoni_get_events_by_id()\n{\n\t$event_ids = $_POST['event_ids'];\n\n\t// Aufsplitten des Strings in ein Array mit den Events\n\t$event_ids = explode('-',$event_ids);\n\n\t// Holen der Informationen zu den Events\n\t$data = eventoni_fetch('',true,$event_ids);\n\n\t// Rückgabe der Informationen zu den Events in XML\n\techo $data['xml'];\n\tdie();\n}", "public function _add_incident_filters()\n\t{\n\t\t$params = Event::$data;\n\t\t$params = array_merge($params, $this->params);\n\t\tEvent::$data = $params;\n\t}" ]
[ "0.69005233", "0.6436586", "0.64032406", "0.62488854", "0.6130556", "0.60143495", "0.59932804", "0.59411836", "0.59411836", "0.59411836", "0.59411836", "0.5921308", "0.5847745", "0.58128875", "0.57834107", "0.57497644", "0.5743977", "0.572162", "0.56398726", "0.56037974", "0.5594942", "0.557761", "0.5575283", "0.5519001", "0.55038655", "0.54668325", "0.5464252", "0.54358536", "0.54169863", "0.5391049", "0.5388584", "0.5386238", "0.534683", "0.5340056", "0.53338224", "0.53168845", "0.53168845", "0.5309226", "0.530823", "0.530586", "0.53017205", "0.5288221", "0.52801436", "0.5275851", "0.5255329", "0.525373", "0.5239452", "0.52288926", "0.52239823", "0.5205264", "0.52030915", "0.52002776", "0.51628286", "0.51597136", "0.5157492", "0.5155026", "0.51449627", "0.5143478", "0.5143394", "0.51320934", "0.5106625", "0.5094016", "0.5092289", "0.50888133", "0.5078484", "0.5074674", "0.5069893", "0.5069197", "0.5064203", "0.5064203", "0.5064203", "0.5064203", "0.5064203", "0.50573575", "0.50544935", "0.50536066", "0.5050828", "0.5040671", "0.50370985", "0.50304973", "0.50288063", "0.50250286", "0.5024818", "0.50203973", "0.5013787", "0.5012199", "0.5005559", "0.50044906", "0.5003566", "0.49984342", "0.49954945", "0.4992346", "0.4987947", "0.49853587" ]
0.71834105
5
Display a listing of the resource.
public function index() // Filmleri listeler { $films = Film::all(); return $films; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view('resource.create');\n }", "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "public function create()\n {\n return \"Display a form for creating a new catalogue\";\n }", "public function newAction()\n {\n $entity = new Resource();\n $current = $this->get('security.context')->getToken()->getUser();\n $entity->setMember($current);\n $form = $this->createCreateForm($entity);\n\n return array(\n 'nav_active'=>'admin_resource',\n 'entity' => $entity,\n 'form' => $form->createView(),\n );\n }", "public function create()\n {\n return view ('forms.create');\n }", "public function create ()\n {\n return view('forms.create');\n }", "public function create()\n\t{\n\t\treturn view('faith.form');\n\t}", "public function create(NebulaResource $resource): View\n {\n $this->authorize('create', $resource->model());\n\n return view('nebula::resources.create', [\n 'resource' => $resource,\n ]);\n }", "public function create()\n {\n return view(\"request_form.form\");\n }", "public function create()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.create\")) {\n $view = \"admin.{$this->name}.create\";\n } else {\n $view = 'admin.includes.actions.create';\n }\n\n /* Show the form for creating a new resource. */\n return view($view)\n ->with('name', $this->name);\n }", "public function newAction()\n\t{\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => 'Ajouter une nouvelle &eacute;cole'\n\t\t) ) );\n\t}", "public function create()\n {\n return view($this->forms . '.create');\n }", "public function create()\n {\n return view('restful.add');\n }", "public function create()\n {\n $resource = (new AclResource())->AclResource;\n\n //dd($resource);\n return view('Admin.acl.role.form', [\n 'resource' => $resource\n ]);\n }", "public function create()\n {\n return view('admin.createform');\n }", "public function create()\n {\n return view('admin.forms.create');\n }", "public function create()\n {\n return view('backend.student.form');\n }", "public function newAction()\n {\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Nuevo');\n\n $entity = $this->getManager()->create();\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function create()\n {\n return view('client.form');\n }", "public function create()\n {\n // Nos regresa la vista del formulario\n return view('project.form');\n }", "public function create()\n {\n return view('Form');\n }", "public function newAction(){\n \n $entity = new Resourceperson();\n $form = $this->createAddForm($entity);\n\n \n return $this->render('ABCRspBundle:rsp:add.html.twig',array('entity'=>$entity,'form'=> $form->createView()));\n }", "public function createForm()\n\t{\n\t\treturn view('post.new');\n\t}", "public function create()\n {\n return view('admin.form.create', ['form' => new Form]);\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n return view('form');\n }", "public function create()\n {\n $title = $this->title;\n $subtitle = \"Adicionar cliente\";\n\n return view('admin.clients.form', compact('title', 'subtitle'));\n }", "public function create()\n {\n return view('backend.schoolboard.addform');\n }", "public function create()\n\t{\n\t\treturn view('info.forms.createInfo');\n\t}", "public function create()\n {\n //\n return view('form');\n }", "public function create()\n {\n return view('rests.create');\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return $this->showForm();\n }", "public function create()\n {\n return view(\"Add\");\n }", "public function create(){\n return view('form.create');\n }", "public function create()\n {\n // Show the page\n return view('admin.producer.create_edit');\n }", "public function create()\n {\n\n return view('control panel.student.add');\n\n }", "public function newAction() {\n\t\t\n\t\t$this->view->form = $this->getForm ( \"/admin/invoices/process\" );\n\t\t$this->view->title = $this->translator->translate(\"New Invoice\");\n\t\t$this->view->description = $this->translator->translate(\"Create a new invoice using this form.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"#\", \"label\" => $this->translator->translate('Save'), \"params\" => array('css' => null,'id' => 'submit')),\r\n\t\t\t\t\t\t\t array(\"url\" => \"/admin/invoices/list\", \"label\" => $this->translator->translate('List'), \"params\" => array('css' => null)));\n\t\t$this->render ( 'applicantform' );\n\t}", "public function create()\n {\n $data['action'] = 'pengiriman.store';\n return view('pengiriman.form', $data);\n }", "public function create()\n {\n return $this->cView(\"form\");\n }", "public function newAction()\n {\n // Création de l'entité et du formulaire.\n $client = new Client();\n $formulaire = $this->createForm(new ClientType(), $client);\n \n \n \n // Génération de la vue.\n return $this->render('KemistraMainBundle:Client:new.html.twig',\n array('formulaire' => $formulaire->createView()));\n }", "public function create()\n {\n return view(\"dresses.form\");\n }", "public function create()\n\t{\n\t\treturn View::make('new_entry');\n\t}", "public function createAction()\n {\n// $this->view->form = $form;\n }", "public function create()\n {\n return view('bank_account.form', ['mode' => 'create']);\n }", "public function create()\n {\n return view('fish.form');\n }", "public function create()\n {\n return view('users.forms.create');\n }", "public function create()\n {\n $this->setFormFields($this->getCreateFormFields());\n $form = $this->getCreateForm();\n\n return view($this->getViewName('create'), [\n 'crudSlug' => $this->slug,\n 'form' => $form,\n ]);\n }", "public function create()\n\t{\n\t\treturn view('admin.estadoflete.new');\n\t}", "public function create()\n {\n $person = new Person;\n return view('contents.personform')->with(compact('person') );\n }", "public function createAction(){\n \t$this->view->placeholder('title')->set('Create');\n \t$this->_forward('form');\n }", "public function create()\n {\n Gate::authorize('app.products.create');\n\n return view('backend.products.form');\n }", "public function create()\n {\n return view('essentials::create');\n }", "public function create()\n {\n return view('student.add');\n }", "public function create()\n\t{\n\t\treturn view('loisier/create');\n\t}", "public function create()\n {\n return view('url.form');\n }", "public function newAction()\n {\n $entity = new Facture();\n $factureType = new FactureType();\n\t\t$factureType->setUser($this->get('security.context')->getToken()->getUser());\n $form = $this->createForm($factureType, $entity);\n\n return $this->render('chevPensionBundle:Facture:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function newAction()\n {\n $entity = new Chofer();\n $form = $this->createForm(new ChoferType(), $entity, ['user' => $this->getUser()]);\n\n return $this->render('ChoferesBundle:Chofer:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'css_active' => 'chofer',\n ));\n }", "public function create()\n\t{\n\t\treturn View::make('crebos.create');\n\t}", "public function create() : View\n {\n $fieldset = $this->menuFieldset();\n\n return $this->view('create', [\n 'title' => trans('addons.Aardwolf::titles.create'),\n 'data' => [],\n 'fieldset' => $fieldset->toPublishArray(),\n 'suggestions' => [],\n 'submitUrl' => route('aardwolf.postCreate')\n ]);\n }", "public function create()\n {\n return view('libro.create');\n }", "public function create()\n {\n return view('libro.create');\n }", "public function newAction()\n {\n $entity = new Species();\n $form = $this->createForm(new SpeciesType(), $entity);\n\n return $this->render('InfectBackendBundle:Species:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view('crud/add'); }", "public function create()\n\t{\n\t\treturn View::make('supplier.create');\n\t}", "public function newAction()\n {\n $entity = new Company();\n $form = $this->createForm(new CompanyType(), $entity);\n\n return $this->render('SiteSavalizeBundle:Company:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n return view(\"List.form\");\n }", "public function index_onCreateForm()\n\t{\n\t\tparent::create();\n\t\treturn $this->makePartial('create');\n\t}", "public function create()\n {\n //load create form\n return view('products.create');\n }", "public function create()\n {\n return view('article.addform');\n }", "public function create()\n {\n // Mengarahkan ke halaman form\n return view('buku.form');\n }", "public function create()\n\t{\n\t\t// load the create form (app/views/material/create.blade.php)\n\t\t$this->layout->content = View::make('material.create');\n\t}", "public function create()\n {\n return view('saldo.form');\n }", "public function create()\n\t\t{\n\t\t\treturn view('kuesioner.create');\n\t\t}", "public function view_create_questioner_form() {\n \t// show all questioner\n \t// send questioner to form\n \treturn view(\"create_questioner\");\n }", "public function newAction() {\n $entity = new Question();\n $form = $this->createCreateForm($entity);\n\n return $this->render('CdlrcodeBundle:Question:new.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n ));\n }", "public function create()\n {\n $data['companies'] = Company::select('id', 'name')->where('status', 1)->orderBy('id', 'desc')->get();\n return view('admin.outlet.outlet_form', $data);\n }", "public function create()\n {\n return view('admin.inverty.add');\n }", "public function create()\n {\n return view('Libro.create');\n }", "public function create()\n {\n $title = trans('entry_mode.new');\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n $breadcrumb='car.create';\n return view('admin.partials.cars.form', compact('breadcrumb'));\n }", "public function create()\n {\n return view(\"familiasPrograma.create\");\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n {\n return view('admin.car.create');\n }", "public function create()\n\t{\n\t\treturn View::make('perusahaans.create');\n\t}", "public function create()\n {\n return view(\"create\");\n }", "public function create()\n\t{\n //echo 'show form';\n\t\treturn View::make('gaans.create');\n\t}", "public function create()\n {\n $title = trans('dormitorybed.new');\n $this->generateParams();\n\n return view('layouts.create', compact('title'));\n }", "public function create()\n {\n return view('forming');\n }", "public function formNew() {\n $this->data->options = array(\n 'RJ' => 'Rio de Janeiro',\n 'MG' => 'Minas Gerais',\n 'SP' => 'São Paulo',\n 'ES' => 'Espírito Santo',\n 'BA' => 'Bahia',\n 'RS' => 'Rio Grande do Sul'\n );\n $this->data->action = \"@exemplos/pessoa/save\";\n $this->render();\n }", "public function create()\n {\n \t\n \treturn view('supplies.create');\n\n }", "public function createAction()\n {\n if ($form = $this->processForm()) {\n $this->setPageTitle(sprintf($this->_('New %s...'), $this->getTopic()));\n $this->html[] = $form;\n }\n }", "public function create()\n {\n $page_title = \"Add New\";\n return view($this->path.'create', compact('page_title'));\n }", "public function create()\n {\n // not sure what to do with the form since im\n // using ame partial for both create and edit\n return view('plants.create')->with('plant', new Plant);\n }", "public function create() {\n\t\t$title = 'Create | Show';\n\n\t\treturn view('admin.show.create', compact('title'));\n\t}", "public function create()\n {\n return view('student::students.student.create');\n }", "public function newAction(){\n\t\t$entity = new Reserva();\n\t\t$form = $this->createCreateForm($entity);\n\n\t\treturn $this->render('LIHotelBundle:Reserva:new.html.twig', array(\n\t\t\t'entity' => $entity,\n\t\t\t'form' => $form->createView(),\n\t\t));\n\t}" ]
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.7174283", "0.7150356", "0.71444064", "0.71442676", "0.713498", "0.71283126", "0.7123691", "0.71158516", "0.71158516", "0.71158516", "0.7112176", "0.7094388", "0.7085711", "0.708025", "0.70800644", "0.70571953", "0.70571953", "0.70556754", "0.70396435", "0.7039549", "0.7036275", "0.703468", "0.70305896", "0.7027638", "0.70265305", "0.70199823", "0.7018007", "0.7004984", "0.7003889", "0.7000935", "0.69973785", "0.6994679", "0.6993764", "0.6989918", "0.6986989", "0.6966502", "0.69656384", "0.69564354", "0.69518244", "0.6951109", "0.6947306", "0.69444615", "0.69423944", "0.6941156", "0.6937871", "0.6937871", "0.6936686", "0.69345254", "0.69318026", "0.692827", "0.69263744", "0.69242257", "0.6918349", "0.6915889", "0.6912884", "0.691146", "0.69103104", "0.69085974", "0.69040126", "0.69014287", "0.69012105", "0.6900397", "0.68951064", "0.6893521", "0.68932164", "0.6891899", "0.6891616", "0.6891616", "0.6889246", "0.68880934", "0.6887128", "0.6884732", "0.68822503", "0.68809193", "0.6875949", "0.68739206", "0.68739134", "0.6870358", "0.6869779", "0.68696856", "0.686877" ]
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $data = $request->validate([ 'name' => 'required' ]); if(Film::where($data)->first()) { return response()->json([ 'status' => false, 'message' => 'Film zaten kayıtlı' ]); } else { Film::create($data); return response()->json([ 'status' => true, 'message' => 'Kayıt başarılı' ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations());\n }\n\n /* Create a new resource */\n $resource = $this->model::create(Input::all());\n\n /* Redirect to newly created resource page */\n return redirect()\n ->route($this->name . '.edit', $resource->id)\n ->with(\n 'success',\n Lang::has($this->name . '.resource-created') ?\n $this->name . '.resource-created' :\n 'messages.alert.resource-created'\n );\n }", "public function store(CreateStorageRequest $request)\n {\n $this->storage->create($request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource created', ['name' => trans('product::storages.title.storages')]));\n }", "public function createStorage();", "public function store(StoreStorage $request)\n {\n $storage = Storage::create($request->all());\n $request->session()->flash('alert-success', 'Запись успешно добавлена!');\n return redirect()->route('storage.index');\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function store(Request $request, NebulaResource $resource): RedirectResponse\n {\n $this->authorize('create', $resource->model());\n\n $validated = $request->validate($resource->rules(\n $resource->createFields()\n ));\n\n $resource->storeQuery($resource->model(), $validated);\n\n $this->toast(__(':Resource created', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "function storeAndNew() {\n $this->store();\n }", "public function store(Request $request)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $validator = Validator::make($request->all(), [\n 'content' => 'required|string',\n 'image_link' => 'sometimes|url',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), [], 400);\n }\n\n $resource = new Resource;\n $resource->user_id = $currentUser['id'];\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->image_link = $request->get('imageLink');\n $resource->video_link = $request->get('videoLink');\n $resource->file_link = $request->get('fileLink');\n $resource->audio_link = $request->get('audioLink');\n $resource->tags = collect($request->get('tags'))->implode('text', ',');\n $resource->is_public = 0;\n $resource->save();\n $data['resource'] = $resource;\n\n if ($request->get('programId')) {\n $this->addToProgram($resource, $request->programId);\n // event(new NewLearningPathResourcePublished($resource, $invitee));\n }\n\n User::find($currentUser['id'])->increment('points', 2);\n\n return APIHandler::response(1, \"New resource has been created\", $data, 201);\n }", "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n\t{\n\t\t\n\t\t//\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\r\n\t{\r\n\t\t//\r\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}", "public function store()\n\t{\n\t\t//\n\t}" ]
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437" ]
0.0
-1
Display the specified resource.
public function show($id) { $film = Film::find($id); if($film) { return $film; } else { return response()->json([ 'status' => false, 'message' => 'Hedef film bulunamadı' ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id);\n }", "private function showResourceable($resourceable)\n {\n save_resource_url();\n\n return $this->view('resources.create_edit')\n ->with('resource', $resourceable)\n ->with('photos', $resourceable->photos)\n ->with('videos', $resourceable->videos)\n ->with('documents', $resourceable->documents);\n }", "function display($resource_name, $cache_id = null, $compile_id = null) {\n\t\t$this->_getResourceInfo($resource_name); // Saves resource info to a Smarty class var for debugging\n\t\t$_t3_fetch_result = $this->fetch($resource_name, tx_smarty_div::getCacheID($cache_id), $compile_id);\n if ($this->debugging) { // Debugging will have been evaluated in fetch\n require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');\n $_t3_fetch_result .= smarty_core_display_debug_console(array(), $this);\n }\n\t\treturn $_t3_fetch_result;\n\t}", "public function show(ResourceSubject $resourceSubject)\n {\n //\n }", "public function show(ResourceManagement $resourcesManagement)\n {\n //\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function retrieve(Resource $resource);", "public function showResource($resouceable, $id)\n {\n $model_name = str_replace('-', ' ',ucwords($resouceable));\n $model_name = str_replace(' ', '',ucwords($model_name));\n\n $resource_type = 'App\\Models\\\\'.$model_name;\n $model = app($resource_type);\n $model = $model->find($id);\n\n return $this->showResourceable($model);\n }", "public function showAction(Ressource $ressource)\n {\n $deleteForm = $this->createDeleteForm($ressource);\n\n return $this->render('ressource/show.html.twig', array(\n 'ressource' => $ressource,\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function show(Dispenser $dispenser)\n {\n //\n }", "public function show($id)\n {\n $resource = Resource::find($id);\n dd($resource);\n }", "public function displayAction() {\n\t\tif(is_numeric($this->req_id)) {\n\t\t\tAPI::DEBUG(\"[DefaultController::displayAction()] Getting \" . $this->req_id, 1);\n\t\t\t$this->_view->data['info'] = $this->_model->get($this->req_id);\n\t\t\t$this->_view->data['action'] = 'edit';\n\n\t\t} else {\n\t\t\t$this->_view->data['action'] = 'new';\n\t\t}\n\t\t// auto call the hooks for this module/action\n\t\terror_log(\"Should Call: \" . $this->module .\"/\".$this->action.\"/\".\"controller.php\");\n\t\tAPI::callHooks($this->module, $this->action, 'controller', $this);\n\n\t\t$this->addModuleTemplate($this->module, 'display');\n\n\t}", "public function show(NebulaResource $resource, $item): View\n {\n $this->authorize('view', $item);\n\n return view('nebula::resources.show', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function resource(string $resource, string $controller): void\n {\n $base = $this->plural($resource);\n $entity = '/{'.$resource.'}';\n\n $this->app->get($base, $controller.'@index');\n $this->app->post($base, $controller.'@store');\n $this->app->get($base.$entity, $controller.'@show');\n $this->app->patch($base.$entity, $controller.'@update');\n $this->app->delete($base.$entity, $controller.'@destroy');\n }", "function displayCustom($resource_name, $cache_id = null, $compile_id = null)\n\t{\n\t return $this->display(DotbAutoLoader::existingCustomOne($resource_name), $cache_id, $compile_id);\n\t}", "public function show($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.show\")) {\n $view = \"admin.{$this->name}.show\";\n } else {\n $view = 'admin.includes.actions.show';\n }\n\n /* Displays the specified resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function show($id)\n {\n $currentUser = JWTAuth::parseToken()->authenticate();\n $rules = [\n 'id' => 'required|integer'\n ];\n\n $validator = Validator::make(['id' => $id], $rules);\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n $resource = $this->resourceRepository->fetchResource($id);\n $this->resourceRepository->storeView($id, $currentUser['id']);\n\n $data = [\n 'resource' => $resource,\n 'related_resources' => $this->resourceRepository->getResourcesRelatedTo($resource->id, $resource->mentoring_area_id)\n ];\n\n return APIHandler::response(1, \"Show Resource\", $data);\n }", "public function get(Resource $resource);", "public function showAction()\n {\n $model = $this->_getPhotoModel();\n $photo = $model->fetchEntry($this->getRequest()->getParam('id'));\n\n if (null === $photo) {\n return $this->_forward('notfound', 'error');\n }\n\n $this->view->auth = Zend_Auth::getInstance();\n $this->view->title = $photo->title;\n $this->view->photo = $photo;\n }", "public function show($id)\n {\n //\n $data=Resource::find($id);\n return view('resourceDetails',compact('data'));\n }", "function display() {\n\t\t$view = &$this->getView();\n\t\t$view->display();\n\t}", "public function show(ShowResourceRequest $request, $id)\n {\n // TODO: Implement show() method.\n }", "function show( $resource ){\n\n $where = \"reservation_status <> 'Pending' AND id = {$resource}\";\n $reservation = where( 'reservations', $where );\n $reservation = $reservation[0];\n\n return view('admin/reservation/preview_reservation', compact( 'reservation' ));\n}", "public function show()\n {\n if ($this->twig !== false) {\n $this->twigDefaultContext();\n if ($this->controller) {\n $this->controller->display($this->data);\n }\n echo $this->twig->render($this->twig_template, $this->data);\n } else {\n $filename = $this->findTemplatePath($this->template);\n require($filename);\n }\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function show(rc $rc)\n {\n //\n }", "public function show(Resolucion $resolucion)\n {\n //\n }", "public function showAction(furTexture $furTexture)\n {\n\n return $this->render('furtexture/show.html.twig', array(\n 'furTexture' => $furTexture,\n ));\n }", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show()\n\t{\n\t\t//\n\t}", "public function show(Resena $resena)\n {\n }", "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function showAction() {\n $docId = $this->getParam('id');\n\n // TODO verify parameter\n\n $document = new Opus_Document($docId);\n\n $this->_helper->layout()->disableLayout();\n\n $this->view->doc = $document;\n $this->view->document = new Application_Util_DocumentAdapter($this->view, $document);\n }", "public function action_display()\r\n\t{\r\n\t\t$event = ORM::factory('event', array('id' => $this->request->param('id')));\r\n\t\r\n\t\tif ( ! $event->loaded())\r\n\t\t{\r\n\t\t\tNotices::error('event.view.not_found');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Can user view this event?\r\n\t\tif ( ! $this->user->can('event_view', array('event' => $event)))\r\n\t\t{\r\n\t\t\t// Error notification\r\n\t\t\tNotices::error('event.view.not_allowed');\r\n\t\t\t$this->request->redirect(Route::url('event'));\r\n\t\t}\r\n\t\t\r\n\t\t// Pass event data to the view class\r\n\t\t$this->view->event_data = $event;\r\n\t\t$this->view->user = $this->user;\r\n\t}", "public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }", "public function show(Resident $resident)\n {\n $this->authorize('admin.resident.show', $resident);\n\n // TODO your code goes here\n }", "public function display()\n {\n echo $this->getDisplay();\n $this->isDisplayed(true);\n }", "public function display()\n\t{\n\t\tparent::display();\n\t}", "public function get_resource();", "public function show()\n\t{\n\t\t\n\t}", "function display() {\n\n\t\t// Check authorization, abort if negative\n\t\t$this->isAuthorized() or $this->abortUnauthorized();\n\n\t\t// Get the view\n\t\t$view = $this->getDefaultView();\n\n\t\tif ($view == NULL) {\n\t\t\tthrow new Exception('Display task called, but there is no view assigned to that controller. Check method getDefaultView.');\n\t\t}\n\n\t\t$view->listing = true;\n\n\t\t// Wrap the output of the views depending on the way the stuff should be shown\n\t\t$this->wrapViewAndDisplay($view);\n\n\t}", "public function viewResources()\n {\n $database = new Database();\n\n $resources = $database->getAllActiveResourcesNoLimit();\n\n\n $resourceArray = array();\n $i = 1;\n\n foreach ($resources as $resource) {\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n array_push($resourceArray, $availableResource);\n $i += 1;\n }\n $resourceSize = sizeof($resourceArray);\n $this->_f3->set('resourcesByActive', $resourceArray);\n $this->_f3->set('resourcesSize', $resourceSize);\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function show($id)\n {\n $this->title .= ' show';\n $this->one($id);\n }", "public function display($title = null)\n {\n echo $this->fetch($title);\n }", "public function display(){}", "public function show($id)\n\t{\n\t\t//\n\t\t//\n\t\n\t}", "public function viewAction()\n\t{\n\t\t//get Id param from request\n\t\tif (!$id = $this->_getParam('id')) {\n\t\t\t$this->getFlashMessenger()->addMessage('Product ID was not specified');\n\t\t\t$this->getRedirector()->gotoSimple('list');\n\t\t}\n\n\t\t//fetch requested ProductID from DB\n\t\tif (!$this->_model->fetch($id)) {\n\t\t\t$this->render('not-found');\n\t\t} else {\n\t\t\t$this->view->model = $this->_model;\n\t\t}\n\t}", "public function show($id)\n {\n // Get single person\n $person = Person::findOrFail($id);\n\n // Return single person as a resource\n return '<h1>Person Number '.$id.'</h1><br>'.json_encode(new PersonResource($person));\n }", "#[TODO] use self object?\n\tprotected function GET(ResourceObject $resource) {\n#[TODO]\t\tif ($resource->getMTime())\n#[TODO]\t\t\t$this->response->headers->set('Last-modified', gmdate('D, d M Y H:i:s ', $resource->getMTime()) . 'GMT');\n#[TODO]\t\tif ($resource->getCTime())\n#[TODO]\t\t\t$this->response->headers->set('Date', gmdate('D, d M Y H:i:s ', $resource->getCTime()) . 'GMT');\n\n\n#[TODO] handle file streams\n\t\t// get ranges\n#\t\t$ranges = WebDAV::getRanges($this->request, $this->response);\n\n\t\t// set the content of the response\n\t\tif ($resource instanceof ResourceDocument) {\n\t\t\t$this->response->content->set($resource->getContents());\n\t\t\t$this->response->content->setType($resource->getMIMEType());\n\t\t\t$this->response->content->encodeOnSubmit(true);\n\t\t}\n\t}", "public function display() {\n echo $this->render();\n }", "public function show($id)\n\t{\n\t//\n\t}", "public function show($id)\n\t{\n\t//\n\t}", "function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)\n {\n return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);\n }", "public function show($id)\n {\n //\n $this->_show($id);\n }", "public function show()\n\t{\n\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {\n\t\t//\n\t}", "public function show($id) {}", "static public function showCallback(O_Dao_Renderer_Show_Params $params) {\r\n\t\t/* @var $r R_Mdl_Resource */\r\n\t\t$r = $params->record();\r\n\t\t// Setting layout title\r\n\t\t$params->layout()->setTitle($r->getPageTitle());\r\n\r\n?><h1><?=$r->title?></h1><div id=\"resource\"><?\r\n\t\tif($r->getContent()) {\r\n\t\t\t// page has its own content -- show it\r\n\t\t\t$r->getContent()->show($params->layout(), \"content\");\r\n\t\t} else {\r\n\t\t\t// It is a post unit, show all childs\r\n\t\t\tif($r->is_unit == 1) {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"content\");\r\n\r\n\t\t\t// It is a folder with several units, show paginator\r\n\t\t\t} elseif($r->show_def == \"last-units\") {\r\n\t\t\t\tlist($type, $perpage) = explode(\":\", $r->show_def_params);\r\n\t\t\t\t/* @var $p O_Dao_Paginator */\r\n\t\t\t\t$p = $r->addQueryAccessChecks($r->getChilds())->test(\"is_unit\", 1)->getPaginator(array($r, \"getPageUrl\"), $perpage);\r\n\t\t\t\t$p->show($params->layout(), $type);\r\n\t\t\t// It is a folder with subfolders, boxes, contents. Show one childs level\r\n\t\t\t} else {\r\n\t\t\t\t$r->addQueryAccessChecks($r->getChilds(1))->show($params->layout(), \"on-parent-page\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n?></div><?\r\n\t}", "public function show($id)\r\n\t{\r\n\t\t//\r\n\r\n\r\n\r\n\t}", "public function show($resourceId, $eventId)\n {\n $routes = $this->routes;\n\n $eventable = $this->getEventableRepository()->model()->findOrFail($resourceId);\n\n if (method_exists($eventable, 'events')) {\n $event = $eventable->events()->find($eventId);\n\n if ($event) {\n $apiObject = $this->event->findApiObject($event->api_id);\n\n return view('events.eventables.show', compact('routes', 'eventable', 'event', 'apiObject'));\n }\n }\n\n abort(404);\n }", "public abstract function display();", "abstract public function resource($resource);", "public function show($id)\r\r\n\t{\r\r\n\t\t//\r\r\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show( $id ) {\n\t\t//\n\t}", "public function show(Response $response)\n {\n //\n }", "public function show()\n {\n return auth()->user()->getResource();\n }", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}", "public function show($id)\n\t{\n\t\t//\n\t}" ]
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245", "0.60389996", "0.6016584", "0.598783", "0.5961788", "0.59606946", "0.5954321", "0.59295714", "0.59182066", "0.5904556", "0.59036547", "0.59036547", "0.59036547", "0.5891874", "0.58688277", "0.5868107", "0.58676815", "0.5851883", "0.58144855", "0.58124036", "0.58112013", "0.5803467", "0.58012545", "0.5791527", "0.57901084", "0.5781528", "0.5779676", "0.5757105", "0.5756208", "0.57561266", "0.57453394", "0.57435393", "0.57422745", "0.5736634", "0.5736634", "0.5730559", "0.57259274", "0.5724891", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5722562", "0.5718969", "0.5713412", "0.57091093", "0.5706405", "0.57057405", "0.5704541", "0.5704152", "0.57026845", "0.57026845", "0.56981397", "0.5693083", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962", "0.5684962" ]
0.0
-1
Show the form for editing the specified resource.
public function edit(Film $film) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.edit\")) {\n $view = \"admin.{$this->name}.edit\";\n } else {\n $view = 'admin.includes.actions.edit';\n }\n\n /* Displays the edit resource page */\n return view($view)\n ->with('resource', $resource)\n ->with('name', $this->name);\n }", "public function edit(NebulaResource $resource, $item): View\n {\n $this->authorize('update', $item);\n\n return view('nebula::resources.edit', [\n 'resource' => $resource,\n 'item' => $item,\n ]);\n }", "public function edit() {\r\n $id = $this->api->getParam('id');\r\n\r\n if ($id) {\r\n $this->model->id = $id;\r\n $this->checkOwner();\r\n }\r\n $object = $this->model->find_by_id($id);\r\n\r\n $this->api->loadView('contact-form', array('row' => $object));\r\n }", "public function viewEditResources()\n {\n $database = new Database();\n $id = $this->_params['id'];\n\n $resource = $database->getResourceById($id);\n\n $availableResource = new Resource($resource['ResourceID'], $resource['ResourceName'], $resource['Description']\n , $resource['ContactName'] , $resource['ContactEmail'] , $resource['ContactPhone'] ,\n $resource['Link'], $resource['active']);\n $this->_f3->set('Resource', $availableResource);\n\n echo Template::instance()->render('view/include/head.php');\n echo Template::instance()->render('view/include/top-nav.php');\n echo Template::instance()->render('view/edit-resources.php');\n echo Template::instance()->render('view/include/footer.php');\n }", "public function edit()\n {\n return view('hirmvc::edit');\n }", "public function editformAction(){\n\t\t$this->loadLayout();\n $this->renderLayout();\n\t}", "public function edit() {\n $id = $this->parent->urlPathParts[2];\n // pass name and id to view\n $data = $this->parent->getModel(\"fruits\")->select(\"select * from fruit_table where id = :id\", array(\":id\"=>$id));\n $this->getView(\"header\", array(\"pagename\"=>\"about\"));\n $this->getView(\"editForm\", $data);\n $this->getView(\"footer\");\n }", "public function edit($id)\n\t{\n\t\treturn $this->showForm('update', $id);\n\t}", "public function edit($id)\n {\n $model = $this->modelObj;\n $formObj = $model::findOrFail($id);\n $data['formObj'] = $formObj;\n return view($this->veiw_base . '.edit', $data);\n }", "public function createEditForm(Resourceperson $entity){\n \n $form = $this->createForm(new ResourcepersonType(), $entity, array(\n 'action' => $this->generateUrl('rsp_update', array('id' => $entity->getRpId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => 'Update','attr'=> array(\n 'class'=>'btn btn primary'\n )));\n\n return $form;\n }", "private function createEditForm(Resource $entity)\n {\n $form = $this->createForm(new ResourceType(), $entity, array(\n 'action' => $this->generateUrl('social_admin_resource_update', array('id' => $entity->getId())),\n 'method' => 'PUT',\n ));\n\n $form->add('submit', 'submit', array('label' => '保存','attr'=>[\n 'class'=>'btn btn-primary'\n ]));\n\n return $form;\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function edit($id)\n {\n return $this->showForm('update', $id);\n }", "public function editAction()\n {\n if ($form = $this->processForm()) {\n if ($this->useTabbedForms && method_exists($this, 'getSubject')) {\n $data = $this->getModel()->loadFirst();\n $subject = $this->getSubject($data);\n $this->setPageTitle(sprintf($this->_('Edit %s %s'), $this->getTopic(1), $subject));\n } else {\n $this->setPageTitle(sprintf($this->_('Edit %s'), $this->getTopic(1)));\n }\n $this->html[] = $form;\n }\n }", "public function edit($id)\n {\n $this->data['entity'] = GS_Form::where('id', $id)->firstOrFail();\n return view('admin.pages.forms.edit', $this->data);\n }", "public function edit($id)\n\t{\n\t\t// get the fbf_presenca\n\t\t$fbf_presenca = FbfPresenca::find($id);\n\n\t\t\n\t\t// show the edit form and pass the fbf_presenca\n\t\t$this->layout->content = View::make('fbf_presenca.edit')\n->with('fbf_presenca', $fbf_presenca);\n\t}", "public function edit($id)\n {\n $data = $this->model->find($id);\n\n return view('admin.backends.employee.form.edit',compact('data'));\n }", "public function edit($model, $form);", "function edit() {\n\t\tglobal $tpl;\n\n\t\t$form = $this->initForm();\n\t\t$tpl->setContent($form->getHTML());\n\t}", "public function edit($id)\n\t{\n\t\t$faith = Faith::find($id);\n \n return view('faith.form')->with('faith', $faith);\n\n\t}", "public function edit()\n { \n return view('admin.control.edit');\n }", "public function edit(Form $form)\n {\n //\n }", "public function edit()\n {\n return view('common::edit');\n }", "public function edit($id)\n {\n $resource = (new AclResource())->AclResource;\n $roleResource = AclRole::where('role', $id)->get(['resource'])->toArray();\n $roleResource = Arr::pluck($roleResource, 'resource');\n return view('Admin.acl.role.form', [\n 'role' => $id,\n 'resource' => $resource,\n 'roleResource' => $roleResource,\n ]);\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\n {\n return view('admin::edit');\n }", "public function edit()\r\n {\r\n return view('petro::edit');\r\n }", "public function edit($id)\n {\n // show form edit user info\n }", "public function edit()\n {\n return view('escrow::edit');\n }", "public function edit($id)\n {\n $resource = ResourceManagement::find($id);\n\n $users = User::get();\n // Redirect to user list if updating user wasn't existed\n if ($resource == null || $resource->count() == 0) {\n return redirect()->intended('/resource-management');\n }\n\n return view('resources-mgmt/edit', ['resource' => $resource, 'users' => $users]);\n }", "public function edit()\n {\n return view('commonmodule::edit');\n }", "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$this->employee->setDataArray($action);\n\t\t\theader('Location: ' . PATH . 'Employee/index/', true, 303);\n\t\t}\n\t\t$employee = $this->employee->setAction('edit');\n\t\t$this->view->addToReplace($employee);\n\t\t$this->listEmployee();\n\t\t$this->arrayToPrint();\n\t}", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit()\n {\n return view('catalog::edit');\n }", "public function edit(form $form)\n {\n //\n }", "public function actionEdit($id) { }", "public function edit()\n {\n return view('admincp::edit');\n }", "public function edit()\n {\n return view('scaffold::edit');\n }", "public function edit($id)\n {\n $header = \"Edit\";\n\t\t$data = Penerbit::findOrFail($id);\n\t\treturn view('admin.penerbit.form', compact('data','header'));\n }", "public function edit()\n {\n return view('Person.edit');\n }", "public function edit($id)\n {\n $data = Form::find($id);\n return view('form.edit', compact('data'));\n }", "public function edit($id)\n\t{\n\t\t$career = $this->careers->findById($id);\n\t\treturn View::make('careers._form', array('career' => $career, 'exists' => true));\n\t}", "public function edit(Flight $exercise, FlightResource $resource)\n {\n return $this->viewMake('adm.smartcars.exercise-resources.edit')\n ->with('flight', $exercise)\n ->with('resource', $resource);\n }", "public function edit($id)\n\t{\n\t\t// get the material\n\t\t$material = Material::find($id);\n\n\t\t// show the edit form and pass the material\n\t\t$this->layout->content = View::make('material.edit')\n\t\t\t->with('material', $material);\n\t}", "public function edit($id, Request $request)\n {\n $formObj = $this->modelObj->find($id);\n\n if(!$formObj)\n {\n abort(404);\n } \n\n $data = array();\n $data['formObj'] = $formObj;\n $data['page_title'] = \"Edit \".$this->module;\n $data['buttonText'] = \"Update\";\n\n $data['action_url'] = $this->moduleRouteText.\".update\";\n $data['action_params'] = $formObj->id;\n $data['method'] = \"PUT\"; \n\n return view($this->moduleViewName.'.add', $data);\n }", "public function edit()\n {\n $id = $this->getId();\n return view('panel.user.form', [\n 'user' => $this->userRepository->findById($id),\n 'method' => 'PUT',\n 'routePrefix' => 'profile',\n 'route' => 'profile.update',\n 'parameters' => [$id],\n 'breadcrumbs' => $this->getBreadcrumb('Editar')\n ]);\n }", "public function edit()\r\n {\r\n return view('mpcs::edit');\r\n }", "function edit()\n\t{\n\t\t// hien thi form sua san pham\n\t\t$id = getParameter('id');\n\t\t$product = $this->model->product->find_by_id($id);\n\t\t$this->layout->set('auth_layout');\n\t\t$this->view->load('product/edit', [\n\t\t\t'product' => $product\n\t\t]);\n\t}", "public function edit($id)\n {\n //\n $data = Diskon::find($id);\n\n $form = $this->form;\n $edit = $this->edit;\n $field = $this->field;\n $page = $this->page;\n $id = $id;\n $title = $this->title;\n return view('admin/page/'.$this->page.'/edit',compact('form','edit','data','field','page','id','title'));\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "public function edit($id)\n {\n return $this->showForm($id);\n }", "protected function _edit(){\n\t\treturn $this->_editForm();\n\t}", "public function editAction()\n {\n $robot = Robots::findFirst($this->session->get(\"robot-id\"));\n if ($this->request->isGet()) {\n $this->tag->prependTitle(\"Редактировать робота :: \");\n $user = $this->session->get(\"auth-id\");\n if (!$robot) {\n $this->flashSession->error(\n \"Робот не найден\"\n );\n return $this->response->redirect(\"users/usershow/$user->name\");\n }\n\n }\n\n $this->view->form = new RobotForm(\n $robot,\n [\n \"edit\" => true,\n ]\n );\n }", "public function editAction()\n {\n $form = new $this->form();\n\n $request = $this->getRequest();\n $param = $this->params()->fromRoute('id', 0);\n\n $repository = $this->getEm()->getRepository($this->entity);\n $entity = $repository->find($param);\n\n if ($entity) {\n\n $form->setData($entity->toArray());\n\n if ( $request->isPost() ) {\n\n $form->setData($request->getPost());\n\n if ( $form->isValid() ) {\n\n $service = $this->getServiceLocator()->get($this->service);\n $service->update($request->getPost()->toArray());\n\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n }\n } else {\n return $this->redirect()->toRoute($this->route, array('controller' => $this->controller));\n }\n\n return new ViewModel(array('form' => $form, 'id' => $param));\n\n }", "public function edit($id)\n\t{\n\t\t$SysApplication = \\Javan\\Dynaflow\\Domain\\Model\\SysApplication::find($id);\n\t\t$form = \\FormBuilder::create('Javan\\Dynaflow\\FormBuilder\\SysApplicationForm', [\n \t'method' => 'POST',\n \t'url' => 'sysapplication/update/'.$id,\n \t'model' => $SysApplication,\n \t'data' => [ 'flow_id' => $SysApplication->flow_id]\n \t]);\n\t\treturn View::make('dynaflow::sysapplication.form', compact('form', 'SysApplication'));\n\t}", "public function editAction() {\n\t\t$id = (int) $this->_getParam('id');\n\t\t$modelName = $this->_getParam('model');\n\t\t\n\t\t$model = Marcel_Backoffice_Model::factory($modelName);\n\t\t$item = $model->find($id)->current();\n\t\tif (!$item) {\n\t\t\t$item = $model->createRow();\n\t\t}\n\t\t$form = $item->getForm();\n\t\tif ($this->_request->isPost()) {\n\t\t\t$newId = $form->populate($this->_request->getPost())->save();\n\t\t\tif ($newId) {\n\t\t\t\t$this->_helper->flashMessenger('Saved successfully!');\n\t\t\t\t$this->_helper->redirector('edit', null, null, array('id' => $newId, 'model' => $modelName));\n\t\t\t}\n\t\t}\n\t\t$this->view->form = $form;\n\t\t$this->view->messages = $this->_helper->flashMessenger->getMessages();\n\t}", "public function edit($id)\n {\n return view('models::edit');\n }", "public function edit()\n {\n return view('home::edit');\n }", "public function editAction()\n {\n $id = $this->params()->fromRoute('id');\n $entity = $this->entityManager->find(Entity\\CourtClosing::class, $id);\n if (! $entity) {\n // to do: deal with it\n }\n $form = $this->getForm('update');\n $form->bind($entity);\n if ($this->getRequest()->isPost()) {\n return $this->post();\n }\n\n return new ViewModel(['form' => $form]);\n }", "public function editAction($id)\n {\n $entity = $this->getManager()->find($id);\n\n $breadcrumbs = $this->get(\"white_october_breadcrumbs\");\n $breadcrumbs->addItem('Inicio', $this->get('router')->generate('admin.homepage'));\n $breadcrumbs->addItem($this->entityDescription, $this->get(\"router\")->generate(\"admin.$this->entityName.index\"));\n $breadcrumbs->addItem('Editar');\n\n if (!$entity) {\n throw $this->createNotFoundException('No se ha encontrado el elemento');\n }\n\n $form = $this->getForm($entity);\n\n return $this->render('AdminBundle:Default:edit.html.twig', array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n 'metadata' => $this->getMetadata()\n ));\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit()\n {\n return view('user::edit');\n }", "public function edit(Form $form)\n {\n return view('admin.forms.edit', compact('form'));\n }", "public function editAction()\n {\n $form = MediaForm::create($this->get('form.context'), 'media');\n $media = $this->get('media_manager.manager')->findOneById($this->get('request')->get('media_id'));\n \n $form->bind($this->get('request'), $media);\n \n return $this->render('MediaManagerBundle:Admin:form.html.twig', array('form' => $form, 'media' => $media));\n }", "public function editAction($id) {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('CdlrcodeBundle:Question')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Question entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('CdlrcodeBundle:Question:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('consultas::edit');\n }", "public function edit(DirectorFormBuilder $form, $id)\n {\n return $form->render($id);\n }", "public function edit()\n {\n return view('dashboard::edit');\n }", "public function edit($id){\n $rfid = Rfid::find($id);\n\n //load form view\n return view('rfids.edit', ['rfid' => $rfid]);\n }", "public function edit($id)\n {\n\n // retrieve provider\n $provider = Provider::findOrFail($id);\n\n // return form with provider\n return view('backend.providers.form')->with('provider', $provider);\n }", "public function edit(Question $question)\n {\n $this->employeePermission('application' , 'edit');\n $question->chooses;\n $action = 'edit';\n return view('admin.setting.question_form', compact('action' , 'question'));\n }", "public function edit() {\n return view('routes::edit');\n }", "public function edit($id)\n {\n $this->data['product'] = Product::find($id);\n $this->data['category'] = Category::arrForSelect();\n $this->data['title'] = \" Update Prouct Details\";\n $this->data['mode'] = \"edit\";\n\n return view('product.form', $this->data);\n }", "public function edit(ClueEnFormBuilder $form, $id): Response\n {\n return $form->render($id);\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('BaseBundle:Feriado')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Feriado entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('BaseBundle:Feriado:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return view('cataloguemodule::edit');\n }", "public function edit($articulo_id)\n {\n $titulo = \"Editar\";\n return View(\"articulos.formulario\",compact('titulo','articulo_id'));\n }", "public function edit($id)\n {\n $resources = User::find(session('usuario_id'))->resources;\n $languages = Language::pluck('name', 'id');\n $types = Type::pluck('name', 'id');\n $method = 'PATCH';\n\n $recurso = Resource::find($id);\n $url = \"/resource/$recurso->id\";\n\n return view('resources.resources', compact('resources', 'languages', 'types', 'method', 'url', 'recurso'));\n }", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit]);\n }", "public function displayEditForm(Employee $employee){\n return view('employee.displayEditForm',['employee'=>$employee]);\n }", "public function edit()\n {\n return view('website::edit');\n }", "public function edit()\n {\n return view('inventory::edit');\n }", "public function edit()\n {\n return view('initializer::edit');\n }", "public function editAction()\n {\n View::renderTemplate('Profile/edit.html', [\n 'user' => $this->user\n ]);\n }", "public function edit($id)\n {\n return view('backend::edit');\n }", "public function edit($id)\n {\n //dd($id);\n $familiaPrograma= FamiliaPrograma::findOrFail($id);\n return view('familiasPrograma.edit', compact('familiaPrograma'));\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n return view('crm::edit');\n }", "public function edit($id)\n {\n $user = User::where('id', $id)->first();\n\n\n return view('users.forms.update', compact('user'));\n }", "public function editAction($id)\n\t{\n\t\t$school = School::find( $id );\n\t\t$this->render( View::make( 'schools/form' , array(\n\t\t\t'title' => sprintf( 'Modifier \"%s\"', $school->name ),\n\t\t\t'entity' => $school\n\t\t) ) );\n\t}", "public function edit(Question $question)\n {\n $edit = TRUE;\n return view('questionForm', ['question' => $question, 'edit' => $edit ]);\n }", "public function edit(Person $person) {\n\t\t$viewModel = new PersonFormViewModel();\n\t\treturn view('person.form', $viewModel);\n\t}", "public function edit($id)\n {\n \t$product = Product::find($id);\n \treturn view('admin.products.edit')->with(compact('product')); // formulario de actualizacion de datos del producto\n }", "public function edit_person($person_id){\n \t$person = Person::find($person_id);\n \treturn view('resource_detail._basic_info.edit',compact('person'));\n }", "public function edit($id)\n {\n $professor = $this->repository->find($id);\n return view('admin.professores.edit',compact('professor'));\n }", "public function edit($id)\n {\n $data = Restful::find($id);\n return view('restful.edit', compact('data'));\n }", "public function editAction($id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('MedecinIBundle:Fichepatient')->find($id);\n\n if (!$entity) {\n throw $this->createNotFoundException('Unable to find Fichepatient entity.');\n }\n\n $editForm = $this->createEditForm($entity);\n $deleteForm = $this->createDeleteForm($id);\n\n return $this->render('MedecinIBundle:Fichepatient:edit.html.twig', array(\n 'entity' => $entity,\n 'edit_form' => $editForm->createView(),\n 'delete_form' => $deleteForm->createView(),\n ));\n }", "public function edit($id)\n {\n return $this->form->render('mconsole::personal.form', [\n 'item' => $this->person->query()->with('uploads')->findOrFail($id),\n ]);\n }", "public function edit($id)\n\t{\n\t\t // get the project\n $project = Project::find($id);\n\n // show the edit form and pass the project\n return View::make('logicViews.projects.edit')->with('project', $project);\n\t}" ]
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.68336326", "0.6811471", "0.68060875", "0.68047357", "0.68018645", "0.6795623", "0.6791791", "0.6791791", "0.6787701", "0.67837197", "0.67791027", "0.677645", "0.6768301", "0.6760122", "0.67458534", "0.67458534", "0.67443407", "0.67425704", "0.6739898", "0.6735328", "0.6725465", "0.6712817", "0.6693891", "0.6692419", "0.6688581", "0.66879624", "0.6687282", "0.6684741", "0.6682786", "0.6668777", "0.6668427", "0.6665287", "0.6665287", "0.66610634", "0.6660843", "0.66589665", "0.66567147", "0.66545695", "0.66527975", "0.6642529", "0.6633056", "0.6630304", "0.6627662", "0.6627662", "0.66192114", "0.6619003", "0.66153085", "0.6614968", "0.6609744", "0.66086483", "0.66060555", "0.6596137", "0.65950733", "0.6594648", "0.65902114", "0.6589043", "0.6587102", "0.65799844", "0.65799403", "0.65799177", "0.657708", "0.65760696", "0.65739626", "0.656931", "0.6567826", "0.65663105", "0.65660435", "0.65615267", "0.6561447", "0.6561447", "0.65576506", "0.655686", "0.6556527", "0.6555543", "0.6555445", "0.65552044", "0.65543956", "0.65543705", "0.6548264", "0.65475875", "0.65447706" ]
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $data = $request->validate([ 'name' => 'required' ]); if(Film::where($data)->first()) { return response()->json([ 'status' => false, 'message' => 'Film zaten kayıtlı' ]); } else { $film = Film::find($id); if($film) { $film->update($data); return response()->json([ 'status' => true, 'message' => 'Güncelleme başarılı' ]); } else { return response()->json([ 'status' => false, 'message' => 'Hedef film bulunamadı' ]); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ]\n ]);\n }", "public function update(Request $request, Resource $resource)\n {\n $request->validate([\n 'name' => 'required',\n 'description' => 'required|string',\n 'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,ppt,txt',\n ]);\n\n $resource->update($request->all());\n\n if ( $request->hasFile('file') ) {\n $resource = 'resource-'.time().'.'.$request->file('file')->extension();\n $request->file->storeAs('resources', $resource,'public');\n $resource->file = $resource;\n }\n\n if ( $resource->save() ) {\n return redirect()->route('admin.resources.index')->with('success', 'Resource updated');\n } else {\n return redirect()->route('admin.resources.index')->with('error', 'Something went wrong');\n }\n }", "public function update(Request $request, Resource $resource)\n {\n //\n }", "public function updateStream($resource);", "public function update(Request $request, Storage $storage)\n {\n $storage->product_id = $request->product_id;\n $storage->amount = $request->amount;\n\n $storage->save();\n\n return redirect()->route('storages.index');\n }", "protected function updateImageResource($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n $this->deleteResource($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update(Storage $storage, UpdateStorageRequest $request)\n {\n $this->storage->update($storage, $request->all());\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource updated', ['name' => trans('product::storages.title.storages')]));\n }", "public function update(StoreStorage $request, Storage $storage)\n {\n $storage->fill($request->all())->save();\n $request->session()->flash('alert-success', 'Запись успешно обновлена!');\n return redirect()->route('storage.index');\n }", "public function update_asset($id, Request $request){\n \t\tif(!Auth::user()){\n\t\t\treturn redirect('/');\n\t\t}\n \t\t$asset = Storage::find($id);\n \t\t$asset->name = $request->name;\n \t\t$asset->quantity = $request->quantity;\n \t\t$asset->category_id = $request->category;\n \t\tif($request->file('image') != null){\n\t\t\t$image = $request->file('image');\n\t\t\t$image_name = time(). \".\" . $image->getClientOriginalExtension();\n\t\t\t$destination = \"images/\";\n\t\t\t$image->move($destination, $image_name);\n\t\t\t$asset->image_url = $destination.$image_name;\n\t\t} \n\t\t$asset->save();\n\t\tsession()->flash('success_message', 'Item Updated successfully');\n\t\treturn redirect(\"/storage\");\n \t}", "public function update(Request $request, Flight $exercise, FlightResource $resource)\n {\n $request->validate([\n 'display_name' => 'required|string|max:100',\n 'file' => 'nullable|file|max:10240|mimes:pdf',\n 'uri' => 'nullable|url|max:255',\n ]);\n\n if ($resource->type === 'file' && $request->file('file')) {\n Storage::drive('public')->delete($resource->resource);\n $resource->resource = $request->file('file')->store('smartcars/exercises/resources', ['disk' => 'public']);\n } elseif ($resource->type === 'uri' && $request->input('uri')) {\n $resource->resource = $request->input('uri');\n }\n\n $resource->save();\n\n return redirect()->route('adm.smartcars.exercises.resources.index', $exercise)\n ->with('success', 'Resource edited successfully.');\n }", "public function update(Request $request, $id)\n {\n $validator = Validator::make($request->all(), [\n 'title' => 'required|string',\n 'content' => 'required|string',\n 'mentoring_area_id' => 'required|integer',\n 'featured_image_uri' => 'string',\n ]);\n\n if ($validator->fails()) {\n return APIHandler::response(0, $validator->errors(), 400);\n }\n \n $resource = Resource::find($id);\n $resource->title = $request->get('title');\n $resource->content = $request->get('content');\n $resource->featured_image_uri = $request->get('featured_image_uri');\n $resource->updated_at = \\Carbon\\Carbon::now();\n $resource->mentoring_area_id = $request->get('mentoring_area_id');\n $resource->save();\n $data['resource'] = $resource;\n return APIHandler::response(1, \"Resource has been updated\");\n }", "protected function updateVideoResource($fileName, $videoId, $storage, $premium=1)\n {\n //Get video name and storage location for video\n $video = Video::where('id', '=', $videoId)->first();\n\n //Check the storage medium\n if($storage == 'vimeo' || $storage == 'youtube')\n {\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n else\n {\n if($video['storage'] == 'local' || $video['storage'] == 's3')\n {\n //Delete old video\n $this->deleteResource($video->name, $video->storage);\n }\n \n //Store the new video\n $video->name = $fileName;\n $video->storage = $storage;\n $video->premium = $premium;\n $video->save();\n }\n }", "public function put($resource, $with=[]){\n return $this->fetch($resource, self::PUT, $with);\n }", "public function update($id, $resource) {\n SCA::$logger->log(\"update resource\");\n return $this->orders_service->update($id, $resource);\n }", "public function update($path);", "public function update($id, $resource)\n {\n SCA::$logger->log(\"Entering update()\");\n //check whether it is an sdo or an xml string.\n if ($resource instanceof SDO_DataObjectImpl) {\n //if the thing received is an sdo convert it to xml\n if ($this->xml_das !== null) {\n $xml = SCA_Helper::sdoToXml($this->xml_das, $resource);\n } else {\n throw new SCA_RuntimeException(\n 'Trying to update a resource with SDO but ' .\n 'no types specified for reference'\n );\n }\n } else {\n $xml = $resource;\n }\n\n $slash_if_needed = ('/' === $this->target_url[strlen($this->target_url)-1])?'':'/';\n\n $handle = curl_init($this->target_url.$slash_if_needed.\"$id\");\n curl_setopt($handle, CURLOPT_HEADER, false);\n curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($handle, CURLOPT_CUSTOMREQUEST, \"PUT\");\n curl_setopt($handle, CURLOPT_POSTFIELDS, $xml);\n\n //replace with Content-Type: atom whatever\n $headers = array(\"User-Agent: SCA\",\n \"Content-Type: text/xml;\",\n \"Accept: text/plain\");\n curl_setopt($handle, CURLOPT_HTTPHEADER, $headers);\n\n $result = curl_exec($handle);\n\n $response_http_code = curl_getinfo($handle, CURLINFO_HTTP_CODE);\n\n curl_close($handle);\n\n $response_exception = $this->buildResponseException($response_http_code, '200');\n\n if ($response_exception != null) {\n throw $response_exception;\n } else {\n //update does not return anything in the body\n return true;\n }\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'link' => 'required',\n 'description' => 'required'\n ]);\n\n $resource = Resource::find($id);\n $resource->name = $request->name;\n $resource->type_id = $request->type_id;\n $resource->has_cost = ($request->has('has_cost')) ? 1 : 0;\n $resource->language_id = $request->language_id;\n $resource->link = $request->link;\n $resource->description = $request->description;\n $resource->tags = '';\n\n $resource->save();\n //return back()->with('success', 'Recurso actualizado satisfactoriamente');\n return redirect('/resource')->with('success', 'Recurso actualizado satisfactoriamente');\n }", "public function update(Request $request, $id)\n {\n $oldProduct = Product::findOrFail($id);\n $data = $request->all();\n if(isset($data['img'])){\n // $file = $request->file('photo');\n // return $file;\n $imgName = time().'.'.$request->img->extension();\n $data['img'] = $imgName;\n // Storage::putFile('spares', $file);\n $path = $request->img->storeAs('public/uploads', $imgName); //in Storage\n\n //delete old file\n if($oldProduct->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$oldProduct->img);\n // return 'deleted';\n }\n \n }else{\n $data['img'] = $oldProduct->img;\n }\n $oldProduct->update($data);\n return redirect()->route('product.index'); \n\n }", "public function update($request, $id) {\n\t\t\t$image = $request['photo'];\n\t\t\tif($image !== null) {\n\t\t\t\t$name = time().'.' . explode('/', explode(':', substr($image, 0, strpos($image, ';')))[1])[1];\n\t\t\t\t\\Image::make($request['photo'])->save(public_path('storage/products/').$name);\n\t\t\t\t$request['photo'] = $name;\n\t\t\t} else {\n\t\t\t\t$currenPhoto = Product::all()->where('id', $id)->first();\n\t\t\t\t$request['photo'] = $currenPhoto->photo;\n\t\t\t}\n return $this->product->update($id, $request);\n\t}", "public function updateStream($path, $resource, Config $config)\n {\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function updateResourceIndex(&$resource) {\n if ($this->connector != null) {\n\n // STEP 1: Update or insert this resource as a node:\n $this->logger->addDebug(\"Updating/Inserting Node into Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} }) SET a.title = {title}, a.version = {version}, a.href = {href}\n return a;\",\n [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n );\n\n // Check to see if anything was added\n $records = $result->getRecords();\n if (empty($records)) {\n // Must create this record instead\n $result = $this->connector->run(\"CREATE (n:Resource) SET n += {infos};\",\n [\n \"infos\" => [\n 'id' => $resource->getID(),\n 'version' => $resource->getVersion(),\n 'title' => $resource->getTitle(),\n 'href' => $resource->getLink()\n ]\n ]\n );\n }\n\n // STEP 2: Update or insert the resource's link to holding repository\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id} })-[r:HIRELATION]->()\n return r;\",\n [\n 'id' => $resource->getID(),\n ]\n );\n $records = $result->getRecords();\n if (!empty($records)) {\n // delete the one there so that we can add the correct one (just in case)\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}})-[r:HIRELATION]->() delete r;\",\n [\n 'id' => $resource->getID()\n ]\n );\n\n }\n\n // If resource has a repository, then add a link\n if ($resource->getRepository() != null && $resource->getRepository()->getID() != null) {\n $this->connector->run(\"MATCH (a:Identity {id: {id1} }) MATCH (b:Resource {id: {id2} }) CREATE (b)-[r:HIRELATION]->(a);\",\n [\n 'id1' => (string) $resource->getRepository()->getID(),\n 'id2' => $resource->getID()\n ]);\n }\n }\n }", "public function update($data) {}", "public function update($data) {}", "public function putStream($resource);", "public function update(Request $request, NebulaResource $resource, $item): RedirectResponse\n {\n $this->authorize('update', $item);\n\n $validated = $request->validate($resource->rules(\n $resource->editFields()\n ));\n\n $resource->updateQuery($item, $validated);\n\n $this->toast(__(':Resource updated', [\n 'resource' => $resource->singularName(),\n ]));\n\n return redirect()->back();\n }", "public function saveShopifyResource() {\n if (is_null($this->getShopifyId())) { // if there is no id...\n $this->createShopifyResource(); // create a new resource\n } else { // if there is an id...\n $this->updateShopifyResource(); // update the resource\n }\n }", "public function update($entity);", "public function update($entity);", "public function setResource($resource);", "public function updateStream($path, $resource, Config $config)\n {\n return $this->upload($path, $resource, $config);\n }", "public function isUpdateResource();", "public function update(Request $request, $id)\n {\n $device = Device::findOrFail($id);\n $device->fill($request->all());\n if ($request->hasFile('icon')) {\n if ($device->hasMedia('icon')) {\n $device->deleteMedia($device->getFirstMedia('icon'));\n }\n $device->addMediaFromRequest('icon')->toMediaCollection('icon');\n }\n $device->save();\n return new DeviceResource($device);\n }", "public function update(Request $request, $id)\n {\n //\n $product = Product::findOrFail($id);\n \n $product->update($request->all());\n \n $file = $request->file('url_image')->move('upload', $request->file('url_image')->getClientOriginalName());\n\n Product::where('id',$id)->update(['url_image'=>$file]);\n \n \\Session::flash('flash_message', 'Edit product successfully.'); \n \n //cũ : return redirect('articles');\n return redirect()->route('products.index');\n }", "public function store($data, Resource $resource);", "public function update(Request $request, $id)\n {\n \n $product = Product::find($id);\n\n\n $product->fill($request->all())->save();\n\n //Verificamos que tenemos una imagen\n if($request->file('photo_1')){\n\n\n //En caso de tenerla la guardamos en la clase Storage en la carpeta public en la carpeta image.\n $path = Storage::disk('public')->put('photo_1',$request->file('photo_1'));\n\n //Actualizamos el Post que acabamos de crear\n $product->fill(['photo_1' => asset($path)])->save();\n\n }\n\n\n return redirect()->route('products.index')->with('info', 'Producto actualizado exitosamente!');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n if (\\Input::hasFile('image')) {\n $this->imgsave($request, $product);\n }\n\n\n if (!empty($request->input('tags'))) {\n $product->tags()->sync($request->input('tags'));\n } else {\n $product->tags()->detach();\n }\n\n $product->update($request->all());\n\n return redirect()->to('dashboard/product')->with('message', 'update success');\n }", "public function put($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'PUT');\n }", "public function update($id)\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'updateValidations')) {\n $this->request->validate($this->updateValidations());\n }\n\n /* Get the specified resource */\n $resource = $this->model::findOrFail($id);\n\n /* Update the specified resource */\n $resource->update(Input::all());\n\n /* Redirect back */\n return redirect()->back()\n ->with(\n 'info',\n Lang::has($this->name . '.resource-updated') ?\n $this->name . '.resource-updated' :\n 'messages.alert.resource-updated'\n );\n }", "public function putResponse($request)\n {\n $idSearched = $this->searcher->searchResourceIndex(\n $request, \n $this->db[$request['resource']]\n );\n if ($idSearched) {\n $resource = $this->db[$request['resource']][$idSearched];\n $bodyInput = json_decode($this->standardInput, true);\n $resource = BodyRequest::canApplyBody($bodyInput);\n $resource['id'] = (int)$request['param'];\n foreach($resource as $key => $value) {\n $this->db[$request['resource']][$idSearched][$key] = $value;\n }\n file_put_contents(DB_PATH, json_encode($this->db));\n }\n }", "public function update(Storedataset $request, dataset $dataset){\n $dataset->title = $request->input('title');\n $dataset->caption = $request->input('caption');\n $dataset->file_url = $request->input('file_url');\n $dataset->type = $request->input('type');\n $dataset->status = $request->input('status');\n $dataset->publication_id = $request->input('publication_id');\n\n $dataset->save();\n\n return redirect()->route('datasets.show', ['dataset' => $dataset]);\n }", "public function update(Request $request, $id)\n\n {\n ResourceManagement::findOrFail($id);\n $constraints = [\n 'title' => 'required|max:100',\n 'url'=> 'required|max:191',\n 'content' => 'required'\n ];\n\n $input = [\n 'title' => $request['title'],\n 'url' => $request['url'],\n 'content' => $request['content'],\n 'type' => $request['type'],\n 'level' => $request['level'],\n 'user_id' => $request['user']\n ];\n// $this->validate($input, $constraints);\n ResourceManagement::where('id', $id)\n ->update($input);\n\n return redirect()->intended('/resource-management');\n }", "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'title' => 'required',\n 'description' => 'required|string',\n 'price' => 'required|numeric',\n 'reference'=>'required'\n ]);\n \n $product = Product::find($id);\n $product->update($request->all());\n \n $im = $request->file('picture');\n \n if (!empty($im)) {\n \n $link = $request->file('picture')->store('images');\n \n \n $product->update([\n 'url_image' => $link,\n ]);\n } \n //dump($request->all());\n return redirect()->route('product.index')->with('message', 'Article modifié avec succès');\n }", "public function update(StoreOrUpdateAsset $request, Asset $asset)\n {\n if (Storage::exists($asset->path) && !Storage::delete($asset->path)) {\n abort(500);\n }\n\n $file = $request->file('file');\n $path = $file->store('assets');\n\n if (!$path) {\n abort(500);\n }\n\n // We wonder if we should delete the old file or not...\n\n $asset->name = $file->getClientOriginalName();\n $asset->size = $file->getSize();\n $asset->type = $file->getMimeType();\n $asset->path = $path;\n\n if ($asset->save()) {\n flash('The asset has been saved.')->success();\n } else {\n abort(500);\n }\n\n return redirect('/admin/assets');\n }", "public function update(FoodRecipeRequest $request, $id)\n {\n $foodRecipe = FoodRecipe::with('ingredients','cookingProcesses')->findOrFail($id);\n if ($request->input('name')!= null)\n $foodRecipe->name = $request->input('name');\n if ($request->input('detail')!= null)\n $foodRecipe->detail = $request->input('detail');\n if($request->file('photo') != null) {\n $old_file = $foodRecipe->photo;\n if($old_file != null){\n $path = public_path().'/storage/'.$old_file;\n File::delete($path);\n }\n $file = $request->file('photo');\n $name = '/foodRecipe/' . Carbon::now()->format(\"dnY-Hisu\") . \".\" . $file->extension();\n $file->storePubliclyAs('public', $name);\n $foodRecipe->photo = $name;\n }\n $foodRecipe->save();\n return new FoodRecipeResource($foodRecipe);\n }", "public function update(StorageTypeRequest $request, $id)\n {\n try {\n $this->service->updateStorageType($request, $id);\n return $this->NoContent();\n } catch (EntityNotFoundException $e) {\n \\Log::error($e->getMessage());\n return $this->NotFound($e->getMessage());\n } catch(\\QueryException $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n } catch(Exception $e) {\n \\Log::error($e->getMessage());\n return $this->ServerError();\n }\n }", "public function update(Request $request, $id)\n {\n //validation\n $this->validate(request(),[\n 'image' => 'image'\n ]);\n\n $slider = HomeSliders::find($id);\n \n $slider->link = request('link');\n\n //get old image to delete if updated\n $oldImage = request('oldImage');\n //get the new image\n $NewImage=$request->file('image');\n\n if($NewImage)\n {\n $filenameToStore= helpers::updatePhoto('image','homeSliders',$request);\n $slider->image=$filenameToStore;\n\n Storage::delete('public/Images/homeSliders/'.$oldImage);\n }\n\n $slider->save();\n\n Alert::success(config('app.name'), trans('messages.Updated Successfully') );\n return redirect()->route('admin.homeSlider',$slider->type);\n }", "public function update(Qstore $request, $id)\n {\n //\n }", "public function update(IEntity $entity);", "protected function performUpdate(): bool\n {\n // Abort if resource does not support update operations\n if (!$this->isUpdatable()) {\n throw new UnsupportedOperation(sprintf('API does not support update operation for %s resources', $this->resourceNameSingular()));\n }\n\n $id = $this->id();\n $prepared = $this->prepareBeforeUpdate($this->toArray());\n\n $payload = [\n $this->resourceNameSingular() => $prepared\n ];\n\n $response = $this\n ->request()\n ->put($this->endpoint($id), $payload);\n\n // Extract and (re)populate resource (if possible)\n // Note: Unlike the \"create\" method, Redmine does NOT\n // appear to send back a full resource when it has been\n // successfully updated.\n $this->fill(\n $this->decodeSingle($response)\n );\n\n return true;\n }", "public function update($request, $id);", "function put($resource, $data = null) {\r\n\t\t\r\n\t\tif(isset($data)) {\r\n\t\t\t$this->request_body = $data;\r\n\t\t}\r\n\r\n\t\t// make the call chief\r\n\t\t$this->exec ( \"PUT\", '/' . $resource );\r\n\r\n\t\t// check the request status\r\n\t\tif($this->status_code != 200){\r\n\t\t\t$this->Logger->error(\r\n\t\t\t\tsprintf(\r\n\t\t\t\t\t'GET Call for resource \\'%s\\' Failed.\r\n\t\t\t\t\tStatus: %d,\r\n\t\t\t\t\tRequest: %s\r\n\t\t\t\t\tAPI Error Message: \r\n\t\t\t\t\t%s',\r\n\t\t\t\t\t$resource,\r\n\t\t\t\t\t$this->status_code,\r\n\t\t\t\t\t$this->request_body_raw,\r\n\t\t\t\t\t$this->response_body\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t\tthrow new Exception($this->response_body);\r\n\t\t} else {\r\n\t\t\treturn $this->response_parsed;\r\n\t\t}\r\n\t}", "public function updateEntities($resource)\n {\n $json = [\n 'resource' => $resource,\n ];\n $request = $this->createRequest('PUT', '/entities', ['json' => $json]);\n $response = $this->send($request);\n return $response;\n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->writeStream($path, $resource, $config);\n }", "public function update(Request $request, $id)\n {\n\n $product = Product::findOrFail($id);\n $product->name = $request['name'];\n $product->price = $request['price'];\n $product->stock = $request['stock'];\n $product->description = $request['description'];\n\n $file = $request->file('image');\n $fileName = $file->getClientOriginalName();\n if($fileName != $product->image){\n $request->file('image')->move('images/',$fileName);\n $product->image = $fileName;\n }\n\n $product->save();\n\n return redirect()->route('products.show',\n $product->id)->with('flash_message',\n 'Article, '. $product->name.' updated');\n }", "protected function handleUpdate()\n {\n $resource = $this->argument('resource');\n $action = $this->option('action');\n $startPage = (int)$this->option('startPage');\n $perPage = (int)$this->option('perPage');\n\n try {\n $harvest = Harvest::where('resource', $resource)->where('action', $action)->firstOrFail();\n } catch (\\Exception $e) {\n $this->info('There is no existing action for updating ' . ucwords($action) . ' ' . ucwords($resource) . '.');\n exit('Nothing was updated.');\n }\n\n $options = [\n 'startPage' => $startPage,\n 'perPage' => $perPage,\n 'lastRun' => $harvest->last_run_at\n ];\n\n // If a lastRun was given use that\n // OR if this has never been run before use 2001-01-01\n if (!empty($this->option('lastRun'))) {\n $options['lastRun'] = new Carbon($this->option('lastRun'));\n } elseif (is_null($options['lastRun'])) {\n $options['lastRun'] = new Carbon('2001-01-01');\n }\n\n $job = new UpdateResourceJob(\n $harvest,\n $options\n );\n\n $message = 'Updating ' . $action . ' ' . $resource . ' ' . $perPage . ' at a time';\n if (isset($lastRun)) {\n $message .= ' with entries updated since ' . $lastRun->format('r');\n }\n $this->info($message);\n $this->dispatch($job);\n }", "abstract public function put($data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function update($id, $data);", "public function testUpdateSupplierUsingPUT()\n {\n }", "public function update(Request $request, $id)\n {\n $storageplace = Storageplace::findOrFail($id);\n $storageplace->update($request->only(['storageplace']));\n return $storageplace;\n }", "public function updateRelatedImage(Request $request, $id)\n {\n // Delete display image in Storage\n Validator::make($request->all(), ['photos' => \"required|file|image|mimes:jpg,png,jpeg|max:5000\"])->validate();\n\n\n if ($request->hasFile(\"photos\")) {\n\n $photo = ProductsPhoto::find($id);\n $imageName = $photo->photos;\n $exists = Storage::disk('local')->exists(\"public/product_images/\" . $photo->photos);\n\n //delete old image\n if ($exists) {\n Storage::delete('public/product_images/' . $imageName);\n }\n\n //upload new image\n $ext = $request->file('photos')->getClientOriginalExtension(); //jpg\n\n $request->photos->storeAs(\"public/product_images/\", $imageName);\n\n $arrayToUpdate = array('photos' => $imageName);\n DB::table('products_photos')->where('id', $id)->update($arrayToUpdate);\n\n return redirect()->route(\"adminDisplayRelatedImageForm\", ['id' => $photo->product_id]);\n } else {\n\n $error = \"NO Image was Selected\";\n return $error;\n }\n }", "public function update(Request $request, $id)\n {\n $skill = Skill::findOrFail($id);\n\n $skill->skill = $request->skill;\n\n if ($request->hasFile('image')) {\n \\Cloudder::upload($request->file('image'));\n $c=\\Cloudder::getResult();\n // $image = $request->file('image');\n // $filename = time() . '.' . $image->getClientOriginalExtension();\n // $location = public_path('images/' . $filename);\n // Image::make($image)->save($location);\n\n $skill->image = $c['url'];\n }\n\n $skill->save();\n\n Session::flash('success', 'Successsfully updated your skill!');\n return redirect()->route('skills.index');\n }", "public function updateStream($path, $resource, Config $config = null)\n {\n $contents = stream_get_contents($resource);\n\n return $this->write($path, $contents, $config);\n }", "public abstract function update($object);", "public static function update($id, $file)\n {\n Image::delete($id);\n\n Image::save($file);\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n $image = $product->image;\n if($request->hasFile('image')){\n $image = $request->file('image')->store('files');\n \\Storage::delete($product->image);\n } \n $product->name = $request->get('name');\n $product->price = $request->get('price');\n $product->description = $request->get('description');\n $product->additional_info = $request->get('additional_info');\n $product->category_id = $request->get('category');\n $product->subcategory_id = $request->get('subcategory');\n $product->image = $image;\n $product->save();\n return redirect()->back();\n }", "public function update(Request $request, $id)\n {\n $sli=Slider::find($id);\n $sli->sort_order=$request->input('sort_order');\n $image = $request->file('slider');\n if($image == ''){\n $image = $sli->slider;\n }else{\n $image = base64_encode(file_get_contents($request->file('slider')));\n }\n $sli->slider = $image;\n $sli->save();\n return redirect()->back();\n }", "public function update(ProductRequest $request, $id)\n {\n $input = Product::find($id);\n $data = $request->all();\n if ($file = $request->file('product_photo')){\n $name = time().$file->getClientOriginalName();\n $file->move('product_image',$name);\n $data['product_photo']=$name;\n// $input->update($data);\n }\n $input->update($data);\n return redirect('admin/products/');\n }", "public function update(Request $request, $id)\n {\n $volume = $this->findVolume($id);\n\n if(count($volume) > 0) {\n $volume->str_volume_name = $request->str_volume_name;\n\n $volume->save();\n }\n\n return response()\n ->json(\n array(\n 'message' => 'Volume is successfully updated.',\n 'volume' => $volume\n ),\n 201\n );\n }", "public function update(Request $request, $id)\n {\n $product = ProductModel::find($id);\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->stock = $request->stock;\n\n if($request->image!=null){\n $imageName = time().'.'.$request->image->extension();\n $request->image->move(public_path('images'), $imageName);\n $product->image = \"/images/\".$imageName;\n }\n $product->save();\n return redirect(\"/products/index\")->with('success','Product has been updated');\n }", "public function update()\n {\n $accessory = Accessories::find(request('id'));\n\n if ($accessory == null) {\n return response()->json([\"error\" => \"aksesuaras nerastas\"], 404);\n }\n\n $this->validateData();\n $path = $accessory->src;\n\n if (request()->hasFile('src')) {\n\n if (Storage::disk('public')->exists($accessory->src)) {\n Storage::disk('public')->delete($accessory->src);\n }\n $path = request()->file('src')->store('accessoriesImages', 'public');\n }\n\n $accessory->update(array_merge($this->validateData(), ['src' => $path]));\n\n return response()->json([\"data\" => $accessory], 200);\n }", "public function update(ProductStoreRequest $request,$id)\n {\n $data = $request->validated();\n $product = Product::where('id',$id);\n $product->update($data);\n return response(\"Producto actualizado con éxito\",200);\n }", "public function update($entity)\n {\n \n }", "public function updateStream($path, $resource, Config $config)\n {\n return $this->write($path,stream_get_contents($resource),$config);\n }", "public function update($id, Request $request)\n {\n date_default_timezone_set('Asia/Taipei');\n $data = $request->all();\n $dbData = Product::find($id);\n $myfile = Storage::disk('local');\n if ($request->hasFile('img')) {\n $file = $request->file('img');\n $path = $myfile->putFile('public', $file);\n $data['img'] = $myfile->url($path);\n File::delete(public_path($dbData->img));\n }\n $dbData->update($data);\n\n if ($request->hasFile('imgs')) {\n // $this->fetchDestroyByProdId($id);\n $localS = Storage::disk('local');\n\n $fileS = $request->file('imgs');\n $imgs = [];\n foreach ($fileS as $i) {\n $pathS = $localS->putFile('public', $i);\n $imgs[] = $localS->url($pathS);\n }\n foreach ($imgs as $img) {\n ProductImg::create([\n 'product_id' => $id,\n 'img' => $img\n ]);\n }\n }\n\n return redirect()->route('admin');\n }", "public function update(Request $request, Product $product)\n { $remfile= $product->image;\n if($request->filep){\n $product->image=$request->filep;\n File::delete(storage_path('app/public/products/'.$remfile));\n }else{\n $product->image=$remfile;\n }\n //rmdir(storage_path('app/public/products/'.$remfile));\n $product->name = $request->name;\n $product->description = $request->description;\n $product->price = $request->price;\n $product->save();\n sleep(3);\n toast('Details updated successfully','info');\n return redirect('/products');\n }", "public function update($id, $input);", "public function update(ProductRequest $request,int $id): ProductResource\n {\n $attributes = $request->only('supplier_id', 'name', 'warehouses');\n\n return new ProductResource($this->productRepository->update($id, $attributes)); }", "public function update(Request $request, $id)\n {\n $slider=new Slider;\n $slider=$slider::find($id);\n \n \n if($file =$request->file('slider')){\n if(Storage::delete('public/slider/'.$slider->slider)){\n\n //Get file original name//\n \n$original_name=$file->getClientOriginalName();\n\n //Get just the file name\n$filename=pathinfo($original_name,PATHINFO_FILENAME);\n\n//Create new file name\n$name=$filename.'_'.time().'.'.$file->getClientOriginalExtension();\n\n $destination='public/slider';\n $path=$request->slider->storeAs($destination,$name);\n $slider->slider=$name;\n $slider->save();\n return redirect('Admin/slider');\n\n }\n }\n}", "public function update(Request $request, $id)\n {/* dd($request->all()); */\n $acheivePic = $this->acheiveRepo->find($id);\n $acheive = $request->except('_method', '_token', 'photo', 'ar', 'en');\n $acheiveTrans = $request->only('ar', 'en');\n\n if ($request->hasFile('icon')) {\n // Delete old image first.\n $oldPic = public_path() . '/images/acheives/' . $acheivePic->icon;\n File::delete($oldPic);\n\n // Save the new one.\n $image = $request->file('icon');\n $imageName = $this->upload($image, 'acheives');\n $acheive['icon'] = $imageName;\n }\n\n $this->acheiveRepo->update($id, $acheive, $acheiveTrans);\n\n return redirect('admin-panel/widgets/acheive')->with('updated', 'updated');\n }", "public function update(Request $request, $id)\n {\n $data = $request->all();\n extract($data);\n\n $productVarient = new ProductVariant();\n $productVarient = $productVarient->find($id);\n $productVarient->vendor_id = auth()->user()->id;\n $productVarient->description = $prod_desc;\n $productVarient->price = $price;\n\n if(request()->hasFile('photo')){\n $image = request()->file('photo')->getClientOriginalName();\n $imageNewName = auth()->user()->id.'-'.$image;\n $file = request()->file('photo');\n $file->storeAs('images/product',$imageNewName, ['disk' => 'public']);\n $productVarient->image = $imageNewName;\n }\n \n $productVarient->save();\n\n return back()->withStatus(__('Product successfully updated.'));\n }", "public function update(Request $request, $id)\n {\n //if upload new image, delete old image\n $myfile=$request->old_photo;\n if($request->hasfile('photo'))\n {\n $imageName=time().'.'.$request->photo->extension();\n $name=$request->old_photo;\n\n if(file_exists(public_path($name))){\n unlink(public_path($name));\n $request->photo->move(public_path('backendtemplate/truefalseimg'),$imageName);\n $myfile='backendtemplate/truefalseimg/'.$imageName;\n }\n }\n //Update Data\n $truefalsequestion=TrueFalseQuestion::find($id);\n $truefalsequestion->name=$request->name;\n $truefalsequestion->photo=$myfile;\n $truefalsequestion->answer = $request->answer;\n $truefalsequestion->question_id = $request->question;\n $truefalsequestion->save();\n\n //Redirect\n return redirect()->route('truefalsequestions.index'); \n }", "public function update($id);", "public function update($id);", "private function update()\n {\n $this->data = $this->updateData($this->data, $this->actions);\n $this->actions = [];\n }", "public function put($path, $data = null);", "public function update(Request $request, $id)\n {\n $request->validate([\n 'path_image'=>'image',\n 'status'=>'required|in:0,1'\n ]);\n $slider=Slider::whereId($id)->first();\n if (is_null($slider)){\n return redirect()->route('sliders.index')->with('error','Slider does not exist');\n }\n try {\n if ($request->hasFile('path_image')){\n $file = $request->file('path_image');\n\n $image_path= $file->store('/sliders',[\n 'disk'=>'uploads'\n ]);\n Storage::disk('uploads')->delete($slider->image);\n\n $request->merge([\n 'image'=>$image_path,\n ]);\n }\n\n $slider->update( $request->only(['status','image']));\n return redirect()->route('sliders.index')->with('success','Updated successful');\n }catch (\\Exception $exception){\n return redirect()->route('sliders.index')->with(['error'=>'Something error try again']);\n\n }\n }", "public function update() {\n $this->accessory->update($this->accessory_params());\n\n if ($this->accessory->is_valid()) {\n $this->update_accessory_image($this->accessory);\n redirect('/backend/accessories', ['notice' => 'Successfully updated.']);\n } else {\n redirect(\n '/backend/accessories/edit',\n ['error' => $this->accessory->errors_as_string()],\n ['id' => $this->accessory->id]\n );\n }\n }", "public function update(Entity $entity);", "public function update(Request $request, $id)\n {\n $icon = SliderIcon::find($id);\n $data = $request->all();\n $data['active'] = $request->has('active') ? 1 : 0;\n if ($request->hasFile('img')) {\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $image = $request->file('img');\n $fileName = time().'_'.Str::lower(Str::random(5)).'.'.$image->getClientOriginalExtension();\n $path_to = '/upload/images/'.getfolderName();\n $image->storeAs('public'.$path_to, $fileName);\n $data['img'] = 'storage'.$path_to.'/'.$fileName;\n }\n $icon->update($data);\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества обнавлены');\n }", "public function update() {\n\t $this->layout = false;\n\t \n\t //set default response\n\t $response = array('status'=>'failed', 'message'=>'HTTP method not allowed');\n\t \n\t //check if HTTP method is PUT\n\t if($this->request->is('put')){\n\t //get data from request object\n\t $data = $this->request->input('json_decode', true);\n\t if (empty($data)) {\n\t $data = $this->request->data;\n\t }\n\t \n\t //check if product ID was provided\n\t if (!empty($data['id'])) {\n\t \n\t //set the product ID to update\n\t $this->Player->id = $data['id'];\n\t if ($this->Player->save($data)) {\n\t $response = array('status'=>'success','message'=>'Product successfully updated');\n\t } else {\n\t $response['message'] = \"Failed to update product\";\n\t }\n\t } else {\n\t $response['message'] = 'Please provide product ID';\n\t }\n\t }\n\t \n\t $this->response->type('application/json');\n\t $this->response->body(json_encode($response));\n\n\t return $this->response->send();\n\t}", "public function update(Request $request, $id)\n {\n //validate incoming request\n $request->validate([\n 'name' => 'string|max:100|nullable',\n 'picture' => 'max:2000|mimes:jpeg,jpg,png,svg|nullable', //max size 2mb,\n 'total' => 'integer|min:0|nullable', //value must be > 0\n 'selling_price' => 'numeric|min:0|nullable',\n 'cost_price' => 'numeric|min:0|nullable',\n 'category_id' => 'integer|nullable'\n ]);\n\n try {\n $product = Auth::user()->store->product()->findorFail($id);\n } catch (ModelNotFoundException $e) {\n return response()->json([\n \"message\" => \"Forbidden\"\n ], 403);\n }\n\n //if category id isnt null\n if ($category_id = $request->category_id) {\n if (!$this->isCategoryIdValid($category_id))\n return response()->json([\n \"message\" => \"Category Id is not valid\"\n ], 422);\n else\n $product->category_id = $request->category_id;\n }\n\n //if uploaded file exist\n if ($picture = $request->file(\"picture\")) {\n //if product already has logo\n if ($product->picture)\n Storage::delete(Product::$PICTURE_PATH . \"/\" . $product->picture);\n\n $picture_path = $picture->store(Product::$PICTURE_PATH);\n //remove folder name from path\n $product->picture = str_replace(Product::$PICTURE_PATH . \"/\", '', $picture_path);\n }\n\n $this->renewProduct($product, $request);\n $product->save();\n return response()->json(new ProductResource($product), 200);\n }", "public function update(Request $request, $id)\n {\n $request->validate([\n 'name' => 'required | min:3 | string',\n 'type' => 'required',\n 'producer' => 'required',\n 'image' => 'image | mimes:png,jpg,jpeg',\n 'price_input' => 'required | numeric | min:0 | max:300000000',\n 'promotion_price' => 'required | numeric | max:300000000',\n 'description' => 'required | string',\n\n ]);\n $product = Product::withTrashed()->findOrfail($id);\n $product->name = $request->name;\n $product->id_type = $request->type;\n $product->id_producer = $request->producer;\n\n $product->amount = $request->amount;\n if (request('image')) {\n $product->image = base64_encode(file_get_contents($request->file('image')->getRealPath()));\n }\n\n $product->price_input = $request->price_input;\n\n if ( $request->promotion_price >= 0 && $request->promotion_price < $product->price_input) {\n $product->promotion_price = $request->promotion_price;\n }else{\n return back()->with('error', '\n Do not enter a negative number');\n }\n $product->new = $request->new;\n\n $product->description = $request->description;\n\n $product->save();\n $product->size()->sync(request('size'));\n\n return redirect()->route('product.index')->with('success', 'Product Updated successfully');\n }", "public function update(Request $request, $id)\n {\n $product = Product::find($id);\n\n $product->name = $request->input('name');\n $product->description = $request->input('description');\n $product->lastPrice = $product->price !== $request->input('price') ? $product->price : NULL;\n $product->price = $request->input('price');\n\n if ($request->hasFile('image')) { \n $currentImg = $product->image;\n if ($currentImg) {\n Storage::delete('/public/' . $currentImg);\n }\n $image = $request->file('image'); \n $path = $image->store('images','public');\n $product->image = $path;\n };\n\n $product->save(); \n\n $product_promotions = $request->input('promotion');\n\n $product->promotions()->sync($product_promotions);\n\n return redirect()->route('admin.modify');\n }", "public static function updateImage($fileName, $imageId, $storage)\n {\n //Get image name and storage location for image\n $image = Image::where('id', '=', $imageId)->first();\n\n //Delete old image\n ResourceHandler::delete($image->name, $image->storage);\n\n //Store the new image\n $image->name = $fileName;\n $image->storage = $storage;\n\n $image->save();\n }", "public function update($request, $id)\n {\n $this->checkExits($id);\n $data = $request->except(['_method','_token','photo']);\n\n if($request->photo)\n {\n try {\n $this->UploadFile($request);\n } catch (\\Exception $e) {\n //if has exception , don't has action\n }\n if ($this->img !== '') {\n $data['img'] = $this->img;\n }\n }\n\n $this->object->update($data);\n\n }", "public function updateProduct($request, $product)\n {\n $product->update($request->except(['_token', '_method', 'image']));\n if ($request->hasFile('image')) {\n $image = $request->file('image');\n $imageName = time() . '.' . $request->file('image')->extension();\n // $img = Image::make('public/foo.jpg');\n\n $image_resize = Image::make($image->getRealPath());\n $image_resize->resize(500, 500);\n $image_resize->save(public_path('images/') . $imageName, 100);\n $product->gallery = $imageName;\n $product->save();\n }\n $product->getTags()->sync($request->input('tags'));\n }" ]
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890722", "0.5860816", "0.5855127", "0.5855127", "0.58513457", "0.5815068", "0.5806887", "0.57525045", "0.57525045", "0.57337505", "0.5723295", "0.5714311", "0.5694472", "0.5691319", "0.56879413", "0.5669989", "0.56565005", "0.56505877", "0.5646085", "0.5636683", "0.5633498", "0.5633378", "0.5632906", "0.5628826", "0.56196684", "0.5609126", "0.5601397", "0.55944353", "0.5582592", "0.5581908", "0.55813426", "0.5575312", "0.55717176", "0.55661047", "0.55624634", "0.55614686", "0.55608666", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55599797", "0.55573726", "0.5556878", "0.5554201", "0.5553069", "0.55530256", "0.5543788", "0.55435944", "0.55412996", "0.55393505", "0.55368495", "0.5535236", "0.5534954", "0.55237365", "0.5520468", "0.55163723", "0.55125296", "0.5511168", "0.5508345", "0.55072427", "0.5502385", "0.5502337", "0.5501029", "0.54995877", "0.54979175", "0.54949397", "0.54949397", "0.54946727", "0.5494196", "0.54941916", "0.54925025", "0.5491807", "0.5483321", "0.5479606", "0.5479408", "0.5478678", "0.54667485", "0.5463411", "0.5460588", "0.5458525" ]
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { $film = Film::find($id); if($film) { $film->tickets()->delete(); $film->visionfilms()->delete(); $film->delete(); return response()->json([ 'status' => true, 'message' => 'Silme başarılı' ]); } else { return response()->json([ 'status' => false, 'message' => 'Hedef film bulunamadı' ]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n $client = $this->getClient($this->name, $this->options);\n try {\n $client->delete(Path::fromString($this->getRelativePublicationPathAndFilename($resource)));\n } catch (FileDoesNotExistsException $exception) {\n }\n }", "public function deleteResource(&$resource) {\n\n if ($this->connector != null) {\n $this->logger->addDebug(\"Deleting Resource Node from Neo4J database\");\n $result = $this->connector->run(\"MATCH (a:Resource {id: {id}}) detach delete a;\",\n [\n 'id' => $resource->getID()\n ]\n );\n $this->logger->addDebug(\"Updated neo4j to remove resource\");\n }\n\n }", "public function deleteShopifyResource() {\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'DELETE',\n ]);\n }", "public function deleteResource()\n {\n $database = new Database();\n $id = $this->_params['id'];\n $database->deleteResource($id);\n $this->_f3->reroute('/Admin');\n }", "protected function deleteResource($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function remove()\n {\n if (! ftruncate($this->fileHandle, 0)) {\n throw new StorageException(\"Could not truncate $this->path\");\n }\n if (! unlink($this->path)) {\n throw new StorageException(\"Could not delete $this->path\");\n }\n }", "public function delete()\n\t{\n\t\t$s3 = AWS::createClient('s3');\n $s3->deleteObject(\n array(\n 'Bucket' => $this->bucket,\n 'Key' => $this->location\n )\n );\n\t\tif($this->local_file && file_exists($this->local_file)) {\n\t\t\tunlink($this->local_file);\n\t\t}\n $this->local_file = null;\n\t}", "public function delete()\n\t{\n\t\tsfCore::db->query(\"DELETE FROM `swoosh_file_storage` WHERE `id`='%i';\", $this->id);\n\t\t$this->fFile->delete();\n\t}", "public function delete(): void\n {\n unlink($this->getPath());\n }", "public function delete()\n {\n if($this->exists())\n unlink($this->getPath());\n }", "public function remove($path);", "function deleteFileFromStorage($path)\n{\n unlink(public_path($path));\n}", "public function delete(): void\n {\n unlink($this->path);\n }", "private function destroyResource(DrydockResource $resource) {\n $blueprint = $resource->getBlueprint();\n $blueprint->destroyResource($resource);\n\n $resource\n ->setStatus(DrydockResourceStatus::STATUS_DESTROYED)\n ->save();\n }", "public static function delete($fileName, $storage)\n {\n if (Storage::disk($storage)->exists($fileName)) \n {\n return Storage::disk($storage)->delete($fileName);\n }\n }", "public function remove() {}", "public function remove() {}", "public function remove();", "public function remove();", "public function remove();", "public function remove();", "function delete_resource($resource_id, $page)\n\t{\n\t\t//get resource data\n\t\t$table = \"resource\";\n\t\t$where = \"resource_id = \".$resource_id;\n\t\t\n\t\t$this->db->where($where);\n\t\t$resource_query = $this->db->get($table);\n\t\t$resource_row = $resource_query->row();\n\t\t$resource_path = $this->resource_path;\n\t\t\n\t\t$image_name = $resource_row->resource_image_name;\n\t\t\n\t\t//delete any other uploaded image\n\t\t$this->file_model->delete_file($resource_path.\"\\\\\".$image_name, $this->resource_path);\n\t\t\n\t\t//delete any other uploaded thumbnail\n\t\t$this->file_model->delete_file($resource_path.\"\\\\thumbnail_\".$image_name, $this->resource_path);\n\t\t\n\t\tif($this->resource_model->delete_resource($resource_id))\n\t\t{\n\t\t\t$this->session->set_userdata('success_message', 'resource has been deleted');\n\t\t}\n\t\t\n\t\telse\n\t\t{\n\t\t\t$this->session->set_userdata('error_message', 'resource could not be deleted');\n\t\t}\n\t\tredirect('resource/'.$page);\n\t}", "public function deleteImage(){\n\n\n Storage::delete($this->image);\n }", "public function del(string $resource): bool|string\n {\n $json = false;\n $fs = unserialize($_SESSION['rfe'][$this->getRoot()], ['allowed_classes' => false]);\n if (array_key_exists($resource, $fs)) {\n // if $item has children, delete all children too\n if (array_key_exists('dir', $fs[$resource])) {\n foreach ($fs as $key => $file) {\n if (isset($file['parId']) && $file['parId'] == $resource) {\n unset($fs[$key]);\n }\n }\n }\n unset($fs[$resource]);\n $_SESSION['rfe'][$this->getRoot()] = serialize($fs);\n $json = '[{\"msg\": \"item deleted\"}]';\n }\n return $json;\n }", "public function destroy()\n\t{\n\t\treturn unlink(self::filepath($this->name));\n\t}", "public function destroy($id) {\n $book = Book::find($id);\n // return unlink(storage_path(\"public/featured_images/\".$book->featured_image));\n Storage::delete(\"public/featured_images/\" . $book->featured_image);\n if ($book->delete()) {\n return $book;\n }\n\n }", "public function destroy($id)\n {\n Storageplace::findOrFail($id)->delete();\n }", "public function destroyResourceImage(): void\n\t{\n\t\tif (isset($this->image)) {\n\t\t\t@imagedestroy($this->image->getImageResource());\n\t\t}\n\t}", "public function deleteResource(PersistentResource $resource)\n {\n $pathAndFilename = $this->getStoragePathAndFilenameByHash($resource->getSha1());\n if (!file_exists($pathAndFilename)) {\n return true;\n }\n if (unlink($pathAndFilename) === false) {\n return false;\n }\n Files::removeEmptyDirectoriesOnPath(dirname($pathAndFilename));\n return true;\n }", "public function deleteImage(){\n \tStorage::delete($this->image);\n }", "public function destroy()\n {\n $file=public_path(config('larapages.media.folder')).Input::all()['folder'].'/'.Input::all()['file'];\n if (!file_exists($file)) die('File not found '.$file);\n unlink($file);\n }", "public function delete() \r\n {\r\n if($this->exists())\r\n {\r\n unlink($this->fullName());\r\n }\r\n }", "public function destroy($id)\n {\n Myfile::find($id)->delete();\n }", "public function destroy($delete = false)\n {\n if (null !== $this->resource) {\n $this->resource->clear();\n $this->resource->destroy();\n }\n\n $this->resource = null;\n clearstatcache();\n\n // If the $delete flag is passed, delete the image file.\n if (($delete) && file_exists($this->name)) {\n unlink($this->name);\n }\n }", "public static function delete($path){\r\n $currentDir = getcwd();\r\n $storageSubPath = \"/../../\".STORAGE_PATH;\r\n $file = $currentDir . $storageSubPath . '/' . $path;\r\n\r\n unlink($file);\r\n }", "public function destroy(Storage $storage)\n {\n return redirect()->route('storages.index');\n }", "public function remove() {\n //Check if there are thumbs and delete files and db\n foreach ($this->thumbs()->get() as $thumb) {\n $thumb->remove();\n } \n //Delete the attachable itself only if is not default\n if (strpos($this->url, '/defaults/') === false) {\n Storage::disk('public')->delete($this->getPath());\n }\n parent::delete(); //Remove db record\n }", "public function removeFile($uri){\n return Storage::disk('public')->delete($uri);\n }", "public function destroy(Resource $resource)\n {\n if( $resource->delete() ){\n return Response(['status'=>'success','message'=>'Resource deleted']); \n } else {\n return Response(['status'=>'error', 'message'=>'Something went wrong']);\n }\n }", "public function delete($path);", "public function delete($path);", "public function destroy($id)\n { \n File::find($id)->remove();\n \n return redirect()->route('files.index');\n }", "public function destroy($id)\n {\n $supplier = Supplier::find($id);\n $photo = $supplier->photo;\n if ($photo) {\n unlink($photo);\n }\n $supplier->delete();\n }", "public function destroy($id)\n {\n $student = Student::where('id', $id)->first();\n // $path = $student->image;\n unlink($student->image);\n Student::findOrFail($id)->delete();\n return response('Deleted!');\n }", "public function destroy($id)\n {\n $icon = SliderIcon::find($id);\n if (Storage::disk('public')->exists(str_replace('storage', '', $icon->img))){\n Storage::disk('public')->delete(str_replace('storage', '', $icon->img));\n }\n $icon->delete();\n return redirect()->route('slider_icons.index')->with('success', 'Данные преимущества удалёны');\n }", "public function delete($path, $data = null);", "public function destroy($id)\n {\n $items=Items::find($id);\n // delete old file\n if ($items->photo) {\n $str=$items->photo;\n $pos = strpos($str,'/',1);\n $str = substr($str, $pos);\n $oldFile = storage_path('app\\public').$str;\n File::Delete($oldFile); \n }\n $items->delete();\n return redirect()->route('items.index');\n }", "public function destroy($id)\n {\n $carousel = Carousel::find($id);\n $image = $carousel->image;\n\n $basename ='img/carousel/' . basename($image);\n //Delete the file from disk\n if(file_exists($basename)){\n unlink($basename);\n }\n //With softDeletes, this is the way to permanently delete a record\n $carousel->delete();\n Session::flash('success','Product deleted permanently');\n return redirect()->back();\n }", "public function remove()\n {\n $fs = new Filesystem();\n $fs->remove($this->dir());\n }", "public static function destroy(int $resource_id)\n {\n try {\n $image_data = ListingImage::where('id', $resource_id)->first();\n self::delete_image($image_data->name);\n $delete = ListingImage::where('id', $resource_id)->delete();\n\n // activity()\n // ->causedBy(Auth::user()->id)\n // ->performedOn($delete)\n // ->withProperties(['id' => $delete->id])\n // ->log('listing image deleted');\n return response()->json(['status'=> 'ok', 'msg'=> 'Data deleted successfully']);\n } catch (Exception $e) {\n $e->getMessage();\n }\n }", "public function destroy(Storage $storage)\n {\n $this->storage->destroy($storage);\n\n return redirect()->route('admin.product.storage.index')\n ->withSuccess(trans('core::core.messages.resource deleted', ['name' => trans('product::storages.title.storages')]));\n }", "public function del($path){\n\t\treturn $this->remove($path);\n\t}", "public function destroy($id)\n {\n //\n $product = Product::findOrFail($id);\n $product->delete();\n if($product->img != 'product-default.png'){\n Storage::delete(\"public/uploads/\".$product->img);\n // return 'deleted';\n }\n return redirect()->route('product.index'); \n }", "public function removeUpload()\n{\n if ($file = $this->getAbsolutePath()) {\n unlink($file); \n }\n}", "public function destroy($id)\n {\n $image = Images::withTrashed()->find($id);\n\n Storage::disk('uploads')->delete(\"social-media/$image->filename\");\n\n $image->tags()->detach();\n $image->detachMedia(config('constants.media_tags'));\n $image->forceDelete();\n\n return redirect()->back()->with('success', 'The image was successfully deleted');\n }", "public function destroyByResourceId($resource_id)\n {\n// $online_party = $this->onlinetrack->where('resource_id', $resource_id)->get()->first();\n// $online_party->status = \"offline\";\n// $online_party->save();\n// return $online_party;\n return $this->onlinetrack->where('resource_id', $resource_id)->delete();\n }", "public function revoke($resource, $permission = null);", "public function destroy($id)\n {\n $data=Image::find($id);\n $image = $data->img;\n\n\n $filepath= public_path('images/');\n $imagepath = $filepath.$image;\n\n //dd($old_image);\n if (file_exists($imagepath)) {\n @unlink($imagepath);\n }\n\n\n $data->delete();\n\n return redirect()->route('image.index');\n }", "function delete($path);", "public function removeItem(int $id)\n\t{\n\t\t$this->storage->remove($id);\n\t}", "public function destroy(File $file)\n {\n //\n $v = Storage::delete($file->path);\n \n }", "public function destroyResource($resource)\n {\n if (!is_object($resource)) {\n return false;\n }\n\n $resource_type = get_class($resource);\n $resource_id = $resource->getKey();\n\n return Role::where('resource_type', $resource_type)\n ->where('resource_id', $resource_id)\n ->delete();\n }", "public function remove($filePath){\n return Storage::delete($filePath);\n }", "public function remove(): void\n {\n $file = $this->getAbsolutePath();\n if (!is_file($file) || !file_exists($file)) {\n return;\n }\n\n unlink($file);\n }", "public function destroy(Request $request, Storage $storage)\n {\n $storage->delete();\n $request->session()->flash('alert-success', 'Запись успешно удалена!');\n return redirect()->route('storage.index');\n }", "public function remove(Storable $entity): Storable\n {\n $this->getRepository(get_class($entity))->remove($entity);\n $this->detach($entity);\n\n return $entity;\n }", "public function processDeletedResource(EntityResource $resource)\n {\n /** @var AuthorizationRepository $repository */\n $repository = $this->entityManager->getRepository('Edweld\\AclBundle\\Entity\\Authorization');\n\n $repository->removeAuthorizationsForResource($resource);\n }", "function _unlink($resource, $exp_time = null)\n {\n if(file_exists($resource)) {\n return parent::_unlink($resource, $exp_time);\n }\n\n // file wasn't found, so it must be gone.\n return true;\n }", "public function remove($id);", "public function remove($id);", "public function deleted(Storage $storage)\n {\n //\n }", "public function destroy($id)\n {\n $data = Product::findOrFail($id);\n\n if(file_exists('uploads/product/'.$data->image1)){\n unlink('uploads/product/'.$data->image1);\n }\n\n if(file_exists('uploads/product/'.$data->image2)){\n unlink('uploads/product/'.$data->image2);\n }\n\n if(file_exists('uploads/product/'.$data->image3)){\n unlink('uploads/product/'.$data->image3);\n }\n $data->delete();\n }", "public function removeUpload()\n {\n $file = $this->getAbsolutePath();\n if ($file) {\n unlink($file);\n }\n }", "public function resources_delete($resource_id, Request $request) {\n if ($resource_id) {\n $resp = Resources::where('id', '=', $resource_id)->delete();\n if($resp){\n $msg = 'Resource has been deleted successfully.';\n $request->session()->flash('message', $msg);\n }\n }\n //return redirect()->route('admin-factor-list');\n return redirect()->to($_SERVER['HTTP_REFERER']);\n }", "public function delete()\n {\n try\n {\n $thumbnail = $this->getThumbnail();\n if($thumbnail)\n {\n $thumbnail->delete();\n }\n }\n catch(sfException $e){}\n \n // delete current file\n parent::delete();\n }", "function deleteResource($uuid){\n $data = callAPI(\"DELETE\",\"/urest/v1/resource/\".$uuid);\n return $data;\n}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function remove_resource($idproject){\n\t\t\n\t\t// Load model and try to get project data\n\t\t$this->load->model('Projects_model', 'projects');\n\t\t\n\t\t// Update\n\t\t$this->projects->save_project(array(\"ext\" => \"\", \"vzaar_idvideo\" => \"0\", \"vzaar_processed\" => \"0\"), $idproject);\n\t}", "public function destroy($id){\n $file_data = Slider::findOrFail($id);\n File::delete(public_path('../storage/app/public/sliders/'.$file_data->path));\n $slider = Slider::destroy($id);\n return response()->json(null, 204);\n }", "public function delete()\n\t{\n\t\t@unlink($this->get_filepath());\n\t\t@unlink($this->get_filepath(true));\n\t\tparent::delete();\n\t}", "public function delete($resource_path, array $variables = array()) {\n return $this->call($resource_path, $variables, 'DELETE');\n }", "public function destroy($id)\n {\n //Find Slider With Id\n $slider = Slider::findOrFail($id);\n // Check If The Image Exist\n if(file_exists('uploads/slider/'.$slider->image)){\n\n unlink( 'uploads/slider/'.$slider->image);\n }\n $slider->delete();\n return redirect()->back()->with('success','Slider Successfully Deleted');\n }" ]
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897263", "0.58962846", "0.58951396", "0.58951396", "0.58951396", "0.58951396", "0.5880124", "0.58690923", "0.5863659", "0.5809161", "0.57735413", "0.5760811", "0.5753559", "0.57492644", "0.5741712", "0.57334286", "0.5726379", "0.57144034", "0.57096", "0.5707689", "0.5705895", "0.5705634", "0.5703902", "0.5696585", "0.5684331", "0.5684331", "0.56780374", "0.5677111", "0.5657287", "0.5648262", "0.5648085", "0.5648012", "0.5640759", "0.5637738", "0.5629985", "0.5619264", "0.56167465", "0.5606877", "0.56021434", "0.5601949", "0.55992156", "0.5598557", "0.55897516", "0.5581397", "0.5566926", "0.5566796", "0.55642897", "0.55641", "0.5556583", "0.5556536", "0.5550097", "0.5543172", "0.55422723", "0.5540013", "0.5540013", "0.55371785", "0.55365825", "0.55300397", "0.552969", "0.55275744", "0.55272335", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.55271083", "0.5525997", "0.5525624", "0.5523911", "0.5521122", "0.5517412" ]
0.0
-1
Display a listing of the resource.
public function __construct() { // switch(Auth::user()->roles){ // case 2: // $this->layout = "layouts.admin"; // break; // case 3: // $this->layout = "layouts.admin_owners"; // break; // case 4: // $this->layout = "layouts.admin_employees"; // break; // case 5: // $this->layout = "layouts.admin_members"; // break; // case 6: // $this->layout = "layouts.admin"; // break; // } $this->beforeFilter('csrf', array('on'=>'post')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->resource->getList($offset, $limit, $filter, $sort);\n\n $this->View()->assign($result);\n $this->View()->assign('success', true);\n }", "public function listing();", "function index() {\n\t\t$this->show_list();\n\t}", "public function actionList() {\n $this->_getList();\n }", "public function listAction()\n {\n $model = $this->_getPhotoModel();\n $entries = $model->fetchEntries($this->_getParam('page', 1));\n\n $this->view->url = 'http://' . $this->_request->getHttpHost() . $this->_request->getBaseUrl(); \n $this->view->paginator = $entries;\n }", "public function index()\n {\n $items = Item::all();\n return ItemForShowResource::collection($items);\n }", "public function index()\n {\n return Resource::collection(($this->getModel())::paginate(10));\n }", "function index()\n\t{\n\t\t$this->_list();\n\t\t$this->display();\n\t}", "public function listingAction(){\n if (!LoginHelper::isAdmin()){\n Router::redirect('home', '<p class=\"alert alert-danger\">Unauthorized</p>');\n }\n $this->view->render('patient/list', Patient::all());\n }", "public function index()\n {\n //\n $list = $this->obj->all();\n\n return $this->render('index', compact('list'));\n }", "public function action_index()\n\t{\n\t\t$this->template->title = 'Resources';\n\t\t$this->view = View::factory('admin/resource/index');\n\t\t$this->template->scripts[] = 'media/js/jquery.tablesorter.min.js';\n\t\t$this->template->scripts[] = 'media/js/admin/resource.js';\n\t\t\n\t\t$resources = Sprig::factory('resource')->load(NULL, FALSE);\n\t\tif (!empty($resources))\n\t\t{\n\t\t\t$this->view->resources = $resources->as_array();\n\t\t}\n\t}", "function listing()\n\t\t{\n\t\t// en $this->_view->_listado para poder acceder a el desde la vista.\n\t\t\t$this->_view->_listado = $listado = $this->_instrumentoModel->getInstrumento();\n\t\t\t$this->_view->render('listing', '', '',$this->_sidebar_menu);\n\t\t}", "public function listAction()\n {\n $em = $this->getDoctrine()->getManager();\n \n $todos = $em->getRepository(Todo::class)->findAll();\n \n return $this->render('todo/index.html.twig', array(\n 'todos' => $todos,\n ));\n }", "public function index()\n\t{\n $this->authorize('list', Instance::class);\n\n\t\treturn $this->ok($this->repo->paginate($this->request->all()));\n\t}", "public function actionRestList() {\n\t $this->doRestList();\n\t}", "public function listing()\n\t{\n\t\t$hospitalID = $this->request->getSession()->read(\"hospital_id\") ? $this->request->getSession()->read(\"hospital_id\") : \"\";\n\t\t\n\t\t$patientMonitored = 1;\n\t\t$patientActive = 1;\n\t\t\n\t\t//GET ALL PATIENTS\n\t\t$patientsData = $this->Patients->allPatients($hospitalID,$patientMonitored,$patientActive);\n\t\t//GET ALL PATIENTS\n\t\t\n\t\t//echo \"<pre>\"; print_r($patientsData);die;\n\t\t$this->set(compact(\"patientsData\"));\n\t}", "public function listAction()\n {\n $htmlpage = '<!DOCTYPE html>\n<html>\n <head>\n <meta charset=\"UTF-8\">\n <title>todos list!</title>\n </head>\n <body>\n <h1>todos list</h1>\n <p>Here are all your todos:</p>\n <ul>';\n \n $em = $this->getDoctrine()->getManager();\n $todos = $em->getRepository(Todo::class)->findAll();\n foreach($todos as $todo) {\n $htmlpage .= '<li>\n <a href=\"/todo/'.$todo->getid().'\">'.$todo->getTitle().'</a></li>';\n }\n $htmlpage .= '</ul>';\n\n $htmlpage .= '</body></html>';\n \n return new Response(\n $htmlpage,\n Response::HTTP_OK,\n array('content-type' => 'text/html')\n );\n }", "public function index()\n {\n // Get Persons\n $person = Person::paginate(10);\n\n //Return collection of person as a resource\n return PersonResource::collection($person);\n }", "public function listAction() {\n\t\t$this->view->title = $this->translator->translate(\"Invoice list\");\n\t\t$this->view->description = $this->translator->translate(\"Here you can see all the invoices.\");\n\t\t$this->view->buttons = array(array(\"url\" => \"/admin/invoices/new/\", \"label\" => $this->translator->translate('New'), \"params\" => array('css' => null)));\r\n\t\t$this->datagrid->setConfig ( Invoices::grid() )->datagrid ();\n\t}", "public function listAll()\n\t{\n\t\t$this->render(self::PATH_VIEWS . '/list', [\n\t\t\t'pages' => $this->pagesDb->findAll('id', 'DESC'),\n\t\t]);\n\t}", "public function list()\n {\n // récupérer les données : toutes les catégories enregistrées\n $productList = Product::findAll();\n\n $this->show('product/list', [\n 'productList' => $productList\n ]);\n }", "public function index()\n {\n // CRUD -> Retrieve --> List\n // BREAD -> Browse Read Edit Add Delete\n // return Item::all();\n return view('list_items',compact('items'));\n }", "public function index()\n {\n // Get manufacturers\n $manufacturers = Manufacturer::orderBy('created_at', 'desc')->paginate(15);\n\n // Return collection of manufacturers as a resource\n return ManufacturerResource::collection($manufacturers);\n }", "public function index()\n {\n return ArtistResource::collection(Artist::orderBy('created_at', 'desc')->get());\n }", "public function indexAction() {\n\t\t$page = intval($this->getInput('page'));\n\t\t$perpage = $this->perpage;\n\t\t\n\t\tlist(,$files) = Lock_Service_FileType::getAllFileType();\n\t\t$data = array();\n\t\tforeach ($files as $key=>$value) {\n\t\t\t$data[$key]['id'] = $value['id'];\n\t\t\t$data[$key]['title'] = $value['name'];\n\t\t}\n\t\tlist($total, $filetype) = Lock_Service_FileType::getList($page, $perpage);\n\t\t$this->assign('filetype', $filetype);\n\t\t$this->assign('pager', Common::getPages($total, $page, $perpage, $this->actions['listUrl'].'/?'));\n\t\t$this->assign('data', json_encode($data));\n\t}", "public function listAction()\n {\n $qb = $this->getRepository()->queryAll();\n\n $view = new ImportListView;\n $view->imports = $qb->getQuery()->execute();\n\n return $this->templating->renderResponse('InfiniteImportBundle:Import:list.html.twig', array(\n 'data' => $view\n ));\n }", "public function index()\n\t{\n\t\t//Return model all()\n\t\t$instances = $this->decorator->getListingModels();\n\n\t\treturn View::make($this->listingView, array(\n\t\t\t'instances' => $instances,\n\t\t\t'controller' => get_class($this), \n\t\t\t'modelName' => class_basename(get_class($this->decorator->getModel())),\n\t\t\t'columns' => $this->getColumnsForInstances($instances),\n\t\t\t'editable' => $this->editable\n\t\t));\n\t}", "public function index()\n {\n return InfografiResources::collection(\n Infografi::orderBy('date', 'desc')->get()\n );\n }", "public function listAction()\n\t {\n\t\t\t$this->_forward('index');\n \n\t\t}", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function index()\n {\n $this->list_view();\n }", "public function listAction()\n {\n $defaults = array(\n 'page' => null,\n 'order' => null,\n 'limit' => null,\n 'offset' => null,\n 'filter' => array(),\n );\n $body = $this->getRequest()->getBody();\n $options = $body + $defaults;\n\n // Process the options\n if (is_string($options['order'])) {\n $options['order'] = array_map('trim', explode(',', $options['order']));\n }\n if (is_string($options['page'])) {\n $options['page'] = (int)$options['page'];\n }\n if (is_string($options['limit'])) {\n $options['limit'] = (int)$options['limit'];\n }\n if (is_string($options['offset'])) {\n $options['offset'] = (int)$options['offset'];\n }\n $filter = $options['filter'];\n unset($options['filter']);\n\n $options = array_filter($options);\n\n return $this->getBinding()->find($filter, $options);\n }", "public function index()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n /* Get the resources from the model */\n $resources = $this->resourcesList($this->model);\n\n /* Sets the view */\n if (view()->exists(\"admin.{$this->name}.index\")) {\n $view = \"admin.{$this->name}.index\";\n } else {\n $view = 'admin.includes.actions.index';\n }\n\n /* Display a listing of the resources */\n return view($view)\n ->with('resources', $resources)\n ->with('module', $this->module);\n }", "public function index()\n\t{\n\t\t$data['lists'] = $this->mdl_student->get_all();\n\t\t$this->template->set('title', 'Student Hostel List');\n\t\t$this->template->load('template', 'contents', 'student_hostel/student_hostel_list', $data);\n\t}", "public function index()\n {\n $modules = Module::all();\n return Resource::collection($modules);\n }", "public function index()\n {\n // List all resources from user entity\n $users = User::all();\n\n return $this->showAll($users);\n }", "public function index()\n {\n // Get todos\n $todos = Todo::orderBy('created_at', 'desc')->paginate(3);\n\n // Return collection of articles as a resource\n return TodoResource::collection($todos);\n }", "public function index()\n {\n return Resources::collection(Checking::paginate());\n }", "public function index()\n {\n return CourseListResource::collection(\n Course::query()->withoutGlobalScope('publish')\n ->latest()->paginate()\n );\n }", "public function index()\n {\n $cars = Car::paginate(15);\n return CarResource::collection($cars);\n }", "public function index()\n {\n // Get articles\n $articles = Article::orderBy('created_at', 'desc')->paginate(5);\n\n // Return collection of articles as a resource\n return ArticleResource::collection($articles);\n }", "public function index()\n {\n $authors = Author::paginate(10);\n\n return AuthorResource::collection($authors);\n }", "public function index()\n {\n //Get Books\n $books = Book::paginate(10);\n \n if ($books) {\n return (BookResource::collection($books))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n } else {\n return (BookResource::collection([]))->additional([\n 'status_code' => 200,\n 'status' => 'success',\n ]);\n }\n return view('index')->with('data', $books);\n }", "public function view(){\n\t\t$this->buildListing();\n\t}", "public function index()\n {\n $books = Book::latest()\n ->paginate(20);\n\n return BookResource::collection($books);\n }", "public function index()\n {\n $listing = Listing::orderBy('id', 'desc')->paginate(10);\n return view('listings.index')->withListings($listing);\n }", "public function listAction()\n {\n $this->_getSession()->setFormData([]);\n\n $this->_title($this->__('Training Cms'))\n ->_title($this->__('Pages'));\n\n $this->loadLayout();\n\n $this->_setActiveMenu('training_cms');\n $this->_addBreadcrumb($this->__('Training Cms'), $this->__('Training Cms'));\n $this->_addBreadcrumb($this->__('Pages'), $this->__('Pages'));\n\n $this->renderLayout();\n }", "public function index()\n {\n $services = $this->serviceRepository->paginate();\n\n return ServiceResource::collection($services);\n }", "public function index()\n {\n $resources = ResourceManagement::paginate(5);\n $users = User::get();\n\n return view('resources-mgmt/index', ['resources' => $resources, 'users' => $users]);\n }", "public function index()\n {\n $catalogs = Catalog::where('status', '=', Catalog::PUBLICADO)\n ->orderBy('id', 'DESC')->get();\n \n $data = CatalogResource::collection($catalogs);\n\n return [\n 'items' => $data,\n 'mensaje' => ''\n ];\n }", "public function listAction(){\n // In a controller this can be:\n // $this->request->getQuery('page', 'int'); // GET\n $currentPage = $this->request->getPost('pageindex', 'int'); // POST\n $pageNum = ($currentPage == null) ? 1 : $currentPage;\n\n // The data set to paginate\n $message = new Notice();\n $results = $message->getMsg4Admin();\n\n // Create a Model paginator, show 10 rows by page starting from $currentPage\n $paginator = new PaginatorArray(\n array(\n \"data\" => $results,\n \"limit\" => 10,\n \"page\" => $pageNum\n )\n );\n\n // Get the paginated results\n $page = $paginator->getPaginate();\n\n return $this->response->setJsonContent($page);\n\n }", "public function list()\n {\n try {\n return $this->success($this->service->list());\n } catch (\\Exception $exception) {\n return $this->error($exception->getMessage());\n }\n }", "public function index()\n {\n return $this->sendResponse(CrisisResource::collection(Crisis::paginate(10)), 'Data fetched successfully');\n }", "public function index()\n\t{\n\t\t$%Alias = new %Model();\n\t\t$params = array();\n\t\t\n\t\t$Paginator = new Paginator( $%Alias->findSize( $params ), $this->getLimit(), $this->getPage() );\n\t\t$this->getView()->set( '%Aliass', $%Alias->findList( $params, 'Id desc', $this->getOffset(), $this->getLimit() ) );\n\t\t$this->getView()->set( 'Paginator', $Paginator );\n\t\treturn $this->getView()->render();\n\t}", "public function listAction() {}", "public function index()\n {\n\n return RecipeResource::collection(Recipe::all());\n }", "public function index()\n {\n $this->indexPage('list-product', 'List Product');\n }", "public function listAction()\n {\t\n\t\t$this->removeSession();\n\t\t$this->verifySessionRights();\n\t\t$this->setActivity(\"List view\");\n $em = $this->getDoctrine()->getManager();\n $oRepClient = $em->getRepository('BoAdminBundle:Client');\n\t\t$nb_tc = $oRepClient->getTotal();\n\t\t//get page\n\t\t$page = $this->get('session')->get('page');\n\t\tif($page==null){\n\t\t\t$page=1;\n\t\t\t$this->get('session')->set('page',1);\n\t\t}\n\t\t//get number line per page\n\t\t$nb_cpp = $em->getRepository('BoAdminBundle:Param')->getParam(\"display_list_page_number\",1);\n\t\t$nb_pages = ceil($nb_tc/$nb_cpp);\n\t\t$offset = $page>0?($page-1) * $nb_cpp:0;\n\t\t$clients = $em->getRepository('BoAdminBundle:Client')->findBy(array(),array('id' => 'desc'),$nb_cpp,$offset);\n $form = $this->createForm('Bo\\AdminBundle\\Form\\ClientType', new Client());\n return $this->render('client/index.html.twig', array(\n 'clients' => $clients,\n\t\t\t'page' => $page, // forward current page to view,\n\t\t\t'nb_pages' => $nb_pages, //total number page,\n 'form' => $form->createView(),\n\t\t\t'total'=>$nb_tc, // record number.\n\t\t\t'nb_cpp' => $nb_cpp,// line's number to display\n\t\t\t'pm'=>\"contracts\",\n\t\t\t'sm'=>\"client\",\n ));\n }", "public function index()\n {\n return AcResource::collection(Ac::latest()->paginate()); //\n }", "public function executeList()\n {\n $this->setTemplate('list');\n }", "public function indexAction()\n {\n $books = Book::getAll();\n\n View::renderTemplate('Books/index.html', [\n 'books' => $books\n ]);\n }", "function listing() {\r\n\r\n }", "public function listar() {\n $rs = $this->model->listar();\n\n echo $this->toJson($rs);\n }", "public function index()\n {\n return BookResource::collection(Book::orderby('id')->get());\n }", "public function doRestList()\n {\n $this->outputHelper( \n 'Records Retrieved Successfully', \n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->orderBy($this->restSort)->limit($this->restLimit)->offset($this->restOffset)->findAll(),\n $this->getModel()->with($this->nestedRelations)->filter($this->restFilter)->count()\n );\n\t}", "public function index()\n {\n $client = Client::paginate();\n return ClientResource::collection($client);\n }", "public function index()\n {\n return TagResource::collection(\n Tag::orderBy('name', 'ASC')->paginate(request('per_page', 10))\n );\n }", "public function _index(){\n\t $this->_list();\n\t}", "public function index()\n\t{\n\t\t$data['lists'] = $this->gallery_mdl->get_all();\n\t\t$this->template->set('title', 'Gallery');\n\t\t$this->template->render('template', 'list', $data);\n\t}", "function drush_restapi_list() {\n\n $resources = restapi_get_resources();\n $last_module = NULL;\n $rows = [\n [dt('Module'), dt('Path'), dt('Class')],\n ];\n\n foreach($resources as $resource) {\n if ($last_module != $resource->getModule()) {\n $module = $last_module = $resource->getModule();\n }\n else {\n $module = '';\n }\n $rows[] = [$module, $resource->getPath(), $resource->getClass()];\n }\n\n drush_print_table($rows, TRUE);\n drush_log(dt('Displaying !count total resources', [\n '!count' => count($resources),\n ]), 'ok');\n\n}", "public function index()\n {\n $this->booklist();\n }", "public function index()\n {\n //\n $accounts = accounts::paginate(15);\n\n //return the collection of employees as a resource\n return accountResource::collection($accounts);\n\n\n }", "public function index()\n {\n $items = Item::all();\n return view('items::list_items',compact('items'));\n }", "public function index()\n {\n // Get houses\n $houses = House::orderBy('created_at', 'desc')->paginate(self::PAGINATE);\n \n // Return collection of houses\n \n return HouseResource::collection($houses);\n }", "public function index()\n {\n $products = Product::paginate(6);\n return ProductResource::collection($products);\n }", "public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }", "public function indexAction() {\n $this->_forward('list');\n }", "public function index()\n {\n $data = Productcategory::paginate(10);\n\t\treturn ProductcategoryResource::Collection($data);\n }", "public function index()\n {\n return SongResource::collection(\\App\\Song::orderBy('created_at', 'desc')->get());\n }", "public function ListView()\n\t{\n\t\t\n\t\t// Requer permissão de acesso\n\t\t$this->RequirePermission(Usuario::$P_ADMIN,\n\t\t\t\t'SecureExample.LoginForm',\n\t\t\t\t'Autentique-se para acessar esta página',\n\t\t\t\t'Você não possui permissão para acessar essa página ou sua sessão expirou');\n\t\t\n\t\t//$usuario = Controller::GetCurrentUser();\n\t\t//$this->Assign('usuario',$usuario);\n\t\t$this->Render();\n\t}", "public function index () {\n permiss ( 'role.list' );\n\n $data = $this->entity\n ->orderBy('created_at', 'desc')->get();\n\n return new ModelResource($data);\n }", "public function showResources()\n {\n $resources = Resource::get();\n return view('resources', compact('resources'));\n }", "public function index()\n {\n //get articless\n $articles = Article::paginate(15);\n\n //Return collection of article has a resource\n return ArticleResource::collection($articles);\n\n }", "public function actionList() {\n header(\"Content-type: application/json\");\n $verb = $_SERVER[\"REQUEST_METHOD\"];\n\n if ($verb === 'GET') {\n echo \"{\\\"data\\\":\" . CJSON::encode(Donneur::model()->findAll()) . \"}\";\n } else if ($verb == 'POST') {\n if (Donneur::model()->exists('id' === $_POST['id'])) {\n $this->actionListUpdate($_POST);\n } else {\n $this->actionListPost();\n }\n } else if ($verb == 'DELETE') {\n $this->actionListDelete();\n }\n }", "public function list()\n {\n return $this->http->request(HttpMethods::GET, $this->endpoint);\n }", "public function indexAction(){\n $data = array(\n 'collection' => $this->model->getCollection(),\n \n ); \t\n return $this->getView($data);\n }", "public function indexAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $entities = $em->getRepository('DiverPriceLisrBundle:Items')->findAll();\n\n return $this->render('DiverPriceLisrBundle:Items:index.html.twig', array(\n 'entities' => $entities,\n ));\n }", "public function actionIndex()\n {\n $dataProvider = new ActiveDataProvider([\n 'query' => Slaves::find(),\n ]);\n\n return $this->render('index', [\n 'dataProvider' => $dataProvider,\n ]);\n }", "public function listAction() {\n\t\t// Recogemos el repositorio\n\t\t$repository = $this->getDoctrine() ->getRepository('AppBundle:Product');\n\t\n\t\t// Recuperamos todos los productos.\n\t\t$products = $repository->findAll();\n\t\t// Pasamos a la plantilla el aray products\n\t\treturn $this->render('product/listActionProduct.html.twig', array( 'products' => $products));\n\t\n\t}", "public function listAction()\n\t {\n\t\t$model = $this->_getModel();\n\t\t$result = $model->getLayouts();\t\n\t\t$page = (int)($this->_request->getParam('page')); \n\t\tif(count($result) > 0)\n\t\t{ \n\t\t\tGlobals::doPaging($result, $page, $this->view);\n\t\t}\n\t\t\t\t\n\t\t$this->view->page = $page;\n\t }", "public function actionList()\n {\n // get model\n $model = new $this->_model('search');\n $model->unsetAttributes();\n\n // set filter\n if (isset($_GET[$this->_model])) {\n $model->attributes = $_GET[$this->_model];\n }\n $model->u_cms_album_id = $_GET['album'];\n\n // search\n $dataProvider = $model->search(Yii::app()->language);\n // sort\n $sort = $dataProvider->getSort();\n // route\n $sort->route = $this->id . '/list';\n\n // pagination parameters\n $pagination = $dataProvider->getPagination();\n $pagination->route = $this->id . '/list';\n $pagination->pageSize = UInterfaceSetting::model()->getSettings($this->id . ':' . $this->module->id, Yii::app()->user->id)->page_size;\n $pagination->itemCount = $dataProvider->totalItemCount;\n\n // datas\n $datas = $dataProvider->getData();\n\n // related datas\n $relatedDatas = $this->_loadRelatedData();\n\n // template\n $template = isset($_REQUEST['partial']) ? 'list/_table' : 'list/main';\n\n $jsonParams = array();\n if (Yii::app()->request->isAjaxRequest) {\n // filters\n $filtersDatas = array();\n if (isset($_GET[$this->_model])) {\n $filtersDatas[$this->_model] = $_GET[$this->_model];\n }\n if (isset($_GET[$sort->sortVar])) {\n $filtersDatas[$sort->sortVar] = $_GET[$sort->sortVar];\n }\n\n $jsonParams = array(\n 'filters' => http_build_query($filtersDatas)\n );\n }\n\n $this->dynamicRender(\n $template,\n array(\n 'dataView' => new $this->crudComponents['listDataView'](\n $datas, $relatedDatas, $model, $sort, $pagination, $this\n )\n ),\n $jsonParams\n );\n }", "public function index()\n {\n return view('listings.index')->with('listings', Listing::all());\n }", "public function get_index()\n\t{\n\t\t$pages = Page::recent_available()->paginate(30);\n\t\t$table = Cello\\Presenter\\Page::table($pages);\n\t\t$data = array(\n\t\t\t'eloquent' => $pages,\n\t\t\t'table' => $table,\n\t\t);\n\n\t\tSite::set('title', __('cello::title.pages.list'));\n\n\t\treturn View::make('cello::api.resources.index', $data);\n\t}", "public function index()\n {\n return ProductResource::collection(Product::latest()->paginate(10));\n }", "public function index()\n {\n $category = GalleryCategory::paginate(15);\n\n // return collection of category as a resource.\n return Resource::collection($category);\n }", "public function index()\n {\n //\n $news = News::latest()->paginate(18);\n\n return NewsResource::collection($news);\n }", "public function indexAction() {\n\t\t$list_info = Zend_Registry::get('list_info');\n if (!Engine_Api::_()->core()->hasSubject('list_listing')) {\n return $this->setNoRender();\n }\n \n $this->view->expiry_setting = Engine_Api::_()->list()->expirySettings();\n\n //GET SUBJECT\n $this->view->list = $list = Engine_Api::_()->core()->getSubject('list_listing');\n\n\t\t//GET CATEGORY TABLE\n\t\t$this->view->tableCategory = Engine_Api::_()->getDbTable('categories', 'list');\n\n //GET CATEGORIES NAME\n\t\t$this->view->category_name = $this->view->subcategory_name = $this->view->subsubcategory_name = '';\n\n\t\tif(!empty($list->category_id)) {\n\t\t\tif($this->view->tableCategory->getCategory($list->category_id))\n\t\t\t$this->view->category_name = $this->view->tableCategory->getCategory($list->category_id)->category_name;\n\n\t\t\tif(!empty($list->subcategory_id)) {\n\t\t\t\tif($this->view->tableCategory->getCategory($list->subcategory_id))\n\t\t\t\t$this->view->subcategory_name = $this->view->tableCategory->getCategory($list->subcategory_id)->category_name;\n\n\t\t\t\tif(!empty($list->subsubcategory_id)) {\n\t\t\t\t\tif($this->view->tableCategory->getCategory($list->subsubcategory_id))\n\t\t\t\t\t$this->view->subsubcategory_name = $this->view->tableCategory->getCategory($list->subsubcategory_id)->category_name;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n //GET LISTING TAGS\n $this->view->listTags = $list->tags()->getTagMaps();\n\n\t\t//GET OTHER DETAILS\n\t\t$this->view->list_description = Zend_Registry::get('list_descriptions');\n $this->view->addHelperPath(APPLICATION_PATH . '/application/modules/Fields/View/Helper', 'Fields_View_Helper');\n $this->view->fieldStructure = Engine_Api::_()->fields()->getFieldsStructurePartial($list);\n\t\tif(empty($list_info)){ return $this->setNoRender(); }\n }", "public function index()\n {\n return $this->service->fetchResources(Author::class, 'authors');\n }", "public function index()\n {\n return view('admin.resources.index');\n }", "public function doRestList() {\n\t\t$this->outputHelper ( 'Collections Retrieved Successfully', $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->orderBy ( $this->restSort )->limit ( $this->restLimit )->offset ( $this->restOffset )->findAll (), $this->getModel ()->with ( $this->nestedRelations )->filter ( $this->restFilter )->count () );\n\t}" ]
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.6830523", "0.6802689", "0.6797", "0.67957735", "0.67871135", "0.6760129", "0.67427456", "0.6730486", "0.67272323", "0.67255723", "0.67255723", "0.67255723", "0.67177945", "0.6707866", "0.6706713", "0.6704375", "0.6664782", "0.6662871", "0.6660302", "0.6659404", "0.6656656", "0.6653517", "0.6647965", "0.6620322", "0.66185474", "0.6618499", "0.6606105", "0.6600617", "0.65996987", "0.6594775", "0.6587389", "0.6585109", "0.6581641", "0.6581017", "0.6577157", "0.65747666", "0.6572513", "0.65721947", "0.6570553", "0.65646994", "0.6563556", "0.6554194", "0.65529937", "0.65460825", "0.65368485", "0.653429", "0.65328294", "0.6526759", "0.6526695", "0.6526284", "0.65191334", "0.65183175", "0.65174305", "0.651703", "0.65141153", "0.6507088", "0.65061647", "0.6504046", "0.64942145", "0.6491893", "0.64883405", "0.6486392", "0.6485077", "0.64846045", "0.6478858", "0.64756656", "0.64726377", "0.6471126", "0.64701074", "0.6467418", "0.6462195", "0.64618355", "0.6459199", "0.6457831", "0.6454631", "0.64533997", "0.6451915", "0.6450861", "0.6449301", "0.64492667", "0.64469045" ]
0.0
-1
Handle the User "created" event.
public function created(User $user) { $user->notify(new UserNotification($user)); $user->tasks()->create([ 'title' => 'Welcome to TODO Website', 'description' => 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.', ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function created(User $user)\n {\n //\n }", "public function created(User $user)\n {\n //\n }", "public function created(User $user)\n {\n //\n }", "public function created(User $user)\n {\n //\n }", "public function created(User $user)\n {\n //\n }", "public function created(User $user)\n {\n //\n }", "public function created(EntryInterface $entry)\n {\n event(new UserWasCreated($entry));\n\n parent::created($entry);\n }", "public function created(User $user)\n {\n // debug('User created');\n // event(new UserWasCreated($user));\n $encoded_id = Hashids::encode($user->id);\n $user->key = $encoded_id;\n $user->save();\n }", "public function created(User $user)\n {\n CreateDefaultShelves::dispatch($user);\n\n $user->notify(new UserWelcome());\n }", "public function onNewUserCreated($name)\n {\n $this->_logger->debug(\"New user: $name\");\n }", "public function created(User $user)\n {\n //\n $his = new history;\n $his->name = \"mr.\".$user->name;\n $his->save();\n }", "public function created(User $user)\n {\n Bouncer::assign('user')->to($user);\n }", "public function created(User $user)\n {\n $this->clearCache($this->key);\n }", "public static function onLocalUserCreated( $user, $autocreated ) {\n global $wgWebhooksNewUser;\n if (!$wgWebhooksNewUser) {\n return;\n }\n\n $email = \"\";\n\t\t$realname = \"\";\n\t\t$ipaddress = \"\";\n\t\ttry { $email = $user->getEmail(); } catch (Exception $e) {}\n\t\ttry { $realname = $user->getRealName(); } catch (Exception $e) {}\n\t\ttry { $ipaddress = $user->getRequest()->getIP(); } catch (Exception $e) {}\n\n self::sendMessage('NewUser', [\n 'user' => (string) $user,\n 'email' => $email,\n 'realname' => $realname,\n 'ip' => $ipaddress,\n 'autocreated' => $autocreated\n ]);\n }", "public function created(User $user)\n {\n $this->updateIndex($user);\n $this->setDefaultNotificationSettings($user);\n }", "public function creating(User $user): void\n {\n \n }", "public static function create_user_handler($event)\n {\n //get the event data.\n $event_data = $event->get_data();\n\n try {\n //user data\n $userid=false;\n if(array_key_exists('relateduserid', $event_data)){\n $userid = $event_data['relateduserid'];\n $event_data['userid'] = $userid;\n }elseif(array_key_exists('userid', $event_data)){\n $userid = $event_data['userid'];\n }\n if ($userid) {\n $exists = usermanager::user_exists($userid);\n if(!$exists){\n $success = usermanager::create_user(0,$userid,\"\",0);\n }\n }\n\n } catch (\\Exception $error) {\n debugging(\"fetching user error for authplugin request failed with error: \" . $error->getMessage(), DEBUG_ALL);\n }\n }", "public function handleOrderCreated(OrderCreatedEvent $event) {\n $order = $event->order;\n $user = $order->user;\n if( null != $user ) {\n $user->notify(new OrderStatusNotification($order, 'created'));\n }\n }", "public function createUser()\n {\n }", "public function post_add_users() {\n\t}", "public function creating(User $user)\n {\n\n }", "public function createUserAction() {\n $this->authService->createUser();\n die();\n }", "public function created(User $user)\n {\n $user->details()->save(new UserDetails());\n }", "public function onCreated(Created $event)\n {\n $buildersRisk = $event->buildersRisk;\n if (!$buildersRisk->user_id) {\n $user = User::where('email', $buildersRisk->email)->first();\n if (!$user) {\n //create User\n $user = User::create([\n 'name' => explode('@', $buildersRisk->email)[0],\n 'email' => $buildersRisk->email,\n ]);\n }\n $user->buildersRisks()->save($buildersRisk);\n }\n \\Mail::to(env('NEW_SUBMISSION_CREATED_EMAIL_RECEIVER'))->send(\n new NewSubmissionCreatedEmail($buildersRisk)\n );\n }", "public function userCreated(User $user)\n {\n $userInformation = new \\App\\UserInformation;\n $userInformation->user_id = $user->id;\n $userInformation->save();\n\n // initialize balance\n $balance = new \\App\\Balance;\n $balance->user_id = $user->id;\n $balance->save();\n }", "public static function user_created(core\\event\\user_created $event)\n {\n\n global $CFG;\n $user_data = user_get_users_by_id(array($event->relateduserid));\n\n // User password should be encrypted. Using Openssl for it.\n // We will use token as the key as it is present on both sites.\n // Open SSL encryption initialization.\n $enc_method = 'AES-128-CTR';\n\n\n $api_handler = api_handler_instance();\n if (isset($CFG->eb_connection_settings)) {\n $sites = unserialize($CFG->eb_connection_settings);\n $synch_conditions = unserialize($CFG->eb_synch_settings);\n\n foreach ($sites as $key => $value) {\n if ($synch_conditions[$value[\"wp_name\"]][\"user_creation\"] && $value['wp_token']) {\n $password = '';\n $enc_iv = '';\n // If new password in not empty\n if (isset($_POST['newpassword']) && $_POST['newpassword']) {\n $enc_key = openssl_digest($value[\"wp_token\"], 'SHA256', true);\n $enc_iv = substr(hash('sha256', $value[\"wp_token\"]), 0, 16);\n // $crypttext = openssl_encrypt($_POST['newpassword'], $enc_method, $enc_key, 0, $enc_iv) . \"::\" . bin2hex($enc_iv);\n $password = openssl_encrypt($_POST['newpassword'], $enc_method, $enc_key, 0, $enc_iv);\n }\n\n $request_data = array(\n 'action' => 'user_creation',\n 'user_id' => $event->relateduserid,\n 'user_name' => $user_data[$event->relateduserid]->username,\n 'first_name' => $user_data[$event->relateduserid]->firstname,\n 'last_name' => $user_data[$event->relateduserid]->lastname,\n 'email' => $user_data[$event->relateduserid]->email,\n 'password' => $password,\n 'enc_iv' => $enc_iv,\n 'secret_key' => $value['wp_token'], // Adding Token for verification in WP from Moodle.\n );\n\n $api_handler->connect_to_wp_with_args($value[\"wp_url\"], $request_data);\n }\n }\n }\n\n }", "public function created(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('created'));\n }", "public function create(CreateUserRequest $request) {\n $user = $request->commit();\n\n //Trigger user edited event\n event(new UserCreated($user));\n\n //Reloads page\n return redirect()->action('Platform\\UserController@edit', $user)->with('alert', [\n 'type' => 'success',\n 'message' => 'User created'\n ]);\n }", "public function create()\n\t{\n\t\tlog::info('inside create method of user-notifications controller');\n\t}", "public function addCreated()\n {\n try {\n $date = new DateTime();\n $this->created_at = $date->format('Y-m-d H:i:s');\n $this->created_by = 0;\n } catch (Exception $e) {\n print_r($e);\n }\n }", "public function newUserAction()\n {\n $user = (new UserModel())->createUser();\n echo (new View('userCreated'))\n ->addData('user', $user)\n ->render();\n }", "public function create()\n {\n $data['id'] = $this->db->order_by('id', 'desc')->get($this->User->table)->row()->id + 1;\n \n $this->Helper->view('user/create', $data);\n }", "public function creating(User $user)\n {\n\n $user->user_creator_id = \\Auth::id();\n //$user->user_updater_id = \\Auth::id();\n }", "public function createVeto(ActiveUserPreCreatedEvent $event): void\n {\n }", "public function onCreatedUser($userId, $notify = null): void\n {\n if (! is_int($userId)) {\n return;\n }\n\n $network = get_current_network_id();\n $blog = get_current_blog_id();\n $database = $this->getPlugin()->database();\n $table = $database->getTableName(Database::CONST_TABLE_SYNC);\n\n $this->prepDatabase(Database::CONST_TABLE_SYNC);\n\n $payload = json_encode([\n 'event' => 'wp_user_created',\n 'user' => $userId\n ], JSON_THROW_ON_ERROR);\n $checksum = hash('sha256', $payload);\n\n // TODO: Optimize this by creating an InsertIgnoreRow() method with a custom query.\n $dupe = $database->selectRow('id', $table, 'WHERE `hashsum` = \"%s\";', [$checksum]);\n\n if (! $dupe) {\n $database->insertRow($table, [\n 'site' => $network,\n 'blog' => $blog,\n 'created' => time(),\n 'payload' => $payload,\n 'hashsum' => hash('sha256', $payload),\n 'locked' => 0,\n ], [\n '%d',\n '%d',\n '%d',\n '%s',\n '%s',\n '%d',\n ]);\n }\n }", "public function createUser();", "public function createUser();", "public function createUser();", "public function createUser();", "public function handleCreateUserEvent(\\RKW\\RkwRegistration\\Domain\\Model\\FrontendUser $frontendUser, \\RKW\\RkwRegistration\\Domain\\Model\\Registration $registration, $signalInformation)\n {\n\n // simply do nothing! Service is actually not needed\n\n }", "public function created(Tags $tag): void\n {\n $user = auth()->user(); \n $tag->author()->associate($user)->save();\n }", "public function getUserCreated()\n {\n return $this->user_created;\n }", "public function getUserCreated()\n {\n return $this->user_created;\n }", "public function onJWTCreated(JWTCreatedEvent $event)\n {\n /** @var $user \\App\\Entity\\User */\n $user = $event->getUser();\n\n // add id to existing event data (roles & username)\n $payload = $event->getData();\n $payload['id'] = $user->getId();\n $payload['fname'] = $user->getFname();\n $payload['lname'] = $user->getLname();\n\n $event->setData($payload);\n }", "public function onCreated()\n {\n parent::onCreated();\n\n }", "public function onCreated()\n {\n parent::onCreated();\n\n }", "public function createAction()\n {\n echo (new View('userCreate'))->render();\n }", "protected static function booted()\n {\n static::created(function ($user) {\n $user->api_token = self::generateUniqueApiToken();\n $user->save();\n });\n }", "public function createUser () {\n syslog( LOG_INFO, 'Create a Lineberty User \\n' );\n\n $url = '/users';\n\n return $this->runRequest($url, 'POST', null);\n }", "public function onJWTCreated(JWTCreatedEvent $event)\n {\n /** @var $user \\AppBundle\\Entity\\User */\n $user = $event->getUser();\n\n // add new data\n $payload['userId'] = $user->getId();\n $payload['username'] = $user->getUsername();\n $payload['firstname'] = $user->getFirstname();\n $payload['lastname'] = $user->getLastname();\n $payload['isAdmin'] = $user->getIsAdmin();\n\n $event->setData($payload);\n }", "public function created(Model $comment)\n {\n $user = $comment->post->owner;\n\n $user->notify(new Notification($comment, 'comment_new_author'));\n }", "public function created(User $user)\n {\n\n // Assign a profile Image\n if($user->sex == 'male'){\n $user->avatar = 'blue.png';\n }\n elseif ($user->sex == 'female') {\n $user->avatar = 'pink.png';\n }\n else{\n $user->avatar = 'gray.png';\n }\n\n // Assign Name\n if($user->lastname !== null){\n $user->name = $user->firstname . ' ' . $user->lastname;\n }else{\n $user->name = $user->firstname;\n }\n\n /*Create Default Settings*/\n $user->settings()->create([]);\n \n\n $user->save();\n }", "public function created(User $user)\n {\n $user->createUserRelationships();\n }", "public static function created($callback)\n {\n self::listenEvent('created', $callback);\n }", "public static function userCreateSuccess(){\n self::$IntelligenceService->addToIntelligenceStack(self::USER_INTELLIGENCE_CREATE_KEY, self::USER_INTELLIGENCE_SUCCESS);\n }", "protected function onCreated()\n {\n return true;\n }", "public function beforeCreate()\n {\n\t\t// Asignar la fecha y hora de creacion del registro\n $this->createdon = time();\n $this->updatedon = time();\n\t\tif ($this->subscribedon == 0) {\n\t\t\t$this->subscribedon = $this->createdon;\n\t\t}\n }", "public function onJWTCreated(JWTCreatedEvent $event)\n {\n $user = $event->getUser();\n $payload = $event->getData();\n $payload['id'] = $user->getId();\n $payload['nickname'] = $user->getNickname();\n $payload['biography'] = $user->getBiography();\n $payload['avatar'] = $user->getAvatar();\n\n $event->setData($payload);\n }", "public function postCreate() {\n\t\t// Check permission\n //\n if (!Sentry::getUser()->hasAccess($this->permission_prefix . '.create')) {\n return App::abort('403');\n }\n\t}", "private static function create()\n {\n getDb()->putUser(1, self::getDefaultAttributes());\n }", "public function store(Request $request)\n {\n\n $this->validator($request->all())->validate();\n\n event(new Registered($user = $this->created($request->all())));\n $userId = $user->id;\n $date = [\n 'user_id' => $userId,\n 'image' =>'profile.jpg',\n 'about_text' =>''\n ];\n $profile = Profile::create($date);\n\n $action_by = Auth::user()->name;\n $action_for = $request->name;\n $action = 'Create user';\n\n Log::create([\n 'action_by' => $action_by,\n 'action_for' => $action_for,\n 'action' => $action,\n ]);\n\n\n Session::flash('message', 'You successfully create a user');\n return redirect()->route('agent.users.index');\n }", "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "public function createUser()\r\n {\r\n // use sign up in AuthController\r\n }", "public function actionCreate()\n {\n /** @var User $user */\n $user = \\Yii::createObject([\n 'class' => User::className(),\n 'scenario' => 'create',\n ]);\n $event = $this->getUserEvent($user);\n\n $this->performAjaxValidation($user);\n\n $this->trigger(self::EVENT_BEFORE_CREATE, $event);\n if ($user->load(\\Yii::$app->request->post()) && $user->create()) {\n \\Yii::$app->getSession()->setFlash('success', \\Yii::t('user', 'User has been created'));\n $this->trigger(self::EVENT_AFTER_CREATE, $event);\n return $this->redirect(['update', 'id' => $user->id]);\n }\n\n return $this->render('create', [\n 'user' => $user,\n ]);\n }", "public function run()\n {\n $this->createDefaultUser();\n }", "public function created(Post $post)\n {\n $post->recordActivity('created');\n }", "public function created(User $user)\n {\n $permissions = require resource_path('roles/defaults.php');\n\n $user->allow($permissions[get_class($user)]);\n $this->userService->attachAbility($user);\n }", "protected static function boot()\n {\n parent::boot();\n\n static::created(function ($model) {\n Event::dispatch(new UserCreated($model));\n });\n }", "public function created(User $user)\n {\n Userprofile::create([\n 'users_id' => $user->id,\n 'address' => 'Your Address',\n 'phone_number' => 'Your Number',\n 'city' => 'Your City',\n 'country' => 'Your Country',\n 'body' => 'Something About Yourself',\n 'user_img' => 'Your image here'\n ]);\n }", "public function onJWTCreated(JWTCreatedEvent $event): void\n {\n /** @phpstan-var User $user */\n $user = $event->getUser();\n $payload = $event->getData();\n $payload['hash'] = $user->getHash();\n $event->setData($payload);\n }", "public function created(User $user)\n {\n Wallet::registerWallets($user);\n $user->sendVerificationEmail();\n\n clearCacheByArray($this->getCacheKeys($user));\n clearCacheByTags($this->getCacheTags($user));\n }", "public function created(User $user): void\n {\n if ($user->id === User::first()->id) {\n $user->assignRole('Admin');\n }\n\n Cache::forget('users');\n }", "public function init(){\n $this->on(SELF::EVENT_NEW_USER,[$this,'SendMailToAdmin']);\n\t\t$this->created_at = time();\n\t}", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }", "public function create(User $user)\n {\n //\n }" ]
[ "0.71114063", "0.7053863", "0.7053863", "0.7053863", "0.7053863", "0.7053863", "0.70379865", "0.69292283", "0.68280476", "0.68156356", "0.65578395", "0.6526682", "0.6525239", "0.65015274", "0.647184", "0.64457935", "0.6423179", "0.6414432", "0.63578606", "0.6339496", "0.63310677", "0.6318326", "0.63099754", "0.63038385", "0.62837946", "0.6251769", "0.6250629", "0.6249307", "0.6222149", "0.61833274", "0.617832", "0.6172911", "0.61724955", "0.6169602", "0.6153182", "0.61377776", "0.61377776", "0.61377776", "0.61377776", "0.6132151", "0.6110628", "0.6100655", "0.6100655", "0.6091735", "0.608146", "0.608146", "0.6071634", "0.6070534", "0.6062013", "0.6058225", "0.6052667", "0.6050195", "0.60467386", "0.6033872", "0.6019837", "0.60077524", "0.59973526", "0.5977416", "0.59649354", "0.59641886", "0.59633327", "0.59613466", "0.59613466", "0.59608793", "0.5948777", "0.5948665", "0.5937815", "0.59216946", "0.5910074", "0.5909454", "0.59013766", "0.5897712", "0.5895811", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359", "0.5891359" ]
0.59601367
64
Handle the User "updated" event.
public function updated(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated(EntryInterface $entry)\n {\n event(new UserWasUpdated($entry));\n\n parent::updated($entry);\n }", "public function user_updated( $ui ) {\n\n //fish out all the needed params\n $dirty_phone_number = $ui->getAttribute('phone_number');\n $full_country_code = (string)$ui->getAttribute('phone_country_code');\n $email_addr = $ui->getUserEmail();\n\n //and request the update\n self::updateUserAuthy( $ui, $email_addr, $dirty_phone_number, $full_country_code );\n }", "public function handle(UserUpdated $event)\n {\n $this->amqpService->publish($event);\n }", "public function testUpdateUser()\n {\n }", "public static function user_updated(core\\event\\user_updated $event)\n {\n global $CFG;\n $user_data = user_get_users_by_id(array($event->relateduserid));\n \n // User password should be encrypted. Using Openssl for it.\n // We will use token as the key as it is present on both sites.\n // Open SSL encryption initialization.\n $enc_method = 'AES-128-CTR';\n\n $api_handler = api_handler_instance();\n if (isset($CFG->eb_connection_settings)) {\n $sites = unserialize($CFG->eb_connection_settings);\n $synch_conditions = unserialize($CFG->eb_synch_settings);\n\n foreach ($sites as $key => $value) {\n if (isset($synch_conditions[$value[\"wp_name\"]][\"user_updation\"]) && $synch_conditions[$value[\"wp_name\"]][\"user_updation\"] && $value['wp_token']) {\n $password = '';\n $enc_iv = '';\n\n // If new password in not empty\n if (isset($_POST['newpassword']) && $_POST['newpassword']) {\n\n $enc_key = openssl_digest($value[\"wp_token\"], 'SHA256', true);\n $enc_iv = substr(hash('sha256', $value[\"wp_token\"]), 0, 16);\n\n // $crypttext = openssl_encrypt($_POST['newpassword'], $enc_method, $enc_key, 0, $enc_iv) . \"::\" . bin2hex($enc_iv);\n $password = openssl_encrypt($_POST['newpassword'], $enc_method, $enc_key, 0, $enc_iv);\n\n }\n\n\n $request_data = array(\n 'action' => 'user_updated',\n 'user_id' => $event->relateduserid,\n // \"user_name\" => $user_data[$event->relateduserid]->username,\n 'first_name' => $user_data[$event->relateduserid]->firstname,\n 'last_name' => $user_data[$event->relateduserid]->lastname,\n 'email' => $user_data[$event->relateduserid]->email,\n 'country' => $user_data[$event->relateduserid]->country,\n 'city' => $user_data[$event->relateduserid]->city,\n 'phone' => $user_data[$event->relateduserid]->phone1,\n 'password' => $password,\n 'enc_iv' => $enc_iv,\n 'secret_key' => $value['wp_token'], // Adding Token for verification in WP from Moodle.\n );\n\n $api_handler->connect_to_wp_with_args($value[\"wp_url\"], $request_data);\n }\n }\n }\n }", "public function updated(User $user)\n {\n debug('User updated');\n }", "public function getUserUpdated()\n {\n return $this->user_updated;\n }", "public function getUserUpdated()\n {\n return $this->user_updated;\n }", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "public function updatedUsuario()\n {\n // Notificamos al otro componente el cambio\n $this->emit('cambioUsuario', $this->usuario);\n }", "function updateUser()\r\n {\r\n return $this->UD->user_update($_GET['uid']);\r\n }", "public function updated(User $user)\n {\n // dd('sdsd');\n }", "public function updating(User $user)\n {\n //\n }", "public function update($user)\n {\n }", "public function updateUser()\n {\t\t\n\t\t$user = $this->checkToken();\n\t\tif ($user) {\t\n\t\t\t$userModel = UserModel::find($user->id);\n\t\t\t$data = filter_input_array(INPUT_POST, FILTER_SANITIZE_STRING);\n\t\t\t$userModel->fill($data);\n\t\t\t$userModel->save();\n\t\t\treturn $this->sendResponse('Your details have been successfully updated');\n\t\t}\n\t\treturn $this->sendResponse('You are not authorised to update this account');\n }", "public function markUserAsUpdated(): bool\n {\n return $this->fill([$this->UPDATECOLUMN, Chronos::date()->stamp()])\n ->save();\n }", "public function update()\n {\n $userId = Helper::getIdFromUrl('user');\n\n // Save post data in $user\n $user = $_POST;\n \n // Save record to database\n UserModel::load()->update($user, $userId);\n\n View::redirect('user/' . $userId);\n }", "public function updating(User $user)\n{\n $userBeforeUpdated = $this->userRepository->find($user->id);\n\n $this->userService->trackUserActivity(Auth::id(),User::class, config('constants.TRACK_USER_FIELDS'),\n $userBeforeUpdated, $user);\n}", "public function post_edit() {\n //try to edit the user\n if (AuxUser::editUser()) {\n //if the edit process worked, redirect to the profile page\n echo '<script>alert(\"User data edited\");</script>';\n Response::redirect('/profile');\n } else {\n //if not, print the error message\n echo '<script>alert(\"No data was updated, Please confirm that you change at least one field\");</script>';\n Response::redirect('/user/edit', 'refresh');\n }\n }", "function _update ($params = array()) {\n\t\tif (!$this->STATS_ENABLED) {\n\t\t\treturn false;\n\t\t}\n\t\treturn $this->_update_user_stats ($params[\"user_id\"], (array)$params[\"user_info\"]);\n\t}", "public function onUpdateField()\n {\n //TODO Validate input\n\n $post = post();\n\n $flags = FieldManager::makeFlags(\n in_array('enabled', $post['flags']),\n in_array('registerable', $post['flags']),\n in_array('editable', $post['flags']),\n in_array('encrypt', $post['flags'])\n );\n\n $validation = $this->makeValidationArray($post);\n\n $data = $this->makeDataArray($post);\n\n $feedback = FieldManager::updateField(\n $post['name'],\n $post['code'],\n $post['description'],\n $post['type'],\n $validation,\n $flags,\n $data\n );\n\n FieldFeedback::with($feedback, true)->flash();\n\n return Redirect::to(Backend::url('clake/userextended/fields/manage'));\n }", "protected function getUserInputForUpdate() {}", "public function actionUpdate()\n\t{\n\t if (!Yii::app()->user->checkAccess('admin')){\n\t\t\treturn $this->actionView();\n\t }\n\t\t$this->model = DrcUser::loadModel();\n\t\tif($this->model===null)\n\t\t\tthrow new CHttpException(404,'The requested user does not exist.');\n\t\t$this->renderView(array(\n\t\t\t'contentView' => '../drcUser/_edit',\n\t\t\t'contentTitle' => 'Update User Data',\n\t\t\t'createNew'=>false,\n\t\t\t'titleNavRight' => '<a href=\"' . $this->createUrl('base/user/create') . '\"><i class=\"icon-plus\"></i> Add User </a>',\n\t\t\t'action'=>Yii::app()->createUrl(\"user/save\", array('username'=>$this->model->username)),\n\t\t));\n\t}", "public function postUserupdate(){\n \n $uid = Input::get('user_id');\n $user = User::find($uid);\n if($user != ''){\n $user->email = Input::get('useremail');\n $user->fullname = Input::get('fullname');\n $user->category = Input::get('category');\n $user->language = Input::get('language');\n $user->enable = Input::get('enable');\n $user->save();\n return Redirect::to('admin/edituser/'.$uid)\n ->with('message', 'User data updated!');\n }else{\n return Redirect::to('admin/edituser/'.$uid)\n ->with('message', 'No such user!');\n }\n\n }", "public function updateUser($data) {\n\t\t\n\t}", "public function account_update_info()\n\t{\n\t\t$data = $this->input->post();\n\t\tif ($this->ion_auth->update($this->mUser->id, $data))\n\t\t{\n\t\t\t$messages = $this->ion_auth->messages();\n\t\t\t$this->system_message->set_success($messages);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$errors = $this->ion_auth->errors();\n\t\t\t$this->system_message->set_error($errors);\n\t\t}\n\n\t\tredirect('admin/panel/account');\n\t}", "function updateUser() {\n\t\t$rating = $this -> getTaskRating();\n\t\t$sql = \"Update Users set finishedBasic=1, userRating=userRating+\" . $rating . \" where UID= (Select t.UID from Task t WHERE t.TaskId=\" . $this -> data[0]['TaskId'] . \")\";\n\t\t$stmt = $this -> DB -> prepare($sql);\n\t\tif ($stmt -> execute()) {\n\t\t\t$this -> checkforLast();\n\t\t} else {\n\t\t\tinclude_once \"Email.php\";\n\t\t\tnew Email('failed', 'to update user with TaskId=' . $this -> data[0]['TaskId'], $this -> id);\n\t\t}\n\t}", "function eventUpdatePassword(){\r\n\t\t$userid = util::getData(\"id\");\r\n\t\t$password1 = util::getData(\"password1\");\r\n\t\t$password2 = util::getData(\"password2\");\r\n\r\n\t\tif(!$this->canUpdateUser($userid))\r\n\t\t\treturn $this->setEventResult(false, \"You cannot update this account\");\r\n\r\n\t\t$result = dkpAccountUtil::SetOfficerAccountPassword($this->guild->id, $userid, $password1, $password2);\r\n\r\n\t\tif($result != dkpAccountUtil::UPDATE_OK)\r\n\t\t\t$this->setEventResult(false, dkpAccountUtil::GetErrorString($result));\r\n\t\telse\r\n\t\t\t$this->setEventResult(true,\"Password Changed!\");\r\n\r\n\t}", "public function update(User $user): void\n {\n }", "public function update($user_id)\n\t{\n\t\t//\n\t}", "public function update()\n { if (is_null($this->id))\n trigger_error(\"User::update(): Attempt to update a User object that does not have its ID property set.\", E_USER_ERROR);\n \n // Update the User\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE users SET user_name=:user_name, user_password_hash=:user_password_hash, user_email=:user_email, orcid=:orcid, orcid_code=:orcid_code, orcid_access_token=:orcid_access_token WHERE user_id = :id\";\n $st = $conn->prepare($sql);\n $st->bindValue(\":user_name\", $this->userName, PDO::PARAM_STR);\n $st->bindValue(\":user_password_hash\", $this->userPasswordHash, PDO::PARAM_STR);\n\t$st->bindValue(\":user_email\", $this->userEmail, PDO::PARAM_STR);\n $st->bindValue(\":orcid\", $this->orcid, PDO::PARAM_STR);\n $st->bindValue(\":orcid_code\", $this->orcidCode, PDO::PARAM_STR);\n $st->bindValue(\":orcid_access_token\", $this->orcidAccessToken, PDO::PARAM_STR);\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "public function updateUser(GenericEvent $event): void\n {\n /** @var User $user */\n $user = $event->getSubject();\n // ...\n }", "public function testUpdateUserGetsHandled()\n {\n $handler = new UpdateUserHandler(\n new EncoderFactory([User::class => new PlaintextPasswordEncoder()]),\n $this->userRepositoryCollection\n );\n\n $user = $this->userRepository->findByUsername('wouter');\n $originalUser = clone $user;\n\n $baseUserTransferObject = UserDataTransferObject::fromUser($user);\n $baseUserTransferObject->displayName = 'test';\n $baseUserTransferObject->plainPassword = 'randomPassword';\n $baseUserTransferObject->email = '[email protected]';\n\n $handler->handle($baseUserTransferObject);\n\n $this->assertNotEquals(\n 'test',\n $this->userRepository->findByUsername('wouter')->getUsername()\n );\n $this->assertEquals(\n 'test',\n $this->userRepository->findByUsername('wouter')->getDisplayName()\n );\n $this->assertEquals(\n 'randomPassword{' . $this->userRepository->findByUsername('wouter')->getSalt() . '}',\n $this->userRepository->findByUsername('wouter')->getPassword()\n );\n $this->assertNotEquals(\n $originalUser->getDisplayName(),\n $this->userRepository->findByUsername('wouter')->getDisplayName()\n );\n $this->assertNotEquals(\n $originalUser->getPassword(),\n $this->userRepository->findByUsername('wouter')->getPassword()\n );\n }", "public function sendUserUpdateNotification(): void\n {\n $this->notify(new VerifyAccountNotification());\n }", "public function update_info()\n\t{\n\t\t$this->load->model('admin_user_model', 'admin_users');\n\t\t$updated = $this->admin_users->update_info($this->mUser->id, $this->input->post());\n\n\t\tif ($updated)\n\t\t{\n\t\t\tset_alert('success', 'Successfully updated account info.');\n\t\t\t$this->mUser->full_name = $this->input->post('full_name');\n\t\t\t$this->session->set_userdata('admin_user', $this->mUser);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tset_alert('danger', 'Failed to update info.');\n\t\t}\n\n\t\tredirect('admin/account');\n\t}", "public function update(){\n\t\t\t$record = $this->modelGetrenter_user();\n\t\t\tinclude \"Views/AccountUpdateView.php\";\n\t\t}", "function feuserloginsystem_updateUserStatisticEntry() {\r\n\r\n # Get existing statistic information for the current user and session.\r\n $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(\r\n\t\t\t'uid,feuserid,sessionstart,lastpageview,pagecounter,pagetracking',\r\n\t\t\t'tx_feuserloginsystem_userstatistics',\r\n\t\t\tsprintf('feuserid=\\'%s\\'',addslashes(intval($this->fe_user->user[\"uid\"]))),\r\n\t\t\t'',\r\n\t\t\t'sessionstart DESC',\r\n\t\t\t'1'\r\n \t);\r\n \t$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);\r\n\r\n \t# Existing statistic information could be found.\r\n \tif(is_array($row)) {\r\n\r\n $timeStamp = time();\r\n\r\n # Unserialize page tracking information.\r\n $pagetrackingArray = unserialize($row['pagetracking']);\r\n # Add new page tracking information to the already existing page tracking information.\r\n $pagetrackingArray[] = array('time' => $timeStamp, 'pageID' => intval($this->id));\r\n\r\n\t\t\t#Update commom information for statistics.\r\n\t\t $insertDataArray = array();\r\n\t\t $insertDataArray['lastpageview'] = $timeStamp;\r\n\t\t $insertDataArray['pagecounter'] = intval($row['pagecounter'] + 1);\r\n\t\t $insertDataArray['pagetracking'] = serialize($pagetrackingArray);\r\n\r\n\t\t # Update statistic information in the database.\r\n $GLOBALS['TYPO3_DB']->exec_UPDATEquery(\r\n 'tx_feuserloginsystem_userstatistics',\r\n sprintf('uid=\\'%s\\'',addslashes(intval($row['uid']))),\r\n $insertDataArray\r\n );\r\n\r\n }\r\n\r\n }", "function update ( $post ) {\n if ( !isset($post['id']) || !User::exists($post['id']) ) {\n \t$_SESSION['fail'] = \"You must select a user\";\n \theader( 'Location: index.php?action=index');\n \texit;\n }\n \n // get the existing user\n $user = User::find( 'first', $post['id']);\n \n // update the values\n $user->first_name = $post['first_name'];\n $user->last_name = $post['last_name'];\n $user->email = $post['email'];\n \n // if the password has been set\n if ( !empty($post['password'])) {\n \t$user->password = $post['password'];\n \t$user->confirm_password = $post['confirm_password'];\n }\n \n \n $user->role = $post['role'];\n \n //save the user\n $user->save(false);\n \n // check if save method\n if ($user->is_invalid()) {\n \t// set the massage\n \t$_SESSION['fail'][] = $user->error->full_messagr();\n \t$_SESSION['fail'][] = 'The user could not be updated.';\n \t\n \t// redirect\n \theader( 'Location: index.php?action=edit&id=' . $user->id);\n \texit;\n }\n \n // refresh session (when login user and updated user are same user)\n if ($user->id == $_SESSION['id']) {\n \t$_SESSION['role'] = $user->role;\n \t$_SESSION['email'] = $user->email;\n }\n \n // set the success message and redirect\n $_SESSION['success'] = 'User was updated successfully.';\n header('Location: index.php?action=index');\n }", "public function updated(User $user)\n {\n $this->clearCache($this->key);\n }", "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n } else if ($model->load(Yii::$app->request->post()) && $model->save()) {\n Yii::$app->session->setFlash(\"success\", Yii::t('modules/user', \"Changes has been saved.\"));\n $this->refresh();\n } else {\n return $this->render('update', ['model' => $model,]);\n }\n }", "public function updatePoinsUserAction()\n {\n \t$this->pointServices->updatePointUser($this->getUser());\n \t\n \treturn new Response(\"OK\");\n }", "public function actionUpdate()\n {\n $model = $this->loadModel();\n\n if (isset($_POST['User']))\n {\n $model->attributes = $_POST['User'];\n\n if ($model->save())\n {\n Yii::app()->user->setFlash(YFlashMessages::NOTICE_MESSAGE, Yii::t('user', 'Данные обновлены!'));\n\n $this->redirect(array('view', 'id' => $model->id));\n }\n }\n\n $this->render('update', array(\n 'model' => $model,\n ));\n }", "public function update(User $user, SystemUnit $systemUnit)\n {\n //\n }", "public function userupdatesuccessAction()\n {\n }", "function profileUpdated($user_id, $old_user_data) {\n \tif(isSet($_POST)) {\n \t\t$user_data = get_userdata($user_id);\n\t\t\t$first_name = $user_data->first_name;\n\t\t\t$last_name = $user_data->last_name;\n\t\t\t$email = $user_data->user_email;\n\t\t\tif(!empty($email) && (!empty($first_name) || !empty($last_name))) {\n\t\t\t\t$courses = $this->subscriptions->getApproved();\n\n\t\t\t\t//Send out update info to all the subscribed courses - teacher blog database update.\n\t\t\t\tforeach($courses as $course) {\n\t\t\t\t\t$studentRequest = new LePressRequest(2, 'profileUpdated');\n\t\t\t\t\t$studentRequest->addParams(array('first_name' => $first_name, 'last_name' => $last_name, 'new_email' => $email, 'old_email' => $old_user_data->user_email, 'accept-key' => $course->accept_key));\n\t\t\t\t\t$studentRequest->doPost($course->course_url, false); //Do request without blocking\n\t\t\t\t\t//Keeping fingers crossed that request is successful\n\t\t\t\t}\n\t\t\t}\n\t\t}\n }", "protected function onUpdated()\n {\n return true;\n }", "function updateModified() {\n\n\t\t\tif (!$this->requestAction('admins/checkAdminLoggedIn')) {\n\t\t\t\t// Set the modified date for the editation and leave registration number unchanged\n\t\t\t\t$this->Session->write('Registration.Registration.modified', date('Y-m-d H:i:s'));\n\t\t\t}\n\t}", "public function doUpdate()\n {\n // Update user attached to person\n $user = User::find($this->user_id);\n $user->email = Input::get('email');\n $user->save();\n\n // perform actual password reset\n $user->resetPassword();\n\n // Update person\n $this->first = Input::get('first');\n $this->middle = Input::get('middle');\n $this->last = Input::get('last');\n\n return $this->save();\n }", "public function update(User $model);", "public function update(UpdateRequest $request) {\n\t\tif ($user->id != (\\Auth::user()->id))\n\t\t\treturn $this->forbiddenResponse();\n\n\t\t$user = $request->candidate();\n\t\tif ($user->update($request->data()))\n\t\t\treturn $this->innerRedirect('show', $user);\n\n\t\treturn $this->backRedirect('Failed to update user');\n\t}", "public function testUserUpdate()\n {\n $this->browse(function (Browser $browser) {\n $update_button = self::$locator . ' td .update_button';\n\n self::$username = 'A0Tester' . uniqid();\n $browser->visit('/')\n ->click($update_button)\n ->type('username', self::$username)\n ->type('first_name', 'aaaab')\n ->type('last_name', 'aaaab')\n ->click('button[type=\"submit\"]')\n\n ->waitForText('User data successfully updated!')\n ->assertSee('User data successfully updated!')\n ->assertValue('input[name=\"username\"]', self::$username)\n ->assertValue('input[name=\"first_name\"]', 'aaaab')\n ->assertValue('input[name=\"last_name\"]', 'aaaab');\n });\n }", "public function account_updated(){\n $this->log();\n http_response_code(200);\n ob_end_flush();\n }", "public function updating(User $user)\n {\n\n $user->user_updater_id = \\Auth::id();\n }", "public function update($user, $ident, DatabaseDataHandler $data);", "function eventUpdateAccount(){\r\n\t\t$userid = util::getData(\"id\");\r\n\t\t$selectedPermissions = util::getData(\"customPermissions\");\r\n\t\t$selectedTables = util::getData(\"selectedTables\");\r\n\t\t$tableAccess = util::getData(\"tableAccess\");\r\n\t\t$accountType = util::getData(\"accountType\");\r\n\r\n\t\t//make sure we can modify this account\r\n\t\tif(!$this->canUpdateUser($userid))\r\n\t\t\treturn $this->setEventResult(false, \"You cannot update this account\");\r\n\r\n\t\t$result = dkpAccountUtil::UpdateSecondaryAccount($this->guild->id, $userid, $selectedPermissions, $selectedTables, $tableAccess, $accountType);\r\n\r\n\t\tif($result != dkpAccountUtil::UPDATE_OK)\r\n\t\t\t$this->setEventResult(false, dkpAccountUtil::GetErrorString($result));\r\n\t\telse\r\n\t\t\t$this->setEventResult(true,\"Account Updated!\");\r\n\t}", "function user_update($adminAction = false)\n\t{\n\t\tif(session_get('username')) //Ensure that this action cannot be done while not logged on\n\t\t{\n\t\t\t$uid = ($adminAction) ? $adminAction : $this->user_getid();\n\t\t\t$do_update = $this->user_check_update_input($uid); \n\t\t\tif($do_update)\n\t\t\t{\n\t\t\t\t$ins = $_POST;\n\t\t\t\tarray_pop($ins); //We don't need the last post value doUpdateUser...\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Get the existing user values, then determine any incoming values that are different\n\t\t\t\t * than existing values\n\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t$existingStruct = $this->DB->database_select('users', '*', array('uid' => $uid), 1);\n\t\t\t\t$diff = array_diff($ins, $existingStruct); //Only these values are to be updated\n\t\t\t\t\n\t\t\t\tif(isset($diff['password']))\n\t\t\t\t{\n\t\t\t\t\t$diff['salt'] = $this->generateSalt();\n\t\t\t\t\t$diff['password'] = md5(sha1(md5(sha1($diff['password'] . $diff['salt']))));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(isset($_POST['email_hidden'])) //Did the user want to hide their email?\n\t\t\t\t{\n\t\t\t\t\t$diff['email_hidden'] = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$diff['email_hidden'] = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//There needs to be values that have been modified...\n\t\t\t\t\n\t\t\t\tif(count($diff) > 0 || !empty($_FILES['profile_picture']['name'])) \n\t\t\t\t{\n\t\t\t\t\tif(!empty($_FILES['profile_picture']['name']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$name = upload_image();\n\t\t\t\t\t\t$diff['profile_image'] = $name;\n\t\t\t\t\t}\n\t\t\t\t\tif($this->DB->database_update('users', $diff, array('uid' => $uid)))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public static function updated($callback)\n {\n self::listenEvent('updated', $callback);\n }", "function updateUser()\n{\n return 'Updating user';\n}", "private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function updateUser( &$user )\n {\n return true;\n }", "public function updating()\n {\n # code...\n }", "protected function update() {}", "function profile_update($user_id = null) {\n\t\t\tglobal $wpdb, $Db, $Subscriber;\n\t\t\t\n\t\t\tif (!empty($user_id)) {\t\t\t\n\t\t\t\tif ($newuserdata = $this -> userdata($user_id)) {\n\t\t\t\t\t$Db -> model = $Subscriber -> model;\n\t\t\t\t\t\n\t\t\t\t\tif ($subscriber = $Db -> find(array('user_id' => $user_id))) {\n\t\t\t\t\t\t$Db -> model = $Subscriber -> model;\n\t\t\t\t\t\t$Db -> save_field('email', $newuserdata -> user_email, array('id' => $subscriber -> id));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}", "public function onUpdate();", "public function onUpdate();", "public function onUpdate();", "public function update(User $user, MainModel $mainModel)\n {\n //\n }", "function updateUser(){\n\t\t\tif($this->rest->getRequestMethod() != \"PUT\"){\n\t\t\t\t$this->rest->response('',406);\n\t\t\t\texit;\n\t\t\t}\n\t\t\t//Validate the user\n\t\t\t$validUser = $this->validateUser(\"admin\", \"basic\");\n\t\t\tif ($validUser) {\n\t\t\t\tif (isset($_POST['user_name']) && isset($_POST['password']) && isset($_POST['_id'])){\n\t\t\t\t\t$user_id = $_POST['_id'];\n\t\t\t\t\t$array['user_name'] = $_POST['user_name'];\n\t\t\t\t\t$array['password'] = $_POST['password'];\n\t\t\t\t\t$result = $this->model->setUser($array, \"_id='\".$user_id.\"'\");\n\t\t\t\t\tif($result) {\n\t\t\t\t\t\t$response_array['status']='success';\n\t\t\t\t\t\t$response_array['message']='One record updated.';\n\t\t\t\t\t\t$update = $this->model->getUser('*',\"_id = \".\"'\".$user_id.\"'\");\n\t\t\t\t\t\t$response_array['data']=$update;\n\t\t\t\t\t\t$this->rest->response($response_array, 200);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$response_array['status']='fail';\n\t\t\t\t\t\t$response_array['message']='no record updated';\n\t\t\t\t\t\t$response_array['data']='';\n\t\t\t\t\t\t$this->rest->response($response_array, 304);\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t$this->rest->response('No parameters given',204);\t// If no records \"No Content\" status\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\t$this->rest->response('Unauthorized Access ',401);\t\n\t\t\t}\n\t\t\t\n\n\t\t}", "public function postEdit()\n {\n // If we are not authentified, redirect to the login page.\n if(Auth::guest()) return Redirect::action('frontend\\UserController@getLogin');\n\n $loggedUser = Auth::user();\n\n $user = API::put('api/v1/user/' . $loggedUser->id, Input::all());\n\n // If the API throws a ValidationException $user will be a JSON string with our errors.\n if(is_string($user)) {\n $errors = json_decode($user, true);\n return Redirect::action('frontend\\UserController@getIndex')\n ->withErrors($errors);\n } else {\n return Redirect::action('frontend\\UserController@getIndex')\n ->with('success', 'Profile edited!');\n }\n }", "private function updateUser () {\n $sql = \"UPDATE users SET avatar = :avatar,\n biography = :biography,\n birthdate = :birthdate,\n email = :email,\n nickname = :nickname,\n location = :location,\n password = :password,\n activated = :activated,\n phone = :phone,\n username = :username,\n website = :website WHERE id_user = :id_user\";\n $query = $this->bdd->prepare($sql);\n $query->bindParam(':avatar', $this->avatar);\n $query->bindParam(':biography', $this->biography);\n $query->bindParam(':birthdate', $this->birthdate);\n $query->bindParam(':email', $this->email);\n $query->bindParam(':nickname', $this->nickname);\n $query->bindParam(':location', $this->location);\n $query->bindParam(':password', $this->password);\n $query->bindParam(':phone', $this->phone);\n $query->bindParam(':username', $this->username);\n $query->bindParam(':website',$this->website);\n $query->bindParam(':activated',$this->activated);\n $query->bindParam(':id_user',$_SESSION['auth']['id_user']);\n $query->execute();\n }", "public function updateUser(UserInterface $user);", "private function updateUser(){\n\t\t$data['datosUsuario'] = $this->users->get($_REQUEST[\"idusuario\"]);\n\t\t$data['tipoUsuario'] = Seguridad::getTipo(); \n\t\tView::show(\"user/updateForm\", $data);\n\t}", "function updateUser (){\n\t\t$params = array(\n\t\t\t':idusuarios' => $_SESSION['idusuarios'],\n\t\t\t':nombres' => $_POST['nombres'],\n\t\t\t':apellidos' => $_POST['apellidos'],\n\t\t\t':direccion' => $_POST['direccion'],\n\t\t\t':foto' => $_POST['foto'],\n\t\t\t':email' => $_POST['email'],\n\t\t\t':usuario' => $_POST['usuario'],\n\t\t\t':contrasena' => $_POST['contrasena'],\n\t\t);\n\n\t\t/* Preparamos el query apartir del array $params*/\n\t\t$query ='UPDATE usuarios SET\n\t\t\t\t\tnombres = :nombres,\n\t\t\t\t\tapellidos = :apellidos,\n\t\t\t\t\tdireccion = :direccion,\n\t\t\t\t\tfoto = :foto,\n\t\t\t\t\temail = :email,\n\t\t\t\t\tusuario = :usuario,\n\t\t\t\t\tcontrasena = :contrasena \n\t\t\t\t WHERE idusuarios = :idusuarios;\n\t\t\t\t';\n\n\t\t$result = excuteQuery(\"blogs\", \"\", $query, $params);\n\t\tif ($result > 0){\n\t\t\tunset($_SESSION['idusuarios']);\n\t\t\t$_SESSION['idusuarios'] = NULL;\n\t\t\theader('Location: viewUsers.php?result=true');\n\t\t}else{\n\t\t\theader('Location: editUser.php?result=false');\n\t\t}\n\t}", "public function postUpdate()\n {\n $user=User::find(Auth::user()->id);\n\n $this->validate($this->request, [\n 'name' => 'required|max:255',\n ]);\n $user->name = $this->request->input('name');\n if($this->request->input('email') != Auth::user()->email) {\n $this->validate($this->request, [\n 'email' => 'required|email|max:255|unique:users',\n ]);\n $user->email = strtolower($this->request->input('email'));\n }\n if($this->request->input('password') != \"\" ) {\n $this->validate($this->request, [\n 'password' => 'min:6',\n ]);\n $user->password = bcrypt( $this->request->input('password') );\n }\n $user->update();\n Auth::setUser($user);\n return redirect('profile');\n }", "public function updateUserinfo()\n\t{\n\t\t$user_array = Session::all();\n\n \t$userID = Session::get('id');\n\t\t$data = $this->request->all();\n\t\t$data['user'] = Auth::user();\n\t\t\t$rules = array(\n \t\t'full_name' => 'required',\n\t\t\t\t'zip_code' => 'required',\n\t\t\t\t'aniversary_date' => 'required',\n\t\t\t\t'phone_number' => 'required',\n\t\t\t\t'dob' => 'required',\n\t\t\t\t'gender' => 'required',\n\t\t\t\t'location_id' => 'required'\t\t\t\t\n\t\t\t);\n\n\t\t\t$message = array(\n\t\t\t\t'required' => 'The :attribute is required', \n\t\t\t);\n\n\t\t\t$validation = Validator::make($data, $rules, $message);\n\n\t\t\tif($validation->fails())\n\t\t\t{\n\t\t\t\treturn Redirect::to('/users/updateinfo')->withErrors($validation);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n \t$arrResponse=Profile::updateProfileWeb($data, $userID);\n \treturn Redirect::to('/users/myaccount')\n\t\t ->with('flash_notice', '');\n\t\t }\n\t}", "public function setUpdatedUserId($updatedUserId)\n {\n $this->updatedUserId = $updatedUserId;\n }", "public function getUpdatedUserId()\n {\n return $this->updatedUserId;\n }", "public function _get_update_callback()\n {\n }", "function onesignin_client_handle_after_update_notification($account) {\n watchdog('onesignin', 'Updating user %name on request of One Signin server.', array('%name' => $account->name), WATCHDOG_INFO);\n onesignin_client_userdata_synchronize($account->server_uid);\n}", "public function update(User $user, TweetTag $tweetTag)\n {\n //\n }", "public function update()\n {\n //check login\n if(!$this->session->userdata('logged_in'))\n {\n redirect('users/login');\n }\n $this->user_model->update_user();\n\n //set message\n $this->session->set_flashdata('profile_updated', 'Profile updated.');\n //redirect page to profile\n redirect('profile'); \n }", "function jmw_buddypress_profile_update( $user_id, $posted_field_ids, $errors, $old_values, $new_values ) {\n\t\n\tif( current_user_can( 'manage_options' ) ) {\n\t\t// If administrator is making the changes don't email\n\t\treturn;\n\t}\n\n $message_subject = sprintf( '%s: Profile moderation required for %s',\n \tesc_html( get_bloginfo( 'name' ) ),\n \tesc_html( bp_core_get_user_displayname( $user_id ) )\n );\n\n $message = sprintf( 'Member %s has updated their profile. See %s',\n \tesc_html( bp_core_get_user_displayname( $user_id ) ),\n \tesc_url( bp_loggedin_user_domain() )\n );\n\n wp_mail( get_bloginfo( 'admin_email' ), $message_subject, $message );\n }", "public function update()\n {\n \n $user = $_POST;\n $user['password'] = password_hash('Gorilla1!', PASSWORD_DEFAULT);\n $user['updated_by'] = Helper::getUserIdFromSession();\n $user['created'] = date('Y-m-d');\n\n // Save the record to the database\n UserModel::load()->update($user, Helper::getUserIdFromSession());\n\n return view::redirect('/');\n }", "public function update(User $user, Poll $poll)\n {\n //\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "public function updateUser($request)\n {\n $this->name = $request[\"name\"];\n $this->email = trim($request[\"email\"]);\n $this->enabled = $request[\"enabled\"];\n\n if (array_key_exists(\"password\", $request)) {\n $this->password = $this->passwordHash($request[\"password\"]);\n }\n\n if ($request[\"reset-password\"]) {\n $this->password = $this->passwordHash($this->generatePassword(12));\n }\n\n if (Auth::user()->isAdministrator()) {\n $this->access_level = $request[\"access_level\"];\n $this->group_id = $request[\"group_id\"];\n }\n $this->update();\n }", "public function update($id)\n {\n // Get user info\n $objUser = new User;\n $user = User::find($id);\n $objUser->doUpdate($id,$_POST);\n // Redirect to index\n return Redirect::to('/admin/manage_user');\n }" ]
[ "0.72497404", "0.71146023", "0.7027593", "0.6988705", "0.696853", "0.68530256", "0.66838956", "0.66838956", "0.6675846", "0.66201466", "0.66194856", "0.65856844", "0.65149146", "0.65136707", "0.65047795", "0.64640087", "0.6398034", "0.63974947", "0.6382592", "0.6349919", "0.63453907", "0.63446367", "0.6325586", "0.6321836", "0.63143593", "0.63128155", "0.6267887", "0.6260053", "0.6249943", "0.6237756", "0.6232016", "0.62264395", "0.6226024", "0.62081456", "0.62078583", "0.6201226", "0.61846924", "0.61807424", "0.6167086", "0.61560833", "0.6148054", "0.614163", "0.6138989", "0.612976", "0.6117222", "0.61089617", "0.61047876", "0.6100261", "0.6093483", "0.60876954", "0.6086926", "0.60743165", "0.60639167", "0.6060323", "0.60532725", "0.60418063", "0.6041162", "0.60405093", "0.6036408", "0.602621", "0.60238826", "0.60223126", "0.6017634", "0.6015279", "0.6015279", "0.6015279", "0.6014725", "0.601041", "0.6010021", "0.5999078", "0.5996824", "0.5980836", "0.5975555", "0.5971612", "0.59704596", "0.59695965", "0.5965563", "0.59602624", "0.5959057", "0.5956689", "0.59537387", "0.5931794", "0.5929432", "0.59281594", "0.59172237", "0.591643", "0.5914499" ]
0.7288241
10
Handle the User "deleted" event.
public function deleted(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function user_deleted($event) {\n global $DB;\n $userid = $event->relateduserid;\n $token = $DB->get_record('repository_gdrive_tokens', array('userid' => $userid), 'refreshtokenid');\n $this->client->revokeToken($token->refreshtokenid);\n $DB->delete_records('repository_gdrive_tokens', array ('userid' => $userid));\n }", "public function userDeleted();", "protected function _postDelete()\n\t{\n\t\t//register events\n\t\t\\Base\\Event::trigger('user.delete',$this->id);\n\t\t//end events\n\t}", "public static function user_deleted(core\\event\\user_deleted $event)\n {\n global $CFG;\n $request_data = array(\n 'action' => 'user_deletion',\n 'user_id' => $event->relateduserid\n );\n\n $api_handler = api_handler_instance();\n if (isset($CFG->eb_connection_settings)) {\n $sites = unserialize($CFG->eb_connection_settings);\n $synch_conditions = unserialize($CFG->eb_synch_settings);\n\n foreach ($sites as $key => $value) {\n if ($synch_conditions[$value[\"wp_name\"]][\"user_deletion\"] && $value['wp_token']) {\n // Adding Token for verification in WP from Moodle.\n $request_data['secret_key'] = $value['wp_token'];\n\n $api_handler->connect_to_wp_with_args($value[\"wp_url\"], $request_data);\n }\n }\n }\n }", "public static function onUserDelete($event)\n {\n\n Yii::import('application.modules.mail.models.*');\n\n // Delete all message entries\n foreach (MessageEntry::model()->findAllByAttributes(array('user_id' => $event->sender->id)) as $messageEntry) {\n $messageEntry->delete();\n }\n\n // Leaves all my conversations\n foreach (UserMessage::model()->findAllByAttributes(array('created_by' => $event->sender->id)) as $userMessage) {\n $userMessage->leave();\n }\n\n return true;\n }", "public function deleted(User $user)\n {\n debug('User deleted');\n }", "public function post_delete() {\n //try to delete the account\n $status = AuxUser::deleteUser();\n if ($status[0]) {\n //if the delete user process worked, log out\n echo '<script>alert(\"Account Deleted\");</script>';\n Response::redirect('/profile/logOut');\n } else {\n //if not, print the error message\n echo '<script>alert(\"'.$status[1].'\");</script>';\n Response::redirect('/profile');\n }\n }", "protected function handleDoDelete() {\n\t\t\tif ($this->verifyRequest('DELETE') && $this->verifyParams()) {\n\t\t\t\tif ($this->blnAuthenticated) {\n\t\t\t\t\tif ($intEventId = str_replace('.' . $this->strFormat, '', $this->objUrl->getSegment(3))) {\n\t\t\t\t\t\t$objUserEvent = $this->initModel();\n\t\t\t\t\t\tif ($objUserEvent->loadById($intEventId) && $objUserEvent->count()) {\n\t\t\t\t\t\t\tif ($objUserEvent->current()->get('userid') == AppRegistry::get('UserLogin')->getUserId()) {\n\t\t\t\t\t\t\t\tif ($objUserEvent->destroy()) {\n\t\t\t\t\t\t\t\t\tCoreAlert::alert('The event was deleted successfully.');\n\t\t\t\t\t\t\t\t\t$this->blnSuccess = true;\n\t\t\t\t\t\t\t\t\t$this->intStatusCode = 200;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error deleting the event'));\n\t\t\t\t\t\t\t\t\t$this->error(400);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('Invalid event permissions'));\n\t\t\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error loading the event data'));\n\t\t\t\t\t\t\t$this->error(400);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing event ID'));\n\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing or invalid authentication'));\n\t\t\t\t\t$this->error(401);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->error(400);\n\t\t\t}\n\t\t}", "public function userDeleted()\n\t{\n\t\tself::authenticate();\n\n\t\t$userId = FormUtil::getPassedValue('user', null, 'GETPOST');\n\t\tif(!is_string($userId)) {\n\t\t\treturn self::ret(false);\n\t\t}\n\n\t\t$user = $this->entityManager->getRepository('Owncloud_Entity_DeleteUser')->findOneBy(array('uname' => $userId));\n\t\tif(!($user instanceof Owncloud_Entity_DeleteUser)) {\n\t\t\treturn self::ret(false);\n\t\t}\n\t\t$this->entityManager->remove($user);\n\t\t$this->entityManager->flush();\n\n\t\treturn self::ret(true);\n\t}", "public function onDeleteUser(Request $request)\n {\n $this->logger->info(\"\\Entering \" . substr(strrchr(__METHOD__, \"\\\\\"), 1));\n\n // Sets a user equal to this method's getUserFromId method, using the request input\n $user = $this->getUserFromId($request->input('idToDelete'));\n\n // Creates an account business service\n $bs = new AccountBusinessService();\n \n // Calls the remove bs method\n // flag is rows affected\n $flag = $bs->remove($user);\n \n // If flag is 0, returns error page\n if ($flag == 0) {\n $this->logger->info(\"/Exiting \" . substr(strrchr(__METHOD__, \"\\\\\"), 1) . \" to error view. Flag: \" . $flag);\n $data = [\n 'process' => \"Remove User\",\n 'back' => \"getAllUsers\"\n ];\n return view('error')->with($data);\n }\n\n // Returns this method's onGetAllUsers method\n $this->logger->info(\"/Exiting \" . substr(strrchr(__METHOD__, \"\\\\\"), 1) . \" with \" . $flag);\n return $this->onGetAllUsers();\n }", "public static function onUserDelete($event)\n {\n foreach (Like::findAll(array('created_by' => $event->sender->id)) as $like) {\n $like->delete();\n }\n\n return true;\n }", "public function deleted(EntryInterface $entry)\n {\n if (!$entry->isForceDeleting()) {\n event(new UserWasDeleted($entry));\n }\n\n parent::deleted($entry);\n }", "public function deleted_user_action($id) {\r\n $this->db->delete_by_user_id($id);\r\n }", "public function deleted(User $user)\n {\n $admin = auth()->user();\n Log::info('Logged message',['action'=>'User '.$user->name.'with'.$user->id.' was deleted by ' . $admin->name]);\n }", "public function deleted(User $user)\n {\n // delete all files\n }", "public static function deleted($event) {\n\n\t\t$account = $event->getSubject();\n\n\t}", "public function onDelete(): void\n {\n if ($this->globals->getUpdated() !== (int) $_GET['id']) {\n $this->_entity->delete($_GET['id']);\n $this->globals->setUpdated($_GET['id']);\n $this->globals->unsetAlert();\n }\n }", "public function handleDelete()\n {\n $this->dispatch(new DeleteAccountCommand($this->auth->user()));\n\n return Redirect::route('home')->with('delete_account', 'Your account has been successfully deleted!');\n }", "public static function deleted($callback)\n {\n self::listenEvent('deleted', $callback);\n }", "protected function onDeleted()\n {\n return true;\n }", "public function deleted() {\n // TODO Implement this\n }", "public function deleteUser()\n {\n $this->delete();\n }", "function onesignin_client_handle_delete_notification($account) {\n watchdog('onesignin', 'Deleting user %name on request of One Signin server.', array('%name' => $account->name), WATCHDOG_INFO);\n user_delete($account->uid);\n}", "public function callback_delete_user( $user_id ) {\n\t\tif ( ! isset( $this->_users_object_pre_deleted[ $user_id ] ) ) {\n\t\t\t$this->_users_object_pre_deleted[ $user_id ] = get_user_by( 'id', $user_id );\n\t\t}\n\t}", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function delete($event): void;", "private function user_enrolment_deleted($event) {\n global $DB;\n $courseid = $event->courseid;\n $coursecontext = context_course::instance($courseid);\n $userid = $event->relateduserid;\n $gmail = $this->get_google_authenticated_users_gmail($userid);\n $deletecalls = array();\n if ($gmail) {\n $filerecs = $DB->get_records('repository_gdrive_references', array('courseid' => $courseid), '', 'id, reference');\n if ($filerecs) {\n foreach ($filerecs as $filerec) {\n if (has_capability('moodle/course:view', $coursecontext, $userid)) {\n // Manager; do nothing.\n } else {\n // Unenrolled user; delete permission.\n try {\n $permissionid = $this->service->permissions->getIdForEmail($gmail);\n $permission = $this->service->permissions->get($filerec->reference, $permissionid->id);\n if ($permission->role != 'owner') {\n $call = new stdClass();\n $call->fileid = $filerec->reference;\n $call->permissionid = $permissionid->id;\n $deletecalls[] = $call;\n if (count($deletecalls) == 1000) {\n $this->batch_delete_permissions($deletecalls);\n $deletecalls = array();\n }\n }\n } catch (Exception $e) {\n debugging($e);\n }\n }\n }\n }\n }\n\n // Call any remaining batch requests.\n if (count($deletecalls) > 0) {\n $this->batch_delete_permissions($deletecalls);\n }\n }", "public function delete_delete()\n {\n $response = $this->UserM->delete_user(\n $this->delete('id')\n );\n $this->response($response);\n }", "public function delete(User $user, Evento $evento)\n {\n //\n }", "public function onTryDeleteUser(Request $request)\n {\n $this->logger->info(\"\\Entering \" . substr(strrchr(__METHOD__, \"\\\\\"), 1));\n\n // Sets a user equal to this method's getUserFromId method, using the request input\n $user = $this->getUserFromId($request->input('idToDelete'));\n\n // Passes the user to the tryDeleteUser view\n $data = [\n 'userToDelete' => $user\n ];\n $this->logger->info(\"/Exiting \" . substr(strrchr(__METHOD__, \"\\\\\"), 1) . \" to tryDeleteUser view\");\n return view('tryDeleteUser')->with($data);\n }", "public function onAfterDelete();", "function delete ($post) {\n \tif ( !isset($post['id']) || !User::exists($post['id']) ) {\n \t\t$_SESSION['fail'] = \"You must select a user\";\n \t\theader( 'Location: index.php?action=index');\n \t\texit;\n \t}\n \t\n \t// delete the record\n \t$user = User::find( $post['id']);\n \t$user->delete();\n \t\n \t// set our success redirect\n \t$_SESSION['success'] = 'The user was deleted successfully.';\n \theader( 'Location: index.php?action=index');\n \texit;\n }", "public function delete_user($user);", "public function deleted(User $model)\n {\n // If the User is deleted, delete your image\n \\File::delete(base_path($model->img_url));\n return true;\n }", "public function onBeforeDelete();", "function onBeforeDeleteUser($user)\n\t{\n\t\tglobal $mainframe;\n\t}", "protected function handleDelete() : void // kill a profile\n {\n if (!User::$id || !$this->_get['id'])\n {\n trigger_error('AjaxProfile::handleDelete - profileId empty or user not logged in', E_USER_ERROR);\n return;\n }\n\n // only flag as deleted; only custom profiles\n DB::Aowow()->query(\n 'UPDATE ?_profiler_profiles SET cuFlags = cuFlags | ?d WHERE id IN (?a) AND cuFlags & ?d {AND user = ?d}',\n PROFILER_CU_DELETED,\n $this->_get['id'],\n PROFILER_CU_PROFILE,\n User::isInGroup(U_GROUP_ADMIN | U_GROUP_BUREAU) ? DBSIMPLE_SKIP : User::$id\n );\n }", "public function handleDelete($user, $_DELETE) {\n\t\t// User must be verified to perform deletion\n\t\tif (!$this->verifyUser($user)) {\n\t\t\techo json_encode($this->throwUnauthorized());\n\t\t\treturn;\n\t\t}\n\t\tif ($_GET['entryid'] == \"\") { // URL rewrite parameter\n\t\t\t// Batch transaction\n\t\t\tif (isset($_DELETE['time']) && isset($_DELETE['entries'])) {\n\t\t\t\t$result = $this->deleteEntries($user, $_DELETE['entries']);\n\t\t\t\t$result['time'] = $_DELETE['time'];\n\t\t\t\techo json_encode($result);\n\t\t\t}\n\t\t} else {\n\t\t\t// Single entry\n\t\t\tif (isset($_DELETE['time'])) {\n\t\t\t\t$result = $this->deleteEntry($user, $_DELETE[\"entry\"]);\n\t\t\t\t$result['time'] = $_DELETE['time'];\n\t\t\t\techo json_encode($result);\n\t\t\t}\n\t\t}\n\t}", "function delete(){\n $user_id = $this->uri->rsegment('3');\n $this->_del($user_id);\n redirect(admin_url('user'));\n\n }", "public function on_account_delete( $user_id ) {\n\n\t\t// remove user from all the networks.\n\t\t// how about deleting user data from all the networks?\n\t\tmnetwork_remove_user( $user_id );\n\t}", "public function forceDeleted(User $user)\n {\n\n }", "public function deleteUser()\n {\t\t\n\t\t$user = $this->checkToken();\n\t\tif ($user) {\t\n\t\t\t$userModel = UserModel::find($user->id);\n\t\t\t$userModel->destroy();\n\t\t\t$this->expireToken($userModel);\n\t\t\treturn $this->sendResponse('Your account has been deleted');\n\t\t}\n\t\treturn $this->sendResponse('You are not authorised to delete this account');\n }", "public function deleted(User $user)\n {\n $avatar = $user->getOriginal('avatar_path');\n if (Storage::disk('public')->exists($avatar)) {\n Storage::disk('public')->delete($avatar);\n }\n }", "public function sendAccountDeletedEmail(User $user): void;", "public function delete($user)\n {\n\n }", "public function delete() {\n\t\t$query = \"DELETE FROM Users WHERE userId = :id\";\n\t\t$query_params = array(':id' => $this->userData['userId']);\n\t\texecuteSQL($query, $query_params);\n\t}", "public function delete($user){\n }", "public function handleDeleted(Deleted $event): void\n {\n $entity = $event->entity();\n\n $this->scheduleRemovingOldDocuments($entity);\n\n $this->elasticsearchManager->commit();\n }", "public function onDeleteUser($iUser)\n {\n $this->database()->delete(Phpfox::getT('socialconnect_agents'), 'user_id = '.(int)$iUser);\n }", "public function destroy(){\n\t\t$this->hook->subscribe('beforeUserDestroy');\n\n\t\techo 'Lösche den User! </br>';\n\n\t\t//nachdem Methode aufgerufen worden ist\n\t\t$this->hook->subscribe('afterUserDestroy');\n\t\t\n\t}", "function onAfterDeleteUser($user, $succes, $msg)\n\t{\n\t\tglobal $mainframe;\n\n\t \t// only the $user['id'] exists and carries valid information\n\n\t\t// Call a function in the external app to delete the user\n\t\t// ThirdPartyApp::deleteUser($user['id']);\n\t}", "public function deleted(Model $comment)\n {\n $user = $comment->post->owner;\n\n $user->notify(new Notification($comment, 'comment_delete_author'));\n }", "public function delete($user, $ident);", "function deleteUser()\n {\n $validateF = new ValidateFunctions();\n if ($_SESSION['id'] == $_GET['']) {\n logUserOut();\n }\n $id = $validateF->sanitize($_GET['id']);\n $userRp = new UserRepository();;\n $hasUser = $userRp->getOneFromDB($id);\n if ($hasUser != 0) {\n $this->deleteUserImage($id);\n $this->removeUser($id);\n $_SESSION['success'] = ['User deleted successfully'];\n } else {\n $_SESSION['error'] = ['No user found.'];\n }\n header('Location:index.php?action=adminUsers');\n }", "protected function _postDelete() {}", "protected function _postDelete() {}", "public function delete(RegistrationPostDeletedEvent $event): void\n {\n }", "public function _event_before_delete() {\n\t\tstatic::$_delete['roles'] = $this->roles;\n\t}", "protected function afterDelete()\r\n {\r\n }", "function user_delete($user_id) {\n\t\t\n\t\tif(!$this->has_access(__FUNCTION__, __CLASS__, $this->output_data['module'])) {\n\t\t\tset_warning_message('Sory you\\'re not allowed to access this page.');\n\t\t\tredirect('admin');\n\t\t\texit;\n\t\t} elseif($user_id == get_user_id()){\n\t\t\tset_warning_message('Sory you cannot delete your own account.');\n\t\t\tredirect('admin');\n\t\t\texit;\n\t\t} else { \n\t\t\t$this->user_model->delete_user($user_id);\n\t\t\tset_success_message('Successfully delete user');\n\t\t\t$this->show_list();\n\t\t}\n\t}", "function delete()\n {\n if($this->isManager() == TRUE)\n {\n echo(json_encode(array('status'=>'access')));\n }\n else\n {\n $id = $this->input->post('userId');\n $userInfo = array('isDeleted'=> 1,'updatedBy'=>$this->vendorId, 'field' => $id,'updatedDtm'=>date('Y-m-d H:i:s'));\n \n $result = $this->model->deleteUser($id);\n \n if ($result > 0) { echo(json_encode(array('status'=>TRUE, 'id' => $id))); }\n else { echo(json_encode(array('status'=>FALSE, 'id' => $id))); }\n }\n }", "public function doDeleteUser (request $request) {\n\t\t$userInfo = resolve('userInfo');\n\n\t\tif ($userInfo->usr_role != \"AD\") {\n\t\t\treturn redirect('error');\n\t\t}\n\n\t\t$user = User::getUserById($request->user_id);\n\t\t//check user first\n\t\t$check = DB::table('jobs')\n\t\t\t\t\t\t\t ->where('job_owner', $request->user_id)\n\t\t\t\t\t\t\t ->orWhere('job_mooring_master', $request->user_id)\n\t\t\t\t\t\t\t ->orWhere('job_poac1', $request->user_id)\n\t\t\t\t\t\t\t ->orWhere('job_poac2', $request->user_id)\n\t\t\t\t\t\t\t ->count();\n\n\t\tif ($request->tab != '') {\n\t\t\t$tab = $request->tab;\n\t\t} else {\n\t\t\t$tab = '';\n\t\t}\n\n\t\tif ($check == 0) {\n\t\t\tDB::table('users')->where('usr_id', $request->user_id)->delete();\n\t\t\tLog::doAddLog (\"Delete user\", 0, $user->usr_firstname.' '.$user->usr_lastname);\n\t\t\treturn redirect('personnelboard'.$tab)->with('success', \"Successfully delete user.\");\n\t\t} else {\n\t\t\tDB::table('users')->where('usr_id', $request->user_id)->update(array('usr_delete'=>'Yes'));\n\t\t\tLog::doAddLog (\"Delete user\", 0, $user->usr_firstname.' '.$user->usr_lastname);\n\t\t\treturn redirect('personnelboard'.$tab)->with('success', \"Successfully delete user.\");\n\t\t}\n\n\t}", "public function delete(User $user)\n {\n //\n }", "public function delete_a_user()\n {\n $is_successful = $this->user->Delete($_GET['rowID']);\n if ($is_successful) {\n header('Location: http://localhost/MVC/public');\n } else {\n // print error\n echo 'could not redirect';\n }\n }", "public function destroy()\n {\n $userId = Helper::getIdFromUrl('user');\n \n if ((Helper::checkUrlIdAgainstLoginId($userId)) !== 'super-admin') {\n Usermodel::load()->destroy($userId);\n } else { \n View::render('errors/403.view', [\n 'message' => 'You cannot delete yourself!',\n ]);\n }\n }", "public function delete($params) {\n $token = $this->require_authentication();\n $userid = $token->getUser()->getUserId();\n\n // delete user object, redirect to homepage\n try {\n $res = User::delete($this->getDBConn(), $userid);\n } catch (\\PDOException $dbErr) {\n $this->addFlashMessage('Database error on deleting user:<br>'.$dbErr->getMessage(), self::FLASH_LEVEL_SERVER_ERR);\n $this->redirect(\"/\");\n }\n\n // make sure user is logged out after deletion\n session_unset();\n session_destroy();\n session_start();\n\n $this->addFlashMessage(\"Deleted user.\", self::FLASH_LEVEL_INFO);\n\n if ($res) {\n error_log(\"Deleted user \".$userid);\n $this->redirect(\"/\");\n } else {\n $this->error404('/users/delete/' . $userid);\n }\n }", "abstract public static function deleted($callback);", "protected function afterDelete()\n {\n }", "public function onAfterDelete() {\n\t\tif (!$this->owner->ID || self::get_disabled() || self::version_exist($this->owner))\n\t\t\treturn;\n\t\t$this->onAfterDeleteCleaning();\n\t}", "public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }", "public function delete(User $user, InterventionRequest $interventionRequest)\n {\n //\n }", "public function delete()\n\n {\n Customers::find($this->deleteId)->delete();\n session()->flash('message', 'Post Deleted Successfully.');\n\n }", "public function deleteUser()\n {\n\n $this->displayAllEmployees();\n $id = readline(\"Unesite broj ispred zaposlenika kojeg želite izbrisati :\");\n $check = readline(\"Jeste li sigurni? da/ne: \");\n\n if ($check === 'da'){\n $this->employeeStorage->deleteEmployee($id);\n }\n\n }", "public function delete(){\n $this->update(['deleted_by', Auth::user()->id]);\n return parent::delete();\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }", "public function forceDeleted(User $user)\n {\n //\n }" ]
[ "0.79348195", "0.7830097", "0.77968764", "0.77791387", "0.728312", "0.7128756", "0.7099494", "0.7091474", "0.70771843", "0.70479476", "0.6955957", "0.6942774", "0.6865059", "0.6755933", "0.6733839", "0.6731306", "0.6696732", "0.6666684", "0.6658819", "0.65718037", "0.6559636", "0.65549767", "0.65484244", "0.6527427", "0.6517873", "0.6517873", "0.6517873", "0.6487402", "0.64670056", "0.6450665", "0.6438435", "0.64158815", "0.64084214", "0.63972914", "0.6391302", "0.6390811", "0.63696396", "0.6368356", "0.6367033", "0.6363837", "0.63609236", "0.63577616", "0.63414735", "0.6335814", "0.6331537", "0.63306475", "0.6326133", "0.63181967", "0.6315107", "0.6311156", "0.6304633", "0.63030607", "0.62987643", "0.62869", "0.6283699", "0.6273073", "0.6267315", "0.6267171", "0.62645996", "0.6258624", "0.6234961", "0.62282276", "0.622751", "0.6226819", "0.62264097", "0.6210496", "0.62104917", "0.619874", "0.6193742", "0.6190162", "0.6186922", "0.6179077", "0.61754453", "0.61751086", "0.6169794", "0.6169027", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516", "0.6163516" ]
0.7399216
11
Handle the User "restored" event.
public function restored(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function restore(User $user, Event $event)\n {\n //\n }", "public function restore(User $user, Event $event)\n {\n //\n }", "protected function onRestored()\n {\n return true;\n }", "public function restored(Auditable $model)\n {\n Auditor::execute($model->setAuditEvent('restored'));\n\n // Once the model is restored, we need to put everything back\n // as before, in case a legitimate update event is fired\n static::$restoring = false;\n }", "function restore()\n {\n }", "public function restore()\n {\n //\n }", "public function restore(User $user, Evento $evento)\n {\n //\n }", "public function restore()\n {\n }", "public function restoring(User $user)\n {\n //\n }", "public function restore() {}", "public function handle_exit_recovery_mode()\n {\n }", "public function restoring(Auditable $model)\n {\n // When restoring a model, an updated event is also fired.\n // By keeping track of the main event that took place,\n // we avoid creating a second audit with wrong values\n static::$restoring = true;\n }", "public function onrestoreCallback($intID, $strTable, $arrData, $intVersion);", "public function restoring($model)\n\t{\n\t}", "public function undoRestore ()\n {\n if (file_exists ( $this->_previewFilename ))\n {\n unlink($this->_previewFilename);\n }\n }", "public function restore(User $user, Checkout $checkout)\n {\n //\n }", "public function restore();", "protected static function restore() {}", "public function restored(TradeCancel $tradeCancel)\n {\n //\n }", "public function restore(User $user, TweetTag $tweetTag)\n {\n //\n }", "public function restored(Order $order)\n\t{\n\t\t//\n\t}", "public function restored(Order $order)\n\t{\n\t\t//\n\t}", "public function restore(User $user, Inventario $inventario)\n {\n //\n }", "public function restored(PurchaseReceipt $purchaseReceipt)\n {\n //\n }", "public function restored(Post $post)\n {\n $post->recordActivity('restored');\n }", "public function updraft_ajaxrestore() {\n\t\t$this->prepare_restore();\n\t\tdie();\n\t}", "public function restored(Historia $historia)\n {\n //\n }", "public function restore(User $user, Screening $screening)\n {\n //\n }", "public function restored(Installment $installment)\n {\n //\n }", "public function restore(User $user, SystemUnit $systemUnit)\n {\n //\n }", "public function restore(User $user, Carrito $carrito)\n {\n //\n }", "public function afterRestore() : bool\n\t{\n\t\treturn true;\n\t}", "public function restored(Remission $remission)\n {\n //\n }", "public function restored(Stock $stock)\n {\n //\n }", "public function restored(Exchange $exchange)\n {\n //\n }", "public function restore(User $user, CartItem $cartItem)\n {\n //\n }", "public function restored(Order $order)\n {\n //\n }", "public function restored(Order $order)\n {\n //\n }", "public function restored(Order $order)\n {\n //\n }", "public function restore(User $user, AkunBank $akunBank)\n {\n //\n }", "public function restored(TraHangNhaCungCap $traHangNhaCungCap)\n {\n //\n }", "public function restored(History $history)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restored(Transaction $transaction)\n {\n //\n }", "public function restore(User $user, EduDocument $eduDocument)\n {\n //\n }", "public function restore(User $user, Attendance $attendance)\n {\n //\n }", "public function restored(User $user)\n {\n $this->clearCache($this->key);\n }", "public function restore(User $user, Coupon $coupon)\n {\n //\n }", "public function restored(Job $job)\n {\n //\n }", "public function restore(User $user, Todo $todo)\n {\n //\n }", "function setRestoreSession($restoreSession) {\n $this->restoreSession = $restoreSession;\n }", "public function restored(Document $document)\n {\n //\n }", "public function restore(): void\n\t{\n\t\t$this->processor->restore();\n\t}", "public function restore(User $user, InterventionRequest $interventionRequest)\n {\n //\n }", "public function restored(Region $region)\n {\n //\n }", "public function restore(User $user, Paciente $paciente)\n {\n //\n }", "public function restore(User $user, User $model)\n {\n //\n }", "public function restored(Role $role)\n {\n }", "public function restored(Subscription $subscription)\n {\n //\n }", "public function restore(User $user, Exercise $exercise)\n {\n //\n }", "public function restoring(Order $Order)\n {\n //code...\n }", "public function restore()\n {\n $this->restoreEntrustUserTrait();\n $this->restoreSoftDeletes();\n }", "public function restored(Leaderboard $leaderboard)\n {\n //\n }", "public function restored(Order $Order)\n {\n //code...\n }", "public function restore(User $user, Quack $quack)\n {\n //\n }", "public function afterRestoreResponse($data)\n {\n }", "public function restored(Vehicle $vehicle)\n {\n //\n }", "public function restore(User $user, Blog $blog)\n {\n //\n }", "public function beforeRestore() : bool\n\t{\n\t\treturn true;\n\t}", "public function restore(User $user, SportManager $sportManager) {\n\t\t//\n\t}", "public function restored($model)\n {\n $this->whileForcingUpdate(function () use ($model) {\n $this->saved($model);\n });\n }", "public function restore(User $user, Role $role)\n {\n //\n }", "public function restore(User $user, Habitacion $habitacion)\n {\n //\n }", "public function restore(User $user, User $model)\n {\n }", "public function restored(Edit $edit)\n {\n //\n }", "public function restored($artistAlias)\n {\n parent::restored($artistAlias);\n\n Log::Info(\"Restored artist alias\", ['artist alias' => $artistAlias->id, 'artist' => $artistAlias->artist->id]);\n }", "public function restored(Student $student)\n {\n //\n }", "public function restore(User $user, User $user1)\n {\n //\n }", "public function restored(Bank $bank)\n {\n //\n }", "public function restore(User $user, Pensamiento $pensamiento)\n {\n //\n }", "public function restore(User $user, ExamRoom $examRoom)\n {\n //\n }", "public function restore(User $user, Company $company)\n {\n //\n }", "public function restored(Item $item)\n {\n //\n }" ]
[ "0.70491093", "0.70491093", "0.6996212", "0.6710926", "0.66498846", "0.64947563", "0.64433706", "0.6433071", "0.6419734", "0.6403441", "0.6383275", "0.63694644", "0.6296013", "0.6285281", "0.6238935", "0.62285656", "0.62250984", "0.62207747", "0.6174344", "0.61669165", "0.61423486", "0.61423486", "0.6138238", "0.61308354", "0.6114153", "0.60984564", "0.6047737", "0.6023111", "0.6009013", "0.60085", "0.6002538", "0.5997981", "0.5992317", "0.5956869", "0.5951622", "0.5944723", "0.5930003", "0.5930003", "0.5930003", "0.5925025", "0.5915356", "0.5900748", "0.5896435", "0.5896435", "0.5896435", "0.5896435", "0.5887766", "0.58840525", "0.58621985", "0.5856094", "0.5849323", "0.58465475", "0.58418626", "0.5833773", "0.5829218", "0.58243763", "0.58216363", "0.5810083", "0.58094645", "0.5809209", "0.58075595", "0.58051795", "0.57959837", "0.5789836", "0.5789282", "0.57857966", "0.57840896", "0.5773995", "0.5771041", "0.57689875", "0.57605636", "0.5749674", "0.5735574", "0.5735481", "0.57350785", "0.57347155", "0.573026", "0.57245314", "0.572284", "0.5720415", "0.57196707", "0.5717378", "0.57152545", "0.57134515", "0.57111293" ]
0.6524298
16
Handle the User "force deleted" event.
public function forceDeleted(User $user) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function userDeleted();", "protected function _postDelete()\n\t{\n\t\t//register events\n\t\t\\Base\\Event::trigger('user.delete',$this->id);\n\t\t//end events\n\t}", "public function forceDeleted(User $user)\n {\n\n }", "private function user_deleted($event) {\n global $DB;\n $userid = $event->relateduserid;\n $token = $DB->get_record('repository_gdrive_tokens', array('userid' => $userid), 'refreshtokenid');\n $this->client->revokeToken($token->refreshtokenid);\n $DB->delete_records('repository_gdrive_tokens', array ('userid' => $userid));\n }", "public function forceDelete(User $user, Event $event)\n {\n //\n }", "public function forceDelete(User $user, Event $event)\n {\n //\n }", "public function onBeforeDelete();", "public function onAfterDelete() {\n\t\tif (!$this->owner->ID || self::get_disabled() || self::version_exist($this->owner))\n\t\t\treturn;\n\t\t$this->onAfterDeleteCleaning();\n\t}", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(User $user)\n {\n //\n }", "public function deleted(EntryInterface $entry)\n {\n if (!$entry->isForceDeleting()) {\n event(new UserWasDeleted($entry));\n }\n\n parent::deleted($entry);\n }", "function onBeforeDeleteUser($user)\n\t{\n\t\tglobal $mainframe;\n\t}", "protected function onDeleted()\n {\n return true;\n }", "public function onAfterDelete();", "public function forceDelete(User $user, InterventionRequest $interventionRequest)\n {\n //\n }", "protected function onDeleting()\n {\n return true;\n }", "public function userDeleted()\n\t{\n\t\tself::authenticate();\n\n\t\t$userId = FormUtil::getPassedValue('user', null, 'GETPOST');\n\t\tif(!is_string($userId)) {\n\t\t\treturn self::ret(false);\n\t\t}\n\n\t\t$user = $this->entityManager->getRepository('Owncloud_Entity_DeleteUser')->findOneBy(array('uname' => $userId));\n\t\tif(!($user instanceof Owncloud_Entity_DeleteUser)) {\n\t\t\treturn self::ret(false);\n\t\t}\n\t\t$this->entityManager->remove($user);\n\t\t$this->entityManager->flush();\n\n\t\treturn self::ret(true);\n\t}", "protected function afterDelete()\r\n {\r\n }", "public function deleted(User $user)\n {\n debug('User deleted');\n }", "public function forceDelete(User $user, Evento $evento)\n {\n //\n }", "public static function user_deleted(core\\event\\user_deleted $event)\n {\n global $CFG;\n $request_data = array(\n 'action' => 'user_deletion',\n 'user_id' => $event->relateduserid\n );\n\n $api_handler = api_handler_instance();\n if (isset($CFG->eb_connection_settings)) {\n $sites = unserialize($CFG->eb_connection_settings);\n $synch_conditions = unserialize($CFG->eb_synch_settings);\n\n foreach ($sites as $key => $value) {\n if ($synch_conditions[$value[\"wp_name\"]][\"user_deletion\"] && $value['wp_token']) {\n // Adding Token for verification in WP from Moodle.\n $request_data['secret_key'] = $value['wp_token'];\n\n $api_handler->connect_to_wp_with_args($value[\"wp_url\"], $request_data);\n }\n }\n }\n }", "public function post_delete() {\n //try to delete the account\n $status = AuxUser::deleteUser();\n if ($status[0]) {\n //if the delete user process worked, log out\n echo '<script>alert(\"Account Deleted\");</script>';\n Response::redirect('/profile/logOut');\n } else {\n //if not, print the error message\n echo '<script>alert(\"'.$status[1].'\");</script>';\n Response::redirect('/profile');\n }\n }", "protected function _postDelete() {}", "protected function _postDelete() {}", "protected function afterDelete()\n {\n }", "public function onBeforeDelete() {\r\n\t\tparent::onBeforeDelete();\r\n\t}", "public function deleteUser()\n {\n $this->delete();\n }", "public static function onUserDelete($event)\n {\n\n Yii::import('application.modules.mail.models.*');\n\n // Delete all message entries\n foreach (MessageEntry::model()->findAllByAttributes(array('user_id' => $event->sender->id)) as $messageEntry) {\n $messageEntry->delete();\n }\n\n // Leaves all my conversations\n foreach (UserMessage::model()->findAllByAttributes(array('created_by' => $event->sender->id)) as $userMessage) {\n $userMessage->leave();\n }\n\n return true;\n }", "function onesignin_client_handle_delete_notification($account) {\n watchdog('onesignin', 'Deleting user %name on request of One Signin server.', array('%name' => $account->name), WATCHDOG_INFO);\n user_delete($account->uid);\n}", "public static function onUserDelete($event)\n {\n foreach (Like::findAll(array('created_by' => $event->sender->id)) as $like) {\n $like->delete();\n }\n\n return true;\n }", "public function deleting(User $user)\n {\n if($user->isForceDeleting()) \n {\n $this->forceDeleting($user);\n }\n }", "function before_delete() {}", "public function deleted_user_action($id) {\r\n $this->db->delete_by_user_id($id);\r\n }", "public function forceDelete(User $user, $authorable)\n {\n //\n }", "public function onDelete(): void\n {\n if ($this->globals->getUpdated() !== (int) $_GET['id']) {\n $this->_entity->delete($_GET['id']);\n $this->globals->setUpdated($_GET['id']);\n $this->globals->unsetAlert();\n }\n }", "public function _event_before_delete() {\n\t\tstatic::$_delete['roles'] = $this->roles;\n\t}", "protected function _preDelete() {}", "public function deleted(User $user)\n {\n // delete all files\n }", "protected function handleDoDelete() {\n\t\t\tif ($this->verifyRequest('DELETE') && $this->verifyParams()) {\n\t\t\t\tif ($this->blnAuthenticated) {\n\t\t\t\t\tif ($intEventId = str_replace('.' . $this->strFormat, '', $this->objUrl->getSegment(3))) {\n\t\t\t\t\t\t$objUserEvent = $this->initModel();\n\t\t\t\t\t\tif ($objUserEvent->loadById($intEventId) && $objUserEvent->count()) {\n\t\t\t\t\t\t\tif ($objUserEvent->current()->get('userid') == AppRegistry::get('UserLogin')->getUserId()) {\n\t\t\t\t\t\t\t\tif ($objUserEvent->destroy()) {\n\t\t\t\t\t\t\t\t\tCoreAlert::alert('The event was deleted successfully.');\n\t\t\t\t\t\t\t\t\t$this->blnSuccess = true;\n\t\t\t\t\t\t\t\t\t$this->intStatusCode = 200;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error deleting the event'));\n\t\t\t\t\t\t\t\t\t$this->error(400);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('Invalid event permissions'));\n\t\t\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttrigger_error(AppLanguage::translate('There was an error loading the event data'));\n\t\t\t\t\t\t\t$this->error(400);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing event ID'));\n\t\t\t\t\t\t$this->error(401);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttrigger_error(AppLanguage::translate('Missing or invalid authentication'));\n\t\t\t\t\t$this->error(401);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->error(400);\n\t\t\t}\n\t\t}", "public function preDelete() { }", "public function onDelete(){\n return false;\n }", "function afterDelete() {\n \t\t$this->_ownerModel->deleteAll(array(\n \t\t\t\t'model' => $this->_Model->alias,\n \t\t\t\t'foreign_key' => $this->_Model->id,\n \t\t\t\t$this->settings[$this->_Model->alias]['userPrimaryKey'] => $this->_User,\n \t\t));\n\t\t}", "public function forceDelete()\n {\n //\n }", "public function callback_delete_user( $user_id ) {\n\t\tif ( ! isset( $this->_users_object_pre_deleted[ $user_id ] ) ) {\n\t\t\t$this->_users_object_pre_deleted[ $user_id ] = get_user_by( 'id', $user_id );\n\t\t}\n\t}", "public function forceDelete(User $user, EduDocument $eduDocument)\n {\n //\n }", "protected function beforeDelete()\n {\n }", "function onAfterDeleteUser($user, $succes, $msg)\n\t{\n\t\tglobal $mainframe;\n\n\t \t// only the $user['id'] exists and carries valid information\n\n\t\t// Call a function in the external app to delete the user\n\t\t// ThirdPartyApp::deleteUser($user['id']);\n\t}", "protected function handleDelete() : void // kill a profile\n {\n if (!User::$id || !$this->_get['id'])\n {\n trigger_error('AjaxProfile::handleDelete - profileId empty or user not logged in', E_USER_ERROR);\n return;\n }\n\n // only flag as deleted; only custom profiles\n DB::Aowow()->query(\n 'UPDATE ?_profiler_profiles SET cuFlags = cuFlags | ?d WHERE id IN (?a) AND cuFlags & ?d {AND user = ?d}',\n PROFILER_CU_DELETED,\n $this->_get['id'],\n PROFILER_CU_PROFILE,\n User::isInGroup(U_GROUP_ADMIN | U_GROUP_BUREAU) ? DBSIMPLE_SKIP : User::$id\n );\n }", "public function delete(){\n $this->update(['deleted_by', Auth::user()->id]);\n return parent::delete();\n }", "public function deleted() {\n // TODO Implement this\n }", "public function handleDelete()\n {\n $this->dispatch(new DeleteAccountCommand($this->auth->user()));\n\n return Redirect::route('home')->with('delete_account', 'Your account has been successfully deleted!');\n }", "public function forceDelete(User $user, Carrito $carrito)\n {\n //\n }", "public function delete() {\n $this->isdeleted = 1;\n $this->deleteduser = \\Yii::$app->user->getId();\n $this->deletedtime = date(\"Y-m-d H:i:s\");\n \n return parent::update(FALSE, ['isdeleted', 'deletedtime', 'deleteduser']);\n }", "public function forceDelete(User $user, User $user1)\n {\n //\n }", "function ondelete(){\n\t\treturn true;\n\t}", "public function forceDelete(User $user, Flashcard $flashcard)\n {\n //\n }", "public function onAfterDelete() {\r\n\t\tparent::onAfterDelete();\r\n\t\t$this->zlog('Delete');\r\n\t}", "public function forceDelete(User $user, User $target)\n {\n //\n }", "public function after_delete() {}", "public function forceDelete();", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function forceDelete(User $user, Quack $quack)\n {\n //\n }", "function validate_user_deletion()\n{ }", "protected function preDeleteHook($object) { }", "public function interceptDelete()\n\t{\n\t\t$user = $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$rows = $this->getModel()->getList();\n\t\tforeach($rows as $row)\n\t\t{\n\t\t\t$topic = $this->getService('com://site/ninjaboard.model.topics')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($row->ninjaboard_topic_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\t\t\t$forum = $this->getService('com://site/ninjaboard.model.forums')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->id($topic->forum_id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->getItem();\n\n\t\t\t// @TODO we migth want to add an option later, wether or not to allow users to delete their own post.\n\t\t\tif($forum->post_permissions < 3 && $row->created_by != $user->id) {\n\t\t\t\tJError::raiseError(403, JText::_('COM_NINJABOARD_YOU_DONT_HAVE_THE_PERMISSIONS_TO_DELETE_OTHERS_TOPICS'));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t}", "public function beforeDelete() {\n // Console doesn't have Yii::$app->user, so we skip it for console\n if (php_sapi_name() != 'cli') {\n // Don't let delete yourself\n if (Yii::$app->user->id == $this->id) {\n return false;\n }\n\n // Don't let non-superadmin delete superadmin\n if (!Yii::$app->user->isSuperadmin AND $this->superadmin == 1) {\n return false;\n }\n }\n\n return parent::beforeDelete();\n }", "public function forceDelete(User $user, Inventario $inventario)\n {\n //\n }", "public function Delete(){\n $query = \"DELETE FROM user where id=\".$this->id;\n\n $result = $this->dbh->exec($query);\n if ($result) {\n Message::setMessage(\"<div class='yes'>Removed Permanently</div>\");\n } else {\n\n Message::setMessage(\"<div class='no'>Failed to Remove</div>\");\n }\n Utility::redirect(\"volunteers.php\");\n }", "public function deleted(User $model)\n {\n // If the User is deleted, delete your image\n \\File::delete(base_path($model->img_url));\n return true;\n }", "public function deleted(User $user)\n {\n $admin = auth()->user();\n Log::info('Logged message',['action'=>'User '.$user->name.'with'.$user->id.' was deleted by ' . $admin->name]);\n }", "public function forceDelete(User $user, Pensamiento $pensamiento)\n {\n //\n }", "public function forceDelete(User $user, Attraction $attraction)\n {\n //\n }", "public function forceDelete(User $user, Information $information)\n {\n //\n }", "public function onDeleteUser(Request $request)\n {\n $this->logger->info(\"\\Entering \" . substr(strrchr(__METHOD__, \"\\\\\"), 1));\n\n // Sets a user equal to this method's getUserFromId method, using the request input\n $user = $this->getUserFromId($request->input('idToDelete'));\n\n // Creates an account business service\n $bs = new AccountBusinessService();\n \n // Calls the remove bs method\n // flag is rows affected\n $flag = $bs->remove($user);\n \n // If flag is 0, returns error page\n if ($flag == 0) {\n $this->logger->info(\"/Exiting \" . substr(strrchr(__METHOD__, \"\\\\\"), 1) . \" to error view. Flag: \" . $flag);\n $data = [\n 'process' => \"Remove User\",\n 'back' => \"getAllUsers\"\n ];\n return view('error')->with($data);\n }\n\n // Returns this method's onGetAllUsers method\n $this->logger->info(\"/Exiting \" . substr(strrchr(__METHOD__, \"\\\\\"), 1) . \" with \" . $flag);\n return $this->onGetAllUsers();\n }" ]
[ "0.772702", "0.7684629", "0.74762225", "0.73785424", "0.7265014", "0.7265014", "0.71728534", "0.71379566", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.70749676", "0.7033923", "0.699971", "0.6993525", "0.68726957", "0.6813025", "0.6780839", "0.67805254", "0.67629004", "0.6746967", "0.6746235", "0.6733034", "0.6724383", "0.67170304", "0.6716204", "0.670417", "0.66888875", "0.667944", "0.6679109", "0.66514015", "0.66437393", "0.6620863", "0.6604209", "0.66034156", "0.6582226", "0.65776575", "0.65577453", "0.655414", "0.6553247", "0.655038", "0.6540555", "0.65366256", "0.65363055", "0.6519715", "0.6511114", "0.65043974", "0.6486236", "0.6478484", "0.6464046", "0.64507675", "0.6450498", "0.6422796", "0.6421322", "0.6415554", "0.6413271", "0.6407816", "0.63762385", "0.6372816", "0.6364791", "0.6359894", "0.6356875", "0.63527364", "0.63527364", "0.63527364", "0.6352651", "0.6345427", "0.6341238", "0.63378", "0.6335553", "0.6320203", "0.6317158", "0.63103586", "0.630696", "0.630504", "0.6298898", "0.62987584", "0.6283482" ]
0.73675525
12
Add CSS to head
public function showCss() { $addon_css = $this->css->url('pagelinks.css'); $output = '<link rel="stylesheet" href="' . $addon_css . '">'; $output .= '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">'; return $output; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function addCSS()\n {\n Filters::add('head', array($this, 'renderRevisionsCSS'));\n }", "protected function addCSS() {\n foreach ($this->css_files as $css_file) {\n $this->header.=\"<link rel='stylesheet' href='\" . __ASSETS_PATH . \"/\" . $css_file . \"'/> \\n\";\n }\n }", "public function control_panel__add_to_head()\n\t{\n\t\tif ( URL::getCurrent(false) == '/publish' ) {\n\t\t\treturn $this->css->link('fileclerk.css');\n\t\t}\n\t}", "function add_head() {\r\n\t\tglobal $locale;\r\n\t\t$wpca_settings = get_option('wpcareers');\r\n\t\techo \"<link rel=\\\"stylesheet\\\" href=\\\"\" . $this->plugin_url . \"/themes/default/css/default.css\\\" type=\\\"text/css\\\" media=\\\"screen\\\">\";\r\n\t\tif($wpca_settings['edit_style']==null || $wpca_settings['edit_style']=='plain') {\r\n\t\t\t// nothing\r\n\t\t} elseif($wpca_settings['edit_style']=='tinymce') {\r\n\t\t\t// activate these includes if the user chooses tinyMCE on the settings page\r\n\t\t\t$mce_path = get_option('siteurl');\r\n\t\t\t$mce_path .= '/wp-includes/js/tinymce/tiny_mce.js';\r\n\t\t\techo '<script type=\"text/javascript\" src=\"' . $mce_path . '\"></script>';\r\n\t\t}\r\n\t}", "function cookiebar_insert_head_css($flux){\n $flux .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.find_in_path(\"css/jquery.cookiebar.css\").'\" />';\n return $flux;\n}", "function head_css()\n{\n return get_view()->headLink() . get_view()->headStyle();\n}", "function rainette_insert_head_css($flux) {\n\tstatic $done = false;\n\tif (!$done) {\n\t\t$done = true;\n\t\t$flux .= '<link rel=\"stylesheet\" href=\"' . find_in_path('rainette.css') . '\" type=\"text/css\" media=\"all\" />';\n\t}\n\n\treturn $flux;\n}", "function head_css()\n\t{\n\t\tqa_html_theme_base::head_css();\n\t\t// if if already added widgets have a css file activated\n\t\t$styles = array();\n\t\tforeach ($this->content['widgets'] as $region_key => $regions) {\n\t\t\tforeach ($regions as $template_key => $widgets) {\n\t\t\t\t$position = strtoupper(substr($region_key,0,1) . substr($template_key,0,1) );\n\t\t\t\tforeach ($widgets as $key => $widget) {\n\t\t\t\t\t$widget_name = get_class ($widget);\n\t\t\t\t\t$widget_key = $widget_name.'_'.$position;\n\t\t\t\t\t$file = get_widget_option($widget_key, 'uw_styles');\n\t\t\t\t\t// if file existed then put it into an array to prevent duplications\n\t\t\t\t\tif($file)\n\t\t\t\t\t\t$styles[$widget_name][$file]=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add styling files to theme\n\t\tif($styles)\n\t\t\tforeach ($styles as $widget_name => $files)\n\t\t\t\tforeach ($files as $file => $verified)\n\t\t\t\t\tif( $file != 'none' )\n\t\t\t\t\t\t$this->output('<link rel=\"stylesheet\" href=\"'.UW_URL.'widgets/'.$widget_name.'/styles/'.$file.'\"/>');\n\t}", "public function addHead()\n {\n if (file_exists(DIRREQ . \"app/view/{$this->getDir()}/head.php\")) {\n include(DIRREQ . \"app/view/{$this->getDir()}/head.php\");\n }\n }", "public function formatCSS() {\n echo $this->head;\n echo \"<link rel='stylesheet' href='desktop.css'>\";\n }", "function add_wp_head() {\n }", "function shop_cetri_insert_head($flux) {\n\t$css = find_in_path('css/shop_cetri.css');\n\t$flux .= \"<link rel='stylesheet' type='text/css' media='all' href='$css' />\\n\";\n\n\treturn $flux;\n}", "function fragmention_insert_head_css($flux) {\n\tstatic $vu = false;\n\n\n\tif (!$vu) {\n\t\t$flux .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'.find_in_path('css/fragmention.css').'\" media=\"all\" />'.\"\\n\";\n\t\t$vu = true;\n\t}\n\treturn $flux;\n}", "function App_CSS_Add()\n {\n array_push($this->MyApp_Interface_Head_CSS_OnLine,\"CSS/sivent2.css\");\n }", "public function hookHeader()\n {\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "public function css() {\r\n\t\tif ($this->cssLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.BASE_REQUEST.'/default/skin/'.pzk_app()->name.'/css/'.$this->cssLink.'.css\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page())\r\n\t\t\t\t\t$page->addObjCss($this->cssLink);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif ($this->cssExternalLink != false) {\r\n\t\t\tif($this->scriptTo) {\r\n\t\t\t\t$elem = pzk_element($this->scriptTo);\r\n\t\t\t\t$elem->append(pzk_parse('<html.css src=\"'.$this->cssExternalLink.'\" />'));\r\n\t\t\t} else {\r\n\t\t\t\tif($page = pzk_page()) {\r\n\t\t\t\t\t$page->addExternalCss($this->cssExternalLink);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "function head(){\n\t?><head>\n\t<meta charset=\"UTF-8\">\n\t<title>EEMS</title>\n\t<link rel=\"stylesheet\" href=\"css/style_web.css\" type=\"text/css\">\n\t</head><?php\n}", "function ft_hook_add_css() {}", "public function head() {\r\n return <<<HTML\r\n <meta charset=\"utf-8\">\r\n <title>$this->title</title>\r\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\r\n <link href=\"steampunked.css\" type=\"text/css\" rel=\"stylesheet\" />\r\n\r\nHTML;\r\n }", "function mpcth_add_admin_head() {\r\n\tmpcth_admin_alternative_styles();\r\n}", "function wp_head() {\n\n\t\tif ( ! is_singular() ) return;\n\n\t\t// bail if no colors to show\n\t\t$pairs = get_option( 'color_style_options', false );\n\t\tif ( ! $pairs ) return;\n\n\t\techo \"<style>\\n\";\n\t\tforeach( $pairs as $id => $pair ) {\n\t\t\tlist( $name, $style ) = $pair;\n\t\t\t$color = get_post_meta( get_the_ID(), \"cso_$id\", true );\n\t\t\tif ( empty( $color ) ) continue;\n\t\t\techo str_replace( '%color%', $color, $style ) . \"\\n\";\n\t\t}\n\t\techo \"</style>\\n\";\n\n\t}", "function stag_header_css() {\n\t?>\n\t<style id=\"stag-custom-css\" type=\"text/css\">\n\t\tbody,\n\t\t.site,\n\t\thr:not(.stag-divider)::before {\n\t\t\tbackground-color: <?php echo stag_theme_mod( 'colors', 'background' ); ?>;\n\t\t}\n\t\tbody, .entry-subtitle {\n\t\t\tfont-family: \"<?php echo stag_theme_mod( 'typography', 'body_font' ); ?>\";\n\t\t}\n\t\ta,\n\t\t.archive-header__title span,\n\t\t.footer-menu a:hover {\n\t\t\tcolor: <?php echo stag_theme_mod( 'colors', 'accent' ); ?>;\n\t\t}\n\t\th1, h2, h3, h4, h5, h6, .button, .stag-button, input[type=\"submit\"], input[type=\"reset\"], .button-secondary, legend, .rcp_subscription_level_name {\n\t\t\tfont-family: \"<?php echo stag_theme_mod( 'typography', 'header_font' ); ?>\";\n\t\t}\n\t\t.post-grid {\n\t\t\tborder-color: <?php echo stag_theme_mod( 'colors', 'background' ); ?>;\n\t\t}\n\t\t<?php echo stag_theme_mod( 'layout_options', 'custom_css' ); ?>\n\t</style>\n\t<?php\n}", "function dw2_insert_head($flux) {\r\n\t\t$flux.= \"\\n\".'<script type=\"text/javascript\" src=\"'._DIR_PLUGIN_DW2.'dw2_fermepop.js\"></script>'.\"\\n\";\r\n\t\t$flux.= \"\\n\".'<link rel=\"stylesheet\" type=\"text/css\" href=\"'._DIR_PLUGIN_DW2.'dw2_public_styles.css\" />'.\"\\n\";\r\n\t\treturn $flux;\r\n\t}", "public function prepareHead() {\r\n // add jQuery\r\n if($this->cdn_jquery) {\r\n $this->addJS('//code.jquery.com/jquery-2.1.0.min.js', true);\r\n $this->addJS('//code.jquery.com/jquery-migrate-1.2.1.min.js', true);\r\n } else {\r\n $this->addJS(array('jquery-2.1.0.min', 'jquery-migrate-1.2.1.min'));\r\n }\r\n // add bootstrap\r\n if($this->cdn_bootstrap) {\r\n $this->addCSS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css', true);\r\n $this->addJS('//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js', true);\r\n } else {\r\n $this->addCSS('bootstrap.min');\r\n $this->addJS('bootstrap.min');\r\n }\r\n \r\n $this->addCSS(array('bootstrap-switch.min', 'spectrum'));\r\n $this->addJS(array('plugins'));\r\n \r\n // ace code editor\r\n $this->addJS('libs/ace/ace.js', true);\r\n \r\n $this->addCSS('style');\r\n $this->addJS('script');\r\n \r\n $this->smarty->assign(array(\r\n 'title' => $this->title,\r\n 'css_files' => $this->css_files,\r\n 'js_files' => $this->js_files,\r\n ));\r\n }", "public function hookHeader(){\n $this->context->controller->addCSS($this->_path.'style.css');\n \n $this->context->controller->addJqueryPlugin(array('scrollTo', 'serialScroll'));\n $this->context->controller->addJS($this->_path.'script.js');\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "public function insert_inline_css() {\n }", "function admin_register_head() {\r\n\t\t\t$siteurl = get_option('siteurl');\r\n\t\t\t$url = $siteurl . '/wp-content/plugins/' . basename(dirname(__FILE__)) . '/bl-contact-admin.css';\r\n\t\t\techo \"<link rel='stylesheet' type='text/css' href='$url' />\\n\";\r\n\t\t}", "private function _addCss() {\r\n JHtml::styleSheet( Sh404sefHelperGeneral::getComponentUrl() . '/assets/css/list.css');\r\n }", "function addHead()\n\t{\n\n\t\t$app = JFactory::getApplication();\n\t\t$user = JFactory::getUser();\n\t\t$input = $app->input;\n\n\t\t$responsive = $this->getParam('responsive', 1);\n\t\t$navtype = $this->getParam('navigation_type', 'joomla');\n\t\t$navtrigger = $this->getParam('navigation_trigger', 'hover');\n\t\t$offcanvas = $this->getParam('navigation_collapse_offcanvas', 0) || $this->getParam('addon_offcanvas_enable', 0);\n\t\t$legacycss = $this->getParam('legacy_css', 0);\n\t\t$frontedit = in_array($input->getCmd('option'), array('com_media', 'com_config'))\t//com_media or com_config\n\t\t\t\t\t\t\t\t\t\t|| in_array($input->getCmd('layout'), array('edit'))\t\t\t\t\t\t\t\t//edit layout\n\t\t\t\t\t\t\t\t\t\t|| (version_compare(JVERSION, '3.2', 'ge') && $user->id && $app->get('frontediting', 1) && \n\t\t\t\t\t\t\t\t\t\t\t\t($user->authorise('core.edit', 'com_modules') || $user->authorise('core.edit', 'com_menus')));\t//frontediting\n\n\t\t// LEGACY COMPATIBLE\n\t\tif($legacycss){\n\t\t\t$this->addCss('legacy-grid');\t//legacy grid\n\t\t\t$this->addStyleSheet(T3_URL . '/fonts/font-awesome/css/font-awesome.css'); //font awesome 3\n\t\t}\n\n\t\t// FRONTEND EDITING\n\t\tif($frontedit){\n\t\t\t$this->addCss('frontend-edit');\n\t\t}\n\n\t\t// BOOTSTRAP CSS\n\t\t$this->addCss('bootstrap', false);\n\n\t\t// TEMPLATE CSS\n\t\t$this->addCss('template', false);\n\n\t\tif (!$responsive && $this->responcls) {\n\t\t\t$this->addCss('non-responsive'); //no responsive\n\n\t\t\t$nonrespwidth = $this->getParam('non_responsive_width', '970px');\n\t\t\tif(preg_match('/^(-?\\d*\\.?\\d+)(px|%|em|rem|pc|ex|in|deg|s|ms|pt|cm|mm|rad|grad|turn)?/', $nonrespwidth, $match)){\n\t\t\t\t$nonrespwidth = $match[1] . (!empty($match[2]) ? $match[2] : 'px');\n\t\t\t}\n\t\t\t$this->addStyleDeclaration('.container {width: ' . $nonrespwidth . ' !important;}');\n\t\t\n\t\t} else if(!$this->responcls){\n\t\t\t\n\t\t\t// BOOTSTRAP RESPONSIVE CSS\n\t\t\t$this->addCss('bootstrap-responsive');\n\t\t\t\n\t\t\t// RESPONSIVE CSS\n\t\t\t$this->addCss('template-responsive');\n\t\t}\n\n\t\t// add core megamenu.css in plugin\n\t\t// deprecated - will extend the core style into template megamenu.less & megamenu-responsive.less\n\t\t// to use variable overridden in template\n\t\tif($navtype == 'megamenu'){\n\n\t\t\t// If the template does not overwrite megamenu.less & megamenu-responsive.less\n\t\t\t// We check and included predefined megamenu style in base\n\t\t\tif(!is_file(T3_TEMPLATE_PATH . '/less/megamenu.less')){\n\t\t\t\t$this->addStyleSheet(T3_URL . '/css/megamenu.css');\n\n\t\t\t\tif ($responsive && !$this->responcls){\n\t\t\t\t\t$this->addStyleSheet(T3_URL . '/css/megamenu-responsive.css');\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// megamenu.css override in template\n\t\t\t$this->addCss('megamenu');\n\t\t}\n\n\t\t// Add scripts\n\t\tif (version_compare(JVERSION, '3.0', 'ge')) {\n\t\t\tJHtml::_('jquery.framework');\n\t\t} else {\n\t\t\t$scripts = @$this->_scripts;\n\t\t\t$jqueryIncluded = 0;\n\t\t\tif (is_array($scripts) && count($scripts)) {\n\t\t\t\t//simple detect for jquery library. It will work for most of cases\n\t\t\t\t$pattern = '/(^|\\/)jquery([-_]*\\d+(\\.\\d+)+)?(\\.min)?\\.js/i';\n\t\t\t\tforeach ($scripts as $script => $opts) {\n\t\t\t\t\tif (preg_match($pattern, $script)) {\n\t\t\t\t\t\t$jqueryIncluded = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!$jqueryIncluded) {\n\t\t\t\t$this->addScript(T3_URL . '/js/jquery-1.8.3' . ($this->getParam('devmode', 0) ? '' : '.min') . '.js');\n\t\t\t\t$this->addScript(T3_URL . '/js/jquery.noconflict.js');\n\t\t\t}\n\t\t}\n\n\t\tdefine('JQUERY_INCLUED', 1);\n\n\n\t\t// As joomla 3.0 bootstrap is buggy, we will not use it\n\t\t$this->addScript(T3_URL . '/bootstrap/js/bootstrap.js');\n\t\t// a jquery tap plugin\n\t\t$this->addScript(T3_URL . '/js/jquery.tap.min.js');\n\n\t\t// add css/js for off-canvas\n\t\tif ($offcanvas && ($this->responcls || $responsive)) {\n\t\t\t$this->addCss('off-canvas', false);\n\t\t\t$this->addScript(T3_URL . '/js/off-canvas.js');\n\t\t}\n\n\t\t$this->addScript(T3_URL . '/js/script.js');\n\n\t\t//menu control script\n\t\tif ($navtrigger == 'hover') {\n\t\t\t$this->addScript(T3_URL . '/js/menu.js');\n\t\t}\n\n\t\t//reponsive script\n\t\tif ($responsive && !$this->responcls) {\n\t\t\t$this->addScript(T3_URL . '/js/responsive.js');\n\t\t}\n\n\t\t//some helper javascript functions for frontend edit\n\t\tif($frontedit){\n\t\t\t$this->addScript(T3_URL . '/js/frontend-edit.js');\n\t\t}\n\n\t\t//check and add additional assets\n\t\t$this->addExtraAssets();\n\t}", "public function fusion_dynamic_css_head() {\n\n\t\t$css = '';\n\n\t\t// Append the user-entered dynamic CSS.\n\t\t$option = get_option( Avada::get_option_name(), [] );\n\t\tif ( isset( $option['custom_css'] ) && ! empty( $option['custom_css'] ) ) {\n\t\t\t$css = wp_strip_all_tags( $option['custom_css'] );\n\t\t}\n\n\t\techo '<style type=\"text/css\" id=\"fusion-builder-custom-css\">' . $css . '</style>'; // phpcs:ignore WordPress.Security.EscapeOutput\n\t}", "private function _print_html_head_css()\n\t{\n\t\t$output = \"\";\n\t\t\n\t\t//Check if theme defined\n\t\t$theme = ($this->theme) ? $this->theme : '';\n\t\t\n\t\tforeach($this->css as $style) {\n\t\t\t$skip = FALSE;\n\t\t\t\n\t\t\t$partpath = (strpos($style, '.css') === FALSE) ? \"{$theme}css/{$style}.css\" : \"/{$style}\";\n\t\t\t$fullpath = Ashtree_Common::get_real_path($partpath, TRUE);\n\t\t\t$this->_debug->log(\"INFO\", \"Including stylesheet '{$fullpath}'\");\n\t\t\t\n\t\t\tif (!file_exists($fullpath)) {\n\t\t\t\t$this->_debug->status('ABORT');\n\t\t\t\t\n\t\t\t\t$partpath = \"css/{$style}.css\";\n\t\t\t\t$fullpath = ASH_BASEPATH . $partpath;\n\t\t\t\t$this->_debug->log(\"INFO\", \"Including stylesheet '{$fullpath}'\");\n\t\t\t\n\t\t\t\tif (!file_exists($partpath)) {\n\t\t\t\t $skip = TRUE;\n\t\t\t\t} else {\n\t\t\t\t $this->_debug->clear();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ($skip) {\n\t\t\t\t$this->_debug->status('ABORT');\n\t\t\t} else {\n\t\t\t\t$this->_debug->status('OK');\n\t\t\t\t$fullpath = Ashtree_Common::get_real_path($fullpath);\n\t\t\t\t$output .= \"<link type=\\\"text/css\\\" media=\\\"screen\\\" rel=\\\"stylesheet\\\" href=\\\"{$fullpath}\\\" />\\n\";\n\t\t\t}\n\t\t\t\n\t\t}//foreach\n\t\t\n\t\t$output .= \"<style type=\\\"text/css\\\">\\n\";\n\t\t\n\t\tforeach($this->style as $style) {\n\t\t\t$output .= \"\\t{$style}\\n\";\n\t\t}//foreach\n\t\t\n\t\t$output .= \"</style>\\n\";\n\t\t\n\t\treturn $output;\n\t}", "protected function htmlHead() {\n echo \"<!DOCTYPE html>\\n\";\n echo \"<html>\\n\";\n echo str_repeat(\"\\t\",1) . \"<head>\\n\";\n echo str_repeat(\"\\t\",2) . \"<title>Евиденција волонтера</title>\\n\";\n echo str_repeat(\"\\t\",2) . \"<meta charset=\\\"UTF-8\\\">\\n\";\n echo str_repeat(\"\\t\",2) . \"<link rel=\\\"stylesheet\\\" href=\\\"css/style.css\\\">\\n\";\n if( !is_null($this->cssfile) ) {\n echo str_repeat(\"\\t\",2) . \"<link rel=\\\"stylesheet\\\" href=\\\"css/{$this->cssfile}\\\">\\n\";\n }\n echo str_repeat(\"\\t\",1) . \"</head>\\n\";\n }", "function my_admin_head() {\n echo '<link href=\"'.get_stylesheet_directory_uri().'/user-admin.css\" rel=\"stylesheet\" type=\"text/css\">';\n }", "function rainette_insert_head($flux) {\n\t$flux .= rainette_insert_head_css($flux);\n\n\treturn $flux;\n}", "function cpt_webtonio_head(){\t\n\techo \"<link type='text/css' rel='stylesheet' href='\" . get_bloginfo(\"template_url\") . \"/css/cpt-admin.css\".\"' />\";\n\n}", "public function addCss($script) {\n\t\tLibraries::enqueueCss($script);\n\t}", "function add_head_tag($tag)\n {\n $this->addHeadTag($tag);\n }", "function sb_slideshow_wp_head() {\n\tdo_action( 'sb_slideshow_wp_head' ); // allow for a safe place to add to the head\n}", "function login_style_wp_head() {\n\t// This is ornery, but needs to be to support WordPress *and* WPMU.\n\t$blf = dirname(__FILE__);\n\tif(is_file(\"$blf/login-style.css\")) {\n\t\t$css = trailingslashit(get_option('siteurl')) . trailingslashit(substr($blf, strpos($blf, 'wp-content'))) . 'login-style.css';\n\t\techo '<link rel=\"stylesheet\" href=\"'.$css.'\" type=\"text/css\" media=\"screen\" />';\n\t}\n}", "function insert_head()\n{\n echo \"<script type='text/javascript' src='javascript/jquery-2.1.4.min.js'></script>\";\n echo \"<link href='css/css_file.css' rel='stylesheet' type='text/css'>\";\n}", "private function _include_css()\n {\n if ( !$this->cache['css'] )\n {\n $this->EE->cp->add_to_head('<style type=\"text/css\">\n .vz_range { padding-bottom:0.5em; }\n .vz_range input { width:97%; padding:4px; }\n .vz_range_min { float:left; width:46%; }\n .vz_range_max { float:right; width:46%; }\n .vz_range_sep { float:left; width:8%; text-align:center; line-height:2; }\n</style>');\n\n $this->cache['css'] = TRUE;\n }\n }", "public function standard_head_html() {\n $output = parent::standard_head_html();\n $output .= '<link href=\\\"https://fonts.googleapis.com/css?family=Roboto|Nova+Mono|Roboto+Mono|Tinos\\\" rel=\\\"stylesheet\\\">';\n\n return $output;\n }", "private function renderHead() {\n\t\t\n\t\t\t$this->outputLine('<head>');\n\t\t\t\n\t\t\tif ($this->_title != '') {\n\t\t\t\t$this->outputLine('\t<title>' . $this->_title . '</title>');\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('\t<base href=\"' . $this->_base . '\" />');\n\t\t\t\n\t\t\t$this->outputLine('\t<meta http-equiv=\"content-type\" content=\"' . $this->_contentType . '\" />');\n\t\t\t\n\t\t\t//Meta\n\t\t\tforeach ($this->_meta as $meta) {\n\t\t\t\t$this->outputLine('\t<meta name=\"' . $meta->name . '\" content=\"' . $meta->content . '\" />');\n\t\t\t}\n\t\t\t\n\t\t\t//CSS\n\t\t\tforeach ($this->_css as $css) {\n\t\t\t\t$this->outputLine(\"\t\" . $css);\n\t\t\t}\n\t\t\t\n\t\t\t//JS\n\t\t\tforeach ($this->_js as $js) {\n\t\t\t\t$this->outputLine(\"\t\" . $js);\n\t\t\t}\n\t\t\t\n\t\t\t$this->outputLine('</head>');\n\t\t\n\t\t}", "function addHeaderCode() {\r\n echo '<link type=\"text/css\" rel=\"stylesheet\" href=\"' . plugins_url('css/bn-auto-join-group.css', __FILE__).'\" />' . \"\\n\";\r\n}", "public function include_css($env) {\n global $CFG;\n $css = '';\n $cssurl = $CFG->dirroot . '/course/format/ludimoodle/motivators/' . $this->get_short_name() . '/styles.css';\n\n // We can't require css like this in format because <head> is already closed\n //$page = $env->get_page();\n //$page->requires->css($cssurl);\n\n // if css is not already in page\n if (file_exists($cssurl) && (!in_array($cssurl, $env->cssinitdata))) {\n // mark that this css is in page\n $env->cssinitdata[] = $cssurl;\n $css = '<style>' . file_get_contents($cssurl) . '</style>';\n }\n return $css;\n }", "public static function enteteCSS() {\r\n foreach (Page::getInstance()->css as $link) {\r\n ?>\r\n <link type=\"text/css\" rel=\"stylesheet\" href=\"<?php echo $link; ?>\" />\r\n <?php\r\n }\r\n }", "public function addStyleSheet($filePath) {\n $this->addToHead(\"<link rel=\\\"stylesheet\\\" href=\\\"\" . $filePath . \"\\\">\",\n Page::BOTTOM);\n }", "public static function start_head()\n\t{\n\t\t?>\n\t\t<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n\t\t<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"fr\" lang=\"fr\">\n\t\t<head>\n\t\t<title></title>\n\t\t<link rel=\"shortcut icon\" href=\"favicon.ico\" />\n\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t<meta http-equiv=\"content-language\" content=\"fr\" />\n\t\t<link href=\"style.css\"\ttitle=\"Défaut\" rel=\"stylesheet\" type=\"text/css\" media=\"screen\" />\n\t\t\n <?php\n\t}", "function fielding_head_top() {\n\t$theme_dir = get_template_directory_uri();\n\n\t?>\n\t<!--[if gt IE 8]><!--><link rel='stylesheet' id='fielding-site-css' href='<?php echo $theme_dir; ?>/css/site.css' type='text/css' media='all'><!--<![endif]-->\n\t<script type=\"text/javascript\">\n\t\tvar ajaxurl = '<?php echo admin_url( 'admin-ajax.php' ); ?>',\n\t\t\ttemplateurl = '<?php echo get_bloginfo( 'template_url' ); ?>';\n\t</script>\n\t<?php\n}", "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/owl.carousel.min.js');\n $this->context->controller->addCSS($this->_path.'/views/css/owl.carousel.min.css');\n\n $this->context->controller->addJS($this->_path.'/views/js/mf.custom.js');\n $this->context->controller->addCSS($this->_path.'/views/css/mf.theme.default.css');\n\n }", "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "public function hookHeader()\n {\n $this->context->controller->addJS($this->_path.'/views/js/front.js');\n $this->context->controller->addCSS($this->_path.'/views/css/front.css');\n }", "function painter_head() {\n\t\techo '<script>window.ideaspace_site_path = \"' . url('/') . '\";</script>';\n\n\t\techo '<script src=\"' . url('public/a-painter/vendor/aframe-input-mapping-component.js') . '\"></script>';\n echo '<script src=\"' . url('public/a-painter/build.js') . '\"></script>';\n echo '<script src=\"' . url('public/a-painter/vendor/aframe-teleport-controls.min.js') . '\"></script>';\n echo '<script src=\"' . url('public/a-painter/vendor/aframe-tooltip-component.min.js') . '\"></script>';\n echo '<link rel=\"stylesheet\" href=\"' . url('public/a-painter/css/main.css') . '\">';\n echo '<link rel=\"manifest\" href=\"' . url('public/a-painter/manifest.webmanifest') . '\">';\n}", "public function appendCssUrl($url) {\n $this->appendToHead(<<<HTML\n <link rel=\"stylesheet\" type=\"text/css\" href=\"{$url}\">\nHTML\n) ;\n }", "public function admin_head()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $this->admin_ajax_handler();\n \n $head_content = $this->standard_head(); // We start with the standard stuff.\n \n $head_content .= '<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?sensor=false\"></script>'; // Load the Google Maps stuff for our map.\n \n $head_content .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"';\n \n $url = $this->get_plugin_path();\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_styles.css\" />';\n \n $head_content .= '<script type=\"text/javascript\" src=\"';\n \n $head_content .= htmlspecialchars($url);\n \n if (!defined('_DEBUG_MODE_')) {\n $head_content .= 'js_stripper.php?filename=';\n }\n \n $head_content .= 'admin_javascript.js\"></script>';\n \n return $head_content;\n }", "public function addScriptToHeader($context)\n\t\t{\n\t\t\tif(!empty(Symphony::Engine()->Author))\n\t\t\t{\n\t\t\t\tif(Symphony::Engine()->Author->isDeveloper())\n\t\t\t\t{\n\t\t\t\t\t$context['output'] = str_replace('</head>', '\n\t\t\t\t\t\t<link rel=\"stylesheet\" type=\"text/css\" media=\"screen,tv,projection\" href=\"'.URL.'/extensions/frontend_debug/assets/frontend_debug.css\" />\n\t\t\t\t\t\t<script type=\"text/javascript\" src=\"'.URL.'/extensions/frontend_debug/assets/frontend_debug.js\"></script>\n\t\t\t\t\t\t</head>', $context['output']);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public function admin_head()\n {\n // phpcs:enable PSR1.Methods.CamelCapsMethodName.NotCamelCaps\n $head_content = $this->standard_head(true).\"\\n\"; // We start with the standard stuff.\n \n $head_content .= \"<!-- Also Added by the BMLT plugin 3.X. -->\\n<meta http-equiv=\\\"X-UA-Compatible\\\" content=\\\"IE=EmulateIE7\\\" />\\n<meta http-equiv=\\\"Content-Style-Type\\\" content=\\\"text/css\\\" />\\n<meta http-equiv=\\\"Content-Script-Type\\\" content=\\\"text/javascript\\\" />\\n\";\n $options = $this->getBMLTOptions(1); // All options contain the admin key.\n $key = $options['google_api_key'];\n \n // Include the Google Maps API V3 files.\n $head_content .= '<script type=\"text/javascript\" src=\"https://maps.google.com/maps/api/js?key='.$key.'\"></script>'; // Load the Google Maps stuff for our map.\n \n if (function_exists('plugins_url')) {\n $head_content .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"';\n \n $url = $this->get_plugin_path();\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_styles.css\" />';\n \n $head_content .= '<script type=\"text/javascript\" src=\"';\n \n $head_content .= htmlspecialchars($url);\n \n $head_content .= 'admin_javascript.js\"></script>';\n } else {\n echo \"<!-- BMLTPlugin ERROR (head)! No plugins_url()! -->\";\n }\n \n $head_content .= \"\\n<!-- End Also Added by the BMLT plugin 3.X. -->\\n\";\n echo $head_content;\n }", "public function siteHead() {\n\t\t$webhook = $this->getValue('page');\n\t\tIF($this->webhook($webhook)) {\n\t\t $html = '';\n\t\t $css = THEME_DIR_CSS . 'contact3.css';\n\t\t IF(file_exists($css)) {\n\t\t\t$html .= Theme::css('css' . DS . 'contact3.css');\n\t\t } else {\n\t\t\t$html .= '<link rel=\"stylesheet\" href=\"' .$this->htmlPath(). 'layout' . DS . 'contact3.css\">' .PHP_EOL;\n\t\t }\n\n\t\t IF($this->getValue('google-recaptcha')){\n\t\t\t$html .= '<script src=\"https://www.google.com/recaptcha/api.js\"></script>';\n\t\t }\n\n\t\t return $html;\n\t\t}\n\n\t\t$webHookForBookingLog = $this->getValue('bookingsDisplayPage');\n\t\tIF($this->webhook($webHookForBookingLog)) {\n\t\t\t// Include plugin's CSS files\n\t\t\t$html = $this->includeCSS('BookingForm.css');\n\t\t\t\n\t\t\treturn $html;\n\t\t}\n\t}", "function basecss_insert_head($flux){\n\tif (!test_plugin_actif('Zcore')){\n\t\t$flux .= \"<\".\"?php header(\\\"X-Spip-Filtre: basecss_pied_de_biche\\\"); ?\".\">\";\n\t}\n\treturn $flux;\n}", "public function control_panel__add_to_head()\n\t{\n\t\tif (URL::getCurrent(false) !== '/publish') {\n\t\t\treturn \"\";\n\t\t}\n\n\t\treturn $this->css->link('section_links');\n\t}", "function twentyten_admin_header_style() {\n\t?>\n\t<style type=\"text/css\" id=\"twentyten-admin-header-css\">\n\t/* Shows the same border as on front end */\n\t#headimg {\n\tborder-bottom: 1px solid #000;\n\tborder-top: 4px solid #000;\n\t}\n\t/* If header-text was supported, you would style the text with these selectors:\n\t#headimg #name { }\n\t#headimg #desc { }\n\t*/\n\t</style>\n\t<?php\n\t}", "function links_insert_head_css($flux) {\r\n\t$links = links_configuration();\r\n\r\n\t//Styles\r\n\tif($links['style'] == 'on'){\r\n\t\t$flux .= '<link rel=\"stylesheet\" href=\"'.find_in_path('css/links.css').'\" type=\"text/css\" media=\"all\" />';\r\n\t}\r\n\t//Ouverture d'une nouvelle fenetre : insertion des init js inline, en amont des CSS (perf issue)\r\n\tif($links['window'] == 'on'){\r\n\t\t$js = 'var js_nouvelle_fenetre=\\''._T('links:js_nouvelle_fenetre').'\\';';\r\n\t\t//Ouverture dune nouvelel fenetre sur les liens externes\r\n\t\tif($links['external'] == 'on'){\r\n\t\t\t// quand un site fait du multidomaine on prend en reference le domaine de la page concernee :\r\n\t\t\t// sur www.example.org : autre.example.org est external\r\n\t\t\t// sur autre.example.org : www.example.org est external\r\n\t\t\t// sur un site mono-domaine ca ne change rien :)\r\n\t\t\t// ca marche parce que le cache change quand le HTTP_HOST change (donc quand le domaine change)\r\n\t\t\t$js .= 'var links_site = \\'' . protocole_implicite(url_de_base()) . '\\';';\r\n\t\t}\r\n\t\t//Ouverture d'une nouvelle fenetre sur les documents (extensions a preciser)\r\n\t\tif(($links['download'] == 'on')&&($links['doc_list'])){\r\n\t\t\t$js .= 'var links_doc = \\''.$links['doc_list'].'\\';';\r\n\t\t}\r\n\t\t$flux = '<script type=\"text/javascript\">'.$js.'</script>' . \"\\n\" . $flux;\r\n\t}\r\n\r\n\treturn $flux;\r\n}", "public function admin_head_style() {\n global $post_type;\n\n if ( $post_type === 'portfolio_item' ) { ?>\n <style type=\"text/css\">\n #icon-edit.icon32-posts-portfolio_item {\n background: transparent url( '<?php echo WPZOOM::$assetsPath . '/images/components/portfolio/portfolio-32.png'; ?>' ) no-repeat;\n }\n </style>\n <?php }\n }", "function SA_dev_register_style($handle, $src, $ver){echo '<link rel=\"stylesheet\" href=\"'.$src.'\" type=\"text/css\" charset=\"utf-8\" />'.\"\\n\";}", "public function hookHeader()\n\t{\n\t\t$this->context->controller->addJS($this->_path.'/views/js/front.js');\n\t\t$this->context->controller->addCSS($this->_path.'/views/css/front.css');\n\t}", "public function addCSS($css) {\r\n\t\t\t$this->css.= \"<link rel='stylesheet' type='text/css' href='$css.css' >\";\r\n\t\t}", "function scratch_custom_header_wp_head() {\n\n\tif ( !display_header_text() )\n\t\treturn;\n\n\t$hex = get_header_textcolor();\n\tif ( empty( $hex ) )\n\t\treturn;\n\n\t$style = '';\n\n\t$rgb = hybrid_hex_to_rgb( $hex );\n\n\t$style .= \"#site-title, #site-title a, #footer a { color: #{$hex} }\";\n\n\t$style .= \"#site-description, #footer { color: rgba( {$rgb['r']}, {$rgb['g']}, {$rgb['b']}, 0.75 ); }\";\n\n\techo \"\\n\" . '<style type=\"text/css\" id=\"custom-header-css\">' . trim( $style ) . '</style>' . \"\\n\";\n}", "public function css_includes()\n {\n }", "function fragmention_insert_head($flux) {\n\t$flux = fragmention_insert_head_css($flux);\n\t$flux .= '<script type=\"text/javascript\" src=\"'.find_in_path('js/fragmention.js').'\"></script>'.\"\\n\";\n\treturn $flux;\n}", "function myheader($additionalHeaderContent = NULL) {\n\t\tprint '<html>';\n\t\t\tprint '<head>';\n\t\t\t\tprint '<title>';\n\t\t\t\t\tif (defined('TITLE')) {\n\t\t\t\t\t\tprint TITLE;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tprint 'MiddleClik';\n\t\t\t\t\t}\n\t\t\t\tprint '</title>';\n\t\t\t\tprint \"<meta http-equiv=\\\"content-type\\\" content=\\\"text/html; charset=utf-8\\\" />\";\n\t\t\t\tprint $additionalHeaderContent;\n\t\t\t\tprint \"<style type=\\\"text/css\\\">\";\n\t\t\t\t\tprint '//this is where my css, js goes';\n\t\t\t\tprint \"</style>\";\n\t\t\tprint '</head>';\n\t}", "function useHead()\n{\n\n\n?>\n<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"utf-8\">\n <title>Active Bretagne Informatique</title>\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>\n\n\n <link href=\"vues/newStyleSheet.css\" media=\"screen\" rel=\"stylesheet\" type=\"text/css\"/>\n\n <?php\n }", "public function add_head_marker() {\n\t\tglobal $wpUnited;\n\n\t\tif ($wpUnited->should_do_action('template-p-in-w') && (!PHPBB_CSS_FIRST)) {\n\t\t\techo '<!--[**HEAD_MARKER**]-->';\n\t\t}\n\t}", "public function hookHeader()\n {\n // $this->context->controller->addJS('http://code.jquery.com/jquery-2.1.4.min.js');\n // $this->context->controller->addJS($this->_path.'views/js/bootstrap.min.js');\n $this->context->controller->addJS($this->_path.'views/js/front.js');\n $this->context->controller->addCSS($this->_path.'views/css/front.css');\n\n $this->context->controller->addJS($this->_path.'views/js/responsiveslides.js');\n $this->context->controller->addCSS($this->_path.'views/css/responsiveslides.css');\n $this->context->controller->addCSS($this->_path.'views/css/themes.css');\n }", "function acitpo_custom_header_wp_head() {\n\t$header_text_color = get_header_textcolor();\n\n\tif ($header_text_color == 'ccc')\n\t\treturn;\n\t?>\n\t<style type=\"text/css\">\n\t<?php if ( ! display_header_text() ) : ?>\n\t\t.site-name,\n\t\t.site-description {\n\t\t\tposition: absolute;\n\t\t\tclip: rect(1px 1px 1px 1px); /* IE6, IE7 */\n\t\t\tclip: rect(1px, 1px, 1px, 1px);\n\t\t}\n\t<?php else : ?>\n\t\t.site-name a,\n\t\t.site-description {\n\t\t\tcolor: #<?php echo $header_text_color; ?>;\n\t\t}\n\t<?php endif; ?>\n\t</style>\n\t<?php\n}", "function admin_header_style() {\n\n?>\n\t<style type=\"text/css\">\n\t#headimg {\n\t\twidth: <?php echo HEADER_IMAGE_WIDTH; ?>px;\n\t\theight: <?php echo HEADER_IMAGE_HEIGHT; ?>px;\n\t}\n\t</style>\n<?php\n}", "public function action_wp_head() {\n\t\t?>\n\t\t<style>\n\t\t\t.wpcom-related-posts ul li {\n\t\t\t\tlist-style-type: none;\n\t\t\t\tdisplay: inline-block;\n\t\t\t}\n\t\t</style>\n\t\t<?php\n\t}", "public function head() {\n\t\t$html = parent::head();\n\n\t\t$root = $this->course->root;\n $stepTag = $this->assignment->tag;\n\n $html .= <<<HTML\n<base href=\"$root/$stepTag/\" />\n\nHTML;\n\n\t\tif($this->file !== false) {\n\t\t\t/*\n\t\t\t * Transfer everything between <head> and </head>\n\t\t\t * except for the line automatically included by\n\t\t\t * the template\n\t\t\t */\n\n\t\t\t// Read until we get to <head>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, '<head>')) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$code = $this->codeStart();\n\n\t\t\t// Read until </head>\n\t\t\twhile(($line = fgets($this->file)) != false) {\n\t\t\t\tif(stristr($line, '</head>')) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif(stristr($line, 'course.css') ||\n stristr($line, 'site.css') ||\n\t\t\t\t\tstristr($line, 'class.css') ||\n\t\t\t\t\tstristr($line, 'course.min.js') ||\n\t\t\t\t\tstristr($line, 'step/step.js') ||\n\t\t\t\t\tstristr($line, 'step/step.css') ||\n\t\t\t\t\tstristr($line, 'js/jquery') ||\n\t\t\t\t\tstristr($line, 'lib/js/video-js') ||\n\t\t\t\t\tstristr($line, 'video.css') ||\n\t\t\t\t\tstristr($line, '<title>')) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$code .= $line;\n\t\t\t}\n\n\t\t\t// This block of code does an eval on the header lines of\n\t\t\t// the page and saves the results into a string\n\t\t\tob_start();\n\t\t\teval($code);\n\t\t\t$html .= ob_get_contents();\n\t\t\tob_end_clean();\n\t\t}\n\n\t\treturn $html;\n }", "public static function head()\n {\n require_once(getcwd() . \"/views/Template/head.php\");\n }", "function loadCSS($width, $height) {\n\t\t$header = (isset($this->conf['pathToCSS'])) ? '<link rel=\"stylesheet\" href=\"'.$this->getPath($this->conf['pathToCSS']).'\" type=\"text/css\" />' : '';\n\t\t$header.= '<style type=\"text/css\" media=\"screen\">\n\t\t\t#slider { width:'.$width.'px; }\n\t\t\t.scroll { height:'.$height.'px; }\n\t\t\t.scrollContainer div.panel { width:'.$width.'px; height:'.$height.'px; }\n\t\t</style\n\t\t';\n\t\t$GLOBALS['TSFE']->additionalHeaderData['tan3_glidercss'] = $header;\n\n\t}", "private function set_styles()\n {\n\n if (count($this->assets_css['global']) > 0)\n {\n $this->template->append_metadata('<!-- BEGIN GLOBAL MANDATORY STYLES -->');\n foreach($this->assets_css['global'] as $asset)\n {\n $this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . '../../themes/public/css/' . $asset . '\" media=\"screen\" />');\n }\n }\n if (isset($this->assets_css['page_style']) && count($this->assets_css['page_style']) > 0)\n {\n $this->template->append_metadata('<!-- BEGIN PAGE STYLES -->');\n foreach($this->assets_css['page_style'] as $asset)\n {\n $this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . '../../themes/public/css/' . $asset . '\" media=\"screen\" />');\n }\n }\n\n // Webkit based browsers\n //$this->template->append_metadata('<link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/webkit.css\" media=\"screen\" />');\n\n // Internet Explorer styles\n $this->template->append_metadata('<!--[if IE 6]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie6.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 7]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie7.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 8]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie8.css\" media=\"screen\" /><![endif]-->');\n $this->template->append_metadata('<!--[if IE 9]><link rel=\"stylesheet\" type=\"text/css\" href=\"' . $this->config->item('base_url') . 'assets/css/cross_browser/ie9.css\" media=\"screen\" /><![endif]-->');\n }", "function basecss_pied_de_biche($head){\n\t$search = \"<link\";\n\tif (preg_match(\",<link\\s[^>]*stylesheet,Uims\", $head, $match))\n\t\t$search = $match[0];\n\t$p = stripos($head, $search);\n\t$h = recuperer_fond('inclure/basecss-head',array());\n\t$h = \"\\n\".trim($h).\"\\n\";\n\n\t$head = substr_replace($head, $h, $p, 0);\n\treturn $head;\n}", "function head() { /*{{{*/\n\techo \"\n<HTML><HEAD>\n<META http-equiv=Content-Type content='text/html; charset=utf-8' />\n<title>admin</title>\n</HEAD>\n<link rel='stylesheet' type='text/css' href='css/css.css'>\n<link rel='stylesheet' type='text/css' href='css/datepicker.css' />\n<script type='text/javascript' src='js/jquery.js'></script>\n<script type='text/javascript' src='js/taffy-min.js'></script>\n<script type='text/javascript' src='js/moment.min.js'></script>\n<script type='text/javascript' src='js/datepicker.js'></script>\n<script type='text/javascript' src='js/script.js'></script>\n\";\n}", "private function do_header() {\n $m_header = '';\n $m_header .= '<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />';\n $m_header .= '<meta http-equiv=\"Content-Language\" content=\"en-gb\" />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/reset.css type=text/css />';\n // $m_header .= '<link rel=stylesheet href=' . $this->c_path . '/../css/style.css type=text/css />';\n $this->c_header = $m_header;\n }", "function add_style_definitions() {\n\t\t\t\t$options = $this->get_options();\n\t\t\t\tif( 'yes' === $options['add_styles_to_header'] ) {\n\t\t\t\t\techo \"<!-- Styles added by Cap & Run plugin -->\\n\";\n\t\t\t\t\techo \"<style type=\\\"text/css\\\">\\n\";\n\t\t\t\t\techo $options['styles_to_add'];\n\t\t\t\t\techo \"</style>\\n\";\n\t\t\t\t\techo \"<!-- End of Cap & Run style additions -->\\n\\n\";\n\t\t\t\t}\n\t\t\t}", "public function styles(){\n\n\t\t//wp_enqueue_style('component-header_fixed-style', $this->directory_uri . '/assets/dist/css/headerFixed.css');\n\t}", "protected function addCssToBackend() {\n\t\t$this->backendReference->addCssFile('newspaper-role', t3lib_extMgm::extRelPath($this->extkey) . 'mod_role/newspaper_role.css');\n\t}", "function addheadercode_func() {\n echo '<link type=\"text/css\" rel=\"stylesheet\" href=\"'.ILIBRARY_DIR_URL.'styles/generic.css\" />' . \"\\n\";\n}", "public function _assign_xoops_header()\n {\n $header_class = webphoto_xoops_header::getInstance($this->_DIRNAME, $this->_TRUST_DIRNAME);\n $header_class->set_flag_css(true);\n $header_class->assign_for_main();\n }", "public function AddHeadScript(Script $script){\r\n\t\t$this->head->AddScript($script);\r\n\t}", "function add_css() \n {\n if( $this->options['use-css-file'] ) {\n wp_register_style( 'bbquotations-style' , $this->plugin_url . 'bbquotations-style.css');\n wp_enqueue_style( 'bbquotations-style' );\n } \n }", "public function hookDisplayBackOfficeHeader()\n {\n $this->context->controller->addCSS('modules/backup_pro/views/css/backup_pro.css', true);\n }", "function dw2_header_prive($flux) {\r\n\t\t$flux .= '<link rel=\"stylesheet\" type=\"text/css\" href=\"'._DIR_PLUGIN_DW2.'dw2_styles.css\" />'.\"\\n\";\r\n\t\t$flux .= '<script type=\"text/javascript\" src=\"'._DIR_PLUGIN_DW2.'dw2_back.js\"></script>'.\"\\n\";\r\n\t\treturn $flux;\r\n\t}", "function add_my_stylesheet() {\n}", "public function AddHeadMetaTag($meta){\r\n\t\t$this->head->AddMetaTag($meta);\r\n\t}", "function head_content()\n{\n?>\n <style type=\"text/css\">\nb a\t{text-decoration: none;\n\tcolor: #57f;}\nb a:visited {color: #57f;}\n\n.box\t{font-size: 10pt;}\n </style>\n\n <script type=\"text/javascript\">\n </script>\n<?php\n}", "function add_css() {\n // È possibile aggiungere un file css presente nella cartella del tema\n wp_register_style('normalize', get_template_directory_uri() . '/vendor/normalize/normalize.css', array(), null, 'all');\n wp_enqueue_style('normalize');\n wp_register_style('main', get_template_directory_uri() . '/css/main.css', array('normalize'), null, 'all');\n wp_enqueue_style('main');\n\n // È possibile anche aggiungere un url remoto (es. Google Fonts)\n // wp_register_style('webfont', 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,500,600,700,800,900', array(), null, 'all');\n // wp_enqueue_style('webfont');\n\n // Inoltre è possibile aggiungere un css solo se una determinata condizione è vera\n // In questo esempio aggiungiamo il file home.css solo se ci troviamo sulla pagina di home\n // if(is_home()) {\n // wp_register_style('home', get_template_directory_uri() . '/css/home.css', array(), null, 'all');\n // wp_enqueue_style('home');\n // }\n}" ]
[ "0.7833647", "0.7554252", "0.7343671", "0.7265114", "0.72294366", "0.72242236", "0.72223276", "0.72029287", "0.7159111", "0.7054787", "0.70039874", "0.69182116", "0.68969685", "0.6892275", "0.68771553", "0.6861592", "0.68417364", "0.68340147", "0.6755702", "0.6734623", "0.6603268", "0.6596416", "0.65936273", "0.6592997", "0.6592823", "0.6571901", "0.6571901", "0.6571901", "0.6571901", "0.6571901", "0.6571057", "0.6559376", "0.6549524", "0.6545287", "0.6527556", "0.65145874", "0.6512866", "0.6498618", "0.6472397", "0.6465197", "0.6459629", "0.64368325", "0.6424496", "0.64209175", "0.63910735", "0.6389934", "0.6376108", "0.63744926", "0.6358657", "0.6351653", "0.63504016", "0.63463247", "0.6312958", "0.63030624", "0.628135", "0.628135", "0.628135", "0.6265721", "0.62649596", "0.62646854", "0.62639666", "0.62583005", "0.6243797", "0.6241418", "0.6218437", "0.61993575", "0.6198869", "0.6197316", "0.6194736", "0.6190734", "0.6188226", "0.61708874", "0.61614203", "0.6155183", "0.614388", "0.6143504", "0.61281246", "0.6123324", "0.61128795", "0.6109288", "0.60939205", "0.6084171", "0.60828227", "0.60705036", "0.60640806", "0.60622215", "0.60597265", "0.6058474", "0.6049918", "0.6042511", "0.6042171", "0.60392046", "0.60335803", "0.6033399", "0.60294384", "0.6029422", "0.60275394", "0.6014081", "0.6012302", "0.59977907", "0.59899443" ]
0.0
-1
/ $autofocus parameter deprecated
function get_field(&$qa_content, $content, $format, $fieldname, $rows) { $isConfigLoaded = $this->load_file($qa_content, "ueditor.config.js"); $isSrcLoaded = $this->load_file($qa_content, "ueditor.all.js"); $uploadimages = qa_opt('ueditor_editor_upload_images'); $uploadall = $uploadimages && qa_opt('ueditor_editor_upload_all'); if(!$isSrcLoaded) { $qa_content['script_onloads'][] = array( 'var editor = new UE.ui.Editor();'. 'editor.render("qa-ueditor");' ); } if ($format == 'html') $html = $content; else $html = qa_html($content, true); return array( 'tags' => 'NAME="'.$fieldname.'" ID="qa-ueditor"', 'value' => qa_html($html), 'rows' => $rows, ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAutofocus()\n {\n return $this->getAttribute(\"autofocus\");\n }", "function setAutofocus($value)\n {\n $this->setAttribute(\"autofocus\", $value);\n return $this;\n }", "public function setFocus($focus);", "public function getFocus() {}", "public function autofocus(bool $value = true): self\n {\n $new = clone $this;\n $new->options['autofocus'] = $value;\n return $new;\n }", "public function setFocus($focus) {\n $this->focus = $focus;\n }", "public function define_input_focus($column_name)\r\n\t\t{\r\n\t\t\t$this->c_default_input_focus = $column_name;\r\n\t\t}", "public function setFocus(\\SetaPDF_Core_Document_Action $action) {}", "function setAuto($auto_mode=true)\n {\n $this->auto_mode = $auto_mode;\n }", "public function focus() {\n $this->callMethod( 'windowObject.focus' );\n }", "function messaging_set_focus_js(){\n\t?>\n\t<SCRIPT LANGUAGE='JavaScript'>\n\t\tsetTimeout(\"tinyMCE.execCommand('mceFocus', false, 'message_content');window.blur();window.focus();tinyMCE.execCommand('mceFocus', false, 'message_content');\", 0);\n\t</SCRIPT>\n\t<?php\n}", "public function focus($field)\n\t{\t\n\t\t$s = 'var field_%s = document.getElementById(\"%s\");'.\"\\n\"\n\t\t\t.\"if (field_%s) {\\n\"\n\t\t\t\t.\"field_%s.setFocus();\\n\"\n\t\t\t.\"}\\n\";\n\t\t\t\n\t\treturn str_replace('%s', $field, $s);\n\t}", "public function getFieldAutoCompleteInmueble() {\n\t\t\n\t}", "public function getAutoResponderToAddressField() { return $this->_autoResponderToAddressField; }", "public function setAutoResponderToAddressField($value) { $this->_autoResponderToAddressField = $value; }", "function autonomie_comment_autocomplete( $fields ) {\n\t$fields['author'] = preg_replace( '/<input/', '<input autocomplete=\"nickname name\" enterkeyhint=\"next\" ', $fields['author'] );\n\t$fields['email'] = preg_replace( '/<input/', '<input autocomplete=\"email\" inputmode=\"email\" enterkeyhint=\"next\" ', $fields['email'] );\n\t$fields['url'] = preg_replace( '/<input/', '<input autocomplete=\"url\" inputmode=\"url\" enterkeyhint=\"send\" ', $fields['url'] );\n\n\treturn $fields;\n}", "public function getAutoResponderFromAddress() { return $this->_autoResponderFromAddress; }", "public function getAutoResponderFromName() { return $this->_autoResponderFromName; }", "function capezzahill_skip_link_focus_fix() {\r\n\t?>\r\n\t<script>\r\n\t/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener(\"hashchange\",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);\r\n\t</script>\r\n\t<?php\r\n}", "public function setAutoResponderFromAddress($value) { $this->_autoResponderFromAddress = $value; }", "public function setAutoComplete( $autoComplete )\n\t{\n\t\t$this->setAttribute( \"autocomplete\", $autoComplete );\n\t}", "function getjsOnFocus () { return $this->readjsOnFocus(); }", "function getjsOnFocus () { return $this->readjsOnFocus(); }", "function getjsOnFocus () { return $this->readjsOnFocus(); }", "public function setAutoResponderFromName($value) { $this->_autoResponderFromName = $value; }", "public function autocomplete_callback();", "function wpg_skip_link_focus_fix() {\n\t// The following is minified from js/assets/skip-link-focus-fix.js`.\n\t?>\n\t<script>\n\t/(trident|msie)/i.test(navigator.userAgent)&&document.getElementById&&window.addEventListener&&window.addEventListener(\"hashchange\",function(){var t,e=location.hash.substring(1);/^[A-z0-9_-]+$/.test(e)&&(t=document.getElementById(e))&&(/^(?:a|select|input|button|textarea)$/i.test(t.tagName)||(t.tabIndex=-1),t.focus())},!1);\n\t</script>\n\t<?php\n}", "public function autoSuggestList()\n {\n // TODO: Implement autoSuggestList() method.\n }", "private function retrieve_focuskw() {\n\t\t$replacement = null;\n\n\t\tif ( ! empty( $this->args->ID ) ) {\n\t\t\t$focus_kw = WPSEO_Meta::get_value( 'focuskw', $this->args->ID );\n\t\t\tif ( $focus_kw !== '' ) {\n\t\t\t\t$replacement = $focus_kw;\n\t\t\t}\n\t\t}\n\n\t\treturn $replacement;\n\t}", "public function setAutoResponderTpl($value) { $this->_autoResponderTpl = $value; }", "function draw_user_auto_complete_field($args = '') {\r\n global $wpi_settings, $wpdb, $wp_scripts;\r\n wp_enqueue_script('jquery-ui-autocomplete');\r\n\r\n //** Extract passed args and load defaults */\r\n extract(wp_parse_args($args, array(\r\n 'input_name' => 'wpi[new_invoice][user_email]',\r\n 'input_class' => 'input_field',\r\n 'input_id' => 'wp_invoice_userlookup',\r\n 'input_style' => ''\r\n )), EXTR_SKIP);\r\n ?>\r\n <script type=\"text/javascript\">\r\n jQuery(document).ready(function() {\r\n jQuery(\"#<?php echo $input_id; ?>\").autocomplete({\r\n source:ajaxurl+'?action=wpi_user_autocomplete_handler',\r\n minLength: 3\r\n });\r\n jQuery(\"#<?php echo $input_id; ?>\").focus();\r\n });\r\n </script>\r\n <input type=\"text\" name=\"<?php echo $input_name; ?>\" class=\"<?php echo $input_class; ?>\" id=\"<?php echo $input_id; ?>\" style=\"<?php echo $input_style; ?>\" />\r\n <?php\r\n }", "function activate() {\r\r\n }", "public function setAutoResponderCCName($value) { $this->_autoResponderCCName = $value; }", "public function autoComplete (\\stdClass $param);", "public function setAutoSelect($autoSelect)\n {\n $this->options['autoSelect'] = $autoSelect;\n return $this;\n }", "function minorite_textfield($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = isset($element['#attributes']['type']) ? $element['#attributes']['type'] : 'text';\n element_set_attributes($element, array('id', 'name', 'value', 'size', 'maxlength', 'placeholder'));\n _form_set_class($element, array('form-text'));\n\n // Adds attributes required and readonly.\n if (!empty($element['#required'])) {\n $element['#attributes']['required'] = '';\n }\n if (!empty($element['#readonly'])) {\n $element['#attributes']['readonly'] = 'readonly';\n }\n\n $extra = '';\n if ($element['#autocomplete_path'] && drupal_valid_path($element['#autocomplete_path'])) {\n drupal_add_library('system', 'drupal.autocomplete');\n $element['#attributes']['class'][] = 'form-autocomplete';\n\n $attributes = array();\n $attributes['type'] = 'hidden';\n $attributes['id'] = $element['#attributes']['id'] . '-autocomplete';\n $attributes['value'] = url($element['#autocomplete_path'], array('absolute' => TRUE));\n $attributes['disabled'] = 'disabled';\n $attributes['class'][] = 'autocomplete';\n $extra = '<input' . drupal_attributes($attributes) . ' />';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />' . $extra;\n}", "public function activate()\n {\n $this->find('css', '.filter-criteria-selector span.caret')->click();\n }", "public function getAutoResponderSubject() { return $this->_autoResponderSubject; }", "public function getAutoSelect()\n {\n return $this->options['autoSelect'];\n }", "public function setAutoHead($auto) {\n\t\t$this->autoHead = $auto;\n\t}", "public function setAutoEscape($autoEscape);", "public function setAutoResponderSubject($value) { $this->_autoResponderSubject = $value; }", "function shownote($note){\n\treturn \"onfocus=\\\"note('<b>NOTE:</b><br>$note');\\\"\n\t\t\tonblur=\\\"note('');\\\"\";\n}", "public function cli_keyboardInput() {}", "public function setAutoCapitalize( $autoCapitalize )\n\t{\n\t\t$this->setAttribute( \"autocapitalize\", $autoCapitalize );\n\t}", "public function show(Auto $auto)\n {\n return $auto; \n\n }", "public function autoCompleteDomainUsername()\n {\n $this->autocomplete = true;\n $script = Javascript::buildAutocomplete(self::DOMAIN_API_URL . '/autocompleteDomainUser/', $this->getId());\n $this->setScript($script);\n return $this;\n }", "public function Autocomplet($Nombre,$Descripcion,$Onclick,$Funcion,$id_Nombre){\n\t\t/*?>\n <input type=\"text\" id=\"<?PHP echo $Nombre?>\" name=\"<?PHP echo $Nombre?>\" autocomplete=\"off\" placeholder=\"<?PHP echo $Descripcion?>\" style=\"text-align:center;width:90%;\" size=\"70\" onClick=\"<?PHP echo $Onclick?>();\" onKeyPress=\"<?PHP echo $Funcion?>()\" /><input type=\"hidden\" id=\"<?PHP echo $id_Nombre?>\" />\n \n <?php */\n\t\t}", "function exposed_form_alter(&$form, &$form_state) {\n parent::exposed_form_alter($form, $form_state);\n\n if (!empty($this->options['make_autocompletable'])) {\n foreach ($this->options['make_autocompletable'] as $filter) {\n $field_name = $this->view->filter[$filter]->content_field['field_name'];\n $type_name = $this->view->filter[$filter]->content_field['type_name'];\n $form[$filter]['#autocomplete_path'] = 'autocomplete_widgets/'. $type_name .'/'. $field_name;\n }\n }\n }", "function post_form_autocomplete_off()\n {\n }", "function activate() {\n }", "function InputTextBox($VariableName,$default,$maxlength,$size,$autres=\"\")\t{\n\t\t\tif($_SESSION[\"readonly\"]==\"true\")\n\t\t\t\t$cache=\"readonly disabled\";\n\t\t\t$res=\"\";\n\t\t\t$res.=\"<input type=\\\"text\\\" name=\\\"$VariableName\\\" id=\\\"$VariableName\\\" maxlength=\\\"$maxlength\\\" size=\\\"$size\\\" value=\\\"$default\\\" $autres $cache>\";\n\t\t\treturn $res;\n\t}", "public function setAutoText($auto_text)\n {\n $this->auto_text = $this->message['auto_text'] = $auto_text;\n }", "static function renderAutoCompletedField($url, $name, $value = null, $label = null, $attributes = null, $acOptions = null, $noli = false)\n {\n if (!$noli) echo '<li>';\n if ($label) echo '<label>'.textH8($label).'</label>';\n if (!is_array($attributes)) $attributes = array();\n $attributes['type'] = 'text';\n $attributes['name'] = $name;\n $attributes['value'] = $value;\n if (!isset($attributes['id'])) $attributes['id'] = $name;\n\n self::renderSingleTag('input', $attributes);\n echo '<div id=\"_acdiv_' . $name . '\" style=\"display: none;\" class=\"autoComplete\"></div>';\n\n // Add auto-completer behaviour?\n if (is_array($acOptions))\n {\n // Set default auto-completer options\n $options = array('min_chars' => 1);\n\n foreach($acOptions as $option => $val)\n {\n $options[$option] = $val;\n }\n\n // Render javascript\n echo '<script type=\"text/javascript\">';\n echo ' _ac_' . $name . '= new Ajax.Autocompleter(\\'' . $name . '\\', \\'_acdiv_' . $name . '\\', \\'' . $url . '?autoCompleteName=' . $name .'\\'';\n echo ', '.self::getJavascriptOptions($options).');';\n echo '</script>';\n }\n if (!$noli) echo '</li>';\n }", "public function activate() {\n\t\t\n\t}", "public function setAutoResponderCC($value) { $this->_autoResponderCC = $value; }", "public function isAutoWidth() {\n\t\tif ($this->_width==0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function activate();", "public function activate();", "function fluid_edge_contact_form7_focus_styles_1() {\n\t\t$selector = array(\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-text:focus',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-number:focus',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-date:focus',\n\t\t\t'.cf7_custom_style_1 textarea.wpcf7-form-control.wpcf7-textarea:focus',\n\t\t\t'.cf7_custom_style_1 select.wpcf7-form-control.wpcf7-select:focus',\n\t\t\t'.cf7_custom_style_1 input.wpcf7-form-control.wpcf7-quiz:focus'\n\t\t);\n\t\t$styles = array();\n\n\t\t$color = fluid_edge_options()->getOptionValue('cf7_style_1_focus_text_color');\n\t\tif($color !== ''){\n\t\t\t$styles['color'] = $color;\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_1 input:focus::-webkit-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_1 textarea:focus::-webkit-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_1 input:focus:-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_1 textarea:focus:-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_1 input:focus::-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_1 textarea:focus::-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_1 input:focus:-ms-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_1 textarea:focus:-ms-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t}\n\n\t\t$background_color = fluid_edge_options()->getOptionValue('cf7_style_1_focus_background_color');\n\t\t$background_opacity = 1;\n\t\tif($background_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_1_focus_background_transparency') !== ''){\n\t\t\t\t$background_opacity = fluid_edge_options()->getOptionValue('cf7_style_1_focus_background_transparency');\n\t\t\t}\n\t\t\t$styles['background-color'] = fluid_edge_rgba_color($background_color,$background_opacity);\n\t\t}\n\n\t\t$border_color = fluid_edge_options()->getOptionValue('cf7_style_1_focus_border_color');\n\t\t$border_opacity = 1;\n\t\tif($border_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_1_focus_border_transparency') !== ''){\n\t\t\t\t$border_opacity = fluid_edge_options()->getOptionValue('cf7_style_1_focus_border_transparency');\n\t\t\t}\n\t\t\t$styles['border-color'] = fluid_edge_rgba_color($border_color,$border_opacity);\n\t\t}\n\n\t\techo fluid_edge_dynamic_css($selector, $styles);\n\t}", "function ncurses_typeahead($fd)\n{\n}", "public function setAutoResponderBCCName($value) { $this->_autoResponderBCCName = $value; }", "function waitCursorOn()\n\t{\n\t\t$this->bWaitCursor = true;\n\t}", "function activate() \n\t{\n\t\t$this->fields = array(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'name'\t\t=> 'Reader',\n\t\t\t\t\t\t\t\t'count'\t\t=> 0\n\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'name'\t\t=> 'Commentator',\n\t\t\t\t\t\t\t\t'count'\t\t=> 10\n\t\t\t\t\t\t\t)\n\t\t);\n\t\t\n\t\tadd_option('_user_rank_comments_fields', $this->fields);\t\n\t}", "function journalize_auto_tag_activate() {\n\t$options = get_option('journalize');\n\t$options['auto_tag'] = true;\n\tupdate_option('journalize', $options);\n}", "public function getAutoResponderTpl() { return $this->_autoResponderTpl; }", "function ldap_autocomplete_dummy_function($l_field_def, $l_custom_field_value) {\n#\tdie(__FILE__ . ':'. __LINE__ . ' ERROR! You need the custom field event patches!');\n}", "function user_autocomplete() {\n\t\t$json = $this->user_model->get_users_autocomplete(str_replace('+', ' ', strtolower($_GET['term'])));\n\t\t\n\t\t$this->output->set_content_type('application/json')->set_output($json);\n\t}", "function doedit(){\r\n\t\tif(!isset($this->post['editsubmit'])){\r\n\t\t\t$did=isset($this->get[2])?$this->get[2]:'';\r\n\t\t\tif(!is_numeric($did)){\r\n\t\t\t\t$this->message($this->view->lang['docIdMustNum'],'BACK');\r\n\t\t\t}\r\n\t\t\t$focus=$this->db->fetch_by_field('focus','did',$did);\r\n\t\t\t$focus['time']=$this->date($focus['time']);\r\n\t\t\t$this->view->assign(\"focus\",$focus);\r\n\t\t\t$this->view->display(\"admin_focus_content\");\r\n\t\t}else{\r\n\t\t\t$did=isset($this->post['did'])?$this->post['did']:'';\r\n\t\t\tif(!is_numeric($did)){\r\n\t\t\t\t$this->message($this->view->lang['docIdMustNum'],'BACK');\r\n\t\t\t}\r\n\t\t\t$summary=_string::hiconv($this->post['summary']);\r\n\t\t\t$image=_string::hiconv($this->post['image']);\r\n\t\t\t$order=$this->post['displayorder'];\r\n\t\t\t$type=$this->post['doctype'];\r\n\t\t\tif(is_numeric($order)&&$_ENV['doc']->save_focus_content($did,$summary,$image,$order,$type)){\r\n\t\t\t\t$this->cache->removecache('data_'.$GLOBALS['theme'].'_index');\r\n\t\t\t\t$this->message($this->view->lang['docEditSuccess'],\"index.php?admin_focus-edit-$did\");\r\n\t\t\t}else{\r\n\t\t\t\t$this->message($this->view->lang['docEditFail'],'BACK');\r\n\t\t\t}\r\n\t\t}\r\n\t}", "abstract function &getArgumentAltControl();", "function install_search_form($deprecated = \\true)\n {\n }", "function acf_select_input($attrs = array())\n{\n}", "public function getAutoResponderCCName() { return $this->_autoResponderCCName; }", "function jumpoff_auto_list ( $textarea ){\n $lines = explode(\"\\n\", $textarea);\n if ( !empty($lines) ) {\n foreach ( $lines as $line ) {\n echo '<li>'. trim( $line ) .'</li>';\n }\n }\n}", "function fluid_edge_contact_form7_focus_styles_3() {\n $selector = array(\n '.cf7_custom_style_3 input.wpcf7-form-control.wpcf7-text:focus',\n '.cf7_custom_style_3 input.wpcf7-form-control.wpcf7-number:focus',\n '.cf7_custom_style_3 input.wpcf7-form-control.wpcf7-date:focus',\n '.cf7_custom_style_3 textarea.wpcf7-form-control.wpcf7-textarea:focus',\n '.cf7_custom_style_3 select.wpcf7-form-control.wpcf7-select:focus',\n '.cf7_custom_style_3 input.wpcf7-form-control.wpcf7-quiz:focus'\n );\n $styles = array();\n\n $color = fluid_edge_options()->getOptionValue('cf7_style_3_focus_text_color');\n if($color !== ''){\n $styles['color'] = $color;\n echo fluid_edge_dynamic_css(\n array(\n '.cf7_custom_style_3 input:focus::-webkit-input-placeholder',\n '.cf7_custom_style_3 textarea:focus::-webkit-input-placeholder'\n ),\n array('color' => $color)\n );\n echo fluid_edge_dynamic_css(\n array(\n '.cf7_custom_style_3 input:focus:-moz-placeholder',\n '.cf7_custom_style_3 textarea:focus:-moz-placeholder'\n ),\n array('color' => $color)\n );\n echo fluid_edge_dynamic_css(\n array(\n '.cf7_custom_style_3 input:focus::-moz-placeholder',\n '.cf7_custom_style_3 textarea:focus::-moz-placeholder'\n ),\n array('color' => $color)\n );\n echo fluid_edge_dynamic_css(\n array(\n '.cf7_custom_style_3 input:focus:-ms-input-placeholder',\n '.cf7_custom_style_3 textarea:focus:-ms-input-placeholder'\n ),\n array('color' => $color)\n );\n }\n\n $background_color = fluid_edge_options()->getOptionValue('cf7_style_3_focus_background_color');\n $background_opacity = 1;\n if($background_color !== ''){\n if(fluid_edge_options()->getOptionValue('cf7_style_3_focus_background_transparency') !== ''){\n $background_opacity = fluid_edge_options()->getOptionValue('cf7_style_3_focus_background_transparency');\n }\n $styles['background-color'] = fluid_edge_rgba_color($background_color,$background_opacity);\n }\n\n $border_color = fluid_edge_options()->getOptionValue('cf7_style_3_focus_border_color');\n $border_opacity = 1;\n if($border_color !== ''){\n if(fluid_edge_options()->getOptionValue('cf7_style_3_focus_border_transparency') !== ''){\n $border_opacity = fluid_edge_options()->getOptionValue('cf7_style_3_focus_border_transparency');\n }\n $styles['border-color'] = fluid_edge_rgba_color($border_color,$border_opacity);\n }\n\n echo fluid_edge_dynamic_css($selector, $styles);\n }", "function missing_parameter($field){\n\t\t\treturn \"<p class='alert alert-danger'>Some fields have not been filled in: <b>$field</b></p>\n\t\t\t <script>$(document).ready(function(){\n\t\t\t \t\t$('[name=\\\"$field\\\"]').focus();\n\t\t\t \t});\n\t\t\t </script>\";\n }", "function acf_text_input($attrs = array())\n{\n}", "function fluid_edge_contact_form7_focus_styles_2() {\n\t\t$selector = array(\n\t\t\t'.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-text:focus',\n\t\t\t'.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-number:focus',\n\t\t\t'.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-date:focus',\n\t\t\t'.cf7_custom_style_2 textarea.wpcf7-form-control.wpcf7-textarea:focus',\n\t\t\t'.cf7_custom_style_2 select.wpcf7-form-control.wpcf7-select:focus',\n\t\t\t'.cf7_custom_style_2 input.wpcf7-form-control.wpcf7-quiz:focus'\n\t\t);\n\t\t$styles = array();\n\n\t\t$color = fluid_edge_options()->getOptionValue('cf7_style_2_focus_text_color');\n\t\tif($color !== ''){\n\t\t\t$styles['color'] = $color;\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_2 input:focus::-webkit-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_2 textarea:focus::-webkit-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_2 input:focus:-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_2 textarea:focus:-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_2 input:focus::-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_2 textarea:focus::-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_2 input:focus:-ms-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_2 textarea:focus:-ms-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t}\n\n\t\t$background_color = fluid_edge_options()->getOptionValue('cf7_style_2_focus_background_color');\n\t\t$background_opacity = 1;\n\t\tif($background_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_2_focus_background_transparency') !== ''){\n\t\t\t\t$background_opacity = fluid_edge_options()->getOptionValue('cf7_style_2_focus_background_transparency');\n\t\t\t}\n\t\t\t$styles['background-color'] = fluid_edge_rgba_color($background_color,$background_opacity);\n\t\t}\n\n\t\t$border_color = fluid_edge_options()->getOptionValue('cf7_style_2_focus_border_color');\n\t\t$border_opacity = 1;\n\t\tif($border_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_2_focus_border_transparency') !== ''){\n\t\t\t\t$border_opacity = fluid_edge_options()->getOptionValue('cf7_style_2_focus_border_transparency');\n\t\t\t}\n\t\t\t$styles['border-color'] = fluid_edge_rgba_color($border_color,$border_opacity);\n\t\t}\n\n\t\techo fluid_edge_dynamic_css($selector, $styles);\n\t}", "public function getAutoResponderCC() { return $this->_autoResponderCC; }", "function get_search_inputter($row)\n\t{\n\t\treturn NULL;\n\t}", "function onBeforeEdit() {\n\t\treturn true;\n\t}", "protected function activateSelf() {}", "public function autoLabelNeeded();", "function acf_textarea_input($attrs = array())\n{\n}", "private function getAutoScope(){\n $model=$this->model;\n $static=$this->model->subClassOf;\n if(property_exists($static,\"scope\") && array_key_exists(\"auto\",$static->scope)){\n $this->autoScope=$static->scope['auto'];\n }\n if($this->autoScope!==null && !is_array($this->autoScope)){\n $this->autoScope=[$this->autoScope];\n }\n\n $this->scope($this->autoScope,$model);\n\n }", "public function coconutSearchPatient($username,$search) {\necho '<script type=\"text/javascript\" src=\"http://'.$this->getMyUrl().'/jquery.js\"></script>';\necho '<script type=\"text/javascript\" src=\"http://'.$this->getMyUrl().'/jquery.autocomplete.js\"></script>';\necho '<link rel=\"stylesheet\" type=\"text/css\" href=\"http://'.$this->getMyUrl().'/jquery.autocomplete.css\" />';\n\necho \"<script type='text/javascript'>\";\necho '\n\t$().ready(function() {\n\t $(\"#patientSearch\").autocomplete(\"'.$search.'\", {\n\t width: 260,\n\t matchContains: true,\n\t selectFirst: false\n \n\t }).result(function(event, data, formatted) {\n\nwindow.location=\"http://'.$this->getMyUrl().'/COCONUT/currentPatient/patientInterface.php?completeName=\"+data+\"&username='.$username.' \"; \n\n });\n;\n\t});\n\n';\n\necho \"\nvar patient = 'Search Patient';\nfunction SetMsg (txt,active) {\n if (txt == null) return;\n \n \n if (active) {\n if (txt.value == patient) txt.value = ''; \n } else {\n if (txt.value == '') txt.value = patient;\n }\n}\n\nwindow.onload=function() { SetMsg(document.getElementById('patientSearch', false)); }\n\n\";\necho \"</script>\";\necho \"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n<input type=text id='patientSearch' style=' \n\tbackground:#FFFFFF url(http://\".$this->getMyUrl().\"/COCONUT/myImages/search.jpeg) no-repeat 4px 4px;\n\tpadding:4px 4px 4px 22px;\n\tborder:1px solid #CCCCCC;\n\twidth:400px;\n\theight:25px;' class='txtBox'\n\tonfocus='SetMsg(this, true);'\n \tonblur='SetMsg(this,false);'\n\tvalue='Search Patient'\n>\";\n\n\n}", "public function autoBind($value) {\n return $this->setProperty('autoBind', $value);\n }", "function setActive() ;", "abstract public function getAutoinc();", "public function setAutoResponderReplyToName($value) { $this->_autoResponderReplyToName = $value; }", "function fluid_edge_contact_form7_focus_styles_4() {\n\t\t$selector = array(\n\t\t\t'.cf7_custom_style_4 input.wpcf7-form-control.wpcf7-text:focus',\n\t\t\t'.cf7_custom_style_4 input.wpcf7-form-control.wpcf7-number:focus',\n\t\t\t'.cf7_custom_style_4 input.wpcf7-form-control.wpcf7-date:focus',\n\t\t\t'.cf7_custom_style_4 textarea.wpcf7-form-control.wpcf7-textarea:focus',\n\t\t\t'.cf7_custom_style_4 select.wpcf7-form-control.wpcf7-select:focus',\n\t\t\t'.cf7_custom_style_4 input.wpcf7-form-control.wpcf7-quiz:focus'\n\t\t);\n\t\t$styles = array();\n\t\t\n\t\t$color = fluid_edge_options()->getOptionValue('cf7_style_4_focus_text_color');\n\t\tif($color !== ''){\n\t\t\t$styles['color'] = $color;\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_4 input:focus::-webkit-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_4 textarea:focus::-webkit-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_4 input:focus:-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_4 textarea:focus:-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_4 input:focus::-moz-placeholder',\n\t\t\t\t\t'.cf7_custom_style_4 textarea:focus::-moz-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t\techo fluid_edge_dynamic_css(\n\t\t\t\tarray(\n\t\t\t\t\t'.cf7_custom_style_4 input:focus:-ms-input-placeholder',\n\t\t\t\t\t'.cf7_custom_style_4 textarea:focus:-ms-input-placeholder'\n\t\t\t\t),\n\t\t\t\tarray('color' => $color)\n\t\t\t);\n\t\t}\n\t\t\n\t\t$background_color = fluid_edge_options()->getOptionValue('cf7_style_4_focus_background_color');\n\t\t$background_opacity = 1;\n\t\tif($background_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_4_focus_background_transparency') !== ''){\n\t\t\t\t$background_opacity = fluid_edge_options()->getOptionValue('cf7_style_4_focus_background_transparency');\n\t\t\t}\n\t\t\t$styles['background-color'] = fluid_edge_rgba_color($background_color,$background_opacity);\n\t\t}\n\t\t\n\t\t$border_color = fluid_edge_options()->getOptionValue('cf7_style_4_focus_border_color');\n\t\t$border_opacity = 1;\n\t\tif($border_color !== ''){\n\t\t\tif(fluid_edge_options()->getOptionValue('cf7_style_4_focus_border_transparency') !== ''){\n\t\t\t\t$border_opacity = fluid_edge_options()->getOptionValue('cf7_style_4_focus_border_transparency');\n\t\t\t}\n\t\t\t$styles['border-color'] = fluid_edge_rgba_color($border_color,$border_opacity);\n\t\t}\n\t\t\n\t\techo fluid_edge_dynamic_css($selector, $styles);\n\t}", "function getAutocomplete() { return $this->readAutocomplete(); }", "public function activate() {\n\n }", "public function activate() {\n\n }", "public function activate() {\n\n }", "function jumpoff_auto_span ( $textarea ){\n $lines = explode(\"\\n\", $textarea);\n if ( !empty($lines) ) {\n foreach ( $lines as $line ) {\n echo '<span>'. trim( $line ) .'</span>';\n }\n }\n}", "function autoComplete()\n\t{\n\t\t\t\n\t\t$aUsers = array();\n\n\t\t$sql=\"SELECT title FROM products_table\";\n\t\t$obj = new Bin_Query();\n\t\t$obj->executeQuery($sql);\n\t\t//echo \"<pre>\";\n\t\t//print_r($obj->records);\n\t\t$count=count($obj->records);\n\t\tif($count!=0)\n\t\t{\n\t\t\tfor($i=0;$i<$count;$i++)\n\t\t\t\t$aUsers[]=$obj->records[$i]['title'];\n\t\t}\n\t\telse\n\t\t\t$aUsers[]='0 Results';\t\t\n\t\n\t\n\t\t$input = strtolower( $_GET['input'] );\n\t\t$len = strlen($input);\n\t\t$limit = isset($_GET['limit']) ? (int) $_GET['limit'] : 0;\n\t\t\n\t\t\n\t\t$aResults = array();\n\t\t$count = 0;\n\t\t\n\t\tif ($len)\n\t\t{\n\t\t\tfor ($i=0;$i<count($aUsers);$i++)\n\t\t\t{\n\t\t\t\t// had to use utf_decode, here\n\t\t\t\t// not necessary if the results are coming from mysql\n\t\t\t\t//\n\t\t\t\tif (strtolower(substr(utf8_decode($aUsers[$i]),0,$len)) == $input)\n\t\t\t\t{\n\t\t\t\t\t$count++;\n\t\t\t\t\t$aResults[] = array( \"id\"=>($i+1) ,\"value\"=>htmlspecialchars($aUsers[$i]));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ($limit && $count==$limit)\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\theader (\"Expires: Mon, 26 Jul 1997 05:00:00 GMT\"); // Date in the past\n\t\theader (\"Last-Modified: \" . gmdate(\"D, d M Y H:i:s\") . \" GMT\"); // always modified\n\t\theader (\"Cache-Control: no-cache, must-revalidate\"); // HTTP/1.1\n\t\theader (\"Pragma: no-cache\"); // HTTP/1.0\n\t\t\n\t\t\n\t\t\n\t\tif (isset($_REQUEST['json']))\n\t\t{\n\t\t\theader(\"Content-Type: application/json\");\n\t\t\n\t\t\techo \"{\\\"results\\\": [\";\n\t\t\t$arr = array();\n\t\t\tfor ($i=0;$i<count($aResults);$i++)\n\t\t\t{\n\t\t\t\t$arr[] = \"{\\\"id\\\": \\\"\".$aResults[$i]['id'].\"\\\", \\\"value\\\": \\\"\".$aResults[$i]['value'].\"\\\"}\";\n\t\t\t}\n\t\t\techo implode(\", \", $arr);\n\t\t\techo \"]}\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader(\"Content-Type: text/xml\");\n\t\n\t\t\techo \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\" ?><results>\";\n\t\t\tfor ($i=0;$i<count($aResults);$i++)\n\t\t\t{\n\t\t\t\techo \"<rs id=\\\"\".$aResults[$i]['id'].\"\\\" >\".$aResults[$i]['value'].\"</rs>\";\n\t\t\t}\n\t\t\techo \"</results>\";\n\t\t}\n\t\t\t\t\t\n\t}", "function main_acronym($openKeys)\t{\n\t\tglobal $LANG, $BE_USER;\n\n\t\t$content.=$this->doc->startPage(\"RTE acronym\");\n\t\t$RTEtsConfigParts = explode(\":\",t3lib_div::_GP(\"RTEtsConfigParams\"));\n\t\t$RTEsetup = $BE_USER->getTSConfig(\"RTE\",t3lib_BEfunc::getPagesTSconfig($RTEtsConfigParts[5]));\n\t\t$thisConfig = t3lib_BEfunc::RTEsetup($RTEsetup[\"properties\"],$RTEtsConfigParts[0],$RTEtsConfigParts[2],$RTEtsConfigParts[4]);\n\n\t\t$content.='\n\t<div class=\"title\" id=\"abbrType\">' . $LANG->getLL(\"Acronym\") . '</div>\n\t<fieldset id=\"type\">\n\t\t<legend>' . $LANG->getLL(\"Type_of_abridged_form\") . '</legend>\n\t\t<label for=\"abbreviation\" class=\"checkbox\">' . $LANG->getLL(\"Abbreviation\") . '</label><input type=\"radio\" name=\"type\" id=\"abbreviation\" value=\"abbreviation\" checked=\"checked\" onclick=\"setType();\" />\n\t\t<label for=\"acronym\" class=\"checkbox\">' . $LANG->getLL(\"Acronym\") . '</label><input type=\"radio\" name=\"type\" id=\"acronym\" value=\"acronym\" onclick=\"setType();\" />\n\t</fieldset>\n\t<fieldset id=\"selector\">\n\t\t<legend>' . $LANG->getLL(\"Defined_term\") . '</legend>\n\t\t<label for=\"termSelector\" class=\"fl\" id=\"termSelectorLabel\" title=\"' . $LANG->getLL(\"Select_a_term\") . '\">' . $LANG->getLL(\"Unabridged_term\") . '</label>\n\t\t<select id=\"termSelector\" name=\"termSelector\" title=\"' . $LANG->getLL(\"Select_a_term\") . '\"\n\t\t\tonChange=\"document.acronymForm.acronymSelector.selectedIndex=document.acronymForm.termSelector.selectedIndex; document.acronymForm.title.value=document.acronymForm.termSelector.options[document.acronymForm.termSelector.selectedIndex].value;\">\n\t\t\t<option value=\"\"></option>\n\t\t</select>\n\t\t<label for=\"acronymSelector\" id=\"acronymSelectorLabel\" title=\"' . $LANG->getLL(\"Select_an_acronym\") . '\">' . $LANG->getLL(\"Abridged_term\") . '</label>\n\t\t<select id=\"acronymSelector\" name=\"acronymSelector\" title=\"' . $LANG->getLL(\"Select_an_acronym\") . '\"\n\t\t\tonChange=\"document.acronymForm.termSelector.selectedIndex=document.acronymForm.acronymSelector.selectedIndex; document.acronymForm.title.value=document.acronymForm.termSelector.options[document.acronymForm.termSelector.selectedIndex].value;\">\n\t\t\t<option value=\"\"></option>\n\t\t</select>\n\t</fieldset>\n\t<fieldset>\n\t\t<legend>' . $LANG->getLL(\"Term_to_abridge\") . '</legend>\n\t\t<label for=\"title\" class=\"fl\" title=\"' . $LANG->getLL('Use_this_term_explain') . '\">' . $LANG->getLL('Use_this_term') . '</label>\n\t\t<input type=\"text\" id=\"title\" name=\"title\" size=\"60\" title=\"' . $LANG->getLL('Use_this_term_explain') . '\" />\n\t</fieldset>\n\t<div class=\"buttons\">\n\t\t<button type=\"button\" title=\"' . $LANG->getLL(\"OK\") . '\"onclick=\"return onOK();\">' . $LANG->getLL(\"OK\") . '</button>\n\t\t<button type=\"button\" title=\"' . $LANG->getLL(\"Delete\") . '\" onclick=\"return onDelete();\">' . $LANG->getLL(\"Delete\") . '</button>\n\t\t<button type=\"button\" title=\"' . $LANG->getLL(\"Cancel\") . '\" onclick=\"return onCancel();\">' . $LANG->getLL(\"Cancel\") . '</button>\n\t</div>';\n\t\n\t\t$content.= $this->doc->endPage();\n\t\treturn $content;\n\t}", "function getShowHint() {return $this->readShowHint();}", "function acf_get_textarea_input($attrs = array())\n{\n}", "public static function activate(){\n }" ]
[ "0.67829996", "0.6670967", "0.65801275", "0.6367011", "0.5977016", "0.59383655", "0.590966", "0.5719223", "0.55428857", "0.55072165", "0.5453061", "0.5448825", "0.53960574", "0.539522", "0.5333984", "0.5293033", "0.52821726", "0.52557075", "0.5210288", "0.51992595", "0.5195937", "0.51801556", "0.51801556", "0.51801556", "0.51679534", "0.50890845", "0.5060625", "0.50099504", "0.49953222", "0.49866918", "0.4986361", "0.49364316", "0.49050492", "0.48682374", "0.4860625", "0.48593047", "0.48569", "0.48523915", "0.4842468", "0.48140028", "0.4793055", "0.4781373", "0.47569945", "0.47485816", "0.47477078", "0.4742849", "0.4712777", "0.47124684", "0.47077852", "0.4704468", "0.47023392", "0.46982855", "0.46827537", "0.466688", "0.46552655", "0.46400008", "0.46344066", "0.46224988", "0.46224988", "0.46169764", "0.46166587", "0.46008703", "0.46006906", "0.45992544", "0.4596488", "0.45962328", "0.45775416", "0.4570343", "0.45601234", "0.4545945", "0.45411026", "0.45331112", "0.45302638", "0.45095724", "0.45001307", "0.44969815", "0.44898182", "0.44865265", "0.44702744", "0.44618374", "0.44600645", "0.44563118", "0.4444466", "0.44226247", "0.44210353", "0.44041365", "0.43957755", "0.43907687", "0.4388907", "0.43839854", "0.43795568", "0.43768147", "0.43764225", "0.43764225", "0.43764225", "0.43737143", "0.43717733", "0.43700686", "0.43662912", "0.4358215", "0.43498936" ]
0.0
-1
Add a relationship UserFriend
public function addFriend(\User\Entity\User $friend) { $this->friends[] = $friend; $friend->addUser($this); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFriend(User $user) {\n // attach the users id to friendOf\n $this->friendOf()->attach($user->id);\n }", "public function addFriend(User $user)\n {\n $this->friendOf()->attach($user->id);\n }", "public function add_friend($user_to = null) {\n\n\t\t\n\t\t$this->request->data['User']['id'] = $this->getUserId();\n\t\t$this->request->data['Friend']['id'] = $user_to;\n\n\t\tif($result = $this->User->saveAll($this->request->data)) {\n\t\t\t$this->redirect(array('action' => 'view', $user_to));\n\t\t} else {\n\t\t\t$this->redirect(array('action' => 'view', $user_to));\n\t\t}\n\n\t}", "public function addFriend(User $user)\n {\n if ($this->isFriendWith($user)) {\n return ;\n }\n $this->friends()->attach($user->id);\n }", "public function addRelationship(string $name, $relationship);", "public function addFriend(User $user)\n {\n try {\n DB::beginTransaction();\n $this->connections()->attach($user->id);\n $user->connections()->attach($this->id);\n DB::commit();\n } catch (\\PDOException $e) {\n DB::rollBack();\n }\n }", "protected function addUserAndFriend(Request $request){\n $username = Auth::user()->name;\n $friendname = $request->name;\n\n $userAndfriend = new userfriends;\n\n $userAndfriend->user = $username;\n $userAndfriend->friends = $friendname;\n\n $userAndfriend->save();\n }", "public function addToFriendsAction()\n {\n $model = $this->getCurrentUser();\n $friendId = $this->getRequest()->getBodyParams('id');\n\n try\n {\n $friend = $this->getUserService()->addToFriends($model->getId(), $friendId);\n } catch (\\InvalidArgumentException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n } catch (NotFoundException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n }\n\n $map = $this->getMapService()->renderMapWithMarker($friend->getLatlng(), $friend->getLocationName());\n\n $this->sendResponse(\n [\n 'id' => $friend->getId(),\n 'type' => User::class,\n 'properties' => [\n 'user' => $friend,\n 'isFriend' => true,\n 'location' => [\n 'html' => htmlentities($map['html']),\n 'js' => htmlentities(trim($map['js'])),\n ],\n ],\n ]\n );\n }", "public function addFriend($friend_guid);", "public function addAsFriend($id)\n {\n \n\n $query = $this->db->get_where('relationship',array(\n 'friend_id' => $id,\n 'user_id' => $this->session->Auth['id'],\n ));\n\n\n if(empty($query->result_array())){\n $insert = array(\n 'user_id' => $this->session->Auth['id'],\n 'friend_id' => $id,\n 'status' => 'pending',\n 'created' => $this->today,\n 'modified' => $this->today,\n );\n if($this->db->insert('relationship',$insert)){\n return true;\n }else{\n return false;\n }\n }\n }", "private function addFriend($friend, $user_id) {\n $id = $friend['uid'];\n $name = $friend['first_name'].' '.$friend['last_name'];\n $photo = $friend['photo_200'];\n $query =\"INSERT INTO friends VALUES('$id', '$name', '$photo', '$user_id');\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n }", "protected function addUserFriend($user_id, $friend_id) {\n\t\t// Mlog::addone ( 'addUserFriend($user_id, $friend_id)', $user_id );\n\t\t// Mlog::addone ( 'addUserFriend($user_id, $friend_id)', $friend_id );\n\t\t$user_friend = $this->dbAdapter->getRepository ( \"\\Application\\Entity\\UserFriend\" )->findOneBy ( array (\n\t\t\t\t'user_id' => $user_id,\n\t\t\t\t'friend_id' => $friend_id \n\t\t) );\n\t\t// Mlog::add ( $user_friend, 'p' );\n\t\t// Mlog::out ();\n\t\tif (empty ( $user_friend )) {\n\t\t\t$tblUserFriend = new \\Application\\Entity\\UserFriend ();\n\t\t\t$tblUserFriend->friend_id = $friend_id;\n\t\t\t$tblUserFriend->user_id = $user_id;\n\t\t\t$tblUserFriend->user_approve = 1;\n\t\t\t$user_friend = $this->dbAdapter->persist ( $tblUserFriend );\n\t\t\t// Mlog::add ( $user_friend, 'p' );\n\t\t}\n\t\t\n\t\treturn $user_friend;\n\t}", "public function friendOf() {\n return $this->belongsToMany('App\\Models\\User', 'friends', 'friend_id', 'user_id');\n }", "public function _friendadd() {\n\t\t$this->history = false;\n\n\t\t// for authenticated only\n\t\tif ($this->user && csrf::valid()) {\n\n\t\t\t// require valid user\n\t\t\t$this->member = new User_Model($username);\n\t\t\tif ($this->member->id) {\n\t\t\t\t$this->user->add_friend($this->member);\n\n\t\t\t\t// News feed event\n\t\t\t\tnewsfeeditem_user::friend($this->user, $this->member);\n\n\t\t\t}\n\t\t}\n\n\t\turl::back('members');\n\t}", "public function friendOf() {\n return $this->belongsToMany('Social\\Models\\User', 'friends', 'friend_id', 'user_id' );\n }", "public function add_friend(User_Model $friend) {\n\n\t\t// don't add duplicate friends or oneself\n\t\tif ($this->loaded() && $this->id != $friend->id && !$this->is_friend($friend)) {\n\t\t\t$friendship = new Friend_Model();\n\t\t\t$friendship->user_id = $this->id;\n\t\t\t$friendship->friend_id = $friend->id;\n\t\t\t$friendship->save();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function friends()\n {\n return $this->belongsToMany('App\\User', 'friends', 'user_id', 'friend_id');\n }", "public function addFriend(Client $neo4jClient, User $user): Response\n {\n if (auth()->user()->friends()->get()->contains($user)) return response('', 400);\n\n $authId = auth()->id();\n\n auth()->user()->friends()->attach($user);\n $user->friends()->attach(auth()->user());\n\n DB::transaction(function () use ($authId, $user, $neo4jClient) {\n // TODO: A temporary workaround. Use the library method instead of this request.\n Http::withBasicAuth(env('NEO4J_USER'), env('NEO4J_PASSWORD'))\n ->post(env('NEO4J_PROTOCOL').'://'.env('NEO4J_HOST').'/db/data/transaction/commit', [\n 'statements' => [\n [\n 'statement' => <<<'CYPHER'\nMATCH (a:User{id: $authId), (u:User{id: $userId})\nMERGE (a)-[:KNOWS]->(u)\nMERGE (u)-[:KNOWS]->(a)\nCYPHER,\n 'parameters' => [\n 'authId' => $authId,\n 'userId' => $user->id\n ]\n ]\n ]\n ]);\n\n // TODO: Use this instead of the above request.\n // TODO: Same query does not work with the library method. Possibly a library bug.\n// $neo4jClient->run(<<<'CYPHER'\n//MATCH (a:User{id: $authId}), (u:User{id: $userId})\n//MERGE (a)-[:KNOWS]->(u)\n//MERGE (u)-[:KNOWS]->(a)\n//CYPHER,\n// ['authId' => $authId, 'userId' => $user->id]\n// );\n });\n\n return response('');\n }", "public function isAddToRelationship();", "public function with(User $friend)\n {\n $conversation = Conversation::Single([auth()->user()->id, $friend->id])->first();\n if (!$conversation) {\n $conversation = new Conversation;\n $conversation->type = \"single\";\n $conversation->save();\n $conversation->users()->attach([auth()->user()->id, $friend->id]);\n }\n return redirect()->route(\"conversation.show\", $conversation);\n }", "public function friends()\n\t {\n\t\treturn $this->belongsToMany('User', 'friend_user', 'user_id', 'friend_id');\n\t }", "public function addFriend (Request $request, $id) {\n $friend = User::findOrFail($request->friend_id);\n\n if ($friend) {\n $user = User::where('_id', $id)->push(['friend' => $friend->_id]);\n\n return response()->json(['message' => $friend->name.' foi adicionado!']);\n }\n return response()->json(['message' => 'Usuário não encontrado.']);\n }", "public function friendsOfMine() {\n return $this->belongsToMany('App\\Models\\User', 'friends', 'user_id', 'friend_id');\n }", "function user_add_friend($user_id, $friend_username) {\n $db = connectDB();\n \n // Look up user\n $friend_user_id = user_find_id($friend_username);\n \n if ($friend_user_id === NULL) {\n return \"No such user.\";\n }\n \n if ($friend_user_id == $user_id) {\n return \"You cannot send a friend request to yourself.\";\n }\n \n // Check they're not already friends\n $stmt = $db->prepare('\n SELECT\n user_id_1, user_id_2, provisional\n FROM\n friendships\n WHERE\n (user_id_1 = :user_id_1 AND user_id_2 = :user_id_2)\n OR (user_id_1 = :user_id_2 AND user_id_2 = :user_id_1)\n LIMIT\n 1\n ;\n ');\n $stmt->execute([\n ':user_id_1' => $user_id,\n ':user_id_2' => $friend_user_id\n ]);\n $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n if (!empty($rows)) {\n $row = $rows[0];\n if ($row['provisional']) {\n if ($row['user_id_1'] == $user_id) {\n return \"You already sent a friend request to that user.\";\n } else {\n return \"That user already sent you a friend request.\";\n }\n } else {\n return \"You are already friends with that user.\";\n }\n }\n \n // Actually send the request\n $db->beginTransaction();\n $stmt = $db->prepare('\n INSERT INTO\n friendships(user_id_1, user_id_2, timestamp, provisional)\n VALUES\n (:user_id_1, :user_id_2, datetime(\\'now\\'), 1)\n ;\n ');\n $stmt->execute([\n ':user_id_1' => $user_id,\n ':user_id_2' => $friend_user_id\n ]);\n $db->commit();\n\n return TRUE;\n}", "public function friendsOfMine() {\n // One user can have many friends\n\n return $this->belongsToMany('Social\\Models\\User', 'friends', 'user_id', 'friend_id');\n\n }", "public function add_friend($requester,$user_requested)\n {\n return User::find($requester)->add_friend($user_requested);\n }", "public function user()\n {\n return $this->belongsTo('friends\\Models\\User','user_id');\n }", "public function addFriend($other) {\n\t\t$conn = new mysqli ( $GLOBALS ['dbservername'], $GLOBALS ['dbusername'], $GLOBALS ['dbpassword'], $GLOBALS ['dbname'] );\n\t\t$sql = \"INSERT INTO friend (this,that) VALUES ('$this->userID','$other')\";\n\t\t$conn->query ( $sql );\n\t\t$sql = \"INSERT INTO friend (this,that) VALUES ('$other','$this->userID')\";\n\t\t$conn->query ( $sql );\n\t\t$conn->close ();\n\t}", "protected function addRelation()\n {\n $fromTable = $this->ask('Enter the name of the parent table');\n $this->checkInput($fromTable);\n $toTable = $this->ask('Enter the name of the child table');\n $this->checkInput($toTable);\n $relationColumn = $this->ask('Enter the column which is going to be referenced (default is \\'id\\')', 'id');\n $action = $this->choice('Action to be taken for column (default is \\'cascade\\')', ['cascade', 'restrict', 'set null'], 'cascade');\n $this->service->addRelation($fromTable, $toTable, $relationColumn, $action);\n }", "public function addAction(Request $request)\n {\n if ($selectedFriends = $request->get('friends_id')) {\n $currentUser = $this->getUser();\n $userRepository = $this->getDoctrine()->getRepository('KibokoSocialNetworkBundle:User');\n $friendshipRepository = $this->getDoctrine()->getRepository('KibokoSocialNetworkBundle:UserFriendship');\n $em = $this->getDoctrine()->getEntityManager();\n foreach ($selectedFriends as $selectedFriendId) {\n $mayBeFriend = $userRepository->findOneById($selectedFriendId);\n if ($usersFriendship = $friendshipRepository->findByUserAndFriendUser($currentUser, $mayBeFriend)) {\n if ($usersFriendship[0]->getUserSrc() === $currentUser) {\n if ($usersFriendship[0]->getNbRefusals() >= $this->container->getParameter('kiboko_social_network.friendship.nb_refusals')) {\n continue;\n }\n $friendship = $usersFriendship[0];\n $friendship2 = $usersFriendship[1];\n } else {\n if ($usersFriendship[1]->getNbRefusals() >= $this->container->getParameter('kiboko_social_network.friendship.nb_refusals')) {\n continue;\n }\n $friendship = $usersFriendship[1];\n $friendship2 = $usersFriendship[0];\n }\n } else {\n $friendship = new UserFriendship();\n $friendship->setUserSrc($currentUser);\n $friendship->setUserTgt($mayBeFriend);\n $friendship2 = new UserFriendship();\n $friendship2->setUserSrc($mayBeFriend);\n $friendship2->setUserTgt($currentUser);\n }\n $friendship->setStatus(UserFriendship::PENDING_STATUS);\n $friendship2->setStatus(UserFriendship::ASKING_STATUS);\n $em->persist($friendship);\n $em->persist($friendship2);\n $this->get('kiboko_social_network.friendship_mailer')->sendInvitMessage($mayBeFriend);\n }\n $em->persist($currentUser);\n $em->flush();\n $this->get('session')->setFlash('notice',\n $this->get('translator')->trans(\n 'kiboko_social.socialnetwork.invitation.success_msg',\n [],\n 'friendship'\n ));\n }\n\n return $this->redirect($this->generateUrl('kiboko_social_network_friendship_list'));\n }", "public function friends()\n {\n return $this->hasMany(Models\\AccountFriend::class, 'account_id');\n }", "public function user()\n {\n return $this->belongsTo(User::class, 'friend_id');\n }", "function userRelationship($user_id) {\n \t\n \t$user_relationship_request_url = sprintf($this->api_urls['user_relationship'], $user_id, $this->access_token);\n \t\n \treturn $this->__apiCall($user_relationship_request_url);\n \t\n }", "function add_friend($email, $name, $include)\r\n\t{\r\n\t\treset($this->friend_list);\r\n\t\twhile(list($friend_id, $friend) = each($this->friend_list)) {\r\n\t\t\tif ($friend->email == $email) {\r\n\t\t\t\t$this->error_message = \"Friend $email is already in your list.\";\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$friend = new user_friend();\r\n\t\t$friend->friend_id = \"0\";\r\n\t\t$friend->email\t= $email;\r\n\t\t$friend->name\t= $name;\r\n\t\t$friend->include = $include;\r\n\t\t$this->friend_list[] = $friend;\r\n\t\treturn true;\r\n\t}", "public static function createFriendRequest(User $user, User $user2)\n {\n $friend = factory(FriendList::class)->create([\n 'user_two' => $user->id,\n 'user_one' => $user2->id,\n 'status' => 'pending'\n ]);\n\n return $friend;\n }", "protected function createRelation(User $user1, User $user2, $relationId)\n {\n // add relation to pivot table\n $user1->relationships()->sync([$user2->id => ['relation_id' => $relationId]]);\n // define the inverse\n $user2->relationships()->sync([$user1->id => ['relation_id' => $relationId]]);\n }", "function becomeFriendsWith($person) {\n $query = \"INSERT INTO friends (friend_id, user_id) VALUES ('{$person}','\".$this->data['id'].\"')\";\n $query2 = \"INSERT INTO friends (friend_id, user_id) VALUES ('\".$this->data['id'].\"','{$person}')\";\n mysql_query($query);\n mysql_query($query2);\n\n header('location: home.php');\n }", "public function friends(){\n return $this->belongsToMany('App\\User', 'friends', 'user_1', 'user_2')->withPivot('status');\n }", "public function addfriendAction()\n {\n $response = $this->getResponse();\n $data = $this->params()->fromPost();\n $dm = $this->getDocumentService();\n $successModel = new SuccessModel();\n\n $check = $successModel->checkFriend($data['actionUser'], $data['actionLocation'], $dm);\n if($check== null)\n {\n $result = $successModel->sendRequestAddFriend($data, $dm);\n\n if($result)\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 1,\n )));\n }\n else\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 0,\n )));\n }\n }\n else\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 0,\n )));\n }\n\n }", "public function auto_friend($user_id)\n {\n global $db, $system;\n if (!isset($user_id) || !$system['auto_friend'] || is_empty($system['auto_friend_users'])) {\n return;\n }\n /* make a list from target friends */\n $auto_friend_users_array = json_decode(html_entity_decode($system['auto_friend_users']), true);\n if (count($auto_friend_users_array) == 0) {\n return;\n }\n foreach ($auto_friend_users_array as $_user) {\n if (is_numeric($_user['id'])) {\n $auto_friend_users_ids[] = $_user['id'];\n }\n }\n if (count($auto_friend_users_ids) == 0) {\n return;\n }\n $auto_friend_users = implode(',', $auto_friend_users_ids);\n /* get the user_id of each new friend */\n $get_auto_friends = $db->query(\"SELECT user_id FROM users WHERE user_id IN ($auto_friend_users)\");\n if ($get_auto_friends->num_rows > 0) {\n while ($auto_friend = $get_auto_friends->fetch_assoc()) {\n /* add friend */\n $db->query(sprintf(\"INSERT INTO friends (user_one_id, user_two_id, status) VALUES (%s, %s, '1')\", secure($user_id, 'int'), secure($auto_friend['user_id'], 'int')));\n /* follow */\n $db->query(sprintf(\"INSERT INTO global_followings (user_id, following_id) VALUES (%s, %s)\", secure($user_id, 'int'), secure($auto_friend['user_id'], 'int')));\n }\n }\n }", "function modifyUserRelationship($user_id, $action) {\n \t\n \t/*\n \t// *** NEED TO LOOK INTO THIS FURTHER ***\n \t// Documentation states it is a POST to /users/{user-id}/relationship with a parameter 'action'\n \t// The example does not include 'action':\n \t// https://api.instagram.com/v1/users/1574083/relationship?access_token=103467.f59def8.cecb6db66a2e4522b74a243fdd235603\n\n \t$user_modify_relationship_request_url = sprintf($this->api_urls['modify_user_relationship'], $user_id, $action, $this->access_token);\n \t\n \treturn $this->__apiCall($user_modify_relationship_request_url);\n \t*/\n \t\n }", "public function create()\n {\n $fri = $this->validate(request(), [\n 'first_name' => '',\n 'last_name' => '',\n 'nickname' => 'required',\n 'birthday' => '',\n 'address' => '',\n 'bank_account'=> '',\n 'status_noti'=> '',\n 'status'=> ''\n ]);\n\n Friend::create($fri);\n\n return back()->with('success', 'Friend has been added');\n }", "function createFriendListRecord($user_id, $friend_id, $connection_id) {\n //get both user rows\n $friend_user_row = getUserRow($friend_id, \"user_loging\");\n if ($friend_user_row) {\n $user_row = getUserRow($user_id, \"user_loging\");\n //create friend_list record for user\n createListRecord($user_id, $friend_id, $friend_user_row['l_name'], $connection_id, 'friend_list');\n //create friend_list for friend\n createListRecord($friend_id, $user_id, $user_row['l_name'], $connection_id, 'friend_list');\n }\n}", "public function acceptFriend(User $userFriend) {\n\n DB::table('invitation')\n ->where('emetteur_id', $userFriend->id)\n ->where('recepteur_id', $this->id)\n ->update(['status' => 1]);\n }", "public static function blockFriend($friendUserID)\n {\n if(!Friends::isBlocked($friendUserID))\n return;\n\n if(Friends::isRelationExists($friendUserID))\n $relation = Friends::relation($friendUserID)->first();\n else\n $relation = new Friends();\n\n $relation->addUsers(UserUtil::getUsersIdElseLoggedInUsersId(), $friendUserID);\n\n $relation->setStatus(3);\n\n $relation->save();\n }", "public function addRelation(RelationInterface $relation);", "public function addFriends($inputs)\n {\n $user = $this->getAuthUser();\n $other_user = User::where('id', $inputs['id'])->first();\n // dd($user->id, $other_user->id);\n if ($other_user && $user) {\n switch ($inputs['request_type']) {\n //Send a Friend Request\n case 'befriend':\n $user->befriend($other_user);\n break;\n //Accept a Friend Request \n case 'accept':\n $user->acceptFriendRequest($other_user);\n break;\n //Deny a Friend Request\n case 'deny':\n $user->denyFriendRequest($other_user);\n break;\n //Remove Friend\n case 'unfriend':\n $user->unfriend($other_user);\n break;\n //Block a Model\n case 'block':\n $user->blockFriend($other_user);\n break;\n //Unblock a Model\n case 'unblock':\n $user->unblockFriend($other_user);\n break; \n }\n }\n return false;\n }", "function _add_relationship_if_not_exists($object, $relationship, $value, $namespace) {\n $rels = $object->relationships->get($namespace, $relationship);\n $existed = FALSE;\n foreach ($rels as $rel) {\n $existed |= (isset($rel['object']['value']) && $rel['object']['value'] == $value);\n }\n if (!$existed) {\n $object->relationships->add($namespace, $relationship, $value);\n }\n if ($relationship == 'isMemberOfSite') {\n $object->relationships->remove($namespace, 'isMemberOfSite', 'info:fedora/' . $value);\n }\n}", "public static function createFriendSent(User $user, User $user2)\n {\n $friend = factory(FriendList::class)->create([\n 'user_one' => $user->id,\n 'user_two' => $user2->id,\n 'status' => 'pending'\n ]);\n\n return $friend;\n }", "public function follow($id){\n $add = Friendship::create([\n 'requester' => Auth::user()->id,\n 'user_requested' => $id\n ]);\n \n return back();\n\n }", "function create_fam_relation($eParent, $personRec, $tag)\n\t{\n\t\t//throw new exception(\"create fam rel - this function is not implemented\");\n\t}", "function add($follower, $following, $loggedUser)\n{\n //Adding $follower to the list of personn following $following\n // if and only if $follower = $loggedUser or $loggedUser is an admin\n check_not_null($follower, $following, $loggedUser);\n\n if (check_owner_bool($follower, $loggedUser)) {\n //Return False if we are an admin or if $follower = $loggedUser\n //So here, we are not an admin\n forbidden_error();\n }\n\n //We have the rights to do it\n $sql = \"INSERT INTO friend VALUES (:followername , :followingname)\";\n $bd = connect();\n $stmt = $bd->prepare($sql);\n $stmt->bindValue(':followername', $follower, \\PDO::PARAM_STR);\n $stmt->bindValue(':followingname', $following, \\PDO::PARAM_STR);\n return $stmt->execute();\n //Will return true on succes and false on failure\n}", "public function createRelation($user, $reason){\n $this->user_id = $user->id;\n $this->reason_id = $reason->id;\n }", "public function following(){\n return $this->belongsToMany('User', 'followers', 'user_id', 'follow_id')->withTimestamps();\n }", "private function createRelation()\n {\n $this->createBuilder();\n }", "public function followedBy(){\n return $this->belongsToMany('App\\User', 'follows', 'dog_id', 'user_id');\n }", "public function acceptFriendRequest(User $user) {\n\n // Grab the friend requests where the id = the user id\n // then grab that user and update the pivot (table)\n // and update array to accepted = true (or = 1)\n $this->friendRequests()->where('id', $user->id)\n ->first()->pivot->update(['accepted' => true]);\n }", "function add_user_following($following_id, $skip_notif_check = false)\n {\n if (!$skip_notif_check)\n {\n // See if the user has any follow notifications\n $query_string = \"SELECT id FROM notifications\n WHERE user_id = ? AND type= ? AND subject_id = ?\";\n $query = $this->db->query($query_string, array($this->ion_auth->get_user()->id, 'follow_notif', $following_id));\n\n if ($query->num_rows() > 0)\n {\n // Accept the notification \n $this->load->model('notification_ops');\n $this->notification_ops->accept_notification($query->row()->id);\n return;\n }\n }\n\n $query_string = \"INSERT IGNORE INTO friend_relationships VALUES (DEFAULT, ?, ?)\";\n $query = $this->db->query($query_string, array(\n $this->ion_auth->get_user()->id,\n $following_id\n ));\n\n // Notify the given user\n $this->load->model('notification_ops');\n $this->notification_ops->notify(array($following_id), array(), 'follow_notif', $this->ion_auth->get_user()->id);\n }", "public function changeRelationship ($profile_id, $user_id)\n\t{\n\t\t$Statement = $this->Database->prepare(\"SELECT id FROM following WHERE user = ? AND follower = ? LIMIT 1\");\n\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t$count = $Statement->rowCount();\n\t\t\n\t\tif ($count == 0)\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"INSERT INTO following (user, follower) VALUES (?, ?)\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"DELETE FROM following WHERE user = ? AND follower = ?\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t}", "public function addRelatedModel($relationshipName) {\n\t\t$model = $this->model;\n\t\t$relationship = $model::metaGetRelationship($relationshipName);\n\n\t\t// Related model\n\t\t$relatedModel = $relationship[\"model\"];\n\n\t\t// Adding related model to related model list\n\t\t$this->relatedModels[] = $relatedModel;\n\t\t\n\t\t// Adding related model table to related table list\n\t\t$this->relatedTables[] = $relatedModel::getTableName();\n\t\t\n\t\t// Adding relationship $relationshipName of $relatedModel\n\t\t// to the relationship list\n\t\t$this->relationships[$relationshipName] = [\n\t\t\t\"model\" => $relatedModel,\n\t\t\t\"table\" => $relatedModel::getTableName(),\n\t\t\t\"name\" => $relationshipName,\n\t\t\t\"attributes\" => $relationship\n\t\t];\n\n\t\t$this->relationships[$relationshipName][\"attributes\"][\"table\"] = $relatedModel::getTableName();\n\t}", "public function following() {\n // Need to explicitly state table name follows or else the table will look for user_users\n return $this->belongsToMany(User::class, 'follows');\n }", "public function following()\n {\n return $this->belongsTo('App\\Models\\User','followed_userid','id');\n }", "public function store($friend_id)\n {\n// Friend::create([\n// 'user_id' => Auth::id(),\n// 'friend_id' => $friend_id\n// ]);\n\n if (!friendship($friend_id)->exists) {\n\n Friend::create([\n 'user_id' => Auth::id(),\n 'friend_id' => $friend_id\n ]);\n }\n\n return back();\n }", "public function follow_user(){\n\n\t\t$follow_user_data=array(\n\t\t\t'user_id'=>$this->session->userdata('usr_id'),\n\t\t\t'follow_user_id' => $this->input->post('id')\n\t\t);\n\n\t\treturn $this->db->insert('friends', $follow_user_data);\n\n\t}", "private function _setRelationship($userId): string {\n if($userId === $_SESSION['id'] && $userId !== 0) {\n return 'friend';\n }\n\n return 'foe';\n }", "function relUser(){\n return $this->hasOne('App\\User', 'id', 'id_user');\n }", "public function deleteFriend(User $user) {\n // attach the users id to friendOf\n $this->friendOf()->detach($user->id);\n //$this->friendsOfMine()->detach($user->id);\n }", "public function created(User $user)\n {\n $user->createUserRelationships();\n }", "public function attendingUsers(){\n return $this->morphToMany('App\\Models\\User', 'attendable','attendances');\n }", "protected function addFriend($user, $partner)\r\n\t{\r\n\t\t\r\n\t\t/* SEND REQUEST */\r\n\t\t\r\n\t\t$count = 1;\r\n \r\n $count = Db::dbSQL_action(SQL_SELECT_FRIENDS, array('[user]','[partner]'), array($user,$partner));\r\n \r\n\r\n \r\n\t\tif ( $count < 1 )\r\n {\r\n\t\t \r\n //debug line\r\n\t\t //var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_SELECT_BLOCKS));\r\n switch (CMS)\r\n {\r\n case \"SocialEngine\":\r\n $count = Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($partner, $user));\r\n if ($count < 1)\r\n {\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted_r]', '[accepted_u]', '[created]'), array($user, $partner, 0, 1, date(\"Y-m-d h:i:s\")));\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted_r]', '[accepted_u]', '[created]'), array($partner, $user, 1, 0, date(\"Y-m-d h:i:s\")));\r\n Db::dbSQL_action(SOCIAL_ENGINE_FRIEND_REQUEST_ADD, array('[user]','[partner]', '[created]'), array($user, $partner, date(\"Y-m-d h:i:s\")));\r\n }\r\n break;\r\n \r\n case \"PHPFox\":\r\n $count = Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($partner, $user));\r\n if ($count < 1)\r\n {\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]'), array($user, $partner));\r\n Db::dbSQL_action(PHPFOX_FRIEND_REQUEST_ADD, array('[user]','[partner]'), array($user, $partner));\r\n }\r\n break;\r\n \r\n default:\r\n if ((Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($user,$partner)) > 0) && FB_SAME_TABLE )\r\n {\r\n Db::dbSQL_action(SQL_UPDATE_FRIENDS, array('[user]','[partner]'), array($user,$partner));\r\n }\r\n else\r\n {\r\n //debug line\r\n \t\t //var_dump(str_replace(array('[partner]','[user]'), array($user,$partner), SQL_SELECT_BLOCKS));\r\n \r\n if (Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[partner]','[user]'), array($user,$partner)) == 0)\r\n {\r\n \t Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted]', '[pending]', '[created]', '[created Y-m-d]'), array($user, $partner, 0, 0, mktime(), date(\"Y-m-d\")));\r\n }\r\n //debug line\r\n \t\t //var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_INSERT_FRIENDS));\r\n \r\n }\r\n break;\r\n }\r\n \r\n echo \"<\".$this->_action.\"_partner_add />\";\r\n\t\t\t\r\n\t\t}\r\n\t\telse echo \"<\".$this->_action.\"_partner_exists />\";\r\n\t}", "public function followers(){\n return $this->hasMany('App\\Models\\Follow','user_id_follower');\n }", "public function createRelationship() {\n\t\tthrow new CmisNotImplementedException(\"createRelationship\");\n\t}", "public static function set_relationship($id1, $id2, $type = 'friend_request', $status = 'active', $notification_id = 0)\n\t{\n\t\t// check for existing entry\n\t\t// query the first case\n\t\t$query = parent::where('UserID1', '=', $user_id1)\n\t\t\t\t\t\t\t->where('UserID2', '=', $user_id2)\n\t\t\t\t\t\t\t->where('Type', '=', $type)\n\t\t\t\t\t\t\t->first();\n\t\t// check if query returns a record\n\t\tif(empty($query)) {\n\t\t\t// if not - query the second case\n\t\t\t$query = parent::where('UserID2', '=', $user_id1)\n\t\t\t\t\t\t\t\t->where('UserID1', '=', $user_id2)\n\t\t\t\t\t\t\t\t->where('Type', '=', $type)\n\t\t\t\t\t\t\t\t->first();\n\t\t}\n\t\t// check if query returns a record\n\t\tif(empty($query)) {\n\t\t\t// if not - perform the relationship update\n\t\t\t// check what kind of update\n\t\t\tif($type == 'friend_request') {\n\t\t\t\t// if a friend request\n\t\t\t\t$ur = new UserRelationship;\n\t\t\t\t$ur->UserID1 = $user_id1;\n\t\t\t\t$ur->UserID2 = $user_id2;\n\t\t\t\t$ur->Type = $type;\n\t\t\t\t$ur->save();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// otherwise - perform first query\n\t\t\t\t$ur = parent::where('UserID1', '=', $user_id1)\n\t\t\t\t\t\t\t\t->where('UserID2','=', $user_id2)\n\t\t\t\t\t\t\t\t->first();\n\t\t\t\t// check if record existed\n\t\t\t\tif(empty($ur)) {\n\t\t\t\t\t// if not found - perform second query\n\t\t\t\t\t$ur = parent::where('UserID2', '=', $user_id1)\n\t\t\t\t\t\t\t\t\t->where('UserID1','=', $user_id2)\n\t\t\t\t\t\t\t\t\t->first();\n\t\t\t\t}\n\t\t\t\t$ur->Type = $type;\n\t\t\t\t$ur->save();\n\t\t\t}\n\t\t\t// check if current user has the first id\n\t\t\tif(Auth::user()->id == $id1) {\n\t\t\t\t// if yes - set $to to the second id\n\t\t\t\t$to = $id2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// if no - set $to to the first id\n\t\t\t\t$to = $id1;\n\t\t\t}\n\t\t\t// create a notification\n\t\t\t$n = Notification::set_notification($to, $type, $status, $notification_id);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t// if yes - discard and return false\n\t\treturn false;\t\n\t}", "public function addfriend(){\n /**\n * one can acces properties in the class \n * for example the username and email\n * this means this instance of a class \n */\n \n return \" $this->username\";\n \n }", "public function created(User $user)\n {\n // 处理默认关注和默认相互关注\n $famous = Famous::query()->with('user')->get()\n ->groupBy('type');\n $famous\n ->map(function ($type, $key) use ($user) {\n $users = $type->filter(function ($famou) {\n return $famou->user !== null;\n })->pluck('user');\n $user->followings()->attach($users->pluck('id'));\n // 相互关注\n if ($key === 'each') {\n $users->map(function ($source) use ($user) {\n $source->followings()->attach($user);\n });\n }\n });\n }", "public function add_friend()\n {\n return \"$this->username added a new friend\";\n }", "public function addRelation($data)\n {\n if ($data instanceof Relation) {\n $relation = $data;\n $relation->setEntity($this);\n $this->relations[] = $relation;\n\n if (!in_array($relation->getForeignEntityName(), $this->foreignEntityNames)) {\n $this->foreignEntityNames[] = $relation->getForeignEntityName();\n }\n\n return $relation;\n }\n\n $relation = new Relation();\n $relation->setEntity($this);\n $relation->loadMapping($data);\n\n return $this->addRelation($relation);\n }", "public function CreateNewFriendRequest($userId, $friendId)\n {\n $sql = 'INSERT IGNORE INTO friend_request (user_id, friend_user_id)\n VALUES (?, ?)';\n \n $query = $this->GetDbConnection()->NewQuery($sql);\n \n $query->AddIntegerParam($userId);\n $query->AddIntegerParam($friendId);\n\n $result = $query->TryExecuteInsert();\n return $result !== false;\n }", "public function following()\n {\n return $this->belongsTo(User::class);\n }", "public function getFriendAction(Request $request, $id)\n\t{\n\t\t$em = $this -> getDoctrine()->getManager();\n\t\t$session = $request ->getSession();\n\t\t$friend = $em -> getRepository('UserBundle:User') -> find($id);\n\t\t# Récupérer l'id de l'user connecté et lui attribuer un ami :\n\t\t$this -> getUser() -> addFriend($friend);\n\t\t\n\t\t$session -> getFlashbag()->add('succes','Ce joueur est votre ami !');\n\t\t$em -> flush();\n\n\t\treturn $this -> redirect($this -> generateUrl('front_office_user_showFriends'));\n\t}", "public static function addUser()\n {\n // ADD NEW DATA TO A TABLE\n // MAKE SURE TO SEND USERS TO THE /users page when a user is added\n }", "function user_add($data, $data1) {\n $id = $data['uid'];\n $name = $data['first_name'].' '.$data['last_name'];\n $email = $data['email'];\n $phone = $data['mobile_phone'].' '.$data['home_phone'];\n\n //add id and name of user to sesstion\n $this->add_session($id, $name);\n\n if (!$this->user_is($id)) {\n $query =\"INSERT INTO users VALUES('$id', '$name', '$email', '$phone');\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n //add friends of current user\n for ($j = 0 ; $j < count($data1) ; ++$j) {\n $this->addFriend($data1[$j], $id);\n }\n }\n }", "public function followedUser()\n {\n return $this->belongsTo('App\\User', 'followed_id');\n }", "public function addLeader($user): void\n {\n $this->leaders()->attach($user);\n }", "public function addReferrer(Relation $relation)\n {\n $this->referrers[] = $relation;\n }", "public function addRelationShip($id, $dependentId, $oBegin, $oEnd, $dBegin, $dEnd, $relation, $text)\n {\n $this->relationships[] = new Relationship($id, $dependentId, $oBegin, $oEnd, $dBegin, $dEnd, $relation, $text);\n }", "public function getMorphByUserRelation($relationship);", "public function addUser(){}", "public function followers() {\n return $this->belongsToMany(User::class);\n }", "public function followers()\n {\n return $this->belongsTo('App\\Models\\User','userid','id');\n }", "public function store()\n\t{\n\t\t$friend_id = Input::get(\"friend_id\");\n\t\t$user = $this->user->requireByID(Auth::user()->id);\n\t\t$friend = $user->organization()->first()->students()->findOrFail($friend_id);\n\t\t$response = array(\"error\" => false, \"message\" => \"\");\n\t\tif($friend){\n\t\t\t$user->friends()->attach($friend, array(\"status\" => \"pending\"));\n\t\t\t$friend->friends()->attach($user, array(\"status\" => \"pending\"));\n\t\t\t$response['message'] = \"Friend added!\";\n\t\t}else{\n\t\t\t$response['error'] = true;\n\t\t\t$response['message'] = \"Error!\";\n\t\t}\n\t\treturn $response;\n\t}", "public function store(Requests\\RelationshipRequest $request)\n\t{\n\t\t//\n\t\tRelationship::create($request->all());\n\t\treturn redirect('relationships');\n\t}", "public function followers(){\n return $this->belongsToMany('User', 'followers', 'follow_id', 'user_id')->withTimestamps();\n }", "function atwork_user_relationships_request_relationship_direct_link($variables) {\n $relate_to = $variables['relate_to'];\n $relationship_type = $variables['relationship_type'];\n //safety, revert to a generic link\n if (!isset($relationship_type)) {\n return theme('user_relationships_request_relationship_link', array('relate_to' => $relate_to));\n }\n return l(\n t(\"Follow\", array('%name' => format_username($relate_to)) + user_relationships_type_translations($relationship_type)),\n \"relationship/{$relate_to->uid}/request/{$relationship_type->rtid}\",\n array(\n 'query' => drupal_get_destination(),\n 'html' => TRUE,\n 'attributes' => array('class' => array('user_relationships_popup_link')),\n )\n );\n}", "public function users(){\n\t\treturn $this->belongsToMany('Alsaudi\\\\Eloquent\\\\UserRelation',\n\t\t\t'trip_user','trip_id','user_id');\n\t}", "public function validUserRelationship($input){\n\n $suppliedRelationship = $input['user_relationship'];\n\n if(isset(LoungeUser::$relationships[$suppliedRelationship]))\n return true;\n\n return false;\n }", "public function FollowingList()\n {\n return $this->belongsToMany('App\\User', 'user_following', 'user_id', 'following_id' );\n }", "public function follows($username)\n {\n $user = User::where('username', $username)->firstOrFail();\n $id = Auth::id();\n $me = User::find($id);\n $me->following()->attach($user->id);\n\n return redirect('/home')->with('success','Vous suivez cette personne');\n\n }", "protected function addRelation($field)\n {\n $this->owner->relationsKeeper->addRelation($field);\n }", "function updateFriends($user) {\n if ($user==null)\n return;\n $this->load->model('facebook_model');\n $facebook_friends = $this->facebook_model->getFriends();\n if (count($facebook_friends)==0)\n return;\n // filter users in DB\n $friends = $this->getUsersByFacebookIds($facebook_friends);\n if (count($friends)==0) {\n echo 'no friends left :(';\n return;\n }\n // prepare list\n $values = '';\n $userId = $user->id;\n foreach ($friends as $friend) {\n $friendId = $friend->id;\n $values .= '(\"' . $userId . '\", \"' . $friendId . '\"), ';\n $values .= '(\"' . $friendId . '\", \"' . $userId . '\"), ';\n }\n // delete current friendships and insert the updated ones\n $queryStr = 'DELETE FROM users_friends WHERE user_id='.$userId.' OR friend_id='.$userId.';';\n $this->runQuery($queryStr);\n $queryStr = 'INSERT INTO users_friends (user_id, friend_id) VALUES ' . substr($values, 0, -2) . ';';\n $this->runQuery($queryStr);\n }" ]
[ "0.7455175", "0.7241575", "0.7152756", "0.7009196", "0.6961891", "0.6891382", "0.68568736", "0.6737063", "0.6702785", "0.66634065", "0.6634259", "0.6597718", "0.65577817", "0.6532521", "0.6513742", "0.6458189", "0.6352223", "0.6347899", "0.6266952", "0.6161635", "0.61612564", "0.61573017", "0.6146912", "0.61085737", "0.61012506", "0.6027377", "0.60174364", "0.5978014", "0.5925001", "0.58865386", "0.5885318", "0.583695", "0.5789072", "0.57460755", "0.57139975", "0.56919086", "0.5670489", "0.5657831", "0.5647838", "0.5641976", "0.5598837", "0.5582321", "0.5564908", "0.5511458", "0.5490854", "0.5478579", "0.5472213", "0.5456365", "0.54450345", "0.54413575", "0.5440691", "0.5437342", "0.54254514", "0.5421765", "0.5353815", "0.53536975", "0.5345415", "0.5322218", "0.5321721", "0.5316609", "0.5313352", "0.52999073", "0.5295779", "0.5294385", "0.5293953", "0.52850795", "0.52791435", "0.52709126", "0.5268328", "0.5267593", "0.52656066", "0.5262214", "0.525741", "0.5256553", "0.52562493", "0.52446115", "0.5243237", "0.5230003", "0.52256274", "0.5223406", "0.52121055", "0.5199907", "0.5194757", "0.5194412", "0.5187717", "0.5180181", "0.5173529", "0.51704776", "0.516411", "0.51626337", "0.5157707", "0.5148564", "0.51402956", "0.51386", "0.51299274", "0.51280445", "0.5123093", "0.5121782", "0.5108659", "0.5099373" ]
0.6551841
13
Add a relationship UserFriend
public function addUser(\User\Entity\User $user) { $this->users[] = $user; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFriend(User $user) {\n // attach the users id to friendOf\n $this->friendOf()->attach($user->id);\n }", "public function addFriend(User $user)\n {\n $this->friendOf()->attach($user->id);\n }", "public function add_friend($user_to = null) {\n\n\t\t\n\t\t$this->request->data['User']['id'] = $this->getUserId();\n\t\t$this->request->data['Friend']['id'] = $user_to;\n\n\t\tif($result = $this->User->saveAll($this->request->data)) {\n\t\t\t$this->redirect(array('action' => 'view', $user_to));\n\t\t} else {\n\t\t\t$this->redirect(array('action' => 'view', $user_to));\n\t\t}\n\n\t}", "public function addFriend(User $user)\n {\n if ($this->isFriendWith($user)) {\n return ;\n }\n $this->friends()->attach($user->id);\n }", "public function addRelationship(string $name, $relationship);", "public function addFriend(User $user)\n {\n try {\n DB::beginTransaction();\n $this->connections()->attach($user->id);\n $user->connections()->attach($this->id);\n DB::commit();\n } catch (\\PDOException $e) {\n DB::rollBack();\n }\n }", "protected function addUserAndFriend(Request $request){\n $username = Auth::user()->name;\n $friendname = $request->name;\n\n $userAndfriend = new userfriends;\n\n $userAndfriend->user = $username;\n $userAndfriend->friends = $friendname;\n\n $userAndfriend->save();\n }", "public function addToFriendsAction()\n {\n $model = $this->getCurrentUser();\n $friendId = $this->getRequest()->getBodyParams('id');\n\n try\n {\n $friend = $this->getUserService()->addToFriends($model->getId(), $friendId);\n } catch (\\InvalidArgumentException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n } catch (NotFoundException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n }\n\n $map = $this->getMapService()->renderMapWithMarker($friend->getLatlng(), $friend->getLocationName());\n\n $this->sendResponse(\n [\n 'id' => $friend->getId(),\n 'type' => User::class,\n 'properties' => [\n 'user' => $friend,\n 'isFriend' => true,\n 'location' => [\n 'html' => htmlentities($map['html']),\n 'js' => htmlentities(trim($map['js'])),\n ],\n ],\n ]\n );\n }", "public function addFriend($friend_guid);", "public function addAsFriend($id)\n {\n \n\n $query = $this->db->get_where('relationship',array(\n 'friend_id' => $id,\n 'user_id' => $this->session->Auth['id'],\n ));\n\n\n if(empty($query->result_array())){\n $insert = array(\n 'user_id' => $this->session->Auth['id'],\n 'friend_id' => $id,\n 'status' => 'pending',\n 'created' => $this->today,\n 'modified' => $this->today,\n );\n if($this->db->insert('relationship',$insert)){\n return true;\n }else{\n return false;\n }\n }\n }", "private function addFriend($friend, $user_id) {\n $id = $friend['uid'];\n $name = $friend['first_name'].' '.$friend['last_name'];\n $photo = $friend['photo_200'];\n $query =\"INSERT INTO friends VALUES('$id', '$name', '$photo', '$user_id');\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n }", "protected function addUserFriend($user_id, $friend_id) {\n\t\t// Mlog::addone ( 'addUserFriend($user_id, $friend_id)', $user_id );\n\t\t// Mlog::addone ( 'addUserFriend($user_id, $friend_id)', $friend_id );\n\t\t$user_friend = $this->dbAdapter->getRepository ( \"\\Application\\Entity\\UserFriend\" )->findOneBy ( array (\n\t\t\t\t'user_id' => $user_id,\n\t\t\t\t'friend_id' => $friend_id \n\t\t) );\n\t\t// Mlog::add ( $user_friend, 'p' );\n\t\t// Mlog::out ();\n\t\tif (empty ( $user_friend )) {\n\t\t\t$tblUserFriend = new \\Application\\Entity\\UserFriend ();\n\t\t\t$tblUserFriend->friend_id = $friend_id;\n\t\t\t$tblUserFriend->user_id = $user_id;\n\t\t\t$tblUserFriend->user_approve = 1;\n\t\t\t$user_friend = $this->dbAdapter->persist ( $tblUserFriend );\n\t\t\t// Mlog::add ( $user_friend, 'p' );\n\t\t}\n\t\t\n\t\treturn $user_friend;\n\t}", "public function friendOf() {\n return $this->belongsToMany('App\\Models\\User', 'friends', 'friend_id', 'user_id');\n }", "public function addFriend(\\User\\Entity\\User $friend)\r\n {\r\n $this->friends[] = $friend;\r\n $friend->addUser($this);\r\n\r\n return $this;\r\n }", "public function _friendadd() {\n\t\t$this->history = false;\n\n\t\t// for authenticated only\n\t\tif ($this->user && csrf::valid()) {\n\n\t\t\t// require valid user\n\t\t\t$this->member = new User_Model($username);\n\t\t\tif ($this->member->id) {\n\t\t\t\t$this->user->add_friend($this->member);\n\n\t\t\t\t// News feed event\n\t\t\t\tnewsfeeditem_user::friend($this->user, $this->member);\n\n\t\t\t}\n\t\t}\n\n\t\turl::back('members');\n\t}", "public function friendOf() {\n return $this->belongsToMany('Social\\Models\\User', 'friends', 'friend_id', 'user_id' );\n }", "public function add_friend(User_Model $friend) {\n\n\t\t// don't add duplicate friends or oneself\n\t\tif ($this->loaded() && $this->id != $friend->id && !$this->is_friend($friend)) {\n\t\t\t$friendship = new Friend_Model();\n\t\t\t$friendship->user_id = $this->id;\n\t\t\t$friendship->friend_id = $friend->id;\n\t\t\t$friendship->save();\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public function friends()\n {\n return $this->belongsToMany('App\\User', 'friends', 'user_id', 'friend_id');\n }", "public function addFriend(Client $neo4jClient, User $user): Response\n {\n if (auth()->user()->friends()->get()->contains($user)) return response('', 400);\n\n $authId = auth()->id();\n\n auth()->user()->friends()->attach($user);\n $user->friends()->attach(auth()->user());\n\n DB::transaction(function () use ($authId, $user, $neo4jClient) {\n // TODO: A temporary workaround. Use the library method instead of this request.\n Http::withBasicAuth(env('NEO4J_USER'), env('NEO4J_PASSWORD'))\n ->post(env('NEO4J_PROTOCOL').'://'.env('NEO4J_HOST').'/db/data/transaction/commit', [\n 'statements' => [\n [\n 'statement' => <<<'CYPHER'\nMATCH (a:User{id: $authId), (u:User{id: $userId})\nMERGE (a)-[:KNOWS]->(u)\nMERGE (u)-[:KNOWS]->(a)\nCYPHER,\n 'parameters' => [\n 'authId' => $authId,\n 'userId' => $user->id\n ]\n ]\n ]\n ]);\n\n // TODO: Use this instead of the above request.\n // TODO: Same query does not work with the library method. Possibly a library bug.\n// $neo4jClient->run(<<<'CYPHER'\n//MATCH (a:User{id: $authId}), (u:User{id: $userId})\n//MERGE (a)-[:KNOWS]->(u)\n//MERGE (u)-[:KNOWS]->(a)\n//CYPHER,\n// ['authId' => $authId, 'userId' => $user->id]\n// );\n });\n\n return response('');\n }", "public function isAddToRelationship();", "public function with(User $friend)\n {\n $conversation = Conversation::Single([auth()->user()->id, $friend->id])->first();\n if (!$conversation) {\n $conversation = new Conversation;\n $conversation->type = \"single\";\n $conversation->save();\n $conversation->users()->attach([auth()->user()->id, $friend->id]);\n }\n return redirect()->route(\"conversation.show\", $conversation);\n }", "public function friends()\n\t {\n\t\treturn $this->belongsToMany('User', 'friend_user', 'user_id', 'friend_id');\n\t }", "public function addFriend (Request $request, $id) {\n $friend = User::findOrFail($request->friend_id);\n\n if ($friend) {\n $user = User::where('_id', $id)->push(['friend' => $friend->_id]);\n\n return response()->json(['message' => $friend->name.' foi adicionado!']);\n }\n return response()->json(['message' => 'Usuário não encontrado.']);\n }", "public function friendsOfMine() {\n return $this->belongsToMany('App\\Models\\User', 'friends', 'user_id', 'friend_id');\n }", "function user_add_friend($user_id, $friend_username) {\n $db = connectDB();\n \n // Look up user\n $friend_user_id = user_find_id($friend_username);\n \n if ($friend_user_id === NULL) {\n return \"No such user.\";\n }\n \n if ($friend_user_id == $user_id) {\n return \"You cannot send a friend request to yourself.\";\n }\n \n // Check they're not already friends\n $stmt = $db->prepare('\n SELECT\n user_id_1, user_id_2, provisional\n FROM\n friendships\n WHERE\n (user_id_1 = :user_id_1 AND user_id_2 = :user_id_2)\n OR (user_id_1 = :user_id_2 AND user_id_2 = :user_id_1)\n LIMIT\n 1\n ;\n ');\n $stmt->execute([\n ':user_id_1' => $user_id,\n ':user_id_2' => $friend_user_id\n ]);\n $rows = $stmt->fetchAll(PDO::FETCH_ASSOC);\n if (!empty($rows)) {\n $row = $rows[0];\n if ($row['provisional']) {\n if ($row['user_id_1'] == $user_id) {\n return \"You already sent a friend request to that user.\";\n } else {\n return \"That user already sent you a friend request.\";\n }\n } else {\n return \"You are already friends with that user.\";\n }\n }\n \n // Actually send the request\n $db->beginTransaction();\n $stmt = $db->prepare('\n INSERT INTO\n friendships(user_id_1, user_id_2, timestamp, provisional)\n VALUES\n (:user_id_1, :user_id_2, datetime(\\'now\\'), 1)\n ;\n ');\n $stmt->execute([\n ':user_id_1' => $user_id,\n ':user_id_2' => $friend_user_id\n ]);\n $db->commit();\n\n return TRUE;\n}", "public function friendsOfMine() {\n // One user can have many friends\n\n return $this->belongsToMany('Social\\Models\\User', 'friends', 'user_id', 'friend_id');\n\n }", "public function add_friend($requester,$user_requested)\n {\n return User::find($requester)->add_friend($user_requested);\n }", "public function user()\n {\n return $this->belongsTo('friends\\Models\\User','user_id');\n }", "public function addFriend($other) {\n\t\t$conn = new mysqli ( $GLOBALS ['dbservername'], $GLOBALS ['dbusername'], $GLOBALS ['dbpassword'], $GLOBALS ['dbname'] );\n\t\t$sql = \"INSERT INTO friend (this,that) VALUES ('$this->userID','$other')\";\n\t\t$conn->query ( $sql );\n\t\t$sql = \"INSERT INTO friend (this,that) VALUES ('$other','$this->userID')\";\n\t\t$conn->query ( $sql );\n\t\t$conn->close ();\n\t}", "protected function addRelation()\n {\n $fromTable = $this->ask('Enter the name of the parent table');\n $this->checkInput($fromTable);\n $toTable = $this->ask('Enter the name of the child table');\n $this->checkInput($toTable);\n $relationColumn = $this->ask('Enter the column which is going to be referenced (default is \\'id\\')', 'id');\n $action = $this->choice('Action to be taken for column (default is \\'cascade\\')', ['cascade', 'restrict', 'set null'], 'cascade');\n $this->service->addRelation($fromTable, $toTable, $relationColumn, $action);\n }", "public function addAction(Request $request)\n {\n if ($selectedFriends = $request->get('friends_id')) {\n $currentUser = $this->getUser();\n $userRepository = $this->getDoctrine()->getRepository('KibokoSocialNetworkBundle:User');\n $friendshipRepository = $this->getDoctrine()->getRepository('KibokoSocialNetworkBundle:UserFriendship');\n $em = $this->getDoctrine()->getEntityManager();\n foreach ($selectedFriends as $selectedFriendId) {\n $mayBeFriend = $userRepository->findOneById($selectedFriendId);\n if ($usersFriendship = $friendshipRepository->findByUserAndFriendUser($currentUser, $mayBeFriend)) {\n if ($usersFriendship[0]->getUserSrc() === $currentUser) {\n if ($usersFriendship[0]->getNbRefusals() >= $this->container->getParameter('kiboko_social_network.friendship.nb_refusals')) {\n continue;\n }\n $friendship = $usersFriendship[0];\n $friendship2 = $usersFriendship[1];\n } else {\n if ($usersFriendship[1]->getNbRefusals() >= $this->container->getParameter('kiboko_social_network.friendship.nb_refusals')) {\n continue;\n }\n $friendship = $usersFriendship[1];\n $friendship2 = $usersFriendship[0];\n }\n } else {\n $friendship = new UserFriendship();\n $friendship->setUserSrc($currentUser);\n $friendship->setUserTgt($mayBeFriend);\n $friendship2 = new UserFriendship();\n $friendship2->setUserSrc($mayBeFriend);\n $friendship2->setUserTgt($currentUser);\n }\n $friendship->setStatus(UserFriendship::PENDING_STATUS);\n $friendship2->setStatus(UserFriendship::ASKING_STATUS);\n $em->persist($friendship);\n $em->persist($friendship2);\n $this->get('kiboko_social_network.friendship_mailer')->sendInvitMessage($mayBeFriend);\n }\n $em->persist($currentUser);\n $em->flush();\n $this->get('session')->setFlash('notice',\n $this->get('translator')->trans(\n 'kiboko_social.socialnetwork.invitation.success_msg',\n [],\n 'friendship'\n ));\n }\n\n return $this->redirect($this->generateUrl('kiboko_social_network_friendship_list'));\n }", "public function friends()\n {\n return $this->hasMany(Models\\AccountFriend::class, 'account_id');\n }", "public function user()\n {\n return $this->belongsTo(User::class, 'friend_id');\n }", "function userRelationship($user_id) {\n \t\n \t$user_relationship_request_url = sprintf($this->api_urls['user_relationship'], $user_id, $this->access_token);\n \t\n \treturn $this->__apiCall($user_relationship_request_url);\n \t\n }", "function add_friend($email, $name, $include)\r\n\t{\r\n\t\treset($this->friend_list);\r\n\t\twhile(list($friend_id, $friend) = each($this->friend_list)) {\r\n\t\t\tif ($friend->email == $email) {\r\n\t\t\t\t$this->error_message = \"Friend $email is already in your list.\";\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$friend = new user_friend();\r\n\t\t$friend->friend_id = \"0\";\r\n\t\t$friend->email\t= $email;\r\n\t\t$friend->name\t= $name;\r\n\t\t$friend->include = $include;\r\n\t\t$this->friend_list[] = $friend;\r\n\t\treturn true;\r\n\t}", "public static function createFriendRequest(User $user, User $user2)\n {\n $friend = factory(FriendList::class)->create([\n 'user_two' => $user->id,\n 'user_one' => $user2->id,\n 'status' => 'pending'\n ]);\n\n return $friend;\n }", "protected function createRelation(User $user1, User $user2, $relationId)\n {\n // add relation to pivot table\n $user1->relationships()->sync([$user2->id => ['relation_id' => $relationId]]);\n // define the inverse\n $user2->relationships()->sync([$user1->id => ['relation_id' => $relationId]]);\n }", "function becomeFriendsWith($person) {\n $query = \"INSERT INTO friends (friend_id, user_id) VALUES ('{$person}','\".$this->data['id'].\"')\";\n $query2 = \"INSERT INTO friends (friend_id, user_id) VALUES ('\".$this->data['id'].\"','{$person}')\";\n mysql_query($query);\n mysql_query($query2);\n\n header('location: home.php');\n }", "public function friends(){\n return $this->belongsToMany('App\\User', 'friends', 'user_1', 'user_2')->withPivot('status');\n }", "public function addfriendAction()\n {\n $response = $this->getResponse();\n $data = $this->params()->fromPost();\n $dm = $this->getDocumentService();\n $successModel = new SuccessModel();\n\n $check = $successModel->checkFriend($data['actionUser'], $data['actionLocation'], $dm);\n if($check== null)\n {\n $result = $successModel->sendRequestAddFriend($data, $dm);\n\n if($result)\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 1,\n )));\n }\n else\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 0,\n )));\n }\n }\n else\n {\n return $response->setContent(\\Zend\\Json\\Json::encode(array(\n 'success' => 0,\n )));\n }\n\n }", "public function auto_friend($user_id)\n {\n global $db, $system;\n if (!isset($user_id) || !$system['auto_friend'] || is_empty($system['auto_friend_users'])) {\n return;\n }\n /* make a list from target friends */\n $auto_friend_users_array = json_decode(html_entity_decode($system['auto_friend_users']), true);\n if (count($auto_friend_users_array) == 0) {\n return;\n }\n foreach ($auto_friend_users_array as $_user) {\n if (is_numeric($_user['id'])) {\n $auto_friend_users_ids[] = $_user['id'];\n }\n }\n if (count($auto_friend_users_ids) == 0) {\n return;\n }\n $auto_friend_users = implode(',', $auto_friend_users_ids);\n /* get the user_id of each new friend */\n $get_auto_friends = $db->query(\"SELECT user_id FROM users WHERE user_id IN ($auto_friend_users)\");\n if ($get_auto_friends->num_rows > 0) {\n while ($auto_friend = $get_auto_friends->fetch_assoc()) {\n /* add friend */\n $db->query(sprintf(\"INSERT INTO friends (user_one_id, user_two_id, status) VALUES (%s, %s, '1')\", secure($user_id, 'int'), secure($auto_friend['user_id'], 'int')));\n /* follow */\n $db->query(sprintf(\"INSERT INTO global_followings (user_id, following_id) VALUES (%s, %s)\", secure($user_id, 'int'), secure($auto_friend['user_id'], 'int')));\n }\n }\n }", "function modifyUserRelationship($user_id, $action) {\n \t\n \t/*\n \t// *** NEED TO LOOK INTO THIS FURTHER ***\n \t// Documentation states it is a POST to /users/{user-id}/relationship with a parameter 'action'\n \t// The example does not include 'action':\n \t// https://api.instagram.com/v1/users/1574083/relationship?access_token=103467.f59def8.cecb6db66a2e4522b74a243fdd235603\n\n \t$user_modify_relationship_request_url = sprintf($this->api_urls['modify_user_relationship'], $user_id, $action, $this->access_token);\n \t\n \treturn $this->__apiCall($user_modify_relationship_request_url);\n \t*/\n \t\n }", "public function create()\n {\n $fri = $this->validate(request(), [\n 'first_name' => '',\n 'last_name' => '',\n 'nickname' => 'required',\n 'birthday' => '',\n 'address' => '',\n 'bank_account'=> '',\n 'status_noti'=> '',\n 'status'=> ''\n ]);\n\n Friend::create($fri);\n\n return back()->with('success', 'Friend has been added');\n }", "function createFriendListRecord($user_id, $friend_id, $connection_id) {\n //get both user rows\n $friend_user_row = getUserRow($friend_id, \"user_loging\");\n if ($friend_user_row) {\n $user_row = getUserRow($user_id, \"user_loging\");\n //create friend_list record for user\n createListRecord($user_id, $friend_id, $friend_user_row['l_name'], $connection_id, 'friend_list');\n //create friend_list for friend\n createListRecord($friend_id, $user_id, $user_row['l_name'], $connection_id, 'friend_list');\n }\n}", "public function acceptFriend(User $userFriend) {\n\n DB::table('invitation')\n ->where('emetteur_id', $userFriend->id)\n ->where('recepteur_id', $this->id)\n ->update(['status' => 1]);\n }", "public static function blockFriend($friendUserID)\n {\n if(!Friends::isBlocked($friendUserID))\n return;\n\n if(Friends::isRelationExists($friendUserID))\n $relation = Friends::relation($friendUserID)->first();\n else\n $relation = new Friends();\n\n $relation->addUsers(UserUtil::getUsersIdElseLoggedInUsersId(), $friendUserID);\n\n $relation->setStatus(3);\n\n $relation->save();\n }", "public function addRelation(RelationInterface $relation);", "public function addFriends($inputs)\n {\n $user = $this->getAuthUser();\n $other_user = User::where('id', $inputs['id'])->first();\n // dd($user->id, $other_user->id);\n if ($other_user && $user) {\n switch ($inputs['request_type']) {\n //Send a Friend Request\n case 'befriend':\n $user->befriend($other_user);\n break;\n //Accept a Friend Request \n case 'accept':\n $user->acceptFriendRequest($other_user);\n break;\n //Deny a Friend Request\n case 'deny':\n $user->denyFriendRequest($other_user);\n break;\n //Remove Friend\n case 'unfriend':\n $user->unfriend($other_user);\n break;\n //Block a Model\n case 'block':\n $user->blockFriend($other_user);\n break;\n //Unblock a Model\n case 'unblock':\n $user->unblockFriend($other_user);\n break; \n }\n }\n return false;\n }", "function _add_relationship_if_not_exists($object, $relationship, $value, $namespace) {\n $rels = $object->relationships->get($namespace, $relationship);\n $existed = FALSE;\n foreach ($rels as $rel) {\n $existed |= (isset($rel['object']['value']) && $rel['object']['value'] == $value);\n }\n if (!$existed) {\n $object->relationships->add($namespace, $relationship, $value);\n }\n if ($relationship == 'isMemberOfSite') {\n $object->relationships->remove($namespace, 'isMemberOfSite', 'info:fedora/' . $value);\n }\n}", "public static function createFriendSent(User $user, User $user2)\n {\n $friend = factory(FriendList::class)->create([\n 'user_one' => $user->id,\n 'user_two' => $user2->id,\n 'status' => 'pending'\n ]);\n\n return $friend;\n }", "public function follow($id){\n $add = Friendship::create([\n 'requester' => Auth::user()->id,\n 'user_requested' => $id\n ]);\n \n return back();\n\n }", "function create_fam_relation($eParent, $personRec, $tag)\n\t{\n\t\t//throw new exception(\"create fam rel - this function is not implemented\");\n\t}", "function add($follower, $following, $loggedUser)\n{\n //Adding $follower to the list of personn following $following\n // if and only if $follower = $loggedUser or $loggedUser is an admin\n check_not_null($follower, $following, $loggedUser);\n\n if (check_owner_bool($follower, $loggedUser)) {\n //Return False if we are an admin or if $follower = $loggedUser\n //So here, we are not an admin\n forbidden_error();\n }\n\n //We have the rights to do it\n $sql = \"INSERT INTO friend VALUES (:followername , :followingname)\";\n $bd = connect();\n $stmt = $bd->prepare($sql);\n $stmt->bindValue(':followername', $follower, \\PDO::PARAM_STR);\n $stmt->bindValue(':followingname', $following, \\PDO::PARAM_STR);\n return $stmt->execute();\n //Will return true on succes and false on failure\n}", "public function createRelation($user, $reason){\n $this->user_id = $user->id;\n $this->reason_id = $reason->id;\n }", "public function following(){\n return $this->belongsToMany('User', 'followers', 'user_id', 'follow_id')->withTimestamps();\n }", "private function createRelation()\n {\n $this->createBuilder();\n }", "public function followedBy(){\n return $this->belongsToMany('App\\User', 'follows', 'dog_id', 'user_id');\n }", "public function acceptFriendRequest(User $user) {\n\n // Grab the friend requests where the id = the user id\n // then grab that user and update the pivot (table)\n // and update array to accepted = true (or = 1)\n $this->friendRequests()->where('id', $user->id)\n ->first()->pivot->update(['accepted' => true]);\n }", "function add_user_following($following_id, $skip_notif_check = false)\n {\n if (!$skip_notif_check)\n {\n // See if the user has any follow notifications\n $query_string = \"SELECT id FROM notifications\n WHERE user_id = ? AND type= ? AND subject_id = ?\";\n $query = $this->db->query($query_string, array($this->ion_auth->get_user()->id, 'follow_notif', $following_id));\n\n if ($query->num_rows() > 0)\n {\n // Accept the notification \n $this->load->model('notification_ops');\n $this->notification_ops->accept_notification($query->row()->id);\n return;\n }\n }\n\n $query_string = \"INSERT IGNORE INTO friend_relationships VALUES (DEFAULT, ?, ?)\";\n $query = $this->db->query($query_string, array(\n $this->ion_auth->get_user()->id,\n $following_id\n ));\n\n // Notify the given user\n $this->load->model('notification_ops');\n $this->notification_ops->notify(array($following_id), array(), 'follow_notif', $this->ion_auth->get_user()->id);\n }", "public function changeRelationship ($profile_id, $user_id)\n\t{\n\t\t$Statement = $this->Database->prepare(\"SELECT id FROM following WHERE user = ? AND follower = ? LIMIT 1\");\n\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t$count = $Statement->rowCount();\n\t\t\n\t\tif ($count == 0)\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"INSERT INTO following (user, follower) VALUES (?, ?)\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"DELETE FROM following WHERE user = ? AND follower = ?\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t}", "public function addRelatedModel($relationshipName) {\n\t\t$model = $this->model;\n\t\t$relationship = $model::metaGetRelationship($relationshipName);\n\n\t\t// Related model\n\t\t$relatedModel = $relationship[\"model\"];\n\n\t\t// Adding related model to related model list\n\t\t$this->relatedModels[] = $relatedModel;\n\t\t\n\t\t// Adding related model table to related table list\n\t\t$this->relatedTables[] = $relatedModel::getTableName();\n\t\t\n\t\t// Adding relationship $relationshipName of $relatedModel\n\t\t// to the relationship list\n\t\t$this->relationships[$relationshipName] = [\n\t\t\t\"model\" => $relatedModel,\n\t\t\t\"table\" => $relatedModel::getTableName(),\n\t\t\t\"name\" => $relationshipName,\n\t\t\t\"attributes\" => $relationship\n\t\t];\n\n\t\t$this->relationships[$relationshipName][\"attributes\"][\"table\"] = $relatedModel::getTableName();\n\t}", "public function following() {\n // Need to explicitly state table name follows or else the table will look for user_users\n return $this->belongsToMany(User::class, 'follows');\n }", "public function following()\n {\n return $this->belongsTo('App\\Models\\User','followed_userid','id');\n }", "public function store($friend_id)\n {\n// Friend::create([\n// 'user_id' => Auth::id(),\n// 'friend_id' => $friend_id\n// ]);\n\n if (!friendship($friend_id)->exists) {\n\n Friend::create([\n 'user_id' => Auth::id(),\n 'friend_id' => $friend_id\n ]);\n }\n\n return back();\n }", "public function follow_user(){\n\n\t\t$follow_user_data=array(\n\t\t\t'user_id'=>$this->session->userdata('usr_id'),\n\t\t\t'follow_user_id' => $this->input->post('id')\n\t\t);\n\n\t\treturn $this->db->insert('friends', $follow_user_data);\n\n\t}", "private function _setRelationship($userId): string {\n if($userId === $_SESSION['id'] && $userId !== 0) {\n return 'friend';\n }\n\n return 'foe';\n }", "function relUser(){\n return $this->hasOne('App\\User', 'id', 'id_user');\n }", "public function deleteFriend(User $user) {\n // attach the users id to friendOf\n $this->friendOf()->detach($user->id);\n //$this->friendsOfMine()->detach($user->id);\n }", "public function created(User $user)\n {\n $user->createUserRelationships();\n }", "public function attendingUsers(){\n return $this->morphToMany('App\\Models\\User', 'attendable','attendances');\n }", "protected function addFriend($user, $partner)\r\n\t{\r\n\t\t\r\n\t\t/* SEND REQUEST */\r\n\t\t\r\n\t\t$count = 1;\r\n \r\n $count = Db::dbSQL_action(SQL_SELECT_FRIENDS, array('[user]','[partner]'), array($user,$partner));\r\n \r\n\r\n \r\n\t\tif ( $count < 1 )\r\n {\r\n\t\t \r\n //debug line\r\n\t\t //var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_SELECT_BLOCKS));\r\n switch (CMS)\r\n {\r\n case \"SocialEngine\":\r\n $count = Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($partner, $user));\r\n if ($count < 1)\r\n {\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted_r]', '[accepted_u]', '[created]'), array($user, $partner, 0, 1, date(\"Y-m-d h:i:s\")));\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted_r]', '[accepted_u]', '[created]'), array($partner, $user, 1, 0, date(\"Y-m-d h:i:s\")));\r\n Db::dbSQL_action(SOCIAL_ENGINE_FRIEND_REQUEST_ADD, array('[user]','[partner]', '[created]'), array($user, $partner, date(\"Y-m-d h:i:s\")));\r\n }\r\n break;\r\n \r\n case \"PHPFox\":\r\n $count = Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($partner, $user));\r\n if ($count < 1)\r\n {\r\n Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]'), array($user, $partner));\r\n Db::dbSQL_action(PHPFOX_FRIEND_REQUEST_ADD, array('[user]','[partner]'), array($user, $partner));\r\n }\r\n break;\r\n \r\n default:\r\n if ((Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[user]','[partner]'), array($user,$partner)) > 0) && FB_SAME_TABLE )\r\n {\r\n Db::dbSQL_action(SQL_UPDATE_FRIENDS, array('[user]','[partner]'), array($user,$partner));\r\n }\r\n else\r\n {\r\n //debug line\r\n \t\t //var_dump(str_replace(array('[partner]','[user]'), array($user,$partner), SQL_SELECT_BLOCKS));\r\n \r\n if (Db::dbSQL_action(SQL_SELECT_BLOCKS, array('[partner]','[user]'), array($user,$partner)) == 0)\r\n {\r\n \t Db::dbSQL_action(SQL_INSERT_FRIENDS, array('[user]','[partner]', '[accepted]', '[pending]', '[created]', '[created Y-m-d]'), array($user, $partner, 0, 0, mktime(), date(\"Y-m-d\")));\r\n }\r\n //debug line\r\n \t\t //var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_INSERT_FRIENDS));\r\n \r\n }\r\n break;\r\n }\r\n \r\n echo \"<\".$this->_action.\"_partner_add />\";\r\n\t\t\t\r\n\t\t}\r\n\t\telse echo \"<\".$this->_action.\"_partner_exists />\";\r\n\t}", "public function followers(){\n return $this->hasMany('App\\Models\\Follow','user_id_follower');\n }", "public function createRelationship() {\n\t\tthrow new CmisNotImplementedException(\"createRelationship\");\n\t}", "public static function set_relationship($id1, $id2, $type = 'friend_request', $status = 'active', $notification_id = 0)\n\t{\n\t\t// check for existing entry\n\t\t// query the first case\n\t\t$query = parent::where('UserID1', '=', $user_id1)\n\t\t\t\t\t\t\t->where('UserID2', '=', $user_id2)\n\t\t\t\t\t\t\t->where('Type', '=', $type)\n\t\t\t\t\t\t\t->first();\n\t\t// check if query returns a record\n\t\tif(empty($query)) {\n\t\t\t// if not - query the second case\n\t\t\t$query = parent::where('UserID2', '=', $user_id1)\n\t\t\t\t\t\t\t\t->where('UserID1', '=', $user_id2)\n\t\t\t\t\t\t\t\t->where('Type', '=', $type)\n\t\t\t\t\t\t\t\t->first();\n\t\t}\n\t\t// check if query returns a record\n\t\tif(empty($query)) {\n\t\t\t// if not - perform the relationship update\n\t\t\t// check what kind of update\n\t\t\tif($type == 'friend_request') {\n\t\t\t\t// if a friend request\n\t\t\t\t$ur = new UserRelationship;\n\t\t\t\t$ur->UserID1 = $user_id1;\n\t\t\t\t$ur->UserID2 = $user_id2;\n\t\t\t\t$ur->Type = $type;\n\t\t\t\t$ur->save();\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// otherwise - perform first query\n\t\t\t\t$ur = parent::where('UserID1', '=', $user_id1)\n\t\t\t\t\t\t\t\t->where('UserID2','=', $user_id2)\n\t\t\t\t\t\t\t\t->first();\n\t\t\t\t// check if record existed\n\t\t\t\tif(empty($ur)) {\n\t\t\t\t\t// if not found - perform second query\n\t\t\t\t\t$ur = parent::where('UserID2', '=', $user_id1)\n\t\t\t\t\t\t\t\t\t->where('UserID1','=', $user_id2)\n\t\t\t\t\t\t\t\t\t->first();\n\t\t\t\t}\n\t\t\t\t$ur->Type = $type;\n\t\t\t\t$ur->save();\n\t\t\t}\n\t\t\t// check if current user has the first id\n\t\t\tif(Auth::user()->id == $id1) {\n\t\t\t\t// if yes - set $to to the second id\n\t\t\t\t$to = $id2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// if no - set $to to the first id\n\t\t\t\t$to = $id1;\n\t\t\t}\n\t\t\t// create a notification\n\t\t\t$n = Notification::set_notification($to, $type, $status, $notification_id);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t// if yes - discard and return false\n\t\treturn false;\t\n\t}", "public function addfriend(){\n /**\n * one can acces properties in the class \n * for example the username and email\n * this means this instance of a class \n */\n \n return \" $this->username\";\n \n }", "public function created(User $user)\n {\n // 处理默认关注和默认相互关注\n $famous = Famous::query()->with('user')->get()\n ->groupBy('type');\n $famous\n ->map(function ($type, $key) use ($user) {\n $users = $type->filter(function ($famou) {\n return $famou->user !== null;\n })->pluck('user');\n $user->followings()->attach($users->pluck('id'));\n // 相互关注\n if ($key === 'each') {\n $users->map(function ($source) use ($user) {\n $source->followings()->attach($user);\n });\n }\n });\n }", "public function add_friend()\n {\n return \"$this->username added a new friend\";\n }", "public function addRelation($data)\n {\n if ($data instanceof Relation) {\n $relation = $data;\n $relation->setEntity($this);\n $this->relations[] = $relation;\n\n if (!in_array($relation->getForeignEntityName(), $this->foreignEntityNames)) {\n $this->foreignEntityNames[] = $relation->getForeignEntityName();\n }\n\n return $relation;\n }\n\n $relation = new Relation();\n $relation->setEntity($this);\n $relation->loadMapping($data);\n\n return $this->addRelation($relation);\n }", "public function CreateNewFriendRequest($userId, $friendId)\n {\n $sql = 'INSERT IGNORE INTO friend_request (user_id, friend_user_id)\n VALUES (?, ?)';\n \n $query = $this->GetDbConnection()->NewQuery($sql);\n \n $query->AddIntegerParam($userId);\n $query->AddIntegerParam($friendId);\n\n $result = $query->TryExecuteInsert();\n return $result !== false;\n }", "public function following()\n {\n return $this->belongsTo(User::class);\n }", "public function getFriendAction(Request $request, $id)\n\t{\n\t\t$em = $this -> getDoctrine()->getManager();\n\t\t$session = $request ->getSession();\n\t\t$friend = $em -> getRepository('UserBundle:User') -> find($id);\n\t\t# Récupérer l'id de l'user connecté et lui attribuer un ami :\n\t\t$this -> getUser() -> addFriend($friend);\n\t\t\n\t\t$session -> getFlashbag()->add('succes','Ce joueur est votre ami !');\n\t\t$em -> flush();\n\n\t\treturn $this -> redirect($this -> generateUrl('front_office_user_showFriends'));\n\t}", "public static function addUser()\n {\n // ADD NEW DATA TO A TABLE\n // MAKE SURE TO SEND USERS TO THE /users page when a user is added\n }", "function user_add($data, $data1) {\n $id = $data['uid'];\n $name = $data['first_name'].' '.$data['last_name'];\n $email = $data['email'];\n $phone = $data['mobile_phone'].' '.$data['home_phone'];\n\n //add id and name of user to sesstion\n $this->add_session($id, $name);\n\n if (!$this->user_is($id)) {\n $query =\"INSERT INTO users VALUES('$id', '$name', '$email', '$phone');\";\n $result = $this->conn->query($query);\n if (!$result) die (\"Database access failed: \" . $this->conn->error);\n //add friends of current user\n for ($j = 0 ; $j < count($data1) ; ++$j) {\n $this->addFriend($data1[$j], $id);\n }\n }\n }", "public function followedUser()\n {\n return $this->belongsTo('App\\User', 'followed_id');\n }", "public function addLeader($user): void\n {\n $this->leaders()->attach($user);\n }", "public function addReferrer(Relation $relation)\n {\n $this->referrers[] = $relation;\n }", "public function addRelationShip($id, $dependentId, $oBegin, $oEnd, $dBegin, $dEnd, $relation, $text)\n {\n $this->relationships[] = new Relationship($id, $dependentId, $oBegin, $oEnd, $dBegin, $dEnd, $relation, $text);\n }", "public function getMorphByUserRelation($relationship);", "public function addUser(){}", "public function followers() {\n return $this->belongsToMany(User::class);\n }", "public function followers()\n {\n return $this->belongsTo('App\\Models\\User','userid','id');\n }", "public function store()\n\t{\n\t\t$friend_id = Input::get(\"friend_id\");\n\t\t$user = $this->user->requireByID(Auth::user()->id);\n\t\t$friend = $user->organization()->first()->students()->findOrFail($friend_id);\n\t\t$response = array(\"error\" => false, \"message\" => \"\");\n\t\tif($friend){\n\t\t\t$user->friends()->attach($friend, array(\"status\" => \"pending\"));\n\t\t\t$friend->friends()->attach($user, array(\"status\" => \"pending\"));\n\t\t\t$response['message'] = \"Friend added!\";\n\t\t}else{\n\t\t\t$response['error'] = true;\n\t\t\t$response['message'] = \"Error!\";\n\t\t}\n\t\treturn $response;\n\t}", "public function store(Requests\\RelationshipRequest $request)\n\t{\n\t\t//\n\t\tRelationship::create($request->all());\n\t\treturn redirect('relationships');\n\t}", "public function followers(){\n return $this->belongsToMany('User', 'followers', 'follow_id', 'user_id')->withTimestamps();\n }", "function atwork_user_relationships_request_relationship_direct_link($variables) {\n $relate_to = $variables['relate_to'];\n $relationship_type = $variables['relationship_type'];\n //safety, revert to a generic link\n if (!isset($relationship_type)) {\n return theme('user_relationships_request_relationship_link', array('relate_to' => $relate_to));\n }\n return l(\n t(\"Follow\", array('%name' => format_username($relate_to)) + user_relationships_type_translations($relationship_type)),\n \"relationship/{$relate_to->uid}/request/{$relationship_type->rtid}\",\n array(\n 'query' => drupal_get_destination(),\n 'html' => TRUE,\n 'attributes' => array('class' => array('user_relationships_popup_link')),\n )\n );\n}", "public function users(){\n\t\treturn $this->belongsToMany('Alsaudi\\\\Eloquent\\\\UserRelation',\n\t\t\t'trip_user','trip_id','user_id');\n\t}", "public function validUserRelationship($input){\n\n $suppliedRelationship = $input['user_relationship'];\n\n if(isset(LoungeUser::$relationships[$suppliedRelationship]))\n return true;\n\n return false;\n }", "public function FollowingList()\n {\n return $this->belongsToMany('App\\User', 'user_following', 'user_id', 'following_id' );\n }", "public function follows($username)\n {\n $user = User::where('username', $username)->firstOrFail();\n $id = Auth::id();\n $me = User::find($id);\n $me->following()->attach($user->id);\n\n return redirect('/home')->with('success','Vous suivez cette personne');\n\n }", "protected function addRelation($field)\n {\n $this->owner->relationsKeeper->addRelation($field);\n }", "function updateFriends($user) {\n if ($user==null)\n return;\n $this->load->model('facebook_model');\n $facebook_friends = $this->facebook_model->getFriends();\n if (count($facebook_friends)==0)\n return;\n // filter users in DB\n $friends = $this->getUsersByFacebookIds($facebook_friends);\n if (count($friends)==0) {\n echo 'no friends left :(';\n return;\n }\n // prepare list\n $values = '';\n $userId = $user->id;\n foreach ($friends as $friend) {\n $friendId = $friend->id;\n $values .= '(\"' . $userId . '\", \"' . $friendId . '\"), ';\n $values .= '(\"' . $friendId . '\", \"' . $userId . '\"), ';\n }\n // delete current friendships and insert the updated ones\n $queryStr = 'DELETE FROM users_friends WHERE user_id='.$userId.' OR friend_id='.$userId.';';\n $this->runQuery($queryStr);\n $queryStr = 'INSERT INTO users_friends (user_id, friend_id) VALUES ' . substr($values, 0, -2) . ';';\n $this->runQuery($queryStr);\n }" ]
[ "0.7455175", "0.7241575", "0.7152756", "0.7009196", "0.6961891", "0.6891382", "0.68568736", "0.6737063", "0.6702785", "0.66634065", "0.6634259", "0.6597718", "0.65577817", "0.6551841", "0.6532521", "0.6513742", "0.6458189", "0.6352223", "0.6347899", "0.6266952", "0.6161635", "0.61612564", "0.61573017", "0.6146912", "0.61085737", "0.61012506", "0.6027377", "0.60174364", "0.5978014", "0.5925001", "0.58865386", "0.5885318", "0.583695", "0.5789072", "0.57460755", "0.57139975", "0.56919086", "0.5670489", "0.5657831", "0.5647838", "0.5641976", "0.5598837", "0.5582321", "0.5564908", "0.5511458", "0.5490854", "0.5478579", "0.5472213", "0.5456365", "0.54450345", "0.54413575", "0.5440691", "0.5437342", "0.54254514", "0.5421765", "0.5353815", "0.53536975", "0.5345415", "0.5322218", "0.5321721", "0.5316609", "0.5313352", "0.52999073", "0.5295779", "0.5294385", "0.5293953", "0.52850795", "0.52791435", "0.52709126", "0.5268328", "0.5267593", "0.52656066", "0.5262214", "0.525741", "0.5256553", "0.52562493", "0.52446115", "0.5243237", "0.5230003", "0.52256274", "0.5223406", "0.52121055", "0.5199907", "0.5194757", "0.5194412", "0.5187717", "0.5180181", "0.5173529", "0.51704776", "0.516411", "0.51626337", "0.5157707", "0.5148564", "0.51402956", "0.51386", "0.51299274", "0.51280445", "0.5123093", "0.5121782", "0.5108659", "0.5099373" ]
0.0
-1
Remove a relationship UserFriend
public function removeFriend(\User\Entity\User $friend) { if (!$this->friends->contains($friend)) return $this; $this->friends->removeElement($friend); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteFriend(User $user) {\n // attach the users id to friendOf\n $this->friendOf()->detach($user->id);\n //$this->friendsOfMine()->detach($user->id);\n }", "public function remove_friend()\n {\n //delete from db;\n $this->Friend_model->remove_friend_model();\n }", "public function unfriend() {\n $existed_relation_status = $this->get_relation_by_status(\"F\");\n if($existed_relation_status) {\n $this->delete_relation(\"F\");\n\n $relation = new UserRelation();\n $relation->set_property(\"from\", $this->to);\n $relation->set_property(\"to\", $this->from);\n\n $relation->delete_relation(\"F\");\n return true;\n }\n\n return false;\n }", "public function deleteFriend(User $user)\n {\n $this->friendOf()->detach($user->id);\n $this->friendsOfMine()->detach($user->id);\n }", "public function removeFriend(User $user)\n {\n try {\n DB::beginTransaction();\n $this->connections()->detach($user->id);\n $user->connections()->detach($this->id);\n DB::commit();\n } catch (\\PDOException $e) {\n DB::rollBack();\n }\n }", "public function deleteFriend(User $user)\n\t{\n\t\t$this->friendsOf()->detach($user->id);\n\t\t//deletes any frien selected\n\t\t$this->friendsOfMine()->detach($user->id);\n\t}", "public function isRemoveFromRelationship();", "public static function deleteFriend($friendUserID)\n {\n /*$exists = Friends::where('user_that_sent_request', self::getLoggedInUser()->id)->where('user_that_accepted_request', $friendUserID)->where('accepted', '1')->count();\n\n $exists2 = Friends::where('user_that_accepted_request', self::getLoggedInUser()->id)->where('user_that_sent_request', $friendUserID)->where('accepted', '1')->count();\n\n if($exists > 0)\n {\n $relation = Friends::where('user_that_sent_request', self::getLoggedInUser()->id)->where('user_that_accepted_request', $friendUserID)->where('accepted', '1')->first();\n $relation->delete();\n }\n\n if($exists2 > 0)\n {\n $relation = Friends::where('user_that_accepted_request', self::getLoggedInUser()->id)->where('user_that_sent_request', $friendUserID)->where('accepted', '1')->first();\n $relation->delete();\n }*/\n\n if(!self::isFriend($friendUserID))\n return;\n\n $relation = Friends::friend($friendUserID)->first();\n\n // Soft deletes arent working for some reason\n $relation->forceDelete();\n\n\n }", "public function removeFriend(User $user)\n {\n if (! $this->isFriendWith($user)) {\n return ;\n }\n $this->friends()->detach($user->id);\n }", "public function unfriend(Request $request){\n $userid= Auth::user()->id;\n $id = $request->userid;\n $user1 = DB::table('users')->where('id',$id)->get();\n $user2 = DB::table('users')->where('id',auth()->user()->id)->get();\n //dd($user2[0]->name);\n (DB::table('friends')->where('id_friend1',auth()->user()->id)->where('id_friend2',$user1[0]->id))->delete();\n (DB::table('friends')->where('id_friend2',auth()->user()->id)->where('id_friend1',$user1[0]->id))->delete();\n\n return redirect()->back();\n\n }", "public function removeFriend($friend_guid);", "public function removeFromFriendsAction()\n {\n $model = $this->getCurrentUser();\n $friendId = $this->getRequest()->getBodyParams('id');\n\n try\n {\n $friend = $this->getUserService()->removeFromFriends($model->getId(), $friendId);\n } catch (\\InvalidArgumentException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n } catch (NotFoundException $e)\n {\n return $this->sendErrorResponse([$e->getMessage()]);\n }\n\n $map = $this->getMapService()->renderMapWithMarker($friend->getLatlng(), $friend->getLocationName());\n\n $this->sendResponse(\n [\n 'id' => $friend->getId(),\n 'type' => User::class,\n 'properties' => [\n 'user' => $friend,\n 'isFriend' => false,\n 'location' => [\n 'html' => htmlentities($map['html']),\n 'js' => htmlentities(trim($map['js'])),\n ],\n ],\n ]\n );\n }", "public function removeRelation(RelationInterface $relation);", "public function delete($user, Friend $friend): Response\n {\n return $this->messenger->providerHasFriends()\n && $friend->isOwnedByCurrentProvider()\n ? $this->allow()\n : $this->deny('Not authorized to remove friend.');\n }", "public function removeFriend($user_to_remove)\n\t{\n\t\t//client own name is store in logged_in_user\n\t\t//client which want to remove friend it name is fetch from sqli and then put into friend_array_username\n\t\t//and then we make a replace string which repalace a $user_to_remove from $logged_in_user with \"\";\n\t\t//and then we update a logged_in_user friend array with new_friend_array \n\t\t//and then we also remove it from those user which it want to be remove\n\n\t\t$logged_in_user = $this->user['username'];\n\t\t\n\n\t\t$query = mysqli_query($this->con,\"SELECT friend_array FROM users WHERE username='$user_to_remove'\");\n\t\t$row = mysqli_fetch_array($query);\n\t\t$friend_array_username = $row['friend_array'];\n\t\t\n\n\t\t$new_friend_array = str_replace($user_to_remove . \",\",\"\",$this->user['friend_array']);\n\t\t$remove_friend = mysqli_query($this->con,\"UPDATE users SET friend_array='$new_friend_array' WHERE username='$logged_in_user'\");\n\t\n \t$new_friend_array = str_replace($this->user['username'] . \",\",\"\",$friend_array_username);\n\t\t$remove_friend = mysqli_query($this->con,\"UPDATE users SET friend_array='$new_friend_array' WHERE username='$user_to_remove'\");\n\t\n\n\t}", "public function removeRelation($name)\n\t{\n\t\tunset($this->relations[$name]);\n\t}", "public function remove() {\n\n // Updates DB (data & metadata)\n $this->attributes->removeAll($this->get(\"id\"));\n $this->db->delete(XCMS_Tables::TABLE_USERS, array(\n \"id\" => $this->get(\"id\")\n ));\n\n }", "public function destroy($friend_id)\n {\n\n $test = Friend::where([\n 'user_id' => Auth::id(),\n 'friend_id' => $friend_id,\n ])->orWhere([\n 'user_id' => $friend_id,\n 'friend_id' => Auth::id(),\n ])->get();\n\n return back();\n }", "public function unfollow_user(){\n\n\n\t\t$user_id=$this->session->userdata('usr_id');\n\t\t$follow_id=$this->input->post('id');\n\n\t\t$this->db->where('user_id', $user_id);\n\t\t$this->db->where('follow_user_id', $follow_id);\n\t\treturn $this->db->delete('friends');\n\n\t}", "public function unlinkRelationship(RelationshipInterface $relationship)\n\t{\n\t\t$relationship->setNode();\n\t\t$relationship->setOtherNode();\n\t}", "protected function removeFriend($user, $partner)\r\n\t{\r\n\t\t\r\n\t\t$count = 0;\r\n \r\n $count = Db::dbSQL_action(SQL_SELECT_FRIENDS, array('[user]','[partner]'), array($user,$partner)); \r\n \r\n //debug line\r\n\t\t//var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_SELECT_FRIENDS));\r\n\t\t\r\n if ( $count > 0 )\r\n {\r\n \r\n //debug line\r\n\t\t //var_dump($count);\r\n \r\n $deleted = Db::dbSQL_action(SQL_DELETE_FRIENDS, array('[user]','[partner]'), array($user,$partner));\r\n \r\n //debug line\r\n\t\t //var_dump(str_replace(array('[user]','[partner]'), array($user,$partner), SQL_DELETE_FRIENDS));\r\n \r\n if ($deleted)\r\n {\r\n $this->updateConnection($user, $partner);\r\n } \r\n\t\t\t\r\n $deleted = Db::dbSQL_action(SQL_DELETE_FRIENDS, array('[user]','[partner]'), array($partner,$user));\r\n \r\n //debug line\r\n\t //var_dump($deleted.' > ');\r\n\t\t\t\r\n if ($deleted) \r\n\t\t\t{\r\n\t\t\t $this->updateConnection($partner, $user);\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\techo \"<\".$this->_action.\"_partner_remove />\";\r\n\t\t}\r\n\t\telse echo \"<\".$this->_action.\"_partner_not_exists />\";\r\n\t}", "public function m2mDbRemove($attr)\n {\n $relName = $this->_relName($this->_relConfig($attr));\n $relation = $this->owner->getRelation($relName);\n\n $pkOwner = $this->_pkOwner();\n $df = $this->_relDefinition($relation);\n\n // deletes current junctions\n $this->_delJunctions($df[0], $df[2], $pkOwner);\n }", "public function destroy(User $user)\n {\n // $user = DB::table('users')->where('id', '=', $id );\n // // Delete user\n $social = $user->socialNetWork;\n // dd(sizeof($social) != 0);\n if (sizeof($social) != 0) {\n $user->socialNetWork()->delete();\n }\n $user->delete();\n return response()->json([\n 'success' => AppResponse::STATUS_SUCCESS\n ]);\n }", "public function removePending(Request $request)\n {\n User::removePending($request->only('friendid'));\n }", "function _delete_relation($object)\r\n\t{\r\n\t\tif ( ! empty($object->model) && ! empty($this->id) && ! empty($object->id))\r\n\t\t{\r\n\t\t\t// Determine relationship table name\r\n\t\t\t$relationship_table = $this->_get_relationship_table($object->prefix, $object->table, $object->model);\r\n\r\n\t\t\t$data = array($this->model . '_id' => $this->id, $object->model . '_id' => $object->id);\r\n\r\n\t\t\t// Delete relation\r\n\t\t\t$this->db->delete($relationship_table, $data);\r\n\r\n\t\t\t// Clear related object so it is refreshed on next access\r\n\t\t\t$this->{$object->model} = NULL;\r\n\r\n\t\t\treturn TRUE;\r\n\t\t}\r\n\r\n\t\treturn FALSE;\r\n\t}", "static function remove_user($user1, $user2) {\n global $con;\n\n $sql = \"UPDATE `relationship` SET `type` = 0 WHERE `user1` = \".$user1.\" AND `user2` = \".$user2.\";\";\n $query = mysqli_query($con, $sql);\n return 1;\n }", "public function destroyRelation($id)\n {\n //$relation = Item::find($id);\n //$relation->delete();\n\n // Go back to object relations\n //return redirect('items.relations', $id)->with('success', 'Relation (id='.$id.') has been deleted successfully');\n }", "public function deleteFriend($id){\n // dd($id);\n $worker = Invitation::find($id)->delete();\n // dd($worker);\n\n return redirect()->back();\n }", "public function forceDeleting(User $user)\n {\n $user->forceDeleteUserRelationships();\n }", "public function unfollow($params)\n {\n // Throw 401 if not logged in\n $token = $this->require_authentication();\n $currUser = $token->getUser()->getUserId();\n // Throw 401 if not logged in\n $id = $params['userId'];\n if ($id == null) {\n $this->error404($params[0]);\n }\n\n if(array_key_exists('ref', $_POST)) {\n $referrer = $_POST['ref'];\n } else {\n $referrer = '/users/all';\n }\n\n // Delete company model from DB\n $db = $this->getDBConn();\n $res = Following::deleteFollow($db, $currUser ,$id); // true if successful\n\n if ($res) {\n $this->addFlashMessage(\"Deleted following relationship!\", self::FLASH_LEVEL_SUCCESS);\n $this->redirect($referrer);\n } else {\n $this->addFlashMessage(\"Unknown error when deleting following relationship.\", self::FLASH_LEVEL_SERVER_ERR);\n $this->redirect($referrer);\n }\n }", "public function unfollow(User $user, Request $request)\n\t{\n\t\tif($request->user()->canUnFollow($user))\n\t\t{\n\t\t\t$request->user()->following()->detach($user);\n\t\t}\n\t\t\n\t\treturn redirect()->back();\n\t}", "function liveitchina_user_relationships_ui_remove_ajax($account, $relationship) {\r\n //#382668 makes sure a valid relationship id was supplied\n if (!$relationship->rid) {\n if (isset($_GET['ajax'])) {\r\n print '';\r\n }\r\n drupal_goto();\r\n }\r\n $form = drupal_get_form('user_relationships_ui_remove', $account, $relationship);\r\n if (isset($_GET['ajax'])) {\r\n print drupal_render($form);\r\n }\r\n else {\r\n return $form;\r\n }\r\n}", "function remove($follower, $following, $loggedUser)\n{\n //Removing $follower to the list of personn following $following\n // if and only if $follower = $loggedUser or $loggedUser is an admin\n check_not_null($follower, $following, $loggedUser);\n\n if (check_owner_bool($follower, $loggedUser)) {\n //Return False if we are an admin or if $follower = $loggedUser\n //So here, we are not an admin\n forbidden_error();\n }\n\n //We have the rights to do it\n $sql = \"DELETE FROM friend WHERE followerName = :fname AND followingName = :fingname \";\n $bd = connect();\n $stmt = $bd->prepare($sql);\n $stmt->bindValue(':fname', $follower, \\PDO::PARAM_STR);\n $stmt->bindValue(':fingname', $following, \\PDO::PARAM_STR);\n return $stmt->execute();\n //Will return true on succes and false on failure\n}", "public function removeUserFromProfil(string $username, string $profilId);", "public function removeMyFriend($friendUserId)\n {\n if (empty($friendUserId)) {\n require_once __DIR__ . '/Untappd/Exception.php';\n throw new Pintlabs_Service_Untappd_Exception('friendUserId parameter must be set and not empty');\n }\n\n $args = array();\n\n return $this->_request('friend/remove/' . $friendUserId, $args, true);\n }", "public function destroyRelationship(string $relationship, DaoModel $relation) : bool\n {\n return $this->getDaoRepository()->destroyRelation($this, $relationship, $relation);\n }", "function removeFriend($mysqli, $userID1, $userID2){\r\n $user1 = ($userID1 < $userID2) ? $userID1 : $userID2;\r\n $user2 = ($userID1 < $userID2) ? $userID2 : $userID1;\r\n\r\n $result = $mysqli->query('DELETE FROM `friends` WHERE userID1 = '.$userID1.' AND userID2 = '.$userID2.'');//can probably use fID instead\r\n\r\n if($result){\r\n return 1;\r\n }else{\r\n return 0;\r\n }\r\n }", "public function unFollow(User $user) {\n // Find the user we are following and detach the relationship (detach)\n return $this->follows()->detach($user);\n }", "public function deleteRelationship(DeleteRelationshipRequest $request)\n {\n if ($this->hasStoredRelationship($request->get('wordId'), $request->get('linkedWordId'), $request->get('type')))\n {\n $success = $this->deleteRelationshipInDatabase($request->get('wordId'), $request->get('linkedWordId'), $request->get('type'));\n }\n\n if (!isset($success) || $success)\n {\n return response()->json(array('status' => 'success'));\n }\n\n return response()->json(array('error' => 'Could not delete from database'), 500);\n }", "public function removeLeader($user): void\n {\n $this->leaders()->detach($user);\n }", "public function destroy(Request $request, $id)\n {\n // remove friend request or remove friend from friends list (both has same logic)\n $this->validate($request,\n [\n 'user_id' => 'required|integer'\n ]);\n $id = $request->input('user_id');\n $friendRequest = UserFriend::find($id);\n $code = 404;\n $response = [];\n if(!$friendRequest){\n $response = [\n 'message' => 'Wrong friend!'\n ];\n }else{\n if($friendRequest->delete()){\n $code = 200;\n $response = [\n 'message' => 'Friend request denied. Perhaps you weren\\'t meant to be?'\n ];\n }else{\n $code = 500;\n $response = [\n 'message' => 'Failed to deny the friend request. This is fate giving you a last chance!'\n ];\n }\n }\n return response()->json($response, $code);\n\n\n }", "public function unfollows($username)\n {\n $user = User::where('username', $username)->firstOrFail();\n $id = Auth::id();\n $me = User::find($id);\n $me->following()->detach($user->id);\n return redirect('/home')->with('success','Vous ne suivez plus cette personne');;\n }", "public function destroy(ProfilUser $profilUser)\n {\n //\n }", "public function unfollow($user_id_followed) {\n # Where condition for the delete\n $where_condition = 'WHERE user_id =' .$this->user->user_id.' AND user_id_followed ='.$user_id_followed;\n\n # delete from DB table\n DB::instance(DB_NAME)->delete('users_users', $where_condition);\n\n # send them back to follow users\n\n Router::redirect('/requests/users');\n }", "public static function abandonRelationships( $caller, $relationship, $subsite = 0, $removeObjects = false ) {\n\t\t$relatedObjects = $caller->{$relationship}();\n\n\t\tif( $relatedObjects && $relatedObjects->exists() ) {\n\t\t\tSubsite::temporarily_set_subsite(is_object($subsite) ? $subsite->ID : $subsite);\n\n\t\t\t// something-to-many or 1-to-1 relationship?\n\t\t\t$manyRelationship = (gettype($relatedObjects) == 'ComponentSet');\n\t\t\tif( !$manyRelationship )\n\t\t\t\t$callerID = \"{$caller->ClassName}ID\";\n\n\t\t\tforeach( $relatedObjects as $object ) {\n\t\t\t\tif( $manyRelationship )\n\t\t\t\t\t$caller->{$relationship}()->remove($object);\n\t\t\t\telseif( !$removeObjects ) {\n\t\t\t\t\t$object->$callerID = NULL;\n\t\t\t\t\t$object->write();\n\t\t\t\t}\n\t\t\t\tif( $removeObjects )\n\t\t\t\t\t$object->delete();\n\t\t\t}\n\n\t\t\tSubsite::restore_previous_subsite();\n\t\t}\n\t}", "public function deleted(User $user)\n {\n $user->softDeleteUserRelationships();\n }", "public function removeUser($user): void\n {\n if ($user->current_team_id === $this->id) {\n $user->forceFill([\n 'current_team_id' => null,\n ])->save();\n }\n\n $this->users()->detach($user);\n }", "public function destroy($id)\n {\n // dd(request()->all());\n $parent = request('sourceModel')::find(request('sourceModelId'));\n $relation = request('relation');\n // $model = request('relatedTo')::find(request('relatedToID'));\n $parent->$relation()->detach(request('id'));\n\n return response([\n 'message' => 'Relation Removed Successfully',\n ], 200);\n }", "function roles_dashboard_delete_relationship($event, $type, $relationship) {\n\n\tif ($relationship->relationship !== 'has_role') {\n\t\treturn;\n\t}\n\n\t$user = get_entity($relationship->guid_one);\n\t$role = get_entity($relationship->guid_two);\n\tif (!$role instanceof ElggRole || !$user instanceof ElggUser) {\n\t\treturn;\n\t}\n\n\t$ia = elgg_set_ignore_access(true);\n\n\t$dashboards = elgg_get_entities_from_relationship(array(\n\t\t'types' => 'object',\n\t\t'subtypes' => MultiDashboard::SUBTYPE,\n\t\t'owner_guid' => $user->guid,\n\t\t'relationship' => 'dashboard_for',\n\t\t'relationship_guid' => $role->guid,\n\t\t'inverse_relationship' => true,\n\t\t'limit' => 0,\n\t));\n\n\tif ($dashboards) {\n\t\tforeach ($dashboards as $dashboard) {\n\t\t\t$dashboard->delete();\n\t\t}\n\t}\n\n\telgg_set_ignore_access($ia);\n}", "public function unlink($id)\n {\n //\n Relation::destroy( $id );\t\n }", "public function deleteUser()\n {\n $this->delete();\n }", "public function removeUser(UserInterface $user);", "public function testRelationshipsAreDeletedWithTheirUser(): void\n {\n $user = User::factory()->create([\n 'created_at' => now()->subYear(),\n ]);\n\n $booking = Booking::factory()->for($user)->create();\n $identifier = $user->identifiers()->create(['value' => 'test-value']);\n $subscription = $user->subscription()->create();\n\n $this->artisan('model:prune');\n\n $this->assertModelMissing($user);\n $this->assertModelMissing($booking);\n $this->assertModelMissing($identifier);\n $this->assertModelMissing($subscription);\n }", "public function removeRelation(\\RubenSteeb\\TestModelRelations\\Domain\\Model\\RelationClass $relation)\n\t{\n\t\t$this->relations->detach($relation);\n\t}", "public function deleteFriend($data) {\n\t\t$delete_sql = 'delete from friend where account_id=' . $data['account_id'] . \" and friend_id=\" . $data['friend_id'] . \";\";\n\n\t\tif ($this->db->simple_query($delete_sql)) {\n//\t\t\techo \"delete friend success!\";\n\t\t\treturn true;\n\t\t} else {\n\t\t\terror_log(\"model->friend_model->deletefriend get result failed!\", 3, \"/logs/my-errors.log\");\n\t\t\treturn false;\n\t\t}\n\t}", "public function delete()\n\t{\n\t\t$this->plugin->setResponse($this->deletefriend());\n\t}", "public function removeRelation($name)\n\t{\n\t\tif (isset($this->relations[$name]))\n\t\t{\n\t\t\tunset ($this->relations[$name]);\n\t\t}\n\n\t\treturn $this->parentModel;\n\t}", "function delete ($relationshipName)\n {\n if ($relationship = $this->get ( $relationshipName ))\n {\n $this->removeFieldsFromUndeployedLayouts ( $relationship ) ;\n unset ( $this->relationships [ $relationshipName ] ) ;\n }\n }", "function messageReactionRemove(MessageReaction $reaction, User $user);", "public function destroy($id)\n {\n $friend = Friend::find($id);\n if (!$friend->delete()) {\n return response()->json(['message' => 'Unfollow / delete follow request failed.'], 500);\n }\n\n return response()->json(['message' => 'Unfollow / delete follow request success.'], 200);\n }", "public function destroy(User $model);", "public function deleteUser(request $request){\n \n $afi = User::find($request->id);\n $afi->delete();\n \n }", "public function friendOf() {\n return $this->belongsToMany('App\\Models\\User', 'friends', 'friend_id', 'user_id');\n }", "function removePerson(){\n\t\t \n\t\t $this->getMakeMetadata();\n\t\t $changesMade = false;\n\t\t $requestParams = $this->requestParams;\n\t\t if(isset($requestParams[\"uri\"]) && isset($requestParams[\"role\"])){\n\t\t\t\t\n\t\t\t\t$personURI = $requestParams[\"uri\"];\n\t\t\t\tif($requestParams[\"role\"] == \"creator\"){\n\t\t\t\t\t $persons = $this->rawCreators;\n\t\t\t\t\t unset($persons[$personURI]);\n\t\t\t\t\t $this->rawCreators = $persons;\n\t\t\t\t\t $changesMade = true;\n\t\t\t\t}\n\t\t\t\telseif($requestParams[\"role\"] == \"contributor\"){\n\t\t\t\t\t $persons = $this->rawContributors;\n\t\t\t\t\t unset($persons[$personURI]);\n\t\t\t\t\t $this->rawContributors = $persons;\n\t\t\t\t\t $changesMade = true;\n\t\t\t\t}\n\t\t\t\telseif($requestParams[\"role\"] == \"person\"){\n\t\t\t\t\t $persons = $this->rawLinkedPersons;\n\t\t\t\t\t unset($persons[$personURI]);\n\t\t\t\t\t $this->rawLinkedPersons = $persons;\n\t\t\t\t\t $changesMade = true;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t if($changesMade){\n\t\t\t\t$this->saveMetadata(); //save the results\n\t\t }\n\t\t return $changesMade;\n\t }", "public function destroy(User $user)\n {\n $user->delete();\n $user->specializations()->detach();\n\n return redirect(url('login'));\n }", "public function action_remove(){\n\t\t$monumentId = $this->request->param('id');\n\t\t$user = Auth::instance()->get_user();\n\t\t\n\t\t// Remove the monument from the user list\n\t\t$favoriteList = new Model_List_Favorite();\n\t\t$favoriteList->remove($monumentId, $user->UserID);\n\t\t\n\t\t// Redirect the user back to the monument page\n\t\t$this->request->redirect('monument/view/' . $monumentId);\n\t}", "public function removeUser($user)\n {\n if ($user->current_organization_id === $this->id) {\n $user->forceFill([\n 'current_organization_id' => null,\n ])->save();\n }\n\n $this->users()->detach($user);\n }", "public function removeUser()\n\t{\n\t\tif(isset($this->primarySearchData[$this->ref_user]))\n\t\t{\n\t\t\tunset($this->primarySearchData[$this->ref_user]);\n\t\t}\n\t}", "public function unfollow($user_id_followed) {\n\n\t\t# Delete this connection\n\t\t$where_condition = 'WHERE user_id = '.$this->user->user_id.' AND user_id_followed = '.$user_id_followed;\n\t\tDB::instance(DB_NAME)->delete('users_users', $where_condition);\n\n\t\t# Send them back\n\t\tRouter::redirect(\"/posts/users\");\n\n\t}", "public function delete(User $user, Profil $profil)\n {\n //\n }", "public function destroy(User $user)\n {\n //TODO: montar excluir usuário\n }", "public function destroy(User $user)\n {\n //eliminar un alumno\n $idUser=DB::table('Datos_Alumnos')->where('user_id',$user->id)->pluck('id');\n if(count($idUser)>0){\n $eliA=DatosAlumno::where('user_id', '=', $user->id)->first();\n $eliA->delete();\n $user->delete();\n return back()->with('info', 'Eliminado correctamente');\n }\n $idUser=DB::table('Datos_Docentes')->where('user_id',$user->id)->pluck('id');\n if(count($idUser)>0){\n $eliD=Datosdocente::where('user_id', '=', $user->id)->first();\n $eliD->delete();\n $user->delete();\n return back()->with('info', 'Eliminado correctamente');\n }\n $idUser=DB::table('user')->where('user_id',$user->id)->pluck('id');\n if(count($idUser)>0){\n $user->delete();\n return back()->with('info', 'Eliminado correctamente');\n }\n }", "public function delete_user($user);", "public function user()\n {\n return $this->belongsTo('friends\\Models\\User','user_id');\n }", "public function removeRelation(string $token, array $relationIds)\n {\n // Form removeRelation parameters\n $relationParameters = array(\n 'relationIds' => implode(',', $relationIds),\n );\n\n $response = Elvis::query($token, 'removeRelation', $relationParameters);\n\n return $response;\n }", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "public function deleting(User $user)\n {\n //\n }", "function remove_notification_interest($user_guid, $author_guid) {\n\treturn remove_entity_relationship($user_guid, 'notify', $author_guid);\n}", "public function destroy(User $user)\n {\n $phs = Phone_number::where('user_id',$user->id)->get();\n foreach($phs as $p){\n $p->delete();\n }\n $user->delete();\n // User::where('id',$id)->delete();\n return Redirect::to('users')->with('success', 'User deleted successfully');\n }", "public function destroy($id)\n\t{\n\t\t$friend = Friend::findOrFail($id);\n\t\t$friend->delete();\n\n\t\treturn redirect()->route('friends.index')->with('message', 'Item deleted successfully.');\n\t}", "public function friendOf() {\n return $this->belongsToMany('Social\\Models\\User', 'friends', 'friend_id', 'user_id' );\n }", "public function delete($user)\n {\n $user->deleteProfilePhoto();\n $user->tokens->each->delete();\n\n // $user->delete(); csak logikai törlés a megngedett\n $user->update([\"name\" => \"deleted\".$user->id,\n \"email\" => \"deleted\".$user->id.\"@deleted.com\",\n \"password\" => \"psw\".rand(100000,999999)]);\n\n \\DB::table('members')\n ->where('user_id','=',$user->id)\n ->delete();\n\n }", "public function detachRelationship(Request $request, object $model, string $fieldName): bool;", "public function delete(User $user, Attendance $attendance)\n {\n //\n }", "public function delete(User $user, GoodsAttribute $goodsAttribute)\n {\n //\n }", "public function friends()\n {\n return $this->belongsToMany('App\\User', 'friends', 'user_id', 'friend_id');\n }", "public function destroy(Request $request, $id)\n {\n $userToDestroy = User::find($id);\n\n $user = $request->user();\n \n if($user->type!=User::TYPE_SYSTEM_ADMIN)\n {\n $band= false;\n\n $userPermission = ClientUserRole::with('role')->where(\"user_id\",$user->id)->get();\n\n foreach($userPermission as $up)\n {\n $userToDestroyClient = ClientUserRole::with('role')->where(\"user_id\",$userToDestroy->id)->get();\n foreach($userToDestroyClient as $utd){\n if($utd->client_id==$up->client_id)\n {\n if($utd->role->value<=$up->role->value && $up->role->value>=User::TYPE_CLIENT_ADMIN){\n $band=true;\n break;\n }else{\n throw new Exception(\"Can't delete relation with this user due to permission\", 1); \n }\n }\n }\n\n if($band)\n {\n break;\n }\n }\n\n \n if($band){\n DB::beginTransaction();\n foreach($userToDestroyClient as $utd){\n if(!$utd->delete())\n {\n DB::rollBack();\n throw new Exception(\"Can't delete relation with this user\", 1);\n }\n }\n $userToDestroy->delete();\n DB::commit();\n }\n }else{\n $userToDestroyClient = ClientUserRole::where(\"user_id\",$userToDestroy->id)->get();\n DB::beginTransaction();\n foreach($userToDestroyClient as $utd){\n if(!$utd->delete())\n {\n DB::rollBack();\n throw new Exception(\"Can't delete relation with this user\", 1);\n }\n }\n $userToDestroy->delete();\n DB::commit();\n }\n\n return $user;\n \n }", "public function forceDelete(User $user, Attraction $attraction)\n {\n //\n }", "public function destroy(User $user)\n {\n \n }", "public function removeProfile();", "public function destroy($id)\n {\n Creation::where('users_id', $id)->delete();\n Preferencias::where('users_email', Auth::user()->email)->delete();\n User::destroy($id); \n\n\n return Redirect::to('/');\n\n \n }", "function destroy(Request $request)\n {\n $requestor = User::find($request->requestor);\n $requestee = User::find($request->requestee);\n\n $requestor_connections = json_decode($requestor->connections, true);\n unset($requestor_connections[$requestee->id]);\n $requestor->connections = json_encode($requestor_connections);\n $requestor->save();\n\n $requestee_connections = json_decode($requestee->connections, true);\n unset($requestee_connections[$requestor->id]);\n $requestee->connections = json_encode($requestee_connections);\n $requestee->save();\n\n }", "public function retract($user): void\n {\n $this->users()->detach($user);\n }", "public function removeFollowedDjipAction()\n\t{\n\t\t$user = $this->container->get('security.context')->getToken()->getUser();\n\t\n\t\tif(!is_object($user)){\n\t\t\t$response = $this->forward('FOSUserBundle:Security:login');\n\t\t\treturn $response;}\n\t\n\t\t\t$request = $this->container->get('request');\n\t\t\t \n\t\t\tif($request->isXmlHttpRequest())\n\t\t\t{\n\t\n\t\t\t\t$id = $request->request->get('id');\n\t\n\t\t\t\t$em = $this->getDoctrine()->getManager();\n\t\t\t\t$article = $em->getRepository('SdACoreBundle:Article')->find($id);\n\t\t\t\t$article->removeFollower($user);\n\t\n\t\t\t\t$em->persist($user);\n\t\t\t\t$em->persist($article);\n\t\t\t\t$em->flush();\n\t\t\t}\n\t\n\t\t\t\n\t\t\treturn new Response(1);\n\t}", "public function destroy(Request $request, User $user)\n\t{\n\n \t$user->where('id', $request->user)->delete();\n\n \treturn redirect('/users');\n\t}", "public function destroy(Attendace $attendace)\n {\n //\n }", "public function unfollow($username, Request $request) {\n\t\t// We access to Request since this is called by a POST method\n\n\t\t$user = $this->findByUserName($username);\n\n\t\t// User already logged-in gived by the Request, this user() is Model\n\t\t$me = $request->user();\n\n\t\t$me->follows()->detach($user);\n\n\t\treturn redirect(\"/$username\")->withSuccess('Usuario no seguido!');\n\t}", "public function removeTeamUser($user)\n {\n if ($user->current_team_id === $this->id) {\n $user->forceFill([\n 'current_team_id' => null,\n ])->save();\n }\n\n $this->users()->detach($user);\n }", "public function changeRelationship ($profile_id, $user_id)\n\t{\n\t\t$Statement = $this->Database->prepare(\"SELECT id FROM following WHERE user = ? AND follower = ? LIMIT 1\");\n\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t$count = $Statement->rowCount();\n\t\t\n\t\tif ($count == 0)\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"INSERT INTO following (user, follower) VALUES (?, ?)\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$Statement = $this->Database->prepare(\"DELETE FROM following WHERE user = ? AND follower = ?\");\n\t\t\t$Statement->execute(array($profile_id, $user_id));\n\t\t}\n\t}" ]
[ "0.7684375", "0.74269897", "0.72862685", "0.72407025", "0.7156132", "0.7061289", "0.6925515", "0.67988044", "0.67092323", "0.6632952", "0.6625946", "0.6591948", "0.61763656", "0.605751", "0.6035935", "0.60285324", "0.60227454", "0.5974885", "0.59625554", "0.5957661", "0.5950067", "0.59238315", "0.58798337", "0.58507144", "0.5844549", "0.5805709", "0.5792581", "0.57479876", "0.574314", "0.5732082", "0.57285166", "0.5725839", "0.5712177", "0.5698118", "0.56881875", "0.5669309", "0.56618", "0.56312364", "0.5625339", "0.561369", "0.5603368", "0.55861586", "0.5573019", "0.55706936", "0.5555285", "0.5541721", "0.5540266", "0.55260843", "0.5525946", "0.5520794", "0.55127656", "0.5510212", "0.54910845", "0.5487573", "0.54863375", "0.5464737", "0.54535145", "0.54454684", "0.5425784", "0.54230803", "0.5405233", "0.53787", "0.5362301", "0.5356824", "0.5347951", "0.5335842", "0.5332072", "0.5316323", "0.5315891", "0.5291058", "0.52901334", "0.52895415", "0.52867854", "0.5286304", "0.5281777", "0.5266066", "0.5266066", "0.5266066", "0.5265007", "0.52610666", "0.525334", "0.5251968", "0.52376926", "0.5234955", "0.52344525", "0.5234125", "0.52336323", "0.5231249", "0.5225892", "0.5225206", "0.5223767", "0.5222398", "0.5220097", "0.5218602", "0.52140266", "0.52074754", "0.5205432", "0.5201267", "0.5199283", "0.5194376" ]
0.61989754
12
Run the database seeds.
public function run() { // DB::table('products')->insert([ [ 'name'=>'Monk Shoes', "size"=>"38", "color"=>"brown", "category"=>"men", "price"=>"190", "brand"=>"Leather", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6AzO8q6eOza4YSVltKg1wpXkHWcYiND7o5IG1avPQ_YSqGIXEKERhg5CsD3PpmoWyMVv3jRCX&usqp=CAc" ], [ 'name'=>'Running Shoes', "size"=>"35", "color"=>"Grey", "category"=>"women", "price"=>"1250", "brand"=>"Adidas", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR7VT7u3D-le598t7LUPSHSa1U4RtGiNv9NPw&usqp=CAU" ], [ 'name'=>'Sports Shoes', "size"=>"38", "color"=>"white", "category"=>"men", "price"=>"1200", "brand"=>"Nike", "quantity"=>"2", "gallery"=>"https://static.nike.com/a/images/c_limit,w_592,f_auto/t_product_v1/0812a694-8e18-4ebe-8dc0-8d74b34b8399/air-zoom-pegasus-38-running-shoe-Hmsj6Q.png" ], [ 'name'=>'Moxy Sneakers', "size"=>"30", "color"=>"black", "category"=>"women", "price"=>"1000", "brand"=>"Sneakers", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR-nTqeVyJTxcV_U1FdQh3x3d17X7OCuH7Bwg&usqp=CAU" ], [ 'name'=>'Leather shoes', "size"=>"36", "color"=>"navy blue", "category"=>"men", "price"=>"2800", "brand"=>"Nike", "quantity"=>"2", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhYfRbz-8QV8ZQ3z2Qb71YojqVnRldzeDmFA&usqp=CAU" ], [ 'name'=>'Leather shoes', "size"=>"36", "color"=>"Red", "category"=>"women", "price"=>"600", "brand"=>"Bata", "quantity"=>"2", "gallery"=>"https://2-be-cdn.bata.eu/gallery/1/8/6/d/8/4.jpg" ], [ 'name'=>'Walking shoes', "size"=>"36", "color"=>"Brown", "category"=>"men", "price"=>"850", "brand"=>"Sneakers", "quantity"=>"2", "gallery"=>"https://encrypted-tbn1.gstatic.com/shopping?q=tbn:ANd9GcSUdxbHbFagihu41O9Jhf6nBS6OtGseXkzmd2gLLWfnw4_QdKJ4PjySIsmYU_tWolMoWzU1NHbvod0&usqp=CAc" ], [ 'name'=>'Sports shoe', "size"=>"36", "color"=>"blue", "category"=>"men", "price"=>"1200", "brand"=>"Nike", "quantity"=>"2", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTVXGAMVNlRQaCYHjd5sV_wQRmhzweE8aiBAw-_kyWJIJGdMTh6184hopqjHF7KuXW-G-4&usqp=CAU" ], [ 'name'=>'Mocky Women shoes', "size"=>"28", "color"=>"Pink", "category"=>"women", "price"=>"900", "brand"=>"Puma", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTwFxuSoH0y-M1Wj2Iyz4Vumfp6Yxn3EfBSCQ&usqp=CAU" ], [ 'name'=>'Puma sports shoes', "size"=>"36", "color"=>"Mid-grey", "category"=>"men", "price"=>"2500", "brand"=>"Adidas", "quantity"=>"2", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTFgc5MUVOhlna7dV3st3XP_pdYWTLwU8xP6w&usqp=CAU" ], [ 'name'=>'Running shoes', "size"=>"36", "color"=>"Blue", "category"=>"women", "price"=>"1400", "brand"=>"Reebok", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/shopping?q=tbn:ANd9GcSCaDQ9xPlamTw5oVBlM_TxGmT1VOF0wxFf6ONuLFIkWSTdRfu6HmdaIK7cgf7UlR_5qBQGKeJhn2g&usqp=CAc" ], [ 'name'=>'Fancy shoes', "size"=>"30", "color"=>"Brown", "category"=>"women", "price"=>"700", "brand"=>"Allen solly", "quantity"=>"1", "gallery"=>"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQnIrUxBL4HYoXbtg4LRONVaGkrSVNyNjqnQA&usqp=CAU" ] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
Setting default config options Overriden from AppInstance::getConfigDefaults Uncomment and return array with your default options
protected function getConfigDefaults() { return [ 'dbname' => 'gamemonitor', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getConfigDefaults() {\n\t\treturn array(\n\t\t\t// @todo add description strings\n\t\t\t'port' => 80,\n\t\t\t'expose' => 1,\n\t\t);\n\t}", "protected function getConfigDefaults() {\n\t\treturn [\n\t\t\t// @todo add description strings\n\t\t\t'expose' => 1,\n\t\t\t'auto-read-body-file' => 1,\n\t\t\t'listen' => '127.0.0.1,unix:/tmp/phpdaemon.fcgi.sock',\n\t\t\t'port' => 9000,\n\t\t\t'allowed-clients' => '127.0.0.1',\n\t\t\t'send-file' => 0,\n\t\t\t'send-file-dir' => '/dev/shm',\n\t\t\t'send-file-prefix' => 'fcgi-',\n\t\t\t'send-file-onlybycommand' => 0,\n\t\t\t'keepalive' => new Time('0s'),\n\t\t\t'chunksize' => new Size('8k'),\n\t\t\t'defaultcharset' => 'utf-8',\n\t\t\t'upload-max-size' => new Size(ini_get('upload_max_filesize')),\n\t\t];\n\t}", "protected function getDefaultOptions()\n {\n return array();\n }", "public static function getDefaultOptions(): array\n {\n return self::$defaults;\n }", "private function getDefaultConfig(){\n\t\t//Pretty simple. Multidimensional array of configuration values gets returned\n\t $defaultConfig = array();\n\t\t$defaultConfig['general'] = array('start_path'=>'.', 'disallowed'=>'php, php4, php5, phps',\n\t\t\t\t\t\t\t\t\t\t 'page_title'=>'OMFG!', 'files_label'=>'', 'folders_label'=>'');\n\t\t$defaultConfig['options'] = array('thumb_height'=>75, 'files_per_page'=>25, 'max_columns'=>3, \n\t\t\t\t\t\t\t\t\t\t 'enable_ajax'=>false, 'memory_limit'=>'256M', 'cache_thumbs'=>false, \n\t\t\t\t\t\t\t\t\t\t\t'thumbs_dir'=>'/.thumbs', 'icons_dir'=>'/.icons');\n\t\treturn $defaultConfig;\n\t}", "protected function getConfigDefaults() {\n\t\treturn array(\n\t\t\t// @todo add description strings\n\t\t\t'servers' => '127.0.0.1',\n\t\t\t'port'\t\t\t\t\t=> 6379,\n\t\t\t'maxconnperserv'\t\t=> 32,\n\t\t);\n\t}", "function initDefaultOptions(){\n\n\t\t\t$defaults = $this->defaultOptions();\n\t\t\treturn update_option( $this->optionsKey, $defaults );\n\t\t}", "public static function get_default_options() {\n\t\treturn array(\n\t\t\t'mailgun' => array(\n\t\t\t\t'region' => 'us',\n\t\t\t\t'api_key' => '',\n\t\t\t\t'domain'=> '',\n\t\t\t),\n\t\t\t'double_opt_in' => '0',\n\t\t\t'use_honeypot' => '1',\n\t\t);\n\t}", "public function getDefaultOptions();", "public function getDefaultOptions();", "protected function getConfigDefaults()\n\t{\n\t\treturn array(\n\t\t\t// listen to\n\t\t\t'listen' => 'tcp://0.0.0.0',\n\t\t\t// listen port\n\t\t\t'listenport' => 55556,\n\t\t\t// max allowed packet size\n\t\t\t'maxallowedpacket' => new Daemon_ConfigEntrySize('16k'),\n\t\t\t// disabled by default\n\t\t\t'enable' => 0,\n\t\t\t// no event_timeout by default\n\t\t\t'ev_timeout' => -1\n\t\t);\n\t}", "protected function _getDefaultOptions()\n {\n }", "function default_configuration()\r\n {\r\n return array();\r\n }", "public static function getDefaultOptions()\n {\n return self::$defaults;\n }", "public static function getDefaultOptions()\n {\n return self::$defaults;\n }", "public function defaultOptions() {\n return $this->default_options;\n }", "protected function _getDefaultOptions()\n {\n return array(\n self::OPTION_SET_IP_ADDRESS => true\n );\n }", "public function get_default_options()\n\t{\n\t\t$defaults = array();\n\t\t$defaults['title'] = '';\n\t\t$defaults['placeholder'] = 'Search Connections...';\n\t\t\n\t\treturn $defaults;\n\t}", "public function getDefaultOptions() {\n return static::defaultOptions();\n }", "protected function getConfigDefaults() {\n\t\treturn [\n\t\t\t// @todo add description strings\n\t\t\t'port' => 53,\n\t\t\t'resolvecachesize' => 128,\n\t\t\t'servers' => '',\n\t\t\t'hostsfile' => '/etc/hosts',\n\t\t\t'resolvfile' => '/etc/resolv.conf',\n\t\t\t'expose' => 1,\n\t\t];\n\t}", "private static function defaultConfig(): array\n {\n return [\n 'base_uri' => self::$baseUri,\n 'http_errors' => false,\n 'headers' => [\n 'Accept' => 'application/json',\n 'Content-Type' => 'application/json',\n 'User-Agent' => 'evoliz-php/' . Config::VERSION,\n ],\n 'verify' => true,\n ];\n }", "protected function getConfigDefaults() {\n\t\treturn array(\n\t\t\t// listen to\n\t\t\t'mastersocket' => 'unix:/tmp/phpDaemon-master-%x.sock',\n\t\t);\n\t}", "protected function baseConfigurationDefaults() {\n return array(\n 'id' => $this->getPluginId(),\n 'label' => '',\n 'cache' => DRUPAL_CACHE_PER_ROLE,\n );\n }", "public function defaultConfig();", "protected function getDefaultOptions()\n {\n return $this->defaultOptions;\n }", "protected static function getDefaultSettings()\n {\n return array(\n 'prefix' => '',\n 'throw_exception' => false,\n 'connection' => null\n );\n }", "protected function getDefaults(){\n\t\treturn array();\n\t}", "function jb_option_defaults() {\n\t \t$arr = array(\n\t\t'jb_featured_cat_slug' => 'home',\n\t\t'jb_featured_content_limit' => 55,\n\t\t'jb_post_content_limit' => 40\n\t);\n\treturn $arr;\n}", "protected function defaults() {\n\t\t\t$config = array(\n\t\t\t\t'version' => $this->version,\n\t\t\t\t'autoshowpt' => array(\n\t\t\t\t\t//'post'=> true\n\t\t\t\t),\n\t\t\t\t'usept' => array(\n\t\t\t\t\t'post' => true\n\t\t\t\t),\n\t\t\t\t'usetax' => array(),\n\t\t\t\t'autoshowrss' => false,\n\t\t\t\t'do_c2c' => 1,\n\t\t\t\t'do_t2t' => 0,\n\t\t\t\t'do_t2c' => 0,\n\t\t\t\t'do_k2c' => 0,\n\t\t\t\t'do_k2t' => 0,\n\t\t\t\t'do_x2x' => 1,\n\t\t\t\t'minscore' => 50,\n\t\t\t\t'maxresults' => 5,\n\t\t\t\t'cachetime' => 60,\n\t\t\t\t'filterpriority' => 10,\n\t\t\t\t'log' => false,\n\t\t\t\t'loglevel' => false,\n\t\t\t\t'storage' => 'postmeta',\n\t\t\t\t'storage_id' => 'better-related-',\n\t\t\t\t'querylimit' => 1000,\n\t\t\t\t't_querylimit' => 10000,\n\t\t\t\t'mtime' => time(),\n\t\t\t\t'relatedtitle' => sprintf(\n\t\t\t\t\t\"<strong>%s</strong>\",\n\t\t\t\t\t__( 'Related content:', 'better-related' )\n\t\t\t\t),\n\t\t\t\t'relatednone' => sprintf(\n\t\t\t\t\t\"<p>%s</p>\",\n\t\t\t\t\t__( 'No related content found.', 'better-related' )\n\t\t\t\t),\n\t\t\t\t'thanks' => 'below',\n\t\t\t\t'stylesheet' => true,\n\t\t\t\t'showdetails' => false\n\t\t\t);\n\t\t\treturn $config;\n\t\t}", "private function getDefaultConfig() {\n\t\treturn array(\n\t\t\t'client_id' => '',\n\t\t\t'client_secret' => '',\n\t\t\t'base_url' => '',\n\t\t\t'default_type' => 'user',\n\t\t);\n\t}", "private static function default_settings() {\n\t\treturn array(\n\t\t\t'module_ga' => true,\n\t\t\t'module_ip' => true,\n\t\t\t'module_log' => true,\n\t\t\t'sent_data' => false,\n\t\t\t'api_key' => '',\n\t\t\t'mark_as_approved' => true,\n\t\t);\n\t}", "public static function returnExtConfDefaults() {}", "public function getDefaults() {\n\n\t\treturn [\n\t\t\t'module' => $this->_defaultModule,\n\t\t\t'controller' => $this->_defaultController,\n\t\t\t'action' => $this->_defaultAction,\n\t\t\t'params' => $this->_defaultParams\n\t\t];\n\t}", "protected function get_default_settings()\n {\n return [\n 'default' => [\n 'id' => '',\n 'url' => '',\n 'size' => '',\n 'name' => '',\n ],\n ];\n }", "public function getDefaultSettings();", "private function getDefaultConfig()\n {\n return [\n 'auth' => $this->clientConfig->getAuthorizationArray(),\n 'headers' => $this->clientConfig->getRequestHeaders(),\n ];\n }", "public function defaults()\n {\n $defaults = $this->config;\n if (!isset($defaults['width'])) {\n $defaults['width'] = $defaults['default_width'];\n }\n if (!isset($defaults['height'])) {\n $defaults['height'] = $defaults['default_height'];\n }\n return $defaults;\n }", "public static function getDefaults()\n {\n return [];\n }", "protected function getDefaultOptionsArray(): array\n {\n return [\n 'commands' => new Command\\RedisFactory(),\n ];\n }", "private function getUrlDefaultOptions() : array\n {\n // Logger.\n $this->logger->debugInit();\n \n // Set cURL options.\n $defaultOptions = array(\n CURLOPT_BINARYTRANSFER => true,\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_FOLLOWLOCATION => true\n );\n \n // Logger.\n $this->logger->debugEnd();\n \n return $defaultOptions;\n \n }", "public static function getDefaultOptions(){\n\n\t\t$options = array(\n\t\t\tWPC_OPTIONS => array(\n\t\t\t\tWPC_OPTIONS_LANGUAGE => 'en_US',\n\t\t\t\tWPC_OPTIONS_THEME => WPC_THEME_LIGHT\n\t\t\t),\n\t\t\tWPC_OPTIONS_COMMENTS => array(\n\t\t\t\tWPC_OPTIONS_COMMENTS_NUMBER => 6,\n\t\t\t\tWPC_OPTIONS_COMMENTS_WIDTH => 480,\n\t\t\t\tWPC_OPTIONS_COMMENTS_POSITION => WPC_CUSTOM_FIELD_VALUE_POSITION_BOTTOM,\n\t\t\t\tWPC_OPTIONS_COMMENTS_ENABLED => WPC_OPTION_ENABLED,\n\t\t\t\tWPC_OPTIONS_DISPLAY_EVERYWHERE => 'on',\n\t\t\t\tWPC_OPTIONS_DISPLAY_NOWHERE => ''\n\t\t\t),\n\t\t\tWPC_OPTIONS_LIKE_BUTTON => array(\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_SEND => WPC_OPTION_ENABLED,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_LAYOUT => WPC_LAYOUT_STANDARD,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_WIDTH => 480,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_FACES => WPC_OPTION_ENABLED,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_VERB => WPC_ACTION_LIKE,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_FONT => WPC_FONT_DEFAULT,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_POSITION => WPC_CUSTOM_FIELD_VALUE_POSITION_TOP,\n\t\t\t\tWPC_OPTIONS_LIKE_BUTTON_ENABLED => WPC_OPTION_ENABLED,\n\t\t\t\tWPC_OPTIONS_DISPLAY_EVERYWHERE => 'on'\n\t\t\t)\n\t\t);\n\n\t\treturn $options;\n\n\t}", "public function defaultOptions(): array\n {\n return [\n 'dataWrap' => 'data',\n 'value' => 'id',\n ];\n }", "public function getDefaultConfiguration();", "public function getDefaultOptions()\n {\n return [\n 'headers' => [ 'Content-Type' => 'application/x-www-form-urlencoded' ],\n 'parameters' => [],\n 'curl_options' => [],\n 'url' => $this->url,\n 'authentication' => false,\n 'token' => null,\n 'secret' => null,\n 'username' => null,\n 'password' => null,\n 'algorithm' => 'sha256',\n 'debug' => false,\n 'allow_self_signed' => false,\n 'validate' => true,\n 'response_as_array' => false,\n ];\n }", "function tc_get_default_options() {\r\n $def_options = get_option( \"tc_theme_defaults\");\r\n \r\n //Always update the default option when (OR) :\r\n // 1) they are not defined\r\n // 2) customzing => takes into account if user has set a filter or added a new customizer setting\r\n // 3) theme version not defined\r\n // 4) versions are different\r\n if ( ! $def_options || $this -> is_customizing || ! isset($def_options['ver']) || 0 != version_compare( $def_options['ver'] , CUSTOMIZR_VER ) ) {\r\n $def_options = $this -> tc_generate_default_options( $this -> tc_customizer_map( $get_default_option = 'true' ) , 'tc_theme_options' );\r\n //Adds the version\r\n $def_options['ver'] = CUSTOMIZR_VER;\r\n update_option( \"tc_theme_defaults\" , $def_options );\r\n }\r\n return apply_filters( 'tc_default_options', $def_options );\r\n }", "private function getConfigs(array $options = [])\n {\n return array_merge($this->_defaultConfigs, $options);\n }", "protected function defaultConfig()\n\t{\n\t\t$this->config=array(\n\t\t\t'code'=>'1',\n\t\t\t'scanning'=>\"\",\n\t\t\t'scanCodes'=>array()\n\t\t);\n\t}", "protected function defaultOptions()\n {\n return [\n 'title_pattern' => '{{name}}',\n 'value_pattern' => '{{id}}',\n 'label_pattern' => '{{name}}',\n 'subtext_pattern' => 'Web ID: {{id}}',\n 'query_parameters' => []\n ];\n }", "private static function _get_default_settings()\n\t{\n\t\treturn array(\n\t\t\t'nr_api_key'\t\t\t\t\t\t=> '',\n\t\t\t'nr_apps_list'\t\t\t\t\t\t=> '', // The apps list associated with the account\n\t\t\t'nr_selected_app_servers'\t\t\t=> '', // The servers from the selected app\n\t\t\t'user_datasets'\t\t\t\t\t\t=> '', // Saved user datasets\n\t\t);\n\t}", "function build_default_core_options() {\n\n $core_options = array(\n 'key' => '',\n 'title' => '',\n 'menu_order' => 0,\n 'position' => 'normal',\n 'style' => 'default',\n 'label_placement' => 'top',\n 'instruction_placement' => 'label',\n 'hide_on_screen' => array()\n );\n\n return $core_options;\n }", "public function getDefaults(): array;", "private function get_defaults() {\n\t\treturn array(\n\t\t\t'phpbb_path' \t\t\t\t=> '',\n\t\t\t'integrateLogin' \t\t\t=> 0, \n\t\t\t'showHdrFtr' \t\t\t\t=> 'NONE',\n\t\t\t'wpSimpleHdr' \t\t\t\t=> 1,\n\t\t\t'dtdSwitch' \t\t\t\t=> 0,\n\t\t\t'phpbbCensor' \t\t\t\t=> 1,\n\t\t\t'wpPageName' \t\t\t\t=> 'page.php',\n\t\t\t'phpbbPadding' \t\t\t\t=> '6-12-6-12',\n\t\t\t'xposting' \t\t\t\t\t=> 0,\n\t\t\t'phpbbSmilies' \t\t\t\t=> 0,\n\t\t\t'avatarsync'\t\t\t\t=> 1,\n\t\t\t'integcreatewp'\t\t\t\t=> 1,\n\t\t\t'integcreatephpbb'\t\t\t=> 1,\n\t\t\t'xpostautolink' \t\t\t=> 0,\n\t\t\t'xpostspam' \t\t\t\t=> 'all',\n\t\t\t'xpostforce' \t\t\t\t=> -1,\n\t\t\t'xposttype' \t\t\t\t=> 'excerpt',\n\t\t\t'xpostprefix'\t\t\t\t=> '[BLOG] ',\n\t\t\t'cssMagic' \t\t\t\t\t=> 1,\n\t\t\t'templateVoodoo' \t\t\t=> 1,\n\t\t\t'useForumPage' \t\t\t\t=> 1\n\t\t);\n\t}", "public function getConfig() : array {\n\t\treturn static::$options;\n\t}", "protected function getDefaultOptions()\n {\n return array(\n 'cwd' => '', // Current working directory for this task.\n 'log_dir' => '', // from which location to copy the resulting artifacts to the build folder\n 'env' => array(), // environment in which to run.\n 'bin' => null, // the full path to the binary that needs to be run; use /usr/bin/env if unsure\n // where it is\n 'args' => array(), // a series of options and arguments (should include and prefixing hyphens).\n );\n }", "private static function getDefaultSettings()\n {\n return array(\n 'driver' => null,\n 'username' => null,\n 'password' => null,\n 'dbname' => null,\n 'host' => null,\n 'port' => null,\n );\n }", "public function initialOptions(): array\n {\n return [];\n }", "protected function useDefaultValuesForNotConfiguredOptions() {}", "public function defaultSettings()\n\t{\n\t\treturn [\n\t\t\t'notifications' => [\n\t\t\t\t'team_event_create' => 1,\n\t\t\t\t'team_event_update' => 2,\n\t\t\t\t'team_event_delete' => 2,\n\t\t\t\t'team_stats' \t\t=> 1,\n\t\t\t\t'team_post' \t\t=> 1,\n\t\t\t\t'user_post' \t\t=> 2,\n\t\t\t\t'user_stats'\t\t=> 1,\n\t\t\t],\n\t\t];\n\t}", "public function getProductDefaults()\n {\n $defaults = $this->_config->get('product_defaults');\n\n if (is_array($defaults)) {\n return $defaults;\n }\n\n return [];\n }", "public function getDefaults();", "public function getDefaultSettings() {\n $defaults = array();\n $fields = $this->getFields();\n foreach ($fields as $field) {\n $default = '';\n if (array_key_exists('default', $field) && $field['default']) {\n $default = $field['default'];\n }\n $defaults[$field['name']] = $default;\n }\n return $defaults;\n }", "private function setDefaultValues()\n {\n return LengowConfiguration::resetAll();\n }", "public function getDefaultOptions()\n {\n\n return array('validation_groups' => array('admEdit', 'Default'));\n\n }", "public function getDefaultOptions(): array|null\n {\n return [];\n }", "function initialize_options()\n\t\t{\n\t\t\tglobal $config;\n\n\t\t\t$defaults = array(\n\t\t\t\t'minimum_age' => 4,\n\t\t\t\t'maximum_age' => 0,\n\t\t\t);\n\t\t\tforeach ($defaults as $option => $default)\n\t\t\t{\n\t\t\t\tif (!isset($config[$option]))\n\t\t\t\t{\n\t\t\t\t\tset_config($option, $default);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected function getDefaults()\n {\n $defaults = [\n \"query\" => [],\n \"headers\" => [\n \"Content-Type\" => \"application/json\",\n \"Accept\" => \"application/hal+json\",\n ],\n ];\n\n if (!empty($this->defaults)) {\n $defaults = call_user_func($this->defaults, $defaults);\n }\n\n return $defaults;\n }", "protected function _defaultConfig()\n {\n return [\n 'tooltip' => [\n 'backgroundColor' => 'rgba(0,0,0,0.8)',\n 'padding' => [8, 12, 8, 12],\n 'axisPointer' => [\n 'type' => 'line',\n 'lineStyle' => [\n 'color' => '#607D8B',\n 'width' => 1\n ],\n 'crossStyle' => [\n 'color' => '#607D8B'\n ],\n 'shadowStyle' => [\n 'color' => 'rgba(200,200,200,0.2)'\n ]\n ],\n 'textStyle' => [\n 'fontFamily' => 'Roboto, sans-serif'\n ],\n ],\n 'color' => [\n '#2ec7c9','#b6a2de','#5ab1ef','#ffb980','#d87a80',\n '#8d98b3','#e5cf0d','#97b552','#95706d','#dc69aa',\n '#07a2a4','#9a7fd1','#588dd5','#f5994e','#c05050',\n '#59678c','#c9ab00','#7eb00a','#6f5553','#c14089'\n ],\n 'animation' => false,\n 'settings' => [\n 'height' => 420\n ],\n 'series' => []\n ];\n }", "protected function getDefaultParameters()\n {\n return array(\n 'config.directory' => __DIR__ . '/../../../../',\n );\n }", "protected function loadDefaultOptions()\r\n {\r\n $this->options = [\r\n 'offsettop' => 0,\r\n 'offsetleft' => 0,\r\n 'merge' => false,\r\n 'backcolor' => 0xffffff,\r\n ];\r\n }", "public function get_default_config() {\n\t\treturn array(\n\t\t\tarray(\n\t\t\t\t'key' => 'name',\n\t\t\t\t'type' => 'text',\n\t\t\t\t'label' => esc_html__( 'Name', 'themeisle-companion' ),\n\t\t\t\t'requirement' => 'required',\n\t\t\t\t'placeholder' => esc_html__( 'Name', 'themeisle-companion' ),\n\t\t\t\t'field_width' => '100',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'key' => 'email',\n\t\t\t\t'type' => 'email',\n\t\t\t\t'label' => esc_html__( 'Email', 'themeisle-companion' ),\n\t\t\t\t'requirement' => 'required',\n\t\t\t\t'placeholder' => esc_html__( 'Email', 'themeisle-companion' ),\n\t\t\t\t'field_width' => '100',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'key' => 'phone',\n\t\t\t\t'type' => 'number',\n\t\t\t\t'label' => esc_html__( 'Phone', 'themeisle-companion' ),\n\t\t\t\t'requirement' => 'optional',\n\t\t\t\t'placeholder' => esc_html__( 'Phone', 'themeisle-companion' ),\n\t\t\t\t'field_width' => '100',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'key' => 'message',\n\t\t\t\t'type' => 'textarea',\n\t\t\t\t'label' => esc_html__( 'Message', 'themeisle-companion' ),\n\t\t\t\t'requirement' => 'required',\n\t\t\t\t'placeholder' => esc_html__( 'Message', 'themeisle-companion' ),\n\t\t\t\t'field_width' => '100',\n\t\t\t),\n\t\t);\n\t}", "public function getDefaultOptions() {\n if (!isset($this->defaultOptions)) {\n $this->defaultOptions = new Options;\n }\n return $this->defaultOptions;\n }", "public function getCategoryDefaults()\n {\n $defaults = $this->_config->get('category_defaults');\n\n if (is_array($defaults)) {\n return $defaults;\n }\n\n return [];\n }", "function pixgraphy_get_option_defaults_values() {\n\t\tglobal $pixgraphy_default_values;\n\t\t$pixgraphy_default_values = array(\n\t\t\t'pixgraphy_responsive'\t=> 'on',\n\t\t\t'pixgraphy_column_post'\t=>'four',\n\t\t\t'pixgraphy_border_column'\t=>'on',\n\t\t\t'pixgraphy_design_layout' => 'wide-layout',\n\t\t\t'pixgraphy_animate_css'\t=> 'on',\n\t\t\t'pixgraphy_sidebar_layout_options' => 'right',\n\t\t\t'pixgraphy_photography_layout' => 'photography_layout',\n\t\t\t'pixgraphy_search_custom_header' => 0,\n\t\t\t'pixgraphy-img-upload-footer-image' => '',\n\t\t\t'pixgraphy-footer-title'\t=> '',\n\t\t\t'pixgraphy-footer-link'\t=> '#',\n\t\t\t'pixgraphy_header_display'=> 'header_text',\n\t\t\t'pixgraphy_categories'\t=> array(),\n\t\t\t'pixgraphy_custom_css'\t=> '',\n\t\t\t'pixgraphy_scroll'\t=> 0,\n\t\t\t'pixgraphy_tag_text' => esc_html__('Read More','pixgraphy'),\n\t\t\t'pixgraphy_excerpt_length'\t=> '20',\n\t\t\t'pixgraphy_single_post_image' => 'off',\n\t\t\t'pixgraphy_reset_all' => 0,\n\t\t\t'pixgraphy_stick_menu'\t=>0,\n\t\t\t'pixgraphy_blog_post_image' => 'on',\n\t\t\t'pixgraphy_entry_format_blog' => 'excerptblog_display',\n\t\t\t'pixgraphy_search_text' => esc_html__('Search &hellip;','pixgraphy'),\n\t\t\t'pixgraphy_blog_content_layout'\t=> '',\n\t\t\t'pixgraphy_display_page_featured_image'=>0,\n\t\t\t/* Slider Settings */\n\t\t\t'pixgraphy_slider_type'\t=> 'default_slider',\n\t\t\t'pixgraphy_slider_link' =>0,\n\t\t\t'pixgraphy_enable_slider' => 'frontpage',\n\t\t\t'pixgraphy_transition_effect' => 'fade',\n\t\t\t'pixgraphy_transition_delay' => '4',\n\t\t\t'pixgraphy_transition_duration' => '1',\n\t\t\t/* Front page feature */\n\t\t\t'pixgraphy_entry_format_blog' => 'show',\n\t\t\t'pixgraphy_entry_meta_blog' => 'show-meta',\n\t\t\t/*Social Icons */\n\t\t\t'pixgraphy_top_social_icons' =>0,\n\t\t\t'pixgraphy_buttom_social_icons'\t=>0,\n\t\t\t'pixgraphy_social_facebook'=> '',\n\t\t\t'pixgraphy_social_twitter'=> '',\n\t\t\t'pixgraphy_social_pinterest'=> '',\n\t\t\t'pixgraphy_social_dribbble'=> '',\n\t\t\t'pixgraphy_social_instagram'=> '',\n\t\t\t'pixgraphy_social_flickr'=> '',\n\t\t\t'pixgraphy_social_googleplus'=> '',\n\t\t\t'pixgraphy_remove_parallax_fromheader'=>0,\n\t\t\t);\n\t\treturn apply_filters( 'pixgraphy_get_option_defaults_values', $pixgraphy_default_values );\n\t}", "protected function defaults() {\n\t\treturn array(\n\t\t\t'content' => false,\n\t\t\t'content_path' => false,\n\t\t\t'markdown' => false,\n\t\t);\n\t}", "public static function Zf_ApplicationDefaults(){\n \n self::$zf_applicationdefaults = array(\n \n 'application_seo' => APPLICATION_SEO,\n 'application_caching' => APPLICATION_CACHING,\n 'application_urlencrypt' => APPLICATION_URLENCRYPT,\n 'application_encryption' => APPLICATION_ENCRYPTION,\n 'application_decryption' => APPLICATION_DECRYPTION,\n 'security_key' => ENCRYPTION_DECRYPTIION_KEY\n \n );\n \n return self::$zf_applicationdefaults;\n }", "private function getDefaultConfiguration() \n {\n return array(\n\n // the default cache directory is inside the tattoo library\n 'cache' => __DIR__ . '/../cache/',\n\n // the development mode forces tattoo to always \n // rebuild the files.\n 'development' => false,\n\n // compiler options\n 'compiler' => array(\n\n // automatically escape all outputet variables\n 'autoEscapeVariables' => true,\n\n // define the escaping function. This configuration\n // should always be a string, but calm your horses\n // the string will be directly used in the compiling\n // proccess so use this with attention.\n 'defaultEscapeFunction' => 'htmlentities',\n ),\n );\n }", "private function mergeDefaultSettings(){\n\t\t//Get a copy of the default configuration.\n\t\t$defaultConfig = $this->getDefaultConfig();\n\t\t//Check for a 'general' section\n\t\tif(array_key_exists('general', $this->configuration)){\n\t\t\t//If it exists, compare the default keys to the loaded config for missing values\n\t\t\t$missingGeneral = array_diff_key($defaultConfig['general'], $this->configuration['general']);\n\t\t\t//Iterate through the missing values and attach them to the running configuration.\n\t\t\tif(count($missingGeneral) > 0){\n\t\t\t\tforeach($missingGeneral as $key=>$parameter){\n\t\t\t\t\t$this->configuration['general'][$key] = $parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t//Section doesn't exist, so we need to set it to the defaults.\n\t\t\t$this->configuration['general'] = $defaultConfig['general'];\n\t\t}\n\t\t//Check for a 'options' section\n\t\tif(array_key_exists('options', $this->configuration)){\n\t\t\t//If it exists, compare the default keys to the loaded config for missing values\n\t\t\t$missingOptions = array_diff_key($defaultConfig['options'], $this->configuration['options']);\n\t\t\t//Iterate through the missing values and attach them to the running configuration.\n\t\t\tif(count($missionOptions) > 0){\n\t\t\t\tforeach($missingOptions as $key=>$parameter){\n\t\t\t\t\t$this->configuration['options'][$key] = $parameter;\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t//Section doesn't exist, so we need to set it to the defaults.\n\t\t\t$this->configuration['options'] = $defaultConfig['options'];\n\t\t}\n\t}", "public static function getDefaultOptions()\n {\n return array(\n 'cap' => 1000000,\n 'maxAttempts' => 0\n );\n }", "public function getConfig(array $defaults = []);", "protected function _options() {\n\t\t\treturn array();\n\t\t}", "protected function _defaultSeriesConfig()\n {\n return [];\n }", "protected function getOptions() {\n\t\treturn array();\n\t}", "public static function getDefaults () {\n\t\t$configuration = array(\n\t\t\t'xtype' => 'textfield',\n\t\t\t'anchor' => '95%',\n\t\t\t'blankText' =>'fieldMandatory',\n\t\t\t'labelSeparator' => '',\n\t\t\t'selectOnFocus' => TRUE,\n\t\t);\n\t\treturn $configuration;\n\t}", "public function settingsWithMissingOptionsWithDefault()\n {\n return array(\n array(\n array('-f', '--option2'),\n array('flag1' => true, 'option2' => 'some default value')\n ),\n array(\n array('--option2', '-f'),\n array('option2' => 'some default value', 'flag1' => true)\n )\n );\n }", "public function default_settings() : array {\n\t\treturn [\n\t\t\t'layout' => 'block',\n\t\t\t'newsletter' => '',\n\t\t\t'theme' => 'light',\n\t\t\t'type' => 'subscribe',\n\t\t];\n\t}", "private function defaultSettings()\n {\n\t\t$default_config = array(\n 'Plugins.Keypic.SigninEnabled' => false,\n\t\t\t 'Plugins.Keypic.SignupEnabled' => true,\n\t\t\t 'Plugins.Keypic.PostEnabled' => true,\n\t\t\t 'Plugins.Keypic.CommentEnabled' => true,\n\t\t\t 'Plugins.Keypic.SigninWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.SignupWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.PostWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.CommentWidthHeight' => '1x1',\n\t\t\t 'Plugins.Keypic.SignupRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.SigninRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.PostRequestType' => 'getScript',\n\t\t\t 'Plugins.Keypic.CommentRequestType' => 'getScript',\n\t\t );\n\t\t \n\t\tSaveToConfig($default_config);\n }", "private function getDefaults()\n\t{\n\t\t/* @formatter:off */\n\t\treturn array(\n\t\t\t'cli_codepage' => 'cp852',\n\t\t\t'cookie_file' => dirname( __DIR__ ) . DIRECTORY_SEPARATOR . 'SESSION_ID',\n\t\t\t'exit_on' => E_ERROR | E_USER_ERROR,\n\t\t\t'is_debug' => false,\n\n\t\t\t/* Services */\n\t\t\t'api' => 'Orkan\\\\Filmweb\\\\Api\\\\Api',\n\t\t\t'tarnsport' => 'Orkan\\\\Filmweb\\\\Transport\\\\Curl',\n\t\t\t'request' => 'Orkan\\\\Filmweb\\\\Transport\\\\CurlRequest',\n\t\t\t'logger' => 'Orkan\\\\Filmweb\\\\Logger',\n\n\t\t\t/* Hide sensitive log data */\n\t\t\t'logger_mask' => array( 'search' => array( $this->pass ), 'replace' => array( '***' ) ),\n\t\t);\n\t\t/* @formatter:on */\n\t}", "protected function getDefaults()\n {\n return $this->transbankConfig->getDefaults(\n lcfirst(Helpers::classBasename(static::class))\n ) ?? [];\n }", "private function lazy_get_config(): array\n\t{\n\t\treturn array_merge_recursive($this->configs['app'], $this->construct_options);\n\t}", "public function getDefaultConfiguration() {}", "public static function get_settings_defaults(){\r\n\t\t\r\n\t\t$defaults = array();\r\n\t\tforeach( self::init_settings() as $settings ){\r\n\t\t\tforeach( $settings as $setting ){\r\n\t\t\t\tif( isset( $setting['id'] ) && isset( $setting['default'] ) ){\r\n\t\t\t\t\t$defaults[$setting['id']] = $setting['default'];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $defaults;\r\n\t\t\r\n\t}", "function tc_generate_default_options( $map, $option_group = null ) {\r\n //do we have to look in a specific group of option (plugin?)\r\n $option_group = is_null($option_group) ? 'tc_theme_options' : $option_group;\r\n\r\n //initialize the default array with the sliders options\r\n $defaults = array();\r\n\r\n foreach ($map['add_setting_control'] as $key => $options) {\r\n\r\n //check it is a customizr option\r\n if( false !== strpos( $key , $option_group ) ) {\r\n\r\n //isolate the option name between brackets [ ]\r\n $option_name = '';\r\n $option = preg_match_all( '/\\[(.*?)\\]/' , $key , $match );\r\n if ( isset( $match[1][0] ) ) \r\n {\r\n $option_name = $match[1][0];\r\n }\r\n\r\n //write default option in array\r\n if(isset($options['default'])) {\r\n $defaults[$option_name] = $options['default'];\r\n }\r\n else {\r\n $defaults[$option_name] = null;\r\n }\r\n \r\n }//end if\r\n\r\n }//end foreach\r\n\r\n return $defaults;\r\n }", "protected function getOptions()\r\n\t{\r\n\t\treturn array();\r\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}", "protected function getOptions()\n\t{\n\t\treturn array();\n\t}" ]
[ "0.7763497", "0.7752445", "0.77339137", "0.77280813", "0.7685115", "0.76553696", "0.75930715", "0.7580247", "0.75330627", "0.75330627", "0.75075716", "0.75011545", "0.7500212", "0.7458317", "0.7458317", "0.74359536", "0.7398744", "0.73852336", "0.7356251", "0.730837", "0.7291909", "0.72599477", "0.7254713", "0.7232591", "0.7189402", "0.7171933", "0.71192217", "0.71037287", "0.7091395", "0.7084124", "0.706508", "0.70492536", "0.7040749", "0.70398235", "0.7037874", "0.702978", "0.70009845", "0.6953093", "0.6928472", "0.691373", "0.6882387", "0.6854469", "0.6853025", "0.6844819", "0.6837472", "0.6834194", "0.67978036", "0.6786142", "0.67819107", "0.6775087", "0.6774273", "0.6771391", "0.6771007", "0.6770128", "0.67670333", "0.6763462", "0.67627144", "0.675726", "0.675336", "0.6750057", "0.67476386", "0.6739838", "0.6738473", "0.6737311", "0.6724048", "0.6704845", "0.6701418", "0.6695653", "0.66953236", "0.6687418", "0.667862", "0.6667312", "0.6664564", "0.6661503", "0.66560906", "0.66516125", "0.66475135", "0.6638913", "0.66374147", "0.6630223", "0.6627215", "0.66261697", "0.66246885", "0.6622297", "0.6621853", "0.6619774", "0.661847", "0.6612005", "0.6607845", "0.659363", "0.65797496", "0.6575887", "0.65717655", "0.6571761", "0.6571761", "0.6571761", "0.6571761", "0.6571761", "0.6571761", "0.6571761" ]
0.7137716
26
Called when the worker is ready to go.
public function onReady() { if ($this->isEnabled()) { $this->updateTimer = setTimeout(function ($timer) { $this->updateAllServers(); $timer->timeout(2e6); }, 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onReady() {\n\t\t$this->connected = true;\n\t\tif ($this->onConnected) {\n\t\t\t$this->onConnected->executeAll($this);\n\t\t\t$this->onConnected = null;\n\t\t}\n\t}", "public function onWorkerStart(){\n\t\t// Init mimeMap.\n\t\t$this->initMimeTypeMap();\n\n\t\t// Try to emit onWorkerStart callback.\n\t\tif($this->_onWorkerStart){\n\t\t\ttry{\n\t\t\t\tcall_user_func($this->_onWorkerStart, $this);\n\t\t\t}catch(\\Throwable $e){\n\t\t\t\tLogger::logException($e);\n\t\t\t}\n\t\t}\n\t}", "public function isReady() {}", "public function is_ready();", "protected function finalize(): void\n {\n $this->fire(WorkerDoneEvent::class);\n\n Log::debug(sprintf('Worker [%s] finalized.', $this->getAttribute('id')));\n }", "public function isReady();", "public function isReady();", "public function onReady() {\n\t\t$appInstance = $this; // a reference to this application instance for ExampleWebSocketRoute\n\t\t\\PHPDaemon\\WebSocket\\WebSocketServer::getInstance()->addRoute('ExamplePubSub', function ($client) use ($appInstance) {\n\t\t\treturn new ExamplePubSubWebSocketRoute($client, $appInstance);\n\t\t});\n\t\t$this->sql = \\PHPDaemon\\Clients\\MySQLClient::getInstance();\n\t\t$this->pubsub = new \\PHPDaemon\\PubSub();\n\t\t$this->pubsub->addEvent('usersNum', \\PHPDaemon\\PubSubEvent::init()\n\t\t\t\t\t\t\t\t\t\t\t\t ->onActivation(function ($pubsub) use ($appInstance) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Daemon::log('onActivation');\n\t\t\t\t\t\t\t\t\t\t\t\t\t if (isset($pubsub->event)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Timer::setTimeout($pubsub->event, 0);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t $pubsub->event = setTimeout(function ($timer) use ($pubsub, $appInstance) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t $appInstance->sql->getConnection(function ($sql) use ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t if (!$sql->connected) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t return;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $sql->query('SELECT COUNT(*) `num` FROM `dle_users`', function ($sql, $success) use ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $pubsub->pub(sizeof($sql->resultRows) ? $sql->resultRows[0]['num'] : 'null');\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t });\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t });\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t $timer->timeout(5e6); // 5 seconds\n\t\t\t\t\t\t\t\t\t\t\t\t\t }, 0);\n\t\t\t\t\t\t\t\t\t\t\t\t })\n\t\t\t\t\t\t\t\t\t\t\t\t ->onDeactivation(function ($pubsub) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t if (isset($pubsub->event)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \\PHPDaemon\\Timer::cancelTimeout($pubsub->event);\n\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t })\n\t\t);\n\t}", "protected function _get_ready() {\n $this->report_warning(\"This is the default (empty) implementation of _get_ready() method, seems that this object lacks specific implementation\");\n }", "protected function onFinishSetup()\n {\n }", "public function run()\n {\n //\n $this->grabData();\n }", "public function run()\n {\n $this->initiateData();\n }", "public function run()\n {\n $this->initiateData();\n }", "public function main()\n {\n $workers = $this->getWorkers();\n $deadWorkers = [];\n $aliveWorkers = [];\n\n foreach($workers as $worker) {\n $isAlive = CremillaWorker::isAlive($worker->pid);\n if(!$isAlive) {\n $deadWorkers[] = $worker;\n }else{\n $aliveWorkers[] = $worker->id;\n }\n }\n\n if(!empty($aliveWorkers)) {\n $event = new Event('Cremilla.Worker.alive', $this, [\n 'data' => [\n 'aliveWorkers' => $aliveWorkers\n ]\n ]);\n $this->dispatchEvent($event);\n }\n\n if(!empty($deadWorkers)) {\n if($this->shouldNotifyWorkersDead(count($aliveWorkers))) {\n $event = new Event('Cremilla.Worker.dead', $this, [\n 'data' => [\n 'deadWorkers' => $deadWorkers\n ]\n ]);\n $this->dispatchEvent($event);\n }\n }\n }", "public function _wake_up() {\n\t\tdo_action( 'searchwp\\debug\\log', 'Waking up', 'indexer' );\n\t\t$this->_destroy_queue();\n\t\t$this->unlock_process();\n\t\tsleep( 1 );\n\t\t$this->trigger();\n\t}", "public function dispatchLoopStartup()\n {\n //...\n }", "public function isReady() {return $this->m_bReady;}", "public function isReadyToUse()\n {\n return true;\n }", "public function registerWorker()\n\t{\n\t\tResque::redis()->sadd('workers', (string)$this);\n\t\tResque::redis()->set('worker:' . (string)$this . ':started', date('c'));\n\t}", "public function onRun()\n {\n $this->prepareWallStream();\n }", "public function run()\n\t{\n\t\t//\n\t}", "function ready();", "public function run()\n {\n $workers = Worker::factory()->count(7)->create();\n }", "private function startup()\n\t{\n\t\t$this->registerSigHandlers();\n\t\t$this->pruneDeadWorkers();\n\t\tEvent::trigger('beforeFirstFork', $this);\n\t\t$this->registerWorker();\n\t}", "public function registerWorker()\r\n {\r\n Resque::redis()->sadd('workers', $this);\r\n setlocale(LC_TIME, \"\");\r\n setlocale(LC_ALL, \"en\");\r\n Resque::redis()->set('worker:' . (string)$this . ':started', strftime('%a %b %d %H:%M:%S %Z %Y'));\r\n }", "public function wakeUp() {}", "function ready()\n\t{\n\t\treturn $this->isReady();\n\t}", "public function init()\n {\n $this->_done = false;\n }", "function run()\n {\n $this->_loadState();\n $start_time = microtime_float();\n while ((microtime_float() - $start_time) < DC_WORKER_TIME_OUT)\n {\n if($this->_process_info['status']=='INITED' or $this->_process_info['status']=='PROCESSING')\n {\n $this->_doWork();\n };\n\n if($this->_process_info['status']=='PRE_COMPLETED')\n {\n $this->_finishWork();\n break;\n };\n\n if($this->_process_info['status']=='ERRORS_HAPPENED')\n {\n $this->_breakWork();\n break;\n };\n }\n\n $this->_saveState();\n return;\n }", "private function booted()\n {\n }", "public function run()\n {\n $this->init();\n\n while (true) {\n $this->processControl->checkForSignals();\n $this->checkOnConsumers();\n\n usleep(self::LOOP_PAUSE);\n }\n }", "public function run()\n {\n $this->_fnameFlagStop = dirname(__FILE__) . '/' . $this->getIndividualFilenameAsFlag();\n $this->checkIfShouldStopWork();\n\n $worker = Mage::getModel('myproject_gearman/worker'); // just a wrapper around PHP Gearman class\n\n $worker->addFunction($this->getJobName(), function (GearmanJob $job) {\n $this->_curJobObject = $job;\n $data = unserialize($job->workload());\n $this->processDataWrapper($data, $job);\n });\n\n $worker->addFunction($this->getIndividualFilenameAsFlag(), function (GearmanJob $job) {\n $this->log('Got job to exit. Job name: ' . $this->getIndividualFilenameAsFlag());\n $job->sendComplete('ok'); // without this line queue not cleans and task stay in this queue\n exit;\n });\n\n $worker->work();\n }", "function process(Worker $worker)\n {\n $this->server();\n }", "public function after_run() {}", "public function __wakeUp() {\n $this->open();\n }", "public function isReady()\n {\n return ( $this->_stateManager->getState() === self::STATE_READY );\n }", "public function start()\n {\n //Start pushing data\n }", "public function go() {\n $this->startAllWorkers();\n $this->doWorkParent();\n }", "public function doneWorking()\n\t{\n\t\t$this->currentJob = null;\n\t\tStat::incr('processed');\n\t\tStat::incr('processed:' . (string)$this);\n\t\tResque::redis()->del('worker:' . (string)$this);\n\t}", "function IsReady()\r\n\t{\r\n\t\treturn $this->IsConnected();\r\n\t}", "public function isReady()\n {\n return $this->isReady;\n }", "public function after_run(){}", "private function respawn()\n {\n // create new event at the end of the queue\n Mage::getModel('marketingsoftware/queue')\n ->setObject($this->currentStatus)\n ->setAction('file_sync')\n ->save();\n }", "public function is_ready() {\n return $this->isready;\n }", "function isReady();", "public function finished()\n {\n }", "public function run()\n {\n }", "protected function emitPostInitializeMailerSignal() {}", "public function handle()\n {\n while (1) {\n $this->worker->work();\n if ($this->worker->returnCode() != GEARMAN_SUCCESS) break;\n sleep(2);\n }\n }", "public function run() {}", "public function afterSyncing() {}", "function enqueue(){\n\t\t}", "public function onRun()\n {\n }", "public function run()\n {\n \n }", "public function run()\n {\n \n }", "public function requestDataSending()\n {\n $this->start();\n }", "protected function finish() {}", "public static function isReady() : bool {}", "protected static function booted()\n {\n //\n }", "protected static function booted()\n {\n //\n }", "public function run()\r\n {\r\n\r\n }", "public function run()\n {\n //\n }", "public function run()\n {\n //\n }", "public function rocketBooster() {\n\t\techo \"systems are not ready yet\";\n\t}", "public static function onWorkerStart($worker)\n {\n self::$encryption = new Encryption;\n }", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function start() {}", "public function track_helper_connection_complete() {\n\t\tWC_Tracks::record_event( 'extensions_subscriptions_connected' );\n\t}", "public function run()\n {\n $this->createData();\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function enqueue()\n {\n }", "public function run()\n {\n //\n \n }", "public function run() {\n }", "private function _postInit()\n {\n // Register all the listeners for config items\n $this->_registerConfigListeners();\n\n // Register all the listeners for invalidating GraphQL Cache.\n $this->_registerGraphQlListeners();\n\n // Load the plugins\n $this->getPlugins()->loadPlugins();\n\n $this->_isInitialized = true;\n\n // Fire an 'init' event\n if ($this->hasEventHandlers(WebApplication::EVENT_INIT)) {\n $this->trigger(WebApplication::EVENT_INIT);\n }\n\n if (!$this->getUpdates()->getIsCraftDbMigrationNeeded()) {\n // Possibly run garbage collection\n $this->getGc()->run();\n }\n }", "public function run()\n\t{\n\t\t$this->upgrade_to_1_1_0();\n\t}", "public static function booted()\n {\n }", "public static function booted()\n {\n }", "function power_up_setup_callback ( )\n\t{\n\t\t$this->admin->power_up_setup_callback();\n\t}", "public function start() {\n\n // TODO: Maybe sometimes\n\n }", "public function run()\n {\n try {\n $this->initial();\n $this->startBackup();\n } catch (NoInicializationException $error) {\n die('[NoInicializationException] '.$error->getMessage());\n } catch (NoDistinationException $error) {\n die('[NoDistinationException] '.$error->getMessage());\n }\n }", "public function run()\n {\n }", "public function run()\n {\n }", "public function run()\n {\n }", "protected function bumperReady()\n {\n return $this->bumperGitReady()\n && $this->bumperSemVerReady()\n && $this->bumperFileSystemReady();\n }", "public function run()\n {\n //['name','code','status',[hd/sd]]\n\n\n {\n $this->createChannel();\n }\n }", "public function completed() {\n\t}", "private function main()\n {\n $this->initDataSource();\n while ($this->running) {\n try {\n $this->eventDispatcher->dispatch(new QueueStatus($this));\n } catch (\\Throwable $e) {\n $this->stdOutLogger->error('Watch coroutine exception, msg:' . $e->getMessage());\n $this->fileLogger->alert('Watch coroutine exception', [\n 'file' => $e->getFile(),\n 'line' => $e->getLine(),\n 'msg' => $e->getMessage(),\n 'trace' => $e->getTraceAsString(),\n ]);\n }\n\n Coroutine::sleep(self::WATCH_COMMAND_TIME);\n }\n $this->stdOutLogger->info('消费进程(' . $this->process->pid . ')退出');\n $this->fileLogger->info('消费进程(' . $this->process->pid . ')退出');\n }", "public function run()\n {\n $this->addReleases();\n }" ]
[ "0.69289136", "0.65546393", "0.6382794", "0.62507266", "0.6092731", "0.6003624", "0.6003624", "0.5947815", "0.58922815", "0.5884182", "0.58541715", "0.5837659", "0.5837659", "0.5825007", "0.5809176", "0.57433474", "0.57427156", "0.57031643", "0.5696955", "0.5653917", "0.5634622", "0.56204104", "0.5613934", "0.5608887", "0.55963475", "0.5559384", "0.5558501", "0.553234", "0.55320555", "0.5519094", "0.55168915", "0.5511797", "0.5510128", "0.5509121", "0.5506903", "0.5500783", "0.5476239", "0.5471837", "0.5467545", "0.54651517", "0.5446882", "0.5446497", "0.5424338", "0.5411728", "0.5407135", "0.5405728", "0.5401597", "0.53845817", "0.53614104", "0.5355652", "0.5355545", "0.53348994", "0.5317576", "0.529592", "0.529592", "0.5294321", "0.5260908", "0.5259704", "0.5256101", "0.5256101", "0.5254", "0.52421457", "0.52421457", "0.5231439", "0.522952", "0.521847", "0.5218086", "0.5218086", "0.521803", "0.5217715", "0.5217715", "0.5217715", "0.5217715", "0.5217715", "0.5217715", "0.52156305", "0.5208814", "0.5193813", "0.5193813", "0.5193813", "0.5193813", "0.5193813", "0.5193813", "0.5190867", "0.5180556", "0.5179406", "0.5170029", "0.51688284", "0.51688284", "0.5166041", "0.51508754", "0.5150368", "0.5149173", "0.5149173", "0.5149173", "0.514701", "0.514433", "0.5141286", "0.51370955", "0.51265365" ]
0.63237
3
Called when worker is going to update configuration.
public function onConfigUpdated() { if ($this->client) { $this->client->config = $this->config; $this->client->onConfigUpdated(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function _updateConfiguration();", "public function configChanged(Varien_Event_Observer $observer)\n {\n $userId = Mage::getStoreConfig('wallee_payment/general/api_user_id');\n $applicationKey = Mage::getStoreConfig('wallee_payment/general/api_user_secret');\n if ($userId && $applicationKey) {\n try {\n Mage::dispatchEvent('wallee_payment_config_synchronize');\n } catch (Exception $e) {\n Mage::throwException(Mage::helper('wallee_payment')->__('Synchronizing with wallee failed:') . ' ' . $e->getMessage());\n }\n }\n }", "abstract public function postConfigure();", "public function process()\n {\n $configurationDataSet = [\n 'database' => [\n 'server' => $this->getValue('db_server'),\n 'database' => $this->getValue('db_database'),\n 'username' => $this->getValue('db_username'),\n 'password' => $this->getValue('db_password'),\n 'prefix' => ''\n ]\n ];\n\n Modules_Pleskdockerusermanager_Configfile::setServiceConfigurationData($configurationDataSet);\n }", "public function getConfigChanged();", "protected function postConfigure()\n {\n }", "public function setConfiguration() {\n\n // Make sure all new services are available.\n drupal_flush_all_caches();\n $this->updateConfig();\n // Make sure configuration changes are available.\n drupal_flush_all_caches();\n $this->updateAuthors();\n $this->output()->writeln('Your configuration is complete.');\n }", "protected function create_worker_config() {\n return $this->config;\n }", "public function handleInitConfig(Varien_Event_Observer $observer)\n {\n /*\n * Record the current api key to detect changes\n */\n $this->currentApiKey = Mage::helper('lapostaconnect')->config('api_key');\n }", "function postUpdate()\n\t{\n\t\t$this->write();\n\n\t\tif ($this->subaction === 'schedule_conf') {\n\t\t\texec(\"sh /script/fix-cron-backup\");\n\n\t\t}\n\t}", "public function onConfigUpdated() {\n\t\tparent::onConfigUpdated();\n\t\tif (\n\t\t\t\t($order = ini_get('request_order'))\n\t\t\t\t|| ($order = ini_get('variables_order'))\n\t\t) {\n\t\t\t$this->variablesOrder = $order;\n\t\t}\n\t\telse {\n\t\t\t$this->variablesOrder = null;\n\t\t}\n\n\t}", "public function run()\n\t{\n\t\tZend_Registry::set('config', new Zend_Config($this->getOptions()));\n\t\tparent::run();\n\t}", "public function process() {\n\t\tif ( ! WD_Utils::check_permission() ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! $this->verify_nonce( 'disable_error_display' ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( ! is_writable( WD_Utils::retrieve_wp_config_path() ) ) {\n\t\t\twp_send_json( array(\n\t\t\t\t'status' => 0,\n\t\t\t\t'error' => __( \"Your wp-config.php isn't writable\", wp_defender()->domain )\n\t\t\t) );\n\t\t}\n\n\t\tif ( ( $res = $this->write_wp_config() ) === true ) {\n\t\t\t$this->after_processed();\n\t\t\twp_send_json( array(\n\t\t\t\t'status' => 1,\n\t\t\t\t'message' => __( \"All PHP errors are hidden.\", wp_defender()->domain )\n\t\t\t) );\n\t\t} else {\n\t\t\t$this->output_error( 'cant_writable', $res->get_error_message() );\n\t\t}\n\t}", "public function processConfiguration() {}", "public function processConfiguration()\n\t{\n\t\t// Check if the value sent on form submit matches one of either $_POST or $_GET keys \n\t\tif (Tools::isSubmit('submit_emailmystock_form'))\n\t\t{\n\t\t\t$enable_emails = Tools::getValue('enable_emails');\n\t\t\t// Update configuration value to database\n\t\t\tConfiguration::updateValue('MYMOD_EMAILS', $enable_emails);\n\t\t\t// Allows the Smarty object to display a confirmation message when the configuration is saved (see top of getContent.tpl)\n\t\t\t$this->context->smarty->assign('confirmation', 'ok');\n\t\t}\n\t}", "public function after_update() {}", "public function setupConfig()\n {\n registry::getInstance()->set('config', $this->parseConfig());\n }", "protected function onConfigChange($name, $value)\n {\n }", "protected function afterConfigurationSet()\n {\n }", "public function afterConfig()\n {\n foreach ($this->_lifecyclers[BeanLifecycle::AfterConfig] as $lifecycleListener) {\n $lifecycleListener->afterConfig();\n }\n }", "protected function afterUpdating()\n {\n }", "public function updateConfig()\n {\n $this->aframe_assets_url = $this->composer->getConfig()->get('aframe-url') ?? '/aframe';\n \n $composer_json = $this->getVendorDir() . DIRECTORY_SEPARATOR . 'mkungla' . DIRECTORY_SEPARATOR . 'aframe-php' . DIRECTORY_SEPARATOR . 'composer.json';\n \n if (file_exists($composer_json)) {\n $config = json_decode(file_get_contents($composer_json));\n $config->config->{'aframe-dir'} = $this->getPublicRoot();\n $config->config->{'aframe-url'} = $this->aframe_assets_url;\n $config->version = self::AFRAME_PHP_VERSION;\n file_put_contents($composer_json, json_encode($config, JSON_PRETTY_PRINT));\n }\n }", "function processConfiguration() ;", "function crpTalk_admin_updateconfig()\n{\n\t// Security check\n\tif (!SecurityUtil :: checkPermission('crpTalk::', '::', ACCESS_ADMIN))\n\t{\n\t\treturn LogUtil :: registerPermissionError();\n\t}\n\n\t$talk= new crpTalk();\n\treturn $talk->updateConfig();\n}", "protected function updateConfig() {\n $config_factory = \\Drupal::configFactory();\n $settings = $config_factory->getEditable('message_subscribe.settings');\n $settings->set('use_queue', TRUE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('mailsystem.settings');\n $settings->set('defaults', [\n 'sender' => 'swiftmailer',\n 'formatter' => 'swiftmailer',\n ]);\n $settings->set('modules', [\n 'swiftmailer' => [\n 'none' => [\n 'formatter' => 'swiftmailer',\n 'sender' => 'swiftmailer',\n ],\n ],\n 'message_notify' => [\n 'none' => [\n 'formatter' => 'swiftmailer',\n 'sender' => 'swiftmailer',\n ],\n ],\n ]);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('swiftmailer.message');\n $settings->set('format', 'text/html');\n $settings->set('respect_format', FALSE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('flag.flag.subscribe_node');\n $settings->set('status', TRUE);\n $settings->save(TRUE);\n\n $settings = $config_factory->getEditable('user.role.authenticated');\n $permissions = $settings->get('permissions');\n foreach ([\n 'flag subscribe_node',\n 'unflag subscribe_node',\n ] as $perm) {\n if (!in_array($perm, $permissions)) {\n $permissions[] = $perm;\n }\n }\n $settings->set('permissions', $permissions);\n $settings->save(TRUE);\n\n }", "protected function configHandle()\n {\n $packageConfigPath = __DIR__.'/config/config.php';\n $appConfigPath = config_path('task-management.php');\n\n $this->mergeConfigFrom($packageConfigPath, 'task-management');\n\n $this->publishes([\n $packageConfigPath => $appConfigPath,\n ], 'config');\n }", "public function triggerConfigChangeCallback(): int\n {\n $this->_setAttr('persistentSettings', '2');\n return 0;\n }", "public function refreshConfig()\n {\n $this->_data = $this->_reader->read();\n $this->merge($this->_dbReader->get());\n }", "public function loadConfig()\n {\n $this->setGlobalStoreOfShopNumber($this->getShopNumber());\n $this->loadArray($this->toArray());\n $this->setExportTmpAndLogSettings();\n }", "abstract public function configure();", "public function run()\n {\n $this->createSettings($this->settings());\n }", "function after_update() {}", "abstract protected function preConfigure();", "public function _on_configuring($config)\n {\n }", "public function onConfig(array $config = []);", "function reloadConfig() {\n\t\treturn $this->_config = PommoAPI :: configGetBase(TRUE);\n\t}", "protected function setup_config() {\n\t\t\t// TODO: Implement setup_config() method.\n\t\t}", "abstract protected function configure();", "abstract protected function configure();", "private function reconfigure() {\n\t\t$global = JConfig::getInstance();\n\t\tforeach ($global as $key => $value) {\n\t\t\tif (array_key_exists($key, $this->config)) {\n\t\t\t\t$this->config[$key] = $value;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tif (class_exists('JPConfig')) {\n\t\t\t\t$this->config = array_merge($this->config, JPConfig::getData());\n\t\t\t}\n\t\t} catch (Exception $e) {\n\t\t\t// class JPConfig doesn't exist\n\t\t}\n\t}", "protected function update() {}", "protected function initConfiguration(){\n $settings = array(\n 'user' => 'bitshok',\n 'widget_id' => '355763562850942976',\n 'tweets_limit' => 3,\n 'follow_btn' => 'on'\n );\n Configuration::updateValue($this->name.'_settings', serialize($settings));\n }", "private function setUpConfig() {\n\n //Get the file where the configs are and process the arrays\n require($this->_data['pathtodata']);\n\n $this->_data = array_merge($this->_data,$acs_confdata);\n\n if (empty($this->_data['indexfile']))\n $this->_data['indexfile'] = 'index';\n\n if (empty($this->_data['common_extension']))\n $this->_data['common_extension'] = COMMON_EXTENSION;\n \n $this->setUriData($this->_data); \n \n //Create the cache file of the config\n if (isset($this->_data['cache_config']) && $this->_data['cache_config'])\n $this->saveConfig();\n else\n if (file_exists($this->_data['cache_config_file']))\n unlink($this->_data['cache_config_file']); \n }", "public function onConfigSave(ConfigCrudEvent $event) {\n if ($event->getConfig()->getName() === 'node.settings' && $event->isChanged('use_admin_theme')) {\n $this->routerBuilder->setRebuildNeeded();\n }\n }", "protected function getConfiguration() {}", "public function _update()\n\t {\n\t \t$this->notifyObservers(__FUNCTION__);\n\t }", "protected function performUpdate() {}", "function core_auto_updates_settings()\n {\n }", "function freeze() {\r\n\r\n\t\t$this->configured = True;\r\n\r\n\t}", "function freeze() {\r\n\r\n\t\t$this->configured = True;\r\n\r\n\t}", "abstract public function configure_method_settings();", "public function updateConfiguration($response) {\n }", "public function onWorkerStart(){\n\t\t// Init mimeMap.\n\t\t$this->initMimeTypeMap();\n\n\t\t// Try to emit onWorkerStart callback.\n\t\tif($this->_onWorkerStart){\n\t\t\ttry{\n\t\t\t\tcall_user_func($this->_onWorkerStart, $this);\n\t\t\t}catch(\\Throwable $e){\n\t\t\t\tLogger::logException($e);\n\t\t\t}\n\t\t}\n\t}", "public function updated_config( FormUI $ui )\n\t{\n\t\tSession::notice( _t( 'StatusNet options saved.', 'statusnet' ) );\n\t\t$ui->save();\n\t}", "public function apply_config() {\n\t\tforeach ( $this->config as $dependency ) {\n\t\t\tif ( false == ( $download_link = $this->installer->get_download_link( $dependency ) ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$this->config[ $dependency['slug'] ]['download_link'] = $download_link;\n\t\t}\n\t}", "private function setSignalConfig()\n {\n request()->validate([\n 'url' => 'nullable|url'\n ]);\n\n $this->storeConfig();\n }", "public function options_update() {\n\t\tregister_setting( $this->plugin_name, $this->plugin_name, array($this, 'validate', 'default' => array( \"url_nerd_instance\" => \"\", \"category_weight\" => \"0.04\", \"entity_weight\" => \"0.7\" ) ) );\n\t}", "public function config_save() {\n }", "public function updateConfigApp() : void\n {\n $this->domainName = Str::title(Str::lower(Str::studly($this->domainName)));\n $configAppFilePath = config_path(\"app.php\");\n $oldValue = \"/*NewDomainsServiceProvider*/\";\n $newValue = \"App\\\\\".config(\"domain.path\").\"\\\\{$this->domainName}\\Providers\\DomainServiceProvider::Class,\";\n $newValue .= \"\\n\\t\\t/*NewDomainsServiceProvider*/\";\n $newContent = Str::replaceFirst($oldValue, $newValue, File::get($configAppFilePath));\n File::put($configAppFilePath, $newContent);\n $this->info(\"App Config File Updated and Added the new Service Provider of Domain\");\n }", "function admin_postinstall_eaccelerator_action()\n{\n\t$prev = new JConfig;\n\t$prev = JArrayHelper::fromObject($prev);\n\n\t$data = array('cacheHandler' => 'file');\n\n\t$data = array_merge($prev, $data);\n\n\t$config = new JRegistry('config');\n\t$config->loadArray($data);\n\n\tjimport('joomla.filesystem.path');\n\tjimport('joomla.filesystem.file');\n\n\t// Set the configuration file path.\n\t$file = JPATH_CONFIGURATION . '/configuration.php';\n\n\t// Get the new FTP credentials.\n\t$ftp = JClientHelper::getCredentials('ftp', true);\n\n\t// Attempt to make the file writeable if using FTP.\n\tif (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0644'))\n\t{\n\t\tJError::raiseNotice('SOME_ERROR_CODE', JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTWRITABLE'));\n\t}\n\n\t// Attempt to write the configuration file as a PHP class named JConfig.\n\t$configuration = $config->toString('PHP', array('class' => 'JConfig', 'closingtag' => false));\n\n\tif (!JFile::write($file, $configuration))\n\t{\n\t\tJFactory::getApplication()->enqueueMessage(JText::_('COM_CONFIG_ERROR_WRITE_FAILED'), 'error');\n\n\t\treturn;\n\t}\n\n\t// Attempt to make the file unwriteable if using FTP.\n\tif (!$ftp['enabled'] && JPath::isOwner($file) && !JPath::setPermissions($file, '0444'))\n\t{\n\t\tJError::raiseNotice('SOME_ERROR_CODE', JText::_('COM_CONFIG_ERROR_CONFIGURATION_PHP_NOTUNWRITABLE'));\n\t}\n}", "public function process($config) {\n\n }", "public function configure() {\n\t\t}", "public function onReady() {\n\t\tif ($this->isEnabled()) {\n\t\t\t$this->updateTimer = setTimeout(function ($timer) {\n\t\t\t\t$this->updateAllServers();\n\t\t\t\t$timer->timeout(2e6);\n\t\t\t}, 1);\n\t\t}\n\t}", "public function config()\n {\n }", "function instance_allow_config()\r\n\t\t{\r\n\t\t\r\n\t\t}", "private function configure()\n {\n if ($this->config->get('speed_analyzer.enabled') === null) {\n $this->config->save('speed_analyzer.enabled', true);\n $this->config->save('speed_analyzer.reports.log_sql_queries', true);\n }\n }", "protected function afterUpdate() {\n\t}", "public function configure() {\r\n\t\r\n\t}", "private function __init_config() {\n if (empty($this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"])) {\n $this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"] = [];\n }\n # Check if there is no dnshaper queue array in the config\n if (empty($this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"][\"item\"])) {\n $this->config[\"dnshaper\"][\"queue\"][$this->id][\"queue\"][\"item\"] = [];\n }\n }", "protected function initConfig()\n {\n $this->config = [];\n }", "protected function _setting_handle() {}", "public function saveSystemConfig($observer)\n {\n Mage::getSingleton('adminhtml/session')->setMessages(Mage::getModel('core/message_collection'));\n\n Mage::getModel('core/config_data')\n ->load(self::CRON_STRING_PATH, 'path')\n ->setValue($this->_getSchedule())\n ->setPath(self::CRON_STRING_PATH)\n ->save();\n\n Mage::app()->cleanCache();\n\n $this->configCheck();\n\n // If there are errors in config, do not progress further as it may be testing old data\n $currentMessages = Mage::getSingleton('adminhtml/session')->getMessages();\n foreach ($currentMessages->getItems() as $msg) {\n if ($msg->getType() != 'success') {\n return;\n }\n }\n\n $messages = array();\n\n // Close connection to avoid mysql gone away errors\n $res = Mage::getSingleton('core/resource');\n $res->getConnection('core_write')->closeConnection();\n\n // Test connection\n $storeId = Mage::app()->getStore();\n $usernameWs = Mage::getStoreConfig('emailchef_newsletter/emailchef/username_ws');\n $passwordWs = Mage::getStoreConfig('emailchef_newsletter/emailchef/password_ws');\n $retConn = Mage::helper('emailchef')->testConnection($usernameWs, $passwordWs, $storeId);\n $messages = array_merge($messages, $retConn);\n\n // Config tests\n $retConfig = Mage::helper('emailchef')->testConfig();\n $messages = array_merge($messages, $retConfig);\n\n // Re-open connection to avoid mysql gone away errors\n $res->getConnection('core_write')->getConnection();\n\n // Add messages from test\n if (count($messages) > 0) {\n foreach ($messages as $msg) {\n $msgObj = Mage::getSingleton('core/message')->$msg['type']($msg['message']);\n Mage::getSingleton('adminhtml/session')->addMessage($msgObj);\n }\n }\n }", "public function settings_updated() {\n\t\tglobal $pagenow;\n\t\t$on_options_page = ($pagenow == 'options-general.php');\n\t\t$on_plugins_page = (isset($_GET['page']) && $_GET['page'] == $this->menu_page);\n\t\t$just_updated = (isset($_GET['settings-updated']) && $_GET['settings-updated'] == 'true');\n\n\t\tif($on_options_page && $on_plugins_page && $just_updated) {\n\t\t\tdo_action('chaos-settings-updated');\n\t\t}\n\t}", "public function configure() {}", "public function configure() {}", "protected static function _processConfiguration()\n {\n\n //Pour la ligne de commandes\n global $argv;\n\n //Récupération des valeurs\n $key = Tools::getValue('key');\n $value = Tools::getValue('value',-1);\n $action_conf = Tools::getValue('action_conf', 'update');\n\t\t\t\t\n //Gestion via la ligne de commande\n if ($argv) {\n $allowsKeys = array('key','value','action_conf');\n\n foreach ($argv as $arg) {\n $arguments = explode('=', $arg);\n if (in_array($arguments[0], $allowsKeys)) {\n ${$arguments[0]} = $arguments[1];\n }\n }\n\t\t\t\n\t\t\tif ( self::$verbose )\n\t\t\t\techo 'Lancement via la ligne de commande '.self::$endOfLine;\n }\n\n if (!$key && $value == -1 ) {\n exit('Erreur Pas de clé et de valeur définie pour la configuration'.self::$endOfLine);\n }\n\n if (!in_array($action_conf, self::$configurationActionsAllowed)) {\n exit('Erreur action non autorisée pour la configuration '.self::$endOfLine);\n }\n\n if ($action_conf == 'update') {\n\t\t\techo 'On est bien dans update';\n\t\t\techo 'value '.$value;\n\t\t\tif ( $value == -1 )\n\t\t\t\texit('Erreur Impossible de mettre à jour la configuration, pas de valeur défine');\n Configuration::UpdateValue($key, $value);\n }\n\t\t elseif ( $action_conf == 'get'){\n\t\t\tif ( self::$verbose )\n\t\t\t\techo 'Valeur de la configuration'.$key.' '.Configuration::get($key).self::$endOfLine;\n\t\t\telse\t\n\t\t\t\techo Configuration::get($key);\n\t\t }else {\n Configuration::deleteByName($key);\n }\n\n\t\t if ( self::$verbose )\n\t\t\techo $action_conf.' effectuee pour la cle '.$key.' '.self::$endOfLine;\n }", "public static function run() {\n Cin::checkConfigVo();\n Cin::$manager->run();\n }", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function runAtBoot() {\r\n\t\tif (isset ( $this->data )) {\r\n\t\t\t$this->configure ();\r\n\t\t\t$this->start ();\r\n\t\t} else {\r\n\t\t\t$this->logger->warn ( \"No WAN config found.\" );\r\n\t\t}\r\n\t}", "protected function afterUpdate()\n {\n }", "protected function afterUpdate()\n {\n }", "function update() {\n\n\t\t\t}", "public function writeConfig() {\n $mergedTemplate = $this->mergeTemplate();\n file_put_contents(\"{$this->settings['paths']['hostConfigDir']}/{$this->params['name']}.cfg\", $mergedTemplate);\n file_put_contents(\"{$this->settings['paths']['hostTrackDir']}/{$this->params['type']}.inf\", \"{$this->params['name']}:{$this->params['instanceId']}\" . PHP_EOL, FILE_APPEND);\n $this->logChange();\n }", "public function uploadConfig($store)\n {\n parent::uploadConfig($store);\n\n $this->extend('updateConfig', $store);\n }", "public function onSync($aseco){\r\n\t\t// Read Configuration\r\n\t\tif (!$xml = $aseco->parser->xmlToArray('config/checkpoint_time_differences.xml', true, true)) {\r\n\t\t\ttrigger_error('[CpDiff] Could not read/parse config file \"config/checkpoint_time_differences.xml\"!', E_USER_ERROR);\r\n\t\t}\r\n\t\t$this->settings = $xml['SETTINGS'];\r\n\t\tunset($xml);\r\n\t\t\r\n\t}", "private function configure(): void\n {\n if (!$this->app->configurationIsCached()) {\n $this->mergeConfigFrom(__DIR__ . '/../config/paket.php', 'paket');\n }\n }", "public function update()\n {\n }", "protected function onUpdated()\n {\n return true;\n }", "function hook_kiosque_actor_configure($type, $configuration, $context, $touch = false) {}", "protected function _preupdate() {\n }", "protected function beforeUpdating()\n {\n }", "protected function addToConfig()\n {\n $path = $this->getConfigPath();\n $config = require($path);\n if (isset($config[$this->moduleId])) {\n if (\\Yii::$app->controller->confirm('Rewrite exist config?')) {\n $config[$this->moduleId] = $this->getConfigArray();\n echo 'Module config was rewrote' . PHP_EOL;\n }\n } else {\n $config[$this->moduleId] = $this->getConfigArray();\n }\n\n\n $this->writeArrayToFile($this->getConfigPath(), $config);\n }", "public function run()\n\t{\n\t\t$this->upgrade_to_1_1_0();\n\t}", "public function refresh_plugin_settings() {\n self::$instance->plugin_settings = self::$instance->get_plugin_settings();\n }", "public function updated_config( FormUI $ui ) {\n \n Session::notice( _t( 'Trac options saved.', 'tracdashmodule' ) );\n \n $ui->save();\n \n }", "public function process_admin_options() {\n\t\tparent::process_admin_options();\n\n\t\tif( $this->is_enabled() ) {\n\t\t\t$this->maybeSchedule();\n\t\t}\n\t\telse {\n\t\t\t$this->unschedule();\n\t\t}\n\n\t\tif( $this->get_option('send_now') == 'yes' ) {\n\t\t\t$this->trigger();\n\t\t\t$this->update_option( 'send_now', 'no' );\n\t\t}\n\t}", "protected function adjustRunningWorkers() : void\n {\n foreach ($this->poolsConfig as $pool => $workerConfig) {\n $workersActive = count($this->pids[$pool]);\n $workersTarget = (int)$workerConfig['instances'];\n if ($workersActive >= $workersTarget) {\n continue;\n }\n\n $workerDiff = $workersTarget - $workersActive;\n for ($i = 0; $i < $workerDiff; $i++) {\n $this->startupWorker($pool);\n }\n }\n }", "public function run()\n {\n $walletConfig = new WalletConfig;\n $walletConfig->wallet_validity_period = 30;\n $walletConfig->save();\n }", "public function onConfigLoaded(array &$config)\n {\n $this->hash = @$config['editor']['hash'];\n $this->template = @$config['editor']['template'];\n $this->deleteDir = @$config['editor']['content_dir_delete'];\n }" ]
[ "0.70563656", "0.6443865", "0.62816197", "0.60414636", "0.6032272", "0.59078276", "0.59054154", "0.58986545", "0.5884469", "0.5831596", "0.57830846", "0.5749157", "0.5746288", "0.57460046", "0.57368976", "0.5702942", "0.5701427", "0.57012683", "0.569929", "0.5674837", "0.56681657", "0.56617403", "0.56379235", "0.5628245", "0.5604157", "0.5599606", "0.5588848", "0.5584425", "0.5531847", "0.55112875", "0.5506654", "0.5481785", "0.5451588", "0.54442495", "0.5439781", "0.5436154", "0.5435034", "0.54333544", "0.54333544", "0.5426493", "0.5422759", "0.5420048", "0.54098827", "0.54095966", "0.5398929", "0.5395805", "0.53797364", "0.53722626", "0.53643054", "0.53643054", "0.5363537", "0.53597397", "0.53367025", "0.531806", "0.5311602", "0.5300835", "0.5289636", "0.5281211", "0.52800375", "0.52777", "0.525586", "0.5254044", "0.52491474", "0.5239557", "0.5239175", "0.5236818", "0.5231492", "0.5224106", "0.52142745", "0.5211489", "0.5203784", "0.51998794", "0.5193914", "0.5193221", "0.5193221", "0.5193067", "0.5189954", "0.51835954", "0.51835954", "0.5181313", "0.5181052", "0.5181052", "0.5179727", "0.5172733", "0.5170251", "0.5166456", "0.51664287", "0.5165649", "0.5146618", "0.5142529", "0.5136183", "0.51350886", "0.51321226", "0.5130984", "0.5129315", "0.5128356", "0.51283103", "0.5126664", "0.51219344", "0.51208806" ]
0.7420578
0
Called when application instance is going to shutdown.
public function onShutdown() { if ($this->client) { return $this->client->onShutdown(); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onShutdown();", "public function onShutdown();", "public function onShutDown()\n {\n }", "public function onShutDown()\n {\n }", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "public function shutdown() {}", "protected function shutdown()\n {\n }", "public function executeOnShutdown();", "public function shutdown();", "public function shutdown();", "public function shutdown() {\n\t\t\t//\n\t\t}", "public function shutdown()\n {\n }", "public function shutdown()\n {\n \n }", "public function shutdown()\r\n {\r\n }", "public function shutdown()\n\t{\n\t\t$this->shutdown = true;\n\t\t$this->logger->log(LogLevel::NOTICE, 'Shutting down');\n\t}", "public function shutdown()\n {\n }", "public function shutdown()\n {\n // Do nothing. Can be overridden by extending classes.\n }", "public function shutdown(): void\n {\n $this->handleOnShutDownListeners();\n }", "public function shutdown(): void\n {\n $this->handleOnShutDownListeners();\n }", "public function shutdown(){\r\n\r\n\t}", "abstract public function shutdown();", "public function shutdown() {\n\t\t$this->stop();\n\t}", "function shutdown()\n {\n }", "protected function _after(){\n $this->stopApplication();\n }", "public function shutdown()\n {\n // do nothing here\n }", "protected function _after()\n {\n $this->destroyApplication();\n }", "abstract function shutdown();", "function shutdown_action_hook()\n {\n }", "abstract function shutdown ();", "abstract function shutdown ();", "public function handleShutdown()\n {\n if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {\n $this->handleException($this->fatalExceptionFromError($error, 0));\n }\n\n $this->app->exitObserver->trigger();\n }", "public function shutdown() {\r\n\t\tif($this->status == 'running') {\r\n\t\t\toutput('Shutting Down Blossom Server');\r\n\t\t\t$this->status = 'shutdown';\r\n\t\t\t$this->start_shutdown_time = time();\r\n\t\t\r\n\t\t\tforeach ($this->socket_array as $socket) {\r\n\t\t\t\tif(!$socket->live_past_shutdown) {\r\n\t\t\t\t\t$socket->trigger_remove();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->set_interval($this, 'check_shutdown', 1);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\texit();\r\n\t\t}\r\n\t}", "abstract public static function cleanShutDown();", "function shutdown() ;", "public function onShutdown($error);", "public function shutdown() {\r\n\t\ttx_auxo_cache::shutdown();\t\r\n\t\t$this->triggerEvent('shutdown');\r\n\t}", "public function onShutdown()\n {\n // Get the last error if there was one, if not, let's get out of here.\n if (!$error = error_get_last()) {\n return;\n }\n\n if (!($error['type'] & (E_ERROR|E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR|E_USER_ERROR|E_RECOVERABLE_ERROR))) {\n return;\n }\n\n $this->notifier->notify(\n new \\ErrorException($error['message'], $error['type'], $error['type'], $error['file'], $error['line'])\n );\n }", "function shutdown() {\n\t\tif ( !$this->hasShutdown ) {\n\t\t\t$this->hasShutdown = true;\n\t\t\t$services = array_reverse( array_keys( $this->services ) );\n\t\t\tforeach ( $services as $srv ) {\n\t\t\t\tif ( method_exists( $this->services[$srv], 'xoShutdown' ) ) {\n\t\t\t\t\t$this->services[$srv]->xoShutdown();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function shutdownHandler()\n {\n if ($this->gi) {\n geoip_close($this->getGI());\n }\n }", "public function shutdown() {\n\t\t$this->objectContainer->shutdown();\n\t}", "public function shutdown() {\n $this->saveStorage();\n }", "private function setCleanupOnShutdown()\n {\n RetailcrmJobManager::setCustomShutdownHandler([$this, 'cleanupOnShutdown']);\n }", "public function shutdown()\n {\n $this->set_state(STATE_HALTED);\n }", "public static function shutdown(){\n\t\t\n\t\t$error = error_get_last();\t\t\n\t\tif($error){\t\t\t\n\t\t\t//Log only fatal errors because other errors should have been logged by the normal error handler\n\t\t\tif($error['type']==E_ERROR || $error['type']==E_CORE_ERROR || $error['type']==E_COMPILE_ERROR || $error['type']==E_RECOVERABLE_ERROR)\n\t\t\t\tself::errorHandler($error['type'], $error['message'], $error['file'], $error['line']);\n\t\t}\n\t\t\n\t\t//clear temp files on the command line because we may run as root\n\t\tif(PHP_SAPI=='cli')\n\t\t\t\\GO::session()->clearUserTempFiles(false);\n\t\t\n\t\t\\GO::debugPageLoadTime('shutdown');\n\t\t\\GO::debug(\"--------------------\\n\");\n\t}", "public static function shutdown() {\r\n if(!self::$instance instanceof Booter) {\r\n throw new \\BadMethodCallException(\"You need to \" . __CLASS__ . \"::boot() before you can call \" . __METHOD__);\r\n }\r\n $instance = self::$instance;\r\n self::$instance = null;\r\n $instance->cleanup();\r\n }", "public function auto_shutdown() {\r\n\t\t$this->shutdown();\r\n\t}", "public function shutdown ()\n {\n $this->_signalAllWorkers(SIGKILL);\n \n $this->_logger->info('Exiting...');\n $this->_shutdown = true;\n \n exit(1);\n }", "protected static function shutdown()\n\t{\n\t\tif (MHTTPD::$debug) {cecho(\"Shutting down the server ...\\n\");}\n\t\tMHTTPD::$running = false;\n\t\t\n\t\t// Close listener\n\t\tMHTTPD::closeSocket(MHTTPD::$listener);\n\t\t\n\t\t// Kill all running FCGI processes\n\t\texec('taskkill /F /IM php-cgi.exe');\n\t\t\t\t\n\t\t// Remove any active clients\n\t\tforeach ($this->clients as $client) {\n\t\t\tMHTTPD::removeClient($client);\n\t\t}\n\t\t\n\t\t// Flush any buffered logs\n\t\tMHTTPD_Logger::flushLogs();\t\t\n\t}", "public function dispatchLoopShutdown()\n {\n //...\n }", "private function registerShutdown() {\n\t\t\t// php shutdown function\n\t\t\tregister_shutdown_function(array($this, 'shutdown'));\n\t\t}", "public function OnShutdown() {\n\n \t// update\n if ($this->LogEnabled && !empty($this->Stats)) {\n $this->UpdateStats();\n }\n\n\t\t// don't go further if a fatal has occurred\n\t\t$LastError= error_get_last();\n\t\tif ($LastError !== null && in_array($LastError['type'], array(E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR))) {\n\t\t\treturn;\n\t\t}\n\n\t\t// display widget\n if ($this->Settings['Widget'] // show if widget enabled\n\t\t\t&& !wp_is_json_request() && (!defined('DOING_AJAX') || !DOING_AJAX)\t// hide in AJAX requests\n\t\t\t&& (!defined('DOING_CRON') || !DOING_CRON) // hide in cron requests\n\t\t\t&& current_user_can('manage_options') // only admin can see it\n\t\t\t&& !is_admin() // hide on dashboard pages\n\t\t) {\n $this->ShowWidget();\n }\n }", "public function uninit() {\n\t\tparent::uninit();\n\t\t$this->runShutdown = false;\n\t}", "function end_conf_app()\n\t{\n\t}", "public function handleShutdown() {\n\t\t$last_error = error_get_last();\n\t\tif ( !empty( $last_error ) ) {\n\t\t\t$this->handleError(\n\t\t\t\t$last_error['type'],\n\t\t\t\t$last_error['message'],\n\t\t\t\t$last_error['file'],\n\t\t\t\t$last_error['line']\n\t\t\t);\n\t\t}\n\t}", "public function onKernelTerminate()\n {\n $this->session = null;\n }", "protected function tearDown()\n {\n if ($this->app) {\n foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {\n call_user_func($callback);\n }\n }\n\n $this->setUpHasRun = false;\n\n if (property_exists($this, 'serverVariables')) {\n $this->serverVariables = [];\n }\n\n if (class_exists('Mockery')) {\n Mockery::close();\n }\n\n $this->afterApplicationCreatedCallbacks = [];\n $this->beforeApplicationDestroyedCallbacks = [];\n }", "public function routeShutdown()\n {\n //...\n }", "public function shutdownFunction() {\n\t\tif ($this->runShutdown) {\n\t\t\t$e = error_get_last();\n\n\t\t\t// run regular error handling when there's an error\n\t\t\tif (isset($e['type'])) {\n\t\t\t\t$this->handleError($e['type'], $e['message'], $e['file'], $e['line'], null);\n\t\t\t}\n\t\t}\n\t}", "public function dispatchLoopShutdown()\n {\n\n }", "public static function tearDownAfterClass()\n {\n if (null !== static::$kernel) {\n static::$kernel->shutdown();\n }\n }", "public function shutdown()\n {\n if ($this->db) {\n $db->disconnect();\n }\n }", "public function shutdownHandler()\n {\n /*\n $err = error_get_last();\n\n if (isset($err['type']) && $err['type'] !== E_WARNING) {\n //$this->exceptionHandler(new ErrorException($err['type'], $err['message'], $err['file'], $err['line']));\n }\n */\n }", "public function handleShutdown()\n {\n if (!is_null($error = error_get_last())) {\n $this->handleException(\n new ErrorException($error['message'], $error['type'], 0, $error['file'], $error['line'])\n );\n }\n }", "public static function systemShutdown()\n {\n// echo __METHOD__;\n }", "public function handleShutdown()\n {\n $last_error = error_get_last();\n\n if ( ( $last_error !== null ) and ( in_array($last_error['type'], Array ( E_ERROR, E_CORE_ERROR, E_COMPILE_ERROR, E_USER_ERROR, E_RECOVERABLE_ERROR, E_CORE_WARNING, E_COMPILE_WARNING, E_PARSE )) ) )\n {\n $this->DontShowBacktrace = true;\n $this->handleError($last_error['type'], $last_error['message'], $last_error['file'], $last_error['line']);\n }\n }", "public static function shutdown()\n {\n Cache::add('scripting.library_paths', static::$libraryPaths, static::DEFAULT_CACHE_TTL);\n Cache::add('scripting.libraries', static::$libraries, static::DEFAULT_CACHE_TTL);\n }", "public function appEnd()\n {\n }", "public function appEnd()\n {\n }", "protected function handleShutdown()\n {\n if (! is_null($error = error_get_last()) && $this->isFatalError($error['type'])) {\n $this->handleUncaughtException(new FatalErrorException(\n $error['message'], $error['type'], 0, $error['file'], $error['line']\n ));\n }\n }", "public function shutdown()\n {\n $this->callShutdownMethods($this->shutdownObjects);\n\n $securityContext = $this->get(Context::class);\n /** @var Context $securityContext */\n if ($securityContext->isInitialized()) {\n $this->get(Context::class)->withoutAuthorizationChecks(function () {\n $this->callShutdownMethods($this->internalShutdownObjects);\n });\n } else {\n $this->callShutdownMethods($this->internalShutdownObjects);\n }\n }", "protected function handleShutdown(): void\n {\n if (empty($error = \\error_get_last())) {\n return;\n }\n\n try {\n $this->handleError($error['type'], $error['message'], $error['file'], $error['line']);\n } catch (\\Throwable $e) {\n $this->handleGlobalException($e);\n }\n }", "public function shutdown()\n {\n parent::shutdown();\n\n foreach ($this->address_books as $book) {\n if (is_object($book) && is_a($book, 'rcube_addressbook'))\n $book->close();\n }\n\n // before closing the database connection, write session data\n if ($_SERVER['REMOTE_ADDR'] && is_object($this->session)) {\n session_write_close();\n }\n\n // write performance stats to logs/console\n if ($this->config->get('devel_mode')) {\n if (function_exists('memory_get_usage'))\n $mem = rcube_ui::show_bytes(memory_get_usage());\n if (function_exists('memory_get_peak_usage'))\n $mem .= '/'.rcube_ui::show_bytes(memory_get_peak_usage());\n\n $log = $this->task . ($this->action ? '/'.$this->action : '') . ($mem ? \" [$mem]\" : '');\n if (defined('RCMAIL_START'))\n self::print_timer(RCMAIL_START, $log);\n else\n self::console($log);\n }\n }", "public function shutdown()\n {\n $this->setAttribute('lastrequest', time(), 'user');\n\n // rimozione variabili flash da eliminare\n foreach ($names = $this->getNames('core/user/flash/remove') as $name)\n {\n $this->removeAttribute($name, 'core/user/flash');\n $this->removeAttribute($name, 'core/user/flash/remove');\n }\n\n // termina immediatamente\n session_write_close();\n }", "static function shutdown() {\n\t\tif (self::hasCurrent()) {\n\t\t\tself::$_ctrl->__destruct();\n\t\t\tself::$_ctrl = null;\n\t\t}\n\t}", "public function shutdown() {\n global $conf;\n if ($this->skip) {\n $conf['error_level'] = 0;\n // By throwing an Exception here the subsequent registered shutdown\n // functions will not get executed.\n throw new \\Exception(\"Skip shutdown functions\");\n }\n }", "public function onShutdown() {\n\t\tif ($this->pool) {\n\t\t\treturn $this->pool->onShutdown();\n\t\t}\n\t\treturn true;\n\t}", "public function handleShutdown()\n {\n if (!is_null($error = error_get_last()) && $this->isFatal($error['type'])) {\n $this->handleException($this->fatalExceptionFromError($error));\n }\n }", "public function handleShutdown()\n {\n $error = error_get_last();\n if ($error !== null && $this->isFatal($error['type'])) {\n $this->handleException($this->fatalExceptionFromError($error, 0));\n }\n }", "function shutdown() {\n // Safety for themes not using wp_footer\n SLPlus_Actions::ManageTheScripts();\n\t\t}", "public function tearDown()\n {\n if ($this->app) {\n foreach ($this->beforeApplicationDestroyedCallbacks as $callback) {\n call_user_func($callback);\n }\n $this->app->flush();\n $this->app = null;\n }\n\n if (class_exists('Mockery')) {\n Mockery::close();\n }\n }", "protected function shutDown()\n {\n if (!is_null(System::getInstance()->database())) {\n System::getInstance()->set('database', null);\n }\n }", "public function __destruct() {\r\n if(self::$instance instanceof Booter) {\r\n self::shutdown();\r\n }\r\n }", "public function shutdown()\r\n {\r\n foreach ($this->loggers as $logger)\r\n {\r\n if (method_exists($logger, 'shutdown'))\r\n {\r\n $logger->shutdown();\r\n }\r\n }\r\n\r\n $this->loggers = array();\r\n }", "protected function destroyApplication()\n\t{\n\t\tYii::setApplication(null);\n\t}", "public function terminate()\n {\n $this->io->text(\"Shutting down..\");\n // TODO: Dispatch console.terminate event ..maybe..?\n exit();\n }", "public function shutdown()\n {\n $this->dbTable = null;\n }", "protected function destroyApplication()\n {\n Yii::setApplication(null);\n }", "protected function _after() {\n\t\t$this->startup = null;\n\t}", "public function shutdownNow()\n\t{\n\t\t$this->shutdown();\n\t\t$this->killChild();\n\t}", "protected static function destroyApplication()\n {\n Yii::$app = null;\n }", "function on_shutdown($function)\n{\n return signal(new \\XPSPL\\processor\\SIG_Shutdown(), $function);\n}", "function ZimAPI_shutdown() {\r\n\t$CI = &get_instance();\r\n\t$CI->load->helper('printerstate');\r\n\t\r\n\treturn PrinterState_powerOff();\r\n}", "function __elgg_shutdown_hook() {\n\tglobal $START_MICROTIME;\n\n\ttrigger_elgg_event('shutdown', 'system');\n\n\t$time = (float)(microtime(TRUE) - $START_MICROTIME);\n\t// demoted to NOTICE from DEBUG so javascript is not corrupted\n\telgg_log(\"Page {$_SERVER['REQUEST_URI']} generated in $time seconds\", 'NOTICE');\n}", "protected function destroyApplication()\n {\n Yii::$app = null;\n }", "function shutdown()\n\t{\n\t\tif (class_exists('Db'))\n\t\t{\n\t\t\tDb::close_connection();\n\t\t}\n\t}", "protected function destroyApplication()\n {\n if (Yii::$app) {\n if (Yii::$app->has('session', true)) {\n Yii::$app->session->close();\n }\n if (Yii::$app->has('db', true)) {\n Yii::$app->db->close();\n }\n }\n Yii::$app = null;\n Yii::$container = new Container();\n }", "static function shutdown()\n\t{\n\t\tif (!empty(self::$channel))\n\t\t{\n\t\t\tself::$channel->close();\n\t\t\tself::$channel = null;\n\t\t}\n\n\t\tif (!empty(self::$connection))\n\t\t{\n\t\t\tself::$connection->close();\n\t\t\tself::$connection = null;\n\t\t}\n\t}", "public function onShutdown(\\swoole_server $server)\n {\n }" ]
[ "0.84810126", "0.84810126", "0.8424977", "0.8424977", "0.78664184", "0.78664184", "0.78664184", "0.78664184", "0.78664184", "0.7808226", "0.77703047", "0.77459496", "0.77459496", "0.7722931", "0.7713293", "0.77121234", "0.7694051", "0.7629432", "0.7621411", "0.76199436", "0.7604796", "0.7604796", "0.7562034", "0.74944264", "0.74468154", "0.742657", "0.7396841", "0.73954767", "0.7311734", "0.7304607", "0.7168504", "0.71189725", "0.71189725", "0.7105099", "0.71019953", "0.7090764", "0.70803857", "0.7012847", "0.6985712", "0.6884997", "0.6884022", "0.68769574", "0.68455243", "0.68328464", "0.6814749", "0.68028927", "0.6801103", "0.68008584", "0.67950416", "0.67821056", "0.6767466", "0.6723612", "0.67084795", "0.6693095", "0.66854143", "0.66806304", "0.66731423", "0.66662824", "0.6647406", "0.6618853", "0.66159546", "0.6597629", "0.6586338", "0.6584593", "0.65838534", "0.6577254", "0.65638876", "0.655961", "0.6552187", "0.6546016", "0.6546016", "0.6544434", "0.6540464", "0.65371984", "0.653604", "0.6528728", "0.64899087", "0.64846313", "0.6470591", "0.64469934", "0.644557", "0.6442229", "0.6407251", "0.63884115", "0.6366133", "0.635592", "0.63406277", "0.6334971", "0.6321438", "0.63200134", "0.63187", "0.63157797", "0.6292723", "0.628081", "0.62797767", "0.6277497", "0.627744", "0.6255902", "0.62483776", "0.6226981", "0.6206064" ]
0.0
-1
Called when request iterated.
public function run() { $this->header('Content-Type: text/html'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Game servers</title> </head> <body> </body> </html><?php }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function serve_request()\n {\n }", "protected function _request() {}", "public function runRequest() {\n }", "public function handleRequest() {}", "public function handlerNeedsRequest()\n {\n }", "public function run() {\r\n $this->routeRequest(new Request());\r\n }", "public function processRequest();", "function handleRequest() ;", "public static function process_http_request()\n {\n }", "public function RequestLifeCycle(){\n }", "abstract public function handle_request();", "abstract public function processRequest();", "public function requests()\n\t{\n\t\t$this->checkRequest();\n\t\t$this->getResponse();\n\t}", "public function processRequest() {\n $this->server->service($GLOBALS['HTTP_RAW_POST_DATA']);\n }", "public function next()\n {\n next($this->requests);\n }", "function onRequest(){\n\n\t// check if we need to reload the application\n\tcheckApplicationState();\n\n\t// initialize the ViewSate for every request\n\tsetViewState( getFactory()->getBean( 'ViewState' ) );\n\n\t// decide what to do, the front controller\n\thandleAction();\n\n\t// render the application\n\trenderApplication();\n}", "public function process()\n\t{\n\t\t$action = $this->getAction();\n\t\tswitch (strtolower($action))\n\t\t{\n\t\t\tcase 'get':\n\t\t\tcase 'put':\n\t\t\tcase 'post':\n\t\t\tcase 'delete':\n\t\t}\t\n\t}", "protected function processGetRequest()\n {\n $this->ajaxDie(json_encode([\n 'success' => true,\n 'operation' => 'get'\n ]));\n }", "public abstract function processRequest();", "protected abstract function handleRequest();", "public function postDispatch()\n {\n parent::postDispatch();\n\n $this->getRequestData();\n }", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "protected function _process() {}", "abstract protected function process(Request $request);", "public function run() {\n //fire off any events that are a associated with this event\n $event = new Event(KernelEvents::REQUEST_START);\n\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::REQUEST_START, $event);\n\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::REQUEST_START, $event);\n\n //initialize the MVC\n $nodeConfig = $this->httpRequest->getNodeConfig();\n \n $cmd = $this->getKernelRunner();\n\n\n $result = $cmd->execute($nodeConfig);\n\n $this->httpResponse->setAttribute('result', $result['data']);\n\n //file_put_contents('/var/www/glenmeikle.com/logs/db-debug.log', print_r($this->httpRequest, true), FILE_APPEND);\n // echo \"node filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getSitePath(). DIRECTORY_SEPARATOR . $this->httpRequest->getNodeConfig()['componentPath'] . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'filters.yml', $this->httpRequest->getRequestParams()->getYmlKey(),FilterEvents::FILTER_REQUEST_FORWARD);\n // echo \"all filters\\r\\n\";\n runFilters($this->httpRequest->getSiteParams()->getConfigPath() . 'filters.yml', 'all',FilterEvents::FILTER_REQUEST_FORWARD);\n\n \n $event = new Event(KernelEvents::RESPONSE_END, $result);\n $this->container->get('EventDispatcher')->dispatch('all', KernelEvents::RESPONSE_END, $event);\n $this->container->get('EventDispatcher')->dispatch($this->httpRequest->getRequestParams()->getYmlKey(), KernelEvents::RESPONSE_END, $event);\n\n /**\n * now we dump the response to the page\n */\n renderResult($result, $this->httpResponse->getHeaders(), $this->httpResponse->getCookies());\n }", "public function prepareRequest()\r\n {\r\n\r\n }", "public function processRequest() {\r\n switch($this->requestMethod) {\r\n case 'GET':\r\n if($this->id) {\r\n $response = $this->get($this->id);\r\n }\r\n else {\r\n $response = $this->getAll();\r\n }\r\n break;\r\n case 'POST':\r\n $response = $this->create();\r\n break;\r\n case 'PUT':\r\n $response = $this->update($this->id);\r\n break;\r\n case 'DELETE':\r\n $response = $this->delete($this->id);\r\n break;\r\n case 'OPTIONS':\r\n break;\r\n default:\r\n $response = $this->notFoundResponse();\r\n break;\r\n }\r\n\r\n header($response['status_code_header']);\r\n\r\n // If there is a body then echo it\r\n if($response['body']) {\r\n echo $response['body'];\r\n }\r\n }", "public function requestHasBeenHandled()\n {\n $this->requestHandled = true;\n }", "public function run()\n\t{\n\t\t$response = $this->dispatch($this['request']);\n\n\t\t$response->send();\n\n\t\t$this->callFinishMiddleware($response);\n\t}", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "public function request()\n {\n }", "public function request()\n {\n }", "protected function processing()\n {\n $currentRouteSettings[] = $this->transformator->buildConfiguration(\n $this->getRouteString()\n )[$this->getRouteString()];\n \n foreach($currentRouteSettings as $routeName => $routeValue) {\n $this->setControllerName($routeValue['controller']);\n $this->setActionName($routeValue['action']);\n $this->setHttpMethodName($routeValue['method']);\n }\n\n $this->setParameters($this->searchParam());\n }", "public function requestRun()\n {\n }", "protected function initProcessing() {\n foreach ($this->requests as $k => $request) {\n if (isset($request->timeStart)) continue;\n $this->getDefaultOptions()->applyTo($request);\n $request->getOptions()->applyTo($request);\n $request->timeStart = microtime(true);\n }\n $this->active = true;\n }", "protected function _response() {}", "public function requestDataSending()\n {\n $this->start();\n }", "public function dispatchLoopStartup (Zend_Controller_Request_Abstract $request)\r\n {\r\n if (! $request->isGet()) {\r\n //self::$doNotCache = true;\r\n self::$doCache = false;\r\n return;\r\n }\r\n $path = $request->getPathInfo();\r\n $this->key = md5($path);\r\n // diferente\r\n if (false !== ($response = $this->getCache())) {\r\n $response->sendResponse();\r\n exit();\r\n }\r\n }", "protected function processRequestParams(): void\n {\n $this->processLimit();\n $this->processLocale();\n }", "public function processRequest() {\n $action = \"\";\n //retrieve action from client.\n if (filter_has_var(INPUT_GET, 'action')) {\n $action = filter_input(INPUT_GET, 'action');\n }\n\n switch ($action) {\n case 'login':\n $this->login(); \n break;\n case 'register':\n $this->register(); //list all articles\n break;\n case 'search':\n $this->search(); //show a form for an article\n break;\n case 'searchList':\n $this->searchList();\n break;\n case 'remove':\n $this->removeArticle();\n break;\n case 'modify':\n $this->modifyArticle();\n break;\n case 'listCategoryForm':\n $this->listCategoryForm();\n break;\n case 'listCategory':\n $this->listCategory();\n break;\n default :\n break;\n }\n }", "protected function runLogic()\n {\n Logic::run($this->request); /* The logic to attempt to parse the request */\n }", "function request()\n {\n }", "public function work() {\n if(isset($_GET['r'])) {\n $this->route = $_GET['r'];\n }\n\n $this->transform();\n }", "public function run() {\n $base = $this->request->getNextRoute();\n if ($base !== BASE) {\n $this->response->notFound();\n }\n $start = $this->request->getNextRoute();\n if ($rs = $this->getRs($start)) {\n if ($this->request->isOptions()) {\n $this->response->okEmpty();\n return;\n }\n try {\n $this->response->ok($rs->handleRequest());\n\n } catch (UnauthorizedException $e) {\n $this->response->unauthorized();\n\n } catch (MethodNotAllowedException $e) {\n $this->response->methodNotAllowed();\n\n } catch (BadRequestExceptionInterface $e) {\n $this->response->badRequest($e->getMessage());\n\n } catch (UnavailableExceptionInterface $e) {\n $this->response->unavailable($e->getMessage());\n\n } catch (Exception $e) {\n $this->response->unavailable($e->getMessage());\n }\n } else {\n $this->response->badRequest();\n }\n }", "protected function process()\n {}", "public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }", "protected function forwardToReferringRequest() {}", "public function call()\n {\n $this->dispatchRequest($this['request'], $this['response']);\n }", "public function prepareRequest()\n {\n }", "public function run(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }", "public function preExecute()\n {\n // store current URI incase we need to be redirected back to this page\n $request = $this->getRequest();\n if($request->getPathInfo() != '/getEbayResults')\n {\n $this->getUser()->setAttribute('lastPageUri', $request->getPathInfo());\n }\n }", "public function onParseRequest()\r\n\t{\r\n\t\tif(!defined('REST_REQUEST'))\r\n\t\t\t$this->registerRoutes();\r\n\t}", "public function generateRequests()\n {\n if ($this->ready) {\n foreach ($this->data_requests as $uuid => $request) {\n $request->setFormattedURL($this->endpoint->url);\n }\n \n if (!empty($this->data_requests)) {\n $this->has_requests = true;\n }\n }\n }", "public function preDispatch() {\n\t\t\n\t\t}", "protected function process()\n {\n // Assign raw URI\n $uri = $this->getRequest()->getRequestUri();\n $this->view()->assign('uri', $uri);\n\n // Assign all route params\n $params = $this->params()->fromRoute();\n $this->view()->assign('params', $params);\n\n // Specify template,\n // otherwise template will be set up as {controller}-{action}\n $this->view()->setTemplate('demo-route');\n\n // Assign route list to template\n $this->loadRoutes();\n }", "public function doRequests();", "public function handleRequest(Zend_Controller_Request_Http $request)\n {\n \n }", "public function run()\n\t{\n\t\t//\n\t}", "protected function initRequest()\n {\n $context = new RequestContext();\n $context->fromRequest(self::$request);\n $matcher = new UrlMatcher($this->routCollection, $context);\n\n try {\n $attributes = $matcher->match(self::$request->getPathInfo());\n $response = $this->callController($attributes);\n } catch (ResourceNotFoundException $e) {\n $response = new Response('Not Found', 404);\n } catch (Exception $e) {\n $response = new Response('An error occurred', 500);\n }\n\n $response->send();\n }", "private function processRequest()\n\t{\n\t\t\n\t\t$request = NEnvironment::getService('httpRequest');\n\t\t\n\t\tif ($request->isPost() && $request->isAjax() && $request->getHeader('x-callback-client')) { \n\t\t\t\n\t\t\t$data = json_decode(file_get_contents('php://input'), TRUE);\n\t\t\tif (count($data) > 0) {\n\t\t\t\tforeach ($data as $key => $value) {\n\t\t\t\t\tif (isset($this->items[$key]) && isset($this->items[$key]['callback']) && $value === TRUE) {\n\t\t\t\t\t\t$this->items[$key]['callback']->invokeArgs($this->items[$key]['args']);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdie(json_encode(array('status' => \"OK\")));\n\t\t}\n\t\t\n\t}", "public function preSend()\n {\n }", "function handleRequest (&$request, &$context) {\n\n\t\t/* cycle through our process callback queue. using each() vs.\n\t\t * foreach, etc. so we may add elements to the callback array\n\t\t * later. probably primarily used for conditional callbacks. */\n\t\treset ($this->_processCallbacks);\n\t\twhile ($c = each ($this->_processCallbacks)) {\n\n\t\t\t// test for a successful view dispatch\n\t\t\tif ($this->_processProcess ($this->_processCallbacks[$c['key']],\n\t\t\t $request,\n\t\t\t $context))\n\t\t\t\treturn;\n\t\t}\n\n\t\t// if no view has been found yet attempt our default\n\t\tif ($this->defaultViewExists ())\n\t\t\t$this->renderDefaultView ($request, $context);\n\t}", "public function beginRequest()\n {\n Yii::app()->name = Yii::app()->settings->get('common', 'site_name');\n Yii::app()->language = Yii::app()->settings->get('common', 'language');\n }", "public function initRequest() {\n\t\tdate_default_timezone_set(timezone_name_from_abbr(\"\",$this->timezone_offset*60,0));\n#DEV\n\t\t$done = array();\n\t\tforeach ($this->components as $c) $this->initRequestForComponent($c, $done);\n#END\n#PROD\n#foreach (self::getOrderedComponentsNames() as $c) $this->components[$c]->initRequest();\n#END\n\t}", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n\n // execute/disptach all routes relates to current request\n if ( isset($this->router) && $this->router instanceof Horus_Router )\n {\n if($this->router->state == false)\n $this->e404();\n else\n $this->output .= $this->router->output;\n }\n\n // trigger after router exec events\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n\n // trigger before output events\n $this->trigger('horus.output.before', array($this));\n\n // trigger output filters\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n\n // only send output if not HEAD request\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') || (print $this->output);\n\n // trigger after output events\n $this->trigger('horus.output.after', array($this));\n\n // end\n @ob_end_flush(); exit;\n }", "function ServeRequest() \n\t\t{\n\t\t\t//Startet den WebDAV Server und verarbeitet die Anfrage\n\t\t parent::ServeRequest();\n\t\t\t\n\t\t\t//Temp Dateien löschen (die bei GET entstanden sind)\n\t\t\tforeach ($this->tmp_files as $key => $value) {\n\t\t\t\tunlink($value);\n\t\t\t}\n\t\t}", "protected function init() {\n switch ($this->requestType) {\n case 'get':\n $this->getData();\n break;\n\t\t\t\t\n\t\t\tcase 'sendTesteEmail':\n $this->sendTesteEmail();\n break;\n\t\t\t\t\n\t\t\tcase 'sendCreatedIndicationEmail':\n $this->sendCreatedIndicationEmail();\n break;\n }\n }", "protected function chunked()\n {\n }", "abstract public function request();", "public function requestAction()\n {\n }", "protected function getRequest() {}", "public function run()\n {\n }", "public function request_manager( )\n\t{\n\t\t$last_request = $this->php_session->get('last_request');\n\t\t//5 second interval\n\t\tif( $last_request+5 >= time() )\n\t\t{\n\t\t\t$req_count = $this->php_session->get('request_count');\n\t\t\t$req_count += 1;\n\t\t\t$this->php_session->set('request_count' , $req_count);\n\t\t\tif( $req_count >= 20 )\n\t\t\t\t$this->error('Too many HTTP requests from your session.');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->php_session->set('request_count' , 0 );\n\t\t}\n\t\t$this->php_session->set('last_request' , time( ) );\n\t\t\t\n\t}", "public function preDispatch()\n\t{\n\n\t\t\n\t\t\n\t}", "public function setRequestData()\n {\n $this->setHeaderInformation();\n }", "protected function initiateSubRequest() {}", "protected function start(){\n \tLynx_Request::parse();\n }", "public function rewind()\n {\n reset($this->requests);\n }", "public function run()\n {\n //\n $this->grabData();\n }", "protected function get_request_counts()\n {\n }", "function handleGETRequest() {\n if (connectToDB()) {\n if (array_key_exists('countTuples', $_GET)) {\n handleCountRequest();\n }\n\n disconnectFromDB();\n }\n }", "protected function doGet()\n {\n }", "protected function afterResponse()\n {\n }", "private function setRequest() {\n // Create request object\n $this->request = Request::createFromGlobals();\n // Check caching and exit if so\n // - create a dummy response for possible 304\n $response = new Response();\n $seconds = Config::get()->pagecachetime;\n $response->setLastModified(new DateTime('-' . $seconds . ' seconds'));\n if ($response->isNotModified($this->getRequest())) {\n $response\n ->setSharedMaxAge($seconds)\n ->send();\n exit();\n }\n // Add better json request support\n // check request Content-Type\n $ctCheck = 0 === strpos(\n $this->request->headers->get('CONTENT_TYPE')\n , 'application/json'\n );\n // check request Method\n $methodCheck = in_array(\n strtoupper($this->request->server->get('REQUEST_METHOD', 'GET'))\n , array('PUT', 'DELETE', 'POST')\n );\n if ($ctCheck && $methodCheck) {\n $params = (array) json_decode($this->request->getContent());\n $this->request->request = new ParameterBag($params);\n }\n }", "public function onRun()\n {\n $this->prepareVars();\n\n // Exceptions\n $this->populateFilters();\n\n $this->tags = $this->listTags();\n }", "public function init() {\n $this->uri = ''; //En un futuro esto tomara pararemetros q vengan de GET\n session_start();\n //$this->generateFakeData();\n $this->validatePost();\n $this->requireView(); \n }", "protected function before_filter() {\n\t}", "public function run(): void\n {\n $requestBody = $this->getConfig()->getInputAdapter()::getParsedBody();\n $request = ServerRequestFactory::fromGlobals(\n $_SERVER,\n $_GET,\n $requestBody,\n $_COOKIE,\n $_FILES\n );\n\n $queue = [];\n\n $queue[] = new \\Middlewares\\Emitter();\n $queue[] = new ErrorHandler([new JsonFormatter()]);\n $queue[] = (new \\Middlewares\\PhpSession())->name('VENUSSESSID')\n ->regenerateId(60); // Prevent session fixation attacks\n\n $queue[] = (new \\Middlewares\\FastRoute(\n $this->getConfig()->getDispatcher()\n ))->attribute('handler');\n\n $queue = array_merge($queue, $this->getConfig()->getMiddlewares());\n\n // Use router access permission check\n if ($this->getConfig()->usePermission()) {\n $queue[] = (new Permission(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n }\n\n $queue[] = (new RequestHandler(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n\n $dispatcher = new Dispatcher($queue);\n $dispatcher->dispatch($request);\n }", "public function request() {\n //sent to poster \n }", "public function run()\n {\n // dispatch all routes [between events]\n $this->trigger('horus.dispatch.before');\n if(($o = $this->router->exec()) !== false) echo $o;\n else $this->e404();\n $this->trigger('horus.dispatch.after');\n\n // get the output\n // prepare then only send if the request is not head\n $this->output .= ob_get_clean();\n $this->trigger('horus.output.before', array($this));\n $this->output = $this->trigger('horus.output.filter', $this->output, $this->output);\n (strtoupper($_SERVER['REQUEST_METHOD']) == 'HEAD') or print $this->output;\n $this->trigger('horus.output.after', array($this));\n\n // end\n ob_get_level() < 1 or ob_end_flush(); exit;\n }", "protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }", "public function onRequest() {\n $whoops = $this->getWhoops();\n $whoops->register();\n\n // Ensure that Drupal registers the shutdown function.\n ErrorHandler::register([$whoops, Whoops::ERROR_HANDLER]);\n ExceptionHandler::register([$whoops, Whoops::EXCEPTION_HANDLER]);\n drupal_register_shutdown_function([$whoops, Whoops::SHUTDOWN_HANDLER]);\n }", "public function run()\n\t{\n\t\t$_controller = $this->getController();\n\t\t\n\t\tif ( ! ( $_controller instanceof IXLRest ) )\n\t\t{\n\t\t\t$_controller->missingAction( $this->getId() );\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//\tCall the controllers dispatch method...\n\t\t$_controller->dispatchRequest( $this );\n\t}", "function parse_request(){\n\t\tparent::parse_request();\n\n\t\tif (isset($_GET[\"posStart\"]) && isset($_GET[\"count\"]))\n\t\t\t$this->request->set_limit($_GET[\"posStart\"],$_GET[\"count\"]);\n\t}", "public function process(ServerRequestInterface $request)\n {\n }", "public function preDispatch( Zend_Controller_Request_Abstract $request )\n {\n\n }", "public function run(): void\n {\n $this->currentRoute = null;\n\n if (array_key_exists($currentRoute = $this->resolveRouterUri($this->currentUri), $this->routes[\"REDIRECT\"])) {\n $route = $this->routes[\"REDIRECT\"][$currentRoute];\n $redirectRoute = $this->getByName($route[\"redirect\"]);\n\n $this->redirectRoute(\n [$redirectRoute, $route],\n $route[\"permanent\"]\n );\n }\n\n $this->resolveRequestMethod();\n\n foreach ($this->routes[$this->requestMethod] as $route) {\n if (preg_match(\"~^\" . $route->getRoute() . \"$~\", $this->currentUri)) {\n $this->currentRoute = $route;\n }\n }\n\n $this->dispatchRoute();\n }" ]
[ "0.70086694", "0.69183654", "0.6773295", "0.65533745", "0.64412045", "0.64387304", "0.64251125", "0.6414657", "0.6412289", "0.63962525", "0.6367067", "0.6312253", "0.63111", "0.6234642", "0.62210476", "0.61970675", "0.6164526", "0.6131229", "0.6129645", "0.6107129", "0.60735184", "0.6067577", "0.6067577", "0.6067577", "0.6067577", "0.60608554", "0.6051741", "0.604484", "0.6015928", "0.60111403", "0.599255", "0.5990605", "0.5990605", "0.5990605", "0.59734714", "0.59734714", "0.59705335", "0.59406286", "0.59358245", "0.59251845", "0.59092236", "0.5900201", "0.588975", "0.588615", "0.58750325", "0.58748096", "0.5866914", "0.5854181", "0.58500594", "0.58442783", "0.5814077", "0.58074266", "0.5778855", "0.5775311", "0.5766164", "0.5760238", "0.5747329", "0.57442844", "0.57263035", "0.5714019", "0.5712203", "0.5710544", "0.5681202", "0.5677268", "0.56739914", "0.5670558", "0.56580085", "0.56476355", "0.5643243", "0.5639115", "0.56332606", "0.56293595", "0.5618758", "0.56172544", "0.5614394", "0.5606925", "0.5604972", "0.560217", "0.5598437", "0.5590365", "0.5581205", "0.5574883", "0.55705816", "0.5564968", "0.5563271", "0.5561288", "0.55512375", "0.55422896", "0.55420464", "0.5534097", "0.5528679", "0.5525374", "0.55241215", "0.55217355", "0.55169785", "0.55158705", "0.5512563", "0.551228", "0.550747", "0.549399", "0.5492061" ]
0.0
-1
Data cannot contain keys like idColumnName, levelColumnName, ...
private function cleanData(array $data) { $options = $this->getOptions(); $disallowedDataKeys = array( $options->getIdColumnName(), $options->getLeftColumnName(), $options->getRightColumnName(), $options->getLevelColumnName(), $options->getParentIdColumnName(), ); return array_diff_key($data, array_flip($disallowedDataKeys)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function changeDataKeysId2Name($data){\n\t\t/*\n\t\t$res = array();\n\t\tforeach ($this->OnlyById as $aid=>$attribute) {\n\t\t\tif(!isset($data[$aid])) continue;\n\t\t\t$res[$attribute['name']] = $data[$aid];\n\t\t}\n\t\treturn $res;\n\t\t*/\n\t\t\n\t\t$res = array();\n\t\tforeach ($data as $aid=>$val){\n\t\t\tif(isset($this->OnlyById[$aid])){\n\t\t\t\t$res[$this->OnlyById[$aid]->fieldName] = $val;\n\t\t\t} else {\n\t\t\t\t$res[$aid] = $val;\n\t\t\t}\n\t\t}\n\t\treturn $res;\n\t}", "abstract public static function columnData();", "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);\n\t}", "public function getDataWithTypeLevelfield() {}", "private function _readSubTableData() {}", "protected function load_col_info()\n {\n }", "private function prepare_data(){\r\n\t\t\t$this->data_table['cols'] = array();\r\n\t\t\t\r\n\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\tswitch($column_info['type']){\r\n\t\t\t\t\tcase 'number':\r\n\t\t\t\t\tcase 'float':\r\n\t\t\t\t\tcase 'currency':\r\n\t\t\t\t\t\t$column_info['type'] = 'number';\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t$column_info['type'] = 'string';\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['cols'][] = array_merge(array('id' => $column_id), $column_info);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$rows_count = sizeof(reset($this->data));\r\n\t\t\t\r\n\t\t\tfor($i = 0; $i < $rows_count; $i++){\r\n\t\t\t\t$c = array();\r\n\t\t\t\t\r\n\t\t\t\tforeach($this->columns as $column_id => $column_info){\r\n\t\t\t\t\t$value = $this->data[$column_id][$i];\r\n\t\t\t\t\t$c[] = array('v' => $value);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$this->data_table['rows'][] = array('c' => $c);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->data_table = json_encode($this->data_table);\r\n\t\t}", "private function getFieldsOnTable()\n{\n\n $returnArray=array(); \n foreach ($this->tableStructure as $ind => $fieldArray) { \n $returnArray[$fieldArray['columnName']]=$fieldArray['columnName'];\n }\n \n return $returnArray; \n}", "private function populateDummyTable() {}", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'level' => 'level',\n 'name' => 'name',\n 'sort' => 'sort',\n 'type' => 'type',\n 'value' => 'value',\n 'token' => 'token',\n 'pid' => 'pid'\n ];\n }", "public function getDataWithTypeLeveluid() {}", "public function setKeyFromData()\n\t{\n\t\t$key = isset($this->data[$this->primaryKey])\n\t\t\t? $this->data[$this->primaryKey]\n\t\t\t: null;\n\n\t\tif ($key !== null && !is_numeric($key)) {\n\t\t\t$key = Hash::decode($key);\n\t\t}\n\n\t\t$this->key = $key;\n\t}", "abstract public function loadColumns();", "protected function _readTable() {}", "protected function _readTable() {}", "public static function prepareData($tableName, $data)\n\t{\n\t\tif(is_string($data))\n\t\t{\n\t\t\t$data = static::decode($data);\n\t\t}\n\n\t\tunset($data['_children']);\n\n\t\t$driver = static::getDataProvider($tableName);\n\n\t\t// remove not existing properties\n\t\tforeach(array_keys($data) as $name)\n\t\t{\n\t\t\tif(!$driver->fieldExists($name))\n\t\t\t{\n\t\t\t\tunset($data[$name]);\n\t\t\t}\n\t\t}\n\n\t\treturn $data;\n\t}", "public function testSaveDataTableNoPrimaryKeyColumn() {\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testGetDataTable 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testGetDataTable 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testGetDataTable 3']\r\n ];\r\n\t\t// Create datatable and store it into the database\r\n\t\t$datatable = new avorium_core_data_DataTable(3, 3);\r\n\t\t$datatable->setHeader(0, 'BOOLEAN_VALUE');\r\n\t\t$datatable->setHeader(1, 'INT_VALUE');\r\n\t\t$datatable->setHeader(2, 'STRING_VALUE');\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$datatable->setCellValue($i, 0, $records[$i]['bool']);\r\n\t\t\t$datatable->setCellValue($i, 1, $records[$i]['int']);\r\n\t\t\t$datatable->setCellValue($i, 2, $records[$i]['string']);\r\n\t\t}\r\n $this->setExpectedException('Exception', 'Expected primary key column UUID not found.');\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t}", "function _getFieldData($fieldName){\n\n\t\t$SQLquery = \"SELECT `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableKey'].\"` AS pkey\".\n\t\t\t\t\t\", `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableValue'].\"` AS value \".\n\t\t\t\t\t\"FROM `\"\n\t\t\t\t\t.$this->normalized[$fieldName]['tableName'].\"` \".\n\t\t\t\t\t\"WHERE \"\n\t\t\t\t\t.$this->normalized[$fieldName]['whereClause'].\" \".\n\t\t\t\t\t\"ORDER BY \"\n\t\t\t\t\t.$this->normalized[$fieldName]['orderBy'];\n\n\t\t$retrievedData = $this->db->execute($SQLquery);\n\t\tif($this->db->error != \"\"){\n\t\t\techo \"ERROR: Unable to retrieve normalized data from '\".$this->normalized[$fieldName]['tableName'].\"'\".($this->db_errors?\"<br/>\".$this->db->error:\"\");\n\t\t\treturn false;\n\t\t}\n\t\t$this->normalized[$fieldName]['pairs'] = $numPairs;\n\t\t$i = 0;\n\t\tforeach($retrievedData as $set){\n\n\t\t\t#$set = $retrievedData;\n\t\t\t$this->normalized[$fieldName]['keys'][$i] = $set['pkey'];\n\t\t\t$this->normalized[$fieldName]['values'][$i] = $set['value'];\n\t\t\t$i++;\n\t\t}\n\n\t}", "public function getDataWithTypeLevel() {}", "abstract protected function columns();", "abstract protected function mapData($data, $tableObject);", "public function columnMaps();", "protected function checkStandardDataTable()\n {\n Piwik::checkObjectTypeIs($this->dataTable, array('\\Piwik\\DataTable'));\n }", "public function testSaveDataTableColumnNamesNotMatching() {\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testGetDataTable 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testGetDataTable 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testGetDataTable 3']\r\n ];\r\n\t\t$datatable = new avorium_core_data_DataTable(3, 4);\r\n\t\t$datatable->setHeader(0, 'UUID');\r\n\t\t$datatable->setHeader(1, 'INVALID_COLUMN_NAME');\r\n\t\t$datatable->setHeader(2, 'INT_VALUE');\r\n\t\t$datatable->setHeader(3, 'STRING_VALUE');\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$datatable->setCellValue($i, 0, $records[$i]['UUID']);\r\n\t\t\t$datatable->setCellValue($i, 1, $records[$i]['bool']);\r\n\t\t\t$datatable->setCellValue($i, 2, $records[$i]['int']);\r\n\t\t\t$datatable->setCellValue($i, 3, $records[$i]['string']);\r\n\t\t}\r\n\t\t// Save giving an invalid column name\r\n $this->setExpectedException('Exception');\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t}", "protected abstract function retrieveNonBaseFields(Row $row);", "public function load_data($data) {\n if(!is_array($data) || sizeof($data) <= 0)\n return;\n\n $columns_info = array();\n\n foreach($this->get_columns_information() as $column) \n $columns_info[] = $column['column_name'];\n\n foreach($data as $column => $value)\n if(in_array($column, $columns_info))\n $this->$column = $this->{'_' . $column} = $value;\n\n $this->new_register = false;\n }", "private function load_columns_information() {\n $query = \"SELECT ordinal_position,\n column_name,\n data_type,\n is_nullable::boolean::integer\n FROM information_schema.columns\n WHERE table_schema = 'public'\n AND table_name = '{$this->get_table_name()}';\";\n $this->columns_information = DB::fetch_all($query);\n\n // Cria os campos da tabela no objeto corrente\n foreach($this->columns_information as $column) {\n $this->$column['column_name'] = null;\n $this->{'_' . $column['column_name']} = null;\n }\n }", "public function columnMap()\n {\n //the values their names in the application\n return array(\n 'id' => 'code' ,\n 'the_name' => 'theName' ,\n 'the_type' => 'theType' ,\n 'the_year' => 'theYear'\n );\n }", "protected function loadRow() {}", "function setFields(&$data)\n {\n if (empty($data)) {\n return false;\n }\n $row = $data[key($data)];\n $columns = array();\n $models = array_keys($row);\n foreach ($models as $model) {\n $fields = Set::extract($row, \"/$model\");\n // Fields provided without model, add default Model\n if (!is_array($fields[0])) {\n $columns[] = sprintf('%s.%s', $this->defaultModel, $model);\n continue;\n }\n $fields = array_keys($fields[0][$model]);\n foreach ($fields as $field) {\n $columns[] = sprintf('%s.%s', $model, $field);\n }\n }\n $this->fields = $columns;\n\n return true;\n }", "protected function initTableFields()\r\n {\r\n $this->addField(self::$ID, STRING, \"\");\r\n $this->addField(self::$USER_ID, STRING, \"\");\r\n $this->addField(self::$LOGIN_TIME, STRING, date('Y-m-d H:i:s'));\r\n $this->addField(self::$LOGOUT_TIME, STRING, date('Y-m-d H:i:s'));\r\n $this->addField(self::$STATUS, INTEGER, USER_ACCESS_TOKEN_STATUS_INVALID);\r\n $this->addField(self::$LONGITUDE, INTEGER, 0);\r\n $this->addField(self::$LATITUDE, INTEGER, 0);\r\n $this->addField(self::$CLIENT_IP, STRING, \"\");\r\n }", "function metaCourse()\n{\n return array(\n // Every column in the mapped table\n array(\n 'Id', 'Name', 'CourseId'\n ),\n\n // Every column part of the primary key\n array(\n 'Id'\n ),\n\n // Every column and their data types\n array(\n 'Id' => \"Auto_Increment\",\n 'Name' => \"Varchar\",\n 'CourseId' => \"Varchar\"\n ),\n\n // The columns that have numeric data types\n array(\n 'Id'\n )\n\n\n );\n}", "private function addData ()\n {\n foreach ($this->data as $key=>$value)\n {\n $keys[] = $key;\n $values[] = $value;\n \n }\n $cols = implode($keys, \",\");\n $dataValues = \"'\".implode($values, \"','\").\"'\";\n $query = \"INSERT INTO `$this->tablename`($cols)VALUES($dataValues);\";\n \n $conn = $this->DB->conn;\n \n $sql = $conn->query($query);\n \n if($sql == TRUE) return TRUE;\n else \n {\n \n throw new Exception(\"Error : Data Not inserted to database :( \".$conn->error);\n \n }\n \n }", "private function _getColDataIndex($cols,$filterData) {\n $arr = array();\n foreach ($cols as $col) {\n foreach ($filterData as $key => $value) {\n if($key == $col['mapped']) {\n $dataIndex = $col['dataIndex'];\n $jsonCol = array('property' => $dataIndex,'value' => $value);\n $arr[] = $jsonCol;\n }\n }\n }\n return json_encode($arr); \n }", "public function getDataWithTypeFieldAndFieldIsMultiDimensional() {}", "protected function loadColumns(){\n\t\t\t$this->columns = array_diff(\n\t\t\t\tarray_keys(get_class_vars($this->class)),\n\t\t\t\t$this->getIgnoreAttributes()\n\t\t\t);\n\t\t}", "abstract public static function get_column_key(): string;", "function setRowDatas(&$row) {\r\n\t\t/* for optimization reason, do not save row. save just needed parameters */\r\n\r\n\t\t//$this->_specific_data\t= isset($row->specific) ? $row->specific : '';\r\n\t}", "public function treatEntity() {\n foreach ($this->entity as $columnName => &$column) {\n if (($column['contraint'] != 'pk' || $column['is_null'] == 'YES') && empty($column['value'])) {\n $column['value'] = 'NULL';\n } else if (!empty($column['value'])) {\n\n if ($column['type'] == 'numeric') {\n $column['value'] = str_replace('.', '', $column['value']);\n $column['value'] = (float) str_replace(',', '.', $column['value']);\n }\n //\n if ($column['type'] == 'date') {\n $dateExplode = explode(\"/\", $column['value']);\n $column['value'] = \"'\" . implode(\"-\", array_reverse($dateExplode)) . \"'\";\n } elseif ($column['type'] == 'timestamp without time zone' && strpos($column['value'], '/')) {\n $column['value'] = addslashes($column['value']);\n if (strpos($column['value'], ':')) {\n $dateExplode = explode(\" \", $column['value']);\n $dateExplode[0] = explode(\"/\", $dateExplode[0]);\n $column['value'] = \"'\" . implode(\"-\", array_reverse($dateExplode[0])) . ' ' . $dateExplode[1] . \"'\";\n } else {\n $dateExplode = explode(\"/\", $column['value']);\n $column['value'] = \"'\" . implode(\"-\", array_reverse($dateExplode)) . \"'\";\n }\n } else {\n $column['value'] = addslashes($column['value']);\n $column['value'] = \"'{$column['value']}'\";\n }\n }\n }\n }", "function upload_columns($columns) {\n\tunset($columns['parent']);\n\t$columns['better_parent'] = \"Parent\";\n\treturn $columns;\n}", "public function columnMap(){\n\t\treturn array(\n\t\t\t'id'=> 'id',\n\t\t\t'name'=> 'name',\n\t\t\t'content'=> 'content' \n\t\t);\n\t}", "private function _sanitizeData($table, $data, $id = null) \n\t{\t\t\n\t\t// remove the id from the data\n\t\t! $id || $data = array_diff_key($data, $id);\n\n\t\t// keep only the fields that actuallty exist in the database\n\t\treturn array_intersect_key($data, array_flip($this->_list_fields($table)));\n\t}", "public function deserialize($param)\n {\n if ($param === null) {\n return;\n }\n if (array_key_exists(\"TableName\",$param) and $param[\"TableName\"] !== null) {\n $this->TableName = $param[\"TableName\"];\n }\n\n if (array_key_exists(\"ParentId\",$param) and $param[\"ParentId\"] !== null) {\n $this->ParentId = $param[\"ParentId\"];\n }\n\n if (array_key_exists(\"MetastoreType\",$param) and $param[\"MetastoreType\"] !== null) {\n $this->MetastoreType = $param[\"MetastoreType\"];\n }\n\n if (array_key_exists(\"ParentSet\",$param) and $param[\"ParentSet\"] !== null) {\n $this->ParentSet = $param[\"ParentSet\"];\n }\n\n if (array_key_exists(\"ChildSet\",$param) and $param[\"ChildSet\"] !== null) {\n $this->ChildSet = $param[\"ChildSet\"];\n }\n\n if (array_key_exists(\"ColumnInfoSet\",$param) and $param[\"ColumnInfoSet\"] !== null) {\n $this->ColumnInfoSet = [];\n foreach ($param[\"ColumnInfoSet\"] as $key => $value){\n $obj = new SimpleColumnInfo();\n $obj->deserialize($value);\n array_push($this->ColumnInfoSet, $obj);\n }\n }\n }", "public function getDataWithTypeDb() {}", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'name' => 'name',\n 'type' => 'type',\n 'expression' => 'expression',\n 'description' => 'description',\n 'start_time' => 'start_time',\n 'end_time' => 'end_time',\n 'is_close' => 'is_close',\n 'group' => 'group',\n 'prom_img' => 'prom_img',\n 'goods_ids' => 'goods_ids'\n ];\n }", "private function createDummyTable() {}", "static public function getDataMap()\n {\n return array(\n 'fields' => array(\n 'rev' => array(\n 'type' => 'integer',\n ),\n 'cover' => array(\n 'type' => 'string',\n ),\n 'wiki_id' => array(\n 'type' => 'integer',\n ),\n 'title' => array(\n 'type' => 'string',\n ),\n 'html_cache' => array(\n 'type' => 'string',\n ),\n 'content' => array(\n 'type' => 'string',\n ),\n 'tags' => array(\n 'type' => 'raw',\n ),\n 'comment_tags' => array(\n 'type' => 'raw',\n ),\n 'model' => array(\n 'type' => 'string',\n ),\n 'has_video' => array(\n 'type' => 'integer',\n ),\n 'like_num' => array(\n 'type' => 'integer',\n ),\n 'dislike_num' => array(\n 'type' => 'integer',\n ),\n 'watched_num' => array(\n 'type' => 'integer',\n ),\n 'admin_id' => array(\n 'type' => 'integer',\n ),\n 'do_date' => array(\n 'type' => 'date',\n ),\n 'source' => array(\n 'type' => 'raw',\n ),\n 'tvsou_id' => array(\n 'type' => 'string',\n ),\n 'first_letter' => array(\n 'type' => 'string',\n ),\n 'douban_id' => array(\n 'type' => 'string',\n ),\n 'verify' => array(\n 'type' => 'integer',\n ),\n 'created_at' => array(\n 'type' => 'date',\n ),\n 'updated_at' => array(\n 'type' => 'date',\n ),\n ),\n 'references' => array(\n\n ),\n 'embeddeds' => array(\n\n ),\n 'relations' => array(\n\n ),\n );\n }", "public function hasRowKey(){\n return $this->_has(2);\n }", "public function hasRowKey(){\n return $this->_has(2);\n }", "public function hasRowKey(){\n return $this->_has(2);\n }", "public function hasRowKey(){\n return $this->_has(2);\n }", "abstract protected function getIndexTableFields();", "public function validate_and_convert_id($insert_data)\r\n {\r\n // Perform type cast to ensure it is array\r\n //$insert_data = (array) $insert_data;\r\n \r\n if($this->is_error === true){return;}\r\n \r\n // Convert name to id name\r\n $insert_data = $this->_convert_id($insert_data);\r\n \r\n $new_dataset = array();\r\n $data_hit = false;\r\n \r\n if($this->is_error === true){return;}\r\n\r\n // Validate the column and transfer data\r\n foreach ($this->column_list() as $checker)\r\n {\r\n $column = $checker[\"name\"];\r\n\r\n // @todo - strict check, as currently as the key exist it allow it to be pass\r\n if(array_key_exists($column, $insert_data))\r\n {\r\n $new_dataset[$column] = $insert_data[$column];\r\n $data_hit = true;\r\n }\r\n elseif ($checker[\"must_have\"] === true)\r\n {\r\n $display_list = json_encode($insert_data);\r\n $this->set_error(\r\n \"MBE-\".$this->model_code.\"-VACI-1\", \r\n \"Internal error, please contact admin\", \r\n \"Missing $column in $display_list for model \".$this->model_name);\r\n }\r\n }\r\n \r\n return $new_dataset;\r\n }", "public function getPageIdColumnName() {}", "function __Construct(array $columnData ){\r\n\t\tif(array_key_exists(\"TABLE_CATALOG\",$columnData)){\r\n\t\t\t$this->tableCatalog = $columnData[\"TABLE_CATALOG\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"TABLE_SCHEMA\",$columnData)){\r\n\t\t\t$this->tableSchema = $columnData[\"TABLE_SCHEMA\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"TABLE_NAME\",$columnData)){\r\n\t\t\t$this->tableName = $columnData[\"TABLE_NAME\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLUMN_NAME\",$columnData)){\r\n\t\t\t$this->columnName = $columnData[\"COLUMN_NAME\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"ORDINAL_POSITION\",$columnData)){\r\n\t\t\t$this->ordinalPosition = intval($columnData[\"ORDINAL_POSITION\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLUMN_DEFAULT\",$columnData)){\r\n\t\t\t$this->columnDefault = $columnData[\"COLUMN_DEFAULT\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"IS_NULLABLE\",$columnData)){\r\n\t\t\t$this->isNullable = $columnData[\"IS_NULLABLE\"] != \"NO\";\r\n\t\t}\r\n\t\tif(array_key_exists(\"DATA_TYPE\",$columnData)){\r\n\t\t\t$this->dataType = $columnData[\"DATA_TYPE\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"CHARACTER_MAXIMUM_LENGTH\",$columnData)){\r\n\t\t\t$this->charMaxLength = intval($columnData[\"CHARACTER_MAXIMUM_LENGTH\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"CHARACTER_OCTET_LENGTH\",$columnData)){\r\n\t\t\t$this->charOctetLenght = intval($columnData[\"CHARACTER_OCTET_LENGTH\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"NUMERIC_PRECISION\",$columnData)){\r\n\t\t\t$this->numericPrecision = intval($columnData[\"NUMERIC_PRECISION\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"NUMERIC_SCALE\",$columnData)){\r\n\t\t\t$this->numericScale = intval($columnData[\"NUMERIC_SCALE\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"DATETIME_PRECISION\",$columnData)){\r\n\t\t\t$this->datetimePrecision = intval($columnData[\"DATETIME_PRECISION\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"CHARACTER_SET_NAME\",$columnData)){\r\n\t\t\t$this->charSetName = $columnData[\"CHARACTER_SET_NAME\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLLATION_NAME\",$columnData)){\r\n\t\t\t$this->collationName = $columnData[\"COLLATION_NAME\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLUMN_TYPE\",$columnData)){\r\n\t\t\t$this->columnType = $columnData[\"COLUMN_TYPE\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLUMN_KEY\",$columnData)){\r\n\t\t\t$this->columnKey = $columnData[\"COLUMN_KEY\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"EXTRA\",$columnData)){\r\n\t\t\t$this->extra = $columnData[\"EXTRA\"];\r\n\t\t}\r\n\t\tif(array_key_exists(\"PRIVILEGES\",$columnData)){\r\n\t\t\t$this->privileges = explode(',', $columnData[\"PRIVILEGES\"]);\r\n\t\t}\r\n\t\tif(array_key_exists(\"COLUMN_COMMENT\",$columnData)){\r\n\t\t\t$this->columnComment = $columnData[\"COLUMN_COMMENT\"];\r\n\t\t}\r\n\t}", "function sqlingData(array $data)\n{\n\n $keys = \"(\" . implode(\",\", array_keys($data)) . \")\";\n $values = \"('\" . implode(\"','\", array_values($data)) . \"')\";\n\n return $keys . 'Values' . $values;\n}", "private function _getDataProviderIncorrect5()\n {\n return [\n [\n 'name' => 'Name',\n 'language' => 1,\n 'contentType' => 1,\n 'contentId' => 999,\n ],\n [],\n null,\n null,\n self::EXCEPTION_MODEL\n ];\n }", "public function parseSQLDataProvider() {}", "function RoomstatRecordLoad( &$data ) {\n\t\t$table = BIT_DB_PREFIX.\"task_roomstat\";\n\t\t\n\t\t$pDataHash['data_store']['office'] = $data[0];\n\t\t$pDataHash['data_store']['terminal'] = $data[1];\n\t\t$pDataHash['data_store']['title'] = $data[2];\n\t\tif ( $data[3] == '[null]' )\n\t\t\t$pDataHash['data_store']['head'] = '';\n\t\telse\n\t\t\t$pDataHash['data_store']['head'] = $data[3];\n\t\tif ( $data[4] == '[null]' )\n\t\t\t$pDataHash['data_store']['announce'] = '';\n\t\telse\n\t\t\t$pDataHash['data_store']['announce'] = $data[4];\n\t\t$pDataHash['data_store']['ter_type'] = $data[5];\n\t\t$pDataHash['data_store']['led'] = $data[6];\n\t\tif ( $data[7] != '[null]' ) $pDataHash['data_store']['ledhead'] = $data[7];\n\t\tif ( $data[8] != '[null]' ) $pDataHash['data_store']['beacon'] = $data[8];\n\t\tif ( $data[9] != '[null]' ) $pDataHash['data_store']['camera'] = $data[9];\n\t\tif ( $data[10] != '[null]' ) $pDataHash['data_store']['serving'] = $data[10];\n\t\tif ( $data[11] != '[null]' ) $pDataHash['data_store']['act1'] = $data[11];\n\t\tif ( $data[12] != '[null]' ) $pDataHash['data_store']['fro_'] = $data[12];\n\t\tif ( $data[13] != '[null]' ) $pDataHash['data_store']['alarm'] = $data[13];\n\t\tif ( $data[14] != '[null]' ) $pDataHash['data_store']['curmode'] = $data[14];\n\t\tif ( $data[15] != '[null]' ) $pDataHash['data_store']['x1'] = $data[15];\n\t\tif ( $data[16] != '[null]' ) $pDataHash['data_store']['x2'] = $data[16];\n\t\tif ( $data[17] != '[null]' ) $pDataHash['data_store']['x3'] = $data[17];\n\t\tif ( $data[18] != '[null]' ) $pDataHash['data_store']['x4'] = $data[18];\n\t\tif ( $data[19] != '[null]' ) $pDataHash['data_store']['x5'] = $data[19];\n\t\tif ( $data[20] != '[null]' ) $pDataHash['data_store']['x6'] = $data[20];\n\t\tif ( $data[21] != '[null]' ) $pDataHash['data_store']['x7'] = $data[21];\n\t\tif ( $data[22] != '[null]' ) $pDataHash['data_store']['x8'] = $data[22];\n\t\tif ( $data[23] != '[null]' ) $pDataHash['data_store']['x9'] = $data[23];\n\t\tif ( $data[24] != '[null]' ) $pDataHash['data_store']['x10'] = $data[24];\n\t\tif ( $data[25] != '[null]' ) $pDataHash['data_store']['status'] = $data[25];\n\t\tif ( $data[26] != '[null]' ) $pDataHash['data_store']['logon'] = $data[26];\n\t\tif ( $data[27] != '[null]' ) $pDataHash['data_store']['ter_location'] = $data[27];\n\t\tif ( $data[28] != '[null]' ) $pDataHash['data_store']['ticketprint'] = $data[28];\n\t\tif ( $data[29] != '[null]' ) $pDataHash['data_store']['reportprint'] = $data[29];\n\t\tif ( $data[30] != '[null]' ) $pDataHash['data_store']['booking'] = $data[30];\n\t\tif ( $data[31] != '[null]' ) $pDataHash['data_store']['book'] = $data[31];\n\t\t$result = $this->mDb->associateInsert( $table, $pDataHash['data_store'] );\n\t}", "private function _getDataProviderIncorrect1()\n {\n $textModel1 = TextModel::model()->save();\n\n return [\n [\n 'name' => ' Block name ',\n 'language' => ' 1 ',\n 'contentType' => ' 1 ',\n 'contentId' => ' ' . $textModel1->getId() . ' ',\n ],\n [\n 'name' => 'Block name',\n 'language' => 1,\n 'contentType' => 1,\n 'contentId' => $textModel1->getId(),\n ],\n [\n 'name' => ' New name ',\n 'language' => 2,\n 'contentType' => 2,\n ],\n [\n 'name' => 'New name',\n 'language' => 1,\n 'contentType' => 1,\n 'contentId' => $textModel1->getId(),\n ]\n ];\n }", "abstract public function prepareData();", "abstract public function getColsFields();", "protected function _getNonPrimaryKeyAttributes(){\n\t\treturn ActiveRecordMetaData::getNonPrimaryKeys($this->_source, $this->_schema);\n\t}", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'parent_id' => 'parentId',\n 'name' => 'name',\n 'order' => 'order',\n 'store_id' => 'storeId',\n 'user_id' => 'userId',\n 'url' => 'url',\n 'depth' => 'depth',\n 'created_at' => 'createdAt',\n 'updated_at' => 'updatedAt',\n 'deleted_at' => 'deletedAt',\n 'is_deleted' => 'isDeleted'\n ];\n }", "protected function importDatabaseData() {}", "public function testNoSpecificColumnNamesBaseDataObjectQuery() {\n\t\t$playerList = new DataList('DataObjectTest_Team');\n\t\t// Shouldn't be a left join in here.\n\t\t$this->assertEquals(0,\n\t\t\tpreg_match(\n\t\t\t\t$this->normaliseSQL(\n\t\t\t\t\t'/SELECT DISTINCT \"DataObjectTest_Team\".\"ID\" .* LEFT JOIN .* FROM \"DataObjectTest_Team\"/'\n\t\t\t\t),\n\t\t\t\t$this->normaliseSQL($playerList->sql($parameters))\n\t\t\t)\n\t\t);\n\t}", "private function _sanitize_data($data){\n\t\t// Remove fields which potentially can damage the tree structure\n\t\tif(is_array($data))\n\t\t{\n\t\t\tunset($data['lft']);\n\t\t\tunset($data['rgt']);\n\t\t}\n\t\telseif(is_object($data))\n\t\t{\n\t\t\tunset($data->lft);\n\t\t\tunset($data->rgt);\n\t\t}\n\n\t\tif(isset($data['type']))\n\t\t{\n\t\t\t$data['type'] = implode('|', $data['type']);\n\t\t}\n\n\t\t// ensure entry_id is set correctly for sql strict_mode\n\t\tif(isset($data['entry_id']) && $data['entry_id'] != '')\n\t\t{\n\t\t\t$data['entry_id'] = (int) $data['entry_id'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['entry_id'] = NULL;\n\t\t}\n\n\t\tunset($data['tree_id']);\n\t\tunset($data['is_root']);\n\t\tunset($data['parent_lft']);\n\t\treturn $data;\n\t}", "public function getData($key = null, $preTab = false)\n {\n\n if (is_string($key)) {\n if (array_key_exists($key, $this->data)) {\n return $this->data[$key];\n } else {\n return null;\n }\n } elseif ($key && is_array($key)) {\n\n $data = array ();\n if ($preTab) {\n if (is_string($preTab)) {\n foreach ($key as $name) {\n if (array_key_exists($name, $this->data)) {\n $data[$preTab.'_'.$name] = $this->data[$name];\n } else {\n $data[$preTab.'_'.$name] = null;\n }\n }\n } else {\n foreach ($key as $name) {\n if (array_key_exists($name, $this->data)) {\n $data[static::$table.'_'.$name] = $this->data[$name];\n } else {\n $data[static::$table.'_'.$name] = null;\n }\n }\n }\n } else {\n foreach ($key as $name) {\n if (array_key_exists($name, $this->data)) {\n $data[$name] = $this->data[$name];\n } else {\n $data[$name] = null;\n }\n }\n }\n\n return $data;\n } else {\n if (array_key_exists(Db::PK, $this->data))\n unset($this->data[Db::PK]);\n\n if ($preTab) {\n\n $data = array ();\n\n if (is_string($preTab)) {\n foreach ($this->data as $key => $value)\n $data[$preTab.'_'.$key] = $value;\n\n $data[$preTab.'_'.Db::PK] = $this->id;\n } else {\n foreach ($this->data as $key => $value)\n $data[static::$table.'_'.$key] = $value;\n\n $data[static::$table.'_'.Db::PK] = $this->id;\n }\n\n return $data;\n } else {\n return $this->data;\n }\n }\n\n }", "private static function genParentDbFieldTableTemplate() {\n return array(\n self::ID_KEY => new AccessLayerField(DataTypeName::UNSIGNED_INT),\n self::CREATED_KEY => new AccessLayerField(DataTypeName::TIMESTAMP),\n self::LAST_UPDATED_TIME_KEY => new AccessLayerField(DataTypeName::TIMESTAMP),\n );\n }", "protected function preprocessData() {}", "public function testGetDataTableDuplicateColumnNames() {\r\n\t\t// Create values via SQL\r\n $records = [\r\n ['UUID' => 'uuid1tRMR1', 'bool' => false, 'int' => 10, 'string' => 'testGetDataTable 1'],\r\n ['UUID' => 'uuid1tRMR2', 'bool' => true, 'int' => 20, 'string' => 'testGetDataTable 2'],\r\n ['UUID' => 'uuid1tRMR3', 'bool' => false, 'int' => 30, 'string' => 'testGetDataTable 3']\r\n ];\r\n // Write data to the database\r\n foreach ($records as $record) {\r\n $this->executeQuery('insert into POTEST (UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE) values (\\''.$record['UUID'].'\\','.($record['bool'] ? 1:0).','.$record['int'].', \\''.$record['string'].'\\')');\r\n }\r\n\t\t// Get value data table with STRING_VALUE named as UUID at the end. The UUID column must contain the content from STRING_VALUE\r\n\t\t// and STRING_VALUE must exist only once.\r\n\t\t$datatable = $this->getPersistenceAdapter()->getDataTable('select UUID, BOOLEAN_VALUE, INT_VALUE, STRING_VALUE, STRING_VALUE as UUID from POTEST');\r\n\t\t// Compare contents\r\n\t\t$headers = $datatable->getHeaders();\r\n\t\t$this->assertEquals(5, count($headers), 'Wrong header names count');\r\n\t\t$this->assertEquals('UUID', $headers[0], 'Column 0 has wrong header name');\r\n\t\t$this->assertEquals('BOOLEAN_VALUE', $headers[1], 'Column 1 has wrong header name');\r\n\t\t$this->assertEquals('INT_VALUE', $headers[2], 'Column 2 has wrong header name');\r\n\t\t$this->assertEquals('STRING_VALUE', $headers[3], 'Column 3 has wrong header name');\r\n\t\t$this->assertEquals('UUID', $headers[4], 'Column 4 has wrong header name');\r\n\t\t$datamatrix = $datatable->getDataMatrix();\r\n\t\t$this->assertEquals(3, count($datamatrix), 'Wrong row count');\r\n\t\tfor ($i = 0; $i < 3; $i++) {\r\n\t\t\t$this->assertEquals(5, count($datamatrix[$i]), 'Wrong column count in row '.$i);\r\n\t\t\t// The UUID column was overwritten by aliasing the string column in the statement\r\n\t\t\t$this->assertEquals(''.$records[$i]['UUID'], $datamatrix[$i][0], 'Cell content does not match in row '.$i.' in column 0');\r\n\t\t\t$this->assertEquals(''.($records[$i]['bool']?1:0), $datamatrix[$i][1], 'Cell content does not match in row '.$i.' in column 1');\r\n\t\t\t$this->assertEquals(''.$records[$i]['int'], $datamatrix[$i][2], 'Cell content does not match in row '.$i.' in column 2');\r\n\t\t\t$this->assertEquals(''.$records[$i]['string'], $datamatrix[$i][3], 'Cell content does not match in row '.$i.' in column 3');\r\n\t\t\t$this->assertEquals(''.$records[$i]['string'], $datamatrix[$i][4], 'Cell content does not match in row '.$i.' in column 4');\r\n\t\t}\r\n\t}", "function import2ds() {\r\n $ok = 0;\r\n foreach ($this->properties as $colvar=>$col) {\r\n if (isset($_REQUEST['field'][$colvar]) and !isset($this->ds->$colvar)) { # i hazardously ignore action state (updatable, insertable...)\r\n # note: below hasbeen moved to import_suggest_field_to_ds()\r\n if ($this->action == 'new' and $col->parentkey) {# special case for detail-new, parent-linked field val only supplied by post as field[fieldname][0]=val. let's copied this to all indices\r\n $value = $_REQUEST['field'][$colvar][0];\r\n $this->ds->$colvar = array();\r\n for ($i=0; $i<$_REQUEST['num_row']; $i++) {\r\n $this->ds->{$colvar}[$i] = $value;\r\n }\r\n }\r\n else {\r\n $this->ds->$colvar = $_REQUEST['field'][$colvar];\r\n }\r\n $ok = 1;\r\n }\r\n elseif ($col->inputtype == 'checkbox' and !isset($_REQUEST['field'][$colvar][$i]) and !isset($this->ds->$colvar)) {\r\n # special case for checkbox. unchecked checkboxes do not generate empty key/val. so depending whether this is group checkboxes or single checkbox, we initialize it to correct value.\r\n # if we dont explicitly say its value is (ie, value=0), and the previous value in db is 1, then checkbox would never be saved as unchecked, since populate will passess current value in db.\r\n if ($col->enumerate != '') {\r\n $value = array(); # assign it to empty array. TODO: should test this.\r\n }\r\n else {\r\n $value = 0; # BOOLEAN 0/1\r\n }\r\n $this->ds->$colvar = array();\r\n for ($i=0; $i<$_REQUEST['num_row']; $i++) {\r\n $this->ds->{$colvar}[$i] = $value;\r\n }\r\n $ok = 1;\r\n }\r\n else {\r\n #~ echo 'not ok';\r\n }\r\n }\r\n\r\n $this->db_count = $ok;\r\n }", "public function columnMap()\n {\n //the values their names in the application\n return array(\n 'id' => 'ID',\n 'item_id' => 'Item_ID',\n 'des' => 'Des',\n 'depts_id' => 'Depts_ID',\n 'application_id' => 'Application_ID',\n 'module_id' => 'Module_ID',\n );\n\n\n }", "public function loadDataFromId(){\r\n\t\t\t$this -> loadFromId();\r\n\t }", "public function hasRowKey(){\n return $this->_has(1);\n }", "public function hasRowKey(){\n return $this->_has(1);\n }", "public function hasRowKey(){\n return $this->_has(1);\n }", "private static function makerowdata($row, $model)\n {\n // empty array to hold our new \"column\" values\n $columns = array();\n // get all the keys of the passed row\n $keys = array_keys($model);\n // loop over all the keys, unless they are named \"key\" or \"children\"\n foreach ($keys as $pos => $key) {\n if ($key != 'key' && $key != 'children') {\n // add key:value pair to \"columns\" array\n $columns[$model[$key]] = $row[$key];\n }\n }\n return $columns;\n }", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'ragionesociale' => 'ragionesociale',\n 'indirizzo' => 'indirizzo',\n 'cap' => 'cap',\n 'citta' => 'citta',\n 'provincia' => 'provincia',\n 'telefono' => 'telefono',\n 'emailaziendale' => 'emailaziendale',\n 'piva' => 'piva',\n 'codfisc' => 'codfisc',\n 'pec' => 'pec',\n 'codicesdi' => 'codicesdi',\n 'referentenome' => 'referentenome',\n 'referentetelefono' => 'referentetelefono',\n 'referenteemail' => 'referenteemail',\n 'prodottiesposti' => 'prodottiesposti',\n 'fasciadiprezzo' => 'fasciadiprezzo',\n 'numerocoespositore' => 'numerocoespositore',\n 'nomecoespositore' => 'nomecoespositore',\n 'catalogonome' => 'catalogonome',\n 'catalogoindirizzo' => 'catalogoindirizzo',\n 'catalogocap' => 'catalogocap',\n 'catalogocitta' => 'catalogocitta',\n 'catalogoprovincia' => 'catalogoprovincia',\n 'catalogotelefono' => 'catalogotelefono',\n 'catalogoemail' => 'catalogoemail',\n 'catalogositoweb' => 'catalogositoweb',\n 'catalogofacebook' => 'catalogofacebook',\n 'catalogoinstagram' => 'catalogoinstagram',\n 'catalogotwitter' => 'catalogotwitter',\n 'catalogodescrizione' => 'catalogodescrizione'\n ];\n }", "public function testNoSpecificColumnNamesSubclassDataObjectQuery() {\n\t\t$playerList = new DataList('DataObjectTest_SubTeam');\n\t\t// Should be a left join.\n\t\t$this->assertEquals(1, preg_match(\n\t\t\t$this->normaliseSQL('/SELECT DISTINCT .* LEFT JOIN .* /'),\n\t\t\t$this->normaliseSQL($playerList->sql($parameters))\n\t\t));\n\t}", "public function init()\r\n\t{\r\n\t\tif (count($this->table_fields) < 1)\r\n\t\t\treturn false;\r\n\t\tforeach ($this->table_fields as $table_field) {\r\n\t\t\tif ($table_field->get_primary_key()) {\r\n\t\t\t\t$this->id_field = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_name_key()) {\r\n\t\t\t\t$this->name_fields[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t\tif ($table_field->get_unike_key()) {\r\n\t\t\t\t$this->unike_keys[] = $table_field->get_name();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "abstract protected function getPersistableDataArray();", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'user_id' => 'user_id',\n 'create_time' => 'create_time',\n 'money' => 'money',\n 'bank_name' => 'bank_name',\n 'account_bank' => 'account_bank',\n 'account_name' => 'account_name',\n 'remark' => 'remark',\n 'status' => 'status'\n ];\n }", "protected function get_column_info()\n {\n }", "protected function get_column_info()\n {\n }", "abstract public function exportData($columns, $sessionKey = null);", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'pole_id' => 'pole_id',\n 'worker_id' => 'worker_id',\n 'notice' => 'notice'\n ];\n }", "public function columnMap()\n {\n return [\n 'id' => 'id',\n 'user_id' => 'user_id',\n 'session_id' => 'session_id',\n 'goods_id' => 'goods_id',\n 'goods_sn' => 'goods_sn',\n 'goods_name' => 'goods_name',\n 'market_price' => 'market_price',\n 'goods_price' => 'goods_price',\n 'member_goods_price' => 'member_goods_price',\n 'goods_num' => 'goods_num',\n 'spec_key' => 'spec_key',\n 'spec_key_name' => 'spec_key_name',\n 'bar_code' => 'bar_code',\n 'selected' => 'selected',\n 'add_time' => 'add_time',\n 'prom_type' => 'prom_type',\n 'prom_id' => 'prom_id',\n 'sku' => 'sku'\n ];\n }", "public function getTableData()\n\t{\n\t}", "private function setFields()\n\t{\t\n\t\t$sql = '';\n\t\t\n\t\tforeach (array_keys($this->data) as $key)\n\t\t{\n\t\t\t$sql .= '`' . $key . '` = ? , ';\n\t\t}\n\t\t\n\t\t$sql = rtrim($sql, ', ');\n\t\t\n\t\treturn $sql;\n\t}", "public function createDataRow()\n\t{\n\t\t$row = array() ;\n\t\tforeach( $this->values as $field=>$value )\n\t\t{\n\t\t\t$row[$field] = $this->$field ;\n\t\t}\n\t\treturn $row ;\n\t}", "function eddenvato_add_id($columns) {\n //$columns['user_id'] = 'User ID';\n $columns['purchase_codes'] = 'Purchase Codes';\n return $columns;\n}", "function NewRow() {\n\t\t$row = array();\n\t\t$row['unid'] = NULL;\n\t\t$row['u_id'] = NULL;\n\t\t$row['acl_id'] = NULL;\n\t\t$row['Name'] = NULL;\n\t\t$row['Basics'] = NULL;\n\t\t$row['HP'] = NULL;\n\t\t$row['MP'] = NULL;\n\t\t$row['AD'] = NULL;\n\t\t$row['AP'] = NULL;\n\t\t$row['Defense'] = NULL;\n\t\t$row['Hit'] = NULL;\n\t\t$row['Dodge'] = NULL;\n\t\t$row['Crit'] = NULL;\n\t\t$row['AbsorbHP'] = NULL;\n\t\t$row['ADPTV'] = NULL;\n\t\t$row['ADPTR'] = NULL;\n\t\t$row['APPTR'] = NULL;\n\t\t$row['APPTV'] = NULL;\n\t\t$row['ImmuneDamage'] = NULL;\n\t\t$row['Intro'] = NULL;\n\t\t$row['ExclusiveSkills'] = NULL;\n\t\t$row['TransferDemand'] = NULL;\n\t\t$row['TransferLevel'] = NULL;\n\t\t$row['FormerOccupation'] = NULL;\n\t\t$row['Belong'] = NULL;\n\t\t$row['AttackEffect'] = NULL;\n\t\t$row['AttackTips'] = NULL;\n\t\t$row['MagicResistance'] = NULL;\n\t\t$row['IgnoreShield'] = NULL;\n\t\t$row['DATETIME'] = NULL;\n\t\treturn $row;\n\t}", "public function testSaveDataTableColumnNameNull() {\r\n\t\t$datatable = new avorium_core_data_DataTable(1, 1);\r\n\t\t$datatable->setHeader(0, null);\r\n\t\t$datatable->setCellValue(0, 0, '0');\r\n $this->setExpectedException('Exception', 'The header name is null but must not be.');\r\n\t\t$this->getPersistenceAdapter()->saveDataTable('POTEST', $datatable);\r\n\t}", "public function __construct($id = -1, $data = null){\r\n $this->_restoreStandardValues();\r\n $this->_db = DbManager::getConnection();\r\n\r\n if ($data != null) {\r\n foreach ($data as $key => $value) {\r\n \tif (isset($this->$key)) {\r\n \t$this->$key = $value;\r\n \t}\r\n\t }\r\n }\r\n else {\r\n if (($id != -1) and ($id != 'new')) {\r\n if(!$this->_loadFromDB($id)) {\r\n throw new Exception('Requested Object not in DB.');\r\n }\r\n }\r\n }\r\n }", "private function _getDataProviderIncorrect4()\n {\n return [\n [\n 'name' => 'Name',\n 'language' => 1,\n 'contentType' => 999,\n 'contentId' => 1,\n ],\n [],\n null,\n null,\n self::EXCEPTION_CONTENT\n ];\n }", "protected function _getRecordByKey($key)\n {\n }", "public function toTable(){\r\n\t\t$datas = array();\r\n\t\tforeach ($this as $key => $value) {\r\n\t\t\tif(!in_array($key, $this->arraysis)){\r\n\t\t\t\t$datas[$key] = $value;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $datas;\r\n\t}", "function get_fields(){\n //\n //Start with an empty array that stores the resolved column attributes \n $fields=[];\n // \n //Get the indexed column names\n $index_names = $this->entity->indices;\n //\n //Test if the entity is properly constructed with idices for identification\n $x = \\count($index_names);\n //\n //If the entity does not have an index through an exception since we cannot \n //create an identifier\n if( $x === 0){\n throw new \\Exception(\"Table: {$this->entity->name} does not have indexes check its construction\");\n }\n //\n //Get the first index since I are only using the first index to retrieve \n //the indexed column names\n $index = array_values($index_names)[0];\n //\n //loop through the indexes and push to the fields if it is an attribute \n //else resolve it to its constituent column attributes \n foreach ($index as $cname){\n //\n //Get the root column that if by the indexed name \n $col= $this->entity->columns[$cname];\n //\n //Test if the column is an attribute \n //The column is an attribute it does not need to be resolved \n if($col instanceof \\column_attribute){\n //\n //Push the column it is already resolved \n array_push($fields, new column($col));\n }\n //\n //The column is a foreign it needs to resolved by first principle\n //steps\n //1. get the referenced table name \n //2. get the referenced entity\n //3. get resolved indexes of the referenced entity\n else{\n //\n //1. Get the referenced table name \n $ref= $col->ref_table_name;\n //\n //Test if this entity exists in the join entities list\n //1 if it does not exist push \n $en= array_search($ref, $this->join_entities);\n if ($en === false){\n //\n array_push($this->join_entities, $ref);\n }\n //\n //2. Get the referenced entity \n $entity1= $this->entity->dbase->entities[$ref];\n //\n //Repeat this process for the referenced entity \n $cols2= $this->resolve_ref($entity1);\n //\n //loop through the fields of the new identify pushing them to the \n //fields \n foreach ( $cols2 as $coll) {\n //\n //push the column attribute\n array_push($fields, $coll);\n }\n }\n \n }\n //\n //Update and include any name, title, description , or id fields\n $fields1=$this->update_fields($fields);\n //\n //return the collection of the resolved columns \n return $fields1;\n }", "function GetDBTableKeys()\n\t{\n\t\tglobal $dal_info;\n\t\tif( !array_key_exists($this->infoKey, $dal_info) || !is_array($dal_info[ $this->infoKey ]) )\n\t\t\treturn array();\n\t\t\n\t\t$ret = array();\n\t\tforeach($dal_info[ $this->infoKey ] as $fname=>$f)\n\t\t{\n\t\t\tif( @$f[\"key\"] )\n\t\t\t\t$ret[] = $fname;\n\t\t}\n\t\treturn $ret;\n\t}" ]
[ "0.55263346", "0.5461517", "0.54454416", "0.5406336", "0.5406058", "0.5288595", "0.5285546", "0.52421343", "0.52242744", "0.5216159", "0.517528", "0.5159478", "0.51566476", "0.5146657", "0.51462", "0.514181", "0.5127176", "0.50895983", "0.5086864", "0.5077643", "0.5077517", "0.50483584", "0.5000665", "0.49894497", "0.49815622", "0.4956185", "0.49511614", "0.4947023", "0.4935207", "0.49271068", "0.49253234", "0.49243268", "0.4919952", "0.49014837", "0.49010733", "0.4897851", "0.48942116", "0.4892389", "0.48911875", "0.48884913", "0.48874003", "0.48853147", "0.48792863", "0.48699543", "0.48585638", "0.48559684", "0.4854365", "0.48441315", "0.48441315", "0.48441315", "0.48441315", "0.4836505", "0.4833084", "0.4832699", "0.48028618", "0.48005435", "0.4799963", "0.47936323", "0.4791738", "0.47914785", "0.47893724", "0.47871795", "0.47833565", "0.47795242", "0.47777197", "0.47758344", "0.4760768", "0.47601172", "0.47599527", "0.475734", "0.47567058", "0.47533736", "0.47490495", "0.47488302", "0.474338", "0.474338", "0.474338", "0.47432524", "0.47390607", "0.4736572", "0.47302827", "0.47300223", "0.47290865", "0.472733", "0.47268355", "0.4725087", "0.47215524", "0.47194645", "0.47170666", "0.4715639", "0.47115633", "0.4708426", "0.47005382", "0.4688003", "0.46815017", "0.46789688", "0.46787086", "0.46737748", "0.46726432", "0.46707556" ]
0.5185261
10
Return clone of default db select
public function getDefaultDbSelect() { $options = $this->getOptions(); if(null == $this->defaultDbSelect) { $this->defaultDbSelect = new Db\Sql\Select($options->getTableName()); } $dbSelect = clone $this->defaultDbSelect; return $dbSelect; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSelect()\n {\n return $this->getConnection()->select();\n }", "public function select()\n {\n return $this->_db->factory('select', $this);\n }", "function remake()\n {\n $result = parent::select($this->table, '*', null);\n parent::closeConection();\n \n return $result;\n }", "public function select();", "public function select();", "public function select();", "abstract public function prepareSelect();", "public function select()\n {\n return new QueryProxy('select', $this);\n }", "public function __clone()\n {\n $this->select = clone $this->select;\n }", "public function getSelect();", "public function getSelect();", "protected function getBaseSelect()\n {\n return \"SELECT * FROM \" . $this->getTableName();\n }", "public static function select(): DBSelect\n {\n $select = new DBSelect(\n static::$schema,\n self::fields(),\n get_called_class()\n );\n\n return $select;\n }", "public function select()\n\t{\n\t\t$this->_query['select'] = func_get_args();\n\n\t\treturn $this;\n\t}", "function select_default($db,$table) { \n\n\t$conn = new mysqli('localhost','id6847947_tadas','322559',$db);\n\n\n\tif ($conn->connect_error) {\n\t\tdie(\"Connection failed: \" . $conn->connect_error);\n\t} \n\n\t$selection= \"SELECT * FROM \" . $table . \" ORDER BY id ASC\";\n\treturn $result = $conn->query($selection);\n}", "public function sql_select_db() {}", "public function sql_select_db() {}", "protected static function select()\n {\n }", "protected abstract function getSelectStatement();", "protected abstract function getSelectStatement();", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "protected function select(): Select\n {\n return $this->select;\n }", "public function createSelectSql(): \\Hx\\Db\\Sql\\SelectInterface;", "protected function getSelect() {\n $oSql = new SqlSelect();\n $oSql->setEntity($this->Persistence->getTableName());\n $oSql->addColumn(implode(',', $this->getColumns()));\n $oSql->setCriteria($this->Criteria); \n return $oSql->getInstruction();\n }", "protected static function buildSelectionQuery() \n {\n return Query::select()->\n from(self::getTableName());\n }", "function select($fields = NULL)\n {\n // Create a fresh slate\n $this->object->_init();\n if (!$fields or $fields == '*') {\n $fields = $this->get_table_name() . '.*';\n }\n $this->object->_select_clause = \"SELECT {$fields}\";\n return $this->object;\n }", "protected function runSelectWithMeta()\n {\n return $this->connection->selectWithMeta(\n $this->toSql(),\n $this->getBindings(),\n ! $this->useWritePdo\n );\n }", "abstract public function getSelectedDatabase();", "protected function RetSelect() {\n\n $return = \"SELECT\";\n\n if ($this->\n distinct) {\n\n $return .= \" DISTINCT\";\n }\n\n $columnsArr = [];\n\n foreach ($this->\n columns as $key => $value) {\n\n if (is_string($value)) {\n\n $columnsArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $columnsArr[] = \"(\" . $value['subquery']->\n Generate() . \")\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else if (isset($value['value'])) {\n\n $columnsArr[] = \"'{$value['value']}'\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else {\n\n $columnsArr[] = \"{$value['column']}\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n }\n }\n\n if (count($columnsArr)) {\n\n $return .= \" \" . implode($columnsArr, \", \");\n } else {\n\n $return .= \" *\";\n }\n\n\n $tablesStr = \"\";\n\n foreach ($this->\n tables as $key => $value) {\n\n if (is_string($value)) {\n\n $tablesStr .= \", $value\";\n } else {\n\n if (!(isset($value['table']) &&\n $value['table'] != \"\") &&\n isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $value['table'] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n\n if (!isset($value['alias'])) {\n\n throw new \\Exception(\"Error: Alias required in case of subquery to be used in from clause.\");\n }\n } else {\n\n $value['table'] = \"{$value['table']}\";\n }\n\n if (isset($value['alias'])) {\n\n $value['alias'] = \"`{$value['alias']}`\";\n }\n\n if (!isset($value['table']) ||\n $value['table'] == \"\") {\n\n throw new \\Exception(\"Error: Tables not properly provided in QueryHelper.\");\n }\n\n if (!isset($value['jointype'])) {\n\n $tablesStr .= \", \" . $value['table'];\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n } else {\n\n switch ($value['jointype']) {\n case 'j':\n\n $tablesStr .= \" JOIN \" . $value['table'];\n break;\n\n case 'ij':\n\n $tablesStr .= \" INNER JOIN \" . $value['table'];\n break;\n\n case 'cj':\n\n $tablesStr .= \" CROSS JOIN \" . $value['table'];\n break;\n\n case 'sj':\n\n $tablesStr .= \" STRAIGHT_JOIN \" . $value['table'];\n break;\n\n case 'lj':\n\n $tablesStr .= \" LEFT JOIN \" . $value['table'];\n break;\n\n case 'rj':\n\n $tablesStr .= \" RIGHT JOIN \" . $value['table'];\n break;\n\n case 'nj':\n\n $tablesStr .= \" NATURAL JOIN \" . $value['table'];\n break;\n\n case 'nlj':\n\n $tablesStr .= \" NATURAL LEFT JOIN \" . $value['table'];\n break;\n\n case 'nrj':\n\n $tablesStr .= \" NATURAL RIGHT JOIN \" . $value['table'];\n break;\n\n case 'loj':\n\n $tablesStr .= \" LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'roj':\n\n $tablesStr .= \" RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nloj':\n\n $tablesStr .= \" NATURAL LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nroj':\n\n $tablesStr .= \" NATURAL RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n default:\n break;\n }\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n\n if (isset($value['joinconditions']) &&\n count($value['joinconditions'])) {\n\n $tablesStr .= $this->\n WhereClause($value['joinconditions'], 1);\n }\n }\n }\n }\n\n $return .= \" FROM \" . ltrim($tablesStr, \", \");\n\n\n if (count($this->\n where)) {\n\n $return .= $this->\n WhereClause($this->\n where);\n }\n\n\n $groupsArr = [];\n\n foreach ($this->\n group as $key => $value) {\n\n if (is_string($value)) {\n\n $groupsArr[] = \"{$value}\";\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $groupsArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n } else if (isset($value['value'])) {\n\n $value['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($value['value']);\n $groupsArr[] = \"'{$value['value']}'\";\n } else {\n\n $groupsArr[] = \"{$value['column']}\";\n }\n }\n\n if (count($groupsArr)) {\n\n $return .= \" GROUP BY \" . implode($groupsArr, \", \");\n }\n\n\n if (count($this->\n having)) {\n\n $return .= $this->\n WhereClause($this->\n having, 2);\n }\n\n\n $ordersArr = [];\n\n foreach ($this->\n order as $key => $value) {\n\n if (is_string($value)) {\n\n $ordersArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $ordersArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else if (isset($value['value'])) {\n\n $ordersArr[] = \"'{$value['value']}'\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else {\n\n $ordersArr[] = \"{$value['column']}\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n }\n }\n\n if (count($ordersArr)) {\n\n $return .= \" ORDER BY \" . implode($ordersArr, \", \");\n }\n\n if ($this->\n perpage > 0) {\n\n if ($this->\n page < 1) {\n\n $this->\n page = 1;\n }\n\n $startcount = $this->\n perpage * ($this->\n page - 1);\n\n $return .= \" LIMIT {$startcount}, {$this->\n perpage}\";\n }\n\n return $return . \";\";\n }", "public function select($what = \"*\"){\n\t\t\tif(is_string($what)){\n\t\t\t\t$this->select = \"SELECT \" . $what . \" FROM \" . $this->table;\n\t\t\t}else{\n\t\t\t\t$this->select = false;\n\t\t\t}\n\t\t\treturn $this;\n\t\t}", "public function setGeneralDefaultQuery()\n {\n return $this;\n }", "public function scopeDefaultSelect($query)\n {\n return $query->select(array_keys($this->casts));\n }", "public function selectReset()\n {\n $this->select = $this->fieldsByTable = [];\n\n return $this;\n }", "public function select() {\r\n\t\t//$src = Dbi_Source::GetModelSource($this);\r\n\t\t//return $src->select($this);\r\n\t\treturn $this->source->select($this);\r\n\t}", "function wrapper_select_db($dbname) {\n\t\treturn $this->functions['select_db']($dbname, $this->link_id);\n\t}", "public function get_select()\n {\n $flags = $this->sql_no_cache ? 'sql_no_cache' : '';\n $flags .= $this->sql_calc_found ? 'sql_calc_found_rows' : '';\n\n $fields_table = $this->alias ? $this->alias: self::quote_name($this->table);\n\n $fields = $this->fields ? join(', ', $this->fields): $fields_table.'.*';\n $from = $this->get_from();\n $join = $this->get_join();\n $where = $this->get_where();\n $having = $this->get_having();\n $order = $this->get_order();\n $group = $this->get_group();\n $limit = $this->get_limit();\n $mode = $this->for_update ? 'for update': '';\n $mode = $this->share_mode ? 'lock in share mode': '';\n // MySQL runs a needless filesort when grouping without an order clause. disable it.\n if ($group && !$order) $order = 'order by null';\n return \"select $flags $fields $from $join $where $group $having $order $limit $mode\";\n }", "protected function _addDefaultFields()\n {\n $select = $this->clause('select');\n $this->_hasFields = true;\n\n if (!count($select) || $this->_autoFields === true) {\n $this->_hasFields = false;\n $this->select($this->repository()->getSchema()->columns());\n $select = $this->clause('select');\n }\n\n $aliased = $this->aliasFields($select, $this->repository()->getAlias());\n $this->select($aliased, true);\n }", "protected function runSelect()\n {\n return $this->connection->select(\n $this->toSql(),\n $this->getBindings(),\n $this->option->setUseWrite($this->useWritePdo)\n );\n }", "public function select()\n {\n return new geoTableSelect($this->_name);\n }", "protected function getBaseSelect()\n {\n $qb = $this->getQueryBuilder()\n ->select(\n 'main.*',\n 'com.text AS comment',\n 'rating.rating AS rating',\n 'serie.id AS serie_id',\n 'serie.name AS serie_name',\n 'serie.sort AS serie_sort'\n )\n ->from('books', 'main')\n ->leftJoin('main', 'comments', 'com', 'com.book = main.id')\n ->leftJoin('main', 'books_series_link', 'bsl', 'bsl.book = main.id')\n ->leftJoin('main', 'series', 'serie', 'serie.id = bsl.series')\n ->leftJoin('main', 'books_ratings_link', 'brl', 'brl.book = main.id')\n ->leftJoin('main', 'ratings', 'rating', 'brl.rating = rating.id')\n ->where('1');\n\n if ($this->_hasExcludedBook) {\n $qb->andWhere('main.id != :exclude_book')\n ->setParameter('exclude_book', $this->_excludeBookId, PDO::PARAM_INT);\n $this->_hasExcludedBook = false;\n $this->_excludeBookId = null;\n }\n if ($this->_hasExcludedSerie) {\n $qb->andWhere('serie.id IS NULL OR serie.id != :exclude_serie', PDO::PARAM_INT)\n ->setParameter('exclude_serie', $this->_excludeSerieId);\n $this->_hasExcludedSerie = false;\n $this->_excludeSerieId = null;\n }\n return $qb;\n }", "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "public function getLastSelect();", "protected function getReplicateDb($sql)\n {\n $sql = trim($sql);\n\n if (stripos($sql, 'SELECT') !== 0) {\n //Not select query\n if (preg_match('/insert\\s+into\\s+([a-z0-9_]+)/ims', $sql, $match)) {\n $table = $match[1];\n $querytype = 'INSERT';\n } elseif (preg_match('/update\\s+([a-z0-9_]+)/ims', $sql, $match)) {\n $table = $match[1];\n $querytype = 'UPDATE';\n } elseif (preg_match('/delete\\s+from\\s+([a-z0-9_]+)/ims', $sql, $match)) {\n $table = $match[1];\n $querytype = 'DELETE';\n } else {\n $querytype = 'OTHER';\n }\n } else {\n $querytype = 'SELECT';\n\n if (preg_match('/^select.*?from\\s+([a-z0-9_]+)/ims', $sql, $match)) {\n $table = $match[1];\n }\n }\n\n //////////////////////\n // SELECT DB BASE ON QUERY TYPE\n if ($querytype == 'SELECT') {\n $replicateCount = count($this->connectinfo['slave']);\n\n //select slave\n if ($replicateCount == 0) {\n die('slave DB Config not found.');\n } else {\n //Select a random slave info\n $randomConnectInfo = array();\n $randseed = rand(1, $replicateCount);\n $i = 1;\n foreach ($this->connectinfo['slave'] as $connectinfo) {\n if ($i == $randseed) {\n $randomConnectInfo = $connectinfo;\n }\n $i++;\n }\n\n /////////////////////////////////\n $db = $this->initConnection(false, $randomConnectInfo['identifier']);\n\n }\n } else {\n $replicateCount = count($this->connectinfo['master']);\n if ($replicateCount == 0) {\n die('Master DB Config not found.');\n } else {\n //Select a random master info\n $randomConnectInfo = array();\n $randseed = rand(1, $replicateCount);\n $i = 1;\n foreach ($this->connectinfo['master'] as $connectinfo) {\n if ($i == $randseed) {\n $randomConnectInfo = $connectinfo;\n }\n $i++;\n }\n\n /////////////////////////////////\n $db = $this->initConnection(true, $randomConnectInfo['identifier']);\n }\n }\n\n //////////////\n return $db;\n }", "public function getSelectSql()\n {\n return $this->selectSql; \n }", "public function select()\n\t{\n\t\treturn call_user_func_array([$this->queryFactory->__invoke('select'), 'select'], func_get_args());\n\t}", "private function _montaInicioSelectQuestionario()\r\n {\r\n $select = $this->select()\r\n ->setIntegrityCheck(false);\r\n\r\n $select->from(array('pp' => KT_B_PERGUNTA_PEDIDO),\r\n array('cd_pergunta_pedido',\r\n 'tx_titulo_pergunta',\r\n 'st_multipla_resposta',\r\n 'st_obriga_resposta',\r\n 'tx_ajuda_pergunta'),\r\n $this->_schema);\r\n $select->join(array('orpp' => $this->_name),\r\n '(pp.cd_pergunta_pedido = orpp.cd_pergunta_pedido)',\r\n array('st_resposta_texto',\r\n 'ni_ordem_apresenta'),\r\n $this->_schema);\r\n $select->join(array('rp' => KT_B_RESPOSTA_PEDIDO),\r\n '(orpp.cd_resposta_pedido = rp.cd_resposta_pedido)',\r\n array('cd_resposta_pedido',\r\n 'tx_titulo_resposta'),\r\n $this->_schema);\r\n \r\n return $select;\r\n }", "protected function newBaseQueryBuilder()\n {\n return $this->getConnection()->query();\n }", "protected function _reset_select()\r\n\t{\r\n\t\t$this->_reset_run(array(\r\n\t\t\t'qb_select'\t\t=> array(),\r\n\t\t\t'qb_from'\t\t=> array(),\r\n\t\t\t'qb_join'\t\t=> array(),\r\n\t\t\t'qb_where'\t\t=> array(),\r\n\t\t\t'qb_groupby'\t\t=> array(),\r\n\t\t\t'qb_having'\t\t=> array(),\r\n\t\t\t'qb_orderby'\t\t=> array(),\r\n\t\t\t'qb_aliased_tables'\t=> array(),\r\n\t\t\t'qb_no_escape'\t\t=> array(),\r\n\t\t\t'qb_distinct'\t\t=> FALSE,\r\n\t\t\t'qb_limit'\t\t=> FALSE,\r\n\t\t\t'qb_offset'\t\t=> FALSE,\r\n 'qb_lock_in_share_mode' => FALSE,\r\n 'qb_for_update' => FALSE\r\n\t\t));\r\n\t}", "public function getSelect(): ?Select;", "public static function select($name = \"\")\n\t{\n\t\treturn new Select($name);\n\t}", "public static function selectAll() {\n $select = self::select(Option::getTableName());\n\n return self::getInstanceData($select);\n }", "private static function _getBaseQuery($db, $options)\n {\n // initialize the options\n $defaults = array(\n 'cat_id' => array(),\n 'from' => '',\n 'to' => ''\n );\n\n foreach ($defaults as $k => $v) {\n $options[$k] = array_key_exists($k, $options) ? $options[$k] : $v;\n }\n\n // instantiate a Zend select object\n $select = $db->select();\n\n // define the table to pull from\n $select->from(array('ch' => 'comment_history'), array());\n\n\n // filter results on specified comment ids (if any)\n if (isset($options['comment_id']))\n $select->where('ch.comment_id = ?', $options['comment_id']);\n\n // filter results on specified resource ids (if any)\n if (isset($options['rsrc_id']))\n $select->where('ch.rsrc_id = ?', $options['rsrc_id']);\n\n //Zend_Debug::dump($select->__toString());die;\n return $select;\n }", "public function single(){\n $this->debugBacktrace();\n $this->selectModifier = \"single\";\n return $this;\n }", "public function select($select = '*', $escape = null)\n {\n \t$this->ci->db->select($select, $escape);\n \treturn $this;\n }", "public function select($fields=null) { if ($fields) $this->fields($fields); return $this->execute($this->get_select()); }", "public static function getSelect($database = 'db')\r\n {\r\n $select = new Zend_Db_Select(self::get($database));\r\n \r\n return $select;\r\n }", "public function rawSelect($query)\r\n\t{\r\n\t\t$this->model = $this->model->select($query);\r\n\t\treturn $this;\r\n\t}", "function select() {\r\n\t\t$query = 'SELECT * FROM `subscribers`';\r\n\t\t\r\n\t\t$this->query = $query;\r\n\t}", "function adv_select($table, array $where = null, array $fields = null, $order = '', $limit = null, $offset = null);", "public function select($str = '*') \n {\n $this->_data['select'] = $str;\n $postpend = '';\n if ($this->_data['query'] !== null) {\n $postpend = $this->_data['query'];\n }\n $this->_data['query'] = 'SELECT ' . $str . $postpend;\n return $this;\n }", "public static function selectAll() {\n $select = self::select(Post::getTableName());\n\n return self::getInstanceData($select);\n }", "public function select($values = '*'): Database\n {\n $this->query = \"SELECT \".$values.\" FROM \" . $this->table . \" \";\n return $this; // Activate chaining\n }", "public function selectQuery($sql_stmt)\n {\n return DB::select($sql_stmt);\n }", "public function select()\n {\n return DB::table('hawthorne_configuration')->select();\n }", "protected function prepareSelectStatement() {}", "public function newConn(){\n $tmp = clone $this;\n $tmp->tbl = \"\";\n $tmp->query = null;\n $tmp->conn = $this->conn;\n \n return $tmp;\n }", "public function select($data = '*') \n {\t\n // Empty out the old junk\n $this->clear();\n \n // Process our columns, if array, we need to implode to a string\n if(is_array($data))\n {\n if(count($data) > 1)\n {\n $this->sql = \"SELECT \". $this->clean( implode(', ', $data) );\n }\n else\n {\n $this->sql = \"SELECT \". $this->clean($data[0]);\n }\n }\n else\n {\n $this->sql = \"SELECT \". $this->clean($data);\n }\n return $this;\n }", "function select() {\n return \"\n contact_a.id AS contact_id,\n contact_a.contact_sub_type AS contact_sub_type,\n contact_a.sort_name AS sort_name,\n source,\n created_date,\n modified_date\n \";\n }", "public function select( $storageLocal, $data = '*' ){\n $stmt = new Select( $this->pdo, $this->sqlGenerator, $storageLocal, $data );\n return $stmt;\n }", "protected function _reset_select()\n\t{\n\t\t$this->_reset_run(array(\n\t\t\t'qb_select'\t\t=> array(),\n\t\t\t'qb_from'\t\t=> array(),\n\t\t\t'qb_join'\t\t=> array(),\n\t\t\t'qb_where'\t\t=> array(),\n\t\t\t'qb_groupby'\t\t=> array(),\n\t\t\t'qb_having'\t\t=> array(),\n\t\t\t'qb_orderby'\t\t=> array(),\n\t\t\t'qb_aliased_tables'\t=> array(),\n\t\t\t'qb_no_escape'\t\t=> array(),\n\t\t\t'qb_distinct'\t\t=> FALSE,\n\t\t\t'qb_limit'\t\t=> FALSE,\n\t\t\t'qb_offset'\t\t=> FALSE\n\t\t));\n\t}", "protected function newBaseQueryBuilder()\n {\n $connection = $this->getConnection();\n\n return $connection->query();\n }", "public function getQuerySelect() {\n $R = 'R_'. $this->id;\n return \"$R.value_id AS `\". $this->name.\"`\";\n }", "public static function MetaSelect() {\n\t\t\treturn NULL;\n\t\t}", "protected function _authenticateCreateSelect()\n {\n // build credential expression\n if (empty($this->_credentialTreatment)\n || (strpos($this->_credentialTreatment, \"?\") === false)\n ) {\n $this->_credentialTreatment = '?';\n }\n\n $credentialExpression = \n '(CASE WHEN ' . \n $this->_db->escape($this->_credentialColumn, true)\n . ' = ' . $this->_credentialTreatment \n . ' THEN 1 ELSE 0 END) AS '\n . $this->_db->escape('zend_auth_credential_match', true);\n\n // get select\n \n $dbSelect = \"SELECT *, $credentialExpression \" \n . \" FROM \" . $this->_tableName\n . ' WHERE '\n . $this->_db->escape($this->_identityColumn, true) . ' = ?';\n if ($this->_conditionStatement) { \n $dbSelect .= ' AND ' . $this->_conditionStatement;\n }\n return $dbSelect;\n }", "public function getTableSelect($for = self::SELECT_BROWSE, $copy = false)\n {\n if (!$for) {\n //didn't specify what it was for...\n return null;\n }\n if (!isset($this->_tableSelects[$for])) {\n $tableSelect = new geoTableSelect();\n\n switch ($for) {\n case self::SELECT_BROWSE:\n $tableSelect->from(geoTables::classifieds_table);\n break;\n\n case self::SELECT_SEARCH:\n $tableSelect->from(geoTables::classifieds_table);\n break;\n\n case self::SELECT_FEED:\n $columns = array('`id`','`title`','`description`','`date`','`category`');\n $tableSelect->from(geoTables::classifieds_table, $columns);\n break;\n\n default:\n //give them back an empty table select, if not one of the\n //\"build in\" \"fors\".\n\n break;\n }\n $this->_tableSelects[$for] = $tableSelect;\n }\n return ($copy) ? clone $this->_tableSelects[$for] : $this->_tableSelects[$for];\n }", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "function select($id)\n\t{\n\treturn parent::select($id);\n\t}", "public function reset_select() {\n\t\t$this->_select = array();\n\n\t\treturn $this;\n\t}", "public function select()\n {\n\n }", "public function selectSingle() {\n $suffix = $this->formQuerySuffix();\n $arr = $this->table->selectSingle($suffix);\n $class = $this->className;\n $result = null;\n\n DBRecord::$fromPostData = false;\n if ($arr) $result = new $class($arr);\n DBRecord::$fromPostData = true;\n\n return $result;\n }", "abstract public function selectDatabase($name);", "public function select($fields = [], $overwrite = false);", "public function select_db($db)\n {\n $this->dbname = $db;\n return $this;\n }", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "public function buildSelect()\n {\n $this->query->select(\"DISTINCT(p.id),p.*,\n u.first_name as owner_first_name,u.last_name as owner_last_name,\n c.id as company_id,c.name as company_name,IF(p.id=d2.primary_contact_id, 1, 0) AS is_primary_contact\");\n\n $this->query->from(\"#__people AS p\");\n $this->query->leftJoin(\"#__people_cf as cf ON cf.person_id = p.id\");\n $this->query->leftJoin(\"#__users AS u ON u.id = p.owner_id\");\n $this->query->leftJoin(\"#__companies AS c ON c.id = p.company_id\");\n $this->query->leftJoin(\"#__deals AS d ON d.id = cf.association_id AND cf.association_type = 'deal'\");\n $this->query->leftJoin(\"#__deals AS d2 ON d2.primary_contact_id = p.id\");\n\n }", "public function reset()\n {\n $this->select = '';\n $this->join = '';\n $this->where = '';\n $this->order = '';\n $this->limit = '';\n $this->values_to_bind = array();\n $this->columns_to_bind = array();\n\n return $this;\n }", "public function select()\r\n\t{\r\n\t\t$this->clear();\r\n\t\t$where = null;\r\n\t\t// no args, so I'm searching for ALL... or doing a specific search\r\n\t\tif(func_num_args() === 0\r\n\t\t || ($where = call_user_func_array(array($this->obj, 'buildWhere'), func_get_args())))\r\n\t\t{\r\n\t\t\t$query = 'SELECT *\r\n\t\t\t\tFROM '.$this->obj->buildFrom();\r\n\t\t\t// pass args to where generator\r\n\t\t\tif($where)\r\n\t\t\t{\r\n\t\t\t\t$query .= ' WHERE '.$where;\r\n\t\t\t}\r\n\t\t\t$results = $this->site->db->query($query);\r\n\t\t\t$success = ($results->num_rows > 0);\r\n\t\t\twhile($row = $results->fetch_assoc())\r\n\t\t\t{\r\n\t\t\t\t$obj = new $this->obj->__CLASS__($this->obj->site);\r\n\t\t\t\tif($obj->loadRow($row))\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->push($obj);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $success;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public function getSelect() {\r\n return $this->_select;\r\n }", "function create_db_combo($tblname, $key_field, $value_field, $order_field, $additional_value='-Plese Select-', $param=''){\n $ci =& get_instance();\n //load databse library\n $ci->load->database();\n\n $ci->db->from($tblname);\n if($param!=''){\n $ci->db->where($param);\n }\n $ci->db->order_by($order_field);\n $result = $ci->db->get();\n\n $dd[''] = $additional_value ;\n if ($result->num_rows() > 0){\n foreach ($result->result() as $row) {\n $dd[$row->$key_field] = $row->$value_field;\n }\n }\n return $dd;\n }", "public function select($sql) {\n $this->__select__ = $sql;\n return $this;\n }", "public function getSelect()\n {\n return $this->select;\n }", "public function getSelect()\n {\n return $this->select;\n }", "public function select($select = '*')\n {\n $this->_type = db::SELECT;\n\n if (is_string($select))\n {\n $select = explode(',', $select);\n }\n elseif (is_object($select))\n {\n $this->_select[] = $select;\n }\n\n foreach ($select as $val)\n {\n if ($val !== '')\n {\n $this->_select[] = $val;\n }\n }\n\n return $this;\n }", "public function selectAll() {\n\t\treturn $this->select(array_keys($this->table->columns));\n\t}", "public function select()\n {\n $cols = $this->getColsAsFields();\n return $this->gateway->select($cols);\n }", "function get_select($table, $field = 'name'){\t\t\t\t\n\t\t$this->db->order_by($field);\n\t\t$query = $this->db->get($table);\n return $query->result();\n\t}", "public function defaultSelect(Doctrine_Query $q) {\n\n $rootAlias = $q->getRootAlias();\n\n $q->select( $rootAlias . '.*, l.name, a.name, c.name, '\n . ' f.title, f.startDate, f.startTime, f.endDate, f.endTime, '\n . 'pp.filename, pp.description, pp.width, pp.height, pp.mime_type, '\n . 'p.filename, p.description, p.width, p.height, p.mime_type');\n\n return $q;\n }", "public function getSelect() {\n return $this->select;\n }", "protected function _reset()\r\n\t\t{\r\n\t\t\t$this->_select = '*';\r\n\t\t\t$this->_where = \"\";\r\n\t\t\t$this->_orderBy = \"\";\r\n\t\t\treturn null;\r\n\t\t}", "protected function getDetailedSelect() { \n return \"SELECT PostID, Posts.UserID, MainPostImage, Posts.Title, Message, PostTime, ImageDetails.ImageID, Path, FirstName, LastName\n FROM Posts\";\n }" ]
[ "0.68683076", "0.68513006", "0.6631717", "0.6427664", "0.6427664", "0.6427664", "0.6408085", "0.6397182", "0.63716316", "0.63566846", "0.63566846", "0.63529974", "0.6339171", "0.62972003", "0.6227628", "0.61845183", "0.6184429", "0.618231", "0.61734104", "0.61734104", "0.61733854", "0.61307895", "0.61281896", "0.6124519", "0.6091226", "0.60865605", "0.5995208", "0.5988071", "0.59596246", "0.59323627", "0.59293234", "0.5925309", "0.5914237", "0.5876252", "0.5854873", "0.5851386", "0.58513176", "0.5839236", "0.583432", "0.58283234", "0.58189505", "0.5808811", "0.5798725", "0.5784751", "0.5756971", "0.5756494", "0.5739099", "0.57277644", "0.5705759", "0.57050246", "0.57024026", "0.56695944", "0.56569076", "0.5655553", "0.56468385", "0.56278354", "0.56251675", "0.56091344", "0.56049263", "0.560036", "0.55918264", "0.55914855", "0.5585402", "0.5584928", "0.55824023", "0.5576875", "0.5572826", "0.55620307", "0.55610067", "0.5556059", "0.5555498", "0.5554842", "0.5553551", "0.55465305", "0.55438286", "0.55375195", "0.55375195", "0.5522947", "0.5517276", "0.550332", "0.5493653", "0.54920703", "0.548704", "0.5461196", "0.54566056", "0.5454559", "0.54516494", "0.5451146", "0.54483503", "0.5445775", "0.5442788", "0.5442788", "0.5437959", "0.5437739", "0.54267603", "0.54153645", "0.54037845", "0.53918374", "0.5386117", "0.5380342" ]
0.789186
0
Constructor can be used to retrieve an object by its id
public function __construct(array $id = null, $tableName = false) { if(!is_null($id)) $this->getById($id, $tableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct($id);", "public function __construct($id);", "abstract protected function getObject($id);", "public function __construct(string $id);", "public function __construct($id) { $this->id = $id; }", "public function __construct($id)\n {\n $this->id = $id;\n //\n\n }", "public function __construct($id)\r\n {\r\n $this->id = $id;\r\n }", "public static function instance(string $id);", "public static function find($id) { return new static($id); }", "protected function _constructFromId($id) {\n\t\t// HACK: This function relies on the return value of the get() function\n\t\t$this->_id = $id;\t\t// first overwrite the id\n\t\treturn $this->get();\t// then overwrite everything else\n\t}", "function __construct($id=\"\") {\n\t\tself::$id = $id;\n\t}", "public function __construct($id)\r\n\t{\r\n\t\t$this->_load($id);\r\n\t}", "public function __construct($id)\r\n\t{\r\n\t\t$this->_load($id);\r\n\t}", "public function __construct($id)\r\n\t{\r\n\t\t$this->_load($id);\r\n\t}", "public static function get_instance($id)\n {\n }", "public function __construct($id = \"\") {\r\n\r\n if (!empty($id)) {\r\n $this->load($id);\r\n }\r\n }", "public function __construct($id)\n\t{\n\t\t$this->_load($id);\n\t}", "public function __construct($id)\n\t{\n\t\t$this->id = $id;\n\t}", "public function __construct($id)\n\t{\n\t\t$this->id = $id;\n\t}", "function get_instance_by_id($id) {\n\t\t$this->get_instance($id, \"\");\n\t\treturn $this;\n\t}", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public function __construct($id)\n {\n $this->id = $id;\n }", "public static function getById(int $id)\n\t{\n\t\t$class = get_called_class();\n\n\t\t$obj = new $class();\n\t\t$obj->load($id);\n\n\t\tif ( is_null($obj->id) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn $obj;\n\t}", "public function __construct($id)\n {\n\n $this->id = $id;\n }", "function __construct($id = NULL)\n {\n if ($id != NULL) {\n $this->id = $id;\n }\n }", "function __construct($id) {\n $this->setId($id);\n }", "public function __construct($id)\n {\n $this->_id = $id;\n }", "public function byId($id);", "public function byId($id);", "public function byId($id);", "public function byId($id);", "public function getById( $id );", "function get_id($id){\n\t\t$this->id = $id;\n\t}", "protected function find(string $id): object\n {\n return new self(parent::find($id));\n }", "public function get_one($id)\n {\n }", "abstract public function getById($id);", "abstract public function getById($id);", "public function getById() {}", "public function GetById($id);", "public function GetById($id);", "abstract public function retrieve($id);", "public function getOne($id) {\n\n }", "public function get( $id ){}", "static public function fromID($id)\n {\n // TODO: Implement fromID() method.\n }", "public abstract function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getById($id);", "public function getId($id): self{\r\n return new self($this->pdo, $id, $this->page);\r\n\t}", "public static function getById($id)\n {\n return new self(array('id'=>$id));\n }", "public function get( $id );", "public static function retrieveById($id) {\n\t\tif (apc_exists(__CLASS__ . '_' . $id)) {\n\t\t\t$ret_val = apc_fetch(__CLASS__ . '_' . $id);\n\t\t\treturn $ret_val;\n\t\t}\n\t\t$obj = new self();\n\t\t$obj->setId($id);\n\t\t$obj->query();\n\t\tapc_add(__CLASS__ . '_' . $id, $obj);\n\t\treturn $obj;\n\t}", "abstract public function get($id);", "abstract public function get($id);", "abstract public function get($id);", "public function __construct($id=null){\n if($id){\n $c = kuharica_baza::connect();\n $sql = \"SELECT * FROM vrsta_jela WHERE id = $id LIMIT 1\";\n $r = $c->query($sql);\n $row = $r->fetch_assoc();\n $this->id = $row['id'];\n $this->naziv = $row['naziv'];\n }\n }", "public function getById($id)\n {\n }", "public function getById($id)\n {\n }", "public abstract function get($id);", "public function __construct($id=null){\n\t\tif($id){\n\t\t\t$this->setId($id);\n\t\t}\n\t}", "private function __construct($id)\n {\n $this->db = getDatabase();\n $req = prepareAndFetch(My_class::$DB, \"SELECT * FROM my_class WHERE id = :id\", array(\"id\" => $id));\n\n $this->id = $req[\"id\"];\n $this->name = $req[\"name\"];\n $this->date = $req[\"date\"];\n $this->timestamp = $req[\"timestamp\"];\n $this->valid = $req[\"valid\"];\n }", "public function getById(string $id);", "public function factory($id) {\n if (isset($this->$id)) {\n return $this->$id;\n }\n }", "public function retrieveById($id);", "public function getId($id): self{\r\n\t\treturn new self($this->pdo, $id, $this->page);\r\n\t}", "function __construct($id)\n \t{\n \t\tparent::__construct($id);\n \t}", "public function __construct($id=0)\n {\n $this->Adapter = $this->getAdapter();\n $this->primaryName = $this->getPrimary();\n if($id)\n {\n $data = is_int($id) ? $this->findByPk($id) : $this->findOne($id);\n if ($data)\n {\n foreach ($data as $field => $value)\n {\n $this->$field = $value;\n }\n $this->insert = false;\n }\n }\n }", "public function whereId(string $id): object;", "public function __construct($id, $item);", "public static function factory( $id );", "public function __construct($_id)\n {\n $this->_id = $_id;\n }", "public function show(int $id) : object\n {\n return new $this->resource(\n $this->model->find($id)\n );\n }", "public function get(string $id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);", "public function get($id);" ]
[ "0.79657763", "0.79657763", "0.7776676", "0.77596533", "0.77514714", "0.7545495", "0.74851453", "0.745133", "0.74331117", "0.74283934", "0.7417884", "0.74094826", "0.74094826", "0.74094826", "0.74031633", "0.7365551", "0.7353889", "0.734755", "0.734755", "0.7342385", "0.7341641", "0.7341641", "0.7341641", "0.7341641", "0.7341641", "0.7341641", "0.7341641", "0.73369855", "0.7281847", "0.7241019", "0.7231785", "0.7221213", "0.7212995", "0.7212995", "0.7212995", "0.7212995", "0.7209559", "0.7199479", "0.719667", "0.719078", "0.71676445", "0.71676445", "0.7165587", "0.7164884", "0.7164884", "0.7163904", "0.71638227", "0.7145123", "0.7142106", "0.713604", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.70920616", "0.7078103", "0.7072524", "0.7066532", "0.7042194", "0.70368975", "0.70368975", "0.70368975", "0.7033987", "0.7030159", "0.7030159", "0.7020525", "0.70152897", "0.7005407", "0.698795", "0.69863784", "0.69786036", "0.6976021", "0.69660324", "0.69656557", "0.6962416", "0.6956981", "0.69403964", "0.6924138", "0.69203514", "0.6917263", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456", "0.69156456" ]
0.0
-1
Get all rows of the table and return them in an array of objects Restrictions are not allowed in this function (use getByCols instead) ORDER BY is possible and facultative, just specify a array like: array( "columnToOrder" => "way (ASC or DESC)", "columnToOrder" => "way (ASC or DESC)" ); It is also possible to define a limit and offset.
public function getAll($tableName = false, array $orders = null, $limit = null, $offset = null) { $dbh = App::getDatabase()->connect(); if(!$tableName) $query = "SELECT * FROM ".$this::getTableName(); else $query = "SELECT t.*, p.relname as tablename FROM ".$this::getTableName()." t, pg_class p WHERE t.tableoid = p.oid"; if($fl = !is_null($orders)) { $query .= "\nORDER BY "; foreach($orders as $col => $way) { $query .= (($fl) ? "" : ", ").$col ." ". $way; $fl = false; } } $query .= (!is_null($limit)) ? "\nLIMIT ".$limit : ""; $query .= (!is_null($offset)) ? "\nOFFSET ".$offset : ""; $sth = $dbh->query($query); $data = array(); while($res = $sth->fetch(\PDO::FETCH_ASSOC)) { $item = new $this(); foreach($res as $key => $val) { $item->$key = $val; } $data[] = $item; } $dbh = null; return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRows()\n {\n $query = $this->getQuery();\n \n if (!empty($this->columns)) {\n $query->select(implode(', ', $this->columns));\n }\n \n foreach ($this->sort as $key => $value) {\n $query->sortBy($key, $value);\n }\n \n if ($this->range) {\n $query->limit($this->start, $this->range);\n }\n \n if (!empty($this->group)) {\n $query->groupBy($this->group);\n }\n \n return $this->database->query($query, $this->database->getBinds());\n }", "function get_all(){\r\n\t\t$rows = array();\r\n\t\twhile($row = $this->get_row()){\r\n\t\t\t$rows[] = $row;\r\n\t\t}\r\n\t\treturn $rows;\r\n\t}", "public function getRows();", "public function getRows();", "public static function getAll()\n {\n $sql = sprintf(\n 'SELECT * FROM `%s` LIMIT :limitFrom, :perPage',\n static::getTableName()\n );\n $stmt = static::getConn()->prepare($sql);\n $stmt->bindValue(':limitFrom', static::LIMIT_FROM, \\PDO::PARAM_INT);\n $stmt->bindValue(':perPage', static::PER_PAGE, \\PDO::PARAM_INT);\n\n $stmt->execute();\n\n $info = $stmt->errorInfo();\n if ($info[0] !== \\PDO::ERR_NONE) {\n die('We have : ' . $info[2]);\n }\n\n return $stmt->fetchAll(\n \\PDO::FETCH_CLASS |\n \\PDO::FETCH_PROPS_LATE,\n get_called_class()\n );\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM \".$this->table;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll(PDO::FETCH_OBJ);\n \n }", "public function getAll()\n {\n $sql = \"SELECT * FROM `%s`\";\n $this->_sql[] = sprintf($sql, $this->_table);\n $this->_parameters[] = array();\n return $this->run();\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM $this->table\";\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetchAll();\n }", "public function fetchAll($params = [])\n { \n var_dump($params);\n return $this->table->tableGateway->select();\n }", "public static function all()\n {\n self::select(self::tableName());\n return self::fetchAll();\n }", "public function getAll()\r\n {\r\n $stmt = $this->conn->prepare(\"SELECT * FROM $this->table ORDER BY id DESC\");\r\n $stmt->execute();\r\n return $stmt->fetchAll(PDO::FETCH_ASSOC);\r\n }", "public function getAll(): array\n {\n $this->setReqSql(\"SELECT * FROM {$this->table}\");\n return $this->outCast($this->fetchAll());\n }", "public function getAll()\n {\n return $this->db->table($this->tableName)->select('*')->findAll();\n }", "public function fetchAll()\r\n {\r\n $sql = new Sql($this->dbAdapter);\r\n $select = $sql->select();\r\n $select\r\n ->from(array('a_s' => $this->table))\r\n ->order('a_s.sector_order ASC');\r\n \r\n $selectString = $sql->getSqlStringForSqlObject($select);\r\n $execute = $this->dbAdapter->query($selectString, Adapter::QUERY_MODE_EXECUTE);\r\n $result = $execute->toArray();\r\n return $result;\r\n }", "public function All()\n {\n $query = \"SELECT * FROM $this->table\";\n $result = $this->query($query);\n return $this->convertArray($result);\n }", "protected function tableRows()\n {\n $tbody = DB::table($this->argument('table'))->get();\n\n return $tbody->map(function ($field) {\n return $this->selectRowByField($field);\n });\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM \" . self::table . \";\";\n\n $conn = $this->dbc->Get();\n $statement = $conn->prepare($sql);\n $statement->execute();\n $data = $statement->fetchAll();\n $conn = null;\n\n return $data;\n }", "public function fetchAll(){\n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }", "function get_all( $limit = false, $offset = false ) {\n\n\t\t// where clause\n\t\t$this->custom_conds();\n\n\t\t// from table\n\t\t$this->db->from($this->table_name);\n\n\t\tif ( $limit ) {\n\t\t// if there is limit, set the limit\n\t\t\t\n\t\t\t$this->db->limit($limit);\n\t\t}\n\t\t\n\t\tif ( $offset ) {\n\t\t// if there is offset, set the offset,\n\t\t\t\n\t\t\t$this->db->offset($offset);\n\t\t}\n\t\t\n\t\treturn $this->db->get();\n\t}", "public function fetchAll(array $params = array(), $orderBy = '', $limit = '')\r\n {\r\n $rowSet = $this->getTable()->fetchAll($params,$orderBy,$limit);\r\n $resultSet = array();\r\n foreach($rowSet as $row){\r\n $sampleModel = new SampleModel();\r\n $this->_map($sampleModel, $row);\r\n $resultSet[] = $sampleModel;\r\n }\r\n return $resultSet;\r\n }", "public function getAll()\n {\n return $this->prepare(DB::findAll($this->table));\n }", "public function fetchAll()\n {\n return $this->tableGateway->select();\n }", "public function fetchAll()\n {\n return $this->tableGateway->select();\n }", "function get_all()\n {\n $this->db->order_by($this->id, $this->order);\n return $this->db->get($this->table)->result();\n }", "public function getAll()\n {\n $sql = \"SELECT * FROM Oto LIMIT15\";\n\n $stmt = $this->database->query($sql);\n return $stmt->fetchAll();\n\n }", "public function get_all() {\n $where = func_get_args();\n $this->_set_where($where);\n\n $this->_callbacks('before_get', array($where));\n\n if ($this->result_mode == 'object') {\n $result = $this->db->get($this->_table())->result();\n } else {\n $result = $this->db->get($this->_table())->result_array();\n }\n\n foreach ($result as &$row) {\n $row = $this->_callbacks('after_get', array($row));\n }\n\n return $result;\n }", "public function getAllRows($orderBy = '', $limit = 0, $offset = 0)\r\n\t{\r\n\t\t// Build SQL\r\n\t\t$sql = $this->makeSelectAndFrom();\r\n\t\r\n\t\t// Use default order by if not specified\r\n\t\tif (empty($orderBy))\r\n\t\t{\r\n\t\t\t$orderBy = $this->orderBy . ' ';\r\n\t\t}\r\n\t\t$orderBy = $this->applyBackticks($orderBy);\r\n\t\r\n\t\t$sql .= 'ORDER BY '.$orderBy . ' ';\r\n\t\r\n\t\tif ($limit > 0)\r\n\t\t{\r\n\t\t\t$sql .= ' LIMIT ' . $offset . ', '.$limit;\r\n\t\t}\r\n\t\t\r\n\t\t// Get data\r\n\t\t$result = $this->db->getData($sql, array());\r\n\r\n\t\treturn $result;\r\n\t}", "public function all(): ResultSetContract;", "public function fetchAll()\n { \n $resultSet = $this->tableGateway->select();\n return $resultSet;\n }", "public function queryAll() {\r\n $sql = \"SELECT * FROM $this->table\";\r\n $stmt = ConnectionFactory::prepare($sql);\r\n $stmt->execute();\r\n return $stmt->fetchAll();\r\n }", "public function get(){\n $this->query = \"SELECT \".$this->select.\" FROM $this->table WHERE \";\n $wheres = $this->mergeWhere().\" OR \".$this->mergeOrWhere();\n $query = $this->query.$wheres;\n $statement = $this->prepare($query);\n $statement->execute($this->bindings);\n return $statement->fetchAll();\n }", "function get_all_records(){\n\t\tglobal $db;\n\t\t$sql=\"SELECT * FROM $this->table order by id asc\";\n\t\t$db->query($sql);\n\t\t$row=$db->fetch_assoc_all();\n\t\treturn $row;\n\t}", "public function all()\r\n {\r\n return $this->db->table($this->table)->get();\r\n }", "public function fetchAll() {\n $this->execute();\n return $this->stmt->fetchAll(PDO::FETCH_OBJ);\n }", "public function all()\n {\n $sql = \"SELECT * FROM {$this->table()}\";\n return $this->db->query($sql)->fetchAll();\n }", "public function getAll() {\n return $this->db->getAllFromTable($this->table);\n }", "public function findAll(): array {\n $tableName = static::tableName();\n $st = self::prepare(\n \"SELECT * FROM $tableName\"\n );\n $st->execute();\n \n return $st->fetchAll(\\PDO::FETCH_OBJ);\n }", "public function fetchAll() {\n\t\t$queryBuilder = $this->db->createQueryBuilder();\n\t\t$queryBuilder\n\t\t\t->select('*')\n\t\t\t->from($this->table_name, 't1')\n\t\t;\n\t\t$result = $queryBuilder->execute()->fetchAll();\n\n\t\treturn $result;\n\t}", "public function table_get_all($table);", "public function GetAllRows() : ARRAY\r\n {\r\n return($this->preparedStatement->fetchAll(\\PDO::FETCH_ASSOC));\r\n }", "protected function getAll()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetchAll($statement);\n }", "public function getRows($limit, $offset, $orderBy = null, $sord = null, array $filters = array())\n {\n return array(\n array(\"column1\" => \"1-1\", \"column2\" => \"1-2\", \"column3\" => \"1-3\", \"column4\" => \"1-4\", \"column5\" => \"1-5\"),\n array(\"column1\" => \"2-1\", \"column2\" => \"2-2\", \"column3\" => \"2-3\", \"column4\" => \"2-4\", \"column5\" => \"2-5\"),\n array(\"column1\" => \"3-1\", \"column2\" => \"3-2\", \"column3\" => \"3-3\", \"column4\" => \"3-4\", \"column5\" => \"3-5\"),\n array(\"column1\" => \"4-1\", \"column2\" => \"4-2\", \"column3\" => \"4-3\", \"column4\" => \"4-4\", \"column5\" => \"4-5\"),\n array(\"column1\" => \"5-1\", \"column2\" => \"5-2\", \"column3\" => \"5-3\", \"column4\" => \"5-4\", \"column5\" => \"5-5\"),\n );\n }", "public function getAll()\r\n {\r\n $data = $this->select()\r\n ->from($this->_name);\r\n return $this->fetchAll($data);\r\n }", "public function fetchAll()\n {\n // LEFT JOIN patient ON patient.patientId = doc_calendar.patientId\n $select = new \\Zend\\Db\\Sql\\Select ;\n $select->from('doc_calendar');\n $user_session = new Container('user');\n\n $select->where(\" doc_calendar.doctorId = '{$user_session['user']->getId()}'\");\n $select->join(array(\"p\" => \"patient\"), \"doc_calendar.patientId = p.patientId\");\n\n $dbAdapter = $this->tableGateway->getAdapter();\n $statement = $dbAdapter->createStatement();\n\n $select->prepareStatement($dbAdapter, $statement);\n $driverResult = $statement->execute(); // execute statement to get result\n\n $resultSet = new ResultSet();\n $resultSet->initialize($driverResult);\n $rows = array();\n foreach($resultSet as $row) {\n $rows[] = $row->getArrayCopy();\n }\n\n return $rows;\n }", "static function selectAll() : Array {\r\n $selectAll = \"SELECT * FROM Orders;\";\r\n\r\n self::$db->query($selectAll);\r\n self::$db->execute();\r\n return self::$db->resultSet();\r\n }", "public function fetchAll()\r\n {\r\n $this->query();\r\n return $this->sth->fetchAll();\r\n }", "function getAll($limit = 20){\n $query = $this->db->get($this->table, $limit);\n if($query->num_rows() > 0 ){\n foreach ($query->result() as $row){\n $data[] = $row;\n }\n return $data;\n }\n }", "public function getAll(){\n\t\treturn $this->db->get($this->table);\n\t}", "public function getAllOrang(){\n $this->db->query('SELECT * FROM ' . $this->table);\n return $this->db->resultSet();\n }", "abstract public function get_rows();", "public function all()\n {\n return $this->orderBy('id', 'DESC')->fetchAll($this->table);\n }", "public function fetchAll(){\n $adapter = $this->adapter;\n $sql = new Sql($this->adapter);\n $select = $sql->select();\n $select->from('flota');\n $selectString = $sql->getSqlStringForSqlObject($select);\n $data = $adapter->query($selectString, $adapter::QUERY_MODE_EXECUTE);\n \n return $data;\n }", "public static function getAll(){\n\t\t$sql = \"select * from \".self::$tablename;\n\t\t$query = Executor::doit($sql);\n\t\treturn Model::many($query[0],new TemparioData());\n\t}", "public abstract function fetchAll($table);", "public static function find_all(){\n $result = array();\n static::setConnection();\n $keyColumn = static::$keyColumn;\n $table = static::$table;\n $sql = \"SELECT * FROM \".$table.\" ORDER BY \".$keyColumn.\" DESC\";\n $res = mysqli_query(static::$conn,$sql);\n while($row = mysqli_fetch_object($res,get_called_class())){\n $result[] = $row;\n }\n return $result;\n }", "public function all()\n {\n $records = R::findAll( $this->table_name(), \" order by id \");\n\n $object = array_map( function($each_record) {\n return $this->map_reford_to_object( $each_record );\n },\n $records\n );\n\n return array_values( $object );\n }", "function get_all()\n {\n return $this->db->get($this->table)->result();\n }", "public function fetchAll(){\r\n$table=$this->getTable();\r\nreturn $this->fetch_array($this->query(\"SELECT * FROM {$table}\"));\r\n}", "public function getAll() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n # close connection\n Connection::disconnect();\n\n return $prepareStatement->fetchAll($this->fetch);\n }", "public function getColumns(){\n $rows = array();\n return $rows; \n }", "public function getAll(){\n try{\n $sql = \"SELECT * FROM {$this->tabela}\";\n $stm = $this->pdo->prepare($sql);\n $stm->execute();\n $dados = $stm->fetchAll(PDO::FETCH_OBJ);\n return $dados;\n }catch(PDOException $erro){\n echo \"<script>alert('Erro na linha: {$erro->getLine()}')</script>\";\n }\n }", "abstract protected function getRows();", "public function getAllByTable($connection, $tablename, $select, $limit, $offset, $where);", "public static function getAll() {\n $entities = [];\n $sqlResult = DatabaseConnection::getResult(\"SELECT * FROM \" . static::$table);\n\n foreach($sqlResult as $row) {\n $object = new static();\n foreach($row as $property => $value) {\n $object -> $property = $value;\n }\n\n $entities[] = $object;\n }\n\n return $entities;\n }", "function selectAll() {\n $query = $this->getStatement(\n \"SELECT * FROM `$this->table` WHERE 1 ORDER BY id\"\n );\n $query->execute();\n return $query->fetchAll();\n }", "public function fetchAll()\n {\n $this->execute();\n return $this->dbStmt->fetchAll(PDO::FETCH_ASSOC);\n }", "public function getAll()\n {\n return $this->queryBuilder->select($this->table);\n }", "public function getByCols($tableName = false, array $ands = null, array $ors = null, array $orders = null, $limit = null, $offset = null) {\n\t\t$dbh = App::getDatabase()->connect();\n\n\t\tif($fl = !$tableName)\n\t\t\t$query = \"SELECT * FROM \".$this::getTableName();\n\t\telse\n\t\t\t$query = \"SELECT t.*, p.relname as tablename\n\t\t\t\t\t FROM \".$this::getTableName().\" t, pg_class p\n\t\t\t\t\t WHERE t.tableoid = p.oid\";\n\n\t\tif(!is_null($ands)) {\n\t\t\tforeach($ands as $col => $and) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"AND\").\" \".$col.\" \".$and['operator'].\" \".(($and['value'] === \"null\") ? $and['value'] : \"'\".$and['value'].\"'\");\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\tif(!is_null($ors)) {\n\t\t\tforeach($ors as $col => $or) {\n\t\t\t\t$query .= \"\\n\".(($fl) ? \"WHERE\" : \"OR\").\" \".$col.\" \".$or['operator'].\" \".(($or['value'] === \"null\") ? $or['value'] : \"'\".$or['value'].\"'\");\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\tif($fl = !is_null($orders)) {\n\t\t\t$query .= \"\\nORDER BY \";\n\t\t\tforeach($orders as $col => $way) {\n\t\t\t\t$query .= (($fl) ? \"\" : \", \").$col .\" \". $way;\n\t\t\t\t$fl = false;\n\t\t\t}\n\t\t}\n\n\t\t$query .= (!is_null($limit)) ? \"\\nLIMIT \".$limit : \"\";\n\t\t$query .= (!is_null($offset)) ? \"\\nOFFSET \".$offset : \"\";\n\n\t\t$sth = $dbh->query($query);\n\n\t\t$data = array();\n\t\twhile($res = $sth->fetch(\\PDO::FETCH_ASSOC)) {\n\t\t\t$item = new $this();\n\t\t\tforeach($res as $key => $val) {\n\t\t\t\t$item->$key = $val;\n\t\t\t}\n\t\t\t$data[] = $item;\n\t\t}\n\n\t\t$dbh = null;\n\t\treturn $data;\n\t}", "public function fetchAll() {\r\n\t\treturn $this->getMapper()->fetchAll();\r\n\t\t\r\n\t}", "public function all($params = null)\n {\n $query = $this->db->prepare(\"SELECT * FROM `$this->tableName`\");\n\n $result = $query->execute();\n\n //maybe there is a reason to make only !empty().\n if (!empty($result) && $result)\n {\n return $query->fetchAll(\\PDO::FETCH_ASSOC);\n } else {\n var_dump($query);\n }\n\n }", "public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }", "public function findAll(){\n \n\t\t$sql = 'SELECT * FROM ' . self::TABLENAME;\n\n \t$db = new Database(); // se creeaza conexiunea la baza de date\n\t\t$stmt = $db->getConnection()->prepare($sql);\n\t\t$stmt->execute();\n\t\t$results = $stmt->fetchAll();\n\t\n\t\treturn $results; \n }", "public function get(array $param = array('table'=>'','columns'=>0,'condition'=>[],'orderBy'=>'','direction'=>'','offset'=>0,'limit'=>0)) {\n\n // (REQUIRED) name of table\n $tableName = isset($param['table']) ? $param['table'] : '';\n // (OPTIONAL) array of columns to be enter e.g. ['column','column',...]\n $arrColumns = isset($param['columns']) ? $param['columns'] : 0;\n // (OPTIONAL) multi dimensional array e.g. [['key','operator','value'],['key','operator','value'],...]\n $arrCondition = isset($param['condition']) ? $param['condition'] : [];\n // (OPTIONAL) name of column to be order with\n $orderBy = isset($param['orderBy']) ? $param['orderBy'] : '';\n // (OPTIONAL) 'asc' or 'desc' for ascending or defending\n $direction = isset($param['direction']) ? $param['direction'] : '';\n // (OPTIONAL) offset\n $offset = isset($param['offset']) ? $param['offset'] : 0;\n // (OPTIONAL) limit, REQUIRED with offset\n $limit = isset($param['limit']) ? $param['limit'] : 0;\n\n // $columns = ( count( $arrColumns ) > 0 ) ? \"`\" . implode(\"`,`\", $arrColumns ) . \"`\" : \"*\";\n $columns = ( count( $arrColumns ) > 0 ) ? implode(\",\", $arrColumns ) : \"*\";\n $whereCondition = \"\";\n $arrConditionValues = [];\n\n if( count($arrCondition) > 0 ) {\n foreach( $arrCondition as $col ) {\n if( count( $col ) == 2 ) {\n array_push( $arrConditionValues, $col[1] );\n $whereCondition .= \"`\" . $col[0] . \"` = ?\";\n } else if( count( $col ) == 3 ) {\n array_push( $arrConditionValues, $col[2] );\n $whereCondition .= \"`\" . $col[0] . \"` \" . $col[1] . \" ?\";\n } else {\n // error\n }\n $whereCondition .= \" AND \";\n }\n }\n\n if( $whereCondition != \"\" ) {\n $whereCondition = \" WHERE \" . substr($whereCondition, 0, -4);\n }\n\n $strOrder = \"\";\n\n if( !empty($orderBy) && !empty($direction) ) {\n $strOrder = \" ORDER BY `\".$orderBy.\"` \".$direction.\" \";\n }\n\n $strLimit = \"\";\n $strOffset = \"\";\n\n if( !empty($limit) ) {\n $strLimit = \" LIMIT \".$limit;\n }\n\n if( !empty($limit) && !empty($offset) ) {\n $strOffset = \" OFFSET \".$offset;\n }\n\n $strQry = \"SELECT \" . $columns . \" FROM `\".$tableName.\"`\" . $whereCondition . $strOrder . $strLimit . $strOffset;\n\n // print_r( $strQry ); die;\n\n $insert_values = $arrConditionValues;\n\n $pdo = $this->getConnection();\n $this->stmt = $pdo->prepare($strQry);\n $executed = $this->stmt->execute($insert_values);\n if( $executed ) {\n $count = $this->stmt->rowCount(); // effected rows if updated with same value\n $result = $this->stmt->fetchAll();\n \n if( count($result) > 0 ) {\n // echo count($result) . ' record(s) found.<br>';\n return [\n 'success' => true,\n 'message' => $count . ' record(s) found.',\n 'data' => $result,\n ];\n } else {\n return [\n 'success' => false,\n 'message' => 'fails to get record(s)',\n 'data' => null,\n ];\n }\n } else {\n return [\n 'success' => false,\n 'message' => 'fails to get record(s)',\n 'data' => null,\n ];\n }\n\n $this->stmt = null;\n die;\n }", "public function findAll() {\r\n $sql = \"SELECT * FROM $this->tabela\";\r\n $stm = DB::prepare($sql);\r\n $stm->execute();\r\n return $stm->fetchAll();\r\n }", "public static function getAll() {\n $conn = self::connect();\n $row = $conn->getAll(self::baseQuery());\n return $row;\n }", "public function getAll($columns);", "public function all()\n {\n $prepSql = \"SELECT {$this->_columnNames} FROM `{$this->_tableName}`\";\n $pstmt = $this->_prepare($prepSql);\n\n $pstmt->execute();\n\n $resultSet = $pstmt->fetchAll(\\PDO::FETCH_ASSOC);\n $pstmt->closeCursor();\n\n $collection = [];\n foreach ($resultSet as $dbRecord) {\n $entity = $this->_toEntity($dbRecord);\n $collection[] = $entity;\n }\n return $collection;\n }", "public function fetchAll() {\n\n if (!$this->results) {\n\n $this->results = [];\n while ($row = $this->nextRow()) {\n $this->results[] = $row;\n }\n\n }\n\n return $this->results;\n }", "function get()\n\t{\n\t\tif (empty($this->use_db)) $this->use_db = false; //use default connection\n\t\t$this->sql = 'SELECT * FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\t$this->apply_sort();\n\t\treturn $this->fetch_records();\n\t}", "public function fetchAll()\n {\n $result = $this->select();\n return $result;\n }", "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t ;\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "public function get(array $columns = ['*'], int $limit = 0, int $offset = 0);", "public function fetchRowset()\n\t{\n\t\t$this->_query();\n\n\t\treturn $this->stmt->fetchAll(\\PDO::FETCH_ASSOC);\n\t}", "public function get_rows()\n {\n $lock = !empty($this->configs['rows_edit']) && $this->configs['rows_edit'] == 1 ? true : false;\n\n $tables = $this->file->sheets->first()->tables;\n\n list($query, $power) = $this->get_rows_query($tables);\n\n $head = $tables[0]->columns->map(function($column) { return 'C' . $column->id; })->toArray();\n\n if (Input::has('search.text') && Input::has('search.column_id')) {\n $query->where('C' . Input::get('search.column_id'), Input::get('search.text'));\n }\n\n $query->whereNull('deleted_at')->select($head)->addSelect('id');\n\n $paginate = $this->isCreater()\n ? $query->addSelect('created_by')->paginate(15)\n : $query->where('created_by', $this->user->id)->paginate(15);\n\n $encrypts = $tables[0]->columns->filter(function($column) { return $column->encrypt; });\n\n if (!$encrypts->isEmpty()) {\n $paginate->getCollection()->each(function($row) use($encrypts) {\n $this->setEncrypts($row, $encrypts);\n });\n }\n return ['paginate' => $paginate->toArray(),'lock' => $lock];\n }", "public function getRecords()\n {\n $result = $this->fetchAll($this->select()->order('id ASC'))->toArray();\n return $result;\n }", "public function all()\n {\n return $this->db->query('SELECT * FROM '.$this->table.' ORDER by created_at DESC')->get();\n }", "public static function getAll()\n {\n\n $sql = 'SELECT * FROM ' . static::$tableName;\n $stm = Db::getInstance()->prepare($sql);\n\n if ($stm->execute() === true) {\n $ob = $stm->fetchAll(\\PDO::FETCH_CLASS | \\PDO::FETCH_PROPS_LATE, get_called_class(), array_keys(static::viewTableSchema()));\n return $ob;\n } else {\n return false;\n }\n }", "function fetchAll()\n {\n $rows=array();\n if ($this->consulta)\n {\n //la funcion oci_fetch_array devuelve cada fila de la consulta en forma de array\n while($row = oci_fetch_array($this->consulta, OCI_BOTH))\n { //luego cada fila (como un array) se agrega a otro array... creando un array de 2 dimsnesiones\n $rows[]=$row;\n }\n }\n return $rows;\n }", "public static function findAll()\n\t\t{\n\t\t\t$tb = self::get('tabla') ;\n\t\t\t\n\t\t\treturn Database::getInstance()\n\t\t\t\t\t->query(\"SELECT * FROM $tb ;\")\n\t\t\t\t\t->getObjects(get_called_class()) ;\n\t\t}", "public function findAll() {\r\n$sql = \"SELECT * FROM $this->tabela\";\r\n$stm = DB::prepare($sql);\r\n$stm->execute();\r\nreturn $stm->fetchAll();\r\n}", "public function fetchAll();", "public function fetchAll();", "public function fetchAll();", "public function fetchAll();", "public function readAll(){\n $rq = \"SELECT * FROM Objets\";\n $stmt = $this->pdo->prepare($rq);\n $data = array();\n if(!$stmt->execute($data)){\n throw new Exception($pdo->errorInfo());\n }\n return $result = $stmt->fetchAll();\n }", "function getallrecordbytablename($tablename,$data,$limit = '', $offset = '', $sortby = '', $orderby = '',$conditionarray='')\n {\n \n $this->db->order_by($sortby,$orderby);\n\t\t\n //Setting Limit for Paging\n if( $limit != '' && $offset == 0)\n { $this->db->limit($limit); }\n else if( $limit != '' && $offset != 0)\n {\t$this->db->limit($limit, $offset);\t}\n\n //Executing Query\n $this->db->select($data);\n $this->db->from($tablename);\n if($conditionarray!='')\n {\n $this->db->where($conditionarray);\n }\n $query = $this->db->get();\n if ($query->num_rows() > 0)\n {\n return $query->result_array();\n }\n else\n {\n return array();\n }\n \n }", "public function get(){\n\n if(is_null($this->columns)) $this->columns = ['*'];\n $select_statement = $this->grammer->compileSelect($this);\n \n \n $result = $this->connection->get($select_statement); \n \n if(!empty($this->model)){\n \n return $this->return_results_objects($result);\n\n }else{\n \n return $this->return_result_as_array($result);\n }\n \n }", "public function fetchAll() {\n\t\t$rows = array();//Default\n\t\t//SQL\n\t\t$sql = \"SELECT * FROM `$this->table` WHERE 1 ORDER BY sort_order, uuid ASC\";\n\t\t// excecute SQL statement\n\t\t$result = mysqli_query ( $this->adapter, $sql );\n\t\tif (mysqli_num_rows($result) > 0) {\n\t\t\t// output data of each row\n\t\t\twhile($row = mysqli_fetch_assoc($result)){\n\t\t\t\t$row['done'] = $row['done'] == 0 ? false : true;\n\t\t\t\t$rows[] = $row;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $rows;\t\t\n\t}", "public function fetchAll(){\n $sql = \"SELECT * FROM reservation \";\n $result = $this->connection()->query($sql);\n if ($result->rowCount()>0){\n while($rows = $result->fetch()){\n $data [] = $rows;\n }return $data;\n }\n }", "public function selectAll(): array\n {\n return $this->pdoConnection->query('SELECT * FROM ' . $this->table, \\PDO::FETCH_CLASS, $this->className)->fetchAll();\n }" ]
[ "0.7245421", "0.6985428", "0.69124854", "0.69124854", "0.6891763", "0.68890023", "0.68621093", "0.6773292", "0.6754158", "0.6750998", "0.67003226", "0.66909957", "0.6679306", "0.66785383", "0.6667876", "0.6661348", "0.6652325", "0.6645417", "0.6632907", "0.66143644", "0.66110253", "0.66077834", "0.66077834", "0.66057134", "0.6605633", "0.6604764", "0.65923536", "0.6588194", "0.65528786", "0.6542152", "0.653378", "0.65289855", "0.6524987", "0.65156275", "0.6501765", "0.6493207", "0.64834535", "0.6482898", "0.64676046", "0.6466954", "0.646479", "0.6463891", "0.64632833", "0.64606506", "0.6450771", "0.6448178", "0.64470077", "0.6437667", "0.64342695", "0.6432674", "0.6417675", "0.6410444", "0.6407236", "0.6392055", "0.63897884", "0.6383769", "0.6381637", "0.6381591", "0.637219", "0.6365495", "0.63386786", "0.63279736", "0.632011", "0.63100743", "0.63090074", "0.6295599", "0.62944657", "0.6290056", "0.62888956", "0.6279984", "0.6278221", "0.6278221", "0.62768376", "0.6270624", "0.6267765", "0.62549037", "0.62544334", "0.62513745", "0.62422097", "0.6233345", "0.62129354", "0.6206554", "0.6202688", "0.62002087", "0.6200105", "0.61955756", "0.61954343", "0.61949337", "0.6192256", "0.61869395", "0.6185704", "0.6185704", "0.6185704", "0.6185704", "0.61847395", "0.6180691", "0.61802644", "0.61718327", "0.61564404", "0.6147223" ]
0.64949983
35
Attempt to count elements in a table Restrictions are not mandatory.
public function count(array $ands = null, array $ors = null) { $dbh = App::getDatabase()->connect(); $query = "SELECT COUNT(*) FROM ".$this::getTableName(); $fl = !(is_null($ands)&&is_null($ors)); if(!is_null($ands)) { foreach($ands as $col => $and) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$col." ".$and['operator']." ".(($and['value'] === "null") ? $and['value'] : "'".$and['value']."'"); $fl = false; } } if(!is_null($ors)) { foreach($ors as $col => $or) { $query .= "\n".(($fl) ? "WHERE" : "OR")." ".$col." ".$or['operator']." ".(($or['value'] === "null") ? $or['value'] : "'".$or['value']."'"); $fl = false; } } $sth = $dbh->query($query); $data = $sth->fetch(\PDO::FETCH_ASSOC)['count']; $dbh = null; return (int) $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function countTable();", "public function count( $table, $conditions=array());", "function countProducts() {\r\n global $tableProducts;\r\n\r\n return countFields($tableProducts);\r\n}", "public function getCountRowsOfTable ($tableName,$fieldname='*');", "public function count_filtered(){\n $this->datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public function count() {\n if($this->count === false) {\n if (is_object($this->table)) {\n $this->count = 1;\n } elseif (is_array($this->table)) {\n $this->count = count($this->table);\n } else {\n $this->count = 0;\n }\n }\n return $this->count;\n }", "public function count($criterio=\"\");", "function count_filtered()\n {\n $this->_get_datatables_query();\n $query = $this->db->get();\n return $query->num_rows();\n }", "public abstract function row_count();", "abstract public function count();", "abstract public function count();", "abstract public function count();", "abstract public function count();", "public function countQuery();", "function RowCount() {}", "public function countEntities(): int;", "public abstract function count();", "public abstract function count();", "public abstract function field_count();", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM grupo_usuario_tabelas '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "function getDataCount($table, $condition, $params){\n\t\ttry {\n\t\t\t$sql = \"SELECT COUNT(*) FROM $table \";\n\t\t\tif($condition && !empty($condition)){\n\t\t\t\t$sql .= \" WHERE $condition\";\n\t\t\t}\n\t\t\t$query = $this->executeQuery($sql, $params);\n\t\t\t$count = intVal($query->fetchColumn());\n\t\t}catch(Exception $e){\n\t\t\t$this->logger->error($sql, $e->getMessage());\n\t\t\tthrow $e;\n\t\t}\n\t\treturn $count;\n\t}", "public function getNumTables() {}", "public function getNumTables() {}", "public function getNumTables() {}", "public function getEntriesCountForTable($table);", "public function countEtat_compte(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "public function numOfRows();", "private function getCountFilteredResults()\n {\n $qb = $this->em->createQueryBuilder();\n $qb->select('count(distinct ' . $this->tableName . '.' . $this->rootEntityIdentifier . ')');\n $qb->from($this->metadata->getName(), $this->tableName);\n\n $this->setLeftJoin($qb);\n $this->setWhere($qb);\n $this->setWhereCallbacks($qb);\n\n return (int) $qb->getQuery()->getSingleScalarResult();\n }", "function countRows($tableName,$conditions=\"\",$fields=\"*\"){\r\n\t\tif(isset($tableName)&& trim($tableName)!=''){\t\t//table Contains value Or Not\r\n\t\t\tif(isset($conditions)){\r\n\t\t\t\t$this->db->where($conditions);\t\r\n\t\t\t}\r\n\t\t\t$query=\"SELECT \".$fields .\" FROM \". $tableName .\" WHERE \".$conditions;\r\n\t\t\t$result = mysql_query($query);\r\n\t\t\treturn(mysql_num_rows($result));\r\n\t\t}\r\n\t}", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function count();", "public function _count();", "public function countProduit(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n return $this->db->getRows(array(\"return_type\"=>\"count\"));\n\t\t\t\t\t }", "function getTableLength($table, $where=\"\"){\n return sqlSelectOne(\"SELECT COUNT(*) as count FROM $table $where\", 'count');\n}", "public function getFieldCount() {}", "public function count() {\n return count($this->__rows__);\n }", "function count()\n {\n $retval = 0;\n $key = $this->object->get_primary_key_column();\n $results = $this->object->run_query(\"SELECT COUNT(`{$key}`) AS `{$key}` FROM `{$this->object->get_table_name()}`\");\n if ($results && isset($results[0]->{$key})) {\n $retval = (int) $results[0]->{$key};\n }\n return $retval;\n }", "abstract public function prepareFilteredCount();", "function Aulaencuesta_Get_Total_Items_In_table() \n{\n global $DB;\n $sql = \"SELECT count(*) as items FROM mdl_aulaencuesta\";\n return $DB->get_record_sql($sql, null);\n}", "public static function count($table,$filter = null){\n if($filter){ $filter = ' WHERE '.$filter; }\n $res = Db::query(\"SELECT COUNT(*) as rows FROM {$table}\".$filter);\n if(!$res){return 0;}\n $row = $res->fetch_assoc();\n return $row['rows'];\n }", "public function countBy($criteria);", "public abstract function GetFieldCount();", "public function numFields();", "static function get_Count($table) {\r\n $rekete = \"SELECT COUNT(*) as NOMBRE FROM \" . $table;\r\n $result = Functions::commit_sql($rekete, \"\");\r\n $list = $result->fetch();\r\n if ($list[\"NOMBRE\"] != NULL)\r\n return $list[\"NOMBRE\"];\r\n else\r\n return 0;\r\n }", "public function countItems();", "public function numOfFields();", "public function count_Row($columnCount,$condition,$table){\n\n if($condition != \"\"){\n\n\t\t\t\t $stmt = $this->dbstatus->prepare(\"Select \".$columnCount.\" From \".$table.\" WHERE \".$condition.\"\");\n\n\t\t\t $stmt->execute();\n\n\t\t\t if($stmt->rowCount() > 0){\n\n\t\t\t $get = $stmt->fetchObject();\n\n\t\t\t\t return $get->$columnCount;\n\n\t\t\t }else{\n\n\t\t\t\t return 0;\n\n\t\t\t }\n\n\n\t\t}else{\n\n\t\t\t $stmt = $this->dbstatus->prepare(\"Select \".$columnCount.\" From \".$table.\"\");\n\n\t\t\t $stmt->execute();\n\n\t\t\t if($stmt->rowCount() > 0){\n\n\t\t\t\t $get = $stmt->fetchObject();\n\n\t\t\t\t return $get->$columnCount;\n\n\t\t\t }else{\n\n\t\t\t\t return 0;\n\n\t\t\t }\n\n\t\t}\n\n}", "function getDataCount($table='',$selFields = '*',$where='') \t{\n\t\t$query \t= 'SELECT COUNT('.$selFields.') AS cnt FROM ' . $this->tablePrefix . $table .' ' .$where;\t\t\t\t \n \t\t\n \t\treturn $this->fetchOne($this->execute($query));\n\t}", "function getNumRowsData($data,$table)\n {\n $this->db->where(array('role_id'=>$data));\n return $this->db->count_all_results($table);\n }", "abstract public function getNumRows();", "abstract public function getNumRows();", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM aluno '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "public function numberOfFields();", "function Count($start=0,$slice=0) {\n \n $query=$this->initQuery($start,$slice,\"\",true);\n $this->res_type=\"TABLE\";\n $err = $this->basic_elem->exec_query($query);\n\n //\tprint \"$query $res_type $p_query<BR>\\n\";\n if ($err != \"\") return($err); \n\n $result = $this->basic_elem->fetch_array(0);\n return ($result[\"count\"]); \n }", "#[\\ReturnTypeWillChange]\n public function count() {\n return count($this->all());\n }", "abstract public function NumRows();", "public function countAll() {}", "public function countAll() {}", "public function countAll() {}", "public function numberOfRows();", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "function getTableSize(){\n\t\t $db = $this->startDB();\n\t\t \n\t\t $sql = \"SELECT count(id) as IDcount\n\t\t FROM \".$this->penelopeTabID.\"\n\t\t \";\n\t\t \n\t\t $result = $db->fetchAll($sql);\n\t\t if($result){\n\t\t\t\t$this->recordCount = $result[0][\"IDcount\"]+0;\n\t\t }\n\t\t else{\n\t\t\t\treturn false;\n\t\t }\n\t }", "public function count($col);", "public function getCant() {\n\t\treturn $this->db->count_all ( self::TABLE_NAME );\n\t}", "function count_filtered($tablename,$orderkey,$orderdir,$columns)\n\t{\n\t\t$this->_get_datatables_query($tablename,$orderkey,$orderdir,$columns);\n\t\t$query = $this->db->get();\n\t\treturn $query->num_rows();\n\t}", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM ano_letivo '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "function count_all() {\n\t\t// from table\n\t\t$this->db->from( $this->table_name );\n\n\t\t// where clause\n\t\t$this->custom_conds();\n\n\t\t// return the count all results\n\t\treturn $this->db->count_all_results();\n\t}", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "public function countAll(): int;", "public function CountRow()\n\t{\n\treturn HDB::hus()->Hcount(\"mailingdataavmedgroupinvoicesrecord30\");\n\t}", "public function getCount() {\n return $this->db->fetchColumn(\"SELECT COUNT(id) FROM $this->table\");\n }", "public function count($criterio=\"\"){\n\t\t$sql = 'SELECT COUNT(id) AS qtd FROM compra_coletiva '.$criterio.'';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\t$rs=$this->execute($sqlQuery);\n return $rs[0][\"qtd\"];\n\t}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}", "public function count() {}" ]
[ "0.729941", "0.65781695", "0.62975967", "0.6290976", "0.62602705", "0.62396646", "0.6234064", "0.6228106", "0.6177113", "0.6156267", "0.6156267", "0.6156267", "0.6156267", "0.6126234", "0.61087793", "0.61008966", "0.60946935", "0.60946935", "0.6037523", "0.59925574", "0.5980163", "0.59656996", "0.59656996", "0.59656996", "0.59648645", "0.5964313", "0.5933772", "0.59312505", "0.58975244", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5893862", "0.5879947", "0.58784604", "0.58468986", "0.5846086", "0.58418256", "0.58203435", "0.5818291", "0.5811808", "0.5805539", "0.5792291", "0.5791441", "0.57877845", "0.57503253", "0.574091", "0.5738785", "0.57381314", "0.5730631", "0.57295954", "0.57287407", "0.57287407", "0.57247365", "0.5722576", "0.57224685", "0.5722325", "0.5720411", "0.57177097", "0.57177097", "0.57177097", "0.5712518", "0.57091266", "0.5701693", "0.5698654", "0.5697285", "0.5694947", "0.5694334", "0.56846136", "0.5677139", "0.56721795", "0.5667856", "0.5664196", "0.56575936", "0.5656305", "0.5656305", "0.5656305", "0.5656305", "0.5656305", "0.5656305", "0.5656305", "0.5656305", "0.5656305" ]
0.0
-1
Attempt to get a single element in the database and put its data in the current object Also return the current object. Can retrieve the tableName of the object; Null data are returned if nothing is found
public function getById(array $id, $tableName = false) { $dbh = App::getDatabase()->connect(); if($fl = !$tableName) $query = "SELECT * FROM ".$this::getTableName(); else $query = "SELECT t.*, p.relname as tablename FROM ".$this::getTableName()." t, pg_class p WHERE t.tableoid = p.oid"; foreach($this::getPrimaries() as $pk) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$pk." = '".$id[$pk]."'"; $fl = false; } $sth = $dbh->query($query); $res = $sth->fetch(\PDO::FETCH_ASSOC); foreach($res as $key=>$val) { $this->$key = $val; } $dbh = null; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function current()\n\t{\n\t\t$row = $this->databaseResult->current();\n\n\t\tif ($row === null) {\n\t\t\treturn null;\n\t\t}\n\n\t\t$entity = clone $this->baseEntity;\n\n\t\t$tableName = $entity->getEntityTableName();\n\n\t\t$entityData = $this->getValuesByKeyPrefix($row, \"{$tableName}:\");\n\n\t\t$entity->hydrateEntity($entityData);\n\t\t$entity->setDatabase($this->databaseConnection);\n\n\t\tif ($entity instanceof RelatedEntity) {\n\n\t\t\t$relationships = $entity->getEntityRelationships();\n\n\t\t\tforeach ($relationships as $relationship) {\n\t\t\t\t\n\t\t\t\t$data = $this->getValuesByKeyPrefix($row, \"{$relationship['name']}:\");\n\n\t\t\t\tif (empty($data)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$relatedEntity = new $relationship['class'];\n\t\t\t\t$relatedEntity->hydrateEntity($data);\n\t\t\t\t$relatedEntity->setDatabase($this->databaseConnection);\n\t\t\t\t\n\t\t\t\t$entity->setRelatedEntity($relationship['name'], $relatedEntity);\n\n\t\t\t\t// TODO: link related entity back to entity\n\t\t\t}\n\n\t\t}\n\n\t\treturn $entity;\n\t}", "public function single(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetch(PDO::FETCH_OBJ);\n\t}", "public function getObject()\n {\n $object = Doctrine::getTable($this->getModel())->findOneById($this->getModelId());\n\n return $object;\n }", "public function single(){\r\n $this->execute();\r\n return $this->stmt->fetch(PDO::FETCH_OBJ);\r\n }", "function readOne(){\n\t $query = \"SELECT * FROM \" . $this->table_name . \" WHERE id = ? LIMIT 0,1\";\n\t // prepare query statement\n\t $stmt = $this->conn->prepare( $query );\n\t // sanitize\n\t $this->id=htmlspecialchars(strip_tags($this->id));\n\t // bind product id value\n\t $stmt->bindParam(1, $this->id);\n\t // execute query\n\t $stmt->execute();\n\t // get row values\n\t $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t // assign retrieved row value to object properties\n\t $this->id = $row['id'];\n\t $this->created = $row['created'];\n\t $this->modified = $row['modified'];\n\t}", "public function single()\n\t{\n\t\t$this->execute();\n\t\treturn $this->stm->fetch(PDO::FETCH_OBJ);\n\t}", "public function single() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "public function getEntity()\n\t{\n\t\treturn $this->hasKey() ? $this->database->find($this->key) : null;\n\t}", "protected function getOne()\n {\n $statement = $this->connection->query($this->sqlToString());\n return $this->fetch($statement);\n }", "public function findOne() {\n return parent::findOne();\n }", "public function __get($table){\n if(!isset($this->dbORM[$table])){\n $this->dbORM[$table] = new DBObject(compact('table')); //Create a new object using the table name \n }\n \n return $this->dbORM[$table];\n }", "public function fetchSingle() {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_OBJ);\n }", "public function single()\n {\n $this->executeQuery($this->statement);\n return $this->fetch($this->statement);\n }", "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n t.name as type_name, p.id, p.name, p.soluong, p.gia, p.avatar, p.category, p.type, p.content, p.created_at, p.updated_at\n FROM\n \" . $this->table_name . \" p\n LEFT JOIN\n type t\n ON p.type = t.id\n WHERE\n p.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->name = $row['name'];\n $this->soluong = $row['soluong'];\n $this->gia = $row['gia'];\n $this->avatar = $row['avatar'];\n $this->category = $row['category'];\n $this->type = $row['type'];\n $this->content = $row['content'];\n $this->created_at = $row['created_at'];\n $this->updated_at = $row['updated_at'];\n}", "function readOne(){\r\n\t$query = \"SELECT\r\n\t\t\t\tname, description, price\r\n\t\t\tFROM\r\n\t\t\t\t\" . $this->table_name . \"\r\n\t\t\tWHERE\r\n\t\t\t\tid = ?\r\n\t\t\tLIMIT\r\n\t\t\t\t0,1\";\r\n\r\n\t// prepare query statement\r\n\t$stmt = $this->conn->prepare( $query );\r\n\r\n\t// sanitize\r\n\t$this->id=htmlspecialchars(strip_tags($this->id));\r\n\r\n\t// bind product id value\r\n\t$stmt->bindParam(1, $this->id);\r\n\r\n\t// execute query\r\n\t$stmt->execute();\r\n\r\n\t// get row values\r\n\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\r\n\t// assign retrieved row value to object properties\r\n\t$this->name = $row['name'];\r\n\t$this->description = $row['description'];\r\n\t$this->price = $row['price'];\r\n}", "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n *\n FROM\n products p\n WHERE\n p.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->name=$row['name'];\n $this->price=$row['price'];\n $this->description=$row['description'];\n $this->category_id=$row['category_id'];\n $this->product_image=$row['product_image'];\n $this->detail_image=$row['detail_image'];\n $this->distributor=$row['distributor'];\n $this->quantity=$row['quantity'];\n $this->status=$row['status'];\n $this->purcharse_number=$row['purcharse_number'];\n $this->created_time=$row['created_time'];\n }", "public function findOne()\r\n {\r\n $records = $this->find(1);\r\n \r\n return isset($records[0]) ? $records[0] : null;\r\n }", "function readOne(){\n \n // query to read single record\n $query = \"SELECT * FROM \" . $this->table_name . \" WHERE ROId = ? LIMIT 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of roUnit to be updated\n $stmt->bindParam(1, $this->ROId);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->ROId = $row['ROId'];\n $this->unit = $row['unit'];\n $this->created_on = $row['created_on'];\n $this->modified_on = $row['modified_on'];\n }", "public function getOne() {\n $prepareStatement = $this->pdo->prepare($this->sql);\n $prepareStatement->execute($this->param);\n\n Connection::disconnect();\n\n if ($this->fetch !== PDO::FETCH_CLASS) {\n if (1 == $prepareStatement->columnCount())\n return $prepareStatement->fetch(PDO::FETCH_COLUMN);\n return $prepareStatement->fetch($this->fetch);\n }\n\n return $prepareStatement->fetchObject();\n }", "public function fetch_object()\n\t{\n\t\t$object = null;\n\t\tif (current($this->result)) {\n\t\t\tforeach (current($this->result) AS $key => $value) {\n\t\t\t\t$object->$key = $value;\n\t\t\t}\n\t\t}else {\n\t\t\t$object = FALSE;\n\t\t}\n\t\tnext($this->result);\n\t\treturn $object;\n\t}", "public function getOne(){\n $categorias = $this ->db->query(\"SELECT * FROM categorias WHERE id={$this->getId()}\");\n return $categorias->fetch_object(); //devuelvo un objeto ya utilizable\n }", "public function first() {\n\t\treturn $this->execute()->first();\n\t}", "public function singleRow(){\n $this->execute();\n return $this->statement->fetch(PDO::FETCH_OBJ);\n }", "public function getOne(){\n\n $pedido = $this->db->query(\"SELECT * FROM pedidos WHERE id = {$this->getId()}\");\n\n \n return $pedido->fetch_object();\n }", "public function read_single()\n {\n // Create query\n $query = \"\n SELECT\n id,\n name\n FROM\n $this->table\n WHERE \n id = ?\n LIMIT 1;\";\n\n //Prepare statement\n $stmt = $this->conn->prepare($query);\n \n // Bind ID\n $stmt->bindParam(1, $this->id);\n \n // Execute query\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set properties\n $this->id = $row['id'];\n $this->name = $row['name'];\n }", "public function getOne(){\n //hacemos la consulta y lo guardamos en una variable\n $producto=$this->db->query(\"SELECT * FROM pedidos where id={$this->getId()};\");\n //devolvemos un valor en especifico y lo comvertimos a un objeto completamente usable.\n return $producto->fetch_object();\n }", "function _fetch_object()\r\n\t{\r\n\t\tif ( is_array($this->pdo_results) ) {\r\n\t\t\t$i = $this->pdo_index;\r\n\t\t\t$this->pdo_index++;\r\n\t\t\tif ( isset($this->pdo_results[$i])) {\r\n\t\t\t\t$back = '';\r\n\t\t\t\tforeach ( $this->pdo_results[$i] as $key => $val ) {\r\n\t\t\t\t\t$back->$key = $val;\r\n\t\t\t\t}\r\n\t\t\t\treturn $back;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn $this->result_id->fetch(PDO::FETCH_OBJ);\r\n\t}", "function readOne(){\n \n // query to read single record\n $query = \"SELECT\n g.name as group_name, u.id, u.name, u.surname, u.email, u.group_id, u.created\n FROM\n \" . $this->table_name . \" u\n LEFT JOIN\n groups g\n ON u.group_id = g.id\n WHERE\n u.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of user to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->name = $row['name'];\n $this->surname = $row['surname'];\n $this->email = $row['email'];\n $this->group_id = $row['group_id'];\n $this->created = $row['created'];\n \n }", "protected function get_record()\n\t{\n\t\treturn $this->key ? parent::get_record() : null;\n\t}", "function readOne() {\n $query = \"SELECT\n id, name, description, created \n FROM\n \" . $this->table_name . \" \n WHERE\n id = ?\n LIMIT\n 0,1\";\n \n $stmt = $this->conn->prepare($query);\n \n $stmt->bindParam(1, $this->id); //ambil id dr bukunya\n\n $stmt->execute();\n\n $row = $stmt->fetch(PDO::FETCH_ASSOC); //mengembalikan barisnya\n\n //set values objek bukunya berdasarkan id tadi\n $this->name = $row['name'];\n $this->description = $row['description'];\n $this->created = $row['created'];\n }", "function readOne(){\n\n\t\t// query to read single record\n\t\t$query = \"SELECT\n\t\t\t\t\ttype, color, price\n\t\t\t\tFROM\n\t\t\t\t\t\" . $this->table_name . \"\n\t\t\t\tWHERE\n\t\t\t\t\tclothe_id = ?\n\t\t\t\tLIMIT\n\t\t\t\t\t0,1\";\n\n\t\t// prepare query statement\n\t\t$stmt = $this->conn->prepare( $query );\n\n\t\t// bind id of product to be updated\n\t\t$stmt->bindParam(1, $this->clothe_id);\n\n\t\t// execute query\n\t\t$stmt->execute();\n\n\t\t// get retrieved row\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n\t\t// set values to object properties\n\t\t$this->type = $row['type'];\n\t\t$this->color = $row['color'];\n\t\t$this->price = $row['price'];\n\t}", "function readOne(){\r\n $query = \"SELECT s.ID, s.Name FROM \r\n \" . $this->tableName . \"\r\n AS b \r\n INNER JOIN BookSubjects AS bs ON b.ID = bs.BookID \r\n INNER JOIN Subjects AS s on s.ID = bs.SubjectID \r\n WHERE ID = ? LIMIT 0,1\";\r\n \r\n $final = $this->dbConn->prepare($query);\r\n $final->bindParam(1, $this->ID);\r\n $final->execute();\r\n \r\n $row = $final->fetch(PDO::FETCH_ASSOC);\r\n \r\n $this->ID = $row['ID'];\r\n $this->Name = $row['Name'];\r\n }", "public function findOne(PDO $con)\n\t{\n\t\t$class = $this->resultClass;\n\t\t$stmt = $this->doExecute($con);\n\t\tif ($row = $stmt->fetch(PDO::FETCH_NUM)) {\n\t\t\t$record = new $class();\n\t\t\t$record->load($row);\n\t\t\treturn $record;\n\t\t} \n\t}", "function readOne(){\n \n // query to read single record\n $query = \"SELECT * FROM trabajo where id_Trabajo = ? LIMIT 0,1;\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->id_Trabajo);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->Nombre = $row['Nombre'];\n $this->Requisitos = $row['Requisitos'];\n $this->Conocimientos = $row['Conocimientos'];\n $this->Beneficios = $row['Beneficios'];\n $this->Fecha_Publicacion = $row['Fecha_Publicacion'];\n }", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\t\t\t\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE lp_id = ?\";\r\n\t\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\t\t\t\t\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t$this->id = $row ['lp_id'];\r\n\t\t\t\t\t$this->userid = $row ['lp_userid'];\r\n\t\t\t\t\t$this->random = $row ['lp_random'];\r\n\t\t\t\t\t$this->deadline = $row ['lp_deadline'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with id ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\t\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function fetchOne() {\r\n\t\t$data = $this->fetch();\r\n\r\n\t\t$this->freeResult();\r\n\r\n\t\treturn $data ? current($data) : null;\r\n\t}", "public function select(){\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//count how many rows found\r\n\t\t\tif($this->exists ()) {\r\n\r\n\t\t\t\t$sql = \"SELECT * FROM $this->sqlTable WHERE dsh_id = ?\";\r\n\r\n\t\t\t\t$stmt = $ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t\t//record is found, associate columns to the object properties\r\n\t\t\t\twhile ( true == ($row = $stmt->fetch ()) ) {\r\n\r\n\t\t\t\t\t$this->id = $row ['dsh_id'];\r\n\t\t\t\t\t$this->title = $row ['dsh_title'];\r\n\t\t\t\t\t$this->desc = $row ['dsh_desc'];\r\n\t\t\t\t\t$this->portlet = $row ['dsh_portlet'];\r\n\t\t\t\t\t$this->hide = $row ['dsh_hide'];\r\n\t\t\t\t\t$this->createdBy = $row ['dsh_created_by'];\r\n\t\t\t\t\t$this->modifiedBy = $row ['dsh_modified_by'];\r\n\t\t\t\t\t$this->createdDate = $row ['dsh_created_date'];\r\n\t\t\t\t\t$this->modifiedDate = $row ['dsh_modified_date'];\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\techo \"No record found with primary column ($this->id) from table ($this->sqlTable).\";\r\n\t\t\t}\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function readOne(){\r\n //Query to read single record\r\n $query = \"SELECT text, author, category FROM quotes WHERE id = ?\";\r\n \r\n // Query statement\r\n $statement = $this->conn->prepare( $query );\r\n \r\n //Bind id of product to be updated\r\n $statement->bindParam(1, $this->id);\r\n \r\n // execute query\r\n $statement->execute();\r\n \r\n //Get retrieved row\r\n $row = $statement->fetch(PDO::FETCH_ASSOC);\r\n \r\n //If there is text at the given id, then we will display the quote information\r\n if (isset($row['text'])) {\r\n //Set values to object properties\r\n $this->text = $row['text'];\r\n $this->author = $row['author'];\r\n $this->category = $row['category'];\r\n } else {\r\n //Does nothing if nothing exists for the given id\r\n }\r\n\r\n }", "public function find($id):Default_Model_Model{\n\n\n\t\t$result=$this->getDbTable()->find($id);\n\n\t\t//echo \"id=>$id\";\n\n\t\tif(0 == count($result)) return false;\n\n\t\t$row = $result->current();\n\t\t$object = $this->getModel($row->toArray ());\n\n\t\treturn $object;\n\n\t}", "public static function first()\n\t{\n\t\treturn self::new_instance_records()->first();\n\t}", "public function fetchData()\r\n {\r\n\t if ($this->m_ActiveRecord != null)\n\t return $this->m_ActiveRecord;\r\n\r\n // complete the pending action first\r\n $pendingAction = $_GET['pending_action'];\r\n list($action, $elemPath, $attrName, $prtAttrName) = explode(\",\",$pendingAction);\r\n \r\n $elemPath = $this->adjustElemPath($elemPath);\r\n \r\n if ($action == \"CREATE\")\r\n $this->AddElement($elemPath, $attrName, $prtAttrName);\r\n if ($action == \"REMOVE\")\r\n $this->RemoveElement($elemPath, $attrName);\r\n if (strpos($action, \"MOVE\") === 0)\r\n {\r\n list($action, $insertMode) = explode(\"_\", $action);\r\n list($nameVal1, $nameVal2) = explode(\":\", $attrName);\r\n $this->MoveElement($elemPath, $nameVal1, $nameVal2, $insertMode);\r\n }\r\n \r\n // get the xml element with xpath xpath('//element[@Name=\"fld_Id\"]')\r\n //$this->m_XmlFile = MODULE_PATH.\"/\".str_replace(\".\",\"/\",$this->m_MetaName).\".xml\";\r\n $this->m_XmlFile = $this->m_MetaFile;\r\n if (!file_exists($this->m_XmlFile)) \r\n return null;\r\n $rootElem = simplexml_load_file($this->m_XmlFile);\r\n //print_r($rootElem);\r\n $xpathStr = '/'.$this->m_ElemPath.'[@Name=\"'.$this->m_AttrName.'\"]'; // TODO: fix it by full path\r\n $elems = $rootElem->xpath($xpathStr);\r\n if (!$elems || count($elems)==0)\r\n return null;\r\n // give warning if find >1 matching elements\r\n if (count($elems) > 1)\r\n {\r\n echo \"<div class='error'>WARNING: More than 1 '$this->m_ElemPath' elements are found with Name as '\".$this->m_AttrName.\"'. Please change these elements with unique names!</div>\";\r\n }\r\n // get the attributes of the element\r\n $elem = $elems[0];\r\n $attrs = $elem->attributes();\r\n foreach ($attrs as $k=>$v)\r\n $attrList[$k] = $v.\"\";\r\n //print_r($attrList);\r\n // return the array\r\n return $attrList;\r\n }", "public function first()\n\t{\n\t\treturn $this->find()->first();\n\t}", "public function getOne($id)\n {\n $sql = \"SELECT * FROM \".$this->table.\" WHERE id =\" . $id;\n $req = Database::getBdd()->prepare($sql);\n $req->execute();\n return $req->fetch(PDO::FETCH_OBJ);\n }", "public function find( int $id, string $className, ? string $table = null) //$className parametre de la function, ? parametre optionnel\r\n{\r\n $sql = \"SELECT * FROM {$this->table} WHERE id =:id\";\r\n\r\n if(!empty($table)){\r\n $sql = \"SELECT * FROM $table WHERE id=:id\";\r\n }\r\n\r\n $maRequete = $this->pdo->prepare($sql);\r\n $maRequete->execute(['id' => $id]);\r\n\r\n $item = $maRequete->fetchObject($className); //deja fait pour l'objet il sait qu'on va lui donner une classe;\r\n\r\n return $item;\r\n}", "function readOne(){\r\n // query to read single record\r\n $query = \"SELECT\r\n id_pelanggan, nama_pelanggan, alamat, telepon, email, tgl_lahir\r\n FROM\r\n \" . $this->table_name . \"\r\n WHERE\r\n id_pelanggan = ?\";\r\n\r\n // prepare query statement\r\n $stmt = $this->conn->prepare($query);\r\n \r\n // bind id of product to be updated\r\n $stmt->bindParam(1, $this->id);\r\n \r\n // execute query\r\n $stmt->execute();\r\n \r\n // get retrieved row\r\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n \r\n // set values to object properties\r\n $this->nama_pelanggan = $row['nama'];\r\n $this->alamat = $row['alamat'];\r\n $this->telepon = $row['telepon'];\r\n $this->email = $row['email'];\r\n $this->tgl_lahir = $row['tgl_lahir'];\r\n }", "function load() {\n\t\tglobal $mysql;\n //if(!$this->exists()) return;\n \t$id \t\t= $mysql->escape($this->id);\n \t$tablename \t= $this->class_name();\n \t$this->data = $mysql->executeSql(\"SELECT * FROM \".$tablename.\" WHERE id=$id;\");\n \t$this->id\t= $this->data['id'];\n \tunset($this->data['id']);\n }", "public function getOne(){\n\n $categoria = $this->db->query(\"SELECT * from categorias WHERE id_categoria = '{$this->getIdCategoria()}'\");\n\n return $categoria->fetch_object();\n }", "public function getOne()\n {\n // se houver id retorna o objeto\n if (!empty($this->data['id'])) {\n return $this;\n }\n\n if (count($this->data)) {\n\n $results = array();\n\n $criterio = new TCriteria();\n\n foreach ($this->data as $prop => $value) {\n\n $criterio->add(new TFilter($prop, '=', $value));\n\n }\n\n $results = $this->getList($criterio);\n\n return is_object($results[0]) ? $results[0] : false;\n\n }\n\n throw new \\Exception('O metodo getOne, precisa que um campo chave seja preenchido');\n\n\n }", "public function single()\n {\n $this->execute();\n return $this->stmt->fetch(PDO::FETCH_ASSOC);\n }", "public function fetchObj(){\n try{\n $this->obj = $this->resultado->fetch(PDO::FETCH_OBJ);\n } catch (PDOException $e){\n $this->errors[] = 'error: function fetchObj<br/>'.$e->getMessage();\n $this->obj = NULL;\n }\n return $this->obj;\n }", "function readOne(){\n $query = \"SELECT\n *\n FROM\n \" . $this->table_name . \"\n WHERE\n id_actividad = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $sql = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $sql->bindParam(1, $this->id_actividad);\n \n // execute query\n $sql->execute();\n \n // get retrieved row\n $row = $sql->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->id_actividad = $row['id_actividad'];\n $this->nombre = $row['nombre'];\n $this->fecha_inicio = $row['fecha_inicio'];\n $this->fecha_fin = $row['fecha_fin'];\n $this->descripcion = $row['descripcion'];\n $this->id_evento = $row['id_evento'];\n }", "public function getOneById($id)\n {\n return reset($this->prepare(array(DB::load($this->table, $id))));\n }", "public function getObject()\n {\n return mysqli_fetch_object($this->resulset);\n }", "function readOne()\n {\n // query to read single record\n $query = \"SELECT\n s.id, s.email, s.name, s.state\n FROM\n \" . $this->table_name . \" s\n WHERE\n s.id = ?\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of subscriber to be updated\n $stmt->bindParam(1, $this->id);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->email = $row['email'];\n $this->name = $row['name'];\n $this->state = $row['state'];\n }", "public function fetchObject();", "public function fetchObject();", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n\t{\n\t\treturn parent::first();\n\t}", "public function first()\n {\n return $this->retrieveOrCreateQueryInstance()->firstOrFail();\n }", "public function readOne(){\n $query=\"SELECT c.name as category_name, p.id, p.name, p.description, p.price, p.category_id, p.created FROM \".$this->tabla.\" p LEFT JOIN categories c ON p.category_id=c.id WHERE p.id=? limit 0,1\";\n\n $consulta = $this->conn->prepare($query);\n \n //Pasamos parámetro \"?\"\n $consulta->bindParam(1,$this->id);\n $consulta->execute();\n\n if($consulta->rowCount()>0){\n $row=$consulta->fetch(PDO::FETCH_ASSOC);\n $this->name=$row[\"name\"];\n $this->price=$row[\"price\"];\n $this->description=$row[\"description\"];\n $this->category_id=$row[\"category_id\"];\n $this->category_name=$row[\"category_name\"];\n }\n }", "function readOne(){\n \n // query to read single record\n $query = \n \"SELECT\n idpublisher, name\n FROM\n publishers\n WHERE\n idpublisher = ?\"; \n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of publisher to be updated\n $stmt->bindParam(1, $this->idpublisher);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->idpublisher = $row['idpublisher'];\n $this->name = $row['name'];\n }", "public function first(){\n return $this->find(1);\n }", "public function readOne()\n {\n $sql = 'SELECT id_producto, nombre_producto, descripcion_producto, precio_producto, imagen_producto, stock, id_marca, estado_producto\n FROM productos\n WHERE id_producto = ?';\n $params = array($this->id);\n return Database::getRow($sql, $params);\n }", "function find($table, $id)\n{\n $data = connect()->query(\"SELECT * FROM $table WHERE id='$id'\");\n\n return $data->fetch_object();\n}", "public function __get($obj) {\n $class = get_called_class();\n\n // If the relation is has_one\n if (method_exists($this, \"has_one\") && in_array($obj, $this->has_one())) {\n $attr = $obj . '_id';\n\n // If the object does not have attribute ending in '_id'\n if (!property_exists($this, $attr)) {\n throw new Exception(\"$class does not have a attribute $attr\", 1);\n return;\n }\n\n $object_class = ucfirst($obj);\n\n return $object_class::find($this->$attr);\n }\n\n\n // If the relation is has_many\n if (method_exists($this, \"has_many\") && in_array($obj, $this->has_many())) {\n\n // Get the singular of the word $obj. i.e. $book->categories will get 'category'\n $singular_obj = singularize($obj);\n\n $attr_class = ucfirst($singular_obj);\n\n $attr = lcfirst($class) . '_id';\n\n // If the table has an attribute of the called + '_id'\n if ($attr_class::has_attribute($attr)) {\n // Return a list of all objects\n return $attr_class::where(\"$attr = ?\", $this->id);\n }\n\n // There might be a many_to_many, so we need to check two tables:\n // book_category and category_book\n $table1 = ucfirst($singular_obj) . \"_\" . $class;\n $table2 = $class . \"_\" . ucfirst($singular_obj);\n\n\n // If the first combination has the attributes\n if (class_exists($table1) && $table1::in_database() && $table1::has_attribute($attr) && $table1::has_attribute($singular_obj . '_id')) {\n return $table1::where(\"$attr = ?\", $this->id);\n }\n\n // If the second combination has the attributes\n if (class_exists($table2) && $table2::in_database() && $table2::has_attribute($attr) && $table2::has_attribute($singular_obj . '_id')) {\n return $table2::where(\"$attr = ?\", $this->id);\n }\n\n\n // If there isnt any coincidence\n throw new Exception(\"has_many relation in class $class does include $singular_obj\", 1);\n return;\n\n\n }\n\n\n // If the relation is belongs_to\n if (method_exists($this, \"belongs_to\") && in_array($obj, $this->belongs_to())) {\n $attr = lcfirst($obj) . '_id';\n $attr_class = ucfirst($obj);\n\n // If the table has not an attribute of the called + '_id'\n if (!$class::has_attribute($attr)) {\n throw new Exception(\"belongs_to relation in class $class does have $attr\", 1);\n return;\n }\n\n // Return a list of all objects\n return $attr_class::find($this->$attr);\n }\n\n trigger_error(\"Variable $obj not declared\", E_USER_WARNING);\n\n return NULL;\n }", "public function getParentItemfromDatabase()\n {\n $dataTableName = Data::mapDataType($this->parentType);\n\n\n $dataTable = new $dataTableName();\n\n $parentItem = $this->parentItem = $dataTable->find($this->parentId)->current();\n return $parentItem;\n }", "function _fetch_object()\n\t{\n\t\treturn mysqli_fetch_object($this->result_id);\n\t}", "public static function getInstance()\n {\n return Doctrine_Core::getTable('PolozkyObj');\n }", "public function one($db = null)\n {\n $data = $this->executeScript($db, 'One');\n if (empty($data)) {\n return null;\n }\n $row = [];\n $c = count($data);\n for ($i = 0; $i < $c;) {\n $row[$data[$i++]] = $data[$i++];\n }\n if ($this->asArray) {\n $model = $row;\n } else {\n /* @var $class ActiveRecord */\n $class = $this->modelClass;\n $model = $class::instantiate($row);\n $class = get_class($model);\n $class::populateRecord($model, $row);\n }\n if (!empty($this->with)) {\n $models = [$model];\n $this->findWith($this->with, $models);\n $model = $models[0];\n }\n if (!$this->asArray) {\n $model->afterFind();\n }\n\n return $model;\n }", "public function getItem($objectID)\n\t{\n\t\treturn $this->tableObjects[$objectID];\n\t}", "public function current(): Record\n {\n return $this->data[0];\n }", "private function hasOne($array){\n\t\t$result = $this->parseRelation($array);\n\t\t$model = $result['model'];\n\t\t$forKey = $result['forKey'];\n\t\t$table = $result['table'];\n\t\t$priKey = $result['priKey'];\n\t\t$this->_db()->select($priKey)->from($table)->where($forKey,$this->id)->limit(1)->get();\n\t\t$result = $this->_db()->result();\n\t\t$priId = $result[$priKey];\n\t\t$entity = new $model($priId);\n\t\treturn $entity;\n\t}", "public abstract function fetchObject();", "function readOne(){\n $query = \"SELECT *\n FROM\n \" . $this->table . \"\n WHERE\n email = \" . $this->email . \"\n LIMIT\n 0,1\";\n \n // prepare query statement\n $stmt = $this->conn->prepare( $query );\n \n // bind id of product to be updated\n $stmt->bindParam(1, $this->email);\n \n // execute query\n $stmt->execute();\n \n // get retrieved row\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n // set values to object properties\n $this->agencyName = $row['agencyName'];\n $this->type = $row['type'];\n $this->email = $row['email'];\n $this->phone = $row['phone'];\n $this->password = $row['password'];\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }", "public function first()\n {\n return parent::first();\n }" ]
[ "0.648944", "0.64886796", "0.6454033", "0.64166194", "0.6395379", "0.638959", "0.6369647", "0.63567555", "0.6233072", "0.6179265", "0.6173312", "0.61484677", "0.61375546", "0.61048526", "0.61000586", "0.6081531", "0.6074098", "0.6040612", "0.60322815", "0.6021515", "0.6005927", "0.5994014", "0.5992436", "0.5990513", "0.59846354", "0.598144", "0.59486073", "0.5945651", "0.5939871", "0.59338784", "0.5932835", "0.59250534", "0.59237134", "0.5922406", "0.5887272", "0.5865155", "0.5855647", "0.58506495", "0.5848783", "0.5841676", "0.5819322", "0.5812212", "0.5808433", "0.58051527", "0.5798838", "0.5798089", "0.5780658", "0.577006", "0.57669663", "0.5755938", "0.57555574", "0.57365465", "0.5734675", "0.57181734", "0.57179266", "0.57179266", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705819", "0.5705791", "0.5703612", "0.5697863", "0.56971675", "0.56913775", "0.5691138", "0.56907505", "0.568851", "0.5681174", "0.56594926", "0.56358004", "0.5623631", "0.5623058", "0.5619417", "0.5614941", "0.5611192", "0.56031954", "0.56031954", "0.56031954", "0.56031954", "0.56031954", "0.56031954", "0.56031954", "0.56031954" ]
0.0
-1
Attempt to retrieve array of item corresponding to the given conditions. It's possible to return the tableName of each item.
public function getByCols($tableName = false, array $ands = null, array $ors = null, array $orders = null, $limit = null, $offset = null) { $dbh = App::getDatabase()->connect(); if($fl = !$tableName) $query = "SELECT * FROM ".$this::getTableName(); else $query = "SELECT t.*, p.relname as tablename FROM ".$this::getTableName()." t, pg_class p WHERE t.tableoid = p.oid"; if(!is_null($ands)) { foreach($ands as $col => $and) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$col." ".$and['operator']." ".(($and['value'] === "null") ? $and['value'] : "'".$and['value']."'"); $fl = false; } } if(!is_null($ors)) { foreach($ors as $col => $or) { $query .= "\n".(($fl) ? "WHERE" : "OR")." ".$col." ".$or['operator']." ".(($or['value'] === "null") ? $or['value'] : "'".$or['value']."'"); $fl = false; } } if($fl = !is_null($orders)) { $query .= "\nORDER BY "; foreach($orders as $col => $way) { $query .= (($fl) ? "" : ", ").$col ." ". $way; $fl = false; } } $query .= (!is_null($limit)) ? "\nLIMIT ".$limit : ""; $query .= (!is_null($offset)) ? "\nOFFSET ".$offset : ""; $sth = $dbh->query($query); $data = array(); while($res = $sth->fetch(\PDO::FETCH_ASSOC)) { $item = new $this(); foreach($res as $key => $val) { $item->$key = $val; } $data[] = $item; } $dbh = null; return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_filterItemsFromRows()\n {\n // Default return value\n $arr_return = array();\n $arr_return[ 'data' ][ 'items' ] = null;\n\n // RETURN rows are empty\n if ( empty( $this->rows ) )\n {\n // DRS\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = 'Rows are empty. Filter: ' . $this->curr_tableField . '.';\n t3lib_div::devlog( '[WARN/FILTER] ' . $prompt, $this->pObj->extKey, 2 );\n }\n // DRS\n return $arr_return;\n }\n // RETURN rows are empty\n // Get table and field\n list( $table ) = explode( '.', $this->curr_tableField );\n\n // Set nice_piVar\n $this->set_nicePiVar();\n\n // Set class var $htmlSpaceLeft\n $this->set_htmlSpaceLeft();\n\n // Set class var $maxItemsPerHtmlRow\n $this->set_maxItemsPerHtmlRow();\n\n // SWITCH current filter is a tree view\n // #i0117, 141223, dwildt, 1-/+\n //switch ( in_array( $table, $this->arr_tablesWiTreeparentfield ) )\n switch ( in_array( $this->curr_tableField, $this->arr_tablesWiTreeparentfield ) )\n {\n case( true ):\n $arr_return = $this->get_filterItemsTree();\n break;\n case( false ):\n default:\n $arr_return = $this->get_filterItemsDefault();\n $items = $arr_return[ 'data' ][ 'items' ];\n $arr_return = $this->get_filterItemsWrap( $items );\n break;\n }\n // SWITCH current filter is a tree view\n\n return $arr_return;\n }", "public function getTab($conditions='') {\n \n $query = \"SELECT \n * \n FROM \n employee_appraisal_tab\n $conditions\n \";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "function getItems($cond)\n {\n $this->db->select(\"*\");\n $this->db->from(\"feedback\");\n $this->db->where($cond);\n $query = $this->db->get();\n return $query->result();\n }", "public function findWhere($condition){\n // create an empty array\n $arrayOfActiveRows = [];\n // select all data from the specified condition\n $dataArray = $this->database->selectStarFromWhere($this->name, $condition);\n // foreach data found in this array, we creat active row and store in variable $activeRow and \n // we push into this \n foreach ($dataArray as $data) {\n $activeRow = $this->CreateActiveRowFrom($data);\n array_push($arrayOfActiveRows, $activeRow);\n }\n return $arrayOfActiveRows;\n }", "private function get_filterItems()\n {\n $arr_return = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Default return value\n $arr_return[ 'data' ][ 'items' ] = null;\n\n // Set rows, if current filter is with areas\n $this->areas_toRows();\n\n// 4.1.16, 120927, dwildt, -\n// // RETURN rows are empty\n// if( empty ( $this->rows) )\n// {\n// // DRS\n// if( $this->pObj->b_drs_warn )\n// {\n// $prompt = 'Rows are empty. Filter: ' . $this->curr_tableField . '.';\n// t3lib_div::devlog( '[WARN/FILTER] ' . $prompt, $this->pObj->extKey, 2 );\n// }\n// // DRS\n// return $arr_return;\n// }\n// // RETURN rows are empty\n// 4.1.16, 120927, dwildt, -\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Set nice_piVar\n $this->set_nicePiVar();\n\n // Set class var $htmlSpaceLeft\n $this->set_htmlSpaceLeft();\n\n // Set class var $maxItemsPerHtmlRow\n $this->set_maxItemsPerHtmlRow();\n\n // SWITCH current filter is a tree view\n // #i0117, 141223, dwildt, 1-/+\n //switch ( in_array( $table, $this->arr_tablesWiTreeparentfield ) )\n switch ( in_array( $this->curr_tableField, $this->arr_tablesWiTreeparentfield ) )\n {\n case( true ):\n $arr_return = $this->get_filterItemsTree();\n break;\n case( false ):\n default:\n $arr_return = $this->get_filterItemsDefault();\n if ( !empty( $arr_return ) )\n {\n $items = $arr_return[ 'data' ][ 'items' ];\n $arr_return = $this->get_filterItemsWrap( $items );\n }\n break;\n }\n // SWITCH current filter is a tree view\n\n return $arr_return;\n }", "public function getViaTableCondition();", "public function getItemsCriteria() {}", "public function get_by( array $conditionValue, $condition = '=' ) {\n\t\tglobal $wpdb;\n\t\t$sql = 'SELECT * FROM `' . $this->tableName . '` WHERE ';\n\t\tforeach ( $conditionValue as $field => $value ) {\n\t\t\tswitch ( strtolower( $condition ) ) {\n\t\t\t\tcase 'in':\n\t\t\t\t\tif ( ! is_array( $value ) ) {\n\t\t\t\t\t\tthrow new Exception( \"Values for IN query must be an array.\", 1 );\n\t\t\t\t\t}\n\t\t\t\t\t$sql .= $wpdb->prepare( '`%s` IN (%s)', $field, implode( ',', $value ) );\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$sql .= $wpdb->prepare( '`' . $field . '` ' . $condition . ' %s', $value );\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t$result = $wpdb->get_results( $sql );\n\n\t\treturn $result;\n\t}", "public function getItemsCriteria() {}", "function getItemsBasedOnName($search) {\n $query = \"SELECT \n item.id AS item_id,\n item.name AS item_name,\n item.fee AS item_fee,\n item.description AS item_description,\n item.pickup_lat AS item_pickup_lat,\n item.pickup_long AS item_pickup_long,\n item.return_lat AS item_return_lat,\n item.return_long AS item_return_long,\n item.date_available AS item_date_available,\n item.borrowed AS item_borrowed,\n item.promoted AS item_promoted,\n item.created AS item_created,\n item.last_updated AS item_last_updated,\n c.name AS categories_name,\n c.image_url AS categories_image_url,\n u.username AS user_username,\n u.profile_image_url AS user_profile_image_url,\n image.image_link,\n image.cover AS cover_image\n FROM items item, item_images image, categories c, users u\n WHERE item.id = image.item_id \n AND item.category_id = c.id\n AND item.user_id = u.id\n AND LOWER(item.name) LIKE LOWER(\"\n .string('%'.$search .'%')\n .\") ORDER BY item.last_updated DESC\";\n\n $go_q = pg_query($query);\n $items = array();\n\n while ($fe_q = pg_fetch_assoc($go_q)) {\n $items[$fe_q['item_id']]['id'] = $fe_q['item_id'];\n $items[$fe_q['item_id']]['name'] = $fe_q['item_name'];\n $items[$fe_q['item_id']]['fee'] = $fe_q['item_fee'];\n $items[$fe_q['item_id']]['description'] = $fe_q['item_description'];\n $items[$fe_q['item_id']]['pickup_lat'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['pickup_long'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['return_lat'] = $fe_q['item_return_lat'];\n $items[$fe_q['item_id']]['return_long'] = $fe_q['item_return_long'];\n $items[$fe_q['item_id']]['date_available'] = $fe_q['item_date_available'];\n $items[$fe_q['item_id']]['borrowed'] = $fe_q['item_borrowed'];\n $items[$fe_q['item_id']]['promoted'] = $fe_q['item_promoted'];\n $items[$fe_q['item_id']]['created'] = $fe_q['item_created'];\n $items[$fe_q['item_id']]['last_updated'] = $fe_q['item_last_updated'];\n $items[$fe_q['item_id']]['categories_name'] = $fe_q['categories_name'];\n $items[$fe_q['item_id']]['categories_image_url'] = $fe_q['categories_image_url'];\n $items[$fe_q['item_id']]['username'] = $fe_q['user_username'];\n $items[$fe_q['item_id']]['profile_image_url'] = $fe_q['user_profile_image_url'];\n if ($fe_q['cover_image'] == t) {\n $items[$fe_q['item_id']]['cover_image'] = $fe_q['image_link'];\n } else {\n $items[$fe_q['item_id']]['images'][] = array('image_link' => $fe_q['image_link']);\n }\n }\n\n return $items;\n\n}", "function getItemsBasedOnUser($user_id) {\n $item_query = \"SELECT \n item.id AS item_id,\n item.name AS item_name,\n item.category_id AS category,\n item.fee AS item_fee,\n item.description AS item_description,\n item.pickup_lat AS item_pickup_lat,\n item.pickup_long AS item_pickup_long,\n item.return_lat AS item_return_lat,\n item.return_long AS item_return_long,\n item.date_available AS item_date_available,\n item.borrowed AS item_borrowed,\n item.promoted AS item_promoted,\n item.created AS item_created,\n item.last_updated AS item_last_updated,\n c.name AS categories_name,\n c.image_url AS categories_image_url,\n image.image_link,\n image.cover AS cover_image\n FROM items item, item_images image, categories c\n WHERE item.id = image.item_id \n AND item.user_id = \" . $user_id .\"\n AND c.id = item.category_id\n ORDER BY item.created DESC\";\n\n $go_q = pg_query($item_query);\n $items = array();\n\n $status_query = \"SELECT\n item.id AS item_id,\n bid.date_of_loan AS loan_date,\n bid.duration_of_loan AS loan_duration,\n loan.bid_id AS loan_id\n FROM items item LEFT OUTER JOIN loans loan ON item.id = loan.item_id\n LEFT OUTER JOIN bids bid ON bid.id = loan.bid_id\n WHERE item.user_id = \". $user_id .\"\n ORDER BY item.created DESC\";\n\n $st_q = pg_query($status_query);\n\n while ($fe_q = pg_fetch_assoc($go_q)) {\n $items[$fe_q['item_id']]['id'] = $fe_q['item_id'];\n $items[$fe_q['item_id']]['name'] = $fe_q['item_name'];\n $items[$fe_q['item_id']]['category'] = $fe_q['category'];\n $items[$fe_q['item_id']]['fee'] = $fe_q['item_fee'];\n $items[$fe_q['item_id']]['description'] = $fe_q['item_description'];\n $items[$fe_q['item_id']]['pickup_lat'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['pickup_long'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['return_lat'] = $fe_q['item_return_lat'];\n $items[$fe_q['item_id']]['return_long'] = $fe_q['item_return_long'];\n $items[$fe_q['item_id']]['date_available'] = $fe_q['item_date_available'];\n $items[$fe_q['item_id']]['borrowed'] = $fe_q['item_borrowed'];\n $items[$fe_q['item_id']]['promoted'] = $fe_q['item_promoted'];\n $items[$fe_q['item_id']]['created'] = $fe_q['item_created'];\n $items[$fe_q['item_id']]['last_updated'] = $fe_q['item_last_updated'];\n $items[$fe_q['item_id']]['categories_name'] = $fe_q['categories_name'];\n $items[$fe_q['item_id']]['categories_image_url'] = $fe_q['categories_image_url'];\n $items[$fe_q['item_id']]['username'] = $fe_q['user_username'];\n $items[$fe_q['item_id']]['profile_image_url'] = $fe_q['user_profile_image_url'];\n\n $itemLoan = pg_fetch_assoc($st_q);\n $returnDate = date_add(date_create($itemLoan['loan_date']), date_interval_create_from_date_string($itemLoan['loan_duration'].' days'));\n //var_dump($returnDate);\n if (is_null($itemLoan['loan_id'])) {\n $items[$fe_q['item_id']]['loan_status'] = 'item-available';\n } else if ($returnDate < new DateTime(\"now\")) {\n $items[$fe_q['item_id']]['loan_status'] = 'item-done';\n } else {\n $items[$fe_q['item_id']]['loan_status'] = 'item-loaned';\n }\n\n if ($fe_q['cover_image'] == t) {\n $items[$fe_q['item_id']]['cover_image'] = $fe_q['image_link'];\n } else {\n $items[$fe_q['item_id']]['images'][] = array('image_link' => $fe_q['image_link']);\n }\n }\n\n return $items;\n}", "public function get_item($field, $where = array()) {\n if (!is_array($where)) {\n $where = array();\n }\n //add group clausule\n $where[\"arraygroup\"] = \"items\";\n //now get that item\n return $field->get_sqlarray( \n array(\"where\" => $where)\n );\n }", "public static function getList($conditions = [], $options=[]) {\n $table = static::getTable();\n $rows = static::$db->select($table, $conditions, DB::SELECT_ARR, $options);\n\t\t$list = [];\n\t\tforeach($rows as $row){\n\t\t\t$list[] = static::genOnData($row);\n\t\t}\n\t\treturn $list;\n\t}", "function extract_tables($criteria = array())\n{\n\t$tables = array();\n\n\tforeach ($criteria as $table => $info)\n\t{\n\t\t$tables[$table] = $info['desc'];\n\t}\n\n\treturn $tables;\n}", "public function getRows($table,$conditions = array()){\r\n $sql = 'SELECT ';\r\n $sql .= array_key_exists(\"select\",$conditions)?$conditions['select']:'*';\r\n $sql .= ' FROM '.$table;\r\n if(array_key_exists(\"where\",$conditions)){\r\n $sql .= ' WHERE ';\r\n $i = 0;\r\n foreach($conditions['where'] as $key => $value){\r\n $pre = ($i > 0)?' AND ':'';\r\n $sql .= $pre.$key.\" = '\".$value.\"'\";\r\n $i++;\r\n }\r\n }\r\n\r\n if(array_key_exists(\"order_by\",$conditions)){\r\n $sql .= ' ORDER BY '.$conditions['order_by'];\r\n }\r\n\r\n if(array_key_exists(\"join\",$conditions)){\r\n $sql .= ' JOIN ';\r\n $i = 0;\r\n foreach($conditions['join'] as $key => $value){\r\n $pre = ($i > 0)?' AND ':'';\r\n $sql .= $pre.$key.\" = '\".$value.\"'\";\r\n $i++;\r\n }\r\n }\r\n\r\n if(array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\r\n $sql .= ' LIMIT '.$conditions['start'].','.$conditions['limit'];\r\n }elseif(!array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\r\n $sql .= ' LIMIT '.$conditions['limit'];\r\n }\r\n\r\n $query = $this->db->prepare($sql);\r\n $query->execute();\r\n\r\n if(array_key_exists(\"return_type\",$conditions) && $conditions['return_type'] != 'all'){\r\n switch($conditions['return_type']){\r\n case 'count':\r\n $data = $query->rowCount();\r\n break;\r\n case 'single':\r\n $data = $query->fetch(PDO::FETCH_ASSOC);\r\n break;\r\n default:\r\n $data = '';\r\n }\r\n }else{\r\n if($query->rowCount() > 0){\r\n $data = $query->fetchAll();\r\n }\r\n }\r\n return !empty($data)?$data:false;\r\n }", "function getItemTableName() ;", "function select_entries_where($table, $where, $items, $order)\n {\n $this->db->select($items);\n $this->db->from($table);\n $this->db->where($where);\n $this->db->order_by($order, \"asc\");\n \n $query = $this->db->get();\n \n return $query->result();\n }", "public function get($conditions = array())\n\t{\n\t\t$sql = 'SELECT * FROM ' . $this->_tableName;\n\n\t\tif (!is_array($conditions) || empty($conditions))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$sqlConditions = $sqlValues = array();\n\t\t$type = '=';\n\t\tforeach ($conditions as $key => $value)\n\t\t{\n\t\t\tif (is_array($value))\n\t\t\t{\n\t\t\t\tlist($key, $value, $optionalType) = $value;\n\n\t\t\t\tif (!empty($optionalType))\n\t\t\t\t{\n\t\t\t\t\t$type = $optionalType;\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sqlConditions[] = '(' . $key . ' ' . $type . ' ?)';\n\t\t\t$sqlValues[] = $value;\n\t\t}\n\t\t$sql .= ' WHERE ';\n\t\t$sql .= implode(' AND ', $sqlConditions);\n\n\t\t$result = $this->_app['db']->fetchAssoc($sql, $sqlValues);\n\t\treturn $result;\n\t}", "abstract public function getRow($cond_vars);", "function getConditionalData($select_atrib,$conditions){\n $query = \"SELECT \";\n $comma_counter = 1;\n foreach ($select_atrib as $val){\n $query .= \"{$val}\";\n if($comma_counter < sizeof($select_atrib)){\n $query .= \",\";\n $comma_counter += 1;\n }\n\n }\n $query .= \" FROM $this->table_name WHERE \".$conditions;\n\n $result = $this->db_connect->query($query);\n if (!$result) {\n die(\"Data Retrieve failed: \" . $this->db_connect->error);\n } else {\n if ($result->num_rows > 0) {\n $data = array();\n while ($row = $result->fetch_assoc()) {\n array_push($data,$row);\n }\n return $data;\n }else{\n return null;\n }\n }\n }", "abstract public function getTablesArray();", "public static function arrayFromDb ($condition = NULL) {\n\n # Build the query to get all the users\n $q = 'SELECT * \n FROM shows';\n\n if (isset($condition))\n $q = $q.\" \".$condition;\n \n # Execute the query to get all the shows.\n $rows = DB::instance(DB_NAME)->select_rows($q);\n\n $shows = array();\n\n foreach ($rows as $row) {\n $show = new Show();\n $show->populateFromDb($row);\n $shows[] = $show;\n }\n \n return $shows; \n }", "protected function getConditions()\n {\n $entityPk = (array)$this->mapper->getConfig()->getPrimaryKey();\n $conditions = [];\n foreach ($entityPk as $col) {\n $val = $this->entityHydrator->get($this->entity, $col);\n if ($val) {\n $conditions[$col] = $val;\n }\n }\n\n // not enough columns? reset\n if (count($conditions) != count($entityPk)) {\n return [];\n }\n\n return $conditions;\n }", "public function getRowsWhere(string $table_name, array $conditions = []): array\n {\n $results = [];\n\n foreach ($this->data[$table_name] as $row_id => $row) {\n $found = true;\n\n foreach ($conditions as $condition_id => $condition_value) {\n if ($row[$condition_id] !== $condition_value) {\n $found = false;\n break;\n }\n }\n if ($found) {\n $results[$row_id] = $row;\n }\n }\n\n return $results;\n }", "Private function where($tableName,array $conditions,array $options = array()){\n\t\tif(empty ($options))$options = array('prepend' => true ,'join' => ' AND ');\n\t\tif(!isset($options['join'])) $options['join'] = ' AND ';\n\t\t$ops = $this->_operators;\n\t\t$schema = $this->schema[$tableName];\n\t\t$conditions = $this->addSlashesDeep($conditions);\n\t\tswitch (true) {\n\t\t\tcase empty($conditions):\n\t\t\t\treturn '';\n\t\t\tcase is_string($conditions):\n\t\t\t\treturn ($options['prepend']) ? \" WHERE {$conditions}\" : $conditions;\n\t\t\tcase !is_array($conditions):\n\t\t\t\treturn '';\n\t\t}\n\t\t$result = array();\n\n if(count($conditions) > 0 && count($schema) > 0){\n foreach ($conditions as $key => $value) {\n $schema[$key] = isset($schema[$key]) ? $schema[$key] : array();\n switch (true) {\n case strtolower($key) == 'or':\n case strtolower($key) == 'and':\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE,'join' => \" {$key} \"));\n break;\n case (is_numeric($key) && is_array($value)):\n $result[] = $this->where($tableName,$value,array('prepend' => FALSE));\n break;\n case (is_numeric($key) && is_string($value)):\n $result[] = $value;\n break;\n case (is_string($key) && is_array($value) && isset($ops[key($value)])):\n foreach ($value as $op => $val) {\n $result[] = $this->_operator($tableName,$key, array($op => $val), $schema[$key]);\n }\n break;\n case (is_string($key) && is_array($value)):\n $value = join(', ', $this->value($value, $schema[$key]));\n $result[] = \"{$tableName}.{$key} IN ({$value})\";\n break;\n case (is_string($key) && is_string($value) && strpos($value,'%') !== FALSE):\n if(array_key_exists ($key,$this->schema[$tableName])){\n $result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n }\n else{\n $result[] = \"{$key} LIKE '{$value}'\";\n }\n //$result[] = \"{$tableName}.{$key} LIKE '{$value}'\";\n break;\n default:\n $value = $this->value($value, $schema[$key]);\n $result[] = $tableName.\".\".$key.\" = \".$value;\n break;\n }\n }\n }\n\n\t\tif(count($result)>1){\n\t\t\t$result = \"(\".join($options['join'], $result).\")\";\n\t\t}else{\n\t\t\t$result = join($options['join'], $result);\n\t\t}\n\t\treturn ($options['prepend'] && !empty($result)) ? \"WHERE {$result}\" : $result;\n\t}", "private function sql_resAllItems()\n {\n $arr_return = null;\n\n // SWITCH : filter without any relation versus filter with relation\n switch ( true )\n {\n case( $this->ts_countHits() ):\n// case( in_array( $this->curr_tableField, $this->get_selectedFilters( ) ) ):\n $arr_return = $this->sql_resAllItemsFilterWiRelation();\n break;\n default:\n // #41754.03, 121010\n $arr_return = $this->sql_resAllItemsFilterWoRelation();\n break;\n }\n\n return $arr_return;\n }", "function getData($fields, $table, $condition = null, $params = array()){\n\t\ttry {\n\t\t\tif(!$fields || empty($fields)) {\n\t\t\t\t$fields = \"*\";\n\t\t\t}\n\n\t\t\t$sql = \"SELECT $fields FROM $table\";\n\t\t\tif($condition && !empty($condition)) {\n\t\t\t\t$sql .=\" WHERE $condition\";\n\t\t\t}\n\t\t\t$query = $this->executeQuery($sql, $params);\n\t\t\t$list = $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t}catch(Exception $e){\n\t\t\t$this->logger->error($sql, $e->getMessage());\n\t\t\tthrow $e;\n\t\t}\n\t\treturn $list;\n\t}", "public function getItems($tableName, array $options = [])\n {\n $path = $this->buildPath(static::ITEMS_ENDPOINT, $tableName);\n $request = $this->performRequest('GET', $path, ['query' => $options]);\n return $request->data;\n }", "function get_row_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->row_array();\n\t}", "public function select($tableName, $conditions = \"\", array $datasCond = array(), array $fieldsList = array()){\r\n //We try to perform the task\r\n try{\r\n //We check if any database is opened\r\n if (!$this->checkOpenDB()) {\r\n throw new Exception(\"There isn't any opened DataBase !\");\r\n }\r\n \r\n //Process fields to select\r\n if(count($fieldsList) == 0)\r\n $fields = \"*\";\r\n else {\r\n $fields = implode(\", \", $fieldsList);\r\n }\r\n\r\n //Generating SQL\r\n $sql = \"SELECT \".$fields.\" FROM \".$tableName.\" \".$conditions;\r\n $selectOBJ = $this->db->prepare($sql);\r\n $selectOBJ->execute($datasCond);\r\n \r\n //Preparing return\r\n $return = array();\r\n foreach($selectOBJ as $process){\r\n $result = array();\r\n \r\n //Processing datas\r\n foreach($process as $name => $data){\r\n //We save the data only if it is not an integer\r\n if (!is_int($name)) {\r\n $result[$name] = $data;\r\n }\r\n }\r\n \r\n //Saving result\r\n $return[] = $result;\r\n }\r\n \r\n //Returning result\r\n return $return;\r\n }\r\n catch(Exception $e){\r\n exit($this->echoException($e));\r\n }\r\n catch(PDOException $e){\r\n exit($this->echoPDOException($e));\r\n }\r\n }", "public function getRows($table,$conditions = array()){\n $sql = 'SELECT ';\n $sql .= array_key_exists(\"select\",$conditions)?$conditions['select']:'*';\n $sql .= ' FROM '.$table;\n if(array_key_exists(\"where\",$conditions)){\n $sql .= ' WHERE ';\n $i = 0;\n foreach($conditions['where'] as $key => $value){\n $pre = ($i > 0)?' AND ':'';\n $sql .= $pre.$key.\" = '\".$value.\"'\";\n $i++;\n }\n }\n \n if(array_key_exists(\"order_by\",$conditions)){\n $sql .= ' ORDER BY '.$conditions['order_by']; \n }\n \n if(array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n $sql .= ' LIMIT '.$conditions['start'].','.$conditions['limit']; \n }elseif(!array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n $sql .= ' LIMIT '.$conditions['limit']; \n }\n \n $result = $this->db->query($sql);\n \n if(array_key_exists(\"return_type\",$conditions) && $conditions['return_type'] != 'all'){\n switch($conditions['return_type']){\n case 'count':\n $data = $result->num_rows;\n break;\n case 'single':\n $data = $result->fetch_assoc();\n break;\n default:\n $data = '';\n }\n }else{\n if($result->num_rows > 0){\n while($row = $result->fetch_assoc()){\n $data[] = $row;\n }\n }\n }\n return !empty($data)?$data:false;\n }", "public function getRows($table,$conditions = array()){\n $sql = 'SELECT ';\n $sql .= array_key_exists(\"select\",$conditions)?$conditions['select']:'*';\n $sql .= ' FROM '.$table;\n if(array_key_exists(\"where\",$conditions)){\n $sql .= ' WHERE ';\n $i = 0;\n foreach($conditions['where'] as $key => $value){\n $pre = ($i > 0)?' AND ':'';\n $sql .= $pre.$key.\" = '\".$value.\"'\";\n $i++;\n }\n }\n \n if(array_key_exists(\"order_by\",$conditions)){\n $sql .= ' ORDER BY '.$conditions['order_by']; \n }\n \n if(array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n $sql .= ' LIMIT '.$conditions['start'].','.$conditions['limit']; \n }elseif(!array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n $sql .= ' LIMIT '.$conditions['limit']; \n }\n \n $result = $this->db->query($sql);\n \n if(array_key_exists(\"return_type\",$conditions) && $conditions['return_type'] != 'all'){\n switch($conditions['return_type']){\n case 'count':\n $data = $result->num_rows;\n break;\n case 'single':\n $data = $result->fetch_assoc();\n break;\n default:\n $data = '';\n }\n }else{\n if($result->num_rows > 0){\n while($row = $result->fetch_assoc()){\n $data[] = $row;\n }\n }\n }\n return !empty($data)?$data:false;\n }", "public function getItems(ResultRow $values) {\n }", "public function select($table,$conditions = array()){\r\n\r\n $sql = 'SELECT *'; \r\n $sql .= ' FROM '.$table;\r\n\r\n if(is_array($conditions) && count($conditions)>0){\r\n $sql .= ' WHERE ';\r\n $i = 0;\r\n foreach($conditions as $key => $value){\r\n $pre = ($i > 0)?' AND ':'';\r\n $sql .= $pre.$key.\" = '\".$value.\"'\";\r\n $i++;\r\n }\r\n }\r\n \r\n $query = $this->db->prepare($sql);\r\n\r\n $query->execute(); \r\n \r\n $data = $query->fetchAll();\r\n\r\n return $data;\r\n }", "public function getBy(array $criteria);", "function items( $params ) {\n\t\textract( $params );\n\n\t\t// Should zcarriage be in the list of items or not? If $zcarriage='NO' exclude the zcarriage from the return result\n\t\t$zcarriage = !empty( $zcarriage ) && $zcarriage == 'NO' ? \" AND ci.sku<>'zcarriage'\" : '';\n\n\t\t$qry = \"SELECT ci.*, product, product_image, model_type FROM cart ct INNER JOIN cart_items ci ON ct.id=ci.cart_id LEFT OUTER JOIN catalog c ON c.sku=ci.sku WHERE ct.id='\".$cart_id.\"' AND user='\".$user_no.\"' \".$zcarriage.\" AND ci.qty>0 GROUP BY ci.sku\";\n\t\treturn $this->db->query( $qry )->result_array();\n\t}", "function getDetails($table,$condition_arr=array()) {\r\n $this->db->from($table);\r\n\t $this->db->where($condition_arr);\r\n $query=$this->db->get();\r\n return $query->result_array();\r\n\r\n\t}", "function getByAttributes($criteria)\n {\n if (!count($criteria)) {\n return array();\n }\n\n /* Build the query. */\n $this->_table_count = 1;\n $query = '';\n foreach ($criteria as $key => $vals) {\n if ($key == 'OR' || $key == 'AND') {\n if (!empty($query)) {\n $query .= ' ' . $key . ' ';\n }\n $query .= '(' . $this->_buildAttributeQuery($key, $vals) . ')';\n }\n }\n\n /* Build the FROM/JOIN clauses. */\n $joins = array();\n $pairs = array();\n for ($i = 1; $i <= $this->_table_count; $i++) {\n $joins[] = sprintf('LEFT JOIN %1$s a%2$s ON a%2$s.%3$s = m.%3$s',\n $this->_params['attribute_table'],\n $i,\n $this->_params['id_column']);\n\n $pairs[] = 'AND a1.attribute_name = a' . $i . '.attribute_name';\n }\n $joins = implode(' ', $joins);\n $pairs = implode(' ', $pairs);\n\n $query = sprintf('SELECT DISTINCT a1.%s FROM %s m %s WHERE %s %s',\n $this->_params['id_column'],\n $this->_params['primary_table'],\n $joins,\n $query,\n $pairs);\n\n Horde::logMessage('SQL Query by Hylax_SQL_Attributes::getByAttributes(): ' . $query, 'DEBUG');\n\n return $this->_db->getCol($query);\n }", "public function getItemByMultiple($item_data)\n\t{\n\t\t$where = array();\n\t\tif(isset($item_data['it_id'])){\n\t\t\t$where['it_id'] = $item_data['it_id'];\n\t\t}\n\t\tif(isset($item_data['owner_id'])){\n\t\t\t$where['owner_id'] = $item_data['owner_id'];\n\t\t}\n\t\treturn \\ORM::for_table($this->table)->where($where)->find_one();\n\t}", "function getItemsBasedOnCategory($category_id) {\n $query = \"SELECT \n item.id AS item_id,\n item.name AS item_name,\n item.fee AS item_fee,\n item.description AS item_description,\n item.pickup_lat AS item_pickup_lat,\n item.pickup_long AS item_pickup_long,\n item.return_lat AS item_return_lat,\n item.return_long AS item_return_long,\n item.date_available AS item_date_available,\n item.borrowed AS item_borrowed,\n item.promoted AS item_promoted,\n item.created AS item_created,\n item.last_updated AS item_last_updated,\n c.name AS categories_name,\n c.image_url AS categories_image_url,\n u.username AS user_username,\n u.profile_image_url AS user_profile_image_url,\n image.image_link,\n image.cover AS cover_image\n FROM items item, item_images image, categories c, users u\n WHERE item.id = image.item_id \n AND item.category_id = \" . $category_id \n .\"AND c.id = \" . $category_id \n . \"AND item.user_id = u.id\n ORDER BY item.last_updated DESC\";\n \n $go_q = pg_query($query);\n $items = array();\n\n while ($fe_q = pg_fetch_assoc($go_q)) {\n $items[$fe_q['item_id']]['id'] = $fe_q['item_id'];\n $items[$fe_q['item_id']]['name'] = $fe_q['item_name'];\n $items[$fe_q['item_id']]['fee'] = $fe_q['item_fee'];\n $items[$fe_q['item_id']]['description'] = $fe_q['item_description'];\n $items[$fe_q['item_id']]['pickup_lat'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['pickup_long'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['return_lat'] = $fe_q['item_return_lat'];\n $items[$fe_q['item_id']]['return_long'] = $fe_q['item_return_long'];\n $items[$fe_q['item_id']]['date_available'] = $fe_q['item_date_available'];\n $items[$fe_q['item_id']]['borrowed'] = $fe_q['item_borrowed'];\n $items[$fe_q['item_id']]['promoted'] = $fe_q['item_promoted'];\n $items[$fe_q['item_id']]['created'] = $fe_q['item_created'];\n $items[$fe_q['item_id']]['last_updated'] = $fe_q['item_last_updated'];\n $items[$fe_q['item_id']]['categories_name'] = $fe_q['categories_name'];\n $items[$fe_q['item_id']]['categories_image_url'] = $fe_q['categories_image_url'];\n $items[$fe_q['item_id']]['username'] = $fe_q['user_username'];\n $items[$fe_q['item_id']]['profile_image_url'] = $fe_q['user_profile_image_url'];\n if ($fe_q['cover_image'] == t) {\n $items[$fe_q['item_id']]['cover_image'] = $fe_q['image_link'];\n } else {\n $items[$fe_q['item_id']]['images'][] = array('image_link' => $fe_q['image_link']);\n }\n }\n\n return $items;\n}", "protected function parse($conditions, $operator = 'AND')\n {\n $result = [];\n\n if(\\is_numeric($conditions)){\n $result = [ sprintf(\"id = %d\", $conditions) ];\n } else if(is_array($conditions)){\n foreach($conditions as $key => $value){\n if(\\is_numeric($key)){\n if(\\is_numeric($value)){\n $result[] = sprintf(\"id = %d\", $value);\n } else if(is_string($value)){\n $result[] = $value;\n } else if(is_array($value) && count($value) == 3){\n //caso [ columna, operador, valorDeseado ]\n $result[] = sprintf(\"%s %s '%s'\", ...$value);\n } else {\n throw new \\Exception(\"Unexpected condition format\");\n }\n } else if(is_string($key)) {\n if(is_array($value)){\n $result[] = sprintf(\n \"%s IN(%s)\",\n $key,\n implode(\n ', ',\n array_map(\n function($e){\n if(\\is_numeric($e)){\n return $e;\n }\n return \"'{$e}'\";\n },\n $value\n )\n )\n );\n } else {\n $result[] = sprintf(\"%s = '%s'\", $key, $value);\n }\n } else {\n throw new \\Exception(\"Not implemented 2!\");\n }\n }\n }\n\n return $result;\n }", "public function get(){\n\t\t\t\t\t $this->db->setTablename($this->tablename);\n\t\t\t\t\t ;\n return $this->db->getRows(array(\"where\"=>$condition,\"return_type\"=>\"single\"));\n\t\t\t\t\t }", "private function getListFromDB($table, $conditions = null, $ordering = null) {\n $entity_list = array();\n $sql = \"SELECT * from $table\";\n if(is_array($conditions) and !empty($conditions)){\n $sql .= ' WHERE ' . $this->makeConstraintSQL($conditions);\n }\n if (!is_null($ordering)){\n $sql .= ' ' . $this->makeOrderingSQL($ordering);\n }\n //print_r($sql);\n try {\n\n $stmt = $this->conn->prepare($sql);\n $stmt->execute(array());\n while($row = $stmt->fetch(PDO::FETCH_OBJ)) {\n array_push($entity_list, $row);\n }\n }\n catch(Exception $e) {\n $this->error = '<pre>ERROR: ' . $e->getMessage() . '</pre>';\n }\n return $entity_list;\n}", "function getListArray($tabName, $filterName, $filterValue) {\n global $mysqli;\n\n $header=getColumns($tabName);\n \n $sql=\"SELECT * FROM $tabName WHERE $filterName='$filterValue'\";\n\t$resultado=doQuery($sql);\n\treturn $resultado->fetch_all(MYSQLI_BOTH);\n\t/*$noColumnas = count($header);\n\t$html='<thead>';\n\tfor ($i=0; $i < count($header) ; $i++) { \n\t\t$html.=\"<th>\".$header[$i].\"</th>\";\n\t}\n\n\t$html.='</thead>';\n\t\n\tforeach ($resultado->fetch_all(MYSQLI_BOTH) as $key => $value) {\n\t\t\n\t\t$html.='<tr>';\n\t\tfor ($j=0; $j < $noColumnas ; $j++) { \n\t\t\t\n\t\t\t$html.=\"<td>\".$value[$j].\"</td>\";\n\t\t}\n\t\t$html.='</tr>';\n\t}\t\n\n return \"<table class='analyst-list'>\".$html.\"</table>\";*/\n}", "public function getTableWhere() {}", "public function findByConditions(array $condition)\n {\n return self::findOne($condition);\n }", "protected function _getConditions (&$model, $conditions=array()) {\r\n\t\t\r\n\t\tif (empty($conditions)) {\r\n\t\t\treturn array();\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($conditions as $field => $value) {\r\n\t\t\t\r\n\t\t\tunset($conditions[$field]);\r\n\t\t\t\r\n\t\t\t// We will not support nesting/OR\r\n\t\t\tif (is_array($value)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$field = array_pop(explode('.', $field));\r\n\t\t\tif (strpos($field, ' ') === false) {\r\n\t\t\t\t$operator = '=';\r\n\t\t\t} else {\r\n\t\t\t\tlist($field, $operator) = explode(' ', $field);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (!in_array($operator, array('=', '>', '<', '>=', '<=', '!=', '<>', 'LIKE'))) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$conditions[$field] = array(\r\n\t\t\t\t'operator' => $operator,\r\n\t\t\t\t'value' => $value\r\n\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($conditions as $field => $value) {\r\n\t\t\t\r\n\t\t\tswitch ($value['operator']) {\r\n\t\t\t\tcase 'LIKE':\r\n\t\t\t\t\t$value['operator'] = '=';\r\n\t\t\t\t\t$value['value'] = '/' . str_replace('%', '', $value['value']) . '/i';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '<>':\r\n\t\t\t\t\t$value['operator'] = '!=';\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$conditions[$field] = $value;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $conditions;\r\n\t\t\r\n\t}", "function performSQLSelect($tableName, $filter) {\n $conn = $GLOBALS[\"connection\"];\n\n $sql = \"SELECT * FROM \" . $tableName;\n if ($filter <> NULL) {\n $sql = $sql . \" WHERE \";\n\n foreach ($filter as $key => $value) {\n $whereClause[] = $key . \"='\" . $value . \"'\";\n }\n\n $sql = $sql . implode(\" AND \", $whereClause);\n }\n $result = mysqli_query($conn, $sql);\n if (!$result) {\n printCallstackAndDie();\n }\n $results = NULL;\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC)) {\n $results[] = $row;\n }\n\n\n return $results;\n}", "public function getConditions();", "public function getConditions();", "public function getConditions();", "protected function fetchItemsFromUserFunction($tableName, $fieldName)\n {\n $values = array();\n\n $configuration = Tca::table($tableName)->field($fieldName)->getConfiguration();\n if (!empty($configuration['itemsProcFunc'])) {\n $parts = explode('->', $configuration['itemsProcFunc']);\n $obj = GeneralUtility::makeInstance($parts[0]);\n $method = $parts[1];\n\n $parameters = ['items' => []];\n $obj->$method($parameters);\n\n foreach ($parameters['items'] as $items) {\n $values[$items[1]] = $items[0];\n }\n }\n return $values;\n }", "public function GetRows($table,$conditions = array()){\n\t\t$sql = 'SELECT ';\n\t\t$sql .= array_key_exists(\"select\",$conditions)?$conditions['select']:'*';\n\t\t$sql .= ' FROM '.$table;\n\t\tif(array_key_exists(\"where\",$conditions)){\n\t\t\t$sql .= ' WHERE ';\n\t\t\t$i = 0;\n\t\t\tforeach($conditions['where'] as $key => $value){\n\t\t\t\t$pre = ($i > 0)?' AND ':'';\n\t\t\t\t$sql .= $pre.$key.\" = '\".$value.\"'\";\n\t\t\t\t$i++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(array_key_exists(\"order_by\",$conditions)){\n\t\t\t$sql .= ' ORDER BY '.$conditions['order_by']; \n\t\t}\n\t\t\n\t\tif(array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n\t\t\t$sql .= ' LIMIT '.$conditions['start'].','.$conditions['limit']; \n\t\t}elseif(!array_key_exists(\"start\",$conditions) && array_key_exists(\"limit\",$conditions)){\n\t\t\t$sql .= ' LIMIT '.$conditions['limit']; \n\t\t}\n\t\t\n\t\t$query = $this->db->prepare($sql);\n\t\t$query->execute();\n\t\t\n\t\tif(array_key_exists(\"return_type\",$conditions) && $conditions['return_type'] != 'all'){\n\t\t\tswitch($conditions['return_type']){\n\t\t\t\tcase 'count':\n\t\t\t\t\t$data = $query->rowCount();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'single':\n\t\t\t\t\t$data = $query->fetch(PDO::FETCH_ASSOC);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$data = '';\n\t\t\t}\n\t\t}else{\n\t\t\tif($query->rowCount() > 0){\n\t\t\t\t$data = $query->fetchAll();\n\t\t\t}\n\t\t}\n\t\treturn !empty($data)?$data:false;\n\t}", "public function getuserdata($table, $condition = 1)\n\n\t{\n\t\t$sql = \"SELECT * FROM $table where $condition \";\n\t\t$stat = $this->prepare($sql);\n\t\t$stat->execute();\n\t\treturn $stat->fetchAll(PDO::FETCH_ASSOC);\n\t}", "public function getSpecific($cols, $conditions, $table) \n {\n $values = array();\n $prepReq = \"SELECT\";\n foreach ($cols as $col) \n\t\t\t{ \n\t\t\t$prepReq = $prepReq.\" \".$col.\",\"; \n\t\t\t}\n $prepReq = substr_replace($prepReq ,\"\",-1) . \" FROM \" . $table; //remove last coma and add contents\n\t\t\t\n if(sizeof($conditions) != 0) \n\t\t\t{\n $prepReq = $prepReq . \" WHERE\";\n foreach ($conditions as $condition) \n\t\t\t\t{ \n $prepReq = $prepReq.\" \".$condition[0].\" = ? and\"; \n array_push($values, $condition[1]);\n }\n $prepReq = substr_replace($prepReq ,\"\",-4); //remove last \" AND\"\n }\n\t\t\t\n $req = $this->db->prepare($prepReq);\n $req->execute($values);\n $res = $req->fetchAll(PDO::FETCH_ASSOC);\n return $res;\n\n }", "public function getItems()\n {\n $Items = $this->mysql->QUERY(\n 'SELECT player_equipment.*,\n server_items.NAME,\n server_items.CATEGORY,\n server_items.LOOT_ID,\n server_items.SLOTS,\n server_items.DAMAGE,\n server_items.SHIELD,\n server_items.SHIELD_ABSORBATION,\n server_items.SPEED,\n server_items.SELLING_CREDITS\n FROM player_equipment, server_items\n WHERE player_equipment.USER_ID = ?\n AND player_equipment.PLAYER_ID = ?\n AND server_items.ID = player_equipment.ITEM_ID\n ORDER BY server_items.TYPE ASC,\n server_items.ID DESC,\n player_equipment.ITEM_LVL DESC',\n [$this->user->USER_ID, $this->user->PLAYER_ID]);\n return $Items;\n }", "private function get_filterItemsWrap( $items )\n {\n $arr_return = array();\n\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Get TS filter configuration\n $conf_name = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field ];\n $conf_array = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ];\n\n // IF NOT CATEGORY_MENU ajax class onchange\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name != 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 11+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEMENU' ):\n // Follow the workflow\n break;\n default:\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n }\n // IF NOT CATEGORY_MENU ajax class onchange\n // DRS :TODO:\n if ( $this->pObj->b_drs_devTodo )\n {\n $prompt = 'Check multiple!';\n t3lib_div::devlog( '[INFO/TODO] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS :TODO:\n // Set multiple property\n // SWITCH type of filter\n switch ( $conf_name )\n {\n case ( 'SELECTBOX' ) :\n $size = $conf_array[ 'size' ];\n $multiple = null;\n if ( $size >= 2 )\n {\n if ( $conf_array[ 'multiple' ] == 1 )\n {\n $multiple = ' ' . $conf_array[ 'multiple.' ][ 'selected' ];\n }\n }\n break;\n case ( 'CHECKBOX' ) :\n// // #i0185, 150715, dwildt\n// $size = null;\n// $multiple = null;\n// if ( $conf_array[ 'multiple' ] == 1 )\n// {\n// $multiple = ' ' . $conf_array[ 'multiple.' ][ 'selected' ];\n// }\n// break;\n case ( 'CATEGORY_MENU' ) :\n case ( 'RADIOBUTTONS' ) :\n $size = null;\n $multiple = null;\n break;\n // #41753.01, 121010, dwildt, 4+\n case ('TREEVIEW') :\n $size = null;\n $multiple = true;\n break;\n default :\n if ( $this->pObj->b_drs_error )\n {\n $prompt = 'undefined value in switch: \\'';\n t3lib_div :: devlog( '[ERROR/JSS] ' . $prompt . $conf_name . '\\'', $this->pObj->extKey, 3 );\n }\n echo '<h1>Undefined value</h1>\n <h2>' . $conf_name . ' is not defined</h2>\n <p>Method ' . __METHOD__ . ' (line: ' . __LINE__ . ')</p>\n <p>Sorry, this error shouldn\\'t occured!</p>\n <p>Browser - TYPO3 without PHP</p>\n ';\n exit;\n break;\n }\n // SWITCH type of filter\n // Set multiple property\n // Get the all items wrap\n $itemsWrap = $this->htmlSpaceLeft . $conf_array[ 'wrap.' ][ 'object' ];\n // Remove empty class\n $itemsWrap = str_replace( ' class=\"\"', null, $itemsWrap );\n\n // Get nice piVar\n $key_piVar = $this->nicePiVar[ 'key_piVar' ];\n //$arr_piVar = $this->nicePiVar['arr_piVar'];\n $str_nicePiVar = $this->nicePiVar[ 'nice_piVar' ];\n\n // Get ID\n $id = $this->pObj->prefixId . '_' . $str_nicePiVar;\n $id = str_replace( '.', '_', $id );\n\n // Replace marker\n $itemsWrap = str_replace( '###TABLE.FIELD###', $key_piVar, $itemsWrap );\n $itemsWrap = str_replace( '###ID###', $id, $itemsWrap );\n $itemsWrap = str_replace( '###SIZE###', $size, $itemsWrap );\n $itemsWrap = str_replace( '###MULTIPLE###', $multiple, $itemsWrap );\n // Replace marker\n // Wrap all items\n $items = PHP_EOL . $items . $this->htmlSpaceLeft;\n $items = str_replace( '|', $items, $itemsWrap );\n // Wrap all items\n // IF CATEGORY_MENU ajax class onchange\n // #41753.01, 121010, dwildt, 4-\n// if($conf_name == 'CATEGORY_MENU')\n// {\n// $conf_array = $this->pObj->objJss->class_onchange($conf_name, $conf_array, $this->row_number);\n// }\n // #41753.01, 121010, dwildt, 10+\n switch ( true )\n {\n case( $conf_name == 'CATEGORY_MENU' ):\n case( $conf_name == 'TREEVIEW' ):\n $conf_array = $this->pObj->objJss->class_onchange( $conf_name, $conf_array, $this->row_number );\n break;\n default:\n // Follow the workflow\n break;\n }\n // IF CATEGORY_MENU ajax class onchange\n // Wrap the filter\n $items = $this->get_filterWrap( $items );\n\n // RETURN content\n $arr_return[ 'data' ][ 'items' ] = $items;\n return $arr_return;\n }", "abstract protected function getWhereForRow($data);", "function getFilesByCond(){\n\t\t\t\t\n if( $this->cond == '') return ;\n \n $sql = \"SELECT * FROM \".$this->tableImages().\" WHERE $this->cond \";\n return $this->db->query($sql)->result('array');\n\t\t\n\t}", "public static function where($condition, $proyection = null){\n $objects = array();\n \n foreach (ObjectRetriever::retrieveWhere(get_called_class(), $condition, $proyection) as $data){\n $objects[] = ObjectBuilder::build(get_called_class(), $data);\n }\n \n return $objects;\n }", "public function getRows( $table, $conditions = array() )\r\n {\r\n $sql = 'SELECT ';\r\n $sql .= array_key_exists(\"select\", $conditions) ? $conditions['select'] : '*';\r\n $sql .= ' FROM ' . $table;\r\n if( array_key_exists(\"where\", $conditions) )\r\n {\r\n $sql .= ' WHERE ';\r\n $i = 0;\r\n foreach( $conditions['where'] as $key => $value )\r\n {\r\n $pre = ($i > 0) ? ' AND ' : '';\r\n $sql .= $pre . $key . \" = '\" . $value . \"'\";\r\n $i++;\r\n }\r\n }\r\n \r\n if( array_key_exists(\"custom\", $conditions) )\r\n {\r\n $sql .= ' '.$conditions['custom'];\r\n }\r\n \r\n if( array_key_exists(\"order_by\", $conditions) )\r\n {\r\n $sql .= ' ORDER BY ' . $conditions['order_by'];\r\n }\r\n\r\n if( array_key_exists(\"start\", $conditions) && array_key_exists(\"limit\", $conditions) )\r\n {\r\n $sql .= ' LIMIT ' . $conditions['start'] . ',' . $conditions['limit'];\r\n }\r\n elseif( !array_key_exists(\"start\", $conditions) && array_key_exists(\"limit\", $conditions) )\r\n {\r\n $sql .= ' LIMIT ' . $conditions['limit'];\r\n }\r\n\r\n $query = $this->db->prepare($sql);\r\n $query->execute();\r\n \r\n if( array_key_exists(\"return_type\", $conditions) && $conditions['return_type'] != 'all' )\r\n {\r\n switch( $conditions['return_type'] )\r\n {\r\n case 'count':\r\n $data = $query->rowCount();\r\n break;\r\n case 'single':\r\n $data = $query->fetch(PDO::FETCH_ASSOC);\r\n break;\r\n default:\r\n $data = '';\r\n }\r\n }\r\n else\r\n {\r\n if( $query->rowCount() > 0 )\r\n {\r\n $data = $query->fetchAll();\r\n }\r\n }\r\n return !empty($data) ? $data : false;\r\n }", "public function getTabList($conditions='', $limit = '', $orderBy=' appraisalTabName') {\n \n $query = \"SELECT \n *\n FROM \n employee_appraisal_tab\n $conditions \n ORDER BY $orderBy \n $limit\";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", "protected function _list_items_query()\n\t{\n\t\t$this->filters = (array) $this->filters;\n\t\t$where_or = array();\n\t\t$where_and = array();\n\t\tforeach($this->filters as $key => $val)\n\t\t{\n\t\t\tif (is_int($key))\n\t\t\t{\n\t\t\t\tif (isset($this->filters[$val])) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$key = $val;\n\t\t\t\t$val = $this->filter_value;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// used for separating table names and fields since periods get translated to underscores\n\t\t\t\t$key = str_replace(':', '.', $key);\n\t\t\t}\n\t\t\t\n\t\t\t$joiner = $this->filter_join;\n\t\t\t\n\t\t\tif (is_array($joiner))\n\t\t\t{\n\t\t\t\tif (isset($joiner[$key]))\n\t\t\t\t{\n\t\t\t\t\t$joiner = $joiner[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$joiner = 'or';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!empty($val)) \n\t\t\t{\n\t\t\t\t$joiner_arr = 'where_'.$joiner;\n\t\t\t\t\n\t\t\t\tif (strpos($key, '.') === FALSE AND strpos($key, '(') === FALSE) $key = $this->table_name.'.'.$key;\n\t\t\t\t\n\t\t\t\t//$method = ($joiner == 'or') ? 'or_where' : 'where';\n\t\t\t\t\n\t\t\t\t// do a direct match if the values are integers and have _id in them\n\t\t\t\tif (preg_match('#_id$#', $key) AND is_numeric($val))\n\t\t\t\t{\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\tarray_push($$joiner_arr, $key.'='.$val);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// from imknight https://github.com/daylightstudio/FUEL-CMS/pull/113#commits-pushed-57c156f\n\t\t\t\t//else if (preg_match('#_from#', $key) OR preg_match('#_to#', $key))\n\t\t\t\telse if (preg_match('#_from$#', $key) OR preg_match('#_fromequal$#', $key) OR preg_match('#_to$#', $key) OR preg_match('#_toequal$#', $key) OR preg_match('#_equal$#', $key))\n\t\t\t\t{\n\t\t\t\t\t//$key = strtr($key, array('_from' => ' >', '_fromequal' => ' >=', '_to' => ' <', '_toequal' => ' <='));\n\t\t\t\t\t$key_with_comparison_operator = preg_replace(array('#_from$#', '#_fromequal$#', '#_to$#', '#_toequal$#', '#_equal$#'), array(' >', ' >=', ' <', ' <=', ' ='), $key);\n\t\t\t\t\t//$this->db->where(array($key => $val));\n\t\t\t\t\t//$where_or[] = $key.'='.$this->db->escape($val);\n\t\t\t\t\tarray_push($$joiner_arr, $key_with_comparison_operator.$this->db->escape($val));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//$method = ($joiner == 'or') ? 'or_like' : 'like';\n\t\t\t\t\t//$this->db->$method('LOWER('.$key.')', strtolower($val), 'both');\n\t\t\t\t\tarray_push($$joiner_arr, 'LOWER('.$key.') LIKE \"%'.strtolower($val).'%\"');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// here we will group the AND and OR separately which should handle most cases me thinks... but if not, you can always overwrite\n\t\t$where = array();\n\t\tif (!empty($where_or))\n\t\t{\n\t\t\t$where[] = '('.implode(' OR ', $where_or).')';\n\t\t}\n\t\tif (!empty($where_and))\n\t\t{\n\t\t\t$where[] = '('.implode(' AND ', $where_and).')';\n\t\t}\n\t\tif (!empty($where))\n\t\t{\n\t\t\t$where_sql = implode(' AND ', $where);\n\t\t\t$this->db->where($where_sql);\n\t\t}\n\t\t\n\t\t\n\t\t// set the table here so that items total will work\n\t\t$this->db->from($this->table_name);\n\t}", "public function getRowWhere(string $table_name, array $conditions)\n {\n foreach ($this->data[$table_name] as $row_id => $row) {\n $found = true;\n\n foreach ($conditions as $condition_id => $condition_value) {\n if ($row[$condition_id] !== $condition_value) {\n $found = false;\n break;\n }\n }\n\n if ($found) {\n return $row;\n }\n }\n\n return false;\n }", "public static function getItem($data, $where) {\n \t// or maybe should implement AbstractItem::getItem\n $query = new DBQuery();\n return $query->table(self::$tableName)\n ->getFields($data)\n ->where($where)\n ->Query();\n }", "protected function resolveConditions()\n\t{\n\t\tif ($this->isEmpty()) return [ [], [] ];\n\n\t\t$conditions = array_filter([\n\t\t\t$this->resolveStringCondition([ 'type' ], $this->type),\n\t\t\t$this->resolveStringCondition([ 'uri', 'commandName', 'jobName', 'testName' ], array_merge($this->uri, $this->name)),\n\t\t\t$this->resolveStringCondition([ 'controller' ], $this->controller),\n\t\t\t$this->resolveExactCondition([ 'method' ], $this->method),\n\t\t\t$this->resolveNumberCondition([ 'responseStatus', 'commandExitCode', 'jobStatus', 'testStatus' ], $this->status),\n\t\t\t$this->resolveNumberCondition([ 'responseDuration' ], $this->time),\n\t\t\t$this->resolveDateCondition([ 'time' ], $this->received)\n\t\t]);\n\n\t\t$sql = array_map(function ($condition) { return $condition[0]; }, $conditions);\n\t\t$bindings = array_reduce($conditions, function ($bindings, $condition) {\n\t\t\treturn array_merge($bindings, $condition[1]);\n\t\t}, []);\n\n\t\treturn [ $sql, $bindings ];\n\t}", "protected abstract function getWhereClause(array $conditions);", "private function processConditions($conditions)\n\t{\n\t\tif (!is_array($conditions))\n\t\t\treturn $conditions;\n\t\telse\n\t\t throw new \\GO\\Base\\Exception\\Database('condition should be a string');\n\t}", "public static function findBy(array $conditions)\n {\n $arrayOfObjects = [];\n $object = new static;\n $fetchResult = Db::getInstance()->fetchBy($object->getTableName(), $conditions);\n if (!$fetchResult) {\n return null;\n }\n foreach ($fetchResult as $objectState) {\n $object = new static;\n $object->initStateFromArray($objectState);\n $arrayOfObjects[] = $object;\n }\n\n return $arrayOfObjects;\n }", "private function getTableDetail($name){\n\n\n foreach ($this->app[\"tables\"] as $item) {\n\n if($item[\"name\"] == $name){\n return $item;\n }\n\n }\n\n \n\n }", "public function getTableData($criteria = '')\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$class_name = get_class($this);\n\t\t\t\t$table_name = $this->plural(strtolower($class_name));\n\t\t\t\t\n\t\t\t\tif(!empty($criteria))\n\t\t\t\t\t$criteria = ' where ' . $criteria;\n\t\t\t\t\t\n\t\t\t\t$sql = \"select * from $table_name $criteria\";\n\t\t\t\t//error_log(\"sql: \".$sql);\n\t\t\t\treturn self::getDataTable($sql);\n\t\t\t}\n\t\t\tcatch(Exception $e)\n\t\t\t{\n\t\t\t\tThrow $e;\n\t\t\t}\n\t\t}", "private function runList($user, $conditions) {\n $payments_table = TABLE_PREFIX . 'payments';\n \n if($conditions) {\n $query = \"SELECT * FROM $payments_table WHERE $conditions ORDER BY paid_on desc\";\n } else {\n $query = \"SELECT * FROM $payments_table ORDER BY paid_on desc\";\n }//if\n \n $rows = DB::execute($query);\n if($rows) {\n $rows->setCasting(array(\n 'id' => DBResult::CAST_INT, \n 'parent_id' => DBResult::CAST_INT,\n 'group_id' => DBResult::CAST_INT, \n 'created_on' => DBResult::CAST_DATE,\n 'paid_on' => DBResult::CAST_DATE,\n 'amount'\t=> DBResult::CAST_FLOAT\n ));\n \n $rows = $rows->toArray();\n\n // Populate extra info\n $this->populateParentInfo($rows);\n $this->populateClientInfo($rows);\n $this->populateCurrencyInfo($rows);\n $this->populateGatewayInfo($rows);\n\n // Group by and return\n switch($this->getGroupBy()) {\n case self::GROUP_BY_DATE:\n return $this->groupByDate($rows, $user);\n case self::GROUP_BY_MONTH:\n return $this->groupByMonth($rows, $user);\n case self::GROUP_BY_YEAR:\n return $this->groupByYear($rows, $user);\n case self::GROUP_BY_CLIENT:\n return $this->groupByClient($rows, $user);\n default:\n return array(\n array(\n 'label' => lang('All Payments'),\n 'records' => $rows,\n )\n );\n } // if\n } // if\n\n return null;\n }", "public function getItemTableName() {}", "public function getEntriesOfTableWithConditions($targetTable, Array $conditions, $debug = false, $type = 'laravel')\n {\n\n if( $type == 'laravel' ){\n return $this->laravel->laravelFacade($targetTable, $conditions, $debug);\n } else if( $type == \"pdo\" ){\n $this->pdo = new PDOService();\n return $this->pdo->pdoFacade($targetTable, $conditions, $debug);\n }\n }", "protected function fetchItemsFromDatabase($tableName, $fieldName)\n {\n $values = array();\n\n $foreignTable = Tca::table($tableName)->field($fieldName)->getForeignTable();\n if (!empty($foreignTable)) {\n\n $foreignLabelField = Tca::table($foreignTable)->getLabelField();\n $foreignOrder = Tca::table($tableName)->field($fieldName)->getForeignOrder();\n\n $clause = '1 = 1 ';\n $clause .= Tca::table($tableName)->field($fieldName)->getForeignClause();\n if ($this->isFrontendMode()) {\n $clause .= $this->getPageRepository()->enableFields($foreignTable);\n }\n\n $rows = $this->getDatabaseConnection()->exec_SELECTgetRows('uid, ' . $foreignLabelField, $foreignTable, $clause, '', $foreignOrder);\n\n foreach ($rows as $row) {\n $values[$row['uid']] = $row[$foreignLabelField];\n }\n }\n\n return $values;\n }", "public function Select($cond)\r\n\t\r\n {\r\n\t\tglobal $db;\r\n if($cond==\"\")\r\n {\r\n $sql = \"SELECT * FROM \".$this->TableName;\r\n } else\r\n {\t\r\n\t\t \t\r\n\t\t $sql = \"SELECT * FROM \". $this->TableName.\" \".$cond;\r\n }\r\n try{\r\n $query = $db->prepare($sql);\r\n $query->execute();\r\n $arr['rows'] = $query->fetchAll(PDO::FETCH_ASSOC);\r\n $arr['err'] = false;\r\n } catch(PDOException $e){\r\n $arr['err'] = true;\r\n $arr['msg'] = $e->getMessage(); \r\n } \r\n return $arr;\r\n }", "function query_statements($q) {\r\n\t\textract($q);\r\n\t\tlist($resource_ids, $rule_values) = query_result($q);\r\n\t\tfor($i=0;$i<count($resource_ids);$i++) {\r\n\t\t\t$items[] = array('item_id'=>$resource_ids[$i], 'notes'=>get_notes($resource_ids[$i],$db));\r\n\t\t}\r\n\t\treturn $items;\r\n\t}", "private function get_filter()\n {\n $arr_return = array();\n\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'begin' );\n\n // Set marker label\n $markerLabel = '###' . strtoupper( $this->curr_tableField ) . '###';\n\n // RETURN condition isn't met\n if ( !$this->ts_getCondition() )\n {\n $arr_return[ 'data' ][ 'marker' ][ $markerLabel ] = null;\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n return $arr_return;\n }\n // RETURN condition isn't met\n\n $this->set_currFilterIsArea();\n\n // Get filter rows\n $arr_return = $this->get_rows();\n if ( $arr_return[ 'error' ][ 'status' ] )\n {\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n return $arr_return;\n }\n $rows = $arr_return[ 'data' ][ 'rows' ];\n unset( $arr_return );\n // Get filter rows\n // Set class var $rows\n $this->rows = $rows;\n\n // Localise the rows\n $this->localise();\n\n // Render the filter rows\n $arr_return = $this->get_filterItems();\n $items = $arr_return[ 'data' ][ 'items' ];\n unset( $arr_return );\n $arr_return[ 'data' ][ 'marker' ][ $markerLabel ] = $items;\n // Render the filter rows\n // Prompt the expired time to devlog\n $debugTrailLevel = 1;\n $this->pObj->timeTracking_log( $debugTrailLevel, 'end' );\n return $arr_return;\n }", "public function getObjects($table, $conditions = array(), $params = array(), $className = NULL) {\r\n $p = array( 'object' => $table );\r\n if (!empty($conditions)) {\r\n $p['condition'] = $conditions;\r\n }\r\n if (!empty($params)) {\r\n $p = array_merge($p, $params);\r\n }\r\n $xml = $this->post('/api/getObjects.sjs', $p);\r\n \r\n if ($this->success($xml)) {\r\n if (empty($className)) {\r\n return $xml;\r\n }\r\n else {\r\n $out = array();\r\n if ($xml->$table->item) {\r\n\t\t foreach ($xml->$table->item as $item) {\r\n\t\t $out[] = new $className($item);\r\n\t\t }\r\n }\r\n return $out;\r\n }\r\n }\r\n return NULL;\r\n }", "abstract public function getTables();", "function getQuestionsTable($arrFilter)\n\t{\n\t\tglobal $ilUser;\n\t\tglobal $ilDB;\n\t\t$where = \"\";\n\t\tif (is_array($arrFilter))\n\t\t{\n\t\t\tif (array_key_exists('title', $arrFilter) && strlen($arrFilter['title']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.title', 'text', \"%%\" . $arrFilter['title'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('description', $arrFilter) && strlen($arrFilter['description']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.description', 'text', \"%%\" . $arrFilter['description'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('author', $arrFilter) && strlen($arrFilter['author']))\n\t\t\t{\n\t\t\t\t$where .= \" AND \" . $ilDB->like('svy_question.author', 'text', \"%%\" . $arrFilter['author'] . \"%%\");\n\t\t\t}\n\t\t\tif (array_key_exists('type', $arrFilter) && strlen($arrFilter['type']))\n\t\t\t{\n\t\t\t\t$where .= \" AND svy_qtype.type_tag = \" . $ilDB->quote($arrFilter['type'], 'text');\n\t\t\t}\n\t\t\tif (array_key_exists('spl', $arrFilter) && strlen($arrFilter['spl']))\n\t\t\t{\n\t\t\t\t$where .= \" AND svy_question.obj_fi = \" . $ilDB->quote($arrFilter['spl'], 'integer');\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t\t$spls =& $this->getAvailableQuestionpools($use_obj_id = TRUE, $could_be_offline = FALSE, $showPath = FALSE);\n\t\t$forbidden = \"\";\n\t\t$forbidden = \" AND \" . $ilDB->in('svy_question.obj_fi', array_keys($spls), false, 'integer');\n\t\t$forbidden .= \" AND svy_question.complete = \" . $ilDB->quote(\"1\", 'text');\n\t\t$existing = \"\";\n\t\t$existing_questions =& $this->getExistingQuestions();\n\t\tif (count($existing_questions))\n\t\t{\n\t\t\t$existing = \" AND \" . $ilDB->in('svy_question.question_id', $existing_questions, true, 'integer');\n\t\t}\n\t\t\n\t\tinclude_once \"./Modules/SurveyQuestionPool/classes/class.ilObjSurveyQuestionPool.php\";\n\t\t$trans = ilObjSurveyQuestionPool::_getQuestionTypeTranslations();\n\t\t\n\t\t$query_result = $ilDB->query(\"SELECT svy_question.*, svy_qtype.type_tag, svy_qtype.plugin, object_reference.ref_id\".\n\t\t\t\" FROM svy_question, svy_qtype, object_reference\".\n\t\t\t\" WHERE svy_question.original_id IS NULL\".$forbidden.$existing.\n\t\t\t\" AND svy_question.obj_fi = object_reference.obj_id AND svy_question.tstamp > 0\".\n\t\t\t\" AND svy_question.questiontype_fi = svy_qtype.questiontype_id \" . $where);\n\n\t\t$rows = array();\n\t\tif ($query_result->numRows())\n\t\t{\n\t\t\twhile ($row = $ilDB->fetchAssoc($query_result))\n\t\t\t{\n\t\t\t\tif (array_key_exists('spl_txt', $arrFilter) && strlen($arrFilter['spl_txt']))\n\t\t\t\t{\n\t\t\t\t\tif(!stristr($spls[$row[\"obj_fi\"]], $arrFilter['spl_txt']))\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$row['ttype'] = $trans[$row['type_tag']];\n\t\t\t\tif ($row[\"plugin\"])\n\t\t\t\t{\n\t\t\t\t\tif ($this->isPluginActive($row[\"type_tag\"]))\n\t\t\t\t\t{\n\t\t\t\t\t\tarray_push($rows, $row);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tarray_push($rows, $row);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $rows;\n\t}", "static function getForSelectByConditions($conditions, $additional_table = null) {\n $user_table = TABLE_PREFIX . 'users';\n\n $tables = $additional_table ? \"$user_table, $additional_table\" : $user_table;\n $conditions = DB::prepareConditions($conditions);\n\n if($conditions) {\n $users = DB::execute(\"SELECT $user_table.id, $user_table.first_name, $user_table.last_name, $user_table.email FROM $tables WHERE $conditions ORDER BY CONCAT($user_table.first_name, $user_table.last_name, $user_table.email)\");\n } else {\n $users = DB::execute(\"SELECT $user_table.id, $user_table.first_name, $user_table.last_name, $user_table.email FROM $tables ORDER BY CONCAT($user_table.first_name, $user_table.last_name, $user_table.email)\");\n } // if\n\n if($users) {\n $users->setCasting(array(\n 'id' => DBResult::CAST_INT,\n ));\n\n return Users::sortUsersForSelect($users);\n } else {\n return null;\n } // if\n }", "function getStakeholderItem($mainBusiness, $conn, $item) {\n $stakeholders = []; $stakeholder = [];\n $sql_key_info = \"SELECT `description` FROM tbl_catalogue_summary WHERE tab = 'Sustainability Measures' AND sub_tab = 'Stakeholders' AND button_in_sub_tab = '$item'\";\n $result_key_info =mysqli_query($conn, $sql_key_info);\n $key_info = mysqli_fetch_all($result_key_info, MYSQLI_ASSOC);\n //Get tables name from tbl_catalogue_summary.\n $sql_tables = \"SELECT tbl_pull_request_1_source FROM tbl_catalogue_summary WHERE tab = 'Sustainability Measures' AND sub_tab = 'Stakeholders' AND button_in_sub_tab = '$item'\";\n $result_table = mysqli_query($conn, $sql_tables);\n $tables = mysqli_fetch_all($result_table, MYSQLI_ASSOC);\n foreach ($mainBusiness as $mainBusiness_item) {\n foreach ($key_info as $key => $key_info_item) {\n $country_name = $mainBusiness_item['country'];\n $col = $key_info_item['description'];\n $table = $tables[$key]['tbl_pull_request_1_source'];\n //Get table content from $tables.\n $content = getContent($table, '', $conn);\n foreach ($content as $content_item) {\n if(isset($content_item['country'])&&isset($content_item[$col])) {\n if($content_item['country']==$country_name) {\n $result_col = [];\n $result_col[$col] = $content_item[$col];\n array_push($stakeholder, $result_col);\n }\n }\n }\n }\n array_push($stakeholders, $stakeholder);\n }\n return $stakeholders;\n }", "function findByCondition($condition = array()){\n $mBlog = M('artical');\n $count = $mBlog->field(\"a.*,u.nickname\")\n ->alias(\"a\")\n ->join(\"LEFT JOIN db_user u on u.id = a.u_id\")\n ->order('a.addtime desc')\n ->where($condition)\n ->count();\n $page = new \\Think\\Page($count,2);\n $show = $page->show();\n $data = $mBlog->field(\"a.*,u.nickname\")\n ->alias(\"a\")\n ->join(\"LEFT JOIN db_user u on u.id = a.u_id\")\n ->order('a.addtime desc')\n ->where($condition)\n ->limit($page->firstRow.','.$page->listRows)->select();\n return array(\n 'show' => $show,\n 'data' => $data\n );\n }", "function get_table_entries($table_name, $choosen_fields = [], $filters = [])\n\t{\n\t\t$i = 0;\n\t\t$data = [];\n\t\t$entry = [];\n\t\t// Select only given columns\n\t\tif (!empty($choosen_fields)){\n\t\t\tforeach($choosen_fields as $choosen_field){\n\t\t\t\t$this->db->select($choosen_field);\n\t\t\t}\n\t\t}\n\t\t// Add filters given as array\n\t\tif (!empty($filters)){\n\t\t\tforeach($filters as $filter){\n\t\t\t\t$this->db->where($filter);\n\t\t\t}\n\t\t}\n\t\t$query = $this->db->get($table_name);\n\t\t\n\t\t$table_columns = $this->get_table_columns($table_name, $choosen_fields);\n\t\t\n\t\tforeach ($query->result() as $row):\n\t\t\n\t\t\tforeach ($table_columns as $table_column):\n\t\t\t\t$entry[$table_column] = $row->$table_column;\n\t\t\tendforeach;\n\t\t\t\n\t\t\t$data[$i] = $entry;\n\t\t\t$i++;\n\t\tendforeach;\n\t\t\n\t\treturn $data;\n\t}", "public static function itemsIn(array $inputs = [], array $conditions = []):array {\n\n # Declare Result & inputMissing\n $result = [];\n $inputsMissing = \"\";\n\n # Check inputs and conditions\n if(empty($inputs) || empty($conditions))\n return $result;\n\n # Check if only one value\n if( ( $inputs['name'] ?? false ) || ( $inputs['type'] ?? false ))\n\n # Put input in an array\n $inputs = [$inputs];\n\n # Iteration of input\n foreach($inputs as $input){\n \n # Get corresponding condition\n $condition = Arrays::filterByKey($conditions, \"name\", $input[\"name\"]);\n \n # Check condition\n if(!empty($condition)){\n\n # Iteration des condition\n foreach($condition as $k => $v)\n\n # Unset value\n unset($conditions[$k]);\n\n # Push current input in result\n $result[] = $input;\n\n }\n\n }\n\n # Check required conditions\n if(!empty($conditions))\n\n # Iteration des conditions\n foreach($conditions as $condition)\n\n # Check required\n if($condition[\"required\"] ?? false)\n\n # Push name of required parameter in inputsMissing\n $inputsMissing .= ($inputsMissing ? \", \" : \"\").\n \"\\\"\".$condition['name'].\"\\\"\";\n\n # Check input missing\n if($inputsMissing)\n\n # New Exception\n throw new CrazyException(\n \"$inputsMissing \".\n (\n strpos($inputsMissing, \",\") !== false ?\n \"are \" :\n \"\"\n ).\n \"missing in processed inputs...\",\n 500,\n [\n \"custom_code\" => \"process-010\",\n ]\n );\n\n # Return result\n return $result;\n\n }", "function getByStatus(int $condition): array\n {\n return [];\n }", "function getAllItemsChronological() {\n $query = \"SELECT \n item.id AS item_id,\n item.name AS item_name,\n item.fee AS item_fee,\n item.description AS item_description,\n item.pickup_lat AS item_pickup_lat,\n item.pickup_long AS item_pickup_long,\n item.return_lat AS item_return_lat,\n item.return_long AS item_return_long,\n item.date_available AS item_date_available,\n item.borrowed AS item_borrowed,\n item.promoted AS item_promoted,\n item.created AS item_created,\n item.last_updated AS item_last_updated,\n c.name AS categories_name,\n c.image_url AS categories_image_url,\n u.username AS user_username,\n u.profile_image_url AS user_profile_image_url,\n image.image_link,\n image.cover AS cover_image\n FROM items item, item_images image, categories c, users u\n WHERE item.id = image.item_id \n AND item.category_id = c.id\n AND item.user_id = u.id\n AND item.borrowed = '0'\n ORDER BY item.last_updated DESC\";\n \n $go_q = pg_query($query);\n $items = array();\n\n while ($fe_q = pg_fetch_assoc($go_q)) {\n $items[$fe_q['item_id']]['id'] = $fe_q['item_id'];\n $items[$fe_q['item_id']]['name'] = $fe_q['item_name'];\n $items[$fe_q['item_id']]['fee'] = $fe_q['item_fee'];\n $items[$fe_q['item_id']]['description'] = $fe_q['item_description'];\n $items[$fe_q['item_id']]['pickup_lat'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['pickup_long'] = $fe_q['item_pickup_lat'];\n $items[$fe_q['item_id']]['return_lat'] = $fe_q['item_return_lat'];\n $items[$fe_q['item_id']]['return_long'] = $fe_q['item_return_long'];\n $items[$fe_q['item_id']]['date_available'] = $fe_q['item_date_available'];\n $items[$fe_q['item_id']]['borrowed'] = $fe_q['item_borrowed'];\n $items[$fe_q['item_id']]['promoted'] = $fe_q['item_promoted'];\n $items[$fe_q['item_id']]['created'] = $fe_q['item_created'];\n $items[$fe_q['item_id']]['last_updated'] = $fe_q['item_last_updated'];\n $items[$fe_q['item_id']]['categories_name'] = $fe_q['categories_name'];\n $items[$fe_q['item_id']]['categories_image_url'] = $fe_q['categories_image_url'];\n $items[$fe_q['item_id']]['username'] = $fe_q['user_username'];\n $items[$fe_q['item_id']]['profile_image_url'] = $fe_q['user_profile_image_url'];\n \n if ($fe_q['cover_image'] == t) {\n $items[$fe_q['item_id']]['cover_image'] = $fe_q['image_link'];\n } else {\n $items[$fe_q['item_id']]['images'][] = array('image_link' => $fe_q['image_link']);\n }\n \n }\n \n return $items;\n\n}", "public function fetch_tab2($conn,$tab,$userid,$item_id){\r\n $q=\"select * from \".$tab.\" WHERE (this_user_works_under= \".$userid.\" OR user_id = \". $userid.\") AND item_id= \".$item_id ;\r\n $stat=$conn->prepare($q);\r\n $stat->execute();\r\n $data = $stat->fetchAll(PDO::FETCH_ASSOC); \r\n return $data; \r\n }", "function get_where($table_name,$where){\n\t\t$CI = &get_instance();\n\t\treturn $CI->db->get_where($table_name,$where)->result_array();\n\t}", "public function getItems()\n {\n if (!isset($this->_item)) {\n $sname = ($this->_short) ? ' short ' : ' name ';\n $cache = JFactory::getCache('com_hockey', '');\n $id = 'modmatch-' . $this->_id . '-' . $sname;\n $this->_item = $cache->get($id);\n\n if ($this->_item === false) {\n $db = $this->getDbo();\n $query = $db->getQuery(true)\n ->select(\"t3.$sname as team1,t2.$sname as team2, t1.score_1, t1.score_2\")\n ->from('#__hockey_match t1')\n ->join('INNER', '#__hockey_teams t2 ON (t2.id = t1.team_2)')\n ->join('INNER', '#__hockey_teams t3 ON (t3.id = t1.team_1)')\n ->where('t1.id_system=' . $db->Quote($this->_sez) . ' AND t1.state=1 AND t1.id_kolejka='. $db->Quote($this->_id).' AND t1.type_of_match=0 ');\n\n $db->setQuery($query);\n\n $this->_item = $db->loadObjectList();\n $cache->store($this->_item, $id);\n }\n }\n return $this->_item;\n }", "function getListByState()\n {\n // Get the session state, or create a new session state\n $state = $this->checkState($this->getState());\n\n // Set up sorting and pagination\n $order = $state->sortBy . \" \" . ($state->sortAsc ? \"ASC\" : \"DESC\");\n $limit = $state->pageSize;\n $page = $state->pageShown;\n\n // Start with no tables, and noconditions\n //$tables = \"\"; //unused\n $conditions = $this->conditions;\n\n // Add the main table\n\n // Add in the map filter conditions\n\n if (!empty($state->mapFilterSelections)) {\n foreach ($state->mapFilterSelections as $column => $value) {\n if (!empty($column) && null !== $value && \"\" != $value) {\n $conditions[$column] = $value;\n }\n }\n }\n\n // Add in any join filter conditions\n if (!empty($state->joinFilterSelections)) {\n foreach ($state->joinFilterSelections as $filter => $value) {\n // Find the joinFilter object relating to this one\n $joinFilter = null;\n foreach ($this->joinFilters as $thisJoinFilter) {\n if ($thisJoinFilter['id'] == $filter) {\n $joinFilter = $thisJoinFilter;\n break;\n }\n }\n\n // Make sure we found this filter\n if ($joinFilter == null) {\n continue;\n }\n\n // Check to make sure we should be considering this value at this time\n if (!empty($joinFilter['dependsMap']) && !empty($joinFilter['dependsValues'])) {\n if (!empty($state->mapFilterSelections)) {\n if (!in_array($state->mapFilterSelections->$joinFilter['dependsMap'],\n $joinFilter['dependsValues'])) {\n // do not concider at this time\n continue;\n }\n } else {\n continue;\n }\n }\n\n if (!empty($filter) && !empty($value)) {\n // Keywords starting with !!! are a special case\n if (!$this->isSpecialValue($value)) {\n $conditions[$filter] = $value;\n } else {\n // note: no quotes around special value\n $conditions[$filter] = substr($value, 3);\n }\n }\n }\n }\n\n // Add in any extra Filters - by array or by string.\n if (!empty($this->extraFilters)) {\n if (is_array($this->extraFilters)) {\n /*foreach ($this->extraFilters as $column => $value) {\n $conditions[$column] = $value;\n }*/\n $conditions = array_merge($conditions, $this->extraFilters);\n } else if (is_string($this->extraFilters)) {\n $conditions[] = $this->extraFilters;\n }\n }\n\n // Add in the search conditions\n if (!empty($state->searchBy) && !empty($state->searchValue)) {\n $conditions[$state->searchBy . \" LIKE\"] = '%' . $state->searchValue . '%';\n }\n\n // The default functions for searhing\n $customModelFindFunction = \"find\";\n\n // Put in the custom functions is they were suppplied\n if (!empty($this->customModelFindFunction)) {\n $customModelFindFunction = $this->customModelFindFunction;\n }\n if (!empty($this->customModelCountFunction)) {\n $customModelCountFunction = $this->customModelCountFunction;\n }\n\n // Figure out the table joins, if any\n $joinTable = \"\";\n // comment out by compass. use association and default join format\n/* if (!empty($this->joinFilters)) {\n for ($i = 0; $i < sizeof($this->joinFilters); $i++) {\n $joinFilter = $this->joinFilters[$i];\n if (!empty($joinFilter)) {\n // Set up the default values\n $localKey = !empty($joinFilter['localKey']) ? $joinFilter['localKey'] : \"id\";\n $foreignKey = !empty($joinFilter['foreignKey']) ? $joinFilter['foreignKey'] : \"id\";\n $localModel = !empty($joinFilter['localModel']) ? $joinFilter['localModel'] : $this->model->name;\n\n $joinTable .= \" LEFT JOIN `$joinFilter[joinTable]` as `$joinFilter[joinModel]`\";\n $joinTable .= \" on `$localModel`.`$localKey`=`$joinFilter[joinModel]`.`$foreignKey`\";\n }\n }\n}*/\n\n\n\n // Get the group By // we always group by this models's id, to make\n // sure there is only 1 result per entry even when using inner join.\n $groupBy = array($this->model->name . \".id\");\n\n // Do the database quiries to return the data\n // Group by needs to be \"hacked\" onto the conditions, since Cake php 1.1 has no direct support\n // for it. However, in findCound, the group by must be absent.\n $data = $this->model->$customModelFindFunction('all', array('conditions' => $conditions,\n 'group' => $groupBy,\n 'fields' => $this->fields,\n 'order' => $order,\n 'limit' => $limit,\n 'page' => $page,\n 'recursive' => $this->recursive,\n 'joins' => array($joinTable)));\n\n // Counts a bit more difficult with grouped, joint tables.\n if (isset($customModelCountFunction)) {\n $count = $this->model->$customModelCountFunction\n ($conditions, $groupBy, $this->recursive, array($joinTable));\n } else {\n //$count = $this->betterCount\n // ($conditions, $groupBy, array($joinTable));\n $count = $this->model->$customModelFindFunction('count', array('conditions' => $conditions,\n ));\n }\n\n // Format the dates as given in the iPeer database\n $data = $this->formatDates($data);\n\n // Post-process Data, if asked\n if (!empty($this->postProcessFunction)) {\n $function = $this->postProcessFunction;\n $data = $this->controller->$function($data);\n }\n\n // Package up the list, and return it to caller\n $result = array (\"entries\" => $data,\n \"count\" => $count,\n \"state\" => $state,\n \"timeStamp\" => time());\n\n return $result;\n }", "public function where($conditions)\n {\n $where = '';\n $conditionAndValues = [];\n\n if(is_array($conditions[0])) {\n foreach($conditions as $cond) {\n $condition = filter_var($cond[0], FILTER_SANITIZE_STRING);\n $operator = filter_var($cond[1], FILTER_SANITIZE_STRING);\n $value = filter_var($cond[2], FILTER_SANITIZE_STRING);\n\n $where .= $condition.' '.$operator. ' :'.$condition.' AND ';\n $cav = [':'.$condition, $value];\n array_push($conditionAndValues, $cav);\n }\n $class = get_called_class();\n $model = new $class();\n $model->setTable();\n $model->prepareWhereQuery($conditionAndValues, rtrim($where, ' AND '));\n return $model;\n } else {\n $condition = filter_var($conditions[0], FILTER_SANITIZE_STRING);\n $operator = filter_var($conditions[1], FILTER_SANITIZE_STRING);\n $value = filter_var($conditions[2], FILTER_SANITIZE_STRING);\n\n $where = $condition.' '.$operator.' :'.$condition;\n $cav = [':'.$condition, $value];\n array_push($conditionAndValues, $cav);\n $class = get_called_class();\n $model = new $class();\n $model->setTable();\n $model->prepareWhereQuery($conditionAndValues, $where);\n return $model;\n }\n }", "public function fetchFromTableWhere(string $className, array $criteria): array\n {\n $tableName = $className::getTableName();\n // Construit la requête préparée avec le nom de la table...\n $query = 'SELECT * FROM `' . $tableName . '` ';\n // ...puis tous les critères de filtrage\n foreach ($criteria as $key => $value) {\n $query .= 'WHERE `' . $key . '` = :' . $key;\n }\n // Prépare la requête\n $statement = $this->databaseHandler->prepare($query);\n\n // Exécute la requête en remplaçant tous les champs variables par leur valeur\n foreach ($criteria as $key => $value) {\n $params [':' . $key]= $value;\n }\n $statement->execute($params);\n\n // Récupère tous les résultats de la requête sous forme d'objets\n // de la classe spécifiée en paramètres\n $result = $statement->fetchAll(PDO::FETCH_FUNC,\n function (...$params) use ($className) {\n return new $className(...$params);\n }\n );\n\n // Renvoie le gestionnaire de requête\n return $result;\n }", "public static function arrayFromDb ($condition = NULL) {\n\n # Build the query to get all the users\n $q = 'SELECT * \n FROM venues\n ORDER BY name';\n\n if (isset($condition))\n $q = $q.\" \".$condition;\n \n # Execute the query to get all the venues.\n $venue_rows = DB::instance(DB_NAME)->select_rows($q);\n\n $venues = array();\n\n foreach ($venue_rows as $venue_row) {\n $venue = new Venue();\n $venue->populateFromDb($venue_row);\n $venues[] = $venue;\n }\n \n return $venues; \n }", "public function get_available_vehicles($condition = array()) {\n $data = array();\n $k = 0;\n foreach ($condition as $key => $value) {\n $data[$k] = MongoID($value);\n $k++;\n }\n \n $this->mongo_db->select(array('vehicle_type'));\n $this->mongo_db->where(array('status' => 'Active'));\n $this->mongo_db->where_in('_id', $data);\n $res = $this->mongo_db->get(VEHICLES);\n return $res;\n }", "public function getCategorizedTables() {}", "public function fetchList($field='title',$conditions = array(),$options=array()) {\n\t\t$conditions = $this->prepare($conditions);\n\n\t\t//Break out query and conditions and remember PDO is numbered from 1, not 0\n\t\tif(!empty($conditions)) { \n\t\t\t$query = $conditions[0];\n\t\t\tunset($conditions[0]);\n\t\t} else {\n\t\t\t$query = \"\";\n\t\t}\n\n\t\tif(is_array($field)) {\n\t\t\t$field1 = $field[0];\n\t\t\t$field2 = $field[1];\n\t\t} else {\n\t\t\t$field1 = 'id';\n\t\t\t$field2 = $field;\n\t\t}\n\t\t$f1 = $this->db->quotekey($field1);\n\t\t$f2 = $this->db->quotekey($field2);\n\n\t\t//Handle empty conditions\t\n\t\tif(empty($query)) { $query = \"1=1\"; }\n\n\t\t$results = $this->db->exec(\"SELECT $f1,$f2 FROM $this->name WHERE \" . $query,$conditions);\n\t\t$output = Hash::combine($results,'{n}.'.$field1,'{n}.'.$field2);\n\t\treturn $output;\n\t}", "function getItems($db, $resource_pk) {\r\n\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nSELECT i.item_pk, i.item_title, i.item_text, i.item_url, i.max_rating mr, i.step st, i.visible vis, i.sequence seq,\r\n i.created cr, i.updated upd, COUNT(r.user_pk) num, SUM(r.rating) total\r\nFROM {$prefix}item i LEFT OUTER JOIN {$prefix}rating r ON i.item_pk = r.item_pk\r\nWHERE (i.resource_link_pk = :resource_pk)\r\nGROUP BY i.item_pk, i.item_title, i.item_text, i.item_url, i.max_rating, i.step, i.visible, i.sequence, i.created, i.updated\r\nORDER BY i.sequence\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_INT);\r\n $query->execute();\r\n\r\n $rows = $query->fetchAll(PDO::FETCH_CLASS, 'Item');\r\n if ($rows === FALSE) {\r\n $rows = array();\r\n }\r\n\r\n return $rows;\r\n\r\n }", "public function getItems($type);", "abstract public function getConditionsInstance();" ]
[ "0.5849342", "0.58044875", "0.57625604", "0.5698154", "0.5690556", "0.54994154", "0.54799086", "0.54794645", "0.54792506", "0.54762673", "0.54425746", "0.53905344", "0.53784424", "0.5376493", "0.53420454", "0.5324751", "0.5316241", "0.5308609", "0.5296352", "0.5278461", "0.5251329", "0.5246242", "0.52428627", "0.5237585", "0.5226961", "0.52227354", "0.5220924", "0.52058285", "0.5200252", "0.51788616", "0.51762575", "0.51762575", "0.51735014", "0.51722443", "0.51721257", "0.5163834", "0.5155458", "0.5149849", "0.514223", "0.51360965", "0.512776", "0.5127474", "0.5119409", "0.51068103", "0.5092449", "0.50679183", "0.5064757", "0.5064232", "0.50637335", "0.50637335", "0.50637335", "0.5060437", "0.50582963", "0.5054048", "0.50495535", "0.504642", "0.5044361", "0.5041666", "0.50357306", "0.5035553", "0.50250334", "0.5023318", "0.5019907", "0.50167733", "0.50139874", "0.5004106", "0.50031596", "0.49936607", "0.49815744", "0.4967002", "0.49556735", "0.49498922", "0.49465743", "0.4946493", "0.49457657", "0.49413046", "0.4941109", "0.49309197", "0.491932", "0.49170813", "0.49132872", "0.4910343", "0.49077812", "0.49060512", "0.49014434", "0.49002877", "0.48919848", "0.4881568", "0.48803392", "0.4875839", "0.48750907", "0.48734948", "0.48724395", "0.48718384", "0.4867134", "0.48629925", "0.48587406", "0.48576924", "0.48553908", "0.4854604", "0.48545763" ]
0.0
-1
Attempt to add the current object to the database. No integrity or constraint checks are done when inserting the row.
public function store() { $dbh = App::getDatabase()->connect(); $query = "INSERT INTO ".$this->getTableName()." VALUES ("; $fl = true; foreach ($this as $val) { $query .= (($fl) ? "" : ", ").((is_null($val)||($val === "")) ? "default" : "'".$val."'"); $fl = false; } $query .= ") \nRETURNING "; $fl = true; foreach($this->getPrimaries() as $pk) { $query .= ($fl) ? $pk : ", ".$pk; $fl = false; } $sth = $dbh->query($query); $data = $sth->fetch(\PDO::FETCH_ASSOC); $dbh = null; return $data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function insert() {\r\n\t\t$this->getMapper()->insert($this);\r\n\t}", "public function save(){\n if($this->id == 0) {\n // Object is new and needs to be created\n return $this->insert();\n }\n }", "function addItemToDB()\n {\n $this->database->addItemToDB($this);\n }", "public function add(){\r\n\t\t//$this->auth->set_access('add');\r\n\t\t//$this->auth->validate();\r\n\r\n\t\t//call save method\r\n\t\t$this->save();\r\n\t}", "public function insert()\n\t{\n\t\treturn $this->getModel()->insert($this);\n\t}", "function add( $obj )\r\n\t{\r\n\t\tif ( $this->signUseID == true) {\r\n\t\t\t$pos = $obj->primary_key_value();\r\n\t\t\t$this->data[ $pos ] = $obj;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->data[] = $obj;\r\n\t\t}\r\n\t}", "private final function ensureObjectInDb()\n {\n # WORKING_ON\n $class_reflection = new ReflectionClass(get_class($this));\n do {\n # use reflection to SKIP abstract classes\n if (!$class_reflection->isInstantiable())\n continue;\n\n if (!$this->getLoadedFromDb($class_reflection->getName())) {\n $this->insert($class_reflection->getName());\n break;\n }\n\n } while (($class_reflection = $class_reflection->getParentClass()) && # get the parent\n $class_reflection->getName() != __CLASS__); # check that we're not hitting the top\n }", "public function add()\r\n {\r\n $this->start();\r\n $this->write_to_db();\r\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function insert()\n\t{\n\t\t$sql_array = array();\n\t\tforeach ($this->object_config as $name => $null)\n\t\t{\n\t\t\t$sql_array[$name] = $this->validate_property($this->$name, $this->object_config[$name]);\n\t\t}\n\n\t\t$sql = 'INSERT INTO ' . $this->sql_table . ' ' . $this->db->sql_build_array('INSERT', $sql_array);\n\t\t$this->db->sql_query($sql);\n\n\t\tif ($id = $this->db->sql_nextid())\n\t\t{\n\t\t\t$this->{$this->sql_id_field} = $id;\n\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "function addUpdate() {\n\t\tif ($this->id) $this->update();\n\t\telse $this->insert();\n\t}", "protected function createNew() {\n $this->db->insert($this->tableName, $this->mapToDatabase());\n $this->id = $this->db->insert_id();\n }", "public function add($exists=false) {\n if (method_exists($this, 'beforeAdd') && $this->beforeAdd() === false) {\n return $this;\n }\n if (method_exists($this, 'afterAdd')) {\n $this->__lastActions__[] = array('Add', Binder::pull($this));\n }\n\n $nulls = is_array($this->__nulls__)? $this->__nulls__: array();\n $newVals = array();\n /* self attributes */\n foreach ($this->__def__[0] as $col => $def) {\n if (!isset($nulls[$col]) && ($val=self::midware($this->$col, $def, 1)) !== null) {\n $newVals[$col] = strtolower($val=is_array($val)? serialize($val): $val) === self::N? null: $val;\n }\n }\n /* object attributes */\n foreach ($this->__def__[1] as $col => $def) {\n if (!isset($nulls[$col]) && ($that=$this->$col) !== null && ($val=is_object($that)?\n $that->{$that->__key__}: (is_array($that)? null: $that))) {\n $newVals[$def['fk']] = strtolower($val)===self::N? null: $val;\n }\n }\n /* add to dbo execute/transaction que */\n $dbo = $this->__dbo__;\n $dbo->__activeQue__ = $this->__instanceId__;\n $table = $this->__table__;\n if ($exists && $dbo->exists($table, $newVals)) {\n return $this;\n }\n $dbo->insert($table, $newVals);\n /* locale/object list */\n if (($m3=$this->__def__[2]) || $this->__def__[3]) {\n $thisRef[$this->__fk__] = $dbo->serialSequence($table, $this->__key__);\n /* object list */\n if ($m3) {\n foreach ($m3 as $col => $def) {\n if (!isset($nulls[$col]) && ($vals=$this->$col)) {\n $this->__objectList('Add', $vals, $def, $thisRef);\n }\n }\n }\n /* locale */\n if ($m4=$this->__def__[3]) {\n foreach ((array)$this->__locale__ as $locale) {\n $newVals = array();\n foreach ($m4 as $col => $def) {\n if (!isset($nulls[$col]) && ($val=self::midware($this->$col, $def, 1)) !== null) {\n $newVals[$col] = is_array($val)?\n (isset($val[$locale])? $val[$locale]: null):\n (strtolower($val)===self::N? null: $val);\n }\n }\n $newVals['lang'] = $locale;\n $dbo->insert($table.'_lang', $newVals, $thisRef);\n }\n }\n }\n return $this;\n }", "public function insertRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getAddRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// insert\n\t\t\t\t$this->getHandler()->create($record);\n\n\n\t\t\t\t$msg = new Message('You have successful create a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function insert()\n {\n $this->id = insert($this);\n }", "public function save()\n {\n if ($this->id === null) {\n $this->insert();\n } else {\n $this->update();\n }\n }", "public function save()\n {\n\n // generate all column's sql query\n $column_names = '';\n $column_values = '';\n foreach ($this->columns as $field_name => $column_obj)\n {\n if ($column_obj->columnName === null) {\n $column_names .= $field_name.', ';\n } else {\n $column_names .= $column_obj->columnName.', ';\n }\n $column_values .= $column_obj->generateValueForSQL().', ';\n }\n $column_names = substr($column_names, 0, -1);\n $column_values = substr($column_values, 0, -1);\n $this_table_name = $this->table_name;\n $this_id = $this->id;\n\n if ($this->id === 0) {\n // This object is not saved yet.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values);';\n // Execute query\n } else {\n // This object is on the DB.\n $query = 'INSERT INTO $this_table_name ($column_names) VALUES ($column_values) WHERE id=$this_id;';\n // Execute query\n }\n\n mysql_run_query($query);\n\n }", "public function save() {\n $db = self::getDbConnection();\n $table = static::getTable();\n $data = get_object_vars($this);\n if ($table == 'posts') {\n $data['name'] = Service::get('session')->userEmail;\n }\n\n if (isset($data['id'])) {\n $query = $db->prepare($this->getUpdateString($data, $table));\n } else {\n $query = $db->prepare($this->getInsertString($data, $table));\n }\n\n if (!$query->execute()) {\n throw new DatabaseException('Cant save object');\n }\n }", "public function save()\n {\n if ($this->id) {\n $this->update();\n } else {\n $this->id = $this->insert();\n }\n }", "protected function performInsert()\n {\n $attributes = $this->getAttributes();\n $updatedField = $this->getApi()->{'create'.ucfirst($this->getEntity())}($attributes);\n $this->fill($updatedField);\n $this->exists = true;\n $this->wasRecentlyCreated = true;\n\n return true;\n }", "protected function _insert(AbstractObject $obj) {\n\t\t//---\n\t\t\n\t}", "public function Add($oItem) {\n\t\tif (!is_object($oItem)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// call abstract function onBeforeAdd\n\t\t$r = $this->onBeforeAdd($oItem);\n\t\tif (!$r) {\n\t\t return false;\n\t\t}\n\t\t\n\t\t// compose the SQL strings\n\t\t$sFields = '';\n\t\t$sValues = '';\n\t\t$aParams = array();\n\t\t$aMarkers = array();\n\t\t$aData = get_object_vars($oItem);\n\t\t\n\t\t$aFields = array_keys($this->columnNames($aData));\n\t\t$sFields = implode('`,`', $aFields);\n\t\t$sFields = '`' . $sFields . '`';\n\t\tforeach ($aData as $field => $value) {\n\t\t\t$aParams[] = $value;\n\t\t\t$aMarkers[] = '?';\n\t\t}\n\t\t$sValues = implode(',', $aMarkers);\n\t\t\n\t\t// execute the query\n\t\t$sql = \"INSERT INTO \".$this->getTableName()\n\t\t\t\t.\" (\".$sFields.\")\"\n\t\t\t\t.\" VALUES (\".$sValues.\")\";\n\t\t$res = db::query($sql, $aParams);\n\t\tif (!$res || $res->errorCode() != '00000') {\n\t\t\treturn false;\n\t\t}\n\t\t$iLastId = db::lastInsertId();\n\n\t\t// call abstract function onAdd\n\t\treturn $this->onAdd($iLastId);\n\t}", "public function add() {\n\n $sql = \"INSERT INTO persona(id,nombre,apellido_paterno,apellido_materno,estado_salud,telefono,ubicacion)\n VALUES(null,'{$this->nombre}','{$this->apellido_paterno}','{$this->apellido_materno}',\n '{$this->estado_salud}','{$this->telefono}','{$this->ubicacion}')\";\n $this->con->consultaSimple($sql);\n }", "public function insert(){\r\n\t\tif (!$this->new){\r\n\t\t\tMessages::msg(\"Cannot insert {$this->getFullTableName()} record: already exists.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\t$vals[\"`$name`\"] = $value->getSQLValue();\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$sql = 'INSERT INTO '.$this->getFullTableName().' ('.implode(', ',array_keys($vals)).') VALUES ('.implode(', ',$vals).')';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to insert record into '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t// Get this here, because getPrimaryKey can call other SQL queries and thus override this value\r\n\t\t$auto_id = SQL::getInsertId();\r\n\t\t\r\n\t\t$table = $this->getTable();\r\n\t\t// Load the AUTO_INCREMENT value, if any, before marking record as not new (at which point primary fields cannot be changed)\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\tif ($table->getColumn($name)->isAutoIncrement()){\r\n\t\t\t\t$this->$name = $auto_id;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t$this->new = false;\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->insertGbaseItem($this->getEntry());\n $this->setEntry($entry);\n $entryId = $this->getEntry()->getId();\n $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());\n $this->getItem()\n ->setGbaseItemId($entryId)\n ->setPublished($published);\n\n if ($expires = $this->_getAttributeValue('expiration_date')) {\n $expires = $this->gBaseDate2DateTime($expires);\n $this->getItem()->setExpires($expires);\n }\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n else\n {\n $this->insert();\n }\n }", "public function insert() {\n\t\t$insert_array = $this->toDbArray(true, true);\n\t\tif (array_key_exists('_id', $insert_array)) { unset($insert_array['_id']); }\n\t\t$ret_val = $this->getCollection()->save($insert_array);\n\t\tif (isset($insert_array['_id'])) {\n\t\t\t$this->setId($insert_array['_id']);\n\t\t}\n\t\treturn $this->getId();\n\t}", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function add($object, $forceInsert = FALSE, &$queryCount = 0);", "protected function _insert()\n\t{\n\t\t$this->date_added = \\Core\\Date::getInstance(null,\\Core\\Date::SQL_FULL, true)->toString();\n\t\t$this->date_modified = $this->date_added;\n\t\t$this->last_online = $this->date_modified;\n\t\t$this->activity_open = $this->date_modified;\n\t\t$this->language_id = \\Core\\Base\\Action::getModule('Language')->getLanguageId();\n\t}", "public function save(){\n\n if (!$this->preSave()) {\n return FALSE;\n }\n\n $reference = $this->_getReference();\n $pk = $this->_getPK();\n\n $data = get_object_vars($this);\n\n if (empty($pk) && $pk !== NULL) {\n throw new \\Exception('Model PK is empty!');\n }\n\n if (is_array($pk)) {\n $pkv = [];\n $_pkv = [];\n $insert = TRUE;\n foreach ($pk as $c) {\n if (!empty($data[$c])) {\n $pkv[] = $data[$c];\n $_pkv[$c] = $data[$c];\n // unset($data[$c]);\n $insert = FALSE;\n }\n }\n\n if (!$insert) {\n $insert = is_null(self::getWhere($_pkv));\n }\n\n\n } else {\n $pkv = !empty($data[$pk]) ? $data[$pk] : NULL;\n $_pkv = [$pk => $pkv];\n\n // Se for AUTO INCREMENT remove dos campos a serem INSERIDOS/ALTERADOS\n if (self::_isPkAi())\n unset($data[$pk]);\n\n $insert = empty($pkv);\n }\n\n unset($data['__error']);\n\n foreach ($data as $key => $value) {\n if (strpos($key, '_') === 0)\n unset($data[$key]);\n }\n\n if ($insert) {\n\n if (array_key_exists('created', $data))\n $data['created'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('updated', $data))\n unset($data['updated']);\n\n\n $res = self::$connection->insert($reference, $data)->execute();\n\n if ($res && $pk !== NULL && !is_array($pk))\n $this->{'set'.$pk}(self::$connection->lastInsertId());\n\n } else {\n\n if (array_key_exists('updated', $data))\n $data['updated'] = Date('Y-m-d H:i:s');\n\n if (array_key_exists('created', $data))\n unset($data['created']);\n\n $res = self::$connection->update($reference, $data, $_pkv)->execute();\n\n }\n\n if ($res)\n $this->refresh();\n\n $this->afterSave($res);\n\n return $res;\n\n }", "protected function _insert()\n {\n \n }", "protected function _insert()\n {\n \n }", "public function save() {\n if($this->hasUid){\n //Create new uid, and varify that it hasn't been used.\n //This might take a bit of overhead, but useful for ensuring you don't have duplicate UID's in any table\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n\n while (!checkUidIsUnique($UID)) {\n $uniqueID = new uniqueID();\n $UID = $uniqueID->shorten($uniqueID->generate()); //final shortened userId\n }\n\n $this->uid = $UID;\n }\n \n //Check if we are creating a new object\n if ($this->uid == \"\" && $this->id == \"\") {\n $newFields = array();\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n \n $ins[] = ':' . $key;\n array_push($newFields, $key);\n }\n $ins = implode(',', $ins);\n $fields = implode(',', $newFields);\n \n //Get the current database time\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"SELECT NOW() today\");\n $stmt->execute();\n $dateTime = $stmt->fetch();\n $this->created_at = $dateTime[0]->today;\n $NetworkConnection->closeConnection();\n \n\n try {\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n $stmt = $PDO->prepare(\"INSERT INTO \" . $this->tableName .\" ($fields) VALUES ($ins)\");\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n $stmt->bindValue(':' . $key, $value);\n \n }\n var_dump($stmt);exit();\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result && $this->hasUid) {\n //Created new lead entry\n $newUID = new UID(array(\"uid\" => $UID, \"table_name\" => $this->tableName));\n $newUID->save();\n return $this;\n }else{\n return $this;\n }\n } catch (Exception $ex) {\n echo $ex->getMessage();\n }\n } else {\n \n $fields = array();\n $set = '';\n $x = 1;\n\n //TODO:: JMJ think this is reminent of old code, consider for removal\n //$this->created_at = date(\"Y-m-d H:i:s\");\n\n foreach ($this as $key => $value) {\n //Skip disregarded fields\n foreach($this->disregard as $disregard){\n if($key == $disregard){\n continue 2;\n }\n }\n array_push($fields, $key);\n }\n\n for ($x = 0; $x < count($fields); $x++) {\n $set .= \"{$fields[$x]} = ?\";\n if ($x < count($fields) - 1) {\n $set .= ', ';\n }\n }\n\n //Update existing entry\n $NetworkConnection = new NetworkConnection();\n $PDO = $NetworkConnection->getNewDbConnection();\n \n if(!$this->hasUid){\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE id=?\");\n }else{\n $stmt = $PDO->prepare(\"UPDATE \" . $this->tableName .\" SET {$set} WHERE uid=?\");\n }\n for ($i = 0; $i < count($fields); $i++) {\n\n $stmt->bindParam($i + 1, $this->{$fields[$i]});\n if ($i + 1 == count($fields)) {\n if(!$this->hasUid){\n $stmt->bindParam($i + 2, $this->id);\n }else{\n $stmt->bindParam($i + 2, $this->uid);\n }\n \n }\n }\n\n $result = $stmt->execute();\n \n $NetworkConnection->closeConnection();\n \n if ($result) {\n return $this;\n }\n }\n }", "public function insert($object)\n {\n $this->filter->forInsert($object);\n\n $data = $this->getRowData($object);\n $row = $this->gateway->insert($data);\n if (! $row) {\n return false;\n }\n\n if ($this->gateway->isAutoPrimary()) {\n $this->setIdentityValue(\n $object,\n $this->gateway->getPrimaryVal($row)\n );\n }\n\n return true;\n }", "function save() {\n\n\t\tif ( $this->exists ) {\n\t\t\t// update changed fields\n\t\t\t$changed_data = array_intersect_key( $this->data, array_flip( $this->changed_fields ) );\n\n\t\t\t// serialize\n\t\t\t$changed_data = array_map( 'maybe_serialize', $changed_data );\n\n\t\t\tif ( empty( $changed_data ) ) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\t$queue_id = $this->get_id();\n\n\t\t\t$updated = $this->update( $queue_id, $changed_data );\n\n\t\t\tif ( false === $updated ) {\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tdo_action( 'ig_es_object_update', $this ); // cleans object cache\n\t\t} else {\n\t\t\t$this->set_created_at( new DateTime() );\n\t\t\t$this->data = array_map( 'maybe_serialize', $this->data );\n\t\t\t\n\t\t\t// insert row\n\t\t\t$queue_id = $this->insert( $this->data );\n\n\t\t\tif ( $queue_id ) {\n\t\t\t\t$this->exists = true;\n\t\t\t\t$this->id = $queue_id;\n\t\t\t} else {\n\n\t\t\t\tES()->logger->error( sprintf( __( 'Could not insert into \\'%1$s\\' table. \\'%1$s\\' may not be present in the database.', 'email-subscribers' ), $this->table_name ), $this->logger_context );\n\n\t\t\t\t// Return here to prevent cache updates on error\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// reset changed data\n\t\t// important to reset after cache hooks\n\t\t$this->changed_fields = [];\n\t\t$this->original_data = $this->data;\n\n\t\treturn true;\n\t}", "function add() {\n\t\tif (True) {\n\n\t\t\t// create an empty product.\n\t\t\t$o =& new ufo_product(0);\n\t\t\t$this->addedObject =& $o;\n\t\t\n\t\t\t// create an entry in the db.\n\t\t\t$o->initialize();\n\t\t\t$o->create();\n\t\t\t$o->edit();\n\n\t\t\t// add it to the product array.\n\t\t\t$this->product[] = $o;\n\t\t}\n\t}", "public function create_record() {\n $class = get_called_class();\n\n if ($this->does_exist()) {\n return false;\n }\n\n $db = DB::connect();\n\n $attributes = '';\n $values = '';\n\n // Loop through all the attributes to get the attributes and values\n foreach (get_object_vars($this) as $key => $value) {\n // We dont add the id of the object, as it is autoincremented\n if ($value == null) {\n continue;\n }\n\n $attributes = $attributes . \" $key,\";\n\n // We cannot add an object to sql statemnt. if the value is an object, get the id of it\n if (gettype($value) == 'object') {\n $value = $value->id;\n } elseif (gettype($value) === 'string') {\n $value = \"'\" . $value . \"'\";\n }\n\n $values = $values . \" $value,\";\n\n }\n\n // Delete the last comma\n $attributes = substr_replace($attributes, \" \", -1);\n $values = substr_replace($values, \" \", -1);\n\n $sql = $db->prepare(\"INSERT INTO \" . $class . \" (\" . $attributes . \") VALUES (\" . $values . \")\");\n $sql->execute();\n\n return true;\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function add($object) {\n $this->_object = $this->createRow();\n $this->_object->name = $object->name;\n $this->_object->login = $object->login;\n $this->_object->password = $object->password;\n $this->_object->save();\n return $this->_object;\n }", "function Add() \n\t{\n\t\tglobal $dal_info;\n\t\t\n\t\t$insertFields = \"\";\n\t\t$insertValues = \"\";\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\t\t$blobs = array();\n\t\t//\tprepare parameters\t\t\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\tif( isset($this->{$fld['varname']}) )\n\t\t\t{\n\t\t\t\t$this->Value[ $fieldname ] = $this->{$fld['varname']};\n\t\t\t}\n\t\t\t\n\t\t\tforeach($this->Value as $field => $value)\n\t\t\t{\n\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t$insertFields.= $this->_connection->addFieldWrappers( $fieldname ).\",\";\n\t\t\t\t$insertValues.= $this->PrepareValue($value,$fld[\"type\"]) . \",\";\n\t\t\t\t\n\t\t\t\tif( $this->_connection->dbType == nDATABASE_Oracle || $this->_connection->dbType == nDATABASE_DB2 || $this->_connection->dbType == nDATABASE_Informix )\n\t\t\t\t{\n\t\t\t\t\tif( IsBinaryType( $fld[\"type\"] ) )\n\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\n\t\t\t\t\t\t\n\t\t\t\t\tif( $this->_connection->dbType == nDATABASE_Informix && IsTextType( $fld[\"type\"] ) )\n\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//\tprepare and exec SQL\n\t\tif( $insertFields != \"\" && $insertValues != \"\" )\t\t\n\t\t{\n\t\t\t$insertFields = substr($insertFields, 0, -1);\n\t\t\t$insertValues = substr($insertValues, 0, -1);\n\t\t\t$dalSQL = \"insert into \".$this->_connection->addTableWrappers( $this->m_TableName ).\" (\".$insertFields.\") values (\".$insertValues.\")\";\n\t\t\t$this->Execute_Query($blobs, $dalSQL, $tableinfo);\n\t\t}\n\t\t//\tcleanup\t\t\n\t $this->Reset();\n\t}", "protected function insert()\n\t{\n\t\t$this->autofill();\n\n\t\tparent::insert();\n\n\t}", "public function add ($item) {\n $objData = get_object_vars($item);\n $keys = array_keys($objData);\n // Query time.\n $sql = 'INSERT INTO ' . $this->table . ' (' . implode(',', $keys) . ') VALUES (:' . implode(',:', $keys) . ')';\n $this->query($sql, $objData);\n // Update the item primary key if single before returning it.\n/*\n if (count($this->keys) === 1) {\n $pk = current($this->keys);\n $item->$pk = $this->pdo->lastInsertId();\n }\n*/\n return $item;\n }", "protected function _insert()\n {\n \t$metadata = $this->_table->info(Zend_Db_Table_Abstract::METADATA);\n \t\n \tif(isset($metadata['created_at']))\n\t\t\t$this->_data['created_at'] = new Zend_Date ();\n \tif(isset($metadata['updated_at']))\n\t\t\t$this->_data['updated_at'] = new Zend_Date ();\n }", "public function insert() {\n if($this->id != 0){\n return null;\n }\n // Connect to db\n $db = Db::instance();\n\n // Build query\n $q = sprintf(\"INSERT INTO `%s` (`user_id`, `story_id`, `comment`) VALUES (%d, %d, %s);\", self::DB_TABLE, $db->escape($this->user_id), $db->escape($this->story_id), $db->escape($this->comment));\n\n // Execute query\n $db->query($q);\n\n // Set the ID for the new object\n $this->id = $db->getInsertID();\n return $this->id;\n }", "public function insert()\n\t{\n\t\tif (isset($this->item->params) && $this->item->params instanceof CRegistry) {\n\t\t\t$this->item->params = $this->item->params->toString();\n\t\t}\n\n\t\t$ret = $this->db->insertObject('#__'.$this->table, $this->item);\n\n\t\t//Get the new record id\n\t\t$id = (int)$this->db->insertid();\n\n\t\t$this->setKey($id);\n\n\t\treturn $this;\n\t}", "public function add() {\n $fields_definition = '';\n $fields_values = '';\n foreach ($this->fields as $name => $value) {\n $fields_definition .= '`' . $name . '`, ';\n $fields_values .= '\\''. $value . '\\', ';\n }\n\n $fields_definition = chop($fields_definition, ', ');\n $fields_values = chop($fields_values, ', ');\n\n $query = 'INSERT INTO `' . $this->table . '`'\n . ' (' . $fields_definition\n . ' ) VALUES ( ' . $fields_values . ' )';\n\n return $this->connection->query($query);\n }", "public function save()\n {\n $is_new = $this->getId() == 0 ? true : false;\n\n # Save the core application data using the parent class\n if(!parent::save()){\n return false;\n }\n\n # Save the application-specific data\n $db = new PHPWS_DB('hms_summer_application');\n\n /* If this is a new object, call saveObject with the third parameter as 'false' so\n * the database class will insert the object with the ID set by the parent::save() call.\n * Otherwise, call save object as normal so that the database class will detect the ID and\n * update the object.\n */\n if($is_new){\n $result = $db->saveObject($this, false, false);\n }else{\n $result = $db->saveObject($this);\n }\n\n if(PHPWS_Error::logIfError($result)){\n throw new DatabaseException($result->toString());\n }\n\n return true;\n }", "public final function insert()\n {\n // Run beforeCreate event methods and stop when one of them return bool false\n if ($this->runBefore('create') === false)\n return false;\n\n // Create tablename\n $tbl = '{db_prefix}' . $this->tbl;\n\n // Prepare query and content arrays\n $fields = array();\n $values = array();\n $keys = array();\n\n // Build insert fields\n foreach ( $this->data as $fld => $val )\n {\n // Skip datafields not in definition\n if (!$this->isField($fld))\n continue;\n\n // Regardless of all further actions, check and cleanup the value\n $val = $this->checkFieldvalue($fld, $val);\n\n // Put fieldname and the fieldtype to the fields array\n $fields[$fld] = $this->getFieldtype($fld);\n\n // Object or array values are stored serialized to db\n $values[] = is_array($val) || is_object($val) ? serialize($val) : $val;\n }\n\n // Add name of primary key field\n $keys[0] = $this->pk;\n\n // Run query and store insert id as pk value\n $this->data->{$this->pk} = $this->db->insert('insert', $tbl, $fields, $values, $keys);\n\n return $this->data->{$this->pk};\n }", "public function addToDb()\n {\n\n // make sure this is a valid new entry\n if ($this->isValid()) {\n // check for duplicate\n $vals = sprintf(\"('%s',%d)\",$this->email,$this->level);\n $sql = \" insert into Admins values $vals\";\n Dbc::getReader()->Exec($sql);\n }\n else\n print \"<br> Invalid entry. STOP! ($sql)<br>\";\n }", "protected function _insert()\n\t{\n\t}", "public function save() {\n $db = Db::instance();\n // omit id and any timestamps\n $db_properties = array(\n 'author_id' => $this->author_id,\n 'clothingname' => $this->clothingname,\n 'clothingtype' => $this->clothingtype,\n 'tempmin' => $this->tempmin,\n 'tempmax' => $this->tempmax\n );\n $db->store($this, __CLASS__, self::DB_TABLE, $db_properties);\n }", "function AddObject(SystemUsersTable $obj) {\n\t\n\t\tif(! is_a($obj, \"SystemUsersTable\")) {\n\t\t\treturn -1;\n\t\t}\n\t\n\t\t$objCp = new SystemUsersTable();\n\t\t$this->CopyObjects($obj, $objCp);\n\t\n\t\t$now = date('Y-m-d H:i:s');\n\t\t$objCp->date_create = $now;\n\t\t$objCp->date_edit = $now;\n\t\t$objCp->create_by = $_SESSION[\"USER_ID\"];\n\t\t$objCp->modified_by = $_SESSION[\"USER_ID\"];\n\t\t\n\t\treturn $this->Insert($objCp);\n\t}", "protected function create()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n $data = array();\n foreach($fields as $key)\n {\n if ($this->{$key})\n {\n $data[$key] = $this->{$key};\n }\n else\n $data[$key] = NULL;\n\n }\n // return data\n $insert = $database->SQLInsert($data, \"place\"); // return true if sucess or false\n if ($insert)\n {\n return $insert;\n }\n else\n {\n return false;\n }\n }\n }", "public function insert() {\n\t\tif ($this->wpdb->insert($this->table, $this->toArray(TRUE))) {\t\t\t\t\t\t\n\t\t\tif (isset($this->auto_increment)) {\n\t\t\t\t$this[$this->primary[0]] = $this->wpdb->insert_id;\n\t\t\t}\t\t\t\n\t\t\treturn $this;\n\t\t} else {\t\t\t\t\t\n\t\t\tthrow new Exception($this->wpdb->last_error);\n\t\t}\n\t}", "public function insert() {\r\n\r\n\t\t// Does the Genre object already have an ID?\r\n\t\tif ( !is_null( $this->id ) ) trigger_error ( \"Genre::insert(): Attempt to insert an Genre object that already has its ID property set (to $this->id).\", E_USER_ERROR );\r\n\r\n\t\t// Insert the Genre\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$sql = \"INSERT INTO :table ( id, name ) VALUES ( :id, :name )\";\r\n\t\t$st = $conn->prepare ( $sql );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t$st->execute();\r\n\t\t$this->id = $conn->lastInsertId();\r\n\t\t$conn = null;\r\n\t}", "public function add($object): void;", "function insert() {\n\t\tglobal $_DB_DATAOBJECT; //Indicate to PHP that we want to use the already-defined global, as opposed to declaring a local var\n\t\t//Grab the database connection that has already been made by the parent's constructor:\n\t\t$__DB = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5];\n\t\tif ($this->reg_type != null) {\n\t\t\t$this->badge_number = $__DB->nextId('badge_number'); //Fetch the next id in the sequence. To set the sequence to a specifc value, use phpMyAdmin to tweak the value in the badge_number_seq table\n\t\t}\n\t\treturn DB_DataObject::insert();\n\t}", "public function save()\n {\n $DB = DB::singleton(dsn());\n\n if ( $this->update ) {\n $SQL = SQL::newUpdate('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addUpdate('entry_' . $column, $this->{$column});\n }\n $SQL->addWhereOpr('entry_id', $this->id);\n $SQL->addWhereOpr('entry_blog_id', $this->blog_id);\n $DB->query($SQL->get(dsn()), 'exec');\n } else {\n $SQL = SQL::newInsert('entry');\n foreach ( $this->columns as $column ) {\n $SQL->addInsert('entry_' . $column, $this->{$column});\n }\n $DB->query($SQL->get(dsn()), 'exec');\n }\n\n EntryHelper::saveColumn($this->units, $this->id, $this->blog_id);\n Common::saveField('eid', $this->id, $this->fields);\n Common::saveFulltext('eid', $this->id, Common::loadEntryFulltext($this->id));\n }", "function insert()\n\t{\n\t\t$this->edit(true);\n\t}", "public function save()\n {\n $this->_validateModifiable();\n\n if($this->isNew())\n {\n $this->_getDataSource()->create($this);\n }\n else\n {\n $this->_getDataSource()->update($this);\n }\n\n $this->_saveRelations();\n $this->_setNew(false);\n }", "public function save(){\n\t\t// If primary key is set in model, run an update instead.\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\tif(isset($this->{$primaryKey})){\n\t\t\treturn $this->update();\n\t\t}\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = array_map(fn($name) => ':'.$name, $fields);\n\t\t// Populate statement by imploding the arrays.\n\t\t$statement = $this->db->prepare('INSERT INTO ' . $tableName . ' ( ' . implode(', ', $fields) . ') VALUES (' . implode(', ', $params) . ')');\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function save()\n {\n $data = $this->getSaveData();\n $errorString = '<h5 class=\"alert-heading\">Can\\'t save ' . $this->entityName . ' because of the following problems:</h5>';\n\n $errors = $this->checkRequiredColumns( $data );\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n\n if ( defined( 'DEBUG' ) && DEBUG === true ) {\n $dataToSave = !empty( $data ) ? $this->getDataHTMLTable( $data ) : 'None';\n $this->messages->add(\n 'Entity - ' . $this->entityName\n . '<br>Changed - ' . print_r( $this->changed, true )\n . '<br>Data to save - ' . $dataToSave\n . '<br>All column properties - ' . $dataToSave,\n 'info'\n );\n }\n $errors = $this->healthCheck();\n if ( !empty( $errors ) ) {\n return $this->addError( $errorString . HTMLTags::getListGroup( $errors ) );\n }\n if ( $this->exists ) {\n return $this->updateDBRow( $data );\n }\n $addRow = $this->addDBRow( $data );\n if ( is_int( $addRow ) ) {\n $this->id = $addRow;\n $this->exists = true;\n }\n return $addRow;\n }", "public function addChild(Doctrine_Record $record);", "public function add($obj) {\n\t}", "public function add($object)\n {\n $record = R::dispense( $this->table_name() );\n\n $this->map_object_to_record($object, $record);\n\n $id = R::store( $record );\n\n $object->set_id( $id );\n\n return $this;\n }", "private function add_record_or_update_record() {\n\t\t\t$this->before_custom_save();\n\t\t\t$this->before_save();\n\t\t\tif($this->new_record) {\n\t\t\t\t$this->before_create();\n\t\t\t\t$result = $this->add_record();\n\t\t\t\t$this->after_create();\n\t\t\t} else {\n\t\t\t\t$this->before_update();\n\t\t\t\t$result = $this->update_record();\n\t\t\t\t$this->after_update();\n\t\t\t}\n\t\t\t$this->after_save();\n\n\t\t\t// init user custom cache\n\t\t\tif (is_array($this->cache)) {\n\t\t\t\t$this->rebuild_cache();\n\t\t\t}\n\n\t\t\tif($this->blob_fields) {\n\t\t\t\t$this->update_blob_fields();\n\t\t\t}\n\t\t\treturn $result;\n\t\t}", "public function save()\n {\n if ($this->_state == 0) {\n // Insert\n $result = static::getLink()->insert(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getColumns(true));\n\n // Primary Key\n $this->_id = static::getLink()->lastInsertId();\n\n /** @var Column $primaryKey */\n $primaryKey = Structure::getTablePrimaryKey($this);\n\n if ($primaryKey->autoIncrement) {\n $this->{$primaryKey->getPropertyField()} = $this->_id;\n }\n\n $this->_state = 1;\n } else {\n // Update\n $result = static::getLink()->update(Structure::getTable($this)->getFullTableName(), $this->getColumns(), $this->getPrimaryKey(),\n array_merge($this->getColumns(true), $this->getPrimaryKey(true)));\n }\n\n return $result;\n }", "function save() {\n\n\t\t// calls generic ORM save (insert or update)\n\t\tparent::save();\n\n\t}", "public function add($data) {\n\n\t\t// call the hook beforeAdd if existing:\n\t\tif(method_exists($this, 'beforeAdd')) {\n\t\t\t$data = $this->beforeAdd($data);\n\t\t}\n\n\t\tif($this->isSortable) {\n\t\t\t// if this Model is Sortable, it MUST have a field 'sort'\n\t\t\t// if no value came in, set 'sort' max+1\n\t\t\t// we MUST have a property called 'sortBy', which is the reference in which it should be sorted\n\n\t\t\t// first check if we have a value for sort:\n\t\t\tif(isset($data['sort']) && !is_null($data['sort'])) {\n\t\t\t\t// then we need to shift all the records after that by one\n\t\t\t\t$sql = 'Update '.$this->dbTable.' set sort=sort+1 where sort>=? AND '.$this->sortBy.'=?'; \n\t\t\t\t$params = Array($data['sort'], $data[$this->sortBy]);\n\t\t\t\t$this->db->rawQuery($sql, $params);\n\t\t\t} else {\n\t\t\t\t// then we set this new item at the end of the sort list\n\t\t\t\t// so we need the max of sort:\n\t\t\t\t$sql = 'Select max(sort) max from '.$this->dbTable.' where '.$this->sortBy.'=?'; \n\t\t\t\t$params = Array($data[$this->sortBy]);\n\t\t\t\t$max = $this->db->rawQueryValue($sql, $params);\n\t\t\t\t$data['sort'] = intval($max[0])+1;\n\t\t\t}\n\t\t}\n\t\t// unsetting hasMany that might come from Ember via POST:\n\t\tforeach ($this->hasMany as $name => $hasMany) {\n\t\t\tunset($data[$name]);\n\t\t}\n\t\t// check if we have all data we need:\n\t\t$required = Api\\ApiHelper::getRequiredFields($this->dbDefinition);\n\t\t$missingFields = Api\\ApiHelper::checkRequiredFieldsSet($required, $data);\n\t\tif(count($missingFields)===0) {\n\t\t\t// the actual insert into database:\n\t\t\t$id = $this->db->insert($this->dbTable, $data);\n\t\t\tif($id) {\n\t\t\t\tif(method_exists($this, 'afterAdd')) {\n\t\t\t\t\t$data = $this->afterAdd($data, $id);\n\t\t\t\t}\n\t\t\t\t$this->lastInsertedID = $id;\n\t\t\t\treturn $id;\n\t\t\t} else {\n\t\t\t\t$e = Array(\"DB-Error\", \"Could not insert item because: \".$this->db->getLastError().\"\\nin Model \".__FUNCTION__.\" \".__LINE__, 500, true, ErrorHandler::CRITICAL_EMAIL);\n\t\t\t\tErrorHandler::add($e);\n\t\t\t\t$e = Array(\"DB-Error\", \"Could not insert item\", 500, ErrorHandler::CRITICAL_LOG, false);\n\t\t\t\tErrorHandler::add($e);\n\t\t\t\tErrorHandler::sendErrors();\n\t\t\t\tErrorHandler::sendApiErrors();\n\t\t\t\texit;\n\t\t\t} \n\t\t} else {\n\t\t\t$e = Array(\"API-Error\", \"Not all required fields were sent. I missed: \".implode(\",\", $missingFields), 400, false, ErrorHandler::CRITICAL_EMAIL);\n\t\t\tErrorHandler::add(new Api\\Error($e));\n\t\t\tErrorHandler::add(ErrorHandler::API_INVALID_POST_REQUEST);\n\t\t\treturn false;\n\t\t}\n\t}", "function addToDatabase() {\n\t\tif ($this->id != null && $this->id != 0) return false;\n\n\t\t$db = getDb();\n\n\t\t$add_query = \"INSERT INTO user_table \n\t\t(user_name, \n\t\t user_password,\t\n\t\t isAdmin,\t\n\t\t user_first_name,\n\t\t user_last_name) \n\t\tVALUES \n\t\t('$this->username', \n\t\t '$this->password',\t\n\t\t '$this->isAdmin',\t\n\t\t '$this->firstName',\t\n\t\t '$this->lastName');\";\n\n\t\t$result = mysqli_query($db, $add_query);\n\n\t\tmysqli_close($db);\n\n\t\tif (!$result) return false;\n\n\t\treturn true;\n\n\t}", "public function insert(){\n $formClass = $this->type.'_Form';\n $form = new $formClass($this->values);\n $errors = $form->isValid();\n $object = $form->get('object');\n if (empty($errors)) {\n try {\n $object->insert($this->values);\n } catch (Exception $e) {\n $form = new $formClass($this->values, array());\n $html = '<div class=\"message messageError\">\n '.$e->getMessage().'\n </div>\n '.$form->createForm($form->createFormFields(), array('action'=>url($this->type.'/insert', true), 'submit'=>__('save'), 'class'=>'formAdmin formAdminInsert'));\n return array('success'=>'0', 'html'=>$html);\n }\n $multipleChoice = (count((array)$this->object->info->info->form->multipleActions) > 0) ? true : false;\n $html = $object->showUi('Admin', array('userType'=>$this->login->get('type'), 'multipleChoice'=>$multipleChoice));\n return array('success'=>'1', 'html'=>$html, 'id'=>$object->id());\n } else {\n $form = new $formClass($this->values, $errors);\n $html = $form->createForm($form->createFormFields(), array('action'=>url($this->type.'/insert', true), 'submit'=>__('save'), 'class'=>'formAdmin formAdminInsert'));\n return array('success'=>'0', 'html'=>$html);\n }\n }", "function createObject()\n {\n $stmt = $this->mysqli->prepare(\"INSERT INTO object(`name`, `description`, `price`, `typeCoin`, `weight`, `volume`, `limitationStrength`,\n `limitationDex`, `limitationCons`, `limitationInt`, `limitationWis`,`typeObject`, `primal`)\n VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n $stmt->bind_param(\n \"ssisiiiiiiisi\",\n $this->name,\n $this->description,\n $this->price,\n $this->typeCoin,\n $this->weight,\n $this->volume,\n $this->limitationStrength,\n $this->limitationDex,\n $this->limitationCons,\n $this->limitationInt,\n $this->limitationWis,\n $this->typeObject,\n $this->primal\n );\n $stmt->execute();\n $this->id = $this->mysqli->insert_id;\n $stmt->close();\n }", "static private function _add($object) {\n $object->_className = get_class($object);\n $exists = self::doesExist($object);\n if ($exists) {\n return self::update($object);\n }\n $fileName = self::getFileNameByObject($object);\n if (!file_exists($fileName)) {\n @mkdir(dirname($fileName), '0755', TRUE);\n file_put_contents($fileName, NULL);\n }\n $data = json_encode($object);\n $data = $data . self::getConfig('delimiter') . PHP_EOL;\n if (file_put_contents($fileName, $data, FILE_APPEND)) {\n return $object->_id;\n }\n self::fail('Can not add ' . $object->_id);\n }", "function InlineInsert() {\n\t\tglobal $Language, $objForm, $gsFormError;\n\t\t$this->LoadOldRecord(); // Load old recordset\n\t\t$objForm->Index = 0;\n\t\t$this->LoadFormValues(); // Get form values\n\n\t\t// Validate form\n\t\tif (!$this->ValidateForm()) {\n\t\t\t$this->setFailureMessage($gsFormError); // Set validation error message\n\t\t\t$this->EventCancelled = TRUE; // Set event cancelled\n\t\t\t$this->CurrentAction = \"add\"; // Stay in add mode\n\t\t\treturn;\n\t\t}\n\t\t$this->SendEmail = TRUE; // Send email on add success\n\t\tif ($this->AddRow($this->OldRecordset)) { // Add record\n\t\t\tif ($this->getSuccessMessage() == \"\")\n\t\t\t\t$this->setSuccessMessage($Language->Phrase(\"AddSuccess\")); // Set up add success message\n\t\t\t$this->ClearInlineMode(); // Clear inline add mode\n\t\t} else { // Add failed\n\t\t\t$this->EventCancelled = TRUE; // Set event cancelled\n\t\t\t$this->CurrentAction = \"add\"; // Stay in add mode\n\t\t}\n\t}", "protected function insert()\n\t{\n\t\t//prepare placeholders for SQL query\n\t\t$placeholders = implode(\",\", array_fill(0, count($this->attributes), \"?\"));\n\t\t//prepare columns names for SQL query\n\t\t$columns = implode( \"`,`\", array_keys($this->attributes) );\n\t\t\n\t\t$methodAttributes = array_values($this->attributes);\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"INSERT INTO `\" . static::$table . \"` (`$columns`) VALUES ($placeholders)\");\n\t\t\n\t\t// inserting\n\t\t$result = call_user_func_array(\"Database::insert\", $methodAttributes);\n\t\tif( $result )\n\t\t{\n\t\t\t$this->isExist = true;\n\t\t\t// set PK\n\t\t\t$this->attributes[static::$primaryKey] = Database::lastInsertId();\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public function save()\n {\n $this->hasTableName();\n $pk = $this->pk;\n $condition = \"\";\n if ($this->isNew) {\n $sql = \"INSERT INTO \" . $this->table_name . \" SET \";\n $update = '';\n } else {\n if (!isset($this->$pk))\n throw new Exception('Update em objeto sem chave definida', 403);\n\n $sql = \"UPDATE \" . $this->table_name . \" SET \";\n $update = \" WHERE `\" . $this->pk . \"` = '\" . $this->$pk . \"'\";\n }\n foreach ($this->rules() as $key => $validation) {\n if ($this->validateField($key, $validation) && isset($this->$key) && $this->$key != \"\") {\n $sql .= \" `\" . $key . \"` = '\" . $this->$key . \"',\";\n $condition .= \" `\" . $key . \"` = '\" . $this->$key . \"' AND\";\n }\n }\n if (!$this->getErrors()) {\n $sql = substr($sql, 0, -1) . $update;\n if (Database::dbactionf($sql)) {\n if ($this->isNew) {\n $this->$pk = Database::lastID();\n $this->persisted();\n }\n return true;\n }\n }\n return false;\n }", "public function addObject($object)\n\t{\n\t\t$this->tableObjects[$this->count++] = $object;\n\t}", "public function insert() {\r\n // Rôle : insérer l'objet courant dans la base de données\r\n // Retour : true / false\r\n // Paramètre : aucun\r\n \r\n // Vérification de l'id\r\n if (!empty($this->getId())) {\r\n debug(get_class($this).\"->insert() : l'objet courant a déjà un id\");\r\n return false;\r\n }\r\n \r\n // Construction de la requête\r\n $sql = \"INSERT INTO `\".$this->getTable().\"` SET \";\r\n $param = [];\r\n $start = true;\r\n \r\n foreach ($this->getChamps() as $nom => $champs) {\r\n if ($nom === $this->getPrimaryKey() or !$champs->getAttribut(\"inBdd\")) {\r\n continue;\r\n }\r\n if ($start) {\r\n $sql .= \"`$nom` = :$nom\";\r\n $start = false;\r\n } else {\r\n $sql .= \", `$nom` = :$nom\";\r\n }\r\n \r\n $param[\":$nom\"] = $champs->getValue();\r\n }\r\n \r\n $sql .= \";\";\r\n \r\n // Préparation de la requête\r\n $req = self::getBdd()->prepare($sql);\r\n \r\n // Exécution de la requête\r\n if (!$req->execute($param)) {\r\n debug(get_class($this).\"->insert() : échec de la requête $sql\");\r\n return false;\r\n }\r\n \r\n // Assignation de l'id\r\n if ($req->rowCount() === 1) {\r\n $this->set($this->getPrimaryKey(), self::getBdd()->lastInsertId());\r\n return true;\r\n } else {\r\n debug(get_class($this).\"->insert() : aucune entrée, ou bien plus d'une entrée, créée\");\r\n return false;\r\n }\r\n }", "public function save() {\n if ($this->id) {\n return $this->update();\n } else {\n return $this->insert();\n }\n }", "protected function saveInsert()\n {\n }", "public function add($data)\n {\n $tableName = $this->getTableName();\n return $this->callChain('insert', [$tableName, $data], $this->getStorage());\n }", "public function save() {\r\n $dateNow = date('Y-m-d H:i:s', time());\r\n $this->id = (int) $this->id;\r\n \r\n if (!empty($this->id)) {\r\n //update case\r\n if ($this->_update()) {\r\n return true;\r\n }\r\n }\r\n else {\r\n //Insert case\r\n if ($this->_insert()) {\r\n return true;\r\n }\r\n }\r\n }", "public function save()\n {\n $rc = true;\n $ak = array_keys($this->_objData);\n if (isset($this->_objData[$ak[0]][$this->_objField]) && $this->_objData[$ak[0]][$this->_objField]) {\n $rc = $this->update();\n } else {\n $rc = $this->insert();\n }\n return $rc;\n }", "public function add($data) {\r\n\t \tglobal $wpdb;\r\n\t \t\r\n\t \tif ($wpdb->insert( $this->table, (array) $data ))\r\n\t \t\t$return = $wpdb->insert_id;\r\n\t \telse\r\n\t \t\t$return = FALSE;\r\n\t \t\r\n\t \treturn $return;\r\n\t }", "public function save() : bool {\n\t\t// Check if record is new\n\t\t$isNew = isset($this->{$this->primaryKey}) && $this->{$this->primaryKey} ? false : true;\n\n\t\tif ($isNew) {\n\t\t\t// Insert\n\t\t\t$this->database->query('INSERT INTO ' . $this->tableNamePrefixed, $this->getValuesForDatabase());\n\t\t\tif ($this->database->getInsertId()) {\n\t\t\t\t$this->{$this->primaryKey} = $this->database->getInsertId();\n\t\t\t}\n\t\t} else {\n\t\t\t// Update\n\t\t\t$this->database->query(\n\t\t\t\t'UPDATE ' . $this->tableNamePrefixed . ' SET',\n\t\t\t\t$this->getValuesForDatabase(),\n\t\t\t\t'WHERE ' . $this->primaryKey . ' = ?', $this->{$this->primaryKey}\n\t\t\t);\n\t\t}\n\n\t\treturn true;\n\t}", "public function saveToDb()\n\t{\n\t\t$this->addDocument();\n\t\tparent::saveToDb();\n\t}", "function add($record)\n\t{\n\t\t// convert object from associative array, if needed\n\t\t$record = (is_array($record)) ? (object) $record : $record;\n\n\t\t// update the DB table appropriately\n\t\t$key = $record->{$this->_keyfield};\n\t\t$this->_data[$key] = $record;\n\n\t\t$this->store();\n\t}", "public function save()\n\t{\n\t\t$this->copyAttributesToValues() ;\n\t\tif( $this->factory )\n\t\t{\n\t\t\tswitch( $this->todo )\n\t\t\t{\n\t\t\t\tcase 1: // Insert\n\t\t\t\t\tif( $this->factory->insertObjectIntoDB( $this ) ) $this->state = \"inserted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 2: // update\n\t\t\t\t\tif( $this->factory->updateObjectIntoDB( $this ) ) $this->state = \"updated\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t\tcase 3: // delete\n\t\t\t\t\tif( $this->factory->deleteObjectIntoDB( $this ) ) $this->state = \"deleted\" ;\n\t\t\t\t\telse $this->state = \"dberror\" ;\n\t\t\t\t\tbreak ;\n\t\t\t}\n\t\t}\n\t}", "public function insert() {\n \n }", "function create()\n {\n $this->_getConnection();\n $this->preSave();\n $req = 'INSERT INTO `'.$this->_con->pfx.$this->_table.'` SET'.\"\\n\";\n $fields = array();\n $assoc = array();\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']();\n if ($col == 'id') {\n continue;\n } elseif ($field->type == 'manytomany') {\n // If is a defined array, we need to associate.\n if (is_array($this->$col)) {\n $assoc[$val['model']] = $this->$col;\n }\n continue;\n }\n $fields[] = '`'.$col.'` = \\''.$this->_con->esc($this->$col).'\\'';\n }\n $req .= implode(','.\"\\n\", $fields);\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n if (false === ($id=$this->_con->getLastID())) {\n throw new Exception($this->_con->error());\n }\n $this->_data['id'] = $id;\n foreach ($assoc as $model=>$ids) {\n $this->batchAssoc($model, $ids);\n }\n return true;\n }", "function forceInsert() {\n\t\t\n\t\t\t$this->_isUpdate = false;\n\t\t\t\n\t\t}", "function InlineInsert() {\r\n\t\tglobal $Language, $objForm, $gsFormError;\r\n\t\t$this->LoadOldRecord(); // Load old recordset\r\n\t\t$objForm->Index = 0;\r\n\t\t$this->LoadFormValues(); // Get form values\r\n\r\n\t\t// Validate form\r\n\t\tif (!$this->ValidateForm()) {\r\n\t\t\t$this->setFailureMessage($gsFormError); // Set validation error message\r\n\t\t\t$this->EventCancelled = TRUE; // Set event cancelled\r\n\t\t\t$this->CurrentAction = \"add\"; // Stay in add mode\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$this->SendEmail = TRUE; // Send email on add success\r\n\t\tif ($this->AddRow($this->OldRecordset)) { // Add record\r\n\t\t\tif ($this->getSuccessMessage() == \"\")\r\n\t\t\t\t$this->setSuccessMessage($Language->Phrase(\"AddSuccess\")); // Set up add success message\r\n\t\t\t$this->ClearInlineMode(); // Clear inline add mode\r\n\t\t} else { // Add failed\r\n\t\t\t$this->EventCancelled = TRUE; // Set event cancelled\r\n\t\t\t$this->CurrentAction = \"add\"; // Stay in add mode\r\n\t\t}\r\n\t}", "public function insert_entry()\r\n\t{\r\n\t\t$this->db->insert(\"email_workflow\", $this);\r\n\t}", "function save()\r\n {\r\n $GLOBALS['DB']->exec(\"INSERT INTO inventory_items (name) VALUES ('{$this->getName()}')\");\r\n $this->id = $GLOBALS['DB']->lastInsertId();\r\n }", "protected function doInsert( \\gb\\domain\\DomainObject $object ) {\n }", "public function add(object $entity): void\n {\n }", "public function _insert($data)\n {\n $this->insert($data);\n }", "function add($_data = null)\n\t{\n\t\tif (empty($_data['fields']) AND empty($_data['table'])){\n\t\t return FALSE;\n\t\t}\n\t\t\n\t\t$data = array();\n\t\tforeach($_data['fields'] as $k => $d)\n\t\t{\n\t\t\t$data[$k] = $d;\n\t\t}\n\t\t\n\t\t$ret =\t$this->db->insert($_data['table'], $data);\n\t\n\t\t\n\t\tlog_message('info','SQL Query: ' . $this->db->last_query());\n\t\n\t\t$this->__insert_id = $this->db->insert_id();\n\t\treturn $ret;\n\t}", "public function insert(DataObject $insertObject, Database_Config $databaseConfig = NULL);" ]
[ "0.70486736", "0.6972403", "0.69159025", "0.6659904", "0.6637327", "0.6588772", "0.6551379", "0.6504837", "0.6467465", "0.64169824", "0.64055586", "0.6331662", "0.62983984", "0.62966484", "0.6284209", "0.627062", "0.62686026", "0.62477386", "0.623955", "0.62361467", "0.62103164", "0.6200279", "0.61907685", "0.6182465", "0.61759984", "0.61714345", "0.61493003", "0.6072965", "0.6062699", "0.6037055", "0.602746", "0.60180783", "0.6011951", "0.6011951", "0.600945", "0.6006224", "0.6005704", "0.5993074", "0.5993036", "0.59818256", "0.59682375", "0.5962848", "0.5954004", "0.5948874", "0.594748", "0.5940908", "0.5903777", "0.5902251", "0.5890745", "0.5885444", "0.58795667", "0.5875039", "0.58691484", "0.5864722", "0.58610886", "0.58606225", "0.58549327", "0.5848737", "0.5841117", "0.5826095", "0.5819144", "0.5811938", "0.58104104", "0.580805", "0.5790635", "0.57850057", "0.5784089", "0.57805514", "0.57755387", "0.57708216", "0.5763629", "0.57606405", "0.5758146", "0.5753106", "0.57493275", "0.5744885", "0.57406914", "0.5740283", "0.57402325", "0.57394576", "0.5738612", "0.5737961", "0.5734381", "0.57343566", "0.5726354", "0.5723277", "0.57208717", "0.5697964", "0.569525", "0.5692814", "0.56913555", "0.5690306", "0.5685522", "0.5685352", "0.5677641", "0.56682575", "0.56533515", "0.5652851", "0.5649538", "0.5641988", "0.5641763" ]
0.0
-1
Update the row corresponding to the current object in the database. No integrity or constraint checks are done when updating the row.
public function update() { $dbh = App::getDatabase()->connect(); $query = "UPDATE ".$this->getTableName()." SET "; $fl = true; foreach($this as $column => $val) { if(!in_array($column, $this->getPrimaries())) { $query .= (($fl) ? "" : ", ").$column." = ".((is_bool($val)) ? (($val) ? "TRUE" : "FALSE") : ((is_null($val)||($val === "")) ? "null" : "'".$val."'")); $fl = false; } } $fl = true; foreach($this as $column => $val) { if(in_array($column, $this->getPrimaries())) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$column." = '".$val."'"; $fl = false; } } $res = $dbh->exec($query); $dbh = null; return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update()\n\t{\n\t\t$this->getModel()->update($this);\n\t}", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\t\t\t\r\n\t\t\t$arrBindings = array ();\r\n\t\t\t\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\t\t\t\r\n\t\t\tif (isset ( $this->userid )) {\r\n\t\t\t\t$sql .= \"lp_userid = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->userid;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->random )) {\r\n\t\t\t\t$sql .= \"lp_random = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->random;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->deadline )) {\r\n\t\t\t\t$sql .= \"lp_deadline = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->deadline;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\t\t\t\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\t\r\n\t\t\t$ks_db->commit ();\r\n\t\t\t\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function update(){\n\t\t$this->beforeSave();\n\t\t$tableName = $this->tableName();\n\t\t$fields = $this->fields();\n\t\t// Remove fields set as ignored by rules validation.\n\t\t$fields = $this->removeIgnored($fields);\n\t\t// Create PDO placeholders.\n\t\t$params = implode(', ', array_map(fn($name) => $name . ' = :' . $name, $fields));\n\t\t$primaryKey = $this->getPrimaryKey();\n\t\t$where = $primaryKey . ' = :' . $primaryKey;\n\t\t$statement = $this->db->prepare('UPDATE ' . $tableName . ' SET ' . $params . ' WHERE ' . $where);\n\t\t// Bind values to placeholders.\n\t\tforeach($fields as $field){\n\t\t\t$this->binder($statement, ':' . $field, $this->{$field});\n\t\t}\n\t\t$statement->bindValue(':' . $primaryKey, $this->{$primaryKey});\n\t\tif($statement->execute()){\n\t\t\t$this->afterSave();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "protected function update() {\n if ($this->_isLoaded()) {\n $this->db->where('id', $this->id);\n $this->db->update($this->tableName, $this->mapToDatabase());\n } else {\n throw new Exception(\"Model is not loaded\");\n }\n }", "protected function updateObject()\n {\n $gatewayData = $this->encodeDataToJson();\n\n $query = $this->db->getQuery(true);\n\n $query\n ->update($this->db->quoteName(\"#__crowdf_intentions\"))\n ->set($this->db->quoteName(\"user_id\") . \"=\" . $this->db->quote($this->user_id))\n ->set($this->db->quoteName(\"project_id\") . \"=\" . $this->db->quote($this->project_id))\n ->set($this->db->quoteName(\"reward_id\") . \"=\" . $this->db->quote($this->reward_id))\n ->set($this->db->quoteName(\"unique_key\") . \"=\" . $this->db->quote($this->unique_key))\n ->set($this->db->quoteName(\"gateway\") . \"=\" . $this->db->quote($this->gateway))\n ->set($this->db->quoteName(\"gateway_data\") . \"=\" . $this->db->quote($gatewayData))\n ->set($this->db->quoteName(\"auser_id\") . \"=\" . $this->db->quote($this->auser_id))\n ->set($this->db->quoteName(\"session_id\") . \"=\" . $this->db->quote($this->session_id))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n }", "function update( \\gb\\domain\\DomainObject $object ) {\n //$this->updateStmt->execute( $values );\n }", "public function updateRow($row);", "public final function update() {\n\t\t$properties = self::getProperties($this);\n\t\t$columns = array_keys($properties);\n\t\t$values = array_values($properties);\n\n\t\t$setArray = array();\n\t\tfor ($i = 0; $i < count($properties); $i++) {\n\t\t\t$column = $columns[$i];\n\t\t\tif (strcmp($column, $this->primaryField) == 0 ||\n\t\t\t\tin_array($column, $this->uniqueFields)\n\t\t\t) {\n\t\t\t\t// Remove the value for binding\n\t\t\t\tunset($values[$i]);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t$setArray[] = $column . \" = ?\";\n\t\t}\n\n\t\t$sql = \"\n\tUPDATE\n\t\t\" . $this->table . \"\n\tSET\n\t\t\" . implode(\", \", $setArray) . \"\n\tWHERE\n\t\t\" . $this->primaryField . \" = ?\n\t;\";\n\t\t// Adds the primary key binding\n\t\t$values[] = $this->{$this->primaryField};\n\n\t\t$db = new MySQL();\n\t\t$statement = $db->prepare($sql);\n\t\t$status = $statement->execute($values);\n\t\t$statement = NULL;\n\n\t\treturn $status;\n\t}", "protected function _update() {\n $this->_getDef();\n \n //prepare\n foreach ($this->_tableData as $field) {\n if($field['primary']) {\n $primaryKey = $field['field_name'];\n $primaryValue = $this->$primaryKey;\n continue;\n }\n \n $sql_fields[] = '`' . $field['field_name'] . '` =?';\n \n $field_name = $field['field_name'];\n \n if(false !== ($overrideKey = $this->_getOverrideKey($field_name))){\n $field_name = $overrideKey;\n }\n \n if($this->$field_name instanceof \\DateTime){\n $$field_name = $this->$field_name->format('Y-m-d H:i:s');\n } elseif(is_array($$field_name)){\n $$field_name = json_encode($$field_name);\n } else {\n $$field_name = $this->$field_name;\n }\n \n $values[] = $$field_name;\n }\n \n $values[] = $primaryValue;\n \n $sql = \"UPDATE `{$this->_table}` SET \" . implode(',', $sql_fields) . \" WHERE `{$primaryKey}` =?\";\n $stmt = Database::connection($this->_connection)->prepare($sql, $values);\n $stmt->execute();\n $this->setLastError(NULL);\n if($stmt->error !== ''){\n $this->setLastError($stmt->error);\n }\n \n $stmt->close();\n \n return $this->getLastError() === NULL ? true : false;\n }", "public function update() {\n\t\tif (isset($this->params['updated'])) {\n\t\t\t$this->params['updated'] = null;\n\t\t} // 'updated' is an auto timestamp\n\n\t\t$columns = array();\n\t\tforeach (array_keys($this->params) as $key) {\n\t\t\tarray_push($columns, $key . ' = ?');\n\t\t}\n\t\t$bindings = implode(', ', $columns);\n\t\t$sql = 'UPDATE ' . static::$table . ' SET ' . $bindings . ' WHERE id = ' . $this->get('id') . ' ;';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute(array_values($this->params));\n\t}", "public function update(){\r\n\t\tif (!$this->hasChanged) return self::RES_UNCHANGED;\r\n\t\t$table = $this->getTable();\r\n\t\tif ($this->new){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the record doesn't exist.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\tif (!$table->hasPrimaryKey()){\r\n\t\t\tMessages::msg(\"Cannot update record in {$this->getFullTableName()}, because the table does not have a primary key.\",Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\t$this->beforeCommit();\r\n\t\t\r\n\t\t$vals = array();\r\n\t\t$where = array();\r\n\t\t$changeCount = 0;\r\n\t\t$error = false;\r\n\t\tforeach ($this->values as $name=>$value){\r\n\t\t\tif ($value->isErroneous()){\r\n\t\t\t\tFramework::reportErrorField($name);\r\n\t\t\t\t$error = true;\r\n\t\t\t}\r\n\t\t\tif ($value->hasChanged()){\r\n\t\t\t\t$vals[] = \"`$name` = \".$value->getSQLValue();\r\n\t\t\t\t$changeCount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif ($error){\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t\r\n\t\tforeach ($table->getPrimaryKey()->getColumns() as $name){\r\n\t\t\t$where[] = \"`$name` = \".$this->values[$name]->getSQLValue();\r\n\t\t}\r\n\t\t$sql = 'UPDATE '.$this->getFullTableName().' SET '.implode(', ',$vals).' WHERE '.implode(' AND ',$where).' LIMIT 1';\r\n\t\tif (!SQL::query($sql)->success()){\r\n\t\t\tMessages::msg('Failed to update record in '.$this->getFullTableName().'.',Messages::M_CODE_ERROR);\r\n\t\t\treturn self::RES_FAILED;\r\n\t\t}\r\n\t\t$this->hasChanged = false;\r\n\t\tforeach ($this->values as $value){\r\n\t\t\t$value->setHasChanged(false);\r\n\t\t}\r\n\t\t\r\n\t\t$this->afterCommit();\r\n\t\t\r\n\t\treturn self::RES_SUCCESS;\r\n\t}", "public function updateRow($object)\n {\n $con = $this->getConnection();\n $statement = mysqli_prepare($con, \"UPDATE Comment SET UserID=? WHERE ID =?\");\n mysqli_stmt_bind_param($statement, 'ii', $UserID, $ID);\n $ID = $object->ID;\n $UserID = $object->UserID;\n mysqli_stmt_execute($statement);\n }", "protected function update()\n {\n $database = cbSQLConnect::connect('object');\n if (isset($database))\n {\n $fields = self::$db_fields;\n foreach($fields as $key)\n {\n $flag = $database->SQLUpdate(\"place\", $key, $this->{$key}, \"id\", $this->id);\n if ($flag == \"fail\")\n {\n break;\n }\n }\n if ($flag == \"fail\")\n {\n return false;\n }\n else\n return $this->id;\n }\n }", "private function update()\n {\n $queryString = 'UPDATE ' . $this->table . ' SET ';\n foreach ($this->data as $column => $value) {\n if ($column != self::ID) {\n $queryString .= $column . ' =:' . $column . ',';\n }\n }\n $queryString .= ' updated_at = sysdate() WHERE 1 = 1 AND ' . self::ID . ' =:' . self::ID;\n $this->query = $this->pdo->prepare($queryString);\n }", "protected function update() {\n $this->db->updateRows($this->table_name, $this->update, $this->filter);\n storeDbMsg($this->db,ucwords($this->form_ID) . \" successfully updated!\");\n }", "private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }", "protected function updateRow()\n { \n $tableName = $this->getTableName($this->className);\n $assignedValues = $this->getAssignedValues();\n $updateDetails = [];\n\n for ($i = 0; $i < count($assignedValues['columns']); $i++) { \n array_push($updateDetails, $assignedValues['columns'][$i] .' =\\''. $assignedValues['values'][$i].'\\'');\n }\n\n $connection = Connection::connect();\n\n $allUpdates = implode(', ' , $updateDetails);\n $update = $connection->prepare('update '.$tableName.' set '. $allUpdates.' where id='.$this->resultRows[0]['id']);\n \n if ($update->execute()) { \n return 'Row updated';\n } else { \n throw new Exception(\"Unable to update row\"); \n }\n }", "public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }", "function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}", "function EditRow() {\n\t\tglobal $conn, $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$rsnew = array();\n\n\t\t\t// model_id\n\t\t\t$this->model_id->SetDbValueDef($rsnew, $this->model_id->CurrentValue, 0, $this->model_id->ReadOnly);\n\n\t\t\t// title\n\t\t\t$this->title->SetDbValueDef($rsnew, $this->title->CurrentValue, NULL, $this->title->ReadOnly);\n\n\t\t\t// description\n\t\t\t$this->description->SetDbValueDef($rsnew, $this->description->CurrentValue, NULL, $this->description->ReadOnly);\n\n\t\t\t// s_order\n\t\t\t$this->s_order->SetDbValueDef($rsnew, $this->s_order->CurrentValue, 0, $this->s_order->ReadOnly);\n\n\t\t\t// status\n\t\t\t$this->status->SetDbValueDef($rsnew, $this->status->CurrentValue, 0, $this->status->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}", "public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }", "public function update() {\n\t\tTournamentDBClient::update($this);\n\t}", "public function update() {\n global $db;\n $this->_preupdate();\n $sql_set = '';\n $data = array();\n foreach($this->_magicProperties as $key=>$value)\n {\n $sql_set .= \"`\".addslashes($key).\"`=\";\n $sql_set .= \"?,\";\n $data[] = $value;\n }\n $sql_set = substr($sql_set, 0, -1);\n\n $query = \"UPDATE {$this->table} SET $sql_set WHERE \".$this->id_field.\"=?;\";\n $data[] = $this->{'get'.$this->id_field}();\n\n $result = $db->query($query,$data);\n $this->_postupdate($result);\n return $result;\n }", "public function update() {\n // Get the values that are currently in the database\n $curr_vals = $this->read_single();\n\n // Set the values that will be added to the table\n foreach ($curr_vals as $key => $value) {\n // Convert key from the Database's capitalization to\n // this model's attribute capitalization style (all lowercase)\n $local_key = strtolower($key);\n // If user didn't specify property\n if (($this->attr[$local_key] === \"\") || ($this->attr[$local_key] === null)){\n // Then use the value that's already in the database\n $this->attr[$local_key] = $curr_vals[$key];\n }\n }\n\n // Create query\n $query = \"UPDATE \" . $this->table .\n \" SET = \" .\n \" WHERE MID = :mid AND Spot = :spot \";\n\n // Prepare statement\n $stmt = $this->conn->prepare($query);\n\n // Clean the data (reduce malicious SQL injection, etc.)\n foreach ($this->attr as $key => $value) {\n $this->attr[$key] = htmlspecialchars(strip_tags($value));\n }\n \n // Bind the data to a variable for an SQL attribute\n foreach ($this->attr as $key => $value) {\n $stmt->bindValue((\":\" . $key), $value);\n }\n\n // Execute the prepared statement and check for errors in running it\n return $this->runPrepStmtChkErr($stmt);\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function put()\n {\n $this->layout = 'ajax';\n\n $this->Row->id = $this->request->data['id'];\n\n //if the row has a feed that belongs to the user\n $this->Feed->id = $this->Row->field('feed_id');\n\n // check if row belongs to the user\n if ($this->Auth->user('id') != $this->Feed->field('user_id')) {\n die('ERROR');\n }\n $this->Row->saveField(trim($this->request->data['columnName']), $this->request->data['value']);\n\n die($this->data['value']); // datatables wants this\n }", "public function update(phpDataMapper_Model_Row $row)\n\t{\n\t\t// Get \"col = :col\" pairs for the update query\n\t\t$placeholders = array();\n\t\t$binds = array();\n\t\tforeach($row->getDataModified() as $field => $value) {\n\t\t\tif($this->fieldExists($field)) {\n\t\t\t\t$placeholders[] = $field . \" = :\" . $field . \"\";\n\t\t\t\t// Empty values will be NULL (easier to be handled by databases)\n\t\t\t\t$binds[$field] = $this->isEmpty($value) ? null : $value;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Ensure there are actually updated values on THIS table\n\t\tif(count($placeholders) > 0) {\n\t\t\t// Build the query\n\t\t\t$sql = \"UPDATE \" . $this->getTable() .\n\t\t\t\t\" SET \" . implode(', ', $placeholders) .\n\t\t\t\t\" WHERE \" . $this->getPrimaryKeyField() . \" = '\" . $this->getPrimaryKey($row) . \"'\";\n\t\t\t\n\t\t\t// Add query to log\n\t\t\t$this->logQuery($sql, $binds);\n\t\t\t\n\t\t\t// Prepare update query\n\t\t\t$stmt = $this->adapter->prepare($sql);\n\t\t\t\n\t\t\t// Bind column values\n\t\t\t$this->bindValues($stmt, $binds);\n\t\t\t\n\t\t\tif($stmt) {\n\t\t\t\t// Execute\n\t\t\t\tif($stmt->execute($binds)) {\n\t\t\t\t\t$result = $this->getPrimaryKey($row);\n\t\t\t\t} else {\n\t\t\t\t\t$result = false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$result = false;\n\t\t\t}\n\t\t} else {\n\t\t\t$result = false;\n\t\t}\n\t\t\n\t\t// Save related rows\n\t\tif($result) {\n\t\t\t$this->saveRelatedRowsFor($row);\n\t\t}\n\t\t\n\t\treturn $result;\n\t}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$this->featured_image->OldUploadPath = \"../uploads/product/\";\n\t\t\t$this->featured_image->UploadPath = $this->featured_image->OldUploadPath;\n\t\t\t$rsnew = array();\n\n\t\t\t// cat_id\n\t\t\t$this->cat_id->SetDbValueDef($rsnew, $this->cat_id->CurrentValue, 0, $this->cat_id->ReadOnly || $this->cat_id->MultiUpdate <> \"1\");\n\n\t\t\t// company_id\n\t\t\t$this->company_id->SetDbValueDef($rsnew, $this->company_id->CurrentValue, 0, $this->company_id->ReadOnly || $this->company_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_model\n\t\t\t$this->pro_model->SetDbValueDef($rsnew, $this->pro_model->CurrentValue, NULL, $this->pro_model->ReadOnly || $this->pro_model->MultiUpdate <> \"1\");\n\n\t\t\t// pro_name\n\t\t\t$this->pro_name->SetDbValueDef($rsnew, $this->pro_name->CurrentValue, NULL, $this->pro_name->ReadOnly || $this->pro_name->MultiUpdate <> \"1\");\n\n\t\t\t// pro_description\n\t\t\t$this->pro_description->SetDbValueDef($rsnew, $this->pro_description->CurrentValue, NULL, $this->pro_description->ReadOnly || $this->pro_description->MultiUpdate <> \"1\");\n\n\t\t\t// pro_condition\n\t\t\t$this->pro_condition->SetDbValueDef($rsnew, $this->pro_condition->CurrentValue, NULL, $this->pro_condition->ReadOnly || $this->pro_condition->MultiUpdate <> \"1\");\n\n\t\t\t// pro_features\n\t\t\t$this->pro_features->SetDbValueDef($rsnew, $this->pro_features->CurrentValue, NULL, $this->pro_features->ReadOnly || $this->pro_features->MultiUpdate <> \"1\");\n\n\t\t\t// post_date\n\t\t\t$this->post_date->SetDbValueDef($rsnew, ew_CurrentDateTime(), NULL);\n\t\t\t$rsnew['post_date'] = &$this->post_date->DbValue;\n\n\t\t\t// ads_id\n\t\t\t$this->ads_id->SetDbValueDef($rsnew, $this->ads_id->CurrentValue, NULL, $this->ads_id->ReadOnly || $this->ads_id->MultiUpdate <> \"1\");\n\n\t\t\t// pro_base_price\n\t\t\t$this->pro_base_price->SetDbValueDef($rsnew, $this->pro_base_price->CurrentValue, NULL, $this->pro_base_price->ReadOnly || $this->pro_base_price->MultiUpdate <> \"1\");\n\n\t\t\t// pro_sell_price\n\t\t\t$this->pro_sell_price->SetDbValueDef($rsnew, $this->pro_sell_price->CurrentValue, NULL, $this->pro_sell_price->ReadOnly || $this->pro_sell_price->MultiUpdate <> \"1\");\n\n\t\t\t// featured_image\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->ReadOnly && strval($this->featured_image->MultiUpdate) == \"1\" && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->Upload->DbValue = $rsold['featured_image']; // Get original value\n\t\t\t\tif ($this->featured_image->Upload->FileName == \"\") {\n\t\t\t\t\t$rsnew['featured_image'] = NULL;\n\t\t\t\t} else {\n\t\t\t\t\t$rsnew['featured_image'] = $this->featured_image->Upload->FileName;\n\t\t\t\t}\n\t\t\t\t$this->featured_image->ImageWidth = 875; // Resize width\n\t\t\t\t$this->featured_image->ImageHeight = 665; // Resize height\n\t\t\t}\n\n\t\t\t// folder_image\n\t\t\t$this->folder_image->SetDbValueDef($rsnew, $this->folder_image->CurrentValue, \"\", $this->folder_image->ReadOnly || $this->folder_image->MultiUpdate <> \"1\");\n\n\t\t\t// pro_status\n\t\t\t$tmpBool = $this->pro_status->CurrentValue;\n\t\t\tif ($tmpBool <> \"Y\" && $tmpBool <> \"N\")\n\t\t\t\t$tmpBool = (!empty($tmpBool)) ? \"Y\" : \"N\";\n\t\t\t$this->pro_status->SetDbValueDef($rsnew, $tmpBool, \"N\", $this->pro_status->ReadOnly || $this->pro_status->MultiUpdate <> \"1\");\n\n\t\t\t// branch_id\n\t\t\t$this->branch_id->SetDbValueDef($rsnew, $this->branch_id->CurrentValue, NULL, $this->branch_id->ReadOnly || $this->branch_id->MultiUpdate <> \"1\");\n\n\t\t\t// lang\n\t\t\t$this->lang->SetDbValueDef($rsnew, $this->lang->CurrentValue, \"\", $this->lang->ReadOnly || $this->lang->MultiUpdate <> \"1\");\n\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t$this->featured_image->UploadPath = \"../uploads/product/\";\n\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file)) {\n\t\t\t\t\t\t\t\t$OldFileFound = FALSE;\n\t\t\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\t\t\tfor ($j = 0; $j < $OldFileCount; $j++) {\n\t\t\t\t\t\t\t\t\t$file1 = $OldFiles[$j];\n\t\t\t\t\t\t\t\t\tif ($file1 == $file) { // Old file found, no need to delete anymore\n\t\t\t\t\t\t\t\t\t\tunset($OldFiles[$j]);\n\t\t\t\t\t\t\t\t\t\t$OldFileFound = TRUE;\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif ($OldFileFound) // No need to check if file exists further\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx($this->featured_image->PhysicalUploadPath(), $file); // Get new file name\n\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\n\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1) || file_exists($this->featured_image->PhysicalUploadPath() . $file1)) // Make sure no file name clash\n\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename($this->featured_image->PhysicalUploadPath(), $file1, TRUE); // Use indexed name\n\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file, ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $file1);\n\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t$this->featured_image->Upload->DbValue = empty($OldFiles) ? \"\" : implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $OldFiles);\n\t\t\t\t\t$this->featured_image->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\n\t\t\t\t\t$this->featured_image->SetDbValueDef($rsnew, $this->featured_image->Upload->FileName, \"\", $this->featured_image->ReadOnly || $this->featured_image->MultiUpdate <> \"1\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t\tif ($this->featured_image->Visible && !$this->featured_image->Upload->KeepFile) {\n\t\t\t\t\t\t$OldFiles = ew_Empty($this->featured_image->Upload->DbValue) ? array() : array($this->featured_image->Upload->DbValue);\n\t\t\t\t\t\tif (!ew_Empty($this->featured_image->Upload->FileName) && $this->UpdateCount == 1) {\n\t\t\t\t\t\t\t$NewFiles = array($this->featured_image->Upload->FileName);\n\t\t\t\t\t\t\t$NewFiles2 = array($rsnew['featured_image']);\n\t\t\t\t\t\t\t$NewFileCount = count($NewFiles);\n\t\t\t\t\t\t\tfor ($i = 0; $i < $NewFileCount; $i++) {\n\t\t\t\t\t\t\t\t$fldvar = ($this->featured_image->Upload->Index < 0) ? $this->featured_image->FldVar : substr($this->featured_image->FldVar, 0, 1) . $this->featured_image->Upload->Index . substr($this->featured_image->FldVar, 1);\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->featured_image->TblVar) . $NewFiles[$i];\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\n\t\t\t\t\t\t\t\t\t\tif (@$NewFiles2[$i] <> \"\") // Use correct file name\n\t\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $NewFiles2[$i];\n\t\t\t\t\t\t\t\t\t\tif (!$this->featured_image->Upload->ResizeAndSaveToFile($this->featured_image->ImageWidth, $this->featured_image->ImageHeight, EW_THUMBNAIL_DEFAULT_QUALITY, $NewFiles[$i], TRUE, $i)) {\n\t\t\t\t\t\t\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UploadErrMsg7\"));\n\t\t\t\t\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$NewFiles = array();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$OldFileCount = count($OldFiles);\n\t\t\t\t\t\tfor ($i = 0; $i < $OldFileCount; $i++) {\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\n\t\t\t\t\t\t\t\t@unlink($this->featured_image->OldPhysicalUploadPath() . $OldFiles[$i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\n\t\t// featured_image\n\t\tew_CleanUploadTempPath($this->featured_image, $this->featured_image->Upload->Index);\n\t\treturn $EditRow;\n\t}", "public function update() {\n if (!$this->id) {\n //echo \"No se tiene referencia al ID del objeto a actulizar.\";\n throw new Exception(\"No se tiene referencia al ID del objeto a actulizar.\");\n }\n\n $sql = \"UPDATE contratos SET numero_contrato=:numero_contrato, objeto_contrato=:objeto_contrato, presupuesto=:presupuesto, fecha_estimada_finalizacion=:fecha_estimada_finalizacion WHERE id=:id\";\n $args = array(\n \":id\" => $this->id,\n \":numero_contrato\" => $this->numeroContrato,\n \":objeto_contrato\" => $this->objetoContrato,\n \":presupuesto\" => $this->presupuesto,\n \":fecha_estimada_finalizacion\" => $this->fechaEstimadaFinalizacion,\n );\n $stmt = $this->executeQuery($sql, $args);\n\n return !$stmt ? false : true;\n }", "function update(){\n\t\t$this->model->update();\n\t}", "protected function _update()\n {\n $hash = $this->hasChangedFields() ? $this->getChangedFields()\n : $this->getFields();\n\n $primary = array();\n\n // we should check if tabe has only one primary\n $keys = $this->_db->getPrimary();\n if (is_array($keys)) {\n foreach ($keys as $key) {\n $primary[\"{$key} = ?\"] = $this->_fields[$key];\n }\n }\n\n return $this->_db->update($hash, $primary);\n }", "private function update(){\n\t\t$id = $this->objAccessCrud->getId();\n\t\tif (empty ( $id )) return;\n\t\t// Check permission to update.\n\t\t$result = $this->clsAccessPermission->toUpdate();\n\t\tif(!$result){\n\t\t\t$this->msg->setWarn(\"You don't have permission to update!\");\n\t\t\treturn;\n\t\t}\n\t\t// Execute Update.\n\t\tif (! $this->objAccessCrud->update ()) {\n\t\t\t$this->msg->setError (\"There were issues on update the record!\");\n\t\t\treturn;\n\t\t}\n\t\t$this->msg->setSuccess (\"Updated the record with success!\");\n\t\treturn;\n\t}", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Nro_Serie\r\n\t\t\t$this->Nro_Serie->SetDbValueDef($rsnew, $this->Nro_Serie->CurrentValue, \"\", $this->Nro_Serie->ReadOnly || $this->Nro_Serie->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly || $this->SN->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cant_Net_Asoc\r\n\t\t\t$this->Cant_Net_Asoc->SetDbValueDef($rsnew, $this->Cant_Net_Asoc->CurrentValue, NULL, $this->Cant_Net_Asoc->ReadOnly || $this->Cant_Net_Asoc->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Marca\r\n\t\t\t$this->Id_Marca->SetDbValueDef($rsnew, $this->Id_Marca->CurrentValue, 0, $this->Id_Marca->ReadOnly || $this->Id_Marca->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Modelo\r\n\t\t\t$this->Id_Modelo->SetDbValueDef($rsnew, $this->Id_Modelo->CurrentValue, 0, $this->Id_Modelo->ReadOnly || $this->Id_Modelo->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_SO\r\n\t\t\t$this->Id_SO->SetDbValueDef($rsnew, $this->Id_SO->CurrentValue, 0, $this->Id_SO->ReadOnly || $this->Id_SO->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Id_Estado\r\n\t\t\t$this->Id_Estado->SetDbValueDef($rsnew, $this->Id_Estado->CurrentValue, 0, $this->Id_Estado->ReadOnly || $this->Id_Estado->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_Server\r\n\t\t\t$this->User_Server->SetDbValueDef($rsnew, $this->User_Server->CurrentValue, NULL, $this->User_Server->ReadOnly || $this->User_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_Server\r\n\t\t\t$this->Pass_Server->SetDbValueDef($rsnew, $this->Pass_Server->CurrentValue, NULL, $this->Pass_Server->ReadOnly || $this->Pass_Server->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// User_TdServer\r\n\t\t\t$this->User_TdServer->SetDbValueDef($rsnew, $this->User_TdServer->CurrentValue, NULL, $this->User_TdServer->ReadOnly || $this->User_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Pass_TdServer\r\n\t\t\t$this->Pass_TdServer->SetDbValueDef($rsnew, $this->Pass_TdServer->CurrentValue, NULL, $this->Pass_TdServer->ReadOnly || $this->Pass_TdServer->MultiUpdate <> \"1\");\r\n\r\n\t\t\t// Cue\r\n\t\t\t// Fecha_Actualizacion\r\n\r\n\t\t\t$this->Fecha_Actualizacion->SetDbValueDef($rsnew, ew_CurrentDate(), NULL);\r\n\t\t\t$rsnew['Fecha_Actualizacion'] = &$this->Fecha_Actualizacion->DbValue;\r\n\r\n\t\t\t// Usuario\r\n\t\t\t$this->Usuario->SetDbValueDef($rsnew, CurrentUserName(), NULL);\r\n\t\t\t$rsnew['Usuario'] = &$this->Usuario->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "function _update($entity)\n {\n $key = $this->object->get_primary_key_column();\n return $this->object->_wpdb()->update($this->object->get_table_name(), $this->object->_convert_to_table_data($entity), array($key => $entity->{$key}));\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",lastname=\\\"$this->lastname\\\",username=\\\"$this->username\\\",email=\\\"$this->email\\\",kind=\\\"$this->kind\\\",status=\\\"$this->status\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",comments=\\\"$this->comments\\\",price=\\\"$this->price\\\",brand=\\\"$this->brand\\\",model=\\\"$this->model\\\",y=\\\"$this->y\\\",link=\\\"$this->link\\\",in_existence=\\\"$this->in_existence\\\",is_public=\\\"$this->is_public\\\",is_featured=\\\"$this->is_featured\\\",category_id=\\\"$this->category_id\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public abstract function update($object);", "public function update()\n {\n return $this->save();\n }", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",short_name=\\\"$this->short_name\\\",is_active=\\\"$this->is_active\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update() {\t\t\n\t\t$record = $this->toArray(TRUE);\t\t\t\t\n\t\t$this->wpdb->update($this->table, $record, array_intersect_key($record, array_flip($this->primary)));\t\t\t\t\n\t\tif ($this->wpdb->last_error) {\n\t\t\tthrow new Exception($this->wpdb->last_error);\n\t\t}\t\t\n\t\treturn $this;\n\t}", "protected function update()\n\t{\n\t\t$set = array();\n\t\tforeach( $this->attributes as $column => $value )\n\t\t{\n\t\t\t$set[] = \"`$column`=?\";\n\t\t}\n\t\t$set = implode(\",\", $set);\n\t\t\n\t\t$methodAttributes = array_values( $this->attributes );\n\t\t// add first method attribute - query\n\t\tarray_unshift($methodAttributes, \"UPDATE `\" . static::$table . \"` SET $set WHERE `\" . static::$primaryKey . \"` = ?\");\n\t\t// add last method attribute - primaryKey to WHERE\n\t\t$methodAttributes[] = $this->attributes[static::$primaryKey];\n\t\t\n\t\t// inserting\n\t\treturn call_user_func_array(\"Database::update\", $methodAttributes);\n\t}", "public function updateRow($data)\r\n\t{\r\n\t\t$data = (array)$data;\r\n\t\t$data = $this->cleanupFieldNames($data);\r\n\t\t\r\n\t\t// Build SQL\r\n\t\t$sql = 'UPDATE `'.$this->name.'` SET ';\r\n\t\t$values = array();\r\n\t\t$pkFound = false;\r\n\t\tforeach($data as $key => $val)\r\n\t\t{\r\n\t\t\t// Ignore if field is not in table\r\n\t\t\tif (!$this->hasField($key))\r\n\t\t\t{\r\n\t\t\t\tunset($data[$key]);\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Include value, but not if primary key and table has auto-incr PK\r\n\t\t\t$include = true;\r\n\t\t\tif ($key == $this->primaryKey)\r\n\t\t\t{\r\n\t\t\t\tif ($this->primaryKeyIsAutoIncrement)\r\n\t\t\t\t{\r\n\t\t\t\t\t$include = false;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Found non-empty primary key\r\n\t\t\t\tif (!empty($val))\r\n\t\t\t\t{\r\n\t\t\t\t\t$pkFound = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Include and process special value\r\n\t\t\tif ($include)\r\n\t\t\t{\r\n\t\t\t\tif ($val === 'NULL')\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = NULL\";\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t$values[] = \"`$key` = :$key\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t// Quit if has no primary key\r\n\t\tif (!$pkFound)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('Cannot update: The supplied data does not contain a primary key');\r\n\t\t}\r\n\t\r\n\t\t// No fields were found - update makes no sense\r\n\t\tif (count($values) == 0)\r\n\t\t{\r\n\t\t\tthrow new \\Exception('No fields were added to the UPDATE query');\r\n\t\t}\r\n\t\t\t\r\n\t\t// Add values to query\r\n\t\t$sql .= implode(', ', $values);\r\n\t\r\n\t\t// Add where\r\n\t\t$sql .= ' WHERE `'.$this->primaryKey.'` = :' . $this->primaryKey;\r\n\r\n\t\t// Execute\r\n\t\t$result = $this->db->runQuery($sql, $data);\r\n\t\t\r\n\t\treturn $this->db->getAffectedRows();\r\n\t}", "public function update() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$arrBindings = array ();\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$sql = \"UPDATE $this->sqlTable SET \";\r\n\r\n\t\t\tif (isset ( $this->title )) {\r\n\t\t\t\t$sql .= \"dsh_title = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->title;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->desc )) {\r\n\t\t\t\t$sql .= \"dsh_desc = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->desc;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->portlet )) {\r\n\t\t\t\t$sql .= \"dsh_portlet = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->portlet;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->hide )) {\r\n\t\t\t\t$sql .= \"dsh_hide = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->hide;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdBy )) {\r\n\t\t\t\t$sql .= \"dsh_created_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedBy )) {\r\n\t\t\t\t$sql .= \"dsh_modified_by = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedBy;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->createdDate )) {\r\n\t\t\t\t$sql .= \"dsh_created_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->createdDate;\r\n\t\t\t}\r\n\t\t\tif (isset ( $this->modifiedDate )) {\r\n\t\t\t\t$sql .= \"dsh_modified_date = ?, \";\r\n\t\t\t\t$arrBindings[] = $this->modifiedDate;\r\n\t\t\t}\r\n\r\n\t\t\t$sql = preg_replace ( '/, $/', '', $sql);\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\t\t\t$arrBindings[] = $this->id;\r\n\r\n\t\t\t$ks_db->query ( $sql, $arrBindings );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql);\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "public function update () {\n reset($this->__fields);\n $pk = key($this->__fields);\n $form = $this->getForm();\n $updates = array();\n\n foreach ($form as $k => $v) {\n $updates[] = sprintf('%s = :%s', $k, $k);\n }\n\n $sql = sprintf(\n 'UPDATE %s SET %s WHERE %s = :%s'\n , $this->getTableName()\n , implode(',', $updates)\n , $pk\n , $pk\n );\n\n $stmt = $this->__db->prepare($sql);\n $stmt->bindValue($pk, $this->__get($pk));\n\n foreach ($form as $k => $v) {\n if (is_object($v->getData()) && get_class($v->getData()) == 'DateTime') {\n $stmt->bindValue($k, $v->getData(), $this->__fields[$k]['type']);\n } else {\n $stmt->bindValue($k, $v->getData());\n }\n }\n\n $stmt->execute();\n\n return $this;\n }", "public function update($row)\n\t{\n\t\t$this->db->where('tournamentId', $row['tournamentId']);\n\t\treturn $this->db->update('tournaments', $row);\n\t}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Con_SIM\r\n\t\t\t$this->Con_SIM->SetDbValueDef($rsnew, $this->Con_SIM->CurrentValue, NULL, $this->Con_SIM->ReadOnly);\r\n\r\n\t\t\t// Observaciones\r\n\t\t\t$this->Observaciones->SetDbValueDef($rsnew, $this->Observaciones->CurrentValue, NULL, $this->Observaciones->ReadOnly);\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function update(){\n\t\t$sql = \"update \".self::$tablename.\" set name=\\\"$this->name\\\",email1=\\\"$this->email1\\\",address1=\\\"$this->address1\\\",lastname=\\\"$this->lastname\\\",phone1=\\\"$this->phone1\\\" where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "abstract protected function updateModel();", "function EditRow() {\r\n\t\tglobal $Security, $Language;\r\n\t\t$sFilter = $this->KeyFilter();\r\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\r\n\t\t$conn = &$this->Connection();\r\n\t\t$this->CurrentFilter = $sFilter;\r\n\t\t$sSql = $this->SQL();\r\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold = &$rs->fields;\r\n\t\t\t$this->LoadDbValues($rsold);\r\n\t\t\t$this->Ruta_Archivo->OldUploadPath = 'ArchivosPase';\r\n\t\t\t$this->Ruta_Archivo->UploadPath = $this->Ruta_Archivo->OldUploadPath;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Serie_Equipo\r\n\t\t\t$this->Serie_Equipo->SetDbValueDef($rsnew, $this->Serie_Equipo->CurrentValue, NULL, $this->Serie_Equipo->ReadOnly);\r\n\r\n\t\t\t// Id_Hardware\r\n\t\t\t$this->Id_Hardware->SetDbValueDef($rsnew, $this->Id_Hardware->CurrentValue, NULL, $this->Id_Hardware->ReadOnly);\r\n\r\n\t\t\t// SN\r\n\t\t\t$this->SN->SetDbValueDef($rsnew, $this->SN->CurrentValue, NULL, $this->SN->ReadOnly);\r\n\r\n\t\t\t// Modelo_Net\r\n\t\t\t$this->Modelo_Net->SetDbValueDef($rsnew, $this->Modelo_Net->CurrentValue, NULL, $this->Modelo_Net->ReadOnly);\r\n\r\n\t\t\t// Marca_Arranque\r\n\t\t\t$this->Marca_Arranque->SetDbValueDef($rsnew, $this->Marca_Arranque->CurrentValue, NULL, $this->Marca_Arranque->ReadOnly);\r\n\r\n\t\t\t// Nombre_Titular\r\n\t\t\t$this->Nombre_Titular->SetDbValueDef($rsnew, $this->Nombre_Titular->CurrentValue, NULL, $this->Nombre_Titular->ReadOnly);\r\n\r\n\t\t\t// Dni_Titular\r\n\t\t\t$this->Dni_Titular->SetDbValueDef($rsnew, $this->Dni_Titular->CurrentValue, NULL, $this->Dni_Titular->ReadOnly);\r\n\r\n\t\t\t// Cuil_Titular\r\n\t\t\t$this->Cuil_Titular->SetDbValueDef($rsnew, $this->Cuil_Titular->CurrentValue, NULL, $this->Cuil_Titular->ReadOnly);\r\n\r\n\t\t\t// Nombre_Tutor\r\n\t\t\t$this->Nombre_Tutor->SetDbValueDef($rsnew, $this->Nombre_Tutor->CurrentValue, NULL, $this->Nombre_Tutor->ReadOnly);\r\n\r\n\t\t\t// DniTutor\r\n\t\t\t$this->DniTutor->SetDbValueDef($rsnew, $this->DniTutor->CurrentValue, NULL, $this->DniTutor->ReadOnly);\r\n\r\n\t\t\t// Domicilio\r\n\t\t\t$this->Domicilio->SetDbValueDef($rsnew, $this->Domicilio->CurrentValue, NULL, $this->Domicilio->ReadOnly);\r\n\r\n\t\t\t// Tel_Tutor\r\n\t\t\t$this->Tel_Tutor->SetDbValueDef($rsnew, $this->Tel_Tutor->CurrentValue, NULL, $this->Tel_Tutor->ReadOnly);\r\n\r\n\t\t\t// CelTutor\r\n\t\t\t$this->CelTutor->SetDbValueDef($rsnew, $this->CelTutor->CurrentValue, NULL, $this->CelTutor->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Alta\r\n\t\t\t$this->Cue_Establecimiento_Alta->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Alta->CurrentValue, NULL, $this->Cue_Establecimiento_Alta->ReadOnly);\r\n\r\n\t\t\t// Escuela_Alta\r\n\t\t\t$this->Escuela_Alta->SetDbValueDef($rsnew, $this->Escuela_Alta->CurrentValue, NULL, $this->Escuela_Alta->ReadOnly);\r\n\r\n\t\t\t// Directivo_Alta\r\n\t\t\t$this->Directivo_Alta->SetDbValueDef($rsnew, $this->Directivo_Alta->CurrentValue, NULL, $this->Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Alta\r\n\t\t\t$this->Cuil_Directivo_Alta->SetDbValueDef($rsnew, $this->Cuil_Directivo_Alta->CurrentValue, NULL, $this->Cuil_Directivo_Alta->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_alta\r\n\t\t\t$this->Dpto_Esc_alta->SetDbValueDef($rsnew, $this->Dpto_Esc_alta->CurrentValue, NULL, $this->Dpto_Esc_alta->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Alta\r\n\t\t\t$this->Localidad_Esc_Alta->SetDbValueDef($rsnew, $this->Localidad_Esc_Alta->CurrentValue, NULL, $this->Localidad_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Alta\r\n\t\t\t$this->Domicilio_Esc_Alta->SetDbValueDef($rsnew, $this->Domicilio_Esc_Alta->CurrentValue, NULL, $this->Domicilio_Esc_Alta->ReadOnly);\r\n\r\n\t\t\t// Rte_Alta\r\n\t\t\t$this->Rte_Alta->SetDbValueDef($rsnew, $this->Rte_Alta->CurrentValue, NULL, $this->Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Alta\r\n\t\t\t$this->Tel_Rte_Alta->SetDbValueDef($rsnew, $this->Tel_Rte_Alta->CurrentValue, NULL, $this->Tel_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Alta\r\n\t\t\t$this->Email_Rte_Alta->SetDbValueDef($rsnew, $this->Email_Rte_Alta->CurrentValue, NULL, $this->Email_Rte_Alta->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Alta\r\n\t\t\t$this->Serie_Server_Alta->SetDbValueDef($rsnew, $this->Serie_Server_Alta->CurrentValue, NULL, $this->Serie_Server_Alta->ReadOnly);\r\n\r\n\t\t\t// Cue_Establecimiento_Baja\r\n\t\t\t$this->Cue_Establecimiento_Baja->SetDbValueDef($rsnew, $this->Cue_Establecimiento_Baja->CurrentValue, NULL, $this->Cue_Establecimiento_Baja->ReadOnly);\r\n\r\n\t\t\t// Escuela_Baja\r\n\t\t\t$this->Escuela_Baja->SetDbValueDef($rsnew, $this->Escuela_Baja->CurrentValue, NULL, $this->Escuela_Baja->ReadOnly);\r\n\r\n\t\t\t// Directivo_Baja\r\n\t\t\t$this->Directivo_Baja->SetDbValueDef($rsnew, $this->Directivo_Baja->CurrentValue, NULL, $this->Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Cuil_Directivo_Baja\r\n\t\t\t$this->Cuil_Directivo_Baja->SetDbValueDef($rsnew, $this->Cuil_Directivo_Baja->CurrentValue, NULL, $this->Cuil_Directivo_Baja->ReadOnly);\r\n\r\n\t\t\t// Dpto_Esc_Baja\r\n\t\t\t$this->Dpto_Esc_Baja->SetDbValueDef($rsnew, $this->Dpto_Esc_Baja->CurrentValue, NULL, $this->Dpto_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Localidad_Esc_Baja\r\n\t\t\t$this->Localidad_Esc_Baja->SetDbValueDef($rsnew, $this->Localidad_Esc_Baja->CurrentValue, NULL, $this->Localidad_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Domicilio_Esc_Baja\r\n\t\t\t$this->Domicilio_Esc_Baja->SetDbValueDef($rsnew, $this->Domicilio_Esc_Baja->CurrentValue, NULL, $this->Domicilio_Esc_Baja->ReadOnly);\r\n\r\n\t\t\t// Rte_Baja\r\n\t\t\t$this->Rte_Baja->SetDbValueDef($rsnew, $this->Rte_Baja->CurrentValue, NULL, $this->Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Tel_Rte_Baja\r\n\t\t\t$this->Tel_Rte_Baja->SetDbValueDef($rsnew, $this->Tel_Rte_Baja->CurrentValue, NULL, $this->Tel_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Email_Rte_Baja\r\n\t\t\t$this->Email_Rte_Baja->SetDbValueDef($rsnew, $this->Email_Rte_Baja->CurrentValue, NULL, $this->Email_Rte_Baja->ReadOnly);\r\n\r\n\t\t\t// Serie_Server_Baja\r\n\t\t\t$this->Serie_Server_Baja->SetDbValueDef($rsnew, $this->Serie_Server_Baja->CurrentValue, NULL, $this->Serie_Server_Baja->ReadOnly);\r\n\r\n\t\t\t// Fecha_Pase\r\n\t\t\t$this->Fecha_Pase->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->Fecha_Pase->CurrentValue, 7), NULL, $this->Fecha_Pase->ReadOnly);\r\n\r\n\t\t\t// Id_Estado_Pase\r\n\t\t\t$this->Id_Estado_Pase->SetDbValueDef($rsnew, $this->Id_Estado_Pase->CurrentValue, 0, $this->Id_Estado_Pase->ReadOnly);\r\n\r\n\t\t\t// Ruta_Archivo\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->ReadOnly && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->Upload->DbValue = $rsold['Ruta_Archivo']; // Get original value\r\n\t\t\t\tif ($this->Ruta_Archivo->Upload->FileName == \"\") {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = NULL;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t$this->Ruta_Archivo->UploadPath = 'ArchivosPase';\r\n\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t$file = $NewFiles[$i];\r\n\t\t\t\t\t\t\tif (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file)) {\r\n\t\t\t\t\t\t\t\tif (!in_array($file, $OldFiles)) {\r\n\t\t\t\t\t\t\t\t\t$file1 = ew_UploadFileNameEx(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file); // Get new file name\r\n\t\t\t\t\t\t\t\t\tif ($file1 <> $file) { // Rename temp file\r\n\t\t\t\t\t\t\t\t\t\twhile (file_exists(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1)) // Make sure did not clash with existing upload file\r\n\t\t\t\t\t\t\t\t\t\t\t$file1 = ew_UniqueFilename(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->UploadPath), $file1, TRUE); // Use indexed name\r\n\t\t\t\t\t\t\t\t\t\trename(ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file, ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $file1);\r\n\t\t\t\t\t\t\t\t\t\t$NewFiles[$i] = $file1;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t$this->Ruta_Archivo->Upload->FileName = implode(EW_MULTIPLE_UPLOAD_SEPARATOR, $NewFiles);\r\n\t\t\t\t\t$rsnew['Ruta_Archivo'] = $this->Ruta_Archivo->Upload->FileName;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\r\n\t\t\t\tif (count($rsnew) > 0)\r\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\r\n\t\t\t\telse\r\n\t\t\t\t\t$EditRow = TRUE; // No field to update\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t\tif ($EditRow) {\r\n\t\t\t\t\tif ($this->Ruta_Archivo->Visible && !$this->Ruta_Archivo->Upload->KeepFile) {\r\n\t\t\t\t\t\t$OldFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->DbValue);\r\n\t\t\t\t\t\tif (!ew_Empty($this->Ruta_Archivo->Upload->FileName)) {\r\n\t\t\t\t\t\t\t$NewFiles = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $this->Ruta_Archivo->Upload->FileName);\r\n\t\t\t\t\t\t\t$NewFiles2 = explode(EW_MULTIPLE_UPLOAD_SEPARATOR, $rsnew['Ruta_Archivo']);\r\n\t\t\t\t\t\t\t$FileCount = count($NewFiles);\r\n\t\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\t\t$fldvar = ($this->Ruta_Archivo->Upload->Index < 0) ? $this->Ruta_Archivo->FldVar : substr($this->Ruta_Archivo->FldVar, 0, 1) . $this->Ruta_Archivo->Upload->Index . substr($this->Ruta_Archivo->FldVar, 1);\r\n\t\t\t\t\t\t\t\tif ($NewFiles[$i] <> \"\") {\r\n\t\t\t\t\t\t\t\t\t$file = ew_UploadTempPath($fldvar, $this->Ruta_Archivo->TblVar) . EW_PATH_DELIMITER . $NewFiles[$i];\r\n\t\t\t\t\t\t\t\t\tif (file_exists($file)) {\r\n\t\t\t\t\t\t\t\t\t\t$this->Ruta_Archivo->Upload->SaveToFile($this->Ruta_Archivo->UploadPath, (@$NewFiles2[$i] <> \"\") ? $NewFiles2[$i] : $NewFiles[$i], TRUE, $i); // Just replace\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$NewFiles = array();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$FileCount = count($OldFiles);\r\n\t\t\t\t\t\tfor ($i = 0; $i < $FileCount; $i++) {\r\n\t\t\t\t\t\t\tif ($OldFiles[$i] <> \"\" && !in_array($OldFiles[$i], $NewFiles))\r\n\t\t\t\t\t\t\t\t@unlink(ew_UploadPathEx(TRUE, $this->Ruta_Archivo->OldUploadPath) . $OldFiles[$i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\r\n\r\n\t\t\t\t\t// Use the message, do nothing\r\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\r\n\t\t\t\t\t$this->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$this->Row_Updated($rsold, $rsnew);\r\n\t\tif ($EditRow) {\r\n\t\t\t$this->WriteAuditTrailOnEdit($rsold, $rsnew);\r\n\t\t}\r\n\t\t$rs->Close();\r\n\r\n\t\t// Ruta_Archivo\r\n\t\tew_CleanUploadTempPath($this->Ruta_Archivo, $this->Ruta_Archivo->Upload->Index);\r\n\t\treturn $EditRow;\r\n\t}", "public function update(){\n\t\techo $sql = \"update \".self::$tablename.\" set title=\\\"$this->title\\\",description=\\\"$this->description\\\",skills=\\\"$this->skills\\\",area_id=$this->area_id,jobtype_id=$this->jobtype_id,jobperiod_id=$this->jobperiod_id,duration=$this->duration,is_public=$this->is_public,is_finished=$this->is_finished,created_at=$this->created_at where id=$this->id\";\n\t\tExecutor::doit($sql);\n\t}", "public function update(){\t\t\tif( is_null( $this->id ) ) trigger_error( \"User::update(): Attempt to update a user object that does not have its ID property set.\", E_USER_ERROR );\r\n\t\t\t\r\n\t\t\r\n\r\n\t\t\t//Update the object\r\n\t\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\t\t\r\n\t\t\t$sql = \"UPDATE \".TABLENAME_GROUPS.\" SET name=:name, caption=:caption, adminId=:adminId, per2Id=:per2Id, per3Id=:per3Id, icon_link=:icon_link, status=:status WHERE id = :id\";\r\n\t\t\t$st = $conn->prepare( $sql );\r\n\t\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":caption\", $this->caption, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":adminId\", $this->adminId, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":per2Id\", $this->per2Id, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":per3Id\", $this->per3Id, PDO::PARAM_INT );\r\n\t\t\t$st->bindValue( \":icon_link\", $this->icon_link, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":status\", $this->status, PDO::PARAM_STR );\r\n\t\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t\techo \"<br>\";\r\n\t\t\t$st->execute();\r\n\t\t//\tprint_r($st->errorInfo());\r\n\t\t\t$conn = null;\t\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}", "public function update() {\n\n // Does the course object have an ID?\n if ( is_null( $this->courseId ) ) trigger_error ( \"Course::update(): Attempt to update Course object that does not have its ID property set.\", E_USER_ERROR );\n\n // Update the course\n $conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\n $sql = \"UPDATE course SET courseCode=:courseCode, courseName=:courseName, description=:description, headTeacher=:headTeacher WHERE courseId = :courseId\";\n $st = $conn->prepare ( $sql );\n $st->bindValue( \":courseCode\", $this->courseCode, PDO::PARAM_INT );\n $st->bindValue( \":courseName\", $this->courseName, PDO::PARAM_INT );\n $st->bindValue( \":description\", $this->description, PDO::PARAM_STR );\n $st->bindValue( \":headTeacher\", $this->headTeacher, PDO::PARAM_STR );\n\n//\n $st->bindValue( \":courseId\", $this->courseId, PDO::PARAM_INT );\n $st->execute();\n $conn = null;\n }", "public function update()\n\t{\n\t\t$this->user->db_update();\n\t}", "public function update()\n\t{\n\t\t$sql_array = array();\n\t\tforeach ($this->object_config as $name => $config_array)\n\t\t{\n\t\t\t// No need to update the sql identifier\n\t\t\tif ($name == $this->sql_id_field)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$property_value = $this->validate_property($this->$name, $config_array);\n\n\t\t\t// Property value has not changed\n\t\t\t// Comparison with == is fine\n\t\t\tif (isset($this->sql_data[$name]) && $this->sql_data[$name] == $property_value)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$sql_array[$name] = $property_value;\n\t\t}\n\n\t\tif (empty($sql_array))\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\t$sql = 'UPDATE ' . $this->sql_table . '\n\t\t\tSET ' . $this->db->sql_build_array('UPDATE', $sql_array) . '\n\t\t\tWHERE ' . $this->sql_id_field . ' = ' . $this->{$this->sql_id_field};\n\t\t$this->db->sql_query($sql);\n\n\t\t// Merge sql data back\n\t\t$this->sql_data = array_merge($this->sql_data, $sql_array);\n\n\t\tif ($this->db->sql_affectedrows())\n\t\t{\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "abstract protected function updateSpecificProperties($row);", "public function DoUpdate()\n\t{\n\n\t\treturn db_update_records($this->fields, $this->tables, $this->values, $this->filters);\n\t}", "public function update()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->getGbaseItemEntry( $this->getItem()->getGbaseItemId() );\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $entry = $service->updateGbaseItem($this->getEntry());\n\n }", "public function update()\n {\n if (empty($this->info)) {\n return true;\n }\n\n $success = $this->query($this->constructUpdateQuery());\n $this->numRows = $this->conn->affected_rows;\n\n return $success;\n }", "public function update()\n\t{\n\t\ttry\n\t\t{\n\t\t\t$sql = 'UPDATE class SET ';\n\n\t\t\tif(isset($this->_year))\n\t\t\t\t$sql.=' year = :year,';\n\n\t\t\tif(isset($this->_section))\n\t\t\t\t$sql.=' section = :section';\n\t\t\telse\n\t\t\t\t$sql = substr_replace($sql, '', -1);\n\t\t\t\n\t\t\t$sql.=' WHERE id = :id';\n\n \t\t$data = [\n\t\t\t 'id' => $this->_id,\n\t\t\t 'year' => $this->_year,\n\t\t\t 'section' => $this->_section,\n\t\t\t];\n\n\t \t$stmt = $this->db->prepare($sql);\n\t \t$stmt->execute($data);\n\t\t\t$status = $stmt->rowCount();\n\t\t}\n\t\tcatch (Exception $e)\n\t\t{\n\t\t\theader(\"HTTP/1.0 400 Bad request\");\n\t\t\techo $e;\n\t\t}\n\t}", "public function Save()\r\n\t\t{\r\n\t\t\tif ($this->id == -1) {\r\n\t\t\t\tunset($this->columns[\"id\"]);\r\n\t\t\t\t$sqlCol = null;\r\n\t\t\t\t$sqlKey = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlCol .= \",\" . $column;\r\n\t\t\t\t\t$sqlKey .= \",:\" . $column;\r\n\t\t\t\t}\r\n\t\t\t\t$sqlCol = ltrim($sqlCol, \",\");\r\n\t\t\t\t$sqlKey = ltrim($sqlKey, \",\");\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"INSERT INTO \" . $this->table . \" (\" . $sqlCol . \")\r\n\t\t\t\t\t\tVALUES (\" . $sqlKey . \") ;\"\r\n\t\t\t\t);\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\t// Sinon faire un update dynamique\r\n\t\t\t\t$sqlSet = null;\r\n\t\t\t\tforeach ($this->columns as $column => $value) {\r\n\t\t\t\t\t$data[$column] = $this->$column;\r\n\t\t\t\t\t$sqlSet[] .= $column . \"=:\" . $column;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Suppression de la mise à jour de la date d'update \r\n\t\t\t\t// la mise à jour des dates est maintenant faites en BDD.\r\n\t\t\t\t$query = $this->db->prepare(\r\n\t\t\t\t\t\"UPDATE \" . $this->table . \" SET \r\n\t\t\t\t\t\t\" . implode(\",\", $sqlSet) . \"\r\n\t\t\t\t\t\tWHERE id=:id;\"\r\n\t\t\t\t);\r\n\r\n\t\t\t\t$query->execute($data);\r\n\t\t\t}\r\n\t\t}", "protected function performUpdate()\n {\n // Once we have run the update operation, we will fire the \"updated\" event for\n // this model instance. This will allow developers to hook into these after\n // models are updated, giving them a chance to do any special processing.\n $dirty = $this->getDirty();\n\n if (count($dirty) > 0) {\n $updatedField = $this->getApi()->{'update'.ucfirst($this->getEntity())}($this->{$this->primaryKey}, $dirty);\n $this->fill($updatedField);\n $this->syncChanges();\n }\n\n return true;\n }", "function update()\n {\n $this->dbInit();\n if ( isset( $this->ID ) )\n {\n query( \"UPDATE Grp set Name='$this->Name', Description='$this->Description',\n\t\tUserAdmin='$this->UserAdmin',\n \t\tUserGroupAdmin='$this->UserGroupAdmin',\n\t\tPersonTypeAdmin='$this->PersonTypeAdmin',\n\t\tCompanyTypeAdmin='$this->CompanyTypeAdmin',\n\t\tPhoneTypeAdmin='$this->PhoneTypeAdmin',\n\t\tAddressTypeAdmin='$this->AddressTypeAdmin' WHERE ID='$this->ID'\" );\n }\n }", "public function update($entity){ \n //TODO: Implement update record.\n }", "public function updateRecord()\n\t{\n\t\tif($this->user->hasRight($this->getHandler()->getEditRight()))\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$record = $this->getHandler()->getRecord();\n\t\t\t\t$record->import($this->getRequest());\n\n\t\t\t\t// check owner\n\t\t\t\tif(!$this->isOwner($record))\n\t\t\t\t{\n\t\t\t\t\tthrow new Exception('You are not the owner of the record');\n\t\t\t\t}\n\n\t\t\t\t// check captcha\n\t\t\t\t$this->handleCaptcha($record);\n\n\t\t\t\t// update\n\t\t\t\t$this->getHandler()->update($record);\n\n\n\t\t\t\t$msg = new Message('You have successful edit a ' . $record->getName(), true);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t\tcatch(\\Exception $e)\n\t\t\t{\n\t\t\t\t$msg = new Message($e->getMessage(), false);\n\n\t\t\t\t$this->setResponse($msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = new Message('Access not allowed', false);\n\n\t\t\t$this->setResponse($msg, null, $this->user->isAnonymous() ? 401 : 403);\n\t\t}\n\t}", "public function update(){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"UPDATE \".$table.\" SET \";\n foreach($this as $k=>$v){\n $sql .= $k.\" = '\".$v.\"',\";\n }\n $sql = trim($sql, ',');\n $sql .= \" WHERE \".$keyColumn.\" = \".$this->keyColumn;\n mysqli_query(static::$conn, $sql);\n }", "public static function UpdateObject($obj,$class,$tableName,$primaryKeyName,$allowFixup=true){\n\t\t//Modifing an Object Table, clear all memoized results\n\t\tMemo::Clear();\n\n\t\t$cmd = \"UPDATE `$tableName` SET \";\n\t\t$loopCounter = 0;\n\t\tforeach (get_class_vars($class) as $key => $value) {\n\t\t\tif(strpos($key,$primaryKeyName)===FALSE){\n\t\t\t\tif($loopCounter++){\n\t\t\t\t\t$cmd .= \", \";\n\t\t\t\t}\n\t\t\t\t$cmd .= \"`$key`\".\"='\".static::Escape($obj->$key).\"'\";\n\t\t\t}\n\t\t}\n\t\t$cmd .= \" WHERE `\".static::Escape($primaryKeyName).\"`='\".static::Escape($obj->$primaryKeyName).\"'\";\n\n\t\t$result = static::Query($cmd);\n\n\t\tif( !$result && $allowFixup)$result = static::FixObjectErrors($obj,$class,$tableName,$primaryKeyName,\"UpdateObject\");\n\n\t\treturn $result;\n\t}", "public function db_update() {}", "public function updateRecord(){\n\t\tglobal $db;\n $data = array('email'=>$this->email);\n\t\t\t\t$response = $db->update($this->table,$data,\"id = $this->id\");\n\t\treturn $response;\n\t}", "protected function update()\n\t{\n\t\t$this->autofill();\n\n\t\t$query = $this->connection->prepare (\"call UpdateProjectBooth (?, ?)\");\n\t\t$query->execute ([$this->fields['ID'], $this->fields['BoothID']]);\n\n\t\t$booth = $this->fields['BoothID'];\n\t\tunset ($this->fields['BoothID']);\n\n\t\tparent::update();\n\n\t\t$this->fields['BoothID'] = $booth;\n\n\t}", "function update($primary){\n $this->primary=$primary;\n //\n //create the update\n $update= new update($this, $primary);\n //\n //Execute the the insert\n $update->query($this->entity->get_parent());\n }", "public function save() {\n\t\tif( $this->isAddingNew() ) {\n\t\t\t//Insert record\n\t\t\t$key = $this->getConnection()->insert( $this->_updateBuffer, $this );\n\n\t\t\t//remove all state from this object (including isAddingNew)\n\t\t\t$this->clear();\n\n\t\t\t//Pull just this new record\n\t\t\t$method = \"where\" . $this->getTable()->getPrimaryKey();\n\t\t\t$this->$method( $key );\n\t\t} else {\n\t\t\t$updatedRecord = $this->getConnection()->update( $this->_updateBuffer, $this );\n\t\t\t$this->_recordset[ $this->_currentRow ] = $updatedRecord[0];\n\t\t}\n\n\t\t$this->_updateBuffer = array();\n\t\treturn $this;\n\t}", "public function save()\n {\n $this->checkForNecessaryProperties();\n\n $this->update($this->getCurrentId(), $this->data);\n }", "public function update() {\n if($this->id == 0)\n return null; // can't update something without an ID\n\n $db = Db::instance(); // connect to db\n $q = sprintf(\"UPDATE `followers` SET\n `username` = $db->escape($this->user),\n `follower` = $db->escape($this->follower)\n WHERE `id` = $db->escape($this->id);\");\n\n $db->query($q); // execute query\n return $db->id; // return this object's ID\n }", "public function update() {\n global $DB;\n $record = array(\n 'sortorder' => $this->sortorder,\n 'criterion' => $this->criterion,\n 'addinfo' => json_encode($this->addinfo)\n );\n if ($this->id) {\n $record['id'] = $this->id;\n $DB->update_record($this->get_table_name(), $record);\n } else {\n $record['instantquizid'] = $this->instantquiz->id;\n $this->id = $DB->insert_record($this->get_table_name(), $record);\n }\n }", "public function updateRecord() {\n $model = self::model()->findByAttributes(array('id_customer' => $this->id_customer, 'id_supplier' => $this->id_supplier));\n\n //model is new, so create a copy with the keys set\n if (null === $model) {\n //we don't use clone $this as it can leave off behaviors and events\n $model = new self;\n $model->id_customer = $this->id_customer;\n $model->id_supplier = $this->id_supplier;\n }\n $model->save(false);\n return $model;\n }", "public function update($record);", "public function update($obj)\n {\n }", "private function Update() {\n $Update = new Update;\n $Update->ExeUpdate(self::Entity, $this->Data, \"WHERE id = :id\", \"id={$this->Post}\");\n if ($Update->getResult()):\n $this->Error = [\"As informações de <b>contato</b> foram atualizadas com sucesso!\", WS_ACCEPT];\n $this->Result = true;\n endif;\n }", "public function update()\n { if (is_null($this->id))\n trigger_error(\"User::update(): Attempt to update a User object that does not have its ID property set.\", E_USER_ERROR);\n \n // Update the User\n $conn = new PDO(DB_DSN, DB_USER, DB_PASS);\n $sql = \"UPDATE users SET user_name=:user_name, user_password_hash=:user_password_hash, user_email=:user_email, orcid=:orcid, orcid_code=:orcid_code, orcid_access_token=:orcid_access_token WHERE user_id = :id\";\n $st = $conn->prepare($sql);\n $st->bindValue(\":user_name\", $this->userName, PDO::PARAM_STR);\n $st->bindValue(\":user_password_hash\", $this->userPasswordHash, PDO::PARAM_STR);\n\t$st->bindValue(\":user_email\", $this->userEmail, PDO::PARAM_STR);\n $st->bindValue(\":orcid\", $this->orcid, PDO::PARAM_STR);\n $st->bindValue(\":orcid_code\", $this->orcidCode, PDO::PARAM_STR);\n $st->bindValue(\":orcid_access_token\", $this->orcidAccessToken, PDO::PARAM_STR);\n $st->bindValue(\":id\", $this->id, PDO::PARAM_INT);\n $st->execute();\n $conn = null;\n }", "public function update() {\r\n\r\n\t\t// Does the Genre object have an ID?\r\n\t\tif ( is_null( $this->id ) ) trigger_error ( \"Genre::update(): Attempt to update an Genre object that does not have its ID property set.\", E_USER_ERROR );\r\n\r\n\t\t// Update the Genre\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$sql = \"UPDATE :table SET name=:name WHERE id = :id\";\r\n\t\t$st = $conn->prepare ( $sql );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->bindValue( \":name\", $this->name, PDO::PARAM_STR );\r\n\t\t$st->execute();\r\n\t\t$conn = null;\r\n\t}", "abstract public function updateItem(&$object);", "protected function update()\n\t{\n\t\t//append ID to fields\n\t\t$query = $this->connection->prepare\n\t\t(\"\n\t\t\tupdate Booth\n\t\t\tset BoothNum = ?\n\t\t\twhere BoothID = ?\n\t\t\");\n\n\t\t$query->execute(array_values($this->fields));\n\n\t}", "public function update()\n\t{\n\t\tif (isset($this->item->params) && $this->item->params instanceof CRegistry) {\n\t\t\t$this->item->params = $this->item->params->toString();\n\t\t}\n\n\t\t$ret = $this->db->updateObject('#__'.$this->table, $this->item, $this->primaryKey);\n\n\t\treturn $this;\n\t}", "public function Update()\n\t{\n\t\t$prefix = $this->Db->TablePrefix;\n\t\t$user = GetUser();\n\t\t$userid = $user->userid;\n\t\t$where = 'id = ' . $this->id;\n\n\t\t$surveys_data = $this->data;\n\n\t\tif (isset($surveys_data['_columns'])) {\n\t\t\tunset($surveys_data['_columns']);\n\t\t}\n\n\t\tif (isset($surveys_data['id'])) {\n\t\t\tunset($surveys_data['id']);\n\t\t}\n\n\t\t$surveys_data['updated'] = $this->GetServerTime();\n\n\t\t$this->Db->UpdateQuery('surveys', $surveys_data, $where);\n\t}", "function EditRow() {\n\t\tglobal $Security, $Language;\n\t\t$sFilter = $this->KeyFilter();\n\t\t$sFilter = $this->ApplyUserIDFilters($sFilter);\n\t\t$conn = &$this->Connection();\n\t\t$this->CurrentFilter = $sFilter;\n\t\t$sSql = $this->SQL();\n\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t$rs = $conn->Execute($sSql);\n\t\t$conn->raiseErrorFn = '';\n\t\tif ($rs === FALSE)\n\t\t\treturn FALSE;\n\t\tif ($rs->EOF) {\n\t\t\t$this->setFailureMessage($Language->Phrase(\"NoRecord\")); // Set no record message\n\t\t\t$EditRow = FALSE; // Update Failed\n\t\t} else {\n\n\t\t\t// Save old values\n\t\t\t$rsold = &$rs->fields;\n\t\t\t$this->LoadDbValues($rsold);\n\t\t\t$rsnew = array();\n\n\t\t\t// nomr\n\t\t\t$this->nomr->SetDbValueDef($rsnew, $this->nomr->CurrentValue, \"\", $this->nomr->ReadOnly);\n\n\t\t\t// ket_nama\n\t\t\t$this->ket_nama->SetDbValueDef($rsnew, $this->ket_nama->CurrentValue, NULL, $this->ket_nama->ReadOnly);\n\n\t\t\t// ket_tgllahir\n\t\t\t$this->ket_tgllahir->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->ket_tgllahir->CurrentValue, 0), NULL, $this->ket_tgllahir->ReadOnly);\n\n\t\t\t// ket_alamat\n\t\t\t$this->ket_alamat->SetDbValueDef($rsnew, $this->ket_alamat->CurrentValue, NULL, $this->ket_alamat->ReadOnly);\n\n\t\t\t// ket_jeniskelamin\n\t\t\t$this->ket_jeniskelamin->SetDbValueDef($rsnew, $this->ket_jeniskelamin->CurrentValue, NULL, $this->ket_jeniskelamin->ReadOnly);\n\n\t\t\t// ket_title\n\t\t\t$this->ket_title->SetDbValueDef($rsnew, $this->ket_title->CurrentValue, NULL, $this->ket_title->ReadOnly);\n\n\t\t\t// dokterpengirim\n\t\t\t$this->dokterpengirim->SetDbValueDef($rsnew, $this->dokterpengirim->CurrentValue, 0, $this->dokterpengirim->ReadOnly);\n\n\t\t\t// statusbayar\n\t\t\t$this->statusbayar->SetDbValueDef($rsnew, $this->statusbayar->CurrentValue, 0, $this->statusbayar->ReadOnly);\n\n\t\t\t// kirimdari\n\t\t\t$this->kirimdari->SetDbValueDef($rsnew, $this->kirimdari->CurrentValue, 0, $this->kirimdari->ReadOnly);\n\n\t\t\t// keluargadekat\n\t\t\t$this->keluargadekat->SetDbValueDef($rsnew, $this->keluargadekat->CurrentValue, \"\", $this->keluargadekat->ReadOnly);\n\n\t\t\t// panggungjawab\n\t\t\t$this->panggungjawab->SetDbValueDef($rsnew, $this->panggungjawab->CurrentValue, \"\", $this->panggungjawab->ReadOnly);\n\n\t\t\t// masukrs\n\t\t\t$this->masukrs->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->masukrs->CurrentValue, 0), NULL, $this->masukrs->ReadOnly);\n\n\t\t\t// noruang\n\t\t\t$this->noruang->SetDbValueDef($rsnew, $this->noruang->CurrentValue, 0, $this->noruang->ReadOnly);\n\n\t\t\t// tempat_tidur_id\n\t\t\t$this->tempat_tidur_id->SetDbValueDef($rsnew, $this->tempat_tidur_id->CurrentValue, 0, $this->tempat_tidur_id->ReadOnly);\n\n\t\t\t// nott\n\t\t\t$this->nott->SetDbValueDef($rsnew, $this->nott->CurrentValue, \"\", $this->nott->ReadOnly);\n\n\t\t\t// NIP\n\t\t\t$this->NIP->SetDbValueDef($rsnew, $this->NIP->CurrentValue, \"\", $this->NIP->ReadOnly);\n\n\t\t\t// dokter_penanggungjawab\n\t\t\t$this->dokter_penanggungjawab->SetDbValueDef($rsnew, $this->dokter_penanggungjawab->CurrentValue, 0, $this->dokter_penanggungjawab->ReadOnly);\n\n\t\t\t// KELASPERAWATAN_ID\n\t\t\t$this->KELASPERAWATAN_ID->SetDbValueDef($rsnew, $this->KELASPERAWATAN_ID->CurrentValue, NULL, $this->KELASPERAWATAN_ID->ReadOnly);\n\n\t\t\t// NO_SKP\n\t\t\t$this->NO_SKP->SetDbValueDef($rsnew, $this->NO_SKP->CurrentValue, NULL, $this->NO_SKP->ReadOnly);\n\n\t\t\t// sep_tglsep\n\t\t\t$this->sep_tglsep->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglsep->CurrentValue, 5), NULL, $this->sep_tglsep->ReadOnly);\n\n\t\t\t// sep_tglrujuk\n\t\t\t$this->sep_tglrujuk->SetDbValueDef($rsnew, ew_UnFormatDateTime($this->sep_tglrujuk->CurrentValue, 5), NULL, $this->sep_tglrujuk->ReadOnly);\n\n\t\t\t// sep_kodekelasrawat\n\t\t\t$this->sep_kodekelasrawat->SetDbValueDef($rsnew, $this->sep_kodekelasrawat->CurrentValue, NULL, $this->sep_kodekelasrawat->ReadOnly);\n\n\t\t\t// sep_norujukan\n\t\t\t$this->sep_norujukan->SetDbValueDef($rsnew, $this->sep_norujukan->CurrentValue, NULL, $this->sep_norujukan->ReadOnly);\n\n\t\t\t// sep_kodeppkasal\n\t\t\t$this->sep_kodeppkasal->SetDbValueDef($rsnew, $this->sep_kodeppkasal->CurrentValue, NULL, $this->sep_kodeppkasal->ReadOnly);\n\n\t\t\t// sep_namappkasal\n\t\t\t$this->sep_namappkasal->SetDbValueDef($rsnew, $this->sep_namappkasal->CurrentValue, NULL, $this->sep_namappkasal->ReadOnly);\n\n\t\t\t// sep_kodeppkpelayanan\n\t\t\t$this->sep_kodeppkpelayanan->SetDbValueDef($rsnew, $this->sep_kodeppkpelayanan->CurrentValue, NULL, $this->sep_kodeppkpelayanan->ReadOnly);\n\n\t\t\t// sep_jenisperawatan\n\t\t\t$this->sep_jenisperawatan->SetDbValueDef($rsnew, $this->sep_jenisperawatan->CurrentValue, NULL, $this->sep_jenisperawatan->ReadOnly);\n\n\t\t\t// sep_catatan\n\t\t\t$this->sep_catatan->SetDbValueDef($rsnew, $this->sep_catatan->CurrentValue, NULL, $this->sep_catatan->ReadOnly);\n\n\t\t\t// sep_kodediagnosaawal\n\t\t\t$this->sep_kodediagnosaawal->SetDbValueDef($rsnew, $this->sep_kodediagnosaawal->CurrentValue, NULL, $this->sep_kodediagnosaawal->ReadOnly);\n\n\t\t\t// sep_namadiagnosaawal\n\t\t\t$this->sep_namadiagnosaawal->SetDbValueDef($rsnew, $this->sep_namadiagnosaawal->CurrentValue, NULL, $this->sep_namadiagnosaawal->ReadOnly);\n\n\t\t\t// sep_lakalantas\n\t\t\t$this->sep_lakalantas->SetDbValueDef($rsnew, $this->sep_lakalantas->CurrentValue, NULL, $this->sep_lakalantas->ReadOnly);\n\n\t\t\t// sep_lokasilaka\n\t\t\t$this->sep_lokasilaka->SetDbValueDef($rsnew, $this->sep_lokasilaka->CurrentValue, NULL, $this->sep_lokasilaka->ReadOnly);\n\n\t\t\t// sep_user\n\t\t\t$this->sep_user->SetDbValueDef($rsnew, $this->sep_user->CurrentValue, NULL, $this->sep_user->ReadOnly);\n\n\t\t\t// sep_flag_cekpeserta\n\t\t\t$this->sep_flag_cekpeserta->SetDbValueDef($rsnew, $this->sep_flag_cekpeserta->CurrentValue, NULL, $this->sep_flag_cekpeserta->ReadOnly);\n\n\t\t\t// sep_flag_generatesep\n\t\t\t$this->sep_flag_generatesep->SetDbValueDef($rsnew, $this->sep_flag_generatesep->CurrentValue, NULL, $this->sep_flag_generatesep->ReadOnly);\n\n\t\t\t// sep_nik\n\t\t\t$this->sep_nik->SetDbValueDef($rsnew, $this->sep_nik->CurrentValue, NULL, $this->sep_nik->ReadOnly);\n\n\t\t\t// sep_namapeserta\n\t\t\t$this->sep_namapeserta->SetDbValueDef($rsnew, $this->sep_namapeserta->CurrentValue, NULL, $this->sep_namapeserta->ReadOnly);\n\n\t\t\t// sep_jeniskelamin\n\t\t\t$this->sep_jeniskelamin->SetDbValueDef($rsnew, $this->sep_jeniskelamin->CurrentValue, NULL, $this->sep_jeniskelamin->ReadOnly);\n\n\t\t\t// sep_pisat\n\t\t\t$this->sep_pisat->SetDbValueDef($rsnew, $this->sep_pisat->CurrentValue, NULL, $this->sep_pisat->ReadOnly);\n\n\t\t\t// sep_tgllahir\n\t\t\t$this->sep_tgllahir->SetDbValueDef($rsnew, $this->sep_tgllahir->CurrentValue, NULL, $this->sep_tgllahir->ReadOnly);\n\n\t\t\t// sep_kodejeniskepesertaan\n\t\t\t$this->sep_kodejeniskepesertaan->SetDbValueDef($rsnew, $this->sep_kodejeniskepesertaan->CurrentValue, NULL, $this->sep_kodejeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_namajeniskepesertaan\n\t\t\t$this->sep_namajeniskepesertaan->SetDbValueDef($rsnew, $this->sep_namajeniskepesertaan->CurrentValue, NULL, $this->sep_namajeniskepesertaan->ReadOnly);\n\n\t\t\t// sep_nokabpjs\n\t\t\t$this->sep_nokabpjs->SetDbValueDef($rsnew, $this->sep_nokabpjs->CurrentValue, NULL, $this->sep_nokabpjs->ReadOnly);\n\n\t\t\t// sep_status_peserta\n\t\t\t$this->sep_status_peserta->SetDbValueDef($rsnew, $this->sep_status_peserta->CurrentValue, NULL, $this->sep_status_peserta->ReadOnly);\n\n\t\t\t// sep_umur_pasien_sekarang\n\t\t\t$this->sep_umur_pasien_sekarang->SetDbValueDef($rsnew, $this->sep_umur_pasien_sekarang->CurrentValue, NULL, $this->sep_umur_pasien_sekarang->ReadOnly);\n\n\t\t\t// Call Row Updating event\n\t\t\t$bUpdateRow = $this->Row_Updating($rsold, $rsnew);\n\t\t\tif ($bUpdateRow) {\n\t\t\t\t$conn->raiseErrorFn = $GLOBALS[\"EW_ERROR_FN\"];\n\t\t\t\tif (count($rsnew) > 0)\n\t\t\t\t\t$EditRow = $this->Update($rsnew, \"\", $rsold);\n\t\t\t\telse\n\t\t\t\t\t$EditRow = TRUE; // No field to update\n\t\t\t\t$conn->raiseErrorFn = '';\n\t\t\t\tif ($EditRow) {\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($this->getSuccessMessage() <> \"\" || $this->getFailureMessage() <> \"\") {\n\n\t\t\t\t\t// Use the message, do nothing\n\t\t\t\t} elseif ($this->CancelMessage <> \"\") {\n\t\t\t\t\t$this->setFailureMessage($this->CancelMessage);\n\t\t\t\t\t$this->CancelMessage = \"\";\n\t\t\t\t} else {\n\t\t\t\t\t$this->setFailureMessage($Language->Phrase(\"UpdateCancelled\"));\n\t\t\t\t}\n\t\t\t\t$EditRow = FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Call Row_Updated event\n\t\tif ($EditRow)\n\t\t\t$this->Row_Updated($rsold, $rsnew);\n\t\t$rs->Close();\n\t\treturn $EditRow;\n\t}", "public function updateAssociatedRecords()\n\t{\n\t\t$fkObject = $this->getContext()->getPropertyValue();\n\t\t$source = $this->getSourceRecord();\n\t\t$fkeys = $this->findForeignKeys($fkObject, $source);\n\t\tforeach($fkeys as $fKey => $srcKey)\n\t\t\t$fkObject->setColumnValue($fKey, $source->getColumnValue($srcKey));\n\t\treturn $fkObject->save();\n\t}", "public function SQL_UPDATE() {\r\n\t}", "public function update()\n {\n update($this->id, $article);\n }", "public function update(){\n $sql = \"update \".self::$tablename.\" set correlativo=\\\"$this->correlativo\\\",nombre_instalador=\\\"$this->nombre_instalador\\\",nombre_proyecto=\\\"$this->nombre_proyecto\\\",localizacion=\\\"$this->localizacion\\\",contrato_orden_trabajo=\\\"$this->contrato_orden_trabajo\\\",sector_trabajo=\\\"$this->sector_trabajo\\\",area_aceptada=\\\"$this->area_aceptada\\\",fecha_proyecto=\\\"$this->fecha_proyecto\\\" where id_usuario=$this->id_usuario\";\n Executor::doit($sql);\n }", "public function updateOne()\r\n {\r\n $parameterList = '';\r\n foreach ($this->modelClassFieldNames as $fieldName) {\r\n $parameterName = ucfirst($fieldName->getName());\r\n $parameterList = $parameterList . \":p{$parameterName}, \";\r\n }\r\n $parameterList = rtrim($parameterList, ', ');\r\n // build prepared statement sql statement\r\n $sqlString = \"CALL {$this->modelShortClassName}Update({$parameterList})\";\r\n\r\n $result = false;\r\n if (!$this->model->isValid()) {\r\n $this->model->getModelState()->modelInvalidated($this);\r\n } else {\r\n if (!$this->provider->isConnected()) {\r\n $this->provider->open();\r\n }\r\n if ($this->provider->isConnected()) {\r\n try {\r\n // Prepare stored procedure call\r\n $preparedStatement = $this->provider->getPdo()->prepare($sqlString);\r\n // so we cannot use bindParam that requires a variable by value\r\n // if you want to use a variable, use then bindParam\r\n foreach ($this->modelClassFieldNames as $fieldName) {\r\n $getMethodName = ucfirst($fieldName->getName());\r\n $reflectionMethod = new \\ReflectionMethod($this->modelClassName, \"get{$getMethodName}\");\r\n $value = $reflectionMethod->invoke($this->model);\r\n switch (gettype($value)) {\r\n case 'boolean' :\r\n $paramType = \\PDO::PARAM_BOOL;\r\n break;\r\n case 'integer' :\r\n $paramType = \\PDO::PARAM_INT;\r\n break;\r\n case 'NULL' :\r\n $paramType = \\PDO::PARAM_STR;\r\n $value = '';\r\n break;\r\n default :\r\n $paramType = \\PDO::PARAM_STR;\r\n break;\r\n }\r\n $preparedStatement->bindValue(\":p{$getMethodName}\",\r\n $value, $paramType);\r\n }\r\n // Returns true on success or false on failure\r\n $result = $preparedStatement->execute();\r\n $this->rowCount = $preparedStatement->rowCount();\r\n if ($result) {\r\n $this->model->getModelState()->crudNotice('UpdateOne', true, $this,\r\n null, $preparedStatement->errorInfo());\r\n $result = true;\r\n } else {\r\n $this->model->getModelState()->crudNotice('UpdateOne', false, $this,\r\n null, $preparedStatement->errorInfo());\r\n }\r\n } catch (\\PDOException $e) {\r\n $this->model->getModelState()->crudNotice('UpdateOne', false, $this, $e, null);\r\n }\r\n } else {\r\n $this->model->getModelState()->disconnected($this->provider);\r\n }\r\n }\r\n return $result;\r\n }", "public function save()\n {\n $db = DatabaseUtil::db_connect($this->database);\n $db->query('update ' . $this->table . 'set ' . $this->column . ' = ' . $this->value . ' where ID=' . $this->ID);\n $db->close();\n }", "public function update() {\r\n\r\n // get database connection\r\n\r\n \r\n \r\n $sql_update = \"update employees SET fname = '$this->firstName', lname = '$this->lastName', email = '$this->email' where id = '$this->id'\";\r\n if ($this->dbc->query($sql_update)) {\r\n\r\n echo \"<p> User Successfully Updated </p>\";\r\n return true;\r\n } else {\r\n\r\n echo \"<p> Could not run query </p>\";\r\n return false;\r\n }\r\n }", "private function _update(){\n\t\tif($this->dao->update($this->user->getID(), $this->ident, $this->datahandler)){\n\t\t\t$this->read();\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "function EditRow() {\r\n\t\tglobal $conn, $Security, $filesystem;\r\n\t\t$sFilter = $filesystem->KeyFilter();\r\n\t\t$filesystem->CurrentFilter = $sFilter;\r\n\t\t$sSql = $filesystem->SQL();\r\n\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t$rs = $conn->Execute($sSql);\r\n\t\t$conn->raiseErrorFn = '';\r\n\t\tif ($rs === FALSE)\r\n\t\t\treturn FALSE;\r\n\t\tif ($rs->EOF) {\r\n\t\t\t$EditRow = FALSE; // Update Failed\r\n\t\t} else {\r\n\r\n\t\t\t// Save old values\r\n\t\t\t$rsold =& $rs->fields;\r\n\t\t\t$rsnew = array();\r\n\r\n\t\t\t// Field gid\r\n\t\t\t$filesystem->gid->SetDbValueDef($filesystem->gid->CurrentValue, NULL);\r\n\t\t\t$rsnew['gid'] =& $filesystem->gid->DbValue;\r\n\r\n\t\t\t// Field snapshot\r\n\t\t\t$filesystem->snapshot->SetDbValueDef($filesystem->snapshot->CurrentValue, NULL);\r\n\t\t\t$rsnew['snapshot'] =& $filesystem->snapshot->DbValue;\r\n\r\n\t\t\t// Field tapebackup\r\n\t\t\t$filesystem->tapebackup->SetDbValueDef($filesystem->tapebackup->CurrentValue, NULL);\r\n\t\t\t$rsnew['tapebackup'] =& $filesystem->tapebackup->DbValue;\r\n\r\n\t\t\t// Field diskbackup\r\n\t\t\t$filesystem->diskbackup->SetDbValueDef($filesystem->diskbackup->CurrentValue, NULL);\r\n\t\t\t$rsnew['diskbackup'] =& $filesystem->diskbackup->DbValue;\r\n\r\n\t\t\t// Field type\r\n\t\t\t$filesystem->type->SetDbValueDef($filesystem->type->CurrentValue, NULL);\r\n\t\t\t$rsnew['type'] =& $filesystem->type->DbValue;\r\n\r\n\t\t\t// Field contact\r\n\t\t\t$filesystem->contact->SetDbValueDef($filesystem->contact->CurrentValue, NULL);\r\n\t\t\t$rsnew['contact'] =& $filesystem->contact->DbValue;\r\n\r\n\t\t\t// Field contact2\r\n\t\t\t$filesystem->contact2->SetDbValueDef($filesystem->contact2->CurrentValue, NULL);\r\n\t\t\t$rsnew['contact2'] =& $filesystem->contact2->DbValue;\r\n\r\n\t\t\t// Field rescomp\r\n\t\t\t$filesystem->rescomp->SetDbValueDef($filesystem->rescomp->CurrentValue, NULL);\r\n\t\t\t$rsnew['rescomp'] =& $filesystem->rescomp->DbValue;\r\n\r\n\t\t\t// Call Row Updating event\r\n\t\t\t$bUpdateRow = $filesystem->Row_Updating($rsold, $rsnew);\r\n\t\t\tif ($bUpdateRow) {\r\n\t\t\t\t$conn->raiseErrorFn = 'ew_ErrorFn';\r\n\t\t\t\t$EditRow = $conn->Execute($filesystem->UpdateSQL($rsnew));\r\n\t\t\t\t$conn->raiseErrorFn = '';\r\n\t\t\t} else {\r\n\t\t\t\tif ($filesystem->CancelMessage <> \"\") {\r\n\t\t\t\t\t$this->setMessage($filesystem->CancelMessage);\r\n\t\t\t\t\t$filesystem->CancelMessage = \"\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\t$this->setMessage(\"Update cancelled\");\r\n\t\t\t\t}\r\n\t\t\t\t$EditRow = FALSE;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Call Row_Updated event\r\n\t\tif ($EditRow)\r\n\t\t\t$filesystem->Row_Updated($rsold, $rsnew);\r\n\t\t$rs->Close();\r\n\t\treturn $EditRow;\r\n\t}", "public function update($data) {}", "public function update($data) {}", "function update($where='')\n {\n $this->_getConnection();\n $this->preSave();\n $req = 'UPDATE `'.$this->_con->pfx.$this->_table.'` SET'.\"\\n\";\n $fields = array();\n $assoc = array();\n foreach ($this->_cols as $col=>$val) {\n $field = new $val['type']();\n if ($col == 'id') {\n continue;\n } elseif ($field->type == 'manytomany') {\n if (is_array($this->$col)) {\n $assoc[$val['model']] = $this->$col;\n }\n continue;\n }\n $fields[] = '`'.$col.'` = \\''.$this->_con->esc($this->$col).'\\'';\n }\n $req .= implode(','.\"\\n\", $fields);\n if (strlen($where) > 0) {\n $req .= ' WHERE '.$where;\n } else {\n $req .= ' WHERE `id` = \\''.$this->_con->esc($this->_data['id']).'\\'';\n }\n if (!$this->_con->execute($req)) {\n throw new Exception($this->_con->error());\n }\n if (false === $this->get($this->_data['id'])) {\n return false;\n }\n foreach ($assoc as $model=>$ids) {\n $this->batchAssoc($model, $ids);\n }\n return true;\n }", "function updateEntry($request, $rowId, $newRowId) {\n\n\t\t$this->deleteEntry($request, $rowId);\n\t\t$this->insertEntry($request, $newRowId);\n\t}", "public function update($row) {\n $db_update_needed = false;\n foreach(array('rank', 'title', 'description', 'width', 'height') as $prop) {\n if (isset($row[$prop]) && $this->$prop != $row[$prop]) {\n $this->$prop = $row[$prop];\n $db_update_needed = true;\n }\n }\n \n $updated = false;\n if ($db_update_needed) {\n $dao = new GraphOnTrackers_ChartDao(CodendiDataAccess::instance());\n $updated = $dao->updateById($this->id, $this->graphic_report->getId(), $this->rank, $this->title, $this->description, $this->width, $this->height);\n }\n return $this->updateSpecificProperties($row) && $updated;\n }" ]
[ "0.71570724", "0.709151", "0.7080616", "0.70155734", "0.6950302", "0.68655205", "0.6832111", "0.6826817", "0.6745197", "0.6717704", "0.6702078", "0.66720283", "0.6643817", "0.6629584", "0.65921366", "0.6543746", "0.6541257", "0.6536732", "0.6533633", "0.6526831", "0.6519888", "0.65014976", "0.64895666", "0.64320445", "0.64295673", "0.6410371", "0.6409717", "0.64080566", "0.6407637", "0.6390647", "0.63742363", "0.63346094", "0.6324567", "0.62970954", "0.62820506", "0.6264129", "0.6254315", "0.6245763", "0.6226178", "0.62221706", "0.621055", "0.6203589", "0.620324", "0.6195905", "0.6180613", "0.61437315", "0.6142686", "0.6123541", "0.61226887", "0.61096084", "0.61007833", "0.60807526", "0.6070241", "0.60661393", "0.6039897", "0.60179216", "0.5998177", "0.5983704", "0.5971886", "0.5964711", "0.59608096", "0.59597313", "0.59506786", "0.5950407", "0.5945755", "0.5925497", "0.59179467", "0.59176594", "0.590242", "0.5897456", "0.5890361", "0.5887341", "0.5871525", "0.58687073", "0.58675605", "0.586522", "0.58618695", "0.58521706", "0.5848771", "0.5845134", "0.58318466", "0.5826513", "0.5824656", "0.58179873", "0.5816924", "0.5816148", "0.5809074", "0.58040154", "0.5799475", "0.5796892", "0.57840824", "0.5776629", "0.57689965", "0.57555157", "0.5749806", "0.57485294", "0.57485294", "0.5745907", "0.57413185", "0.57360905" ]
0.6157146
45
Delete the current element in the database represented by the object
public function delete() { $dbh = App::getDatabase()->connect(); $query = "DELETE FROM ".$this->getTableName(); $fl = true; foreach($this as $column => $val) { if(in_array($column, $this->getPrimaries())) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$column." = '".$val."'"; $fl = false; } } $res = $dbh->exec($query); $dbh = null; return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContext()->addQuery($qry);\n //$this->removeFromParentCollection();\n }", "public function delete()\n {\n $database = cbSQLConnect::adminConnect('object');\n if (isset($database))\n {\n return ($database->SQLDelete(self::$table_name, 'id', $this->id));\n }\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function delete() {\n\t\t$this->getConnection()->delete( $this );\n\t\t$this->clear();\n\t}", "public function delete()\n {\n $this->execute(\n $this->syntax->deleteSyntax(get_object_vars($this))\n );\n }", "function delete() {\n\t\n\t\t$this->getMapper()->delete($this);\n\t\t\n\t}", "function delete () {\n\t\t$stm = DB::$pdo->prepare(\"delete from `generated_object` where `id`=:id\");\n\t\t$stm->bindParam(':id', $this->id);\n\t\t$stm->execute();\n\t}", "function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }", "public function delete()\n {\n $this->db->delete($this->table, $this->data['id'], $this->key);\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete()\n {\n $this->repository->delete($this->id);\n }", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n // need to delete from tag maps too\n // tbd\n }", "public function delete(){\n\t if(!isset($this->attributes['id'])) \n\t\t\tthrow new Exception(\"Cannot delete new objects\");\n\t\t$this->do_callback(\"before_delete\");\n\t\treturn self::do_query(\"DELETE FROM \".self::table_for(get_class($this)).\n\t\t \" WHERE id=\".self::make_value($this->attributes['id']));\t\n\t}", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) { \r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with id of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE lp_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __CLASS__ . '::' . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "public function delete()\n {\n Db::getInstance()->delete($this->getTableName(), ['id' => $this->getId()]);\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function remove()\n {\n database()->run('DELETE FROM ' . $this->table . ' WHERE ' . $this->primaryKey . ' = ?', [ $this->{$this->primaryKey} ]);\n $this->__destruct();\n }", "public function delete() {\n\t\t$args = func_get_args();\n\n\t\t// no argument, so delete current object\n\t\tif (empty($args))\n\t\t\treturn $this->db->where('id', $this->id)->delete($this->table);\n\n\t\t// argument given, so delete that object\n\t\treturn $this->db->where('id', $args[0])->delete($this->table);\n\t}", "public function delete() {\r\n\r\n\t\ttry {\r\n\t\t\tglobal $ks_db;\r\n\t\t\tglobal $ks_log;\r\n\r\n\t\t\tif (! isset ( $this->id )) {\r\n\t\t\t\techo \"Fatal Error: Id is not set for the object! Please do \\$objA->setId(\\$dsh_id); in: \" . __METHOD__;\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t//check if record exists\r\n\t\t\tif(! $this->exists ()) {\r\n\t\t\t\techo \"Fatal Error: No record found with primary key of ($this->id)\";\r\n\t\t\t\texit ();\r\n\t\t\t}\r\n\r\n\t\t\t$ks_db->beginTransaction ();\r\n\r\n\t\t\t$sql = \"DELETE FROM $this->sqlTable \";\r\n\t\t\t$sql .= \" WHERE dsh_id = ?\";\r\n\r\n\t\t\t$ks_db->query ( $sql, $this->id );\r\n\r\n\t\t\t$ks_db->commit ();\r\n\r\n\t\t} catch(Exception $e) {\r\n\t\t\t$ks_db->rollBack ();\r\n\t\t\t$ks_log->info ( 'Fatal Error: ' . __METHOD__ . '. ' . $e->getMessage () );\r\n\t\t\t$ks_log->info ( '<br>SQL Statement: ' . $sql );\r\n\t\t\techo \"Fatal Error: \" . __METHOD__ . '. ' . $e->getMessage ();\r\n\t\t\techo \"SQL Statement: \" . $sql;\r\n\t\t}\r\n\t}", "function delete()\n {\n $this->object->select();\n $this->object->_query_args['is_select'] = FALSE;\n $this->object->_query_args['is_delete'] = TRUE;\n return $this->object;\n }", "public function delete()\n {\n self::deleteById( $this->db, $this->id, $this->prefix );\n\n if( $this->inTransaction )\n {\n //$this->db->commit();\n $this->inTransaction = false;\n }\n }", "function delete()\r\n\t{\r\n\t\tglobal $debug;\r\n\t\t$dbh = getOpenedConnection();\r\n\r\n\t\t// Delete current item\r\n\t\t$sql = \"delete from tbl_Pistol_CompetitionDay\r\n\t\t\twhere Id = $pid;\r\n\t\t\";\r\n\r\n\t\t\r\n\t\tif ($debug)\r\n\t\t\tprint_r(\"SQL: \" . $sql);\r\n\t\t\t\r\n\t\tmysqli_query($dbh,$sql);\r\n\t\tif (mysqli_errno($dbh)!=0) {\r\n\t\t\tprint_r(mysqli_error($dbh));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$this->clear(); // Clear current object\r\n\r\n\t}", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "function doRealDelete()\n {\n $this->assignSingle();\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "public function delete()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n $entity->delete();\n }\n }\n );\n }", "public function delete() {\n global $db;\n $this->_predelete();\n $result = $db->query(\"DELETE FROM \".$this->table.\" WHERE \".$this->id_field.\"=?\", array($this->{$this->id_field}));\n $this->_postdelete($result);\n return $result;\n }", "public function fulldelete() {\n if ($this->id && !$this->elements) {\n $this->elements = self::get_instances(array('setid' => $this->id));\n }\n\n foreach ($this->elements as $elm) {\n $elm->delete();\n }\n\n parent::delete();\n }", "public function delete($database, CouchDBObject $object);", "function destroy(){\n\t\tif(!$this->id)\n\t\t\tthrow new APortalException(\"Can't destroy object does not exist in database\",$this);\n\n\t\t$this->hook('destroy'); // can be used for access control or cache deletion\n\n\t\t// STEP1 - destroy relations\n\t\t$this->api->deleteRel($this,null);\n\t\t$this->api->deleteRel(null,$this);\n\n\t\t// STEP2 - destroy supplimentary table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table($this->table_name)\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\n\t\t// STEP3 - delete obj table entry\n\t\t$this->api->db->dsql()\n\t\t\t->table('obj')\n\t\t\t->where('id',$this->id)\n\t\t\t->do_delete();\n\t}", "public function delete() {\n\t\tif ($this->checkDependencies() == true ) {\n\t\t\t$sql = \"DELETE FROM \".$this->tablename.\" where \".$this->idcol.\" = \".$this->page->ctrl['record'];\n\t\t\t$this->dbc->exec($sql);\n\t\t}\n\t}", "public function delete()\n\t{\n\t\tDatabase::query(\"\n\t\t\tDELETE FROM\n\t\t\t\t\". $this->tableName .\"\n\t\t\tWHERE\n\t\t\t\tid = '\". $this->id .\"'\n\t\t\");\n\t}", "function delete()\n {\n // Create a fresh slate\n $this->object->_init();\n $this->object->_delete_clause = \"DELETE\";\n return $this->object;\n }", "public function deleteById($id) {\r\n \t$obj = $this->find($id)->current();\r\n \tif (!empty($obj)) {\r\n \t\t$obj->delete();\r\n \t}\r\n }", "public function delete() {\n if(!isset($this->id)) {\n $error = 'We need an id to delete an object with this method, if you don\\'t have any, use the static remove instead';\n $line = \"delete(\".$propname.\") => \" . $error;\n $this->writeErrorLog($line);\n throw new \\Exception($error);\n } else {\n foreach ($this->fillable as $key => $value) {\n $data[$key] = $this->$key;\n }\n $qb = $this::remove();\n $qb->where(['id' => $this->id])->make();\n return true;\n }\n }", "public function delete() {\n $conexion = StorianDB::connectDB();\n $borrado = \"DELETE FROM cuento WHERE id=\\\"\".$this->id.\"\\\"\";\n $conexion->exec($borrado);\n }", "public function destroy() {\n\t\t$sql = 'DELETE FROM ' . static::$table . ' WHERE id = ' . $this->get('id') . ';';\n\t\t$query = DBH()->prepare($sql);\n\t\t$query->execute();\n\t}", "public function delete() \n {\n DomainWatcher::addDeletedObject($this);\n }", "public function remove()\n {\n $this->_getBackend()->remove($this->_id);\n }", "public function delete($obj)\r\n {\r\n $id = $obj->getId();\r\n if(!$id){\r\n return false;\r\n }\r\n $this->getTable()->delete(array(\"id\" => $id));\r\n }", "function doRealDelete()\n {\n /* Delete the record */\n DatabaseBean::dbDeleteById();\n }", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n\t\t\t// Delete het huidige record.\n\n\t\t\t$deleteQuery = \"DELETE FROM \".$this->table.\" WHERE \".$kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\t\t\t$this->lastQuery = $deleteQuery;\n\n $deleteTable = $this->mysqlConnection->prepare($this->lastQuery);\n $deleteTable->execute();\n\n\t\t}", "public function delete($object) {\r\n \r\n }", "public function delete()\n {\n $query = $this->db->getQuery(true);\n\n $query\n ->delete($this->db->quoteName(\"#__crowdf_intentions\"))\n ->where($this->db->quoteName(\"id\") .\"=\". (int)$this->id);\n\n $this->db->setQuery($query);\n $this->db->execute();\n\n $this->reset();\n }", "public function delete() {\r\n\r\n\t\t// Does the Genre object have an ID?\r\n\t\tif ( is_null( $this->id ) ) trigger_error ( \"Genre::delete(): Attempt to delete an Genre object that does not have its ID property set.\", E_USER_ERROR );\r\n\r\n\t\t// Delete the Article\r\n\t\t$conn = new PDO( DB_DSN, DB_USERNAME, DB_PASSWORD );\r\n\t\t$st = $conn->prepare ( \"DELETE FROM :table WHERE id = :id LIMIT 1\" );\r\n\t\t$st->bindValue( \":table\", DB_TBL_GENRE, PDO::PARAM_STR );\r\n\t\t$st->bindValue( \":id\", $this->id, PDO::PARAM_INT );\r\n\t\t$st->execute();\r\n\t\t$conn = null;\r\n\t}", "public function delete(){\n global $db;\n $delete = $db->prepare('DELETE FROM posts WHERE id = :id');\n $delete->bindValue(':id', $this->_id, PDO::PARAM_INT);\n $delete->execute();\n }", "public function delete() {\n\t\t$this->deleted = true;\n\t}", "public function delete( &$object );", "public function delete(): void\n {\n $this->instances->demo()->runHook($this->root(), 'delete:before', $this);\n\n Dir::remove($this->root());\n $this->instances->delete($this->id);\n\n $this->instances->demo()->runHook($this->root(), 'delete:after', $this);\n }", "public function delete()\n {\n try {\n parent::delete(null, $this->data['id']);\n } catch (Exception $e) {\n die('ERROR');\n }\n }", "public function eliminar() {\n //$this->delete();\n $campo_fecha_eliminacion = self::DELETED_AT;\n $this->$campo_fecha_eliminacion = date('Y-m-d H:i:s');\n $this->status = 0;\n $this->save();\n }", "public function delete() {\n\t\ttry {\n\t\t\tif($this->_state == self::STATE_UNCHANGED) {\n\t\t\t\t$sql = 'DELETE FROM ' . self::sanitize($this->_table->getProperty('name')) . ' WHERE ' . self::sanitize($this->_key_primary->name) . ' = ' . self::sanitize($this->_data[$this->_key_primary->name]);\n\t\t\t\t\\Bedrock\\Common\\Logger::info('Deleting record with query: ' . $sql); echo $sql;\n\t\t\t\t$this->_connection->exec($sql);\n\t\t\t}\n\t\t\telseif($this->_state == self::STATE_CHANGED) {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Unsaved changes found, cannot delete record.');\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('Record not found in database.');\n\t\t\t}\n\t\t}\n\t\tcatch(\\PDOException $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('A database error was encountered, the record could not be deleted.');\n\t\t}\n\t\tcatch(\\Exception $ex) {\n\t\t\t\\Bedrock\\Common\\Logger::exception($ex);\n\t\t\tthrow new \\Bedrock\\Model\\Record\\Exception('The record could not be deleted.');\n\t\t}\n\t}", "public function delete(DataObject $obj){\n\n //Vérifie si l'objet entré en paramètre est instance de Album\n if($obj instanceof Album){\n\n //Récupère la méthode de connection à la BDD\n $dbc = Application::getInstance()->getDBConnection();\n\n //Prépare la requête SQL\n $query = \"DELETE FROM Album WHERE IdAlbum = :IdAlbum\";\n\n //Prépare la requête en dur avec la BDD et la requête correspondante\n $stmt = $dbc->prepare($query);\n\n //Remplace les paramètres \":IdAlbum\" par la valeur de l'objet\n $stmt->bindValue(':IdAlbum',$obj->getIDAlbum(),PDO::PARAM_STR);\n\n //Exécute finallement la requête\n $stmt->execute($data);\n }\n}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function delete() {}", "public function delete()\n\t{\n\t\t$this->hard_delete();\n\t}", "public function delete()\n\t{\n\t\tif ($this->data['id'])\n\t\t{\n\t\t\treturn $this->db->delete($this->table_name, array('id' => $this->data['id']));\n\t\t}\n\t}", "public function delete() {\n // Fail due to double delete\n assert(!$this->hasBeenDeleted);\n\n // Initialize delete record cache, if nonextant\n if (!isset(self::$deleteRecordPreparedStatementCache)) {\n self::$deleteRecordPreparedStatementCache = array();\n }\n \n // Initiate implicit tx, if nonextant explicit tx \n $is_implicit_tx = false;\n if (self::$numTransactions == 0) {\n $is_implicit_tx = true; \n self::beginTx();\n }\n\n // Fail due to invalid database connection\n assert(isset(self::$databaseHandle));\n\n // Delete this record and all child records \n $table_name = static::getFullyQualifiedTableName();\n \n try {\n // Fetch prepared statement from cache, if present. Otherwise, create it.\n if (isset(self::$deleteRecordPreparedStatementCache[$table_name])) {\n // Fetch delete query from cache\n $delete_record_stmt = self::$deleteRecordPreparedStatementCache[$table_name];\n } else {\n $fully_qualified_table_name = static::getFullyQualifiedTableName();\n $delete_query = \"DELETE FROM {$fully_qualified_table_name} \"\n . $this->genPrimaryKeyWhereClause();\n\n $delete_record_stmt = self::$databaseHandle->prepare($delete_query);\n self::$deleteRecordPreparedStatementCache[$table_name] = $delete_record_stmt;\n }\n \n // Delete children, schedule assets for deletion\n $this->deleteChildren();\n self::$assetDeletors = array_merge(self::$assetDeletors, $this->getAssets());\n\n // Bind record's 'id' to delete-query\n $this->bindId($delete_record_stmt);\n\n // Remove record\n $delete_record_stmt->execute();\n } catch (PDOException $e) {\n self::$databaseHandle->rollback();\n die(\"\\nERROR: \" . $e->getMessage() . \"\\n\");\n }\n\n // Close implicit transaction\n if ($is_implicit_tx) {\n self::endTx();\n }\n\n // Indicate object's deletion\n $this->hasBeenDeleted = true;\n }", "function erase() {\n //delete * from database\n }", "public function delete()\n {\n // TODO: Implement delete() method.\n }", "public final function delete() {\n }", "public function delete() {\n\t\tif (!empty($this->originalData)) {\n\t\t\t$query = $this->connection->query(\"DELETE FROM {$this->table} WHERE \".self::$primaryKey[$this->table].\"='{$this->originalData[self::$primaryKey[$this->table]]}'\");\n\t\t\t$query = $this->connection->query(\"ALTER TABLE $this->table AUTO_INCREMENT = 1\");\n\t\t\t$this->originalData = array();\n\t\t}\t\n\t\telse \n\t\t\tthrow new Exception('You are trying to delete an inexistent row');\n\t}", "public function deleteThisItem(){\n $this->deleteFiles(self::DATA_DIRECTORY.$this->_page.\"/items/\".$this->_id);\n // Supprimer l'item de $this->_collectionAdministrator->_data\n $this->_collectionAdministrator->removeItem($this->_id);\n }", "public function delete(){\r\n\t\t$this->db->delete();\r\n\t}", "public function delete() { // Page::destroy($this->pages()->select('id')->get());\n $this->pages()->detach();\n parent::delete();\n }", "public function delete() {\n\n if (!$this->isUsed()) {\n // Database deletion\n $result = Db::getInstance()->delete($this->def['table'], '`' . $this->def['primary'] . '` = ' . (int) $this->id);\n\n if (!$result) {\n return false;\n }\n\n // Database deletion for multilingual fields related to the object\n\n if (!empty($this->def['multilang'])) {\n Db::getInstance()->delete(bqSQL($this->def['table']) . '_lang', '`' . $this->def['primary'] . '` = ' . (int) $this->id);\n }\n\n return $result;\n } else {\n return false;\n }\n\n }", "public function delete() {\r\n return $this->orm->delete();\r\n }", "public function deleteEntity($obj)\n\t{\n\t\t$this->db->deleteEntity($obj);\n\t}", "public function delete($object)\n {\n }", "public function deleting()\n {\n # code...\n }", "public function delete()\n {\n $conn = $this->getConnection();\n\n if (!isset($this->attributes->{$this->primaryKey})) {\n $trace = debug_backtrace()[0];\n throw new ModelException(\n 'No object has been loaded',\n 8000,\n $trace['file'],\n $trace['line']\n );\n }\n $key = $this->attributes->{$this->primaryKey};\n\n $bind = $this->getNamedParam();\n\n $statement = $this->getStatement();\n $statement->setWhere($this->primaryKey, '=', $bind);\n $statement->setBindings($bind, $key);\n\n $this->query = $statement->getDelete();\n $delete = $conn->prepare($this->query);\n\n return $this->execute($delete, $statement);\n }", "public function delete()\n {\n $class = strtolower(get_called_class());\n $table = self::$_table_name != null ? self::$_table_name : $class . 's';\n\n $pdo = PDOS::getInstance();\n\n $whereClause = '';\n foreach (static::$_primary_keys as $pk)\n $whereClause .= $pk . ' = :' . $pk . ' AND ';\n $whereClause = substr($whereClause, 0, -4);\n $sql = 'DELETE FROM ' . $table . ' WHERE ' . $whereClause;\n $query = $pdo->prepare($sql);\n $attributes = $this->getAttributes(new \\ReflectionClass($this));\n foreach ($attributes as $k => $v)\n {\n if (in_array($k, static::$_primary_keys))\n $query->bindValue(':' . $k, $v);\n }\n $query->execute();\n }", "public function delete()\n {\n return static::queryBuilder()->delete()->where(array('id' => $this->{$this->_idField}))->execute();\n }", "public function delete()\n {\n $table = self::getTable();\n $connection = new DataBaseConnection();\n $parameters = ['id' => $this->id];\n return $connection->delete($table, $parameters);\n }", "public function delete() {\n\n\t\t// Database\n\t\t$db = $this->db;\n\n\t\t// SQL code for deletion\n\t\t$sql = $this->sql_for_delete();\n\n\t\t// Deletion execution\n\t\treturn $db::execute($sql);\n\t}", "public function delete($object)\n {\n $this->setObjectState($object, self::OBJ_REMOVED);\n }", "public function delete() {\r\n }", "public function delete()\n {\n \n }", "public function remove ($obj) {}", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function delete();", "public function deleteRecord()\n { \n $sql = \"DELETE FROM Cubans WHERE Id = :Id\";\n $statement = $this->connect->prepare($sql);\n $statement->bindValue(':Id', $this->id);\n $statement->execute();\n }", "public function delete()\n\t{\n\t\t//delete our cache.\n\t\tif ($this->useObjectCaching)\n\t\t\t$this->deleteCache();\n\t\t\n\t\treturn $this->deleteDb();\n\t}", "public function delete()\r\n {\r\n $db = Database::getDatabase();\r\n $db->consulta(\"DELETE FROM puesto WHERE idPue = {$this->idPue};\");\r\n }" ]
[ "0.79560393", "0.76804554", "0.7525232", "0.7517838", "0.74777716", "0.7443419", "0.74339527", "0.7420212", "0.7347565", "0.7324086", "0.7263608", "0.7237937", "0.7211117", "0.7157341", "0.7128301", "0.7128219", "0.7113482", "0.70821136", "0.707772", "0.70727026", "0.70051014", "0.7000947", "0.6988875", "0.69688946", "0.6962535", "0.69462925", "0.6908859", "0.6890368", "0.6874031", "0.68626136", "0.68540716", "0.6853447", "0.685207", "0.68380284", "0.6783897", "0.67768425", "0.6773814", "0.6771612", "0.67458886", "0.6741022", "0.67137337", "0.6708771", "0.6683519", "0.6676108", "0.6672706", "0.6661139", "0.66603094", "0.6625169", "0.662446", "0.6614586", "0.66092664", "0.66045475", "0.658905", "0.6578607", "0.65782255", "0.65747654", "0.65747654", "0.65747064", "0.6572092", "0.65715027", "0.6564367", "0.65628934", "0.65543866", "0.65486526", "0.6544571", "0.6542385", "0.6533335", "0.65314037", "0.6518773", "0.6518267", "0.6513337", "0.64844126", "0.6472051", "0.64638627", "0.6463146", "0.64579093", "0.64511853", "0.64454293", "0.64384377", "0.6435373", "0.64322114", "0.64316404", "0.6430579", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.6428834", "0.64266557", "0.6425994", "0.6420409" ]
0.0
-1
Delete the element represented by the id in the database
public function deleteById(array $id) { $dbh = App::getDatabase()->connect(); $query = "DELETE FROM ".$this->getTableName(); $fl = true; foreach($this::getPrimaries() as $pk) { $query .= "\n".(($fl) ? "WHERE" : "AND")." ".$pk." = '".$id[$pk]."'"; $fl = false; } $res = $dbh->exec($query); $dbh = null; return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($id) \r\n {\r\n $this->load(array('id=?',$id));\r\n $this->erase();\r\n }", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);", "public function deleteById($id);", "public function delete( $id );", "public function deleteById($id) {\r\n \t$obj = $this->find($id)->current();\r\n \tif (!empty($obj)) {\r\n \t\t$obj->delete();\r\n \t}\r\n }", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "public function delete($id);", "function delete($id);", "abstract public function deleteById($id);", "function delete($id){\n\t\t$this->db->where('id', $id);\n\t\t$this->db->delete($this->table);\n }", "abstract public function delete($id);", "abstract public function delete($id);", "abstract public function delete($id);", "public function del($id)\n {\n }", "public function delete(){\n if (isset($this->content[$this->idField])) {\n\n $sql = \"DELETE FROM {$this->table} WHERE {$this->idField} = {$this->content[$this->idField]};\";\n $delet = new \\AR\\BD\\Delete();\n $delet->ExeDelete($this->table, \"WHERE {$this->idField} = {$this->content[$this->idField]}\", \"\");\n \n }\n }", "public function delete($id){\n\t\t$sql = \"DELETE FROM {$this->table} WHERE {$this->primaryKey} = $id\";\n\t\t$this->db->query($sql);\n\t}", "public function delete(int $id);", "function delete()\n\t{\n\t\tSQL::query(\"delete from {$this->_table} where id = {$this->_data['id']}\");\n\t}", "public function delete($id)\n\t {\n\t //\n\t }", "public abstract function delete($id);", "public function delete($id) {\r\n\r\n }", "function delete() {\n $this->that->delete($this->id, $this->name);\n $this->put_id();\n }", "function delete() {\n \tglobal $mysql;\n \tif(empty($this->id)) return;\n \t$tablename = $this->class_name();\n \t$id = $this->id;\n \t$query = \"DELETE FROM $tablename WHERE id=$id\";\n \t$mysql->update($query);\n }", "public function delete(int $id): void{\r\n \r\n $maRequete = $this->pdo->prepare(\"DELETE FROM {$this->table} WHERE id =:id\");\r\n\r\n $maRequete->execute(['id' => $id]);\r\n\r\n\r\n}", "public function eliminar($id)\n {\n //\n }", "public function eliminar($id)\n {\n //\n }", "public function delete($id)\n {\n // ..\n }", "public function delete($id)\n {\n //\n }", "public function delete($id)\n {\n //\n }", "public function delete() {\n global $DB;\n $DB->delete_records($this->get_table_name(), array('id' => $this->id));\n }", "public function delete($id)\n\t{\n\t}", "public function delete($id)\n\t{\n\t}", "public function delete($id){\r\n }", "public function eliminarPorId($id)\n {\n }", "public function delete($id)\r\n {\r\n }", "public function del($id)\n {\n $this->db->remove(array('id'=>$id));\n }", "public static function delete($id){\n\t\t$db=Db::getConnect();\n\t\t$delete=$db->prepare('DELETE FROM empleado WHERE id=:id');\n\t\t$delete->bindValue('id',$id);\n\t\t$delete->execute();\t\t\n\t}", "public function delete(int $id): void;", "public function delete(int $id): void;", "public function delete(int $id): void;", "function delete() {\n $this->db->delete(self::table_name, array('id' => $this->id));\n }", "public function remove($id);", "public function remove($id);", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function eliminar($id)\n {\n }", "public function delete($id = null){\n\t\t\n\t}", "public function delete(int $id): void\r\n{\r\n \r\n\r\n $maRequete = $this->pdo->prepare(\"DELETE FROM {$this->table} WHERE id =:id\");\r\n\r\n $maRequete->execute(['id' => $id]);\r\n}", "public function delete( $id ){\n \n\n }", "protected function eliminar($id)\n {\n }", "public function delete($id) {\n\t\treturn $this->model->findFirst(\"id = '$id'\")->delete();\n\t}", "function delete($id) {\n $this->db->where('id', $id);\n $this->db->delete('rit');\n }", "public function delete($id)\n {\n mysqli_query($this->koneksi,\"delete from formulir where id='$id'\");\n }", "public function delete($id) {\r\n \r\n }", "public function delete($id)\n {\n }", "function delete($id) {\r\n $this->db->where('id', $id);\r\n $this->db->delete($this->tbl);\r\n }", "public function deleteRecord ($id);", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }", "public function delete($id)\n {\n }" ]
[ "0.7967661", "0.7878415", "0.7878415", "0.7878415", "0.7878415", "0.7878415", "0.7878415", "0.78768003", "0.78717744", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7813607", "0.7781448", "0.7771033", "0.7687957", "0.7683872", "0.7683872", "0.7683872", "0.76415104", "0.76350605", "0.7623441", "0.7610951", "0.75953907", "0.75656414", "0.75651157", "0.75491464", "0.7531934", "0.753053", "0.75237525", "0.7502198", "0.7502198", "0.7498335", "0.74846333", "0.74846333", "0.74778545", "0.74738675", "0.74738675", "0.74667233", "0.74645436", "0.74571526", "0.7455426", "0.74334097", "0.7427696", "0.7427696", "0.7427696", "0.74261487", "0.7424638", "0.7424638", "0.74212813", "0.74212813", "0.74212813", "0.74188864", "0.74048454", "0.73988986", "0.73974776", "0.7390847", "0.7388757", "0.738117", "0.73791", "0.73738694", "0.73707366", "0.7369846", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348", "0.7369348" ]
0.0
-1
Get the specified Item from the database and resolve all its dependencies and compositions. Will return a "tree" of objects based on the database structure The dependencies are injected in the foreign key attributes The Compositions are injected as array of object
public function getDataTree(array $id, $way = 0) { $this->getById($id); if(($way === 0||$way === 1)&&(!is_null($this::getDependencies()))) { foreach($this as $attrib => $value) { foreach($this::getDependencies() as $key => $class) { if($attrib === $key && !is_null($this->$attrib)) { $id = array(); foreach($class::getPrimaries() as $pk) { $id[$pk] = $this->$attrib; } $this->$attrib = new $class($id); } } } } if(($way === 0||$way === -1)&&(!is_null($this::getCompositions()))) { foreach($this::getCompositions() as $class => $id) { $attrName = (substr($class, -1) === 's') ? lcfirst($class) : lcfirst($class."s"); $where = array( $id => array() ); foreach($this::getPrimaries() as $pk) { $where[$id]["operator"] = $this::EQ; $where[$id]["value"] = $this->$pk; } $c = new $class(); $this->$attrName = $c->getByCols(false, $where); } } return($this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function populateRelated(&$item)\n {\n /*\n if($item->animalsid) {\n $item->animals = $this->getRelatedAdminModel('Animal')->getItem($item->animalsid);\n }\n\n if($item->clinicsid) {\n $item->clinics = $this->getRelatedAdminModel('Clinic')->getItem($item->clinicsid);\n }\n\n if($item->id) {\n $item->containerslist = $this->getRelatedAdminModel('containerslist')->getContainersInRequest($item->id);\n $item->examslist = $this->getRelatedAdminModel('examslist')->getExamsInRequestByCategory($item->id);\n $item->totalexams = count($this->getRelatedAdminModel('examslist')->getExamsInRequest($item->id));\n }\n */\n }", "public function childItems(){\n return $this->hasMany('App\\Item', 'parent_id')->with('childs');\n }", "function BuildTree($items)\r\n\t{\r\n\t\tif (!empty($items))\r\n\t\t{\r\n\t\t\t# Columns\r\n\t\t\t# * Gather all columns required for display and relation.\r\n\t\t\t# Children\r\n\t\t\t# * Map child names to child index.\r\n\r\n\t\t\t$cols[$this->ds->table] = array($this->ds->id => 1);\r\n\t\t\tif (!empty($this->ds->DisplayColumns))\r\n\t\t\tforeach (array_keys($this->ds->DisplayColumns) as $col)\r\n\t\t\t\t$cols[$this->ds->table][$col] = $this->ds->id == $col;\r\n\r\n\t\t\tif (!empty($this->ds->children))\r\n\t\t\tforeach ($this->ds->children as $ix => $child)\r\n\t\t\t{\r\n\t\t\t\t$children[$child->ds->table] = $ix;\r\n\t\t\t\t$cols[$child->ds->table][$child->parent_key] = 1;\r\n\t\t\t\t$cols[$child->ds->table][$child->child_key] = 0;\r\n\t\t\t\tif (!empty($child->ds->DisplayColumns))\r\n\t\t\t\tforeach (array_keys($child->ds->DisplayColumns) as $col)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cols[$child->ds->table][$col] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t# Flats\r\n\t\t\t# * Convert each item into separated TreeNodes\r\n\t\t\t# * Associate all indexes by table, then id\r\n\r\n\t\t\t$flats = array();\r\n\r\n\t\t\t# Iterate all the resulting database rows.\r\n\t\t\tforeach ($items as $ix => $item)\r\n\t\t\t{\r\n\r\n\t\t\t\t# Iterate the columns that were created in step 1.\r\n\t\t\t\tforeach ($cols as $table => $columns)\r\n\t\t\t\t{\r\n\t\t\t\t\t# This will store all the associated data in the treenode\r\n\t\t\t\t\t# for the editor to reference while processing the tree.\r\n\t\t\t\t\t$data = array();\r\n\t\t\t\t\t$skip = false;\r\n\r\n\t\t\t\t\t# Now we're iterating the display columns.\r\n\t\t\t\t\tforeach ($columns as $column => $id)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t# This column is not associated with a database row.\r\n\t\t\t\t\t\tif (is_numeric($column)) continue;\r\n\r\n\t\t\t\t\t\t# Table names are included to avoid ambiguity.\r\n\t\t\t\t\t\t$colname = $table.'_'.$column;\r\n\r\n\t\t\t\t\t\t# ID would be specified if this is specified as a keyed\r\n\t\t\t\t\t\t# value.\r\n\t\t\t\t\t\tif ($id)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (empty($item[$colname]))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$skip = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$idcol = $colname;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t$data[$this->ds->StripTable($colname)] = $item[$this->ds->StripTable($colname)];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!$skip)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$tn = new TreeNode($data);\r\n\t\t\t\t\t\t$tn->id = $item[$idcol];\r\n\t\t\t\t\t\t$flats[$table][$item[$idcol]] = $tn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t# Tree\r\n\t\t\t# * Construct tree out of all items and children.\r\n\r\n\t\t\t$tree = new TreeNode('Root');\r\n\r\n\t\t\tforeach ($flats as $table => $items)\r\n\t\t\t{\r\n\t\t\t\tforeach ($items as $ix => $node)\r\n\t\t\t\t{\r\n\t\t\t\t\t$child_id = isset($children[$table]) ? $children[$table] : null;\r\n\r\n\t\t\t\t\tif (isset($children[$table]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$ckeycol = $this->ds->children[$child_id]->child_key;\r\n\t\t\t\t\t\t$pid = $node->data[\"{$table}_{$ckeycol}\"];\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse $pid = 0;\r\n\r\n\t\t\t\t\t$node->data['_child'] = $child_id;\r\n\r\n\t\t\t\t\tif ($pid != 0)\r\n\t\t\t\t\t\t$flats[$this->ds->table][$pid]->children[] = $node;\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\t$tree->children[] = $node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t# Put child table children above related children, helps to\r\n\t\t\t# understand the display.\r\n\t\t\tif (count($this->ds->children) > 0) $this->FixTree($tree);\r\n\t\t\treturn $tree;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private function itemWithChildren($item) {\n $result = array();\n $children = $this->childrenOf($item);\n foreach ($children as $child) {\n $newItem = array();\n $newItem['title'] = $child->title;\n $newItem['children'] = $this->itemWithChildren($child);\n $newItem['parent_id'] = $child->parent_id;\n $newItem['user_id'] = $child->user_id;\n $newItem['points'] = $child->points;\n $newItem['is_done'] = $child->is_done;\n $newItem['id'] = $child->id;\n\n $newItem['status'] = empty($newItem['children']) ? $child->is_done : $this->getStatusFromChildren($newItem['children']);\n $newItem['total_points'] = empty($newItem['children']) ? $child->points : $this->sumOfChildrenPoints($newItem['children']);\n array_push($result, $newItem);\n }\n return $result;\n }", "public function GetItem()\r\n\t{\r\n\t\treturn $this->_phreezer->GetManyToOne($this, \"fk_reference_item1\");\r\n\t}", "public function childs(){\n return $this->hasMany('App\\Item', 'parent_id');\n }", "public function items(){\n\n\t\t// hasMany(RelatedModel, foreignKeyOnRelatedModel = service_id, localKey = id)\n\t\treturn $this->hasMany(Item::class);\n\t}", "abstract public function getItemChildren($itemName);", "public function getItem()\n {\n return $this->hasOne(Items::className(), ['id' => 'item_id']);\n }", "public function tree() {\n return $this->children()->with(['user', 'children.user', 'children.children.user', 'children.children.children.user', 'children.children.children.children.user'])->get();\n }", "public function items() {\n\n return $this->hasOne(Item::class, 'id','item_id');\n }", "function getItems()\r\n {\r\n if(count($this->items)>0)\r\n return $this->items;\r\n \r\n $query = \"SELECT * FROM \". $this->table_item .\" WHERE status = 1 ORDER BY `lft` ASC \";\r\n $query_command = Yii::app()->db->createCommand($query);\r\n $items = $query_command->queryAll();\r\n $arr_new = array();\r\n foreach ($items as $key => $item) { \r\n if($item['alias'] == \"\") $item['alias'] = $item['title'];\r\n $item['path'] = $item['alias'];\r\n if($item['type'] == \"app\"){\r\n $item['url'] = $item['alias'];\r\n if($item['level'] >1 AND isset($arr_new[$item['parentID']])){\r\n $item['url'] = $arr_new[$item['parentID']]['path'] . \"/\". $item['url'];\r\n $item['path'] = $item['url'];\r\n }\r\n }else if($item['type'] == \"url\"){\r\n $item['url'] = $item['link'];\r\n }\r\n $item['params'] = json_decode($item['params']);\r\n $arr_new[$item['id']] = $item;\r\n }\r\n \r\n foreach ($arr_new as $key => $item) { \r\n if($item['type'] == \"alias\"){\r\n $alias_option = $item['params']->alias_option;\r\n if(isset($arr_new[$alias_option])){\r\n $item['url'] = $arr_new[$alias_option]['url'];\r\n }\r\n }\r\n if($this->active == 0 AND $item['default'] == 1){\r\n $this->active = $item['id'];\r\n $item['url'] = '';\r\n }\r\n $arr_new[$key] = $item;\r\n }\r\n \r\n $this->items = $arr_new;\r\n return $this->items;\r\n }", "public function resolveReferences($items);", "public function factory_item( $item, $self = False )\n {\n // Load the item from database\n if ( is_numeric($item) || $item instanceof self )\n {\n if ($item instanceof self)\n $id = $item->primary_key;\n else\n $id = $item;\n\n $sql = \"SELECT * FROM $this->_table_name\n WHERE\n $this->primary_column = $id\n \";\n\n $result = $this->_db->query($sql);\n return $this->factory_set($result, $self)[0];\n }\n\n // Convert the database item (assoc array) into a Mptt model\n \n if ($self)\n $instance = $this;\n else\n $instance = clone $this;\n\n $instance->_data = array();\n $instance->_objects = array();\n\n $columns = array('primary_column','left_column', 'right_column', 'level_column', 'scope_column', 'parent_column');\n foreach ($columns as $col)\n {\n if (array_key_exists($this->$col, $item))\n $instance->_data[$this->$col] = $item[$this->$col];\n else\n $instance->_data[$this->$col] = null;\n }\n\n return $instance;\n }", "public function item() {\n return $this->belongsToMany('App\\item');\n }", "private function fetchIt($item) {\n $book_id = $item->book_id;\n $book_title = $item->book_title;\n $book_author = $item->book_author === null ? \"\" : $item->book_author;\n $book_editor = $item->book_editor === null ? \"\" : $item->book_editor;\n $book_image = $item->book_image === null ? \"\" : $item->book_image;\n $book_state = $item->book_state;\n $cycle = $item->cycle;\n $classe = $item->classe;\n $book_unit_prise = $item->book_unit_prise;\n $book_stock_quantity = $item->book_stock_quantity;\n $b = new Book();\n return $b->setData($book_id, $book_title, $book_author, $book_editor, $book_image,\n $book_state, $cycle, $classe, $book_unit_prise, $book_stock_quantity);\n }", "public function resolve(): array\n {\n $relation = [$this->relationName => $this->decorateBuilder];\n\n return RelationFetcher\n ::countedParentModels($this->keys, $relation)\n ->all();\n }", "private function childrenOf($item) {\n $result = array();\n foreach($this->items as $i) {\n if ($i->parent_id == $item->id) {\n $result[] = $i;\n }\n }\n return $result;\n }", "public function structure() {\n $list = $this->newQuery()->where('parent_id', 0)->orderBy('order_id', 'asc')->get();\n $list->transform(function (PageCategory $category) {\n $children = $category->newQuery()->where('parent_id', $category->getAttribute('id'))->orderBy('order_id', 'asc')->get();\n $children->transform(function (PageCategory $category) {\n $children = $category->newQuery()->where('parent_id', $category->getAttribute('id'))->orderBy('order_id', 'asc')->get();\n $category->setAttribute('children', $children);\n\n return $category;\n });\n $category->setAttribute('children', $children);\n\n return $category;\n });\n\n return $list->toArray();\n }", "public function item()\n {\n return $this->belongsTo('App\\Models\\osclass\\Item', 'pk_i_id');\n }", "public function items()\n\t{\n\t\treturn $this->hasMany('Item');\n\t}", "public function getItem()\n {\n return $this->hasOne(CatalogProduct::className(), ['id' => 'item_id']);\n }", "public function items(){\n \treturn $this->hasMany('mat3am\\Item');\n }", "public function item()\n\t{\n\t\treturn $this->belongsTo('Item');\n\t}", "public function item()\n\t{\n\t\treturn $this->belongsTo('Item');\n\t}", "public function findChildren()\n {\n return self::where('code_parrent',$this->id)->get();\n }", "public function getItemTree(): Collection\n {\n $tree = function ($items) use (&$tree) {\n $menuItems = [];\n\n /*\n * About menu 'active' class resolver\n * https://www.hieule.info/products/laravel-active-version-3-released\n */\n foreach ($items as $item) {\n //@TODO: submenu item resolvers for active class\n\n $menuItems[] = (object)[\n 'id' => $item->id,\n 'name' => $item->name,\n 'icon' => $item->icon,\n 'type' => $item->type,\n 'target' => $item->target,\n 'url' => $item->url,\n 'active' => $item->active,\n 'module' => $item->module,\n 'children' => $item->children->count() ? $tree($item->children) : [],\n ];\n }\n\n return $menuItems;\n };\n\n $itemTree = [];\n\n if ($this->items->count()) {\n $itemTree = $tree($this->items->toTree());\n }\n\n return collect($itemTree);\n }", "public function getDependentEntities();", "public function item()\n {\n return $this->belongsTo('App\\Item');\n }", "public function retrieve($item);", "public function items()\n\t{\n\t\treturn $this->hasMany(Item::class);\n\t}", "protected function resolveChildren()\n {\n foreach ($this->unresolvedChildren as $name => $info) {\n $this->children[$name] = $this->create($name, $info['type'], $info['init_options'], $info['exec_options']);\n }\n\n $this->unresolvedChildren = array();\n }", "public function item()\n {\n return $this->belongsTo(Item::class);\n }", "public function item()\n {\n return $this->belongsTo(Item::class);\n }", "public function item()\n {\n return $this->belongsTo(Item::class);\n }", "public function items()\n {\n return $this->hasMany(Item::class);\n }", "public function items()\n {\n return $this->hasMany(Item::class);\n }", "public function items()\n {\n return $this->hasMany(Item::class);\n }", "public function items()\n {\n return $this->hasMany(Item::class);\n }", "public function items()\n {\n return $this->hasMany(Item::class);\n }", "public function getChildrenQuery();", "public function children() {\n\n if(isset($this->cache['children'])) return $this->cache['children'];\n\n $this->cache['children'] = new Children($this);\n\n $inventory = $this->inventory();\n\n // with page models\n if(!empty(static::$models)) {\n foreach($inventory['children'] as $dirname) {\n $child = new Page($this, $dirname);\n // let's create a model if one is defined\n if(isset(static::$models[$child->intendedTemplate()])) {\n $model = static::$models[$child->intendedTemplate()];\n $child = new $model($this, $dirname);\n }\n $this->cache['children']->data[$child->id()] = $child;\n }\n // without page models\n } else {\n foreach($inventory['children'] as $dirname) {\n $child = new Page($this, $dirname);\n $this->cache['children']->data[$child->id()] = $child;\n }\n }\n\n return $this->cache['children'];\n\n }", "public function getItems()\n {\n return $this->hasMany(Item::className(), ['item_id' => 'item_id'])->viaTable('exam_item', ['exam_id' => 'exam_id']);\n }", "public function items()\n {\n return $this->hasMany(\"App\\Model\\Item\");\n }", "public function getItems() {\n\t\t$public = true;\t\t\n\n\t\t$userAccessLevels = '(1)';\n\t\t$displayAccess = JoaktreeHelper::getDisplayAccess($public);\n\t\t\t\t\t\t\n\t\t// retrieve persons\n\t\t$db\t\t\t\t= $this->getDbo();\n\t\t$query\t\t\t= $db->getQuery(true);\n\t\t\n\t\t// select the basics\n\t\t$query->select(' jpn.app_id ');\n\t\t$query->select(' jpn.id ');\n\t\t$query->select(JoaktreeHelper::getSelectFirstName().' AS firstName ');\n\t\t$query->select(JoaktreeHelper::getConcatenatedFamilyName().' AS familyName ');\n\t\t$query->from( ' #__joaktree_persons jpn ');\n\t\t\n\t\t// privacy filter\n\t\t$query->select(' jan.default_tree_id AS treeId ');\n\t\t$query->innerJoin(JoaktreeHelper::getJoinAdminPersons(false));\n\t\t$query->innerJoin(' #__joaktree_trees jte '\n\t\t\t\t\t\t .' ON ( jte.app_id = jan.app_id '\n\t\t\t\t\t\t .' AND jte.id = jan.default_tree_id '\n\t\t\t\t\t\t .' AND jte.published = true '\n\t\t\t\t\t\t .' AND jte.access IN '.$userAccessLevels.' '\n\t\t\t\t\t\t // only trees with Gendex = yes (=2)\n\t\t\t\t\t\t .' AND jte.indGendex = 2 '\n\t\t\t\t\t\t .' ) '\n\t\t\t\t\t\t );\n\t\t\n\t\t// birth info\n\t\t$query->select(' birth.eventDate AS birthDate ');\n\t\t$query->select(' birth.location AS birthPlace ');\n\t\t$query->leftJoin(' #__joaktree_person_events birth '\n\t\t\t\t\t\t.' ON ( birth.app_id = jpn.app_id '\n\t\t\t\t\t\t.' AND birth.person_id = jpn.id '\n\t\t\t\t\t\t.' AND birth.code = '.$this->_db->Quote('BIRT').' '\n\t\t\t\t\t\t// no alternative text is shown \n\t\t\t\t\t\t.' AND ( (jan.living = false AND '.$displayAccess['BIRTperson']->notLiving.' = 2 ) '\n\t\t\t\t\t\t.' OR (jan.living = true AND '.$displayAccess['BIRTperson']->living.' = 2 ) '\n\t\t\t\t\t\t.' ) '\n\t\t\t\t\t\t.' ) '\n\t\t\t\t\t\t);\n\t\t\n\t\t// death info\n\t\t$query->select(' death.eventDate AS deathDate ');\n\t\t$query->select(' death.location AS deathPlace ');\n\t\t$query->leftJoin(' #__joaktree_person_events death '\n\t\t\t\t\t\t.' ON ( death.app_id = jpn.app_id '\n\t\t\t\t\t\t.' AND death.person_id = jpn.id '\n\t\t\t\t\t\t.' AND death.code = '.$this->_db->Quote('DEAT').' '\n\t\t\t\t\t\t// no alternative text is shown \n\t\t\t\t\t\t.' AND ( (jan.living = false AND '.$displayAccess['DEATperson']->notLiving.' = 2 ) '\n\t\t\t\t\t\t.' OR (jan.living = true AND '.$displayAccess['DEATperson']->living.' = 2 ) '\n\t\t\t\t\t\t.' ) '\n\t\t\t\t\t\t.' ) '\n\t\t\t\t\t\t);\n\t\t\n\t\t\t\t\t\t \n\t\t//$query = 'SELECT jpn.app_id '\n\t\t//\t\t.', jpn.id '\n\t\t//\t\t.', jan.default_tree_id AS treeId '\n\t\t//\t\t.', jpn.firstName '\n\t\t//\t\t.', CONCAT_WS('.$this->_db->quote(' ').' '\n\t\t//\t\t.' , jpn.namePreposition '\n\t\t//\t\t.' , jpn.familyName '\n\t\t//\t\t.' ) AS familyName '\n\t\t//\t\t// no alternative text is shown \n\t\t//\t\t.', birth.eventDate AS birthDate '\n\t\t//\t\t.', birth.location AS birthPlace '\n\t\t//\t\t.', death.eventDate AS deathDate '\n\t\t//\t\t.', death.location AS deathPlace '\t\t\t\t\n\t\t//\t\t.'FROM #__joaktree_persons jpn '\n\t\t//\t\t.'JOIN #__joaktree_admin_persons jan '\n\t\t//\t\t.'ON ( jan.app_id = jpn.app_id '\n\t\t//\t\t.' AND jan.id = jpn.id '\n\t\t//\t\t.' AND jan.published = true '\n\t // // privacy filter\n\t\t//\t\t.' AND ( (jan.living = false AND '.$displayAccess['NAMEname']->notLiving.' = 2 ) '\n\t\t//\t\t.' OR (jan.living = true AND '.$displayAccess['NAMEname']->living.' = 2 ) '\n\t\t//\t\t.' ) '\n\t\t//\t\t.' ) '\n\t\t//\t\t.'JOIN #__joaktree_trees jte '\n\t\t//\t\t.'ON ( jte.app_id = jan.app_id '\n\t\t//\t\t.' AND jte.id = jan.default_tree_id '\n\t\t//\t\t.' AND jte.published = true '\n\t\t//\t\t.' AND jte.access IN '.$userAccessLevels.' '\n\t\t//\t\t// only trees with Gendex = yes (=2)\n\t\t//\t\t.' AND jte.indGendex = 2 '\n\t\t//\t\t.' ) '\n\t\t//\t\t.'LEFT JOIN #__joaktree_person_events birth '\n\t\t//\t\t.'ON ( birth.app_id = jpn.app_id '\n\t\t//\t\t.' AND birth.person_id = jpn.id '\n\t\t//\t\t.' AND birth.code = '.$this->_db->Quote('BIRT').' '\n\t\t//\t\t// no alternative text is shown \n\t\t//\t\t.' AND ( (jan.living = false AND '.$displayAccess['BIRTperson']->notLiving.' = 2 ) '\n\t\t//\t\t.' OR (jan.living = true AND '.$displayAccess['BIRTperson']->living.' = 2 ) '\n\t\t//\t\t.' ) '\n\t\t//\t\t.' ) '\n\t\t//\t\t.'LEFT JOIN #__joaktree_person_events death '\n\t\t//\t\t.'ON ( death.app_id = jpn.app_id '\n\t\t//\t\t.' AND death.person_id = jpn.id '\n\t\t//\t\t.' AND death.code = '.$this->_db->Quote('DEAT').' '\n\t\t//\t\t// no alternative text is shown \n\t\t//\t\t.' AND ( (jan.living = false AND '.$displayAccess['DEATperson']->notLiving.' = 2 ) '\n\t\t//\t\t.' OR (jan.living = true AND '.$displayAccess['DEATperson']->living.' = 2 ) '\n\t\t//\t\t.' ) '\n\t\t//\t\t.' ) ';\n\n\t\t$this->_db->setQuery($query);\n\t\t$result = $this->_db->loadObjectList();\n\t\t\n\t\treturn $result;\n\t}", "public function resolve() : array\n {\n $parents = collect(Arr::pluck($this->keys, 'parent'));\n\n return $this->builder->withoutGlobalScopes()->withCount($this->relation)\n ->findMany($parents->pluck('id'))\n ->mapWithKeys(function ($post) {\n $property = \"{$this->relation}_count\";\n\n return [$post->getKey() => $post->{$property}];\n })\n ->all();\n }", "public function items()\n {\n // hasMany(RelatedModel, foreignKeyOnRelatedModel = sp_id, localKey = sp_id)\n return $this->hasMany('App\\Item','sp_id','sp_id');\n }", "public function getWithRelations();", "function getChildren() {\n foreach ( $this->parents as $parent ) {\n $this->children[$parent->name()]=array();\n foreach ( $this->items as $item ) {\n if ( $item->parent_id() == $parent->id() ) {\n $this->children[$parent->name()][]=$item;\n }\n }\n }\n }", "public function getItems()\n {\n return $this->hasMany(Items::className(), ['ingredient_id' => 'id']);\n }", "function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }", "public function getMainObjectClassOld($item, $property) {\r\n static $depth = 0, $maxDepth = 1;\r\n\r\n $className = is_object($item) ? get_class($item) : $item;\r\n\r\n if (property_exists($item, $property)) {\r\n return $className;\r\n } elseif ($depth < $maxDepth) {\r\n /** @var ClassMetadata $metadata */\r\n $om = $this->getObjectManager();\r\n\r\n $metadata = $om->getClassMetadata($className);\r\n\r\n foreach ($metadata->associationMappings as $field => $mapping) {\r\n //if ($mapping['type'] === ClassMetadata::ONE_TO_ONE || ) {\r\n if (in_array($mapping['type'], [ClassMetadata::ONE_TO_ONE, ClassMetadata::MANY_TO_ONE])) {\r\n $itemClass = $mapping['targetEntity'];\r\n //$getter = 'get' . ucfirst($field);\r\n //$itemWithStatus = $item->{$getter}() ?: new $targetEntity();\r\n\r\n $depth++;\r\n $assigned = $this->getMainObjectClass($itemClass, $property);\r\n $depth--;\r\n\r\n if ($assigned) {\r\n //$setter = 'set' . ucfirst($field);\r\n //$itemWithStatus->getId() ? : $item->{$setter}($itemWithStatus);\r\n\r\n return $assigned;\r\n }\r\n }\r\n }\r\n\r\n throw new Exception\\RuntimeException(sprintf(\r\n 'Cannot find main object in \"%s\" with property \"%s\" and related objects with relation OneToOne or ManyToOne',\r\n $className,\r\n $property\r\n ));\r\n }\r\n\r\n return false;\r\n }", "private function _getTree()\r\n {\r\n $items = $this->setArray($this->getItems());\r\n $tree = $this->_buildTree($items);\r\n return $tree;\r\n }", "public function item()\n {\n return $this->belongsTo(Item::class, 'item_id');\n }", "public function subItems()\n {\n return $this->hasMany('SubItem');\n }", "public function get() : Collection\n {\n $records = $this->applyScopes()->query->get();\n $records = $this->getTree()->loadInto($records);\n\n return $this->mapper->makeEntities($records);\n }", "public function retrieveItems() {\n $this->all = array();\n $this->_backlog = array();\n $this->_progress = array();\n $this->_done = array();\n $table_name = \"items\";\n $connection = db_connect();\n if ($connection->connect_error) {\n die(\"Connection failed: \" . $connection->connect_error);\n }\n $sql = \"SELECT * FROM $table_name ORDER BY id\";\n $result = @mysqli_query($connection, $sql) or die(mysqli_error($connection));\n while ($row = mysqli_fetch_array($result)) {\n $id = $row['id'];\n $category = $row['category'];\n $text = $row['text'];\n $item = new Item($id, $category, $text);\n array_push($this->all, $item);\n if ($category == 1) {\n array_push($this->_backlog, $item);\n } else if ($category == 2) {\n array_push($this->_progress, $item);\n } else if ($category == 3) {\n array_push($this->_done, $item);\n }\n }\n }", "public function convertItemToThing(Item $item) : ?Thing\n {\n $types = [];\n\n foreach ($item->getTypes() as $type) {\n $type = $this->schemaOrgIdToLabel($type);\n\n if ($type !== null) {\n $types[] = $type;\n }\n }\n\n $thing = $this->objectFactory->build($types);\n\n if ($thing === null) {\n return null;\n }\n\n foreach ($item->getProperties() as $name => $values) {\n $name = $this->schemaOrgIdToLabel($name);\n\n if ($name === null) {\n continue;\n }\n\n if (isset($thing->{$name})) {\n /** @var SchemaTypeList $schemaTypeList */\n $schemaTypeList = $thing->{$name};\n\n foreach ($values as $value) {\n if ($value instanceof Item) {\n $value = $this->convertItemToThing($value);\n\n if ($value === null) {\n continue;\n }\n }\n\n $schemaTypeList->addValue($value);\n }\n }\n }\n\n return $thing;\n }", "public function items(){\n \treturn $this->belongsToMany(Item::class);\n }", "public function items(): HasMany\n {\n return $this->hasMany(Item::class);\n }", "public function getRelationshipAll()\n {\n $rootCategories = $this->category->whereNull('parent_id')->get();\n\n foreach ($rootCategories as $category) {\n $categories[] = $category->getDescendantsAndSelf()->toHierarchy();\n }\n $collection = new Collection();\n foreach ($categories as $category) {\n foreach ($category as $item) {\n $collection->push($item);\n }\n }\n return $collection;\n }", "protected function _tree($prop = NULL)\n\t{\n\t\t$CI =& get_instance();\n\t\t$return = array();\n\n\n\t\tif (!empty($this->foreign_keys) OR !empty($this->has_many) OR !empty($this->belongs_to))\n\t\t{\n\t\t\tif (empty($prop))\n\t\t\t{\n\t\t\t\tif (!empty($this->foreign_keys))\n\t\t\t\t{\n\t\t\t\t\t$p = $this->foreign_keys;\n\t\t\t\t}\n\t\t\t\telse if (!empty($this->has_many))\n\t\t\t\t{\n\t\t\t\t\t$p = $this->has_many;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (property_exists($this, $prop))\n\t\t\t{\n\t\t\t\t$p = $this->$prop;\n\t\t\t}\n\n\t\t\t$key_field = key($p);\n\t\t\t$loc_field = $key_field;\n\n\t\t\t// get related model info\n\t\t\t$rel_module = current($p);\n\t\t\tif (is_array($rel_module))\n\t\t\t{\n\t\t\t\t$rel_module = current($rel_module);\n\t\t\t}\n\t\t\t$rel_module_obj = $CI->fuel->modules->get($rel_module, FALSE);\n\n\t\t\tif (!$rel_module_obj)\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t\t\t$rel_model = $rel_module_obj->model();\n\t\t\t$rel_key_field = $rel_model->key_field();\n\t\t\t$rel_display_field = $rel_module_obj->info('display_field');\n\n\n\t\t\t$module = strtolower(get_class($this));\n\t\t\t$module_obj = $CI->fuel->modules->get($module, FALSE);\n\t\t\tif (!$module_obj)\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\t\t\t$model = $module_obj->model();\n\t\t\t$display_field = $module_obj->info('display_field');\n\t\t\t$rel_col = !empty($rel_module_obj->default_col) ? $rel_module_obj->default_col : $this->key_field();\n\t\t\t$rel_order = !empty($rel_module_obj->default_order) ? $rel_module_obj->default_order : 'asc';\n\n\t\t\tif ($prop == 'foreign_keys')\n\t\t\t{\n\t\t\t\t$groups = $rel_model->find_all_array(array(), $rel_model->key_field().' asc');\n\t\t\t\t$children = $this->find_all_array(array(), $key_field.' asc');\n\t\t\t\t$g_key_field = $rel_model->key_field();\n\t\t\t\t$loc_field = $g_key_field;\n\t\t\t}\n\t\t\telse if ($prop == 'has_many')\n\t\t\t{\n\t\t\t\t$CI->load->module_model(FUEL_FOLDER, 'fuel_relationships_model');\n\t\t\t\t$groups = $rel_model->find_all_array(array(), $rel_col.' '.$rel_order);\n\t\t\t\t$children = $CI->fuel_relationships_model->find_by_candidate($this->table_name(), $rel_model->table_name(), NULL, 'array');\n\t\t\t\t$key_field = 'foreign_id';\n\t\t\t\t$g_key_field = 'candidate_id';\n\t\t\t\t$display_field = 'candidate_'.$display_field;\n\t\t\t\t$loc_field = $key_field;\n\t\t\t}\n\t\t\telse if ($prop == 'belongs_to')\n\t\t\t{\n\t\t\t\t$CI->load->module_model(FUEL_FOLDER, 'fuel_relationships_model');\n\t\t\t\t$groups = $rel_model->find_all_array(array(), $rel_col.' '.$rel_order);\n\t\t\t\t$children = $CI->fuel_relationships_model->find_by_candidate($rel_model->table_name(), $this->table_name(), NULL, 'array');\n\t\t\t\t$key_field = 'candidate_id';\n\t\t\t\t$g_key_field = 'foreign_id';\n\t\t\t\t$display_field = 'foreign_'.$display_field;\n\t\t\t\t$loc_field = $key_field;\n\t\t\t}\n\n\t\t\t// now get this models records\n\t\t\tforeach($children as $child)\n\t\t\t{\n\t\t\t\t$used_groups[$child[$key_field]] = $child[$key_field];\n\t\t\t\t$attributes = ((isset($child['published']) AND $child['published'] == 'no') OR (isset($child['active']) AND $child['active'] == 'no')) ? array('class' => 'unpublished', 'title' => 'unpublished') : NULL;\n\t\t\t\t$return['g'.$child[$g_key_field].'_c_'.$child[$key_field]] = array('parent_id' => $child[$key_field], 'label' => $child[$display_field], 'location' => fuel_url($module_obj->info('module_uri').'/edit/'.$child[$loc_field]), 'attributes' => $attributes);\n\t\t\t}\n\n\t\t\tforeach($groups as $group)\n\t\t\t{\n\t\t\t\tif (isset($used_groups[$group[$rel_key_field]]))\n\t\t\t\t{\n\t\t\t\t\t$attributes = ((isset($group['published']) AND $group['published'] == 'no') OR (isset($group['active']) AND $group['active'] == 'no')) ? array('class' => 'unpublished', 'title' => 'unpublished') : NULL;\n\t\t\t\t\t$return[$group[$rel_key_field]] = array('id' => $group[$rel_key_field], 'parent_id' => 0, 'label' => $group[$rel_display_field], 'location' => fuel_url($rel_module_obj->info('module_uri').'/edit/'.$group[$rel_key_field]), 'attributes' => $attributes);\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn $return;\n\t}", "public function items()\n {\n return $this->hasMany('TechTrader\\Models\\OrderItem');\n }", "protected function fillRelations(ItemInterface $item, array $attributes): void\n {\n // Fill Relations\n foreach ($item->getAvailableRelations() as $availableRelation) {\n if (!array_key_exists($availableRelation, $attributes)) {\n // No data found, continue\n continue;\n }\n\n $relation = $this->getRelationFromItem($item, $availableRelation);\n\n // The relation should be unset\n if (\n ($relation instanceof OneRelationInterface && $attributes[$availableRelation] === null) ||\n ($relation instanceof ManyRelationInterface && $attributes[$availableRelation] === [])\n ) {\n $relation->dissociate();\n\n continue;\n }\n\n // It is a valid relation\n if ($relation instanceof HasOneRelation) {\n $this->hydrateHasOneRelation($relation, $attributes[$availableRelation]);\n } elseif ($relation instanceof HasManyRelation) {\n $this->hydrateHasManyRelation($relation, $attributes[$availableRelation]);\n } elseif ($relation instanceof MorphToRelation) {\n $this->hydrateMorphToRelation($relation, $attributes[$availableRelation]);\n } elseif ($relation instanceof MorphToManyRelation) {\n $this->hydrateMorphToManyRelation($relation, $attributes[$availableRelation]);\n }\n }\n }", "protected function makeItemTraversable($item) {\n\t\tif ($item instanceof AbstractEntity) {\n\t\t\t$item = $item->_getProperties();\n\t\t}\n\t\treturn $item;\n\t}", "public function items() {\n return $this->hasMany(OrderItem::class);\n }", "public function item()\n {\n return $this->belongsTo('App\\Models\\ItemModel', 'item_id', 'id');\n }", "public function getOrderItemCompositeWithJoin()\n {\n return $this->hasOne(self::className(), ['item_id' => 'item_id', 'order_id' => 'order_id'])\n ->joinWith('item');\n }", "function getRelated($req) {\n\t\tglobal $DB_LINK, $db_table_related_recipes;\n\t\t$children = array();\n\t\t$sql = \"SELECT related_child,related_required FROM $db_table_related_recipes WHERE related_parent=\".$DB_LINK->addq($this->id, get_magic_quotes_gpc());\n\t\t$rc = $DB_LINK->Execute($sql);\n\t\tDBUtils::checkResult($rc, NULL, NULL, $sql);\n\t\twhile (!$rc->EOF) {\n\t\t\tif ($req) {\n\t\t\t\t// get all the required recipes\n\t\t\t\tif ($rc->fields['related_required'] == $DB_LINK->true) {\n\t\t\t\t\t$tmpObj = new Recipe($rc->fields['related_child']);\n\t\t\t\t\t$tmpObj->loadRecipe();\n\t\t\t\t\t$children[] = $tmpObj;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// get all the children\n\t\t\t\t$tmpObj = new Recipe($rc->fields['related_child']);\n\t\t\t\t$tmpObj->loadRecipe();\n\t\t\t\t$children[] = $tmpObj;\n\t\t\t}\n\t\t\t$rc->MoveNext();\n\t\t}\n\t\treturn $children;\n\t}", "public function items()\n {\n return $this->hasMany('App\\OrderItem');\n }", "public function items()\n {\n return $this->belongsToMany(Item::class, 'item_categories', 'category_id', 'item_id');\n }", "function getItem($db, $resource_pk, $item_pk) {\r\n\r\n $item = new Item();\r\n\r\n if (!empty($item_pk)) {\r\n $prefix = DB_TABLENAME_PREFIX;\r\n $sql = <<< EOD\r\nSELECT i.item_pk, i.item_title, i.item_text, i.item_url, i.max_rating mr, i.step st, i.visible vis, i.sequence seq, i.created cr, i.updated upd\r\nFROM {$prefix}item i\r\nWHERE (i.resource_link_pk = :resource_pk) AND (i.item_pk = :item_pk)\r\nEOD;\r\n\r\n $query = $db->prepare($sql);\r\n $query->bindValue('resource_pk', $resource_pk, PDO::PARAM_INT);\r\n $query->bindValue('item_pk', $item_pk, PDO::PARAM_INT);\r\n $query->setFetchMode(PDO::FETCH_CLASS, 'Item');\r\n $query->execute();\r\n\r\n $row = $query->fetch();\r\n if ($row !== FALSE) {\r\n $item = $row;\r\n }\r\n }\r\n\r\n return $item;\r\n\r\n }", "public function items()\n {\n return $this->hasMany(OrderItem::class);\n }", "public function items() : HasMany\n {\n return $this->hasMany(OrderItem::class);\n }", "public function analyse(object $item): array\n {\n $nodes = [];\n\n foreach ($item->categories as $category) {\n $nodes[] = new Relation\\Node('CATEGORY', $category);\n }\n\n foreach ($item->topics as $topic) {\n $nodes[] = new Relation\\Node('TOPIC', $topic);\n }\n\n return $nodes;\n }", "public function getItems(): CollectionInterface;", "public function getItem($id, UserInterface $user = null)\n {\n /** @var \\Doctrine\\ODM\\MongoDB\\Query\\Builder $query */\n $query = $this->createQueryBuilder('this');\n $query = $this->buildItemsQuery($query, $user);\n // Get category with children\n // ie: WHERE id = 4 OR path LIKE 4,% OR path LIKE %,4,%\n $query\n ->field('id')->equals(intval($id))\n ->addOr($query->expr()->field('id')->equals('/'. intval($id). ',/'))\n ->addOr($query->expr()->field('id')->equals('/,'. intval($id). ',/'))\n ->sort('position')\n ->sort('path');\n\n $category = $this->buildCategoryTree(\n $query->getQuery()->toArray(), $id\n );\n return $category;\n }", "function yield_fields(){\n //\n //Visit each column of the root entity, resolve it.\n foreach($this->entity->columns as $column){\n //\n //Resolve the current column\n //\n //Primary keys and attributes to not need resolving\n if($column instanceof \\column_primary){\n yield new primary($this->entity, $column->name); \n }\n \n else if ($column instanceof \\column_attribute){\n yield new column($column, $column->name);\n }\n //\n //A forein key needs resolving from e.g., client=4 to\n //client = [4,\"deekos-Deeoks Bakery lt\"]. We need to cocaat 5 pieces\n //of data, $ob, $primary, $comma, $dq, $friendly, $dq, $cb\n else{\n //Start with an empty array \n $args=[];\n //\n //Opening bracket\n $ob= new literal('[');\n array_push($args, $ob);\n //\n //Primary \n $primary = new column($column);\n array_push($args, $primary);\n //\n //Comma\n $comma= new literal(',');\n array_push($args, $comma);\n //\n //Double quote\n $dq= new literal('\"');\n array_push($args, $dq);\n //\n //Yied the fiedly comumn name\n $e2 = $this->entity->dbase->entities[$column->ref_table_name];\n //\n //Take care of the join \n $en= array_search($e2->name, $this->join_entites);\n if ($en == false){\n //\n array_push($this->join_entites, $e2->name);\n array_push($this->editor_joins, new join($e2, [$column]));\n }\n //\n //To obtain the indexed attributes get the identifier\n $db=$e2->get_parent();\n $identify = new identifier($e2->name,$db->name);\n //\n //The friendly are the fields of the identifier\n $friendly= $identify->fields;\n //\n //Retrieve any joins also\n $joins_edit= $identify->joins->get_array();\n foreach ($joins_edit as $join){\n $e= $join->entity->name;\n $en= array_search($e, $this->join_entites);\n if ($en === false){\n //\n array_push($this->join_entites, $e);\n array_push($this->editor_joins, $join);\n }\n }\n //\n //Return an array of the fields \n $fri_fields= $friendly->get_array();\n \n //Loop through the array and pushing every component \n foreach ($fri_fields as $field){\n array_push($args, $field);\n $d= new literal(\"/\");\n array_push($args, $d);\n }\n array_pop($args);\n //\n //Double quote\n array_push($args, $dq);\n //\n $cb= new literal(']');\n array_push($args, $cb);\n //\n yield new concat(new fields($args),$column->name);\n \n }\n }\n }", "public function active_dependencies(): Collection;", "public function run()\n {\n $items = [\n \t['id' => 1, 'name' => 'Skincare'],\n \t['id' => 2, 'name' => 'Cleansing'],\n \t['id' => 3, 'name' => 'Base'],\n \t['id' => 4, 'name' => 'Eyes|Lips|Cheek'],\n \t['id' => 5, 'name' => 'Masks'],\n \t['id' => 6, 'name' => 'Suncare'],\n \t['id' => 7, 'name' => 'Special Care'],\n \t['id' => 8, 'name' => 'Body|Hand|Foot'],\n \t['id' => 9, 'name' => 'Hair Care'],\n \t['id' => 10, 'name' => 'Nail Care'],\n \t['id' => 11, 'name' => 'Contact Lenses'],\n \t['id' => 12, 'name' => 'Perfumes'],\n \t['id' => 13, 'name' => 'Tools|Others'],\n\n \t['id' => 14, 'parent' => 1, 'name' => 'Toner'],\n \t['id' => 15, 'parent' => 1, 'name' => 'Lotion'],\n \t['id' => 16, 'parent' => 1, 'name' => 'Essence'],\n \t['id' => 17, 'parent' => 1, 'name' => 'Cream'],\n \t['id' => 18, 'parent' => 2, 'name' => 'Cleansing Water'],\n \t['id' => 19, 'parent' => 2, 'name' => 'Cleansing Wipes'],\n \t['id' => 20, 'parent' => 3, 'name' => 'Primer'],\n \t['id' => 21, 'parent' => 3, 'name' => 'Foundation'],\n \t['id' => 22, 'parent' => 3, 'name' => 'Concealer'],\n \t['id' => 23, 'parent' => 3, 'name' => 'Powder'],\n \t['id' => 24, 'parent' => 4, 'name' => 'Blush'],\n \t['id' => 25, 'parent' => 4, 'name' => 'Contour'],\n \t['id' => 26, 'parent' => 4, 'name' => 'Highlighter'],\n \t['id' => 27, 'parent' => 4, 'name' => 'Eyebrow'],\n \t['id' => 28, 'parent' => 4, 'name' => 'Eyeshadow'],\n \t['id' => 29, 'parent' => 4, 'name' => 'Eyeliner'],\n \t['id' => 30, 'parent' => 4, 'name' => 'Mascara'],\n \t['id' => 31, 'parent' => 4, 'name' => 'Lipstick'],\n \t['id' => 32, 'parent' => 4, 'name' => 'Lip Tint'],\n \t['id' => 33, 'parent' => 5, 'name' => 'Sheet Mask'],\n \t['id' => 34, 'parent' => 6, 'name' => 'Sunblock'],\n \t['id' => 35, 'parent' => 7, 'name' => 'Wrinkle Care'],\n \t['id' => 36, 'parent' => 7, 'name' => 'Acne Care'],\n \t['id' => 37, 'parent' => 8, 'name' => 'Body Wash'],\n \t['id' => 38, 'parent' => 9, 'name' => 'Hair Color'],\n \t['id' => 39, 'parent' => 10, 'name' => 'Nail Polish'],\n \t['id' => 40, 'parent' => 11, 'name' => 'Color Lenses'],\n \t['id' => 41, 'parent' => 12, 'name' => 'Candles'],\n \t['id' => 42, 'parent' => 13, 'name' => 'Brush'],\n \t['id' => 43, 'parent' => 13, 'name' => 'Lashes'],\n ];\n\n foreach ($items as $item) {\n \tCategory::updateOrCreate(['id' => $item['id']], $item);\n }\n }", "public function getReferencedEntities();", "public function fetch(): ItemCollection\n {\n $result = $this->connection->getClient()->{$this->fetchMode}($this->toArray());\n\n return $this->processor->processItems($result);\n }", "public function items()\n {\n return $this->hasMany(OrderItems::class);\n }", "public function getItemRelations()\n {\n return [];\n }", "public function load()\r\n\t{\r\n\t\t$entities = $this->query($this->entity, $this->relation)->getResults($this->relation);\r\n\t\t\r\n\t\t$this->loaded = true;\r\n\r\n\t\treturn $entities;\r\n\t}", "public function relations()\n {\n $hasOne = $this->hasOne();\n $hasMany = $this->hasMany();\n $belongsTo = $this->belongsTo();\n $objects = new stdClass();\n\n if ($hasOne && !empty($hasOne)) {\n foreach ($hasOne as $id => $value) {\n\n $objects->$id = Relationships::hasOne(isset($value[0]) ? $value[0] : null, isset($value[1]) ? $value[1] : null, isset($value[2]) ? $value[2] : array());\n }\n }\n if ($hasMany && !empty($hasMany)) {\n foreach ($hasMany as $id => $value) {\n $objects->$id = Relationships::hasMany(isset($value[0]) ? $value[0] : null, isset($value[1]) ? $value[1] : null, isset($value[2]) ? $value[2] : array());\n }\n\n }\n if ($belongsTo && !empty($belongsTo)) {\n foreach ($belongsTo as $id => $value) {\n $objects->$id = Relationships::belongsTo(isset($value[0]) ? $value[0] : null, isset($value[1]) ? $value[1] : null, isset($value[2]) ? $value[2] : array());\n }\n }\n return $objects;\n }", "public function delete()\n\t{\n\t\tif ( !is_array( $this->_id ) )\n\t\t\tthrow new \\RuntimeException( 'item does not exist (anymore)' );\n\n\n\t\t/*\n\t\t * wrap deletion of item and its tight relations in a transaction\n\t\t */\n\n\t\t$item = $this;\n\t\t$set = static::set();\n\t\t$relations = static::$relations;\n\t\t$class = get_called_class();\n\n\t\tif ( !$this->_source->transaction()->wrap( function( connection $connection ) use ( $item, $set, $relations, $class )\n\t\t{\n\t\t\t// cache information on item to delete\n\t\t\t$idValues = array_values( $item->id() );\n\t\t\t$record = count( $relations ) ? $item->load() : array();\n\n\n\t\t\t/*\n\t\t\t * step 1) actually delete current item\n\t\t\t */\n\n\t\t\t$qSet = $connection->qualifyDatasetName( $set );\n\t\t\tif ( $connection->test( sprintf( 'DELETE FROM %s WHERE %s', $qSet, $item->filter() ), $idValues ) === false )\n\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete requested model instance' );\n\n\n\t\t\t/*\n\t\t\t * step 2) update all related items\n\t\t\t */\n\n\t\t\t// on deleting item relations have to be updated\n\t\t\t// - always null references on current item to be deleted\n\t\t\tforeach ( $relations as $relationName => $relationSpec ) {\n\t\t\t\t// detect if relation is \"tight\"\n\t\t\t\t$isTightlyBound = in_array( 'tight', (array) @$relationSpec['options'] ) ||\n\t\t\t\t @$relationSpec['options']['tight'];\n\n\t\t\t\t// get first reference in relation\n\t\t\t\t/** @var model_relation $relation */\n\t\t\t\t$relation = call_user_func( array( $class, \"relation\" ), $relationName );\n\t\t\t\t$firstNode = $relation->nodeAtIndex( 0 );\n\t\t\t\t$secondNode = $relation->nodeAtIndex( 1 );\n\t\t\t\t$secondNodeSet = $secondNode->getName( true );\n\n\t\t\t\t// prepare collection of information on second node\n\t\t\t\t$onSecond = array(\n\t\t\t\t\t'null' => array(),\n\t\t\t\t 'filter' => array(\n\t\t\t\t\t 'properties' => array(),\n\t\t\t\t 'values' => array(),\n\t\t\t\t )\n\t\t\t\t);\n\n\t\t\t\t// extract reusable code to prepare filter for selecting record\n\t\t\t\t// of second node actually related to deleted item\n\t\t\t\t$getFilter = function() use ( &$onSecond, $connection, $firstNode, $secondNode, $record ) {\n\t\t\t\t\t// retrieve _qualified and quoted_ names of predecessor's properties\n\t\t\t\t\t$onSecond['filter']['properties'] = $secondNode->getPredecessorNames( $connection );\n\t\t\t\t\tforeach ( $firstNode->getSuccessorNames() as $property )\n\t\t\t\t\t\t$onSecond['filter']['values'][] = @$record[$property];\n\t\t\t\t};\n\n\t\t\t\t// inspect type of relationship between first and second node of\n\t\t\t\t// current relation\n\t\t\t\tif ( $secondNode->canBindOnPredecessor() ) {\n\t\t\t\t\t// second node in relation is referencing first one\n\t\t\t\t\t// -> there are items of second node's model referring to\n\t\t\t\t\t// item removed above\n\n\t\t\t\t\t// -> find records of all those items ...\n\t\t\t\t\t$getFilter();\n\n\t\t\t\t\t// ... at least for nulling their references on deleted item\n\t\t\t\t\t$onSecond['null'] = $onSecond['filter']['properties'];\n\t\t\t\t} else {\n\t\t\t\t\t// first node in relation is referencing second one\n\t\t\t\t\t// -> deleted item was referencing item of second node's model\n\t\t\t\t\t// -> there is basically no need to update any foreign\n\t\t\t\t\t// references on deleted item\n\n\t\t\t\t\tif ( $isTightlyBound )\n\t\t\t\t\t\t// relation is marked as \"tight\"\n\t\t\t\t\t\t// -> need to delete item referenced by deleted item\n\t\t\t\t\t\t$getFilter();\n\t\t\t\t}\n\n\n\t\t\t\t// convert filtering properties of second node into set of assignments\n\t\t\t\t$filter = array_map( function( $name ) { return \"$name=?\"; }, $onSecond['filter']['properties'] );\n\n\t\t\t\tif ( $isTightlyBound ) {\n\t\t\t\t\t// in tight relation immediately related elements are\n\t\t\t\t\t// deleted as well\n\n\t\t\t\t\t$secondModel = $secondNode->getModel();\n\n\t\t\t\t\tif ( $secondModel->isVirtual() ) {\n\t\t\t\t\t\t// second model is virtual, only\n\t\t\t\t\t\t// -> it's okay to simply delete matching records in datasource\n\t\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t\t$term = implode( ' AND ', $filter );\n\n\t\t\t\t\t\tif ( !$connection->test( \"DELETE FROM $qSet WHERE $term\", $onSecond['filter']['values'] ) )\n\t\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to delete instances of tightly related items in relation ' . $relationName );\n\n\t\t\t\t\t\t// TODO: add support for tightly bound relation in opposite reference of this virtual node\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// query data source for IDs of all tightly related items\n\t\t\t\t\t\t$query = $connection->createQuery( $secondNodeSet );\n\n\t\t\t\t\t\t// - select related items using properties involved in relation\n\t\t\t\t\t\tforeach ( $onSecond['filter']['properties'] as $index => $name )\n\t\t\t\t\t\t\t$query->addFilter( \"$name=?\", true, $onSecond['filter']['values'][$index] );\n\n\t\t\t\t\t\t// - fetch all properties used to identify items\n\t\t\t\t\t\t$ids = $secondModel->getIdProperties();\n\t\t\t\t\t\tforeach ( $ids as $index => $name )\n\t\t\t\t\t\t\t$query->addProperty( $connection->quoteName( $name ), \"i$index\" );\n\n\t\t\t\t\t\t// iterate over all matches for deleting every one\n\t\t\t\t\t\t$matches = $query->execute();\n\t\t\t\t\t\t$iCount = count( $ids );\n\n\t\t\t\t\t\twhile ( $match = $matches->row() ) {\n\t\t\t\t\t\t\t// extract properly sorted ID from matching record\n\t\t\t\t\t\t\t$id = array();\n\t\t\t\t\t\t\tfor ( $i = 0; $i < $iCount; $i++ )\n\t\t\t\t\t\t\t\t$id[$ids[$i]] = $match[\"i$i\"];\n\n\t\t\t\t\t\t\t// select item of model and delete it\n\t\t\t\t\t\t\t$secondModel\n\t\t\t\t\t\t\t\t->selectInstance( $connection, $id )\n\t\t\t\t\t\t\t\t->delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if ( count( $onSecond['null'] ) ) {\n\t\t\t\t\t// need to null foreign references on deleted item\n\t\t\t\t\t$values = array_merge(\n\t\t\t\t\t\t\t\t\tarray_pad( array(), count( $onSecond['filter']['values'] ), null ),\n\t\t\t\t\t\t\t\t\t$onSecond['filter']['values']\n\t\t\t\t\t\t\t\t);\n\n\t\t\t\t\t$qSet = $connection->qualifyDatasetName( $secondNodeSet );\n\t\t\t\t\t$matching = implode( ' AND ', $filter );\n\t\t\t\t\t$setting = implode( ',', $filter );\n\n\t\t\t\t\tif ( !$connection->test( \"UPDATE $qSet SET $setting WHERE $matching\", $values ) )\n\t\t\t\t\t\tthrow new datasource_exception( $connection, 'failed to null references on deleted item in relation ' . $relationName );\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn true;\n\t\t} ) )\n\t\t\tthrow new datasource_exception( $this->_source, 'failed to completely delete item and its tightly bound relations' );\n\n\n\t\t// drop that item now ...\n\t\t$this->_id = null;\n\t}", "function getItem($i, $parent=null) {\n\t\tif ($parent === null) {\n\t\t\tif (isset($this->items[$i])){\n\t\t\t\treturn $this->items[$i];\t\t\n\t\t\t}else{\n\t\t\t\tthrow new Exception(\"Item '$i' Not found\");\n\t\t\t}\n\t\t}else{\n\t\t\t//var_dump($parent);\n\t\t\t//var_dump($this->items);\n\t\t\tif (isset($this->items[$parent]) && isset($this->items[$parent]->children) ){\n\t\t\t\t\n\t\t\t\tforeach ( $this->items[$parent]->children as $child ) {\n\t\t\t\t\tif ($child->getPage()->alias == $i) {\n\t\t\t\t\t\treturn $child ;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t}", "public function find($item)\n {\n return $this->em->createQueryBuilder()\n ->from(SpecificationItem::class, 'si')\n ->select('si')\n ->andWhere('si.id = :item')\n ->setParameter('item', $item)\n ->getQuery()\n ->getOneOrNullResult();\n }", "abstract protected function get_item_from_db($item_id);", "public function getDependencies(): DependencyCollection;", "public function items()\n {\n return $this->hasMany(QuoteItemProxy::modelClass());\n }", "public function show(Item $item)\n {\n $item = Item::with([\n 'gender:id,name',\n 'type:id,name',\n 'supplier:id,name',\n 'image',\n ])->where('id',$item->id)->get()->toArray();\n return $item;\n }", "protected function _getItems(){\n\n\t\t// get parent\n\t\t$model = new Default_Model_ProjectImages();\n\t\t$parentModel = new Default_Model_Projects();\n\t\t$parent = $parentModel->findById($this->_session->id);\n\n\n\t\t// get the item list\n\t\t$model = new $this->_primaryModel;\n\t\t$items = $model->fetchNotTrashedByParentId($this->_session->id);\n\n\t\t// assign specific vars to the view\n\t\t$this->view->assign(array (\n\t\t\t'items' => $items,\n\t\t\t'parent' => $parent,\n//\t\t\t'title' => $items->getRow(0)->title\n\t\t\t'title' => \"TITLE\"\n\t\t));\n\t}", "public function items(){\n return $this->hasMany(OrderItem::class);\n }", "private function expandItems() {\n\t\t$items_cache = zbx_toHash($this->items, 'itemid');\n\t\t$items = $this->items;\n\n\t\tdo {\n\t\t\t$master_itemids = [];\n\n\t\t\tforeach ($items as $item) {\n\t\t\t\tif ($item['type'] == ITEM_TYPE_DEPENDENT && !array_key_exists($item['master_itemid'], $items_cache)) {\n\t\t\t\t\t$master_itemids[$item['master_itemid']] = true;\n\t\t\t\t}\n\t\t\t\t$items_cache[$item['itemid']] = $item;\n\t\t\t}\n\t\t\t$master_itemids = array_keys($master_itemids);\n\n\t\t\t$items = API::Item()->get([\n\t\t\t\t'output' => ['itemid', 'type', 'master_itemid', 'delay'],\n\t\t\t\t'itemids' => $master_itemids\n\t\t\t]);\n\t\t} while ($items);\n\n\t\t$update_interval_parser = new CUpdateIntervalParser();\n\n\t\tforeach ($this->items as &$graph_item) {\n\t\t\tif ($graph_item['type'] == ITEM_TYPE_DEPENDENT) {\n\t\t\t\t$master_item = $graph_item;\n\n\t\t\t\twhile ($master_item && $master_item['type'] == ITEM_TYPE_DEPENDENT) {\n\t\t\t\t\t$master_item = $items_cache[$master_item['master_itemid']];\n\t\t\t\t}\n\t\t\t\t$graph_item['type'] = $master_item['type'];\n\t\t\t\t$graph_item['delay'] = $master_item['delay'];\n\t\t\t}\n\n\t\t\t$graph_items = CMacrosResolverHelper::resolveItemNames([$graph_item]);\n\t\t\t$graph_items = CMacrosResolverHelper::resolveTimeUnitMacros($graph_items, ['delay']);\n\t\t\t$graph_item = reset($graph_items);\n\t\t\t$graph_item['name'] = $graph_item['name_expanded'];\n\t\t\t// getItemDelay will internally convert delay and flexible delay to seconds.\n\t\t\t$update_interval_parser->parse($graph_item['delay']);\n\t\t\t$graph_item['delay'] = getItemDelay($update_interval_parser->getDelay(),\n\t\t\t\t$update_interval_parser->getIntervals(ITEM_DELAY_FLEXIBLE)\n\t\t\t);\n\t\t\t$graph_item['has_scheduling_intervals']\n\t\t\t\t= (bool) $update_interval_parser->getIntervals(ITEM_DELAY_SCHEDULING);\n\n\t\t\tif (strpos($graph_item['units'], ',') === false) {\n\t\t\t\t$graph_item['unitsLong'] = '';\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlist($graph_item['units'], $graph_item['unitsLong']) = explode(',', $graph_item['units']);\n\t\t\t}\n\t\t}\n\t\tunset($graph_item);\n\t}", "protected function includeRelation($name, AbstractModel &$item)\n {\n $relation = str_replace('include', null, $name);\n $relation = lcfirst($relation);\n\n // If the item is a collection, eager load all related\n if ($item instanceof Collection && method_exists($item, $relation)) {\n $item->load($relation);\n }\n\n // Load item\n if ($related = $item->$relation) {\n if ($related instanceof Collection) {\n $transformer = $related->first() ? $related->first()->getTransformer() : new DefaultTransformer();\n\n return $this->collection($related, $transformer, strtolower($relation));\n } else {\n return $this->item($related, $related->getTransformer(), strtolower($relation));\n }\n }\n }", "public function items()\n {\n return $this->hasMany(ExpenseItem::class, 'expense_id', 'id');\n }", "static function get_display_context($item, $tag_id, $album_id) {\n // Note: $dynamic_siblings is used exclusively for Grey Dragon.\n\n $album_tags = ORM::factory(\"tags_album_id\")\n ->where(\"id\", \"=\", $album_id)\n ->find_all();\n if (count($album_tags) == 0) {\n $album_id = 0;\n }\n\n // Load the tag and item, make sure the user has access to the item.\n $display_tag = ORM::factory(\"tag\", $tag_id);\n\n // Figure out sort order from module preferences.\n $sort_page_field = \"\";\n $sort_page_direction = \"\";\n if (($tag_id > 0) || (count($album_tags) == 0)) {\n $sort_page_field = module::get_var(\"tag_albums\", \"subalbum_sort_by\", \"title\");\n $sort_page_direction = module::get_var(\"tag_albums\", \"subalbum_sort_direction\", \"ASC\");\n } else {\n $parent_album = ORM::factory(\"item\", $album_tags[0]->album_id);\n $sort_page_field = $parent_album->sort_column;\n $sort_page_direction = $parent_album->sort_order;\n }\n\n // Load the number of items in the parent album, and determine previous and next items.\n $sibling_count = \"\";\n $tag_children = \"\";\n $previous_item = \"\";\n $next_item = \"\";\n $position = 0;\n $dynamic_siblings = \"\";\n $siblings_callback_param=array();\n if ($tag_id > 0) {\t\n $album_tags_search_type = \"\";\n $sibling_count = tag_albums_Controller::_count_records(Array($tag_id), \"OR\", false);\n $position = tag_albums_Controller::_get_position($item->$sort_page_field, $item->id, Array($tag_id), \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if ($position > 1) {\n $previous_item_object = tag_albums_Controller::_get_records(Array($tag_id), 1, $position-2, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if (count($previous_item_object) > 0) {\n $previous_item = $previous_item_object[0];\n }\n }\n $next_item_object = tag_albums_Controller::_get_records(Array($tag_id), 1, $position, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if (count($next_item_object) > 0) {\n $next_item = $next_item_object[0];\n }\n $dynamic_siblings = tag_albums_Controller::_get_records(Array($tag_id), $sibling_count, 0, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n $siblings_callback_param= array(Array($tag_id), $sibling_count, 0, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n } else {\n $tag_ids = Array();\n foreach (explode(\",\", $album_tags[0]->tags) as $tag_name) {\n $tag = ORM::factory(\"tag\")->where(\"name\", \"=\", trim($tag_name))->find();\n if ($tag->loaded()) {\n $tag_ids[] = $tag->id;\n }\n }\n $album_tags_search_type = $album_tags[0]->search_type;\n $sibling_count = tag_albums_Controller::_count_records($tag_ids, $album_tags_search_type, false);\n $position = tag_albums_Controller::_get_position($item->$sort_page_field, $item->id, $tag_ids, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if ($position > 1) {\n $previous_item_object = tag_albums_Controller::_get_records($tag_ids, 1, $position-2, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if (count($previous_item_object) > 0) {\n $previous_item = $previous_item_object[0];\n }\n }\n $next_item_object = tag_albums_Controller::_get_records($tag_ids, 1, $position, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n if (count($next_item_object) > 0) {\n $next_item = $next_item_object[0];\n }\n $dynamic_siblings = tag_albums_Controller::_get_records($tag_ids, $sibling_count, 0, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n $siblings_callback_param= array($tag_ids, $sibling_count, 0, \"items.\" . $sort_page_field, $sort_page_direction, $album_tags_search_type, false);\n }\n\n // Set up breadcrumbs\n $tag_album_breadcrumbs = Array();\n if ($album_id > 0) {\n $counter = 0;\n $tag_album_breadcrumbs[] = Breadcrumb::instance($item->title, $item->url())->set_last();\n if ($album_tags[0]->tags == \"*\") {\n $tag_album_breadcrumbs[] = Breadcrumb::instance($display_tag->name, url::site(\"tag_albums/tag/\" . $display_tag->id . \"/\" . $album_id . \"/\" . urlencode($display_tag->name)));\n }\n $parent_item = ORM::factory(\"item\", $album_tags[0]->album_id);\n $tag_album_breadcrumbs[] = Breadcrumb::instance($parent_item->title, url::site(\"tag_albums/album/\" . $album_id . \"/\" . urlencode($parent_item->name)));\n $parent_item = ORM::factory(\"item\", $parent_item->parent_id);\n while ($parent_item->id != 1) {\n $tag_album_breadcrumbs[] = Breadcrumb::instance($parent_item->title, $parent_item->url());\n $parent_item = ORM::factory(\"item\", $parent_item->parent_id);\n }\n $tag_album_breadcrumbs[] = Breadcrumb::instance($parent_item->title, $parent_item->url())->set_first();\n $tag_album_breadcrumbs[1]->url .= \"?show=\" . $item->id;\n $tag_album_breadcrumbs = array_reverse($tag_album_breadcrumbs, true);\n } else {\n $tag_album_breadcrumbs[] = Breadcrumb::instance(item::root()->title, item::root()->url())->set_first();\n $tag_album_breadcrumbs[] = Breadcrumb::instance(module::get_var(\"tag_albums\", \"tag_page_title\", \"All Tags\"), url::site(\"tag_albums/\"));\n $tag_album_breadcrumbs[] = Breadcrumb::instance($display_tag->name, url::site(\"tag_albums/tag/\" . $display_tag->id . \"/\" . urlencode($display_tag->name)) . \"?show=\" . $item->id);\n $tag_album_breadcrumbs[] = Breadcrumb::instance($item->title, $item->url())->set_last();\n }\n\n return array(\"position\" => $position,\n \"previous_item\" => $previous_item,\n \"next_item\" => $next_item,\n \"tag_id\" => $tag_id,\n \"album_id\" => $album_id,\n \"is_tagalbum_page\" => true,\n \"dynamic_siblings\" => $dynamic_siblings,\n \"sibling_count\" => $sibling_count,\n \"siblings_callback\" => array(\"tag_albums_Controller::get_siblings\", $siblings_callback_param),\n \"breadcrumbs\" => $tag_album_breadcrumbs);\n }", "public function bookshelf_item()\n {\n return $this->belongsToMany(Bookshelf_item::class);\n }", "public function bookshelf_items()\n {\n return $this->hasMany(Bookshelf_item::class);\n }" ]
[ "0.5357945", "0.53080726", "0.53028977", "0.52818453", "0.5264998", "0.5209208", "0.51760226", "0.517246", "0.51425105", "0.51185924", "0.51091754", "0.50990576", "0.5080883", "0.50747114", "0.5074637", "0.5055848", "0.5047978", "0.5047359", "0.50465167", "0.5029212", "0.49996856", "0.49994275", "0.49944067", "0.4985076", "0.4985076", "0.49774542", "0.49662775", "0.4962268", "0.4925212", "0.49172717", "0.490839", "0.48898205", "0.4887819", "0.4887819", "0.4887819", "0.4863628", "0.4863628", "0.4863628", "0.4863628", "0.4863628", "0.4839017", "0.48336267", "0.4828884", "0.48281872", "0.48092917", "0.48084772", "0.48014662", "0.47854415", "0.4784421", "0.47806704", "0.47765458", "0.47607827", "0.4756153", "0.47500536", "0.4743905", "0.47412214", "0.47332522", "0.4705724", "0.469266", "0.46808636", "0.4665133", "0.46613517", "0.46562007", "0.4654549", "0.46474567", "0.4644256", "0.46435803", "0.46234062", "0.46161857", "0.46148923", "0.4611055", "0.4608417", "0.4607996", "0.45871714", "0.45790902", "0.45626393", "0.45598727", "0.4555892", "0.45526484", "0.45517623", "0.454253", "0.45412892", "0.45381674", "0.45297742", "0.4525406", "0.45207396", "0.45170304", "0.4515962", "0.45120108", "0.45104548", "0.45043963", "0.45028165", "0.44892555", "0.44861582", "0.44810525", "0.44763032", "0.4474453", "0.44718072", "0.44677868", "0.44597286", "0.44569802" ]
0.0
-1
The block "_name_child_label" should be overridden in the theme of the implemented driver.
public function testCollectionRowWithCustomBlock() { $collection = ['one', 'two', 'three']; $form = $this->factory->createNamedBuilder('names', 'Symfony\Component\Form\Extension\Core\Type\CollectionType', $collection) ->getForm(); $this->assertWidgetMatchesXpath($form->createView(), [], '/div [ ./div[./label[.="Custom label: [trans]0[/trans]"]] /following-sibling::div[./label[.="Custom label: [trans]1[/trans]"]] /following-sibling::div[./label[.="Custom label: [trans]2[/trans]"]] ] ' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLabel()\n {\n return 'Bilder Widget';\n }", "function register_block_core_post_title()\n {\n }", "function register_block_core_site_title() {\n\tregister_block_type_from_metadata(\n\t\t__DIR__ . '/site-title',\n\t\tarray(\n\t\t\t'render_callback' => 'render_block_core_site_title',\n\t\t)\n\t);\n}", "function register_block_core_heading()\n {\n }", "function register_block_core_site_title()\n {\n }", "function render_block_core_post_title($attributes, $content, $block)\n {\n }", "function get_dynamic_block_names()\n {\n }", "function felix_block_names() {\n \n $blocks = array(\n 'disabled' => __( 'Disabled', 'felix-landing-page' ),\n 'header' => __( 'Header', 'felix-landing-page' ),\n 'jumbotron' => __( 'Hero', 'felix-landing-page' ),\n 'navbar' => __( 'Navigation Bar', 'felix-landing-page' ),\n 'products' => __( 'Featured Products', 'felix-landing-page' ),\n 'content' => __( 'Content', 'felix-landing-page' ),\n 'articles' => __( 'Featured Articles', 'felix-landing-page' ),\n 'footer' => __( 'Footer' )\n );\n \n return $blocks;\n \n}", "public function testChoiceRowWithCustomBlock()\n {\n $form = $this->factory->createNamedBuilder('name_c', 'Symfony\\Component\\Form\\Extension\\Core\\Type\\ChoiceType', 'a', [\n 'choices' => ['ChoiceA' => 'a', 'ChoiceB' => 'b'],\n 'expanded' => true,\n ])\n ->getForm();\n\n $this->assertWidgetMatchesXpath($form->createView(), [],\n '/div\n [\n ./label[.=\"Custom name label: [trans]ChoiceA[/trans]\"]\n /following-sibling::label[.=\"Custom name label: [trans]ChoiceB[/trans]\"]\n ]\n'\n );\n }", "protected function get_label(): string {\n\t\treturn 'You need to override the get_label() method in your class.';\n\t}", "public static function label()\n {\n return 'Bukeri';\n }", "private function setLabels(){\n\t\t$this->labels = array(\n\t\t\t'name' => $this->name,\n\t\t\t'singular_name' => $this->nameMenuSingular,\n\t\t\t'menu_name' => $this->nameMenu,\n\t\t\t'all_items' => $this->nameAll,\n\t\t\t'add_new' => $this->nameAddNew,\n\t\t\t'add_new_item' => $this->nameNewItem,\n\t\t\t'edit_item' => $this->nameEdit,\n\t\t\t'new_item' => $this->nameNewItem,\n\t\t\t'view_item' => $this->nameView,\n\t\t\t'search_items' => $this->nameSearch,\n\t\t\t'not_found' => $this->msgNotFound,\n\t\t\t'not_found_in_trash' => $this->msgNotFoundTash,\n\t\t\t'parent_item_colon' => $this->msgParentItemColon\n\t\t);\n\t}", "protected\n\tfunction getLabel()\n\t{\n\t\tPluginHelper::importPlugin(\"jevents\");\n\t\t$id = $this->id;\n\t\tif (version_compare(JVERSION, '3.3.0', '<'))\n\t\t{\n\t\t\t$res = Factory::getApplication()->triggerEvent('onEditMenuItem', array(&$this->data, &$this->value, $this->type, $this->name, $this->id, $this->form));\n\t\t}\n\t\tif (isset($this->data[$id]))\n\t\t{\n\t\t\t$this->element['label'] = $this->data[$id]->label;\n\t\t\t$this->description = $this->data[$id]->description;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->element['label'] = \"\";\n\t\t\t$this->description = \"\";\n\t\t}\n\n\t\treturn parent::getLabel();\n\n\t}", "function register_block_core_term_description()\n {\n }", "public function getChildSelectorName() {}", "function register_block_core_comments_title()\n {\n }", "public function getTabLabel()\n {\n return Mage::helper('sc_cmsblockmanagement')->__('Versions');\n }", "public function testCompileBlockChildAppend()\n {\n $result = $this->smarty->fetch('test_block_child_append.tpl');\n $this->assertContains(\"Default Title - append\", $result);\n }", "public function getFrontendLabel();", "function wp_get_block_default_classname($block_name)\n {\n }", "abstract protected function label(): string;", "public function getTabLabel()\n {\n return Mage::helper('temando')->__('General');\n }", "public function testCompileBlockChild()\n {\n $result = $this->smarty->fetch('test_block_child.tpl');\n $this->assertContains('Page Title', $result);\n }", "function register_block_core_query_title()\n {\n }", "function change_admin_post_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Recipes';\n\t$submenu['edit.php'][5][0] = 'Recipes';\n\t$submenu['edit.php'][10][0] = 'Add Recipe';\n\t$submenu['edit.php'][16][0] = 'Tags';\n\techo '';\n}", "public function setLabel() {\n }", "public function getChildSelectorName();", "public function get_name() {\n return 'electro_elementor_product_onsale_block';\n }", "function register_block_core_legacy_widget()\n {\n }", "public static function parent()\n\t{\n $label = Text::_('JPARENT');\n\n $html = <<<EOT\n<label for=\"parent\">$label</label>\n<span name=\"parent\" class=\"\" aria-hidden=\"true\"><i>Implement ViewTemplates/Common/HelperEditWidgets::parent</i></span>\nEOT;\n\n\t\treturn $html;\n }", "function wp_apply_custom_classname_support($block_type, $block_attributes)\n {\n }", "public function testCompileBlockParent()\n {\n $result = $this->smarty->fetch('test_block_parent.tpl');\n $this->assertContains('Default Title', $result);\n }", "public function getTabLabel()\n {\n return Mage::helper('magna_news')->__('Content');\n }", "public function getTabLabel()\r\n {\r\n return Mage::helper('slideshow')->__('Slide Information');\r\n }", "public function label() { }", "public function getTabLabel()\n {\n return __('Content and Design');\n }", "public function testCompileBlockChildAppendShortag()\n {\n $result = $this->smarty->fetch('test_block_child_append_shorttag.tpl');\n $this->assertContains(\"Default Title - append\", $result);\n }", "public function getTabLabel()\r\n {\r\n return __('General Group');\r\n }", "private function overrideChildrenNames(Node $node)\n {\n if ($node instanceof Node\\Stmt\\UseUse) {\n $node->name = new Node\\Name\\FullyQualified($node->name->parts);\n }\n }", "public function getLabel() {\n\t}", "public function testCompileBlockParentNested()\n {\n $result = $this->smarty->fetch('test_block_parent_nested.tpl');\n $this->assertContains('Title with -default- here', $result);\n }", "public function getTabLabel()\n {\n return Mage::helper('recomiendo_recipes')->__('Ingredientes');\n }", "public function get_label();", "public function get_label();", "public function getTabLabel()\n {\n return Mage::helper('gri_cms')->__('Versions');\n }", "function admin_leftside_menu_block($block_name) {\n\tglobal $t, $admin_leftside_menu_tree;\n\t$t->set_file(\"block_body\", \"admin_block_leftside_menu.html\");\n\t$va_version_code = va_version_code();\n\n\t$permissions = get_permissions();\n\t$current_breads = admin_leftside_menu_breadcrumbs();\n\t$i = 0;\n\tforeach ($admin_leftside_menu_tree[$current_breads[\"TYPE\"][0]][\"subs\"] AS $leftside_group_title => $leftside_group_vars ) {\n\t\t$i++;\n\t\t$t->set_var(\"leftside_items\", \"\");\n\t\t$t->set_var(\"leftside_item\", \"\");\n\t\t$t->set_var(\"leftside_group_id\", \"leftside_group_\" . $i);\n\t\t\n\t\t$t->set_var(\"leftside_group_class\", \"leftNavNonActive\");\n\t\tif (isset($current_breads[\"GROUP\"])) {\n\t\t\tif ($current_breads[\"GROUP\"][0] == $leftside_group_title) {\n\t\t\t\t$t->set_var(\"leftside_group_class\", \"leftNavActive\");\n\t\t\t}\n\t\t} elseif ($i==1) {\n\t\t\t$t->set_var(\"leftside_group_class\", \"leftNavActive\");\n\t\t}\n\t\t$t->set_var(\"leftside_group_title\", $leftside_group_title);\n\t\tif (isset($leftside_group_vars[\"href\"])) {\n\t\t\t$t->set_var(\"leftside_group_href\", $leftside_group_vars[\"href\"]);\n\t\t} else {\n\t\t\t$t->set_var(\"leftside_group_href\", \"#\\\" onclick=\\\"overhid('leftside_group_$i'); return false;\\\"\");\n\t\t}\n\t\tif (isset($leftside_group_vars[\"perm\"])) {\n\t\t\tif (!get_setting_value($permissions, $leftside_group_vars[\"perm\"], 0)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (isset($leftside_group_vars[\"code\"])) {\n\t\t\tif (!($leftside_group_vars[\"code\"] & $va_version_code)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\tif (isset($leftside_group_vars[\"subs\"])) {\n\t\t\t$items_index = 0;\n\t\t\tforeach ($leftside_group_vars[\"subs\"] AS $leftside_item_title => $leftside_item_vars) {\n\t\t\t\tif ((is_array($leftside_item_vars) && isset($leftside_item_vars[\"href\"]))) {\n\t\t\t\t\t$leftside_item_href = $leftside_item_vars[\"href\"];\n\t\t\t\t} else {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (isset($leftside_item_vars[\"perm\"])) {\n\t\t\t\t\tif (!get_setting_value($permissions, $leftside_item_vars[\"perm\"], 0)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$items_index++;\n\t\t\t\tif (isset($current_breads[\"ITEM\"][0]) && ($current_breads[\"ITEM\"][0] == $leftside_item_title)) {\n\t\t\t\t\t$t->set_var(\"leftside_class\", \"leftNavSubActive\");\n\t\t\t\t} else {\n\t\t\t\t\t$t->set_var(\"leftside_class\", \"leftNavSub\");\n\t\t\t\t}\n\t\t\t\t$t->set_var(\"leftside_title\", $leftside_item_title);\n\t\t\t\t$t->set_var(\"leftside_href\", $leftside_item_href);\n\t\t\t\t\n\t\t\t\t$t->parse(\"leftside_item\");\n\t\t\t}\n\t\t\tif ($items_index) {\n\t\t\t\t$t->parse(\"leftside_items\");\t\t\t\n\t\t\t}\n\t\t}\n\t\t$t->parse(\"leftside_group\");\n\t}\n\t\n\t\n\t$t->parse(\"block_body\", false);\n\t$t->parse_to(\"block_body\", $block_name, true);\n}", "public function name() {\n\t\treturn __( 'Option Container', 'thrive-cb' );\n\t}", "function getChildSelectorName() ;", "public function getTabLabel()\n {\n return Mage::helper('cms')->__('CSS & JS');\n }", "public function getTabLabel()\r\n {\r\n return Mage::helper('attributeSplash')->__('Conditions');\r\n }", "public function getLabel()\n {\n }", "public function getLabel()\n {\n }", "function render_block_core_site_title($attributes)\n {\n }", "private function getContentBlockName()\n\t{\n\t\tif ($this->test->getKioskMode())\n\t\t{\n\t\t\t$this->tpl->setBodyClass(\"kiosk\");\n\t\t\t$this->tpl->setAddFooter(FALSE);\n\t\t\treturn \"CONTENT\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"ADM_CONTENT\";\n\t\t}\n\t}", "function label() {\n return \"<label>\".$this->label.\": </label>\";\n }", "public function title(BlockInterface $block) {\n // @todo Wrap \"Configure \" in <span class=\"visually-hidden\"></span> once\n // https://www.drupal.org/node/2359901 is fixed.\n return $this->t('Configure @block', ['@block' => $block->getPlugin()->getPluginDefinition()['admin_label']]);\n }", "public function getTabLabel()\n {\n return Mage::helper('lavi_news')->__('News Info');\n }", "function register_block_core_widget_group()\n {\n }", "public function getTabLabel()\r\n {\r\n return __('Design');\r\n }", "public static function label()\n {\n }", "public function getName()\n {\n return 'ic_core_field.twig.extension.aliasToLabel';\n }", "function getLabelField() \n {\n return \"label_label\";\n }", "public function get_label(){ return $this->label; }", "abstract function add_label();", "function register_block( $name ) {\n\t\n\t\t\tacf_register_block( array(\n\t\t\t\t'name' => str_replace('-', ' ', $name),\n\t\t\t\t'title' => __( str_replace('-', ' ', ucwords( $name, '-' )), 'genlite' ),\n\t\t\t\t'description' => __( str_replace('-', ' ', ucwords( $name, '-' )) . ' block.', 'genlite' ),\n\t\t\t\t'render_callback' => function( $block, $content = '', $is_preview = false ) {\n\t\t\t\t\t$context = Timber::context();\n\t\t\t\t\n\t\t\t\t\t// Store block values.\n\t\t\t\t\t$context['block'] = $block;\n\t\t\t\t\n\t\t\t\t\t// Store field values.\n\t\t\t\t\t$context['fields'] = get_fields();\n\t\t\t\t\n\t\t\t\t\t// Store $is_preview value.\n\t\t\t\t\t$context['is_preview'] = $is_preview;\n\n\t\t\t\t\t// Render the block.\n\t\t\t\t\tTimber::render( 'templates/blocks/' . str_replace(' ', '-', strtolower( $block['title'] )) . '.twig', $context );\n\t\t\t\t},\n\t\t\t\t'category' => 'genlite-blocks',\n\t\t\t\t'icon' => '',\n\t\t\t\t'keywords' => array( $name ),\n\t\t\t\t'mode' \t\t\t => 'edit'\n\t\t\t) );\t\n\t\t}", "public function getLabel()\n {\n return P4Cms_Navigation::expandMacros(parent::getLabel(), $this);\n }", "protected function getLabel()\n\t{\n\t\treturn str_replace($this->id, $this->id . '_id', parent::getLabel());\n\t}", "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Artists';\n $submenu['edit.php'][5][0] = 'Artists';\n $submenu['edit.php'][10][0] = 'Add Artist';\n $submenu['edit.php'][16][0] = 'Artist Tags';\n}", "public function init() {\n global $CFG;\n $this->blockname = get_class($this);\n $this->title = get_string('pluginname', $this->blockname);\n }", "public function testCompileBlockChildPrepend()\n {\n $result = $this->smarty->fetch('test_block_child_prepend.tpl');\n $this->assertContains(\"prepend - Default Title\", $result);\n }", "function _get_custom_object_labels($data_object, $nohier_vs_hier_defaults)\n {\n }", "public function getTabLabel()\r\n {\r\n return __('Designer Information');\r\n }", "function CreateChildControls() {\n }", "public function getTabLabel() {\r\n return Mage::helper('amlanding')->__('Links');\r\n }", "function render_block_core_widget_group($attributes, $content, $block)\n {\n }", "function wp_register_custom_classname_support($block_type)\n {\n }", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "public function get_name() {\n return 'Alita_elementor_product_onsale_block';\n }", "public function getTabLabel()\r\n {\r\n return __('Template Information');\r\n }", "function myblocks() {\n $this->name=\"myblocks\";\n $this->title=\"<#LANG_MODULE_MYBLOCKS#>\";\n $this->module_category=\"<#LANG_SECTION_SETTINGS#>\";\n $this->checkInstalled();\n}", "function phpbits_render_breadcrumbs_block( $attributes ) {\n\t\n\treturn 'This is the content';\n}", "public function specialization() {\n if (!empty($this->config->blocktitle)) {\n $this->title = $this->config->blocktitle;\n } else {\n $this->title = get_string('config_blocktitle_default', 'block_course_modulenavigation');\n }\n }", "public function getLabel()\n\t{\n\t\techo '<div class=\"clr\"></div>';\n\t\tif ((string)$this->element['hr'] == 'true') {\n\t\t\treturn '<hr />';\n\t\t} else {\n\t\t\treturn parent::getLabel();\n\t\t}\n\t\techo '<div class=\"clr\"></div>';\n\t}", "function phpbits_register_breadcrumbs_block() {\n\t// Return early if this function does not exist.\n\tif ( ! function_exists( 'register_block_type' ) ) {\n\t\treturn;\n\t}\n\n\t// Load attributes from block.json.\n\tob_start();\n\tinclude BREADCRUMBSBLOCK_PLUGIN_DIR . 'src/blocks/breadcrumbs/block.json';\n\t$metadata = json_decode( ob_get_clean(), true );\n\tregister_block_type(\n\t\t$metadata['name'],\n\t\tarray(\n\t\t\t'editor_script' => 'breadcrumbs-block-editor',\n\t\t\t'editor_style' => 'breadcrumbs-block-editor-css',\n\t\t\t'style' => 'breadcrumbs-block-frontend',\n\t\t\t'attributes' => $metadata['attributes'],\n\t\t\t'render_callback' => 'phpbits_render_breadcrumbs_block',\n\t\t)\n\t);\n}", "public function label()\n {\n\n }", "public function getTabLabel()\r\n\t{\r\n\t\treturn Mage::helper('slider')->__('Banner Info');\r\n\t}", "public function init() {\n $this->title = get_string('blockname', 'block_graph_stats');\n }", "function my_module_plugin_admin_info($subtype, $conf, $context) {\n // Set the title that shows on the admin Content page to the overridden title.\n $block = new stdClass();\n $title_text = \"My Special Page Section\";\n\n if (!empty($title_text)) {\n $admin_title = $title_text;\n }\n else {\n $admin_title = 'No Title';\n }\n $block->title = $conf['override_title_text'] ? $conf['override_title_text'] : $admin_title;\n return $block;\n}", "public function getLabel(): \\Magento\\Framework\\Phrase;", "public function getName()\n {\n if (in_array($this->block, array_keys(self::BLOCK_NAME))) {\n return self::BLOCK_NAME[$this->block];\n }else {\n return \"not found\";\n }\n }", "function getDisplayName() {\n\t\treturn 'Crossmark Button';\n\t}", "function my_custom_any_label_bedrooms() {\n\t$label = 'All';\n\treturn $label;\n}", "function wp_apply_generated_classname_support($block_type)\n {\n }", "public static function label()\n {\n return __('Menus');\n }", "public function getLabel() {}", "public function getLabel() {}", "protected function addNamesLabelsValues() {\n foreach ($this->__fields() as $field) {\n $this->$field->__name = $field;\n if (!$this->$field->label && $this->$field->label !== '') $this->$field->label = strtoupper($field[0]) . substr ($field, 1);\n $this->setFieldValue($field);\n $this->$field->setForm($this);\n }\n }", "public function getTabLabel()\n {\n return Mage::helper('blog')->__('Comment Information');\n }", "function my_module_hero_image_admin_info($subtype, $conf, $context) {\n // Set the title that shows on the admin Content page to the overridden title.\n $block = new stdClass();\n if (!empty($conf['title_text'])) {\n $conf_title = $conf['title_text'];\n }\n else {\n $conf_title = 'No Title';\n }\n $block->title = $conf['override_title_text'] ? $conf['override_title_text'] : $conf_title;\n return $block;\n}", "public function getTreeLabel()\n\t{\n\t\t$ret = $this->title;\n\t\tif ($this->depth > 1) {\n\t\t\t$prefix = Module::getInstance()->params['treeLevelPrefix'];\n\t\t\t$ret = sprintf('%s %s', str_repeat($prefix, $this->depth - 1), $ret);\n\t\t}\n\t\treturn $ret;\n\t}" ]
[ "0.6234933", "0.6093659", "0.6009149", "0.5999835", "0.59739745", "0.58930016", "0.5839702", "0.5786613", "0.5782116", "0.5778994", "0.57551986", "0.57163346", "0.56914043", "0.5685286", "0.5684032", "0.5662237", "0.5657879", "0.564992", "0.5635014", "0.5600986", "0.5598138", "0.559728", "0.5588376", "0.5574065", "0.5566394", "0.5563145", "0.5559563", "0.5534122", "0.5531962", "0.55251986", "0.5518235", "0.55175334", "0.549646", "0.5487227", "0.54811096", "0.54794765", "0.54764307", "0.5473432", "0.54658735", "0.54651904", "0.5464074", "0.54615813", "0.54559004", "0.54559004", "0.54501206", "0.54450744", "0.5442575", "0.5439746", "0.5438357", "0.54361457", "0.5435889", "0.5435889", "0.5414645", "0.5400466", "0.5395207", "0.53909427", "0.53858334", "0.5385034", "0.53723735", "0.53593904", "0.5359296", "0.5346838", "0.5346372", "0.53409594", "0.5337863", "0.5335815", "0.53313464", "0.53246814", "0.5320328", "0.53159964", "0.5314987", "0.53114843", "0.53104436", "0.53036654", "0.53011376", "0.52989995", "0.52901566", "0.52743554", "0.5273486", "0.52725804", "0.5270048", "0.5269636", "0.52690727", "0.5268624", "0.52676994", "0.5265776", "0.52590424", "0.525839", "0.52559876", "0.5254664", "0.52331465", "0.5227044", "0.5225887", "0.522307", "0.5222459", "0.5222459", "0.5220768", "0.5220553", "0.5219367", "0.52132624" ]
0.5307053
73
The block "_name_c_entry_label" should be overridden in the theme of the implemented driver.
public function testChoiceRowWithCustomBlock() { $form = $this->factory->createNamedBuilder('name_c', 'Symfony\Component\Form\Extension\Core\Type\ChoiceType', 'a', [ 'choices' => ['ChoiceA' => 'a', 'ChoiceB' => 'b'], 'expanded' => true, ]) ->getForm(); $this->assertWidgetMatchesXpath($form->createView(), [], '/div [ ./label[.="Custom name label: [trans]ChoiceA[/trans]"] /following-sibling::label[.="Custom name label: [trans]ChoiceB[/trans]"] ] ' ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function label()\n {\n return 'Bukeri';\n }", "function register_block_core_heading()\n {\n }", "function register_block_core_comments_title()\n {\n }", "protected function get_label(): string {\n\t\treturn 'You need to override the get_label() method in your class.';\n\t}", "public function getFrontendLabel();", "function register_block_core_term_description()\n {\n }", "function register_block_core_site_title()\n {\n }", "function localizeLabels() {\n // (standard fields) and the artifact field table with a special flag and make sure\n // all tracker scripts handle them properly\n // For now make a big hack!! (see import.php func=showformat)\n $submitted_field = $this->art_field_fact->getFieldFromName('submitted_by');\n if (strstr($submitted_field->getLabel(),\"ubmit\")) {\n // Assume English\n $this->lbl_list['follow_ups'] = 'Follow-up Comments';\n $this->lbl_list['is_dependent_on'] = 'Depend on';\n $this->lbl_list['add_cc'] = 'CC List';\n $this->lbl_list['cc_comment'] = 'CC Comment';\n\n $this->dsc_list['follow_ups'] = 'All follow-up comments in one chunck of text';\n $this->dsc_list['is_dependent_on'] = 'List of artifacts this artifact depends on';\n $this->dsc_list['add_cc'] = 'List of persons to receive a carbon-copy (CC) of the email notifications (in addition to submitter, assignees, and commenters)';\n $this->dsc_list['cc_comment'] = 'Explain why these CC names were added and/or who they are';\n\n } else {\n // Assume French\n $this->lbl_list['follow_ups'] = 'Commentaires';\n $this->lbl_list['is_dependent_on'] = 'Depend de';\n $this->lbl_list['add_cc'] = 'Liste CC';\n $this->lbl_list['cc_comment'] = 'Commentaire CC';\n\n $this->dsc_list['follow_ups'] = 'Tout le fil de commentaires en un seul bloc de texte';\n $this->dsc_list['is_dependent_on'] = 'Liste des artefacts dont celui-ci depend';\n $this->dsc_list['add_cc'] = 'Liste des pesonnes recevant une copie carbone (CC) des notifications e-mail (en plus de la personne qui l\\'a soumis, a qui on l\\'a confie ou qui a poste un commentaire)';\n $this->dsc_list['cc_comment'] = 'Explique pourquoi ces personnes sont en CC ou qui elles sont';\n }\n }", "function wp_get_block_default_classname($block_name)\n {\n }", "function felix_block_names() {\n \n $blocks = array(\n 'disabled' => __( 'Disabled', 'felix-landing-page' ),\n 'header' => __( 'Header', 'felix-landing-page' ),\n 'jumbotron' => __( 'Hero', 'felix-landing-page' ),\n 'navbar' => __( 'Navigation Bar', 'felix-landing-page' ),\n 'products' => __( 'Featured Products', 'felix-landing-page' ),\n 'content' => __( 'Content', 'felix-landing-page' ),\n 'articles' => __( 'Featured Articles', 'felix-landing-page' ),\n 'footer' => __( 'Footer' )\n );\n \n return $blocks;\n \n}", "public function getTabLabel()\r\n {\r\n return __('Designer Information');\r\n }", "public function getTabLabel()\n {\n return Mage::helper('blog')->__('Comment Information');\n }", "protected\n\tfunction getLabel()\n\t{\n\t\tPluginHelper::importPlugin(\"jevents\");\n\t\t$id = $this->id;\n\t\tif (version_compare(JVERSION, '3.3.0', '<'))\n\t\t{\n\t\t\t$res = Factory::getApplication()->triggerEvent('onEditMenuItem', array(&$this->data, &$this->value, $this->type, $this->name, $this->id, $this->form));\n\t\t}\n\t\tif (isset($this->data[$id]))\n\t\t{\n\t\t\t$this->element['label'] = $this->data[$id]->label;\n\t\t\t$this->description = $this->data[$id]->description;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->element['label'] = \"\";\n\t\t\t$this->description = \"\";\n\t\t}\n\n\t\treturn parent::getLabel();\n\n\t}", "function register_block_core_post_title()\n {\n }", "public function getTabLabel()\n {\n return Mage::helper('cms')->__('CSS & JS');\n }", "function register_block_core_site_title() {\n\tregister_block_type_from_metadata(\n\t\t__DIR__ . '/site-title',\n\t\tarray(\n\t\t\t'render_callback' => 'render_block_core_site_title',\n\t\t)\n\t);\n}", "function wp_apply_custom_classname_support($block_type, $block_attributes)\n {\n }", "public function getTabLabel()\r\n {\r\n return Mage::helper('attributeSplash')->__('Conditions');\r\n }", "function getLabelField() \n {\n return \"label_label\";\n }", "public function autoLabelNeeded();", "function register_block( $name ) {\n\t\n\t\t\tacf_register_block( array(\n\t\t\t\t'name' => str_replace('-', ' ', $name),\n\t\t\t\t'title' => __( str_replace('-', ' ', ucwords( $name, '-' )), 'genlite' ),\n\t\t\t\t'description' => __( str_replace('-', ' ', ucwords( $name, '-' )) . ' block.', 'genlite' ),\n\t\t\t\t'render_callback' => function( $block, $content = '', $is_preview = false ) {\n\t\t\t\t\t$context = Timber::context();\n\t\t\t\t\n\t\t\t\t\t// Store block values.\n\t\t\t\t\t$context['block'] = $block;\n\t\t\t\t\n\t\t\t\t\t// Store field values.\n\t\t\t\t\t$context['fields'] = get_fields();\n\t\t\t\t\n\t\t\t\t\t// Store $is_preview value.\n\t\t\t\t\t$context['is_preview'] = $is_preview;\n\n\t\t\t\t\t// Render the block.\n\t\t\t\t\tTimber::render( 'templates/blocks/' . str_replace(' ', '-', strtolower( $block['title'] )) . '.twig', $context );\n\t\t\t\t},\n\t\t\t\t'category' => 'genlite-blocks',\n\t\t\t\t'icon' => '',\n\t\t\t\t'keywords' => array( $name ),\n\t\t\t\t'mode' \t\t\t => 'edit'\n\t\t\t) );\t\n\t\t}", "public function setLabel() {\n }", "public function getTabLabel()\r\n {\r\n return __('Template Information');\r\n }", "function getModifyCaption() \r\n \t{\r\n \t\treturn '';\r\n \t}", "function register_block_core_comment_author_name()\n {\n }", "public function getTabLabel()\n {\n return __('Content and Design');\n }", "function render_block_core_post_title($attributes, $content, $block)\n {\n }", "public function get_label();", "public function get_label();", "public function getTabLabel()\n {\n return Mage::helper('sc_cmsblockmanagement')->__('Versions');\n }", "private function setLabels(){\n\t\t$this->labels = array(\n\t\t\t'name' => $this->name,\n\t\t\t'singular_name' => $this->nameMenuSingular,\n\t\t\t'menu_name' => $this->nameMenu,\n\t\t\t'all_items' => $this->nameAll,\n\t\t\t'add_new' => $this->nameAddNew,\n\t\t\t'add_new_item' => $this->nameNewItem,\n\t\t\t'edit_item' => $this->nameEdit,\n\t\t\t'new_item' => $this->nameNewItem,\n\t\t\t'view_item' => $this->nameView,\n\t\t\t'search_items' => $this->nameSearch,\n\t\t\t'not_found' => $this->msgNotFound,\n\t\t\t'not_found_in_trash' => $this->msgNotFoundTash,\n\t\t\t'parent_item_colon' => $this->msgParentItemColon\n\t\t);\n\t}", "function getDisplayName() {\n\t\treturn __('plugins.block.keywordCloud.displayName');\n\t}", "public function get_label() {\n\t\t\treturn __( 'Costumapi', 'text-domain' );\n\t\t}", "public function getTabLabel()\n {\n return Mage::helper('temando')->__('General');\n }", "function wp_register_custom_classname_support($block_type)\n {\n }", "public static function label()\n {\n }", "public function define_label_for_store_credit() {\n\t\t\tglobal $store_credit_label;\n\n\t\t\tif ( empty( $store_credit_label ) || ! is_array( $store_credit_label ) ) {\n\t\t\t\t$store_credit_label = array();\n\t\t\t}\n\n\t\t\tif ( empty( $store_credit_label['singular'] ) ) {\n\t\t\t\t$store_credit_label['singular'] = get_option( 'sc_store_credit_singular_text' );\n\t\t\t}\n\n\t\t\tif ( empty( $store_credit_label['plural'] ) ) {\n\t\t\t\t$store_credit_label['plural'] = get_option( 'sc_store_credit_plural_text' );\n\t\t\t}\n\n\t\t}", "public function label() { }", "function register_block_core_query_title()\n {\n }", "function getLabelField() \n {\n return \"navbarlink_textKey\";\n }", "public function getTabLabel()\r\n {\r\n return __('Design');\r\n }", "function menu_ctools_block_info($module, $delta, &$info) {\n $info['icon'] = 'icon_core_block_menu.png';\n $info['category'] = t('Menus');\n if ($delta == 'primary-links' || $delta == 'secondary-links') {\n $info['icon'] = 'icon_core_primarylinks.png';\n }\n}", "public function setLabel();", "function render_block_core_comment_author_name($attributes, $content, $block)\n {\n }", "function myblocks() {\n $this->name=\"myblocks\";\n $this->title=\"<#LANG_MODULE_MYBLOCKS#>\";\n $this->module_category=\"<#LANG_SECTION_SETTINGS#>\";\n $this->checkInstalled();\n}", "function pnAddressBook_admin_labels($args) {\r\n\tglobal $bgcolor1,$bgcolor2,$bgcolor3,$bgcolor4;\r\n\r\n $output = new pnHTML();\r\n\t$output->SetInputMode(_PNH_VERBATIMINPUT);\r\n\t$output->Text(pnAddressBook_themetable('start'));\r\n\r\n\t// some design ;)\r\n\t$bc1 = $bgcolor1;\r\n\t$bc2 = $bgcolor2;\r\n\tif ($bgcolor1 == $bgcolor2) {\r\n\t\tif ($bgcolor1 == $bgcolor3) {\r\n\t\t\t$bc2 = $bgcolor4;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$bc2 = $bgcolor3;\r\n\t\t}\r\n\t}\r\n\r\n // Security check\r\n if (!pnSecAuthAction(0, 'pnAddressBook::', '::', ACCESS_ADMIN)) {\r\n $output->Text(pnVarPrepHTMLDisplay(_PNADDRESSBOOK_NOAUTH));\r\n $output->Text(pnAddressBook_themetable('end'));\r\n\t\treturn $output->GetOutput();\r\n }\r\n\r\n $output->Text(pnAddressBook_admin_menu());\r\n\t$output->Text(pnAddressBook_themetable('end'));\r\n\t$msg = pnVarCleanFromInput('msg');\r\n\tif ($msg) { $output->Text('<div align=\"center\">'.$msg.'</div>');}\r\n\telse {$output->Linebreak(1); }\r\n\r\n $labels = pnModAPIFunc(__PNADDRESSBOOK__,'admin','getLabels');\r\n if(!is_array($labels)) {\r\n $output->Text($labels);\r\n return $output->GetOutput();\r\n }\r\n\r\n\t// Start form\r\n $output->FormStart(pnModURL(__PNADDRESSBOOK__, 'admin', 'updatelabels'));\r\n\r\n // Add an authorisation ID\r\n $output->FormHidden('authid', pnSecGenAuthKey());\r\n\r\n\t$output->Text(pnAddressBook_themetable('start'));\r\n\t$output->Linebreak(1);\r\n\t$output->Text('<table align=\"center\" cellpadding=\"5\" cellspacing=\"1\" bgcolor=\"'.$bc2.'\">');\r\n\t$output->TableRowStart();\r\n\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t$output->Text('<b>'.pnVarPrepHTMLDisplay(_pnAB_LAB_NAME).'</b>');\r\n\t$output->TableColEnd();\r\n\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t$output->Text('<b>'.pnVarPrepHTMLDisplay(_pnAB_LAB_DELETE).'</b>');\r\n\t$output->TableColEnd();\r\n\t$output->TableRowEnd();\r\n\r\n\tforeach($labels as $label) {\r\n\t\t$output->TableRowStart();\r\n\t\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t\t$output->FormText('name[]',$label['name'],20,30);\r\n\t\t$output->TableColEnd();\r\n\t\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t\t$output->FormHidden('id[]',$label['nr']);\r\n\t\t$output->FormCheckbox('del[]',false,$label['nr']);\r\n\t\t$output->TableColEnd();\r\n\t\t$output->TableRowEnd();\r\n\t}\r\n\r\n\t$output->TableRowStart();\r\n\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t$output->FormText('newname','',20,30);\r\n\t$output->TableColEnd();\r\n\t$output->Text('<td align=\"center\" valign=\"middle\" bgcolor=\"'.$bc1.'\">');\r\n\t$output->Text(_pnAB_LAB_NEW);\r\n\t$output->TableColEnd();\r\n\t$output->TableRowEnd();\r\n\r\n\t$output->TableRowEnd();\r\n\t$output->Text('</table>');\r\n\t$output->Linebreak(1);\r\n\t$output->Text(pnAddressBook_themetable('end'));\r\n\r\n\t// End form\r\n\t$output->Linebreak(1);\r\n\t$output->Text(pnAddressBook_themetable('start'));\r\n\t$output->Text('<div align=\"center\"><br>');\r\n $output->FormSubmit(pnVarPrepHTMLDisplay(_pnAB_PNADDRESSBOOKUPDATE));\r\n\t$output->Text('<br><br></div>');\r\n\t$output->Text(pnAddressBook_themetable('end'));\r\n $output->FormEnd();\r\n\r\n\t// Return the output that has been generated by this function\r\n $output->SetInputMode(_PNH_PARSEINPUT);\r\n\treturn $output->GetOutput();\r\n}", "public function getTabLabel()\n {\n return Mage::helper('magna_news')->__('Content');\n }", "private function getContentBlockName()\n\t{\n\t\tif ($this->test->getKioskMode())\n\t\t{\n\t\t\t$this->tpl->setBodyClass(\"kiosk\");\n\t\t\t$this->tpl->setAddFooter(FALSE);\n\t\t\treturn \"CONTENT\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"ADM_CONTENT\";\n\t\t}\n\t}", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function getLabelField() \n {\n return \"No Field Label Marked\";\n }", "function get_dynamic_block_names()\n {\n }", "function render_block_core_post_author_name($attributes, $content, $block)\n {\n }", "public function getTabLabel()\n {\n return Mage::helper('lavi_news')->__('News Info');\n }", "public function getHTMLName() {\n\t\treturn 'Custom Cloud';\n\t}", "public function getTabLabel()\n {\n return __('Entities');\n }", "public function title(BlockInterface $block) {\n // @todo Wrap \"Configure \" in <span class=\"visually-hidden\"></span> once\n // https://www.drupal.org/node/2359901 is fixed.\n return $this->t('Configure @block', ['@block' => $block->getPlugin()->getPluginDefinition()['admin_label']]);\n }", "public function getTabLabel()\r\n\t{\r\n\t\treturn Mage::helper('slider')->__('Banner Info');\r\n\t}", "function ctools_default_block_info($module, $delta, &$info) {\n $core_modules = array('aggregator', 'block', 'blog', 'blogapi', 'book', 'color', 'comment', 'contact', 'drupal', 'filter', 'forum', 'help', 'legacy', 'locale', 'menu', 'node', 'path', 'ping', 'poll', 'profile', 'search', 'statistics', 'taxonomy', 'throttle', 'tracker', 'upload', 'user', 'watchdog', 'system');\n\n if (in_array($module, $core_modules)) {\n $info['icon'] = 'icon_core_block.png';\n $info['category'] = t('Miscellaneous');\n }\n else {\n $info['icon'] = 'icon_contrib_block.png';\n $info['category'] = t('Miscellaneous');\n }\n}", "public function name() {\n\t\treturn __( 'Option Container', 'thrive-cb' );\n\t}", "public function getTabLabel()\n {\n return __('Configuration');\n }", "public function getName()\n {\n return 'ic_core_field.twig.extension.aliasToLabel';\n }", "public function getDisplayLabel();", "public function getLabel()\n {\n return 'Bilder Widget';\n }", "abstract protected function label(): string;", "public function getLabel()\n {\n }", "public function getLabel()\n {\n }", "public function defaultName() { return \"Enter the category name...\"; }", "function change_admin_post_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Recipes';\n\t$submenu['edit.php'][5][0] = 'Recipes';\n\t$submenu['edit.php'][10][0] = 'Add Recipe';\n\t$submenu['edit.php'][16][0] = 'Tags';\n\techo '';\n}", "public function getLabel() {\n\t}", "function comments_label( $label, $args = null ) {\n\t\t$custom = __( 'Reviews', 'searchwp_woocommerce' );\n\n\t\tif ( is_null( $args ) ) {\n\t\t\t// SearchWP 3.x.\n\t\t\treturn $custom;\n\t\t} else {\n\t\t\tif ( 'post.product' === $args['source'] && 'comments' === $args['attribute'] ) {\n\t\t\t\treturn $custom;\n\t\t\t} else {\n\t\t\t\treturn $label;\n\t\t\t}\n\t\t}\n\t}", "public function getHeaderText()\n {\n if (Mage::registry('cms_block')->getId()) {\n return Mage::helper('cms')->__('Edit Address');\n }\n else {\n return Mage::helper('cms')->__('New Address');\n }\n }", "function register_block_core_post_author_name()\n {\n }", "public function getTabLabel()\n {\n return Mage::helper('gri_cms')->__('Versions');\n }", "function getDisplayName() {\n\t\treturn 'Crossmark Button';\n\t}", "function getLabel()\n\t{\n\t\treturn '';\n\t}", "function showCSH($labelName='', $label='') {\n\t\t$refTCA = '_MOD_txllxmltranslateM1'; /* Reference for TCA (see extTable.php) */\n\n\t\treturn t3lib_BEfunc::wrapInHelp($refTCA, $labelName, $label);\n\t}", "function register_block_core_legacy_widget()\n {\n }", "public function setLabel($name, $label);", "public function getTabLabel()\n {\n return __('General information');\n }", "abstract function add_label();", "public function getLabel($name);", "function init() {\n global $CFG;\n $this->blockname = get_class($this);\n $this->title = get_string('blockname', $this->blockname);\n $this->version = 2009082800;\n }", "public function setLabel($newLabel);", "public function getTabLabel()\n {\n return Mage::helper('recomiendo_recipes')->__('Ingredientes');\n }", "function render_block_core_site_title($attributes)\n {\n }", "public function getTabLabel()\r\n {\r\n return __('Conditions');\r\n }", "public function getTabLabel()\n {\n return Mage::helper('catalogrule')->__('Conditions');\n }", "function admin_head() {\n $labels = array(\n 'Bold',\n 'Italic',\n 'Underline',\n 'Strikethrough',\n 'Insert'\n );\n $acf_field = '.acf-field[data-key=\"field_vf-gutenberg-lede_content\"]';\n $mce_btn = $acf_field . ' .mce-toolbar .mce-btn';\n?>\n<style>\n<?php echo $mce_btn; ?> {\n display: none;\n}\n<?php foreach ($labels as $label) { ?>\n<?php echo $mce_btn; ?>[aria-label^=\"<?php echo $label; ?>\"] {\n display: inline-block;\n}\n<?php } ?>\n</style>\n<?php\n }", "function wp_apply_generated_classname_support($block_type)\n {\n }", "public function GetLabel();", "public function getTabLabel() {\r\n return Mage::helper('amlanding')->__('Links');\r\n }", "function _wp_get_presets_class_name($block)\n {\n }", "protected function addDefaultLabel() {\r\n if ($this->isDefaultEanLabelEnabled()) {\r\n $this->processChecksum();\r\n $label = $this->getLabel();\r\n $font = $this->font;\r\n\r\n $this->labelLeft = new CINLabel(substr($label, 0, 4), $font, CINLabel::POSITION_BOTTOM, CINLabel::ALIGN_LEFT);\r\n $labelLeftDimension = $this->labelLeft->getDimension();\r\n $this->labelLeft->setOffset(($this->scale * 30 - $labelLeftDimension[0]) / 2 + $this->scale * 2);\r\n\r\n $this->labelRight = new CINLabel(substr($label, 4, 3) . $this->keys[$this->checksumValue], $font, CINLabel::POSITION_BOTTOM, CINLabel::ALIGN_LEFT);\r\n $labelRightDimension = $this->labelRight->getDimension();\r\n $this->labelRight->setOffset(($this->scale * 30 - $labelRightDimension[0]) / 2 + $this->scale * 34);\r\n\r\n $this->addLabel($this->labelLeft);\r\n $this->addLabel($this->labelRight);\r\n }\r\n }", "function revcon_change_post_label() {\n global $menu;\n global $submenu;\n $menu[5][0] = 'Artists';\n $submenu['edit.php'][5][0] = 'Artists';\n $submenu['edit.php'][10][0] = 'Add Artist';\n $submenu['edit.php'][16][0] = 'Artist Tags';\n}", "public function getTabLabel()\n {\n return __('General');\n }", "function init() {\n //$this->title = get_string('blockname', 'block_lpr');\n $this->title = 'ILP Reporting Tool';\n $this->version = 2010030100;\n }" ]
[ "0.5947965", "0.59298277", "0.5890136", "0.5889164", "0.5881047", "0.5875671", "0.58685946", "0.5857886", "0.5845861", "0.58158827", "0.5801238", "0.5784694", "0.57717556", "0.5755859", "0.5742422", "0.5733919", "0.5729956", "0.57282466", "0.5720487", "0.5719704", "0.57103825", "0.5702788", "0.5673247", "0.5669301", "0.56673855", "0.5654863", "0.5646523", "0.56373703", "0.56373703", "0.5637201", "0.56230265", "0.5616127", "0.560561", "0.56015325", "0.5597333", "0.5596268", "0.5594217", "0.5562886", "0.5559313", "0.5552393", "0.55511993", "0.55463654", "0.5540927", "0.55352825", "0.55324274", "0.5526882", "0.55160403", "0.5515125", "0.55004966", "0.55004966", "0.55004966", "0.55004966", "0.55004966", "0.55004966", "0.5489771", "0.5489226", "0.54860866", "0.5479033", "0.54659945", "0.5461659", "0.5453693", "0.5451255", "0.5449725", "0.54494065", "0.5442924", "0.5435011", "0.5431385", "0.54307157", "0.54274386", "0.54274386", "0.542229", "0.5417544", "0.5417256", "0.5416063", "0.54131436", "0.54113424", "0.5411107", "0.5405606", "0.5405563", "0.54035854", "0.5395412", "0.5389672", "0.5386605", "0.53855646", "0.5384752", "0.5381916", "0.53813237", "0.53753805", "0.5371187", "0.5367395", "0.5352073", "0.53481275", "0.53333455", "0.5329622", "0.5329121", "0.53263086", "0.5318155", "0.53111625", "0.53067064", "0.52944154" ]
0.55196255
46
Calculator equity position for finance
public function finance(int $value, int $paymentsRemaining, $paymentValue): float;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getPlayerEquity($player)\n {\n $queryString = \"SELECT transactions.*, stocks.Value AS customValue FROM transactions JOIN stocks ON stocks.Code = transactions.Stock WHERE Player='\" . $player . \"'\";\n $activity = $this->db->query($queryString);\n\n $stockArray = array();\n foreach ($activity->result() as $thisStock) {\n if (!isset($stockArray[$thisStock->Stock])) {\n $stockArray[$thisStock->Stock] = 0;\n }\n if ($thisStock->Trans == 'sell') {\n $stockArray[$thisStock->Stock] -= $thisStock->Quantity * $thisStock->customValue;\n } else if ($thisStock->Trans == 'buy') {\n $stockArray[$thisStock->Stock] += $thisStock->Quantity * $thisStock->customValue;\n }\n }\n $equity = 0;\n foreach ($stockArray as $thisStock) {\n $equity += $thisStock;\n }\n return $equity;\n }", "public function getCurrentPrice() : float;", "function get_indicator_price($price,$vat){\r\n $full_price = $price + ($price * $vat);\r\n return $full_price;\r\n}", "public function getCepPosition()\n {\n return $this->_scopeConfig->getValue('estimatecep/cep_load_values/cep_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "function show_position($userComparison) \n{\n\t$allTotals = array();\n\n\t$smallestValue = -1.0;\n\n\t$rightRoom = \"default\";\n\n\t$rightCoordinates = \"default\";\n\n\tforeach($userComparison as $value) {\n\t\n\n\t\t$local_relations = $value->get_relations();\n\n\t\t$temp_sum = 0.0;\n\n\t\t$n = 0;\n\n\t\tforeach($local_relations as $value_2) {\t\n\t\t\t$temp_sum = $temp_sum + $value_2;\n\t\t\t$n = $n + 1;\t\n\t\t\t}\n\t\n\t\tif ( $n >= 3) {\n\n\t\t\t$relative_sum = $temp_sum / (double)($n);\n\n\t\t\tif ($smallestValue == -1.0) {\n\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\n\t\t\t\t}\n\t\t\telseif ($smallestValue > $relative_sum) {\n\t\t\t\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\t\t\t\n\t\t\t\t}\n\n\n\t\t\t$totalDifference = new FprintDifference($value->get_room(), $value->get_position(), $relative_sum);\n\t\t\tarray_push($allTotals, $totalDifference);\n\t\t\t}\n\n\t}\n\n\n\techo $rightRoom . \": \" . $rightCoordinates . \", relative distance was:\" . $smallestValue;\n\n\n\treturn $allTotals;\n\n\n}", "public function calculVa() {\n\n return ($this->cp + $this->cb) / $this->nbta;\n }", "function getPriceSituation($game_id, $round_number, $company_id, $product_number, $region_number, $channel_number){\r\n\t\t\t$prices=new Model_DbTable_Decisions_Mk_Prices();\r\n\t\t\t$result=$prices->getAllDecisions($game_id, $round_number);\r\n\t\t\t$result_company=$result['company_id_'.$company_id];\r\n\t\t\t$result_product=$result_company['product_'.$product_number];\r\n\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t$company_price=$result_region;\r\n\t\t\t$max=0;\r\n\t\t\t$min=0;\r\n\t\t\t$min_counter=0;\r\n\t\t\t$companies=$this->getCompaniesInGame($game_id);\r\n\t\t\tforeach ($companies as $company) {\r\n\t\t\t\tif($company['id']!=$company_id){\r\n\t\t\t\t\t$result_company=$result['company_id_'.$company['id']];\r\n\t\t\t\t\t$result_product=$result_company['product_'.$product_number];\r\n\t\t\t\t\t$result_channel=$result_product['channel_'.$channel_number];\r\n\t\t\t\t\t$result_region=$result_channel['region_'.$region_number];\r\n\t\t\t\t\t$price=$result_region;\r\n\t\t\t\t}\r\n\t\t\t\telse $price=$company_price;\r\n\t\t\t\t//var_dump($price);\r\n\t\t\t\tif($min_counter==0){\r\n\t\t\t\t\t$min=$price;\r\n\t\t\t\t\t$min_counter++;\r\n\t\t\t\t}\r\n\t\t\t\tif ($price>$max){\r\n\t\t\t\t\t$max=$price;\r\n\t\t\t\t}\r\n\t\t\t\tif (($price<$min)&&($price!=0)){\r\n\t\t\t\t\t$min=$price;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif($min==$max){\r\n\t\t\t\treturn 100;\r\n\t\t\t}\r\n\t\t\t//$scale=$max-$min;\r\n\t\t\t//$situation=(($company_price*100)/$scale)-$scale;\r\n\t\t\t$situation=(($company_price-$min)/($max-$min))*100;\r\n\t\t\t$array['max']=$max;\r\n\t\t\t$array['min']=$min;\r\n\t\t\t$array['situation']=$situation;\r\n\t\t\treturn $array;\r\n\t\t}", "public function calculateEquityValue(): bool\n {\n return true;\n }", "protected function calculatePrices()\n {\n }", "public function getCartPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_cart_position');\n }", "public function getCartPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_cart_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getSolde(): float\n {\n return $this->solde;\n }", "function getFinanceAmount($game_id, $round_number, $company_id){\r\n\t\t\t$ProductsNumber=$this->getNumberOfProducts($game_id);\r\n\t\t\t$RegionsNumber=$this->getNumberOfRegions($game_id);\r\n\t\t\t$ChannelsNumber=$this->getNumberOfChannels($game_id);\r\n\t\t\t$total_market_size=0;\r\n\t\t\tfor ($ProductCounter = 1; $ProductCounter < ($ProductsNumber+1); $ProductCounter++) {\r\n\t\t\t\t$availability=$this->getProductAvailibility($game_id, $round_number, $company_id, $ProductCounter);\r\n\t\t\t\t//var_dump($availability);\r\n\t\t\t\tif($availability==1){\r\n\t\t\t\t\tfor ($RegionCounter = 1; $RegionCounter < ($RegionsNumber+1); $RegionCounter++) {\r\n\t\t\t\t\t\t$market_size=$this->getMarketSize($game_id, $round_number, $ProductCounter, $RegionCounter);\r\n\t\t\t\t\t\tfor ($ChannelCounter = 1; $ChannelCounter < ($ChannelsNumber+1); $ChannelCounter++) {\r\n\t\t\t\t\t\t\t$ideal_price=$this->getMarketPrices($game_id, $round_number, $ProductCounter, $ChannelCounter, $RegionCounter);\r\n\t\t\t\t\t\t\t$average_price=$ideal_price['ideal_price'];\r\n\t\t\t\t\t\t\t$total_market_size=$total_market_size+($market_size*$average_price);\r\n\t\t\t\t\t\t\t//var_dump($market_size);die();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t$total_market_size+=0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t$companies_counter=$this->getNumberOfCompanies($game_id);\r\n\t\t\t$amount=($total_market_size/$ChannelsNumber)/$companies_counter;\r\n\t\t\t\r\n\t\t\t$option[0]=array('value'=>ceil(0.0*$amount), 'descriptor'=>'Ninguno');\r\n\t\t\t$option[1]=array('value'=>ceil(0.6*$amount), 'descriptor'=>'Opción 1: '.number_format(ceil(0.6*$amount), 2, '.', ',').' €');\r\n\t\t\t$option[2]=array('value'=>ceil(0.9*$amount), 'descriptor'=>'Opción 2: '.number_format(ceil(0.9*$amount), 2, '.', ',').' €');\r\n\t\t\t$option[3]=array('value'=>ceil(1.2*$amount), 'descriptor'=>'Opción 3: '.number_format(ceil(1.2*$amount), 2, '.', ',').' €');\r\n\t\t\t\r\n\t\t\treturn $option;\r\n\t\t}", "public function setPrice()\n {\n $price = $this->price;\n $outFix = $this->outFix;\n $outPer = $this->outPer;\n $inPer = $this->inPer;\n $inFix = $this->inFix;\n $flag = $this->flagInOut;\n if ($price < 1) {\n $sumIn = $outFix > 0 ? 1 + $outFix : 1; //outFix\n $sumIn = $outPer > 0 ? $sumIn + ($sumIn * $outPer / 100) : $sumIn; //outPer\n $sumIn = $sumIn / $price; // price\n $sumIn = $inFix > 0 ? $sumIn + $inFix : $sumIn;// inFix\n $ss = $sumIn * $inPer / 100;\n $sumIn = $inPer > 0 ? $sumIn + $ss : $sumIn;\n $this->in = $this->format_amount($sumIn);\n $this->out = $flag ? 1 : 0;\n } else {\n $val = $inFix > 0 ? 1 - $inFix : 1;\n $val = $inPer > 0 ? $val - $val * ($inPer / 100) : $val;\n $sumOut = $price * $val;\n $sumOut = $outFix > 0 ? $sumOut - $outFix : $sumOut;\n $sumOut = $outPer > 0 ? $sumOut - $outPer / 100 * $sumOut : $sumOut;\n $this->out = $this->format_amount($sumOut);\n $this->in = $flag ? 1 : 0;\n }\n $this->price = (float)$price;\n }", "function getSaddleCost (&$labor, &$rawCost, $quantity) {\nif ($_POST[\"saddle\"] == \"saddle\") {\n\t$saddleLabor = (($quantity/SADDLEPERHOUR) * HOUR);\n\t$saddleCost = ($quantity * STAPLE);\n\t}\nelse {\n\t$saddleLabor = 0;\n\t$saddleCost = 0;\n\t}\n$labor += $saddleLabor;\n$rawCost += $saddleCost;\n}", "public function calc_order_point(){\n\t\t$this->_check_access(); //拒绝非法IP执行任务\n\t\t$this->_write_log(__FUNCTION__);\n\t\t$this->load->model('soma/sales_point_model', 'sp_model');\n\t\t$this->sp_model->trans_begin();\n\t\ttry {\n\n\t\t\t$s_time = date('Y-m-d H:i:s', strtotime(\"-2 hours\"));\n\n\t\t\t$days = $this->input->get('d');\n\t\t\tif($days) {\n\t\t\t\t$s_time = date('Y-m-d', strtotime(\"-$days days\")) . ' 00:00:00';\n\t\t\t}\n\n\t\t\t$this->sp_model->update_point_queue($s_time);\n\t\t\t$this->sp_model->trans_commit();\n\t\t\tdie('SUCCESS');\n\t\t} catch (Exception $e) {\n\t\t\t$this->sp_model->trans_rollback();\n\t\t}\n\t\tdie('Failed');\n\t}", "function getUVSpotCost (&$rawCost, $totalSheets) {\n\tif($_POST[\"uvSpot\"] == \"uvSpot\") {\n\t\t$uvSpotCost = UVSPOTSETUP;\n\t\t$uvSpotCost += ($totalSheets * UVSPOTCOST);\n\t}\nelse {\n\t$uvSpotCost = 0;\n\t}\n$rawCost += $uvSpotCost;\n}", "private function parse_total(){\n\t\t$production_formats = new \\gcalc\\db\\production\\formats();\n\t\t$product_constructor_name = '\\gcalc\\db\\product\\\\' . str_replace( '-', '_', $this->get_slug() );\n\t\t$product_constructor_exists = class_exists( $product_constructor_name );\n\t\t$product_constructor_cost_equasion_exists = $product_constructor_exists ? method_exists( $product_constructor_name, 'get_calc_data' ) : false;\n\n\n\n\t\t/*\n\t\tEquasion can be stored in product constructor or formats array.\n\t\tFormats array is a temporary means to keep data so product constructor is a preferred way\n\t\t */\n\t\t$total_cost_equasion = \n\t\t\t$product_constructor_cost_equasion_exists ? \n\t\t\t\t$product_constructor_name::get_calc_data( )\n\t\t\t\t: $production_formats->get_total_cost_equasion( $this->get_product_id() );\n\n\t\t$total_cost_equasion_string = $total_cost_equasion['equasion'];\n\n\t\t$total_cost_equasion = $total_cost_equasion_string;\n\t\t$total_pcost_equasion = $total_cost_equasion_string;\n\n\t\t\n\t\t/**\n\t\t * Keeps selling prices of used processes\n\t\t * @var array\n\t\t */\n\t\t$total_cost_array = array();\n\t\t/**\n\t\t * Keeps production costs of used processes\n\t\t * @var array\n\t\t */\n\t\t$total_pcost_array = array();\n\t\t/**\n\t\t * Keeps markups of used proceses\n\t\t * @var array\n\t\t */\n\t\t$total_markup_array = array();\n\t\t/**\n\t\t * All used in calculation formats\n\t\t * @var array\n\t\t */\n\t\t$used_formats_array = array();\n\t\t/**\n\t\t * All used in calculation media\t\t \n\t\t * @var array\n\t\t */\n\t\t$used_media_array = array();\n\n\t\t//checking credentials for data filter\t\t\n\t\t$credetials = $this->login();\n\t\t$al = $credetials['access_level'];\n\n\t\tforeach ($this->done as $key => $value) {\t\n\t\t\tif ( preg_match( '/'.$value->total['name'].'/', $total_cost_equasion_string )) {\n\t\t\t\t$total_cost_equasion = str_replace($value->total['name'], $value->total['total_price'], $total_cost_equasion);\t\t\t\t\t\t\n\t\t\t\t$total_pcost_equasion = str_replace($value->total['name'], $value->total['production_cost'], $total_pcost_equasion);\t\t\n\n\t\t\t\t$total_cost_array[ $value->total['name'] ] = $value->total['total_price'];\n\t\t\t\t$total_pcost_array[ $value->total['name'] ] = $value->total['production_cost'];\n\t\t\t\t$total_markup_array[ $value->total['name'] ] = $value->total['markup'];\n\t\t\t}\t\n\n\t\t\t//used formats total\n\t\t\tif ( preg_match( '/_format/', $value->total['name'] )) {\n\t\t\t\t$production_format_pieces = $value->total['extended']['production_format']['pieces'];\n\t\t\t\t$common_format_name = $value->total['extended']['production_format']['common_format']['name'];\n\t\t\t\t$common_format_width = $value->total['extended']['production_format']['common_format']['width'];\n\t\t\t\t$common_format_height = $value->total['extended']['production_format']['common_format']['height'];\n\n\t\t\t\t$production_format_format = $value->total['extended']['production_format']['format'];\n\t\t\t\t$production_format_width = $value->total['extended']['production_format']['width'];\n\t\t\t\t$production_format_height = $value->total['extended']['production_format']['height'];\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t* Filtering data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\t\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t$format_str = $production_format_pieces .' '. __('slots', 'gcalc') .' '. $common_format_name .'('.$common_format_width.'x'.$common_format_height.')' \n\t\t\t\t\t\t\t.' @ '. $production_format_format.'('.$production_format_width.'x'.$production_format_height.')';\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t$format_str = '';\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$format_str = $common_format_width.'x'.$common_format_height;\n\n\t\t\t\t}\n\n\n\t\t\t\t$used_formats_array[ $value->total['name'] ] = $format_str;\n\t\t\t}\n\t\t\t\n\t\t\t//used papers total\n\t\t\tif ( preg_match( '/_paper/', $value->total['name'] )) {\n\t\t\t\t$sheet_cost = $value->total['extended']['sheet_cost'];\n\t\t\t\t$sheets_quantity = $value->total['extended']['sheets_quantity'];\n\t\t\t\t$paper_price_per_kg = $value->total['extended']['paper']['price_per_kg'];\n\t\t\t\t$paper_label = $value->total['extended']['paper']['label'];\t\t\t\t\n\t\t\t\t$paper_thickness = $value->total['extended']['paper']['thickness'];\n\n\t\t\t\t/*\n\t\t\t\t* Filtering data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t$media_str = $sheets_quantity .' x ' . $paper_label . ' (' . $paper_thickness . 'mm)'\n\t\t\t\t\t\t.' @ ' . $sheet_cost . ' PLN / '. __('sheet','gcalc') .' (' . $paper_price_per_kg . '/kg) ';\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t$media_str = '';\t\n\t\t\t\t\t}\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$media_str = $paper_label;\n\n\t\t\t\t}\n\n\t\t\t\t$used_media_array[ $value->total['name'] ] = $media_str;\n\n\t\t\t}\n\t\t}\n\t\teval('$total_cost_ = ' . $total_cost_equasion . ';');\n\t\teval('$total_pcost_ = ' . $total_pcost_equasion . ';');\n\n\t\t$average_markup = count($total_markup_array) > 0 ? array_sum( $total_markup_array ) / count($total_markup_array) : 1;\n\n\n\n\n\t\t$total_ = array(\n\t\t\t'equasion' => $total_cost_equasion_string,\t\t\t\n\t\t\t'used_formats' => $used_formats_array,\n\t\t\t'used_media' => $used_media_array,\n\n\t\t\t'total_markup' => $total_markup_array,\n\t\t\t'total_cost_equasion' => $total_cost_array,\n\t\t\t'total_pcost_equasion' => $total_pcost_array,\n\t\t\t\n\t\t\t'average_markup' => ( ( $total_cost_ - $total_pcost_ ) / $total_pcost_ ) + 1, \n\t\t\t'total_cost_' => $total_cost_,\n\t\t\t'total_pcost_' => $total_pcost_\n\t\t);\n\n\t\t\t\t/*\n\t\t\t\t* Filtering total data\n\t\t\t\t*/\n\t\t\t\tif ( $al > 0) {\n\t\t\t\t\tif ($al > 5) { // admin, master only\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\n\t\t\t\t\t} else { // no data for account, inner\n\t\t\t\t\t\t\n\t\t\t\t\t\tunset($total_['used_formats']);\n\t\t\t\t\t\tunset($total_['used_media']);\n\t\t\t\t\t}\n\t\t\t\t} else { // 0 - anonymous\n\t\t\t\t\t$media_str = $paper_label;\n\n\t\t\t\t}\n\n\n\t\t$total_ = $this->merge_children_totals( $total_ );\n\t\t$this->total_ = $total_;\n\n\t}", "function poequation($pocount)\n{\n//\t\t $totalrmpoqty4, $totalrmpoqty5, $totalrmpoqty6, $totalrmpoqty7, \n//\t\t $totalrmpoqty8, $totalrmpoqty9, $totalrmpoqty10, $totalrmpoqty11,\n//\t $totalrmpoqty12, $reqfrompo;\n GLOBAL $poarray, $qtyreq, $fg, $grn, $reqfrompo, $totalrmpoqtycomp,$totalrmpoqtyeqn;\n\t$totalrmpoqtycomp = 0;\n\t$totalrmpoqtyeqn = \"\";\n\t$usedfrompo = 0;\n\tfor ($i = 0; $i < $pocount; $i++)\n\t{\n\t\t $index = $pocount -1;\n\t\t\t\n\t\t\tif ($poarray[$i] == '' || $poarray[$i] == 0)\n\t\t {\n\t\t\t\t$poarray[$i] = 0;\n\t\t }\n else\n\t\t\t{\n\t $totalrmpoqtycomp = $totalrmpoqtycomp + $poarray[$i];\n\t\t\t\t //echo \"<br>totalpo till now is $totalrmpoqtycomp\";\n\t\t\t\t $reqfrompo = $qtyreq-($fg+$grn)-$usedfrompo;\n\t\t\t\t //echo \"<br>reqfrom po for $i is $reqfrompo\";\n\t\t\t\t if ($reqfrompo > $poarray[$i])\n\t\t\t\t {\n\t\t\t \t $usedfrompo = $poarray[$i];\n\t\t\t\t\t $poarray[$i] = 0;\n\t\t\t\t\t $totalrmpoqtyeqn .= \"+ $usedfrompo\" . \"po{$i}\";\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t \t $usedfrompo = $reqfrompo;\n\t\t\t\t\t $poarray[$i] = $poarray[$i] - $reqfrompo;\n\t\t\t\t\t $totalrmpoqtyeqn .= \"+ $usedfrompo\" . \"po{$i}\";\n\t\t\t\t }\n\t\t\t \n\t\t\t\t //echo \"<br>reqfrom po for $i is $reqfrompo\";\n\t\t\t\t //echo \"<br>In function value of poarray for $i is $poarray[$i]\";\n\t\t\t\t //var_dump($poarray);\n\t }\n //$poarray[$index] = 0;\n\t}\n\t$reqfrompo = $qtyreq-($fg+$grn+$totalrmpoqtycomp);\n\t//echo \"<br>In function value of reqfrom po is $reqfrompo and pocount is $pocount\";\n\t//echo \"<br>In function value of poarray for $index is $poarray[$index]\";\n\n}", "public function calculateQtyToShip();", "static function getPrice($procent , $price){\n return $price - ( $price / 100 * $procent);\n }", "function pms_get_currency_position() {\r\n\r\n $settings = get_option( 'pms_payments_settings' );\r\n\r\n if ( isset( $settings['currency_position'] ) )\r\n return $settings['currency_position'];\r\n\r\n return 'after';\r\n }", "public function interpretation() {\n $functiontype = $this->inputarray[$this->position];\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the addition \n Advances index position by 4 to continue to next function */\n if ($functiontype == 1) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->one();\n $this->position = $this->position+4;\n return;\n }\n \n /* Gets target position indicated by the third element after the function position\n Sets target position in the array to equal the result of the multiplication \n Advances index position by 4 to continue to next function */\n if ($functiontype == 2) {\n $target = $this->inputarray[$this->position+3];\n $this->inputarray[$target] = $this->two();\n $this->position = $this->position+4;\n return;\n }\n \n /* Sets the final calculated value at position 0 and returns 99 to end the while loop*/\n if ($functiontype == 99) {\n $this->finalvalue = $this->inputarray[0];\n return $this->inputarray[$this->position];\n }\n }", "function getSpiralCost (&$labor, &$rawCost, $quantity) {\nif ($_POST[\"spiral\"] == \"spiral\") {\n\t\t$spiralLabor = (HOUR * .08333) * $quantity;\n\t\t$spiralCost = ( $quantity * SPIRALCOST);\n\t}\nelse {\n\t$spiralLabor = 0;\n\t$spiralCost = 0;\n\t}\n$labor += $spiralLabor;\n$rawCost += $spiralCost;\n}", "function iva($subtotal, $iva = 0.21){ // cuando le ponemos el valor a un parametro nos permite que cada vez que haga la operacion, lo haga con el valor que le pusimos al parametro obviamente, esto es mejor que asignarle un valor desde dentro y no estableciendo el valor fijo\n $porcentaje = $subtotal * $iva;\n\n // pusimos en comentarios esto porque no necesitamos que nos haga una operacion final, solo que nos muestre el dato final\n // $solucion = $subtotal + $porcentaje;\n return $porcentaje;\n }", "function opaljob_price_format_position() {\n global $opaljob_options;\n $currency_pos = opaljob_options('currency_position','before');\n\n $format = '%1$s%2$s';\n switch ( $currency_pos ) {\n case 'before' :\n $format = '%1$s%2$s';\n break;\n case 'after' :\n $format = '%2$s%1$s';\n break;\n case 'left_space' :\n $format = '%1$s&nbsp;%2$s';\n break;\n case 'right_space' :\n $format = '%2$s&nbsp;%1$s';\n break;\n }\n\n return apply_filters( 'opaljob_price_format_position', $format, $currency_pos );\n}", "public function getES()\n {\n // Calculate from a and b, if b has been supplied.\n if (isset($this->b)) {\n $a2 = $this->a * $this->a;\n $b = $this->b;\n $b2 = $this->b * $this->b;\n\n return ($a2 - $b2) / $a2;\n } else {\n // Otherwise use f.\n // FIXME: F will be infinite for a sphere. Can we use RF?\n $f = $this->getF();\n\n return (2 * $f) - ($f * $f);\n }\n }", "function valore_costi_esterni_gas($id_ordine,$id_gas){\r\n\r\n $costo_trasporto = valore_costo_trasporto_ordine_gas($id_ordine,$id_gas); \r\n $costo_gestione = valore_costo_gestione_ordine_gas($id_ordine,$id_gas);\r\n $costi = $costo_trasporto+\r\n $costo_gestione;\r\n \r\n return (float)$costi; \r\n}", "function getCalcs($masterIndex, $indexNumber, $marketnum1, $marketnum2, $TempPoll) {\r\n\t//get database info\r\nglobal $db;\r\n$db = new mysqli(\"localhost\", \"root\", \"\", \"trading\");\r\n\r\n//check connection to database\r\nif($db->connect_errno > 0){\r\n die('Unable to connect to database [' . $db->connect_error . ']');\r\n\t$errors = 1;\r\n}\r\n\t\r\n\t//if statement used to tell which market we should focus on. \r\n\t//our only option $marketnum1 and marketnum2 are ===== 1, 2, 3, 4,\r\n\t$master1code;\r\n\t$market1code ;\r\n\t$master2code;\r\n\t$market2code ;\r\n\tif (($marketnum1 == 1)) \r\n\t{\r\n\t\t$master1code = \"Master1code\";\r\n\t\t$market1code = \"Market1code\";\r\n\t} \r\n\telse if ($marketnum1 == 2) \r\n\t{\r\n\t\t$master1code = \"Master2code\";\r\n\t\t$market1code = \"Market2code\";\r\n\t} \r\n\telse if ($marketnum1 == 3) \r\n\t{\r\n\t\t$master1code = \"Master3code\";\r\n\t\t$market1code = \"Market3code\";\r\n\t} \r\n\telse if ($marketnum1 == 4) \r\n\t{\r\n\t\t$master1code = \"Master4code\";\r\n\t\t$market1code = \"Market4code\";\r\n\t\t\r\n\t} \r\n\t\r\n\r\n\t$firstCalc; \r\n//\t\t M1toM2 DOUBLE, M1toM3 DOUBLE, M1toM4 DOUBLE,\r\n//\t\t M2toM1 DOUBLE, M2toM3 DOUBLE, M2toM4 DOUBLE,\r\n//\t\t M3toM1 DOUBLE, M3toM2 DOUBLE, M3toM4 DOUBLE,\r\n//\t\t M4toM1 DOUBLE, M4toM2 DOUBLE, M4toM3 DOUBLE,\r\n\t//get the markets we will be saving to. \r\n\t//\t\t M1toM2 DOUBLE, M2toM1 DOUBLE,\r\n\t\tif ($marketnum1 == 1 && $marketnum2 == 2) \r\n\t{\r\n\t\t$firstCalc = 'M1toM2';\r\n\t\t\r\n\t} \r\n\t\r\n\telse if ($marketnum1 == 1 && $marketnum2 == 3) \r\n\t{\r\n\t\t$firstCalc = 'M1toM3';\r\n\t\t\r\n\t} \r\n\telse if ($marketnum1 == 1 && $marketnum2 == 4) \r\n\t{\r\n\t\t$firstCalc = 'M1toM4';\r\n\t\t\r\n\t} \r\n\telse if ($marketnum1 == 2 && $marketnum2 == 1) \r\n\t{\r\n\t\t$firstCalc = 'M2toM1';\r\n\t\t\r\n\t} \r\n\telse if ($marketnum1 == 2 && $marketnum2 == 3) \r\n\t{\r\n\t\t$firstCalc = 'M2toM3';\r\n\t\t\r\n\t} \r\n\telse if ($marketnum1 == 2 && $marketnum2 == 4) \r\n\t{\r\n\t\t$firstCalc = 'M2toM4';\r\n\t\t\r\n\t} \r\n\telse if ($marketnum1 == 3 && $marketnum2 == 1) \r\n\t{\r\n\t\t$firstCalc = 'M3toM1';\t\t\r\n\t}\r\n\telse if ($marketnum1 == 3 && $marketnum2 == 2) \r\n\t{\r\n\t\t$firstCalc = 'M3toM2';\t\t\r\n\t}\r\n\telse if ($marketnum1 == 3 && $marketnum2 == 4) \r\n\t{\r\n\t\t$firstCalc = 'M3toM4';\t\t\r\n\t}\r\n\telse if ($marketnum1 == 4 && $marketnum2 == 1) \r\n\t{\r\n\t\t$firstCalc = 'M4toM1';\t\t\r\n\t}\r\n\telse if ($marketnum1 == 4 && $marketnum2 == 2) \r\n\t{\r\n\t\t$firstCalc = 'M4toM2';\t\t\r\n\t}\r\n\telse if ($marketnum1 == 4 && $marketnum2 == 3) \r\n\t{\r\n\t\t$firstCalc = 'M4toM3';\t\r\n\t}\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t//put all variables into tempvars\r\n\t//check to see if a first market exist\r\n\t//if not were done. \r\n\tif ($masterIndex[$indexNumber][$master1code] != \"NULL\")\r\n\t{\r\n\t\t//Create a master1currcode for easy access.\r\n\t\t$Master1CurrCode = $masterIndex[$indexNumber][$master1code];\r\n\t\t//Create Martet1code for this variable\r\n\t\t$tSlaveMarketcode1 = $masterIndex[$indexNumber][$market1code];\r\n\t\t//if we pass this marker\r\n\t\t//we have atleast two markets for this currency.\r\n\t\tif ($masterIndex[$indexNumber][$master2code] != \"NULL\")\r\n\t\t\t{\t\r\n\t\t\t//get the master2currcode\r\n\t\t\t$Master2CurrCode = $masterIndex[$indexNumber][$master2code];\r\n\t\t\t//get masketCurrency2\r\n\t\t\t$tSlaveMarketcode2 = $masterIndex[$indexNumber][$market2code];\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//find master1currcode last trade value\r\n\t\t\t$SlaveValueInMarket1 = GetLastTrade($tSlaveMarketcode1, $TempPoll);\r\n\t\t\t$SlaveValueInMarket2 = GetLastTrade($tSlaveMarketcode2, $TempPoll);\r\n\r\n\r\n\r\n\t\t\t//Mission: Get second market currency code\r\n\t\t\t$masterSlaveMASTERIndex = getMasterIndex($Master2CurrCode);\r\n\t\t\t$masterSlaveValue;\r\n\t\t\t//create var for secondary market code \r\n\t\t\t$MSMarketCode; \r\n\t\t\t$didwegetamatch = 0; //if set to one we recieved a match in our search for a second market\r\n\t\t\t\r\n\t\t\t//check to see whether it is traded in the same market as our slave currency \r\n\t\t\tfor ($p = 1; $p < 5; $p++) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t//if a master currency of our master-slave currnecy matches our slave currency's master currency\r\n\t\t\t\t//insert it into $MSMarketCode so we can look up its last trade value.\r\n\t\t\t\tif ($masterSlaveMASTERIndex['Master' . $p . 'code'] == $masterIndex[$indexNumber][$master1code]) \r\n\t\t\t\t\t{ \r\n\t\t\t\t\t$MSMarketCode = $masterIndex[$indexNumber][$market1code];\r\n\t\t\t\t\t$p = 5;\r\n\t\t\t\t\t$didwegetamatch = 1;\r\n\t\t\t\t\t}\r\n\t\t\t}//end for loop\r\n\t\t\t//if it does exist, get its last trade value within that market.\r\n\t\t\tif ($didwegetamatch == 1) { \r\n\t //get the value of the masterslave currency within the first market\r\n\t\t\t$masterSlaveValue = GetLastTrade($MSMarketCode, $TempPoll);\r\n\t\t\t}\r\n\r\n\t\t\t//how many slave currencies can we buy with one master slave currency. \r\n\t\t\t//lets find out. \r\n\t\t\t//Divide M1-MasterSlaveValue by M1-CurrValue \r\n\t\t\t//Get SlavePerSlave Value\r\n\t\t\t$amountperCurr1M = $masterSlaveValue / $SlaveValueInMarket1;\r\n\t\t\t \t//Divide 1 by lasttradevalue\r\n\t\t\t$amountperCurr2M = 1 / $SlaveValueInMarket2;\r\n\t\t\t\r\n\t\t\t$firstMarketAdvantageValue = $amountperCurr1M - $amountperCurr2M;\r\n\t\t\t$firstMarketAdvantagePercentage = $firstMarketAdvantageValue / $amountperCurr2M;\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tUpdateM2MAtPoll($masterIndex[$indexNumber]['LongName'],$TempPoll, $firstCalc,\t$firstMarketAdvantagePercentage);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\r\n\t}\r\n\t}\r\n}", "public function resolvePrice();", "public function calc(Order $order);", "public function getFinanceFromPrice()\n {\n $product = $this->getProduct();\n $finaceFromPrice = $product->getData('finance_from_price');\n $price = Mage::helper('core')->currency($finaceFromPrice, true, false);\n\n return $price;\n }", "function precio($precioUnidad, $cantidad, $descuento = 0 ){ // las variables que tenemos son arbitrarias, por lo cual hay que mirar bien si ponerlas en () de la funcion\n\n\n\n$multiplicar = $precioUnidad * $cantidad;\n\n// $descuento es un porcentaje\n\n// $restar = $multiplicar - $descuento; // este descuento debe ir en % por lo cual no es lo mismo que un entero, por lo cual lo colocaremos en entero\n\n\n// si esto fuera un porcentaje entonces seria $multiplicar = $precioUnidad * $cantidad; // $porcentaje = $multiplicar - $descuento; // $solucion = $multiplicar - $porcentaje; lo cual es lo que haremos\n\n$porcentaje = $multiplicar * $descuento;\n\n$solucion = $multiplicar - $porcentaje;\nreturn $solucion;\n// si colocamos todos los datos en solo sitio o una sola linea, sin especificar es e novatos, porque hay que haber un orden\n\n}", "public function getPrice(): float;", "public function getPrice(): float;", "public function cesta_sin_iva(){\r\n\t\t\t$total = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$precio = $elArticulo->oferta>0?$elArticulo->oferta:$elArticulo->precio;\r\n\t\t\t\t$total+= round($elArticulo->unidades*$precio,2);\t\t\t\t\r\n\t\t\t}\r\n\t\t\treturn $total;\r\n\t\t}", "protected function giveCost()\n\t{\n\t\t$solarSaving = 2;\n\t\t$this->valueNow = 210.54 / $solarSaving;\n\t\treturn $this->valueNow;\n\t}", "function irpf($subtotal, $irpf = 0.10){\n $porcentaje = $subtotal * $irpf;\n // $solucion = $subtotal - $porcentaje;\n return $porcentaje;\n }", "function compute_rsi () {\n\n if (empty($this->rsi_gains) OR $this->value == $this->prev_value) {\n array_push($this->rsi_gains, 0);\n array_push($this->rsi_losses, 0);\n\n } elseif ($this->value > $this->prev_value) {\n array_push($this->rsi_gains, $this->value - $this->prev_value);\n array_push($this->rsi_losses, 0);\n\n } else {\n array_push($this->rsi_losses, $this->prev_value - $this->value);\n array_push($this->rsi_gains, 0);\n }\n\n if (count($this->rsi_gains) > $this->period) {\n array_shift($this->rsi_gains);\n array_shift($this->rsi_losses);\n }\n\n $gain_avg = array_sum($this->rsi_gains) / count($this->rsi_gains);\n $loss_avg = array_sum($this->rsi_losses) / count($this->rsi_gains);\n\n if ($loss_avg > 0) {\n $this->rsi = round(100-(100/(1+($gain_avg/$loss_avg))),3);\n\n } else {\n $this->rsi = 100;\n }\n }", "public function getStock();", "function fetch_currency_with_position($amount,$currency = '')\r\n{\r\n\t$amt_display = '';\r\n\tif($amount==''){ $amount =0; }\r\n\t$decimals=get_option('tmpl_price_num_decimals');\r\n\t$decimals=($decimals!='')?$decimals:2;\r\n\tif($amount >=0 )\r\n\t{\r\n\t\tif(@$amount !='')\r\n\t\t\t$amount = number_format( (float)($amount),$decimals,'.','');\r\n\t\t\t$currency = get_option('currency_symbol');\r\n\t\t\t$position = get_option('currency_pos');\r\n\t\tif($position == '1')\r\n\t\t{\r\n\t\t\t$amt_display = $currency.$amount;\r\n\t\t}\r\n\t\telse if($position == '2')\r\n\t\t{\r\n\t\t\t$amt_display = $currency.' '.$amount;\r\n\t\t}\r\n\t\telse if($position == '3')\r\n\t\t{\r\n\t\t\t$amt_display = $amount.$currency;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$amt_display = $amount.' '.$currency;\r\n\t\t}\r\n\t\treturn apply_filters('tmpl_price_format',$amt_display,$amount,$currency);\r\n\t}\r\n}", "public function calculFrais()\n {\n $frais = $this->compteModel->calculTaxe($this->utils->securite_xss($_POST['montant']), $this->utils->securite_xss($_POST['service']));\n if ($frais > 0) echo $frais;\n else if ($frais == 0) echo 0;\n else echo -2;\n }", "function evaluate($winningspot, $comp, $points, $symbol) {\n\t\t$score = 0;\n\t\t$other = ($comp == \"x\") ? \"o\" : \"x\";\n\t\tforeach($winningspot as $spot) {\n\t\t\t$score = $score + evaluateLine($spot,$points,$comp,$other,$symbol);\n\t\t}\n\t\treturn $score;\n\t}", "public function calculate();", "public function calculate();", "function valore_totale_lordo_gas_esterno($id_ordine,$id_gas){\r\n $ordine = valore_totale_mio_gas($id_ordine,$id_gas);\r\n $costi = valore_costi_esterni_gas($id_ordine,$id_gas);\r\n return (float)$ordine+$costi;\r\n}", "function valore_costo_trasporto_ordine_gas($id_ordine,$id_gas){\r\n $valore_globale_attuale_netto_qarr = valore_totale_ordine_qarr($id_ordine);\r\n $valore_gas_attuale_netto_qarr = valore_totale_mio_gas($id_ordine,$id_gas);\r\n $percentuale_mio_gas = ($valore_gas_attuale_netto_qarr / $valore_globale_attuale_netto_qarr) *100;\r\n $costo_globale_trasporto = valore_trasporto($id_ordine,100);\r\n $costo_trasporto = ($costo_globale_trasporto / 100) * $percentuale_mio_gas;\r\n return (float)$costo_trasporto;\r\n}", "public function calculateTaxAction()\n {\n $data = $this->Request()->getParams();\n\n //init variables\n $positions = json_decode($data['positions']);\n $shippingCosts = $data['shippingCosts'];\n $net = $data['net'];\n $total = 0;\n $taxSums = [];\n $totalWithoutTax = 0;\n $articleNumber = 0;\n $shippingCostsNet = 0;\n\n foreach ($positions as $position) {\n $total += $position->price * $position->quantity;\n $priceWithoutTax = $this->calculateNetPrice($position->price, $position->taxRate) * $position->quantity;\n $totalWithoutTax += $priceWithoutTax;\n\n if (!isset($taxSums[$position->taxRate])) {\n $taxSums[$position->taxRate] = [];\n $taxSums[$position->taxRate]['sum'] = 0;\n $taxSums[$position->taxRate]['count'] = 0;\n }\n $taxSums[$position->taxRate]['sum'] += $this->calculateNetPrice($position->price, $position->taxRate);\n $taxSums[$position->taxRate]['count'] += $position->quantity;\n\n $articleNumber += $position->quantity;\n }\n\n if ($shippingCosts != 0 && !is_null($shippingCosts) && $shippingCosts != '') {\n foreach ($taxSums as $taxRate => $taxRow) {\n $taxRelation = $articleNumber / $taxRow['count'];\n $shippingCostsRelation = $shippingCosts / $taxRelation;\n\n $shippingCostsNet += $this->calculateNetPrice($shippingCostsRelation, $taxRate);\n }\n if (count($taxSums) == 0) {\n $shippingCostsNet = $shippingCosts;\n }\n }\n\n $sum = $total;\n if ($net === 'true') {\n $total = $shippingCostsNet + $total;\n } else {\n $total = $shippingCosts + $total;\n }\n $totalWithoutTax = $shippingCostsNet + $totalWithoutTax;\n\n $taxSum = $total - $totalWithoutTax;\n if ($totalWithoutTax == 0) {\n $taxSum = 0;\n }\n\n if ($net === 'true') {\n $shippingCosts = $shippingCostsNet;\n $totalWithoutTax = $total;\n $taxSum = 0;\n }\n\n $result = [\n 'totalWithoutTax' => $this->roundPrice($totalWithoutTax),\n 'sum' => $this->roundPrice($sum),\n 'total' => $this->roundPrice($total),\n 'shippingCosts' => $this->roundPrice($shippingCosts),\n 'shippingCostsNet' => $this->roundPrice($shippingCostsNet),\n 'taxSum' => $this->roundPrice($taxSum)\n ];\n\n $this->view->assign(\n [\n 'data' => $result,\n 'success' => true\n ]\n );\n }", "function valorDoBtcComEncargosSaque($param_valor)\n{\n\n//pega o btc e soma valor final do btc com todos encargos\n\n\t$percentual = 0.70 / 100.0; // 15%\n\t$valor_final = $param_valor - ($percentual * $param_valor);\n\t//comissoes 1,99 + 2,90\n\t$percentual2 = 2.0 / 100.0;\n\t$valorTotal = $percentual2 * $param_valor;\n\t\n\t\n\t\n\t$finalTodos = $valor_final - $valorTotal - 3;\n\n\t\treturn $finalTodos;\n}", "public function peso_cesta(){\r\n\t\t\t$peso = 0;\r\n\t\t\tforeach ($this->listArticulos as $elArticulo){\r\n\t\t\t\t$peso+=($elArticulo->peso*$elArticulo->unidades);\r\n\t\t\t\tparent::$log->debug(\"Peso $elArticulo->articulo= $elArticulo->peso(kg) * $elArticulo->unidades(u) = \".($elArticulo->unidades*$elArticulo->peso).\" Peso acumulado de la cesta=\".$peso);\r\n\t\t\t}\r\n\t\t\treturn $peso;\r\n\t\t}", "public function gerencial_valorInventario(){\n\t\t\n\t\t$resultado = 0;\n\t\t\n\t\t$query = \"SELECT cantidad, idProducto\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_productos_sucursal\";\n\t\t\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n \t\n\t\t\t\t$idproducto = $filas['idProducto'];\n\t\t\t\t$cantidad\t= $filas['cantidad']; \n\t\t\t\t\n\t\t\t\t$query2 = \"SELECT precio \n\t\t\t\t\t\t\tFROM tb_productos WHERE idProducto = '$idproducto'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($res2 = $conexion->query($query2)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t while ($filas2 = $res2->fetch_assoc()) {\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t$precio = str_replace('.', '',$filas2['precio']);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subtotal = $precio * $cantidad;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t $resultado = $resultado + $subtotal;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t }\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\n } \n \n }//fin if\n\t\t\n return $resultado;\t\n\t\t\n\t}", "public function calculate() : float\n {\n $aprGuess = (float)($this->interestRate / 100) / $this->numberOfInstallments;\n $partial = 0;\n $full = 1;\n\n $tempGuess = $aprGuess;\n\n do {\n $aprGuess = $tempGuess;\n //Step 1\n $rate1 = $tempGuess / (100 * $this->numberOfInstallments);\n $amount1 = $this->generalEquation(\n $this->numberOfYears * $this->numberOfInstallments,\n $this->periodicPayment,\n $full,\n $partial,\n $rate1\n );\n //Step 2\n $rate2 = ($tempGuess + 0.1) / (100 * $this->numberOfInstallments);\n $amount2 = $this->generalEquation(\n $this->numberOfYears * $this->numberOfInstallments,\n $this->periodicPayment,\n $full,\n $partial,\n $rate2\n );\n //Step 3\n $tempGuess = $tempGuess + 0.1 * ($this->principalAmount - $amount1) / ($amount2 - $amount1);\n\n } while (abs($aprGuess * 10000 - $tempGuess * 10000) > 1);\n\n $interestRate = (float) round($aprGuess, 3);\n\n // call Tae class to find TAE\n $tae = Tae::init($interestRate, $this->numberOfInstallments);\n\n return $tae->calculate();\n }", "function TaxInclusivePrice(){\n\t\tuser_error(\"to be completed\");\n\t}", "function commissionComputation($type,$totalContract,$requestCommission,$vat){\n $finalCommission = 0;\n $formula = '0';\n $note = 0;\n $legend = '';\n if($type == 'MARKUP'){\n if($vat == true){\n $formula = $requestCommission.' - ( ('.$requestCommission.'/ 1.12 x .12 ) + ( '.$requestCommission.' / 1.12 x .05 ) )';\n $lessVat = $requestCommission / 1.12;\n $lessVat = $lessVat * .12;\n $lessVat = round($lessVat,6);\n $incomeTax = $requestCommission / 1.12;\n $incomeTax = $incomeTax * .05;\n $incomeTax = round($incomeTax,6);\n $totalDeduction = $lessVat + $incomeTax;\n $legend = 'Request Commission Amount : '.$requestCommission.'| VAT :12% | Income Tax : 5%';\n $finalCommission = $requestCommission - $totalDeduction;\n }\n else{\n //false\n $formula = $requestCommission.' - ( '.$requestCommission.' x .05 )';\n $incomeTax = $requestCommission * .05;\n $totalDeduction = $incomeTax;\n $legend = 'Request Commission Amount : '.$requestCommission.' | Income Tax : 5%';\n $finalCommission = $requestCommission - $totalDeduction;\n }\n }elseif($type == 'REGULAR'){\n if($vat == true){\n $formula = $requestCommission.\"-((\".$requestCommission.\"/ 1.12) X 0.12)\";\n $lessVat = $requestCommission / 1.12;\n $lessVat = $lessVat * .12;\n $lessVat = round($lessVat,6);\n $totalDeduction = $lessVat;\n $legend = 'Request Commission Amount : '.$requestCommission.'| VAT :12% | Income Tax : 5%';\n $finalCommission = $requestCommission - $totalDeduction;\n }else{\n $formula = $requestCommission.' [No Formula]';\n $finalCommission = $requestCommission;\n }\n }\n elseif($type == 'CTD'){\n if($vat == true){\n $formula = $requestCommission.' - ( ('.$requestCommission.'/ 1.12 x .12 ) + ( '.$requestCommission.' / 1.12 x .05 ) )';\n $lessVat = $requestCommission / 1.12;\n $lessVat = $lessVat * .12;\n $lessVat = round($lessVat,6);\n $incomeTax = $requestCommission / 1.12;\n $incomeTax = $incomeTax * .05;\n $incomeTax = round($incomeTax,6);\n $totalDeduction = $lessVat + $incomeTax;\n $finalCommission = $requestCommission - $totalDeduction;\n $legend = 'Request Commission Amount : '.$requestCommission.'<br> VAT :12% | Income Tax : 5%';\n }\n else{\n //false\n $formula = $requestCommission.' - ( '.$requestCommission.' x .05 )';\n $incomeTax = $requestCommission * .05;\n $totalDeduction = $incomeTax;\n $legend = 'Request Commission Amount : '.$requestCommission.' | Income Tax : 5%';\n $finalCommission = $requestCommission - $totalDeduction;\n }\n }\n else{\n $formulationDetails = array(\n 'success' => false,\n 'type' => $type,\n 'formula' => $formula,\n 'note' => $legend,\n 'final_commission' => $finalCommission,\n 'vat'=>$vat\n );\n }\n $formulationDetails = array(\n 'success' => false,\n 'type' => $type,\n 'formula' => $formula,\n 'note' => $legend,\n 'final_commission' => $finalCommission,\n 'vat'=>$vat\n );\n return $formulationDetails;\n}", "function returnOpenPositions($date, $verbose = false, $debug = false){\n $dbc = connect();\n $stmt = $dbc->prepare(\"SELECT * FROM `data_transactions`\n WHERE `transaction_date` <= :date\n AND `symbol` IS NOT NULL\n AND `symbol` <> ''\n ORDER BY `transaction_date` ASC\");\n $stmt->bindParam(':date', $date);\n $stmt->execute();\n $result = $stmt->fetchall(PDO::FETCH_ASSOC);\n\n $openPositions = array();\n\n foreach($result as $transaction){\n switch($transaction['type']){\n case 'B':\n if (array_key_exists ( $transaction['symbol'] , $openPositions )){\n // symbol in array\n $openPositions[$transaction['symbol']]['shares'] += $transaction['shares'];\n $openPositions[$transaction['symbol']]['purchase'] += $transaction['amount'];\n array_push($openPositions[$transaction['symbol']]['purchases'], $transaction['transaction_date'] );\n } else {\n // new symbol\n $openPositions[$transaction['symbol']] = array(\n 'shares' => $transaction['shares'],\n 'purchase' => $transaction['amount'],\n 'purchases' => array($transaction['transaction_date']),\n 'dividend' => 0\n );\n }\n break;\n case 'S':\n $openPositions[$transaction['symbol']]['shares'] += $transaction['shares'];\n $openPositions[$transaction['symbol']]['purchase'] += $transaction['amount'];\n if (round($openPositions[$transaction['symbol']]['shares'],5) == 0) unset($openPositions[$transaction['symbol']]);\n break;\n case 'D':\n if (array_key_exists ( $transaction['symbol'] , $openPositions )){\n $openPositions[$transaction['symbol']]['dividend'] += $transaction['amount'];\n }\n break;\n default:\n break;\n }\n }\n\n //add basis data\n foreach($openPositions as &$position){\n $position['basis'] = round(-1*($position['purchase']+$position['dividend'])/$position['shares'],3);\n }\n\n if ($verbose) show($openPositions);\n return $openPositions;\n}", "public function tax(): float;", "function commodityTrend($commodity, $world_id) {\n\t# Trend = (Average of last ten prices) - Current Price\n\twriteLog(\"commodityTrend()\");\t\n\tif (!file_exists('logs/World_' . $world_id . '_prices.log')) {\n\t\t$file = fopen('logs/World_' . $world_id . '_prices.log', 'w+');\n\t}\n\t$arrPrices = file('logs/World_' . $world_id . '_prices.log');\n\t$rows = count($arrPrices);\n\twriteLog(\"commodityTrend(): Rows: \" . $rows);\t\n\t\n\t# Need to convert commodity into an index\n\t$arrCommodities = array('wool','corn','milk','beef','wheat','potato','iron','coal','gold','silver','copper','tin');\n\t$commodityIndex = array_search($commodity, $arrCommodities);\n\twriteLog(\"commodityTrend(): Index: \" . $commodityIndex);\t\n\n\t$total_price = 0;\n\t$current_price = 0;\n\t\n\tfor ($p = $rows - 10; $p < $rows; $p++) {\n\t\t$arrCurrentRow = explode(\",\", $arrPrices[$p]);\n\t\t$current_price = $arrCurrentRow[$commodityIndex];\n\t\t$total_price = $total_price + $current_price;\n\t}\n\twriteLog(\"commodityTrend(): Current Price for \" . ucwords($commodity) . \": \" . $current_price);\n\t\n\t$average = floor($total_price / 10);\n\twriteLog(\"commodityTrend(): Average: \" . $average);\t\n\t$trend = $current_price - $average;\n\twriteLog(\"commodityTrend(): Trend: \" . $trend);\t\n\t\n\t$text = $current_price . \" (\" . $trend . \")\";\n\t\n\treturn $text;\n\t\n}", "public function getPointProd3():?int\n {\n //Recuperation de la partie entière de la division du nombre\n //de produit3 par 2\n $paire = (int)($this->produit3 / 2);\n return $this->produit3 <= 0 ? 0 : $paire * 15;\n }", "public function getTotalPrice(): float;", "function valorPorExtenso($valor = 0) {\r\n \r\n $valor = str_replace(\".\", \"\", $valor);\r\n \r\n $valor = str_replace(\",\", \".\", $valor);\r\n \r\n $singular = array(\"centavo\", \"real\", \"mil\", \"milhão\", \"bilhão\", \"trilhão\", \"quatrilhão\");\r\n \r\n $plural = array(\"centavos\", \"reais\", \"mil\", \"milhões\", \"bilhões\", \"trilhões\", \"quatrilhões\");\r\n \r\n $c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\", \"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\r\n \r\n $d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\", \"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\r\n \r\n $d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\", \"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\r\n \r\n $u = array(\"\", \"um\", \"dois\", \"três\", \"quatro\", \"cinco\", \"seis\", \"sete\", \"oito\", \"nove\");\r\n \r\n $z = 0;\r\n \r\n $valor = number_format($valor, 2, \".\", \".\");\r\n \r\n $inteiro = explode(\".\", $valor);\r\n \r\n for($i = 0; $i < count($inteiro); $i++) {\r\n \r\n for($ii = strlen($inteiro[$i]); $ii < 3; $ii++) {\r\n \r\n $inteiro[$i] = \"0\".$inteiro[$i];\r\n }\r\n }\r\n \r\n $fim = count($inteiro) - ($inteiro[count($inteiro) - 1] > 0 ? 1 : 2);\r\n \r\n for ($i = 0; $i < count($inteiro); $i++) {\r\n \r\n $valor = $inteiro[$i];\r\n \r\n $rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\r\n \r\n $rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\r\n \r\n $ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\r\n \r\n $r = $rc.(($rc && ($rd || $ru)) ? \" e \" : \"\").$rd.(($rd && $ru) ? \" e \" : \"\").$ru;\r\n \r\n $t = count($inteiro) - 1 - $i;\r\n \r\n $r .= $r ? \" \".($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\r\n \r\n if ($valor == \"000\") \r\n $z++; \r\n elseif ($z > 0) \r\n $z--;\r\n \r\n if (($t==1) && ($z>0) && ($inteiro[0] > 0)) \r\n $r .= (($z>1) ? \" de \" : \"\").$plural[$t];\r\n \r\n if ($r) $rt = $rt . ((($i > 0) && ($i <= $fim) && ($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\r\n }\r\n\r\n return $rt ? trim($rt) : \"zero\";\r\n }", "function _casetravel($previousloc_X, $previousloc_Z, $previousaisle_X, $previousaisle_Z, $currentaisle_X, $currentaisle_Z, $FIRSTLOC_X, $FIRSTLOC_Z) {\n\n $outeraisle = abs($previousloc_X - $previousaisle_X) + abs($previousloc_Z - $previousaisle_Z); //previous last location to previous parking spot\n $outeraisle += abs($previousaisle_X - $currentaisle_X) + abs($previousaisle_Z - $currentaisle_Z); //previous parking spot to current parking spot\n $outeraisle += abs($currentaisle_X - $FIRSTLOC_X) + abs($currentaisle_Z - $FIRSTLOC_Z);\n\n return $outeraisle;\n}", "abstract protected function realizaCalculoEspecifico(Orcamento $orcamento): float;", "public function calcMethod()\n {\n\n switch ($this->calc) {\n case \"Ditambah\":\n $result = $this->num1 + $this->num2;\n break;\n case \"Dikurang\":\n $result = $this->num1 - $this->num2;\n break;\n case \"Dikali\":\n $result = $this->num1 * $this->num2;\n break;\n case \"Dibagi\":\n $result = $this->num1 / $this->num2;\n break;\n default:\n $result = \"ERROR\";\n break;\n }\n\n return $result; //return the result\n\n }", "public function calculateCurrencyAction()\n {\n $data = $this->Request()->getParams();\n $positions = json_decode($data['positions']);\n\n if ($data['oldCurrencyId'] < 1) {\n return;\n }\n\n /** @var Shopware\\Models\\Shop\\Currency $oldCurrencyModel */\n $oldCurrencyModel = Shopware()->Models()->find('Shopware\\Models\\Shop\\Currency', $data['oldCurrencyId']);\n\n /** @var Shopware\\Models\\Shop\\Currency $newCurrencyModel */\n $newCurrencyModel = Shopware()->Models()->find('Shopware\\Models\\Shop\\Currency', $data['newCurrencyId']);\n\n foreach ($positions as &$position) {\n $position->price = $position->price / $oldCurrencyModel->getFactor();\n $position->price = $position->price * $newCurrencyModel->getFactor();\n\n $position->total = $position->price * $position->quantity;\n\n $position->price = $this->roundPrice($position->price);\n $position->total = $this->roundPrice($position->total);\n }\n\n $data['shippingCosts'] = $data['shippingCosts'] / $oldCurrencyModel->getFactor();\n $data['shippingCosts'] = $data['shippingCosts'] * $newCurrencyModel->getFactor();\n $data['shippingCosts'] = $this->roundPrice($data['shippingCosts']);\n\n $data['shippingCostsNet'] = $data['shippingCostsNet'] / $oldCurrencyModel->getFactor();\n $data['shippingCostsNet'] = $data['shippingCostsNet'] * $newCurrencyModel->getFactor();\n $data['shippingCostsNet'] = $this->roundPrice($data['shippingCostsNet']);\n\n $data['positions'] = $positions;\n\n $this->view->assign(\n [\n 'data' => $data,\n 'success' => true\n ]\n );\n }", "abstract public function calculate(Shippable $model): float;", "public function getCatalogPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_catalog_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getProductPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product_position');\n }", "protected function giveCost()\n {\n $novoValor = 4;\n $this->valueNow = 210.54 / $novoValor;\n return $this->valueNow;\n }", "function calcularPrecioPedido($tipoPizza,$tamanoPizza,$masaPizza,$extrasPizza,$numeroPizzas){\r\n $precio = 0.0;\r\n //TIPO PIZZA\r\n switch ($tipoPizza) {\r\n case 'margarita':\r\n $precio = $precio + 4;\r\n break;\r\n case 'barbacoa':\r\n $precio = $precio + 4.5;\r\n break;\r\n case '4estaciones':\r\n $precio = $precio + 5;\r\n break;\r\n case '4quesos':\r\n $precio = $precio + 3.75;\r\n break;\r\n case 'carbonara':\r\n $precio = $precio + 4;\r\n break;\r\n case 'romana':\r\n $precio = $precio + 5;\r\n break;\r\n case 'mediterranea':\r\n $precio = $precio + 4.25;\r\n break;\r\n }\r\n //TAMAÑO PIZZA\r\n switch ($tamanoPizza) {\r\n case 'normal':\r\n $precio = $precio + 4;\r\n break;\r\n case 'grande':\r\n $precio = $precio + 5;\r\n break;\r\n case 'familiar':\r\n $precio = $precio + 6.5;\r\n break;\r\n }\r\n //MASA PIZZA\r\n switch ($masaPizza) {\r\n case 'fina':\r\n $precio = $precio + 2;\r\n break;\r\n case 'familiar':\r\n $precio = $precio + 2.5;\r\n break;\r\n }\r\n //EXTRAS PIZZA\r\n foreach ($extrasPizza as $key => $extras) {\r\n switch ($extras) {\r\n case 'queso':\r\n $precio += 1;\r\n break;\r\n case 'pimiento':\r\n $precio += 1;\r\n break;\r\n case 'cebolla':\r\n $precio += 1;\r\n break;\r\n case 'jamon':\r\n $precio += 1;\r\n break;\r\n case 'pollo':\r\n $precio += 1;\r\n break;\r\n }\r\n }\r\n $resultado = $precio*$numeroPizzas;\r\n return $resultado;\r\n}", "public function getProductPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "abstract public function getPrice();", "public function calculate()\n {\n\n $yesterday = Carbon::now()->subDay();\n $seven_days_ago = $yesterday->copy()->subDay(7);\n $twenty_eight_days_ago = $yesterday->copy()->subDay(28);\n\n $this->seven_day_food = $this->site->foodExpenses($seven_days_ago->toDateString(), $yesterday->toDateString())\n / $this->site->foodSales($seven_days_ago->toDateString(), $yesterday->toDateString());\n $this->twenty_eight_day_food = $this->site->foodExpenses($twenty_eight_days_ago->toDateString(), $yesterday->toDateString())\n / $this->site->foodSales($twenty_eight_days_ago->toDateString(), $yesterday->toDateString());\n // etc...\n\n\n }", "function fn_rus_payments_payanyway_get_inventory_positions($order_info)\n{\n $map_taxes = fn_get_schema('rus_payments', 'payanyway_map_taxes');\n $inventory_positions = array();\n\n /** @var \\Tygh\\Addons\\RusTaxes\\ReceiptFactory $receipt_factory */\n $receipt_factory = Tygh::$app['addons.rus_taxes.receipt_factory'];\n $receipt = $receipt_factory->createReceiptFromOrder($order_info, CART_PRIMARY_CURRENCY);\n\n if ($receipt) {\n foreach ($receipt->getItems() as $item) {\n $inventory_positions[] = array(\n 'name' => $item->getName(),\n 'price' => $item->getPrice(),\n 'quantity' => $item->getQuantity(),\n 'vatTag' => isset($map_taxes[$item->getTaxType()]) ? $map_taxes[$item->getTaxType()] : $map_taxes[TaxType::NONE]\n );\n }\n }\n\n return $inventory_positions;\n}", "public function totalq1($modalite)\r\n\t{\r\n\t$conge = new Default_Model_Conge();\r\n\t$debut_mois = $this->getAnnee_reference().'-01-01';\r\n\t$fin_mois = $this->getAnnee_reference().'-12-31'; // il faut la remplacer par l'annee de reference\r\n\t\r\n\t\r\n\t$jours_ouvres_de_annee_ref = $conge->joursOuvresDuMois($debut_mois,$fin_mois);\r\n\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t$personne = new Default_Model_Personne();\r\n\t$id_entite =1; // MBA : pourquoi entite 1 pour personne? \r\n\t$personne = $personne->fetchall('id_entite ='.$id_entite. '&&'. 'id ='.$this->getPersonne()->getId());\r\n\t//var_dump($personne);\r\n\tif (null!==$personne)\r\n\t\r\n\t{\r\n\t\tif ($modalite == 4)\r\n\t\t{\r\n\t\t\t$nbr_heurs_ouvrees_annee = ($jours_ouvres_de_annee_ref -14) *7.4;\r\n\t\t\tif($nbr_heurs_ouvrees_annee >1607)\r\n\t\t\t{\r\n\t\t\t\treturn 0.5;\r\n\t\t\t}\r\n\t\t\telseif($nbr_heurs_ouvrees_annee <1607.5)\r\n\t\t\t{\r\n\t\t\t\treturn 1.0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 5 ||$modalite == 6 )\r\n\t\t{\r\n\t\t\t$nbr_jours_ouvrees_annee = $jours_ouvres_de_annee_ref-243;\r\n\t\t\tif($nbr_jours_ouvrees_annee < 10)\r\n\t\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t\t}\r\n\t\t\telseif($nbr_jours_ouvrees_annee >10)\r\n\t\t\t{\r\n\t\t\t\treturn $nbr_jours_ouvrees_annee;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telseif ($modalite == 1 ||$modalite == 2 ||$modalite == 3)\r\n\t\t{\r\n\t\t\t\treturn 10.0;\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\telse return 0;\r\n\t\r\n\t}", "public function consultaDevuelta($valorTotal, $efectivo)\n{\n $efectivo=$this->filtroNumerico($this->normalizacionDeCaracteres($efectivo));\n $valorTotal=$this->filtroNumerico($this->normalizacionDeCaracteres($valorTotal));\n\n $devolver=$efectivo-$valorTotal;\n if ($devolver>0) {\n # code...\n return $devolver;\n }\n else\n {\n return 0;\n }\n\n\n}", "public function calcula13o()\n {\n }", "public function calcula13o()\n {\n }", "public function makeCoffee(): float;", "public function getQuantity(): float;", "function returnMarketValue($date, $historicalData){\n $openPositions = returnOpenPositions($date);\n\n // list of data providers\n $dataProviders = array_keys($historicalData);\n\n // $historicalData = $historicalData['alphaVantage'];\n\n foreach($dataProviders as $provider){\n\n $marketValue[$provider] = array(\n 'open' => 0,\n 'high' => 0,\n 'low' => 0,\n 'close' => 0,\n );\n foreach($openPositions as $symbol => $data){\n if (array_key_exists($symbol, $historicalData[$provider])){\n $marketValue[$provider]['open'] += $data['shares']*round($historicalData[$provider][$symbol][$date]['open'] ,3);\n $marketValue[$provider]['high'] += $data['shares']*round($historicalData[$provider][$symbol][$date]['high'] ,3);\n $marketValue[$provider]['low'] += $data['shares']*round($historicalData[$provider][$symbol][$date]['low'] ,3);\n $marketValue[$provider]['close'] += $data['shares']*round($historicalData[$provider][$symbol][$date]['close'] ,3);\n }\n }\n }\n\n return $marketValue;\n}", "public function getCatalogPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_catalog_position');\n }", "function processEq($x, $y, $operand)\r\n{\r\n /*\r\n * check to see if either x or y are empty.\r\n * if it is, there is we are missing info to preform a calculation on\r\n */\r\n if (empty($x) || empty($y)) {\r\n\r\n //reset variables used for placement and EQ\r\n clearEverything();\r\n return \"you must have 2 numbers to preform an operation on!\";\r\n } else {\r\n\r\n //check to see if we are doing addition\r\n if ($operand == '+') {\r\n\r\n //apply calculation\r\n $result = $x + $y;\r\n } //check to see if we are doing subtraction\r\n else if ($operand == '-') {\r\n\r\n //apply calculation\r\n $result = $x - $y;\r\n } //check to see if we are doing multiplication\r\n else if ($operand == '*') {\r\n\r\n //apply calculation\r\n $result = $x * $y;\r\n } //check to see if we are doing division\r\n else if ($operand == '/') {\r\n\r\n //check for division by zero\r\n if ($y == 0) {\r\n\r\n //return error for division by zero\r\n $result = \"Cannot Divide By Zero!\";\r\n } else {\r\n\r\n //apply calculation\r\n $result = $x / $y;\r\n }\r\n } //check to see if we want teh remainder\r\n else if ($operand == '%') {\r\n\r\n //apply calculation\r\n $result = $x % $y;\r\n } else {\r\n\r\n //check to make sure they are only submitting operands that are supported\r\n $result = \"please enter a valid operand!\";\r\n }\r\n\r\n //reset session vars ued for pos and EQ\r\n clearEverything();\r\n }\r\n\r\n //return the answer\r\n return $result;\r\n}", "abstract protected function calculateValue();", "function calcPoints() {\n\tglobal $payback_config;\n $this->shop->basket();\n $amount=$this->shop->basket->amount(); \n $points=intval(($amount/100)*$payback_config->points); \n return $points;\n }", "public function getAmount(): float;", "function valor_extenso($valor=0, $maiusculas=false)\n{\n if (strpos($valor,\",\") > 0)\n {\n // retira o ponto de milhar, se tiver\n $valor = str_replace(\".\",\"\",$valor);\n \n // troca a virgula decimal por ponto decimal\n $valor = str_replace(\",\",\".\",$valor);\n }\n$singular = array(\"centavo\", \"real\", \"mil\", \"milhao\", \"bilhao\", \"trilhao\", \"quatrilhao\");\n$plural = array(\"centavos\", \"reais\", \"mil\", \"milhoes\", \"bilhoes\", \"trilhoes\",\n\"quatrilhões\");\n \n$c = array(\"\", \"cem\", \"duzentos\", \"trezentos\", \"quatrocentos\",\n\"quinhentos\", \"seiscentos\", \"setecentos\", \"oitocentos\", \"novecentos\");\n$d = array(\"\", \"dez\", \"vinte\", \"trinta\", \"quarenta\", \"cinquenta\",\n\"sessenta\", \"setenta\", \"oitenta\", \"noventa\");\n$d10 = array(\"dez\", \"onze\", \"doze\", \"treze\", \"quatorze\", \"quinze\",\n\"dezesseis\", \"dezesete\", \"dezoito\", \"dezenove\");\n$u = array(\"\", \"um\", \"dois\", \"tres\", \"quatro\", \"cinco\", \"seis\",\n\"sete\", \"oito\", \"nove\");\n \n $z=0;\n \n $valor = number_format($valor, 2, \".\", \".\");\n $inteiro = explode(\".\", $valor);\n\t\t$cont=count($inteiro);\n\t\t for($i=0;$i<$cont;$i++)\n for($ii=strlen($inteiro[$i]);$ii<3;$ii++)\n $inteiro[$i] = \"0\".$inteiro[$i];\n \n $fim = $cont - ($inteiro[$cont-1] > 0 ? 1 : 2);\n for ($i=0;$i<$cont;$i++) {\n $valor = $inteiro[$i];\n $rc = (($valor > 100) && ($valor < 200)) ? \"cento\" : $c[$valor[0]];\n $rd = ($valor[1] < 2) ? \"\" : $d[$valor[1]];\n $ru = ($valor > 0) ? (($valor[1] == 1) ? $d10[$valor[2]] : $u[$valor[2]]) : \"\";\n \n $r = $rc.(($rc && ($rd || $ru)) ? \" e \" : \"\").$rd.(($rd &&\n$ru) ? \" e \" : \"\").$ru;\n $t = $cont-1-$i;\n $r .= $r ? \" \".($valor > 1 ? $plural[$t] : $singular[$t]) : \"\";\n if ($valor == \"000\")$z++; elseif ($z > 0) $z--;\n if (($t==1) && ($z>0) && ($inteiro[0] > 0)) $r .= (($z>1) ? \" de \" : \"\").$plural[$t];\n if ($r) $rt = $rt . ((($i > 0) && ($i <= $fim) &&\n($inteiro[0] > 0) && ($z < 1)) ? ( ($i < $fim) ? \", \" : \" e \") : \" \") . $r;\n }\n \n if(!$maiusculas)\n\t\t {\n return($rt ? $rt : \"zero\");\n } elseif($maiusculas == \"2\") {\n return (strtoupper($rt) ? strtoupper($rt) : \"Zero\");\n } else {\n return (ucwords($rt) ? ucwords($rt) : \"Zero\");\n }\n \n}", "function getComexData($symbol,$type = null) {\n\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"[email protected]\"));\n//\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"F8F0E4AB52D34B6E85E21D48FD3B0E25\"));\n//\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"FDFDBEAF9B004b2eBB2D7A9D1D39F24F\"));\n\t\t\t\t$client = new soapclient('http://www.xignite.com/xFutures.asmx?WSDL', array('trace' => 1));\n\t\t\t\t$client->__setSoapHeaders(array($xignite_header));\n\n\t\t\t\tswitch ($type) {\n\t\t\t\t\tcase 'strip':\n\t\t\t\t\t\t// create an array of parameters\n\t\t\t\t\t\t$param = array(\n\t\t\t\t\t\t 'Symbol' => $symbol,\n\t\t\t\t\t\t 'StripType' => \"EighteenMonth\"\n\t\t\t\t\t\t );\n\t\t\t\t\t\t // call the service, passing the parameters and the name of the operation\n\t\t\t\t\t\t $result = $client->GetDelayedFutureStrip($param);\n\t\t\t\t\t\t // assess the results\n\t\t\t\t\t\t if (is_soap_fault($result) && isset($_GET['xml'])) {\n\t\t\t\t\t\t \techo '<h2>Fault</h2><pre>';\n\t\t\t\t\t\t \tprint_r($result);\n\t\t\t\t\t\t \techo '</pre>';\n\t\t\t\t\t\t } elseif (isset($_GET['xml'])) {\n\t\t\t\t\t\t \tprint_r($result);\n\t\t\t\t\t\t \t$comex = array(\"cash\"=>number_format($result->GetDelayedFutureResult->Last,2));\n\t\t\t\t\t\t \tprint_r($comex);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t \t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// create an array of parameters\n\t\t\t\t\t\t$param = array(\n\t\t\t\t\t\t 'Symbol' => $symbol,\n\t\t\t\t\t\t 'Day' => \"0\",\n\t\t\t\t\t\t 'Month' => \"0\",\n\t\t\t\t\t\t 'Year' => date('Y')\n\t\t\t\t\t\t);\n\t\t\t\t\t\t// call the service, passing the parameters and the name of the operation\n\t\t\t\t\t\t$result = $client->GetDelayedFuture($param);\n\t\t\t\t\t\t// assess the results\n\t\t\t\t\t\tif (is_soap_fault($result) && isset($_GET['xml'])) {\n\t\t\t\t\t\t\techo '<h2>Fault</h2><pre>';\n\t\t\t\t\t\t\tprint_r($result);\n\t\t\t\t\t\t\techo '</pre>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$comex = array(\"cash\"=>number_format($result->GetDelayedFutureResult->Last,2));\n\t\t\t\t\t\t\treturn $comex;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "function getComexData($symbol,$type = null) {\n\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"[email protected]\"));\n//\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"F8F0E4AB52D34B6E85E21D48FD3B0E25\"));\n//\t\t\t\t$xignite_header = new SoapHeader('http://www.xignite.com/services/', 'Header', array(\"Username\" => \"FDFDBEAF9B004b2eBB2D7A9D1D39F24F\"));\n\t\t\t\t$client = new soapclient('http://www.xignite.com/xFutures.asmx?WSDL', array('trace' => 1));\n\t\t\t\t$client->__setSoapHeaders(array($xignite_header));\n\n\t\t\t\tswitch ($type) {\n\t\t\t\t\tcase 'strip':\n\t\t\t\t\t\t// create an array of parameters\n\t\t\t\t\t\t$param = array(\n\t\t\t\t\t\t 'Symbol' => $symbol,\n\t\t\t\t\t\t 'StripType' => \"EighteenMonth\"\n\t\t\t\t\t\t );\n\t\t\t\t\t\t // call the service, passing the parameters and the name of the operation\n\t\t\t\t\t\t $result = $client->GetDelayedFutureStrip($param);\n\t\t\t\t\t\t // assess the results\n\t\t\t\t\t\t if (is_soap_fault($result) && isset($_GET['xml'])) {\n\t\t\t\t\t\t \techo '<h2>Fault</h2><pre>';\n\t\t\t\t\t\t \tprint_r($result);\n\t\t\t\t\t\t \techo '</pre>';\n\t\t\t\t\t\t } elseif (isset($_GET['xml'])) {\n\t\t\t\t\t\t \tprint_r($result);\n\t\t\t\t\t\t \t$comex = array(\"cash\"=>number_format($result->GetDelayedFutureResult->Last,2));\n\t\t\t\t\t\t \tprint_r($comex);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t break;\n\t\t\t\t\t\t \t\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// create an array of parameters\n\t\t\t\t\t\t$param = array(\n\t\t\t\t\t\t 'Symbol' => $symbol,\n\t\t\t\t\t\t 'Day' => \"0\",\n\t\t\t\t\t\t 'Month' => \"0\",\n\t\t\t\t\t\t 'Year' => date('Y')\n\t\t\t\t\t\t);\n\t\t\t\t\t\t// call the service, passing the parameters and the name of the operation\n\t\t\t\t\t\t$result = $client->GetDelayedFuture($param);\n\t\t\t\t\t\t// assess the results\n\t\t\t\t\t\tif (is_soap_fault($result) && isset($_GET['xml'])) {\n\t\t\t\t\t\t\techo '<h2>Fault</h2><pre>';\n\t\t\t\t\t\t\tprint_r($result);\n\t\t\t\t\t\t\techo '</pre>';\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$comex = array(\"cash\"=>number_format($result->GetDelayedFutureResult->Last,2));\n\t\t\t\t\t\t\treturn $comex;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "function calculDeterminent($tab)\n {\n\n $detemninent = $tab[0][1] * (-1) * (($tab[1][0] * $tab[2][2]) - ($tab[1][2] * $tab[2][0])) +\n $tab[1][1] * (1) * (($tab[0][0] * $tab[2][2]) - ($tab[2][0] * $tab[0][2])) +\n $tab[2][1] * (-1) * (($tab[0][0] * $tab[1][2]) - ($tab[1][0] * $tab[0][2]));\n\n return $detemninent;\n }", "public function getPriceNet();", "public function getCityMoney()\n {\n }", "function calcular_cotizacion(){\t\n\t\tif (isset($_POST['envio']) && $_POST['envio']==\"Calcular\"){\n\t\t\t$this->asignar_valores();\n\t\t\t//$sql=\"INSERT INTO color VALUES ('', '$this->nombre', '$this->codigo')\";\n\t\t\t//$consulta=mysql_query($sql) or die(mysql_error());\n\t\t\t$costante=array (24 => 0.0528711,36 => 0.0392329,48 => 0.0326018,60 => 0.0287680);\n\t\t\t\n\t\t\tif($this->tipo==\"Usado\"){ $porcentaje=0.4; $this->indicador=40;}\n\t\t\tif($this->tipo==\"Nuevo\"){ $porcentaje=0.3; $this->indicador=30;}\n\t\t\t\t$media=$this->valor_vehiculo*$porcentaje;\n\t\t\tif($this->valor_inicial>=$media){\n\t\t\t\t$this->saldo=$this->valor_vehiculo-$this->valor_inicial;\n\t\t\t\t$this->comision=$this->saldo*0.03;\n\t\t\t\t$this->cuotas=$this->saldo*$costante[$this->plazo];\n\t\t\t\t$this->total=$this->valor_inicial+$this->comision;\n\t\t\t\t$this->mensaje=1;\n\t\t\t}else{\n\t\t\t\t$this->mensaje=2;\n\t\t\t}\n\t\t}\t\t\t\n\t}", "public function getTotalEstimulo() {\n return $this->totalEstimulo;\n }", "function getScoreCost (&$labor, $quantity) {\n\tif ($_POST[\"score\"] == \"score\") {\n\t\t$scoreLabor = (HOUR * .16);\n\t\t$scoreLabor += (($quantity * .000833) * HOUR);\n\t}\nelse {\n\t$scoreLabor = 0;\n\t}\n$labor += $scoreLabor;\n}", "function protein_isoelectric_point($pK, $aminoacid_content) {\r\n // To calculate pH where charge is 0 a loop is required\r\n // The loop will start computing charge of protein at pH=7, and if charge is not 0, new charge value will be computed\r\n // by using a different pH. Procedure will be repeated until charge is 0 (at isoelectric point)\r\n $pH=7; // pH value at start\r\n $delta=4; // this parameter will be used to modify pH when charge!=0. The value of $delta will change during the loop\r\n while(1) {\r\n // compute charge of protein at corresponding pH (uses a function)\r\n $charge=protein_charge($pK,$aminoacid_content,$pH);\r\n // check whether $charge is 0 (consecuentely, pH will be the isoelectric point\r\n if (round($charge,4)==0){break;}\r\n // next line to check how computation is perform\r\n // print \"<br>$charge\\t$pH\";\r\n // modify pH for next round\r\n if ($charge > 0) {$pH = $pH + $delta;}else{$pH = $pH - $delta;}\r\n // reduce value for $delta\r\n $delta = $delta/2;\r\n }\r\n // return pH at which charge=0 (the isoelectric point) with two decimals\r\n return round($pH,2);\r\n}", "public function getIteneraryEquivFareAmount()\n {\n return $this->IteneraryEquivFareAmount;\n }", "function Recalcular_Monto_Compra($idcompra){\n//echo \"idcompra=\".$idcompra;\n\t$datoscompra\t\t=\tregistro( runsql(\"select fecha from compras where id_compra='$idcompra'\") );\n\t$datoscompradet\t\t=\trunsql(\"select total,moneda from compras_det where id_compra='$idcompra';\");\n\t$tcUSD\t=\tTipoCambio('USD',$datoscompra[fecha]);\n\t$tcEUR\t=\tTipoCambio('EUR',$datoscompra[fecha]);\n\t$tcQUE\t=\t1;\n\t$Monto_Compra=0;$SubMonto=0;\n\twhile($i=registro($datoscompradet)){\n\t\tswitch($i[moneda]){\n\t\t\tcase \"USD\":\n\t\t\t\t$SubMonto\t=\t$i[total]*$tcUSD;\n\t\t\tbreak;\n\t\t\tcase \"EUR\":\n\t\t\t\t$SubMonto\t=\t$i[total]*$tcEUR;\n\t\t\tbreak;\t\n\t\t\tcase \"QUE\":\n\t\t\t\t$SubMonto\t=\t$i[total]*$tcQUE;\n\t\t\tbreak;\t\t\t\t\t\n\t\t}\n\t\t$Monto_Compra\t=\t$Monto_Compra + $SubMonto;\n\t\t$SubMonto\t\t=\t0;\n\t}\n\t$campos3=Array();\n $campos3[monto]\t=\t$Monto_Compra;\n\t$ins=actualizar(\"compras\",$campos3,\"id_compra = '$idcompra'\");\n}", "function calcPPP($codigo,$id_compra){ \n require_once(\"Y_DB_MySQL.class.php\");\n $db = new My();\n \n \n \n // Datos del Stock Actual\n $db->Query(\"SELECT SUM(cantidad) AS stock_actual,a.costo_prom AS ppp, SUM(cantidad) * a.costo_prom AS valor_stock_actual FROM articulos a, stock s WHERE a.codigo = s.codigo AND s.codigo = '$codigo' AND tipo_ent = 'EM' AND nro_identif <> $id_compra AND s.estado_venta NOT IN( 'FP', 'Bloqueado') GROUP BY s.codigo\");\n $stock_actual = 0;\n $precio_promedio_actual = 0;\n $valor_stock_actual = 0;\n \n if($db->NumRows()>0){\n $db->NextRecord();\n $stock_actual = $db->Get(\"stock_actual\");\n $precio_promedio_actual = $db->Get(\"ppp\");\n $valor_stock_actual = $db->Get(\"valor_stock_actual\");\n } \n \n // Datos de la compra actual + Gastos de la compra actual\n $db->Query(\"SELECT SUM(cant_calc) AS cant_compra, SUM(cant_calc * precio_real) AS valor_stock_comprado,cotiz, sum(d.sobre_costo) as total_gastos ,e.origen, precio_real FROM articulos a, entrada_merc e, entrada_det d \n WHERE e.id_ent = d.id_ent AND a.codigo = d.codigo AND d.codigo = '$codigo' AND e.id_ent = $id_compra and e.estado = 'Cerrada' GROUP BY d.codigo \");\n $cant_compra = 0;\n $valor_stock_comprado = 0;\n $total_gastos = 0;\n $precio_cif = 0;\n $origen = \"Internacional\"; \n if($db->NumRows()>0){\n $db->NextRecord();\n $cant_compra = $db->Get(\"cant_compra\");\n $valor_stock_comprado = $db->Get(\"valor_stock_comprado\"); \n $total_gastos = $db->Get(\"total_gastos\");\n $origen = $db->Get(\"origen\");\n $precio_cif = $db->Get(\"precio_real\");\n } \n \n \n $valor_stock_comprado += $total_gastos;\n \n $nuevo_ppp = ($valor_stock_actual + $valor_stock_comprado) / ($stock_actual + $cant_compra);\n \n $this->makeLog(\"Sistema\", \"Costo PPP\", \"Codigo: $codigo, Stock_Sctual:$stock_actual, Costo PPP Actual:$precio_promedio_actual, Valor Stock Actual: $valor_stock_actual, Cant.Compra Actual: $cant_compra, Valor Compra Actual: $valor_stock_comprado, Ref.: $id_compra\");\n \n return array(\"PPP\" =>$nuevo_ppp,\"PrecioCIF\"=>$precio_cif);\n }", "function getIsoCurrCode($magento_currency_code) {\r\n\tswitch($magento_currency_code){\r\n\tcase 'HKD':\r\n\t\t$cur = '344';\r\n\t\tbreak;\r\n\tcase 'USD':\r\n\t\t$cur = '840';\r\n\t\tbreak;\r\n\tcase 'SGD':\r\n\t\t$cur = '702';\r\n\t\tbreak;\r\n\tcase 'CNY':\r\n\t\t$cur = '156';\r\n\t\tbreak;\r\n\tcase 'JPY':\r\n\t\t$cur = '392';\r\n\t\tbreak;\t\t\r\n\tcase 'TWD':\r\n\t\t$cur = '901';\r\n\t\tbreak;\r\n\tcase 'AUD':\r\n\t\t$cur = '036';\r\n\t\tbreak;\r\n\tcase 'EUR':\r\n\t\t$cur = '978';\r\n\t\tbreak;\r\n\tcase 'GBP':\r\n\t\t$cur = '826';\r\n\t\tbreak;\r\n\tcase 'CAD':\r\n\t\t$cur = '124';\r\n\t\tbreak;\r\n\tcase 'MOP':\r\n\t\t$cur = '446';\r\n\t\tbreak;\r\n\tcase 'PHP':\r\n\t\t$cur = '608';\r\n\t\tbreak;\r\n\tcase 'THB':\r\n\t\t$cur = '764';\r\n\t\tbreak;\r\n\tcase 'MYR':\r\n\t\t$cur = '458';\r\n\t\tbreak;\r\n\tcase 'IDR':\r\n\t\t$cur = '360';\r\n\t\tbreak;\r\n\tcase 'KRW':\r\n\t\t$cur = '410';\r\n\t\tbreak;\r\n\tcase 'SAR':\r\n\t\t$cur = '682';\r\n\t\tbreak;\r\n\tcase 'NZD':\r\n\t\t$cur = '554';\r\n\t\tbreak;\r\n\tcase 'AED':\r\n\t\t$cur = '784';\r\n\t\tbreak;\r\n\tcase 'BND':\r\n\t\t$cur = '096';\r\n\t\tbreak;\r\n\tcase 'VND':\r\n\t\t$cur = '704';\r\n\t\tbreak;\r\n\tcase 'INR':\r\n\t\t$cur = '356';\r\n\t\tbreak;\r\n\tdefault:\r\n\t\t$cur = '344';\r\n\t}\t\r\n\treturn $cur;\r\n}", "public function calExp($type){\n\t\tif($type == '1'){\n\t\t $period = $this->periodCond1; \n\t }elseif($type == '2'){\n\t\t $period = $this->periodCond2; \n\t }\n\t\t\n\t\tif(count($this->arrPosition > 0)){\n\t\t $strPosition = implode(\",\",$this->arrPosition);\n\t\t $whereCond1 = \" position_id IN($strPosition) \";\t\n\t\t}else{\n\t\t $whereCond1 = \" position_id = '999' \";\n\t\t}\n\t\t\n\t\tif(count($this->arrLevelId > 0)){\n\t\t $strLevelId = implode(\",\",$this->arrLevelId);\n\t\t $whereCond2 = \" OR (position_id = '\".$this->positionId.\"' AND level_id IN(\".$strLevelId.\") ) \";\n\t\t}\n\t\t\n\t\t$sqlSalary = \"SELECT * FROM salary \n\t\t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t date < '\".$this->startDateTh.\"' AND\n\t\t\t\t\t\t\t(\".$whereCond1.$whereCond2.\") \n\t\t\t\t\t GROUP BY position_id \n\t\t\t\t ORDER BY date ASC,level_id ASC,runno DESC\";\n\t\t$querySalary = mysql_db_query($this->dbNow,$sqlSalary);\n\t\t$numSalary = mysql_num_rows($querySalary);\n\t\tif($numSalary > 0){\n\t\t\twhile($rowsSalary = mysql_fetch_array($querySalary)){\n\t\t\t\t#find start date\n\t $sqlStart = \"SELECT runno,date \n\t\t\t\t FROM salary \n\t\t\t\t\t\t\t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t position_id = '\".$rowsSalary['position_id'].\"' AND \n\t\t\t\t\t\t\t\t date != '' \n\t\t\t\t\t\t\t ORDER BY date ASC \n\t\t\t\t\t\t\t LIMIT 0,1 \";\n\t $queryStart = mysql_db_query($this->dbNow,$sqlStart)or die(mysql_error());\n\t $rowsStart = mysql_fetch_array($queryStart);\n\t\n\t #hiligh pdf\n\t $sqlHiligh = \"UPDATE salary SET system_type = 'command' \n\t\t\t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t runno = '\".$rowsStart['runno'].\"' \";\n ##mysql_db_query($this->dbNow,$sqlHiligh)or die(mysql_error());\n \n $arrPosition[$rowsSalary['position_id']] = $rowsStart['date'];\n\t $arrPositionName[$rowsSalary['position_id']] = $rowsSalary['position'];\n\t $arrDateStart[] = $rowsStart['date'];\n\t $arrPositionId[] = $rowsSalary['position_id'];\n\t\t\t\t$arrLevelId[$rowsSalary['position_id']] = $rowsSalary['level_id'];\n\t $arrLevelName[$rowsSalary['position_id']] = $rowsSalary['radub'];\n\t $arrRunId[$rowsSalary['position_id']] = $rowsSalary['runid'];\n\t\t\t\t\n\t\t }#end while\n\t\t \n\t\t #Array Reverse \n\t\t $lenPosition = (count($arrPositionId)-1);\n for($i=$lenPosition;$i>=0;$i--){\n\t $arrPositionRe[$arrPositionId[$i]] = $arrDateStart[$i];\n\t $arrDateStartRe[] = $arrDateStart[$i];\n }\n\t\t \n\t\t #Array Sort\n\t\t arsort($arrPositionRe);\n rsort($arrDateStartRe);\n\t\t \n\t\t \n\t\t $i = 0;\n $arrDate = explode(\"-\",$this->startDate);\n $mkDate = (@mktime(0,0,0,$arrDate[1],$arrDate[2],$arrDate[0])) - 86400;\n $dateEndAll = date('Y-m-d',$mkDate);\n $endPosition = count($arrPosition)-1;\n\t\t #Start Loops\n\t\t foreach($arrPositionRe as $positionId=>$dateStart){\n\t\t\t //echo \"<hr>\";\n\t\t\t //echo $arrPositionName[$positionId];\n\t\t\t $dateStartPosition = $this->dateConvert($dateStart,'th-en-ymd');\n\t $dateStartPositionAll = $dateStartPosition;\n\t\t\t //echo \"<br>\"; \n\t //echo $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['positionId'] = $positionId;\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['positionName'] = $arrPositionName[$positionId];\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['levelName'] = $arrLevelName[$positionId];\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['dateStartPosition'] = $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\n\t\t\t \n\t\t\t \n\t\t\t if($i==0){\n\t $dateEndPosition = $dateEndAll;\n\t }else{\n\t $arrDateEnd = explode(\"-\",$arrDateStartRe[$i-1]);\n\t $mkDateEnd = (@mktime(0,0,0,$arrDateEnd[1],$arrDateEnd[2],($arrDateEnd[0]-543))) - 86400;\n\t $dateEnd = date('Y-m-d',$mkDateEnd);\n\t\t $dateEndPosition = $dateEnd;\n\t }\n\t\t\t //echo \"<br>\";\n\t\t\t //echo $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['dateEndPosition'] = $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t \n\t\t\t \n\t\t\t $arrPeriodPosition = $this->getPeriodReal($dateStartPosition,$dateEndPosition);\n\t $strPeriodPosition = $this->splitDate($arrPeriodPosition);\n\t $arrPeriodPositionAll = $this->getPeriodReal($dateStartPosition,$dateEndAll);\n\t $strPeriodPositionAll = $this->splitDate($arrPeriodPositionAll);\n\t\t\t $this->arrDataExp[$type]['normal'][$i]['strPeriodPosition'] = $strPeriodPosition;\n\t $this->arrDataExp[$type]['normal'][$i]['strPeriodPositionAll'] = $strPeriodPositionAll;\n\t\t\t \n\t\t\t \n\t\t\t //echo \"<br>\";\n\t\t\t //echo $strPeriodPosition;\n\t\t\t //echo \"<br>\";\n\t //echo $strPeriodPositionAll;\n\t\t\t \n\t\t\t if($arrPeriodPositionAll[0] >= $period){\n\t break;\n\t }\n\n\t\t\t //echo \"<hr>\";\n\t\t\t $i++;\n\t\t }#end foreach\n\t\t if($arrPeriodPositionAll[0] < $period){\n\t\t\t //echo \"<br>นับเกื้อกูล 3-5\";\n\t\t\t $strPosLine35 = implode(\",\",$this->arrPos35);\n\t\t\t $sqlSalary = \"SELECT * FROM salary \n WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t date < '\".$this->startDateTh.\"' AND \n\t\t\t\t\t\t\t\t date >= '\".$this->finishDateEdu.\"' AND \n\t\t\t\t\t\t\t\t position_id IN(\".$strPosLine35.\") \n\t\t\t\t GROUP BY position_id \n\t\t\t\t ORDER BY date ASC,level_id ASC,runno DESC\";\n\t\t\t //echo \"<br>\";\n\t\t\t //echo $sqlSalary; \n\t\t\t $querySalary = mysql_db_query($this->dbNow,$sqlSalary)or die(mysql_error());\n\t\t\t $numSalary = mysql_num_rows($querySalary);\n\t\t\t if($numSalary > 0){\n\t\t\t\t$this->helpStatus = 1; \n\t\t\t\t#clear array\n\t $arrPosition = array();\n\t\t $arrPositionName = array();\n\t\t $arrDateStart = array();\n\t\t $arrPositionId = array();\n\t\t $arrPositionRe = array();\n\t\t $arrDateStartRe = array();\n\t\t\t\t$arrLevelId = array();\n\t $arrLevelName = array();\n\t $arrRunId = array(); \n\t\t\t while($rowsSalary = mysql_fetch_array($querySalary)){\n\t\t\t\t\t#find start date\n\t $sqlStart = \"SELECT runno,date FROM salary \n\t\t\t\t\t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t\t position_id = '\".$rowsSalary['position_id'].\"' AND \n\t\t\t\t\t\t\t\t\t date != '' \n\t\t\t\t\t\t\t\t\t ORDER BY date ASC LIMIT 0,1 \";\n\t $queryStart = mysql_db_query($this->dbNow,$sqlStart)or die(mysql_error());\n\t $rowsStart = mysql_fetch_array($queryStart);\n\t\t\t\t\t\n\t\t\t\t\tif($rowsStart['date'] < $this->finishDateEdu){\n\t\t\t $arrPosition[$rowsSalary['position_id']] = $this->finishDateEdu;\n\t\t\t $arrDateStart[] = $this->finishDateEdu;\n\t \t }else{\n\t\t\t $arrPosition[$rowsSalary['position_id']] = $rowsStart['date'];\n\t\t\t $arrDateStart[] = $rowsStart['date'];\n\t\t }\n\t\t\t\t\t\n\t\t\t\t\t$arrPositionName[$rowsSalary['position_id']] = $rowsSalary['position'];\n\t $arrPositionId[] = $rowsSalary['position_id'];\n\t\t\t\t\t$arrLevelId[$rowsSalary['position_id']] = $rowsSalary['level_id'];\n\t $arrLevelName[$rowsSalary['position_id']] = $rowsSalary['radub'];\n\t $arrRunId[$rowsSalary['position_id']] = $rowsSalary['runid'];\n\t\t\t\t\t\n\t\t\t\t\t#hiligh pdf\n\t $sqlHiligh = \"UPDATE salary SET system_type = 'command' \n\t\t\t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t runno = '\".$rowsStart['runno'].\"' \";\n ##mysql_db_query($this->dbNow,$sqlHiligh)or die(mysql_error());\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t }#end while\n\t\t\t\t\n\t\t\t\t#Array Reverse \n\t\t $lenPosition = (count($arrPositionId)-1);\n for($i=$lenPosition;$i>=0;$i--){\n\t $arrPositionRe[$arrPositionId[$i]] = $arrDateStart[$i];\n\t $arrDateStartRe[] = $arrDateStart[$i];\n }\n\t\t \n\t\t #Array Sort\n\t\t arsort($arrPositionRe);\n rsort($arrDateStartRe);\n\t\t\t\t\n\t\t\t\t$i = 0;\n $dateEndFor35 = $dateStartPositionAll;\n $arrDateEndFor35 = explode(\"-\",$dateEndFor35);\n $mkDateEndFor35 = (@mktime(0,0,0,$arrDateEndFor35[1],$arrDateEndFor35[2],$arrDateEndFor35[0])) - 86400;\n $dateEndFor35All = date('Y-m-d',$mkDateEndFor35);\n $endPosition = count($arrPositionRe)-1;\n\t\t\t\t#start loops\n\t\t\t\tforeach($arrPositionRe as $positionId=>$dateStart){\n\t\t\t\t //echo \"<hr>\";\n\t\t\t //echo $arrPositionName[$positionId];\n\t\t\t $dateStartPosition = $this->dateConvert($dateStart,'th-en-ymd');\n\t $dateStartPositionAll = $dateStartPosition;\n\t\t\t //echo \"<br>\"; \n\t //echo $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\t\t\t $this->arrDataExp[$type]['3-5'][$i]['positionId'] = $positionId;\n\t\t\t $this->arrDataExp[$type]['3-5'][$i]['positionName'] = $arrPositionName[$positionId];\n\t\t\t $this->arrDataExp[$type]['3-5'][$i]['levelName'] = $arrLevelName[$positionId];\n\t\t\t $this->arrDataExp[$type]['3-5'][$i]['dateStartPosition'] = $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\t\t\t \n\t\t\t\t if($i == 0){\n\t $dateEndPosition = $dateEndFor35All;\n\t }else{\n\t $arrDateEnd = explode(\"-\",$arrDateStartRe[$i-1]);\n\t $mkDateEnd = (@mktime(0,0,0,$arrDateEnd[1],$arrDateEnd[2],($arrDateEnd[0]-543))) - 86400;\n\t $dateEnd = date('Y-m-d',$mkDateEnd);\n\t $dateEndPosition = $dateEnd;\n\t }\n\n\t\t\t\t //echo \"<br>\";\n\t\t\t //echo $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t $this->arrDataExp[$type]['3-5'][$i]['dateEndPosition'] = $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t $arrPeriodPosition = $this->getPeriodReal($dateStartPosition,$dateEndPosition);\n\t $strPeriodPosition = $this->splitDate($arrPeriodPosition);\n\t $arrPeriodPositionAll = $this->getPeriodReal($dateStartPosition,$dateEndAll);\n\t $strPeriodPositionAll = $this->splitDate($arrPeriodPositionAll);\n\t\t\t\t $this->arrDataExp[$type]['3-5'][$i]['strPeriodPosition'] = $strPeriodPosition;\n\t $this->arrDataExp[$type]['3-5'][$i]['strPeriodPositionAll'] = $strPeriodPositionAll;\n\t\t\t \n\t\t\t //echo \"<br>\";\n\t\t\t //echo \"รวมเวลาในตำแหน่ง \".$strPeriodPosition;\n\t\t\t //echo \"<br>\";\n\t //echo \"รวมเวลาทั้งหมด ($dateStartPosition - $dateEndAll)\".$strPeriodPositionAll;\n\t\t\t \n\t\t\t if($arrPeriodPositionAll[0] >= $period){\n\t break;\n\t }\n\t\t\t\t //echo \"<hr>\";\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t $i++;\n\t\t\t\t}#end foreach\n\t\t\t\tif($arrPeriodPositionAll[0] < $period){\n\t\t\t\t \t//echo \"<br>นับเกื้อกูล 1-2\";\n\t\t\t\t $strPosLine12 = implode(\",\",$this->arrPos12);\n\t\t\t $sqlSalary = \"SELECT * FROM salary \n WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t date < '\".$this->startDateTh.\"' AND \n\t\t\t\t\t\t\t\t date >= '\".$this->finishDateEdu.\"' AND \n\t\t\t\t\t\t\t\t position_id IN(\".$strPosLine12.\") \n\t\t\t\t GROUP BY position_id \n\t\t\t\t ORDER BY date ASC,level_id ASC,runno DESC\";\n\t\t\t //echo \"<br>\";\n\t\t\t //echo $sqlSalary;\n\t\t\t\t $querySalary = mysql_db_query($this->dbNow,$sqlSalary)or die(mysql_error());\n\t\t\t $numSalary = mysql_num_rows($querySalary);\n\t\t\t if($numSalary > 0){\n\t\t\t\t\t $this->helpStatus = 1;\n\t\t\t\t\t #clear array\n\t $arrPosition = array();\n\t\t $arrPositionName = array();\n\t\t $arrDateStart = array();\n\t\t $arrPositionId = array();\n\t\t $arrPositionRe = array();\n\t\t $arrDateStartRe = array();\n\t\t\t\t\t\t$arrLevelId = array();\n\t $arrLevelName = array();\n\t $arrRunId = array(); \n\t\t\t while($rowsSalary = mysql_fetch_array($querySalary)){\n\t\t\t\t\t\t \n\t\t\t\t\t\t #find start date\n\t \t $sqlStart = \"SELECT runno,date FROM salary \n\t\t\t\t\t \t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t\t \t position_id = '\".$rowsSalary['position_id'].\"' AND \n\t\t\t\t\t\t\t\t\t \t date != '' \n\t\t\t\t\t\t\t\t\t \t ORDER BY date ASC LIMIT 0,1 \";\n\t \t $queryStart = mysql_db_query($this->dbNow,$sqlStart)or die(mysql_error());\n\t \t $rowsStart = mysql_fetch_array($queryStart);\n\t\t\t\t\t\n\t\t\t\t\t\t if($rowsStart['date'] < $this->finishDateEdu){\n\t\t\t \t $arrPosition[$rowsSalary['position_id']] = $this->finishDateEdu;\n\t\t\t \t $arrDateStart[] = $this->finishDateEdu;\n\t \t \t }else{\n\t\t\t \t $arrPosition[$rowsSalary['position_id']] = $rowsStart['date'];\n\t\t\t \t $arrDateStart[] = $rowsStart['date'];\n\t\t \t }\n\t\t\t\t\t\n\t\t\t\t\t\t $arrPositionName[$rowsSalary['position_id']] = $rowsSalary['position'];\n\t \t $arrPositionId[] = $rowsSalary['position_id'];\n\t\t\t\t\t\t\t$arrLevelId[$rowsSalary['position_id']] = $rowsSalary['level_id'];\n\t $arrLevelName[$rowsSalary['position_id']] = $rowsSalary['radub'];\n\t $arrRunId[$rowsSalary['position_id']] = $rowsSalary['runid'];\n\t\t\t\t\t\n\t\t\t\t\t\t #hiligh pdf\n\t \t $sqlHiligh = \"UPDATE salary SET system_type = 'command' \n\t\t\t \t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t runno = '\".$rowsStart['runno'].\"' \";\n \t ##mysql_db_query($this->dbNow,$sqlHiligh)or die(mysql_error());\n\t\t\t\t\t\t\n\t\t\t\t\t }##end while\n\t\t\t\t\t\n\t\t\t\t\t #Array Reverse \n\t\t $lenPosition = (count($arrPositionId)-1);\n for($i=$lenPosition;$i>=0;$i--){\n\t $arrPositionRe[$arrPositionId[$i]] = $arrDateStart[$i];\n\t $arrDateStartRe[] = $arrDateStart[$i];\n }\n\t\t \n\t\t #Array Sort\n\t\t arsort($arrPositionRe);\n rsort($arrDateStartRe);\n\t\t\t\t\t\n\t\t\t\t\t $i = 0;\n $dateEndFor12 = $dateStartPositionAll;\n $arrDateEndFor12 = explode(\"-\",$dateEndFor12);\n $mkDateEndFor12 = (@mktime(0,0,0,$arrDateEndFor12[1],$arrDateEndFor12[2],$arrDateEndFor12[0])) - 86400;\n $dateEndFor12All = date('Y-m-d',$mkDateEndFor12);\n $endPosition = count($arrPositionRe)-1;\n\t\t\t\t #start loops\n\t\t\t\t foreach($arrPositionRe as $positionId=>$dateStart){\n\t\t\t\t //echo \"<hr>\";\n\t\t\t //echo $arrPositionName[$positionId];\n\t\t\t $dateStartPosition = $this->dateConvert($dateStart,'th-en-ymd');\n\t $dateStartPositionAll = $dateStartPosition;\n\t\t\t //echo \"<br>\"; \n\t //echo $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['positionId'] = $positionId;\n\t\t\t $this->arrDataExp[$type]['1-2'][$i]['positionName'] = $arrPositionName[$positionId];\n\t\t\t $this->arrDataExp[$type]['1-2'][$i]['levelName'] = $arrLevelName[$positionId];\n\t\t\t \n\t\t\t\t \n\t\t\t\t if($i == 0){\n\t $dateEndPosition = $dateEndFor12All;\n\t }else{\n\t $arrDateEnd = explode(\"-\",$arrDateStartRe[$i-1]);\n\t $mkDateEnd = (@mktime(0,0,0,$arrDateEnd[1],$arrDateEnd[2],($arrDateEnd[0]-543))) - 86400;\n\t $dateEnd = date('Y-m-d',$mkDateEnd);\n\t $dateEndPosition = $dateEnd;\n\t }\n\n\t\t\t\t //echo \"<br>\";\n\t\t\t //echo $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['dateEndPosition'] = $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t\t\t $dateEndHalf = $this->getPeriodRealHalf($dateStartPosition,$dateEndPosition);\n\t\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['dateStartPosition'] = $this->dateConvert($dateStartPosition,'en-th-ddmmyy').\" (\".$this->dateConvert($dateEndHalf,'en-th-ddmmyy').\")\";\n\t\t\t\t \n\t\t\t\t\t $arrPeriodPosition = $this->getPeriodReal($dateEndHalf,$dateEndPosition);\n\t $strPeriodPosition = $this->splitDate($arrPeriodPosition);\n\t\t\t\t\t\t $dateEndHalfAll = $this->getPeriodRealHalf($dateStartPosition,$dateEndFor12All);\n\t\t\t\t\t\t //echo $dateEndHalfAll.\" \".$dateEndAll;\n\t $arrPeriodPositionAll = $this->getPeriodReal($dateEndHalfAll,$dateEndAll);\n\t $strPeriodPositionAll = $this->splitDate($arrPeriodPositionAll);\n\t\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['strPeriodPosition'] = $strPeriodPosition;\n\t $this->arrDataExp[$type]['1-2'][$i]['strPeriodPositionAll'] = $strPeriodPositionAll;\n\t\t\t \n\t\t\t //echo \"<br>\";\n\t\t\t //echo \"รวมเวลาในตำแหน่ง \".$strPeriodPosition;\n\t\t\t //echo \"<br>\";\n\t //echo \"รวมเวลาทั้งหมด ($dateStartPosition - $dateEndAll)\".$strPeriodPositionAll;\n\t\t\t \n\t\t\t if($arrPeriodPositionAll[0] >= $period){\n\t break;\n\t }\n\t\t\t\t //echo \"<hr>\";\n\t\t\t\t $i++;\n\t\t\t\t }#end foreach\n\t\t\t\t\t if($arrPeriodPositionAll[0] >= $period){\n\t\t\t\t\t //echo \"<font color='#CC0000'>ผ่าน</font>\";\n\t\t\t\t\t\t return true; \n\t\t\t\t\t }else{\n\t\t\t\t\t //echo \"<font color='#CC0000'>ไม่ผ่าน</font>\"; \n\t\t\t\t\t\t return false;\t\n\t\t\t\t\t }\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//echo \"ไม่พบข้อมูลกลุ่มตำแหน่ง 1-2\";\n\t\t\t\t\t\t//echo \"<font color='#CC0000'>ไม่ผ่าน</font>\";\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t //echo \"<font color='#CC0000'>ผ่าน</font>\";\n\t\t\t\t return true; \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t }else{\n\t\t\t //echo \"ไม่พบข้อมูลกลุ่มตำแหน่ง 3-5\";\n\t\t\t\t//echo \"<br>นับเกื้อกูล 1-2\";\n\t\t\t\t$strPosLine12 = implode(\",\",$this->arrPos12);\n\t\t\t $sqlSalary = \"SELECT * FROM salary \n WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t date < '\".$this->startDateTh.\"' AND \n\t\t\t\t\t\t\t\t date >= '\".$this->finishDateEdu.\"' AND \n\t\t\t\t\t\t\t\t position_id IN(\".$strPosLine12.\") \n\t\t\t\t GROUP BY position_id \n\t\t\t\t ORDER BY date ASC,level_id ASC,runno DESC\";\n\t\t\t //echo \"<br>\";\n\t\t\t //echo $sqlSalary;\n\t\t\t\t$querySalary = mysql_db_query($this->dbNow,$sqlSalary)or die(mysql_error());\n\t\t\t $numSalary = mysql_num_rows($querySalary);\n\t\t\t if($numSalary > 0){\n\t\t\t\t\t$this->helpStatus = 1;\n\t\t\t\t\t#clear array\n\t $arrPosition = array();\n\t\t $arrPositionName = array();\n\t\t $arrDateStart = array();\n\t\t $arrPositionId = array();\n\t\t $arrPositionRe = array();\n\t\t $arrDateStartRe = array();\n\t\t\t\t\t$arrLevelId = array();\n\t $arrLevelName = array();\n\t $arrRunId = array();\n\t\t\t while($rowsSalary = mysql_fetch_array($querySalary)){\n\t\t\t\t\t\t \n\t\t\t\t\t\t#find start date\n\t \t$sqlStart = \"SELECT runno,date FROM salary \n\t\t\t\t\t \t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t\t \t position_id = '\".$rowsSalary['position_id'].\"' AND \n\t\t\t\t\t\t\t\t\t \t date != '' \n\t\t\t\t\t\t\t\t\t \t ORDER BY date ASC LIMIT 0,1 \";\n\t \t$queryStart = mysql_db_query($this->dbNow,$sqlStart)or die(mysql_error());\n\t \t$rowsStart = mysql_fetch_array($queryStart);\n\t\t\t\t\t\n\t\t\t\t\t\tif($rowsStart['date'] < $this->finishDateEdu){\n\t\t\t \t$arrPosition[$rowsSalary['position_id']] = $this->finishDateEdu;\n\t\t\t \t$arrDateStart[] = $this->finishDateEdu;\n\t \t \t}else{\n\t\t\t \t$arrPosition[$rowsSalary['position_id']] = $rowsStart['date'];\n\t\t\t \t$arrDateStart[] = $rowsStart['date'];\n\t\t \t}\n\t\t\t\t\t\n\t\t\t\t\t\t$arrPositionName[$rowsSalary['position_id']] = $rowsSalary['position'];\n\t \t$arrPositionId[] = $rowsSalary['position_id'];\n\t\t\t\t\t\t$arrLevelId[$rowsSalary['position_id']] = $rowsSalary['level_id'];\n\t $arrLevelName[$rowsSalary['position_id']] = $rowsSalary['radub'];\n\t $arrRunId[$rowsSalary['position_id']] = $rowsSalary['runid'];\n\t\t\t\t\t\n\t\t\t\t\t\t#hiligh pdf\n\t \t$sqlHiligh = \"UPDATE salary SET system_type = 'command' \n\t\t\t \t WHERE id = '\".$this->idcard.\"' AND \n\t\t\t\t\t\t\t runno = '\".$rowsStart['runno'].\"' \";\n \t##mysql_db_query($this->dbNow,$sqlHiligh)or die(mysql_error());\n\t\t\t\t\t\t\n\t\t\t\t\t}##end while\n\t\t\t\t\t\n\t\t\t\t\t#Array Reverse \n\t\t $lenPosition = (count($arrPositionId)-1);\n for($i=$lenPosition;$i>=0;$i--){\n\t $arrPositionRe[$arrPositionId[$i]] = $arrDateStart[$i];\n\t $arrDateStartRe[] = $arrDateStart[$i];\n }\n\t\t \n\t\t #Array Sort\n\t\t arsort($arrPositionRe);\n rsort($arrDateStartRe);\n\t\t\t\t\t\n\t\t\t\t\t$i = 0;\n $dateEndFor12 = $dateStartPositionAll;\n $arrDateEndFor12 = explode(\"-\",$dateEndFor12);\n $mkDateEndFor12 = (@mktime(0,0,0,$arrDateEndFor12[1],$arrDateEndFor12[2],$arrDateEndFor12[0])) - 86400;\n $dateEndFor12All = date('Y-m-d',$mkDateEndFor12);\n $endPosition = count($arrPositionRe)-1;\n\t\t\t\t #start loops\n\t\t\t\t foreach($arrPositionRe as $positionId=>$dateStart){\n\t\t\t\t //echo \"<hr>\";\n\t\t\t //echo $arrPositionName[$positionId];\n\t\t\t $dateStartPosition = $this->dateConvert($dateStart,'th-en-ymd');\n\t $dateStartPositionAll = $dateStartPosition;\n\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['positionId'] = $positionId;\n\t\t\t $this->arrDataExp[$type]['1-2'][$i]['positionName'] = $arrPositionName[$positionId];\n\t\t\t $this->arrDataExp[$type]['1-2'][$i]['levelName'] = $arrLevelName[$positionId];\n\t\t\t //echo \"<br>\"; \n\t //echo $this->dateConvert($dateStartPosition,'en-th-ddmmyy');\n\t\t\t\t \n\t\t\t\t if($i == 0){\n\t $dateEndPosition = $dateEndFor12All;\n\t }else{\n\t $arrDateEnd = explode(\"-\",$arrDateStartRe[$i-1]);\n\t $mkDateEnd = (@mktime(0,0,0,$arrDateEnd[1],$arrDateEnd[2],($arrDateEnd[0]-543))) - 86400;\n\t $dateEnd = date('Y-m-d',$mkDateEnd);\n\t $dateEndPosition = $dateEnd;\n\t }\n\n\t\t\t\t //echo \"<br>\";\n\t\t\t //echo $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['dateEndPosition'] = $this->dateConvert($dateEndPosition,'en-th-ddmmyy');\n\t\t\t\t $dateEndHalf = $this->getPeriodRealHalf($dateStartPosition,$dateEndPosition);\n\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['dateStartPosition'] = $this->dateConvert($dateStartPosition,'en-th-ddmmyy').\" (\".$this->dateConvert($dateEndHalf,'en-th-ddmmyy').\")\";\n\t\t\t\t \n\t\t\t\t\t $arrPeriodPosition = $this->getPeriodReal($dateEndHalf,$dateEndPosition);\n\t $strPeriodPosition = $this->splitDate($arrPeriodPosition);\n\t\t\t\t\t $dateEndHalfAll = $this->getPeriodRealHalf($dateStartPosition,$dateEndFor12All);\n\t\t\t\t\t //echo $dateEndHalfAll.\" \".$dateEndAll;\n\t $arrPeriodPositionAll = $this->getPeriodReal($dateEndHalfAll,$dateEndAll);\n\t $strPeriodPositionAll = $this->splitDate($arrPeriodPositionAll);\n\t\t\t\t\t $this->arrDataExp[$type]['1-2'][$i]['strPeriodPosition'] = $strPeriodPosition;\n\t $this->arrDataExp[$type]['1-2'][$i]['strPeriodPositionAll'] = $strPeriodPositionAll;\n\t\t\t \n\t\t\t //echo \"<br>\";\n\t\t\t //echo \"รวมเวลาในตำแหน่ง \".$strPeriodPosition;\n\t\t\t //echo \"<br>\";\n\t //echo \"รวมเวลาทั้งหมด ($dateStartPosition - $dateEndAll)\".$strPeriodPositionAll;\n\t\t\t \n\t\t\t if($arrPeriodPositionAll[0] >= $period){\n\t break;\n\t }\n\t\t\t\t //echo \"<hr>\";\n\t\t\t\t $i++;\n\t\t\t\t }#end foreach\n\t\t\t\t\tif($arrPeriodPositionAll[0] >= $period){\n\t\t\t\t\t //echo \"<font color='#CC0000'>ผ่าน1</font>\";\n\t\t\t\t\t return true; \n\t\t\t\t\t}else{\n\t\t\t\t\t //echo \"<font color='#CC0000'>ไม่ผ่าน</font>\";\n\t\t\t\t\t return false; \t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t }else{\n\t\t\t\t //echo \"ไม่พบข้อมูลกลุ่มตำแหน่ง 1-2\";\n\t\t\t\t\t//echo \"<font color='#CC0000'>ไม่ผ่าน</font>\";\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t }\n\t\t }else{\n\t\t\t //echo \"<font color='#CC0000'>ผ่าน2</font>\"; \n\t\t\t return true; \n\t\t }\n\t\t \n\t\t}else{\n\t\t //echo \"<font color='#CC0000'>ไม่ผ่าน</font>\";\t\n\t\t return false;\n\t\t}\t\t\t \n\t\t\n\t\tif($this->debug == 'on'){\n\t\t echo \"<pre>\";\n\t\t print_r($arrPositionRe);\n\t\t print_r($arrDateStartRe);\n\t\t echo \"</pre>\";\t\n\t\t echo $this->finishDateEdu;\n\t\t echo \"<br>\";\t\n\t\t echo $this->dbNow;\n\t\t echo \"<br>\";\n\t\t echo $sqlSalary;\n\t\t echo \"<br>\";\n\t\t echo $this->periodCond2;\n\t\t echo \"<pre>\";\n\t\t print_r($this->arrPositionLine);\n\t\t print_r($this->arrPosition);\n\t\t print_r($this->arrLevelId);\n\t\t echo \"</pre>\";\n\t\t} \n }", "public function actionExp()\n {\n try {\n // 根据手机号归属地 修改 客户的位置\n CRMStockClient::phone_to_location();\n } catch (\\Exception $e) {\n\n }\n\n try {\n // 更新统计数据 /stock/trend\n TrendStockService::init(TrendStockService::CAT_TREND)->chartTrend(date('Y-m-d'), 1);\n } catch (\\Exception $e) {\n\n }\n\n }" ]
[ "0.5694341", "0.55958486", "0.54909414", "0.5424713", "0.53998005", "0.5362946", "0.53571355", "0.53380394", "0.5337674", "0.53019184", "0.5286952", "0.5275475", "0.5240649", "0.5223777", "0.5223364", "0.52030355", "0.5188793", "0.51825863", "0.51717734", "0.5170451", "0.5158927", "0.5152277", "0.5094983", "0.50642776", "0.5057613", "0.5055203", "0.5045373", "0.5043757", "0.5039839", "0.50377893", "0.50333905", "0.5031386", "0.50302106", "0.5024876", "0.5024876", "0.50189346", "0.5017726", "0.5017384", "0.5011014", "0.50055665", "0.5005087", "0.4999168", "0.4996284", "0.49927187", "0.49927187", "0.49871036", "0.49862716", "0.49812126", "0.49740383", "0.49698395", "0.4969037", "0.49605304", "0.49597868", "0.4955224", "0.4951188", "0.49449798", "0.49449393", "0.49429938", "0.49231222", "0.491678", "0.491194", "0.4905182", "0.4902784", "0.4899966", "0.48993194", "0.489725", "0.48934862", "0.48720637", "0.48624095", "0.4862242", "0.48549104", "0.48531446", "0.4852141", "0.48518926", "0.4848519", "0.48421982", "0.48421982", "0.4840331", "0.48372322", "0.4832118", "0.48296243", "0.48260894", "0.48204204", "0.48200366", "0.4810989", "0.48058745", "0.48040706", "0.48040706", "0.47941583", "0.47941366", "0.47932982", "0.47899416", "0.47861958", "0.47747415", "0.4771349", "0.47711182", "0.47662082", "0.47539088", "0.47487393", "0.4747934", "0.47472543" ]
0.0
-1
Calculate equity position for lease
public function lease(int $value, int $paymentsRemaining, $paymentValue, $residual): float;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPos() {}", "public function getPos() {}", "public function getPos() {}", "public function getPos() {}", "public function getPos() {}", "function _casetravel($previousloc_X, $previousloc_Z, $previousaisle_X, $previousaisle_Z, $currentaisle_X, $currentaisle_Z, $FIRSTLOC_X, $FIRSTLOC_Z) {\n\n $outeraisle = abs($previousloc_X - $previousaisle_X) + abs($previousloc_Z - $previousaisle_Z); //previous last location to previous parking spot\n $outeraisle += abs($previousaisle_X - $currentaisle_X) + abs($previousaisle_Z - $currentaisle_Z); //previous parking spot to current parking spot\n $outeraisle += abs($currentaisle_X - $FIRSTLOC_X) + abs($currentaisle_Z - $FIRSTLOC_Z);\n\n return $outeraisle;\n}", "public function getPos();", "public function getPos();", "function getByNameAndPosition($employee){\n //devolver Empleado\n }", "public function getCepPosition()\n {\n return $this->_scopeConfig->getValue('estimatecep/cep_load_values/cep_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "function buildGeoPosition($equipment)\r\n{\r\n\r\n // Try the connection to MySQL + Select the relevant database\r\n // Make the SQL connection global as soon as possible\r\n $dbc = @mysqli_connect(DB_HOST, DB_USER , DB_PASSWORD) ;\r\n if ($dbc)\r\n {\r\n if(!mysqli_select_db($dbc, DB_NAME))\r\n {\r\n trigger_error(\"Could not select the database!<br>MYSQL Error:\" . mysqli_error($dbc)) ;\r\n exit();\r\n }\r\n }\r\n else\r\n {\r\n trigger_error(\"Could not connect to MySQL!<br>MYSQL Error:\" . mysqli_error($dbc));\r\n exit();\r\n }\r\n\r\n // Get the last position of the scentinel\r\n $query = \"SELECT sample.id AS sample_id, sample.lat, sample.lon\r\n FROM sample\r\n WHERE equipement = \" . $equipment\r\n . \" ORDER BY sampledat DESC LIMIT 1\";\r\n $result = mysqli_query($dbc, $query) or trigger_error(\"Query: $query\\n<br>MySQL Error: \" . mysqli_error($dbc));\r\n $row = mysqli_fetch_array($result, MYSQLI_NUM) ;\r\n $lat = $row[1] ;\r\n $lon = $row[2] ;\r\n \r\n $final_geoposition = '{lat: ' . $lat . ', lng: ' . $lon '};';\r\n \r\n return array($final_geoposition) ;\r\n}", "function getPosition() ;", "function show_position($userComparison) \n{\n\t$allTotals = array();\n\n\t$smallestValue = -1.0;\n\n\t$rightRoom = \"default\";\n\n\t$rightCoordinates = \"default\";\n\n\tforeach($userComparison as $value) {\n\t\n\n\t\t$local_relations = $value->get_relations();\n\n\t\t$temp_sum = 0.0;\n\n\t\t$n = 0;\n\n\t\tforeach($local_relations as $value_2) {\t\n\t\t\t$temp_sum = $temp_sum + $value_2;\n\t\t\t$n = $n + 1;\t\n\t\t\t}\n\t\n\t\tif ( $n >= 3) {\n\n\t\t\t$relative_sum = $temp_sum / (double)($n);\n\n\t\t\tif ($smallestValue == -1.0) {\n\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\n\t\t\t\t}\n\t\t\telseif ($smallestValue > $relative_sum) {\n\t\t\t\n\t\t\t\t$smallestValue = $relative_sum;\n\t\t\t\t$rightRoom = $value->get_room();\n\t\t\t\t$rightCoordinates = $value->get_position();\n\t\t\t\n\t\t\t\t}\n\n\n\t\t\t$totalDifference = new FprintDifference($value->get_room(), $value->get_position(), $relative_sum);\n\t\t\tarray_push($allTotals, $totalDifference);\n\t\t\t}\n\n\t}\n\n\n\techo $rightRoom . \": \" . $rightCoordinates . \", relative distance was:\" . $smallestValue;\n\n\n\treturn $allTotals;\n\n\n}", "public function position();", "function pawn($original_position, $new_position){\n\t\t//if($vector == 1 move ahead\n\t\t//X movement\n\t\t//Y movement\n\t\t//E2 to E4\n\t\t//E minus the E\n\t\t//4 minus 2\n\t\n\t}", "public function getProductPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product_position');\n }", "function get_position( )\n\t{\n\t\treturn $this->latdeg.\";\".$this->londeg;\n\t}", "public function getProductPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getNextPosition()\n {\n $parentPos = trim($this->getPosition());\n $sql=\"select position from \" . strtolower(get_class($this)) . \" where active = 1 and position like '\" . $parentPos . str_repeat('_', self::POS_LENGTH_PER_LEVEL). \"' order by position asc\";\n $result = Dao::getResultsNative($sql);\n if(count($result) === 0)\n return $parentPos . str_repeat('0', self::POS_LENGTH_PER_LEVEL);\n \n $expectedAccountNos = array_map(create_function('$a', 'return \"' . $parentPos . '\".str_pad($a, ' . self::POS_LENGTH_PER_LEVEL . ', 0, STR_PAD_LEFT);'), range(0, str_repeat('9', self::POS_LENGTH_PER_LEVEL)));\n $usedAccountNos = array_map(create_function('$a', 'return $a[\"position\"];'), $result);\n $unUsed = array_diff($expectedAccountNos, $usedAccountNos);\n sort($unUsed);\n if (count($unUsed) === 0)\n \tthrow new EntityException(\"Position over loaded (parentId = \" . $this->getId() . \")!\");\n \n return $unUsed[0];\n }", "protected static function generatePositionToCrown ()\n {\n $dataTree = Tree::getByUser()->getDataByTree();\n\n $treeCroneCenterPosX = $dataTree['crownCenterPosX'];\n $treeCroneCenterPosY = $dataTree['crownCenterPosY'];\n\n $treeHalfWidth = $dataTree['halfCrownWidth'];\n $treeHalfHeight = $dataTree['halfCrownHeight'];\n\n\n $posX = rand(-$treeHalfWidth, $treeHalfWidth);\n $posY = rand(-$treeHalfHeight, $treeHalfHeight);\n\n // Check the coordinates located inside the oval (crown) (x^2/a^2 + y^2/b^2) == 1 for ellipse\n $ovalVerification = (($posX * $posX) / ($treeHalfWidth * $treeHalfWidth)) + (($posY * $posY) / ($treeHalfHeight * $treeHalfHeight));\n\n if($ovalVerification > 1){\n // If they are beyond the oval (crown),\n // I place them on the surface of the oval (crown),\n // keeping the angle from the center\n $reductionRatio = sqrt($ovalVerification);\n $posX /= $reductionRatio;\n $posY /= $reductionRatio;\n }\n\n return [\n 'x' => (int) ($treeCroneCenterPosX + $posX),\n 'y' => (int) ($treeCroneCenterPosY + $posY),\n ];\n }", "private function _getPosData($sweres) {\n $swearr = explode(\"\\n\",$sweres);\n $points = array();\n $points['sun'] = $swearr[0]; //7\n $points['earth'] = fmod($swearr[0] + 180.0, 360.0); //5\n $points['moon'] = $swearr[1]; //4\n $points['lil'] = $swearr[2]; //2\n $points['nnode'] = $swearr[3]; //6\n $points['snode'] = fmod($swearr[3] + 180.0, 360.0); //8\n $points['asc'] = $swearr[4]; // 3\n $minuslil = $swearr[2] - 30.0;\n if ($minuslil < 0) {\n $minuslil += 360.0;\n }\n $points['prevlil'] = $minuslil; //1\n\n asort($points, SORT_NUMERIC);\n foreach (array_keys($points) as $key) {\n if ($key == 'asc') {\n break;\n } else {\n $points[$key] = array_shift($points);\n }\n }\n $order = array('prevlil' => 'I', 'lil' => 'II', 'asc' => 'III', 'moon' => 'IV', 'earth' => 'V',\n 'nnode' => 'VI', 'sun' => 'VII', 'snode' => 'VIII');\n $seq = array();\n foreach (array_keys($points) as $key) {\n $seq[] = $order[$key];\n }\n return $seq;\n }", "public function getPosition() {}", "public function getPosition() {}", "public function positions(){\n $this->articlesModel->positions();\n }", "public function getPosition();", "public function getPosition();", "public function getPosition();", "function fn_rus_payments_payanyway_get_inventory_positions($order_info)\n{\n $map_taxes = fn_get_schema('rus_payments', 'payanyway_map_taxes');\n $inventory_positions = array();\n\n /** @var \\Tygh\\Addons\\RusTaxes\\ReceiptFactory $receipt_factory */\n $receipt_factory = Tygh::$app['addons.rus_taxes.receipt_factory'];\n $receipt = $receipt_factory->createReceiptFromOrder($order_info, CART_PRIMARY_CURRENCY);\n\n if ($receipt) {\n foreach ($receipt->getItems() as $item) {\n $inventory_positions[] = array(\n 'name' => $item->getName(),\n 'price' => $item->getPrice(),\n 'quantity' => $item->getQuantity(),\n 'vatTag' => isset($map_taxes[$item->getTaxType()]) ? $map_taxes[$item->getTaxType()] : $map_taxes[TaxType::NONE]\n );\n }\n }\n\n return $inventory_positions;\n}", "function old_calculate_position($fingerPrints, $user_signals)\n{\n\n\t$closest_distance = 100000000.0;\n\t$closest_coordinates = \"000,000\";\n\t$closest_room = \"default\";\n\t$a = 0;\n\tforeach ($fingerPrints as $outer) {\n\t\t$temp_sum = 0.0;\n\t\tforeach ($outer as $value) {\t\n\t\t\tforeach($user_signals as $mac => $sig) {\n\t\t\t\tif ($mac == $value->get_mac()) {\n\t\t\t\t\t$signal_distance = $value->get_average() - $sig;\n\t\t\t\t\t$absolute_distance = abs($signal_distance);\n\t\t\t\t\t$temp_sum = $temp_sum + $absolute_distance;\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\t \n\t\t}\n\t\tif ($temp_sum < $closest_distance) {\n\t\t\t$closest_distance = $temp_sum;\n\t\t\t$closest_coordinates = $fingerPrints[$a][0]->get_position();\n\t\t$closest_room = $fingerPrints[$a][0]->get_room();\n\t\t}\n\t\t$a = $a + 1;\n\t}\n\techo $closest_coordinates; \n\techo \"_\";\n\techo $closest_room;\n}", "function getPosition() {\n\t\t}", "public function getStrikeoutPosition() {}", "public function getSolde(): float\n {\n return $this->solde;\n }", "public function getCatalogPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_catalog_position');\n }", "public function getCatalogPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_catalog_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "public function getCartPosition()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_cart_position');\n }", "public function calc_order_point(){\n\t\t$this->_check_access(); //拒绝非法IP执行任务\n\t\t$this->_write_log(__FUNCTION__);\n\t\t$this->load->model('soma/sales_point_model', 'sp_model');\n\t\t$this->sp_model->trans_begin();\n\t\ttry {\n\n\t\t\t$s_time = date('Y-m-d H:i:s', strtotime(\"-2 hours\"));\n\n\t\t\t$days = $this->input->get('d');\n\t\t\tif($days) {\n\t\t\t\t$s_time = date('Y-m-d', strtotime(\"-$days days\")) . ' 00:00:00';\n\t\t\t}\n\n\t\t\t$this->sp_model->update_point_queue($s_time);\n\t\t\t$this->sp_model->trans_commit();\n\t\t\tdie('SUCCESS');\n\t\t} catch (Exception $e) {\n\t\t\t$this->sp_model->trans_rollback();\n\t\t}\n\t\tdie('Failed');\n\t}", "private function splice_site_distance() {\n $this->record_progress(\n \"Step 5: Computing splice site distances\");\n\n $path_new_input = $this->path_new_input;\n $path_intronic = ($this->working_directory_path).\"/intronic\";\n $path_intronic_borders = \n ($this->working_directory_path).\"/intronic_borders\";\n $path_ss_dist = $this->path_ss_dist;\n\n $read_new_input = fopen($path_new_input, \"r\");\n $write_intronic = fopen($path_intronic, \"w\");\n\n while (! feof($read_new_input)) {\n $line_new_input = fgets($read_new_input);\n $line_new_input = str_replace(\"\\n\", \"\", $line_new_input);\n $line_array = explode(\"\\t\", $line_new_input);\n $distance = 0;\n $splice_site = \"_\";\n if (count($line_array) > 24) {\n $chromosome = $line_array[0];\n $mutant_loc = intval($line_array[5]);\n $start_loc = intval($line_array[9]);\n $end_loc = intval($line_array[10]);\n $strand = $line_array[14];\n $variant_type = $line_array[23];\n $left_dist = $mutant_loc - $start_loc + 1;\n $right_dist = $end_loc - $start_loc + 1;\n if ($variant_type == \"intronic_variant\") {\n // For intronic variants, records positions to a file to\n // be processed to find the corresponding exons.\n $left_exon_end_loc = $start_loc - 1;\n $right_exon_start_loc = $end_loc + 1;\n $left_line = $chromosome.\"\\t\".($left_exon_end_loc - 1).\n \"\\t\".$left_exon_end_loc.\"\\t\".$mutant_loc.\"\\n\";\n fwrite($write_intronic, $left_line);\n $right_line = $chromosome.\"\\t\".$right_exon_start_loc.\n \"\\t\".($right_exon_start_loc + 1).\"\\t\".$mutant_loc.\"\\n\";\n fwrite($write_intronic, $right_line);\n\n }\n }\n }\n\n fclose($read_new_input);\n fclose($write_intronic);\n\n exec(\"bedtools intersect -wao\\\n -a '$path_intronic'\\\n -b /var/www/html/spliceman_beta/genome_data/reformatted_coding_exons.txt\\\n > '$path_intronic_borders'\",\n $bedtools_array,\n $return);\n \n if ($return) {\n if (count($bedtools_array) - 1 == 0) {\n $this->pipeline_error(\n \"Your file did not have any mutations that we were able \n to process. Is your file correctly formatted with one \n line per mutation?\");\n }\n $this->pipeline_error(\n \"Error in pipeline, please contact administrator and provide \n step 5\");\n }\n\n $read_new_input = fopen($path_new_input, \"r\");\n $read_intronic_borders = fopen($path_intronic_borders, \"r\");\n $write_ss_dist = fopen($path_ss_dist, \"w\");\n\n if (feof($read_intronic_borders)) {\n $line_intronic_borders = \"\";\n } else {\n $line_intronic_borders = fgets($read_intronic_borders);\n }\n\n while (! feof($read_new_input)) {\n $line_new_input = fgets($read_new_input);\n $line_new_input = str_replace(\"\\n\", \"\", $line_new_input);\n $array_new_input = explode(\"\\t\", $line_new_input);\n if (count($array_new_input) > 24) {\n $chromosome = $array_new_input[0];\n $mutant_loc = intval($array_new_input[5]);\n $start_loc = intval($array_new_input[9]);\n $end_loc = intval($array_new_input[10]);\n $strand = $array_new_input[14];\n $variant_type = $array_new_input[23];\n $left_dist = $mutant_loc - $start_loc + 1;\n $right_dist = $end_loc - $start_loc + 1;\n if ($variant_type == \"exonic_variant\") {\n // For exonic variants, calculates the distance and writes\n // it to an intermediate file.\n if ($left_dist <= $right_dist) {\n $distance = $left_dist;\n $splice_site = ($strand == \"+\" ? \"5'\" : \"3'\");\n } else {\n $distance = $right_dist;\n $splice_site = ($strand == \"+\" ? \"3'\" : \"5'\");\n }\n } else {\n // If an intron, iterates through the border data to find\n // an exon that borders it. Then, computes the distance\n // between\n $found = false;\n while ((! $found) and (! feof($read_intronic_borders))) {\n $array_intronic_borders = \n explode(\"\\t\", $line_intronic_borders);\n if ($start_loc - 1 == $array_intronic_borders[2]) {\n $distance = $left_dist;\n $splice_site = ($strand == \"+\" ? \"5'\" : \"3'\");\n $found = true;\n } elseif ($end_loc + 1 == $array_intronic_borders[1]) {\n $distance = $right_dist;\n $splice_site = ($strand == \"+\" ? \"3'\" : \"5'\");\n $found = false;\n } else {\n if (feof($read_intronic_borders)) {\n $line_intronic_borders = \"\";\n } else {\n $line_intronic_borders = fgets($read_intronic_borders);\n }\n }\n }\n }\n array_push($array_new_input, $distance);\n array_push($array_new_input, $splice_site);\n $new_line = implode(\"\\t\", $array_new_input).\"\\n\";\n fwrite($write_ss_dist, $new_line);\n }\n }\n fclose($read_new_input);\n fclose($read_intronic_borders);\n fclose($write_ss_dist);\n }", "function valore_totale_lordo_gas_esterno($id_ordine,$id_gas){\r\n $ordine = valore_totale_mio_gas($id_ordine,$id_gas);\r\n $costi = valore_costi_esterni_gas($id_ordine,$id_gas);\r\n return (float)$ordine+$costi;\r\n}", "public function getES()\n {\n // Calculate from a and b, if b has been supplied.\n if (isset($this->b)) {\n $a2 = $this->a * $this->a;\n $b = $this->b;\n $b2 = $this->b * $this->b;\n\n return ($a2 - $b2) / $a2;\n } else {\n // Otherwise use f.\n // FIXME: F will be infinite for a sphere. Can we use RF?\n $f = $this->getF();\n\n return (2 * $f) - ($f * $f);\n }\n }", "function calculate_delivery_cost($volume,$location_distance,$quantity){\n $total_volume = $volume * $quantity;\n // assume that the volume of space available in a motocycle is 500\n $motocycle_vol = 500;\n // assume that the volume of space available in a motocycle is 1000\n $cab_volume = 1000;\n if($total_volume <= $motocycle_vol){\n $means = 1; // 1 for motocycle ans 2 for cab\n }elseif ($total_volume <= $cab_volume && $total_volume > $motocycle_vol){\n $means = 2;\n }\n $cost_per_dist = ($means == 1)? 100 : 70;\n $total_cost = $cost_per_dist * $location_distance; // assume location distance is in km\n return $total_cost;\n}", "public function getPosition() : int\n {\n $rtn = $this->data['position'];\n\n return $rtn;\n }", "public function GetPosition()\n\t{\n\t\tif($this->position['horizontal'] != '' && $this->position['verticle'] != '')\n\t\t\treturn $this->position['horizontal'].$this->position['verticle'];\n\t\telse\n\t\t\treturn 'Invalid Position';\n\t}", "public function getPosition(){ }", "public function getCartPosition()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_cart_position', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }", "Function Get_Sun_Asc_position($jd, $my_longitude, $my_latitude)\r\n{\r\n $swephsrc = './sweph'; //sweph MUST be in a folder no less than at this level\r\n $sweph = './sweph';\r\n\r\n unset($out, $a_long, $s_long);\r\n \r\n exec (\"swetest -edir$sweph -bj$jd -p0 -eswe -fl -g, -head\", $out);\r\n\r\n // Each line of output data from swetest is exploded into array $row, giving these elements:\r\n // 0 = longitude\r\n foreach ($out as $key => $line)\r\n {\r\n $row = explode(',',$line);\r\n $s_long[$key] = $row[0];\r\n };\r\n\r\n\r\n $h_sys = \"p\";\r\n exec (\"swetest -edir$sweph -bj$jd -ut -p0 -eswe -house$my_longitude,$my_latitude,$h_sys -fl -g, -head\", $out);\r\n\r\n\r\n // Each line of output data from swetest is exploded into array $row, giving these elements:\r\n // 0 = longitude\r\n foreach ($out as $key => $line)\r\n {\r\n $row = explode(',',$line);\r\n $a_long[$key] = $row[0];\r\n };\r\n\r\n $s_long[1] = $a_long[2];\r\n \r\n return $s_long;\r\n}", "private function get_offset() {\n\t\treturn ( (time() - $this->skew) % ($this->lifetime + $this->skew) );\n\t}", "public function getPosition(): string;", "private function inHouseRelativeTo( $ref, $transitPoint )\n\t{\n\t\t$deltaDegrees = $this->deltaDegrees( $ref, $transitPoint );\n\t\t$deltaHouse = (int)($deltaDegrees/30);\n\t\t$deltaHouse += 1;\n\t\treturn $deltaHouse;\n\t}", "public function calculateLifetimeValue($orders);", "public function getPosition() {\n }", "public function position()\n\t{\n\t\treturn $this->getField('position');\n\t}", "private function getMovePosition(Board $board)\r\n {\r\n $position = null;\r\n\r\n// todo\r\n for($i=0;$i<Board::ROWS;$i++)\r\n {\r\n if(!($board->hasPieceAtPosition($i, 0)) && $board->getPieceAtPosition($i, 1)==self::PIECE && $board->getPieceAtPosition($i, 2)== self::PIECE)\r\n {\r\n $position=[$i,0];\r\n }\r\n else if(!($board->hasPieceAtPosition($i, 1)) && $board->getPieceAtPosition($i, 0)==self::PIECE && $board->getPieceAtPosition($i, 2)== self::PIECE)\r\n {\r\n $position=[$i,1];\r\n }\r\n else if(!($board->hasPieceAtPosition($i, 2)) && $board->getPieceAtPosition($i, 0)==self::PIECE && $board->getPieceAtPosition($i, 1)== self::PIECE)\r\n {\r\n $position=[$i,2];\r\n }\r\n }\r\n for($j=0;$j<Board::COLUMNS;$j++)\r\n {\r\n if(!($board->hasPieceAtPosition(0, $j)) && $board->getPieceAtPosition(1, $j)==self::PIECE && $board->getPieceAtPosition(2, $j)== self::PIECE)\r\n {\r\n $position=[0,$j];\r\n }\r\n else if(!($board->hasPieceAtPosition(1, $j)) && $board->getPieceAtPosition(0, $j)==self::PIECE && $board->getPieceAtPosition(2, $j)== self::PIECE)\r\n {\r\n $position=[1,$j];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, $j)) && $board->getPieceAtPosition(0, $j)==self::PIECE && $board->getPieceAtPosition(1, $j)== self::PIECE)\r\n {\r\n $position=[2,$j];\r\n }\r\n }\r\n if($board->getPieceAtPosition(1, 1)==self::PIECE)\r\n {\r\n if(!($board->hasPieceAtPosition(0, 0)) && $board->getPieceAtPosition(2, 2)==self::PIECE)\r\n {\r\n $position = [0,0];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, 2)) && $board->getPieceAtPosition(0, 0)==self::PIECE)\r\n {\r\n $position = [2,2];\r\n }\r\n else if(!($board->hasPieceAtPosition(0, 2)) && $board->getPieceAtPosition(2, 0)==self::PIECE)\r\n {\r\n $position = [0,2];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, 0)) && $board->getPieceAtPosition(0, 2)==self::PIECE)\r\n {\r\n $position = [2,0];\r\n }\r\n }\r\n\r\n# 2. Or place a piece that prevents the player from winning. \r\n if(is_null($position))\r\n {\r\n for($i=0;$i<Board::ROWS;$i++)\r\n {\r\n if(!($board->hasPieceAtPosition($i, 0)) && ($board->getPieceAtPosition($i, 1)==self::BADPIECE) && ($board->getPieceAtPosition($i, 2)== self::BADPIECE))\r\n {\r\n $position=[$i,0];\r\n }\r\n else if(!($board->hasPieceAtPosition($i, 1)) && ($board->getPieceAtPosition($i, 0)==self::BADPIECE) && ($board->getPieceAtPosition($i, 2)== self::BADPIECE))\r\n {\r\n $position=[$i,1];\r\n }\r\n else if(!($board->hasPieceAtPosition($i, 2)) && ($board->getPieceAtPosition($i, 0)==self::BADPIECE) && ($board->getPieceAtPosition($i, 1)== self::BADPIECE))\r\n {\r\n $position=[$i,2];\r\n }\r\n }\r\n for($j=0;$j<Board::COLUMNS;$j++)\r\n {\r\n if(!($board->hasPieceAtPosition(0, $j)) && ($board->getPieceAtPosition(1, $j)==self::BADPIECE) && ($board->getPieceAtPosition(2, $j)== self::BADPIECE))\r\n {\r\n $position=[0,$j];\r\n }\r\n else if(!($board->hasPieceAtPosition(1, $j)) && ($board->getPieceAtPosition(0, $j)==self::BADPIECE) && ($board->getPieceAtPosition(2, $j)== self::BADPIECE))\r\n {\r\n $position=[1,$j];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, $j)) && ($board->getPieceAtPosition(0, $j)==self::BADPIECE) && ($board->getPieceAtPosition(1, $j))== self::BADPIECE)\r\n {\r\n $position=[2,$j];\r\n }\r\n }\r\n\r\n if($board->getPieceAtPosition(1, 1)==self::BADPIECE)\r\n {\r\n if(!($board->hasPieceAtPosition(0, 0)) && $board->getPieceAtPosition(2, 2)==self::BADPIECE)\r\n {\r\n $position = [0,0];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, 2)) && $board->getPieceAtPosition(0, 0)==self::BADPIECE)\r\n {\r\n $position = [2,2];\r\n }\r\n else if(!($board->hasPieceAtPosition(0, 2)) && $board->getPieceAtPosition(2, 0)==self::BADPIECE)\r\n {\r\n $position = [0,2];\r\n }\r\n else if(!($board->hasPieceAtPosition(2, 0)) && $board->getPieceAtPosition(0, 2)==self::BADPIECE)\r\n {\r\n $position = [2,0];\r\n }\r\n }\r\n }\r\n\r\n if(is_null($position))\r\n {\r\n $blankpositions=$board->getBlankPositions();\r\n $numberpositions = count($board->getBlankPositions());\r\n $chooseposition = rand(1,$numberpositions);\r\n $position = $blankpositions[$chooseposition - 1];\r\n }\r\n\r\n return $position;\r\n }", "function pms_get_currency_position() {\r\n\r\n $settings = get_option( 'pms_payments_settings' );\r\n\r\n if ( isset( $settings['currency_position'] ) )\r\n return $settings['currency_position'];\r\n\r\n return 'after';\r\n }", "function GetFuturePts($t)\n{\n global $game, $NUM_BUILDING;\n $_planet_points = 10;\n\n // Sum all points of the planet, $game->planet contains values\n // actualized with the queued buildings\n for($b = 1; $b <= $NUM_BUILDING; $b++)\n $_planet_points += pow($game->planet['building_'.$b],1.5);\n /* \n for($r = 1; $r <= 5; $r++)\n $_planet_points += pow($game->planet['research_'.$r],1.5);\n */\n $_planet_points = round($_planet_points);\n\n // Calculate points of the required building\n $_points = round(pow($game->planet['building_'.($t+1)]+1,1.5)-pow($game->planet['building_'.($t+1)],1.5));\n\n // Sum up all the points\n $_total = $_points + $_planet_points;\n\n return($_total);\n}", "function getSaddleCost (&$labor, &$rawCost, $quantity) {\nif ($_POST[\"saddle\"] == \"saddle\") {\n\t$saddleLabor = (($quantity/SADDLEPERHOUR) * HOUR);\n\t$saddleCost = ($quantity * STAPLE);\n\t}\nelse {\n\t$saddleLabor = 0;\n\t$saddleCost = 0;\n\t}\n$labor += $saddleLabor;\n$rawCost += $saddleCost;\n}", "function getCarParkLoc($from_lat, $from_lon){\n // find the closest node_id to ($from_lat, $from_lon) on a way\n global $mysqli;\n $offset = 0.1;\n $sql = \"SELECT node_id, lat, lon, (lat-{$from_lat})*(lat-{$from_lat}) + (lon - {$from_lon})*(lon - {$from_lon}) AS x FROM osm_car_parkings\n ORDER BY x ASC LIMIT 1\";\n $arr = array();\n $result = $mysqli->query($sql);\n while($result && $row = $result->fetch_assoc()){\n $arr[] = array($row['lat'],$row['lon']);\n }\n return $arr[0];\n}", "public function calculateQtyToShip();", "protected function giveCost()\n\t{\n\t\t$solarSaving = 2;\n\t\t$this->valueNow = 210.54 / $solarSaving;\n\t\treturn $this->valueNow;\n\t}", "public function getcourseremainedunits() \n {\n \t//$_Mremainedtimes=$this->courseAunits*2+$this->courseTunits;\n \t$_Mremainedtimes=$this->courseAunits+$this->courseTunits;\n \tif($this->otherpart1slots!='')\n \t{\n \t\tif(strpos($this->otherpart1slots,'s')>=0)\n \t\t{$_Mremainedtimes=$_Mremainedtimes-2;}\n \t\telse if((strpos($this->otherpart1slots,'e'))||(strpos($this->otherpart1slots,'0')))\n \t\t{$_Mremainedtimes=$_Mremainedtimes-1;}\n \t}\n \tif($this->otherpart2slots!='')\n \t{\n \t\tif(strpos($this->otherpart2slots,'s')>=0)\n \t\t{$_Mremainedtimes=$_Mremainedtimes-2;}\n \t\telse if((strpos($this->otherpart2slots,'e'))||(strpos($this->otherpart2slots,'0')))\n \t\t{$_Mremainedtimes=$_Mremainedtimes-1;}\n \t}\n\treturn $_Mremainedtimes;\n \t\n }", "protected function calculateSpritePositions() {}", "public function getInitialPosition();", "abstract function incrementPosition();", "function calculateEmission($emission, $distance)\n {\n return $emission*$distance;\n }", "public function getPosition()\n {\n $positionName = $this->ipAddress;\n if ($this->city) {\n $placeNames = array($this->city);\n if ($this->country_name) {\n array_push($placeNames, $this->country_name);\n }\n $positionName = implode(\", \", $placeNames);\n } elseif ($this->latitude && $this->longitude) {\n $positionName = $this->latitude . \", \" . $this->longitude;\n }\n return $positionName;\n }", "function Box($start_point, $end_point) {\n if ($start_point == $end_point) {\n $top = $start_point->lat;\n $bottom = $top;\n $left = $start_point->lng;\n $right = $left;\n return;\n }\n #echo \"Box Constructor<br/>\";\n #echo \"P1={\" . $start_point->lat . \",\" . $start_point->lng . \"}<br/>\"; \n #echo \"P2={\" . $end_point->lat . \",\" . $end_point->lng . \"}<br/>\";\n $midpoint = $this->findMidpoint($start_point, $end_point);\n #echo \"P3={\" . $midpoint->lat . \",\" . $midpoint->lng . \"}<br/>\";\n $slope = $this->findSlope($start_point, $end_point);\n #echo \"getting distance<br/>\";\n $distance = $midpoint->getDistanceMiles($start_point);\n #echo \"new distance is $distance<br/>\";\n //$p1 = $this->findP1($slope, $midpoint, $distance/4);\n $miles_per_degree_latitude = 69.023;\n #echo \"slope = \" . $slope . \"<br/>\";\n $p1 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n $p2 = new Point($midpoint->lng,$distance/$miles_per_degree_latitude);\n if ($slope != \"vertical\") {\n $p1 = $this->gP1($slope, $start_point, $end_point);\n $p2 = $this->gP2($slope, $start_point, $end_point);\n }\n #echo \"P4={\" . $p1->lat . \",\" . $p1->lng . \"}<br/>\";\n //$p2 = $this->findP2($slope, $midpoint, $distance/4);\n #echo \"P5={\" . $p2->lat . \",\" . $p2->lng . \"}<br/>\";\n $y = array($start_point->lat, $end_point->lat, $p1->lat, $p2->lat);\n $x = array($start_point->lng, $end_point->lng, $p1->lng, $p2->lng);\n $this->top = max($y);\n $this->bottom = min($y);\n $this->left = min($x);\n $this->right = max($x);\n }", "public function calculateCenter(): Position\n {\n if ($this->center) {\n return $this->center;\n }\n if ($this->isEmpty()) {\n return new Position(0, 0);\n }\n $sumX = 0;\n $sumY = 0;\n foreach ($this->destinations as $destination) {\n $sumX += $destination->getX();\n $sumY += $destination->getY();\n }\n $destinationCount = count($this->destinations);\n $this->center = new Position(\n $sumX / $destinationCount,\n $sumY / $destinationCount\n );\n return $this->center;\n }", "public function getMasterPos() {\n\t\t# Stub\n\t\treturn false;\n\t}", "function readEOP($filePath) {\n\n libxml_use_internal_errors(true);\n\n $doc = new DOMDocument();\n $doc->loadXML(file_get_contents($filePath));\n \n $errors = libxml_get_errors();\n\n // Footprint as WKT POLYGON\n $footprint = posListToWKT($doc->getElementsByTagname('Polygon')->item(0)->getElementsByTagname('posList')->item(0)->nodeValue, \"LATLON\");\n\n // Identifier and parentIdentifier\n $info = $doc->getElementsByTagname('EarthObservationMetaData')->item(0);\n $identifier = $info->getElementsByTagname('identifier')->item(0)->nodeValue;\n\n // parentIdentifier is set ?\n if ($info->getElementsByTagname('parentIdentifier')->item(0)) {\n $parentIdentifier = $info->getElementsByTagname('parentIdentifier')->item(0)->nodeValue;\n }\n else {\n\n // We try to detect the mission urn based on the identifier\n $key = substr($identifier, 0, 3);\n switch($key) {\n // JAXA\n case 'ALP':\n $parentIdentifier = \"urn:ogc:def:EOP:JAXA:ALOS\";\n break;\n case 'ALA':\n $parentIdentifier = \"urn:ogc:def:EOP:JAXA:ALOS\";\n break;\n default:\n $parentIdentifier = \":\";\n }\n $identifier = $parentIdentifier . ':' . $identifier;\n }\n\n // Platform and instrument\n $platform = $doc->getElementsByTagname('Platform')->item(0);\n if ($platform) {\n $shortName = $platform->getElementsByTagname('shortName')->item(0);\n $serialIdentifier = $platform->getElementsByTagname('serialIdentifier')->item(0);\n $platform = ($shortName ? $shortName->nodeValue : '') . ($serialIdentifier ? $serialIdentifier->nodeValue : '');\n }\n else {\n $plaform = '';\n }\n $instrument = $doc->getElementsByTagname('Instrument')->item(0) ? $doc->getElementsByTagname('Instrument')->item(0)->getElementsByTagname('shortName')->item(0)->nodeValue : '';\n\n\n return array(\n 'identifier' => $identifier,\n 'parentidentifier' => $parentIdentifier,\n 'startdate' => correctDate($doc->getElementsByTagname('beginPosition')->item(0)->nodeValue),\n 'enddate' => correctDate($doc->getElementsByTagname('endPosition')->item(0)->nodeValue),\n 'platform' => $platform,\n 'instrument' => $instrument,\n 'footprint' => $footprint\n );\n\n}", "private function getXposition()\n {\n return $this->getPositionInstance()->getXposition();\n }", "public function getCoordinates();", "abstract public function coordinates();", "private function getCurrentDewPoint() {\n $t = $this->getCurrentTemp();\n $h = $this->getCurrentHumidity();\n\n return $t - (100 - $h) / 5;\n }", "function getdistance_new($vehicleid, $customerno) {\n $dm = new DeviceManager($customerno);\n $odo_reading = $dm->get_odometer_reading($vehicleid, $customerno);\n $firstodometer = $odo_reading['first_odo'];\n $lastodometer = $odo_reading['cur_odo'];\n if ($lastodometer < $firstodometer) {\n $lastodometer = $odo_reading['max_odo'] + $lastodometer;\n }\n $totaldistance = $lastodometer - $firstodometer;\n if (round($totaldistance) != 0) {\n return round(($totaldistance / 1000), 2);\n }\n return $totaldistance;\n}", "final function velcom(){\n }", "function opaljob_price_format_position() {\n global $opaljob_options;\n $currency_pos = opaljob_options('currency_position','before');\n\n $format = '%1$s%2$s';\n switch ( $currency_pos ) {\n case 'before' :\n $format = '%1$s%2$s';\n break;\n case 'after' :\n $format = '%2$s%1$s';\n break;\n case 'left_space' :\n $format = '%1$s&nbsp;%2$s';\n break;\n case 'right_space' :\n $format = '%2$s&nbsp;%1$s';\n break;\n }\n\n return apply_filters( 'opaljob_price_format_position', $format, $currency_pos );\n}", "abstract protected function realizaCalculoEspecifico(Orcamento $orcamento): float;", "function sloodle_finished_login_coordinates($pos, $size)\n {\n // Make sure the parameters are valid types\n if (!is_string($pos) || !is_string($size)) {\n return FALSE;\n }\n // Convert both to arrays\n $posarr = sloodle_vector_to_array($pos);\n $sizearr = sloodle_vector_to_array($size);\n // Calculate a position just below the loginzone\n $coord = array();\n $coord['x'] = round($posarr['x'],0);\n $coord['y'] = round($posarr['y'],0);\n $coord['z'] = round(($posarr['z']-(($sizearr['z'])/2)-2),0);\n return $coord;\n }", "function countingValleys($steps, $path_notes) {\n $path = str_split($path_notes);\n $elevation = SEA_LEVEL;\n $prev_move = '';\n $valleys_walked = 0;\n $in_valley = false;\n foreach($path as $move) {\n if(!isValidMove($move)) {\n // Again error handling?\n echo \"Invalid move $move\";\n continue;\n }\n $elevation=calcElevation($move, $elevation);\n echo \"Elv: $elevation\\n\";\n \n if(!$in_valley && $elevation <= VALLEY_LEVEL) {\n echo \"Hit D\\n\";\n $in_valley = true;\n $valleys_walked++;\n }\n elseif($in_valley && $elevation >= SEA_LEVEL) {\n echo \"Hit U\\n\";\n // Includes mountains and sea level.\n $in_valley = false;\n }\n echo \"Valleys Walked: \" . $valleys_walked . \"\\n\";\n $prev_move = $move;\n }\n return $valleys_walked;\n}", "function getNodeId($from_lat, $from_lon, $transport){\n // find the closest node_id to ($from_lat, $from_lon) on a way\n global $mysqli;\n $offset = 0.01;\n switch ($transport){\n case \"foot\":\n $sql = \"SELECT id, (lat-{$from_lat})*(lat-{$from_lat}) + (lon - {$from_lon})*(lon - {$from_lon}) AS x FROM osm_road_nodes\n WHERE lat < $from_lat+$offset AND lat > $from_lat-$offset\n AND lon < $from_lon+$offset AND lon > $from_lon-$offset\n ORDER BY x ASC LIMIT 1\";\n break;\n case \"bicycle\":\n $sql = \"SELECT id, (lat-{$from_lat})*(lat-{$from_lat}) + (lon - {$from_lon})*(lon - {$from_lon}) AS x FROM osm_road_nodes\n WHERE lat < $from_lat+$offset AND lat > $from_lat-$offset\n AND lon < $from_lon+$offset AND lon > $from_lon-$offset\n ORDER BY x ASC LIMIT 1\";\n break;\n case \"car\":\n $sql = \"SELECT id, (lat-{$from_lat})*(lat-{$from_lat}) + (lon - {$from_lon})*(lon - {$from_lon}) AS x FROM osm_road_nodes\n WHERE lat < $from_lat+$offset AND lat > $from_lat-$offset\n AND lon < $from_lon+$offset AND lon > $from_lon-$offset\n ORDER BY x ASC LIMIT 1\";\n break;\n }\n $arr = array();\n $result = $mysqli->query($sql);\n while($result && $row = $result->fetch_assoc()){\n $arr[] = $row;\n }\n return (int) $arr[0]['id'];\n}", "function poequation($pocount)\n{\n//\t\t $totalrmpoqty4, $totalrmpoqty5, $totalrmpoqty6, $totalrmpoqty7, \n//\t\t $totalrmpoqty8, $totalrmpoqty9, $totalrmpoqty10, $totalrmpoqty11,\n//\t $totalrmpoqty12, $reqfrompo;\n GLOBAL $poarray, $qtyreq, $fg, $grn, $reqfrompo, $totalrmpoqtycomp,$totalrmpoqtyeqn;\n\t$totalrmpoqtycomp = 0;\n\t$totalrmpoqtyeqn = \"\";\n\t$usedfrompo = 0;\n\tfor ($i = 0; $i < $pocount; $i++)\n\t{\n\t\t $index = $pocount -1;\n\t\t\t\n\t\t\tif ($poarray[$i] == '' || $poarray[$i] == 0)\n\t\t {\n\t\t\t\t$poarray[$i] = 0;\n\t\t }\n else\n\t\t\t{\n\t $totalrmpoqtycomp = $totalrmpoqtycomp + $poarray[$i];\n\t\t\t\t //echo \"<br>totalpo till now is $totalrmpoqtycomp\";\n\t\t\t\t $reqfrompo = $qtyreq-($fg+$grn)-$usedfrompo;\n\t\t\t\t //echo \"<br>reqfrom po for $i is $reqfrompo\";\n\t\t\t\t if ($reqfrompo > $poarray[$i])\n\t\t\t\t {\n\t\t\t \t $usedfrompo = $poarray[$i];\n\t\t\t\t\t $poarray[$i] = 0;\n\t\t\t\t\t $totalrmpoqtyeqn .= \"+ $usedfrompo\" . \"po{$i}\";\n\t\t\t\t }\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t \t $usedfrompo = $reqfrompo;\n\t\t\t\t\t $poarray[$i] = $poarray[$i] - $reqfrompo;\n\t\t\t\t\t $totalrmpoqtyeqn .= \"+ $usedfrompo\" . \"po{$i}\";\n\t\t\t\t }\n\t\t\t \n\t\t\t\t //echo \"<br>reqfrom po for $i is $reqfrompo\";\n\t\t\t\t //echo \"<br>In function value of poarray for $i is $poarray[$i]\";\n\t\t\t\t //var_dump($poarray);\n\t }\n //$poarray[$index] = 0;\n\t}\n\t$reqfrompo = $qtyreq-($fg+$grn+$totalrmpoqtycomp);\n\t//echo \"<br>In function value of reqfrom po is $reqfrompo and pocount is $pocount\";\n\t//echo \"<br>In function value of poarray for $index is $poarray[$index]\";\n\n}", "public function acelerar($velocidade);", "function promotionLevelCompare($x, $y){\n $array = array('dev', 'qa', 'stage', 'prod');\n $x_pos = -1;\n $y_pos = -1;\n\n $count = count($array);\n for ($i = 0; $i < $count; $i++) {\n if ( strcmp($array[$i], $x) == 0 ){\n $x_pos = $i;\n }\n }\n\n $count = count($array);\n for ($i = 0; $i < $count; $i++) {\n if ( strcmp($array[$i], $y) == 0 ){\n $y_pos = $i;\n }\n }\n\n #echo $x_pos . \"<br>\";\n #echo $y_pos . \"<br>\";\n\n return $x_pos - $y_pos;\n}", "public function getPosX();", "function findPoint($px, $py, $qx, $qy) {\n return array(2*$qx - $px,2*$qy - $py);\n}", "public function getPosition()\n\t{\n\t\t$ci =& get_instance();\n\t\t$ci->load->library('position');\t\t\n\t\t\t\t\t\t\n\t\t$position = new Position($this->position_id);\n\n\t\treturn $position;\n\t}", "public function getPorcentaje_enviados_leidos(){\n\t\treturn (\t($this->getContactos_enviados()>0)\n\t\t\t\t\t?\tround(($this->getContactos_enviados_leidos() *100) / $this->getContactos_enviados(),2)\n\t\t\t\t\t:\t'0'\n\t\t);\n\t}", "public function getPositionVector()\n {\n return new Point($this->b->getX() - $this->a->getX(), $this->b->getY() - $this->a->getY());\n }", "protected function findZip64ECDPosition(): int\n {\n [\n 'diskNo' => $diskNo,\n 'zip64ECDPos' => $zip64ECDPos,\n 'totalDisks' => $totalDisks,\n ] = unpack('VdiskNo/Pzip64ECDPos/VtotalDisks', fread($this->inStream, 16));\n\n if ($diskNo !== 0 || $totalDisks > 1) {\n throw new ZipException('ZIP file spanning/splitting is not supported!');\n }\n\n return $zip64ECDPos;\n }", "function getPlayerEquity($player)\n {\n $queryString = \"SELECT transactions.*, stocks.Value AS customValue FROM transactions JOIN stocks ON stocks.Code = transactions.Stock WHERE Player='\" . $player . \"'\";\n $activity = $this->db->query($queryString);\n\n $stockArray = array();\n foreach ($activity->result() as $thisStock) {\n if (!isset($stockArray[$thisStock->Stock])) {\n $stockArray[$thisStock->Stock] = 0;\n }\n if ($thisStock->Trans == 'sell') {\n $stockArray[$thisStock->Stock] -= $thisStock->Quantity * $thisStock->customValue;\n } else if ($thisStock->Trans == 'buy') {\n $stockArray[$thisStock->Stock] += $thisStock->Quantity * $thisStock->customValue;\n }\n }\n $equity = 0;\n foreach ($stockArray as $thisStock) {\n $equity += $thisStock;\n }\n return $equity;\n }", "private function RiseSetAngle()\n\t{\n\t\t//var earthRad = 6371009; // in meters\n\t\t//var angle = DegreeMath.Acos(earthRad/(earthRad+ elv));\n\t\t$angle = 0.0347 * sqrt($this->_elv); // an approximation\n\t\treturn 0.833 + $angle;\n\t}", "public static function getPosition()\n {\n return self::$position;\n }", "public function getAlign() {}", "function getStartPos($endPos=false) {\n $ret = array();\n \n // $scale = $this->table->database->scale * 10;\n //require_once 'Gtk/VarDump.php'; new Gtk_VarDump($this);\n $ww2 = $this->widgets['name']->window;\n \n // sort out the y value.\n $yAdj = $this->table->database->layout->get_vadjustment(); \n $ret[1] = $ww2->y + $this->table->y - $yAdj->value + ($ww2->height/2);\n \n \n //print_r(array(,$this->startPos[1]));\n $xAdj = $this->table->database->layout->get_hadjustment();\n $ww = $this->table->frame->window;\n //print_r(array($this->table->x,$this->table->y));\n //print_r(array($ww->width,$ww->height));\n if (!$endPos) {\n $ret[0] = $this->table->x - 3 - $xAdj->value;\n //$this->startPos[1] = $this->table->x - 3;\n return $ret;\n }\n if (($endPos[0] + $xAdj->value) > ($this->table->x + ($ww->width/2))) {\n // right hand side..\n $ret[0] = $this->table->x + $ww->width + 3 - $xAdj->value;\n } else {\n $ret[0] = $this->table->x - 3 - $xAdj->value;\n }\n return $ret;\n \n }", "public static function position()\n {\n return static::$position;\n }", "public static function position()\n {\n return static::$position;\n }", "private function move() {\n if ($this->facing === 'N') {\n $this->y++;\n } else if ($this->facing === 'E') {\n $this->x++;\n } else if ($this->facing === 'S') {\n $this->y--;\n } else if ($this->facing === 'W') {\n $this->x--;\n }\n \n // Check if we are still on the planet.\n if (($this->x < 0 || $this->x > $this->maxX) || ($this->y < 0 || $this->y > $this->maxY)) {\n // Out of safe planet boundaries.\n $this->crash = true;\n }\n }", "function Calculate($dblLat1, $dblLong1, $dblLat2, $dblLong2) {\n $EARTH_RADIUS_MILES = 3963;\n $dist = 0;\n //convert degrees to radians\n $dblLat1 = $dblLat1 * M_PI / 180;\n $dblLong1 = $dblLong1 * M_PI / 180;\n $dblLat2 = $dblLat2 * M_PI / 180;\n $dblLong2 = $dblLong2 * M_PI / 180;\n if ($dblLat1 != $dblLat2 || $dblLong1 != $dblLong2) {\n //the two points are not the same\n $dist = sin($dblLat1) * sin($dblLat2) + cos($dblLat1) * cos($dblLat2) * cos($dblLong2 - $dblLong1);\n $dist = $EARTH_RADIUS_MILES * (-1 * atan($dist / sqrt(1 - $dist * $dist)) + M_PI / 2);\n }\n return $dist;\n }", "function valore_costi_esterni_gas($id_ordine,$id_gas){\r\n\r\n $costo_trasporto = valore_costo_trasporto_ordine_gas($id_ordine,$id_gas); \r\n $costo_gestione = valore_costo_gestione_ordine_gas($id_ordine,$id_gas);\r\n $costi = $costo_trasporto+\r\n $costo_gestione;\r\n \r\n return (float)$costi; \r\n}", "public function findSpareBox() {\r\n\t\t\r\n\t}", "private function update_positions(){\n // update the point positions\n $start_point = 0;\n $end_point = 0;\n $nr_points = count ($this->points);\n do{\n $continue = false;\n\n // find a stop point with specified position\n for ($i = $start_point; $i < $nr_points; $i++)\n {\n $end_point = $i ;\n if (! $this->points[$i]['auto_position'])\n {\n break;\n }\n }\n\n // update the positions for all the points between start point end endpoint\n //TODO:\n }while($continue);\n\n }", "public function getPos()\n {\n return $this->pos;\n }" ]
[ "0.5362618", "0.5362618", "0.5362618", "0.5362618", "0.5362618", "0.53422767", "0.52104115", "0.52104115", "0.51953006", "0.51722896", "0.5126132", "0.51076806", "0.50902593", "0.5072416", "0.50511616", "0.50188154", "0.49714935", "0.49215627", "0.49007234", "0.4881293", "0.48625362", "0.48484382", "0.48484382", "0.48159528", "0.48076236", "0.48076236", "0.48076236", "0.47865912", "0.47791997", "0.4766255", "0.47625282", "0.47616997", "0.47444713", "0.4733383", "0.47199577", "0.4703936", "0.4699964", "0.46960896", "0.46876016", "0.46860683", "0.4681598", "0.46672136", "0.46658635", "0.46339625", "0.46199948", "0.46144646", "0.4602554", "0.46003467", "0.45800346", "0.45651692", "0.4545434", "0.45438492", "0.45363578", "0.4527944", "0.45276937", "0.45000887", "0.44937408", "0.44899788", "0.44779116", "0.44713163", "0.44679087", "0.4464333", "0.44612902", "0.4452744", "0.4452255", "0.44495973", "0.44478732", "0.4433778", "0.4433263", "0.44327053", "0.44322085", "0.44270682", "0.4418474", "0.4416847", "0.44147652", "0.439545", "0.43927702", "0.43881503", "0.438762", "0.4387587", "0.43870866", "0.43839765", "0.4378401", "0.43751514", "0.43695885", "0.43607014", "0.43484426", "0.43411702", "0.43342873", "0.43320245", "0.43207175", "0.42989498", "0.42968583", "0.42945743", "0.42945743", "0.4292495", "0.4285536", "0.42825004", "0.4278111", "0.42700323", "0.42638612" ]
0.0
-1
Run the database seeds.
public function run() { // default permissions $permissions = [ 'role.index', 'role.create', 'role.edit', 'role.delete', 'user.index', 'user.create', 'user.edit', 'user.delete', 'permission.index', 'permission.create', 'permission.edit', 'permission.delete', 'product.index', 'product.create', 'product.edit', 'product.delete', 'bug.index', 'bug.delete', 'audit.index', 'audit.delete', 'api.uploadMedia' ]; foreach ($permissions as $permission) { Permission::create(['name' => $permission]); } // default role $role = Role::create([ 'id' => 2, 'name' => 'super-admin' ]); // sync permissions to role $role->syncPermissions($permissions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n factory(App\\Editeur::class, 40) ->create();\n factory(App\\Auteur::class, 40) ->create();\n factory(App\\Livre::class, 80) ->create();\n\n for ($i = 1; $i < 41; $i++) {\n $number = rand(2, 8);\n for ($j = 1; $j <= $number; $j++) {\n DB::table('auteur_livre')->insert([\n 'livre_id' => rand(1, 40),\n 'auteur_id' => $i\n ]);\n }\n }\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n // Let's truncate our existing records to start from scratch.\n Assignation::truncate();\n\n $faker = \\Faker\\Factory::create();\n \n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 40; $i++) {\n Assignation::create([\n 'ad_id' => $faker->numberBetween(1,20),\n 'buyer_id' => $faker->numberBetween(1,6),\n 'seller_id' => $faker->numberBetween(6,11),\n 'state' => NULL,\n ]);\n }\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n \t$faker = Faker::create();\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$post = new Post;\n \t\t$post->title = $faker->sentence();\n \t\t$post->body = $faker->paragraph();\n \t\t$post->category_id = rand(1, 5);\n \t\t$post->save();\n \t}\n\n \t$list = ['General', 'Technology', 'News', 'Internet', 'Mobile'];\n \tforeach($list as $name) {\n \t\t$category = new Category;\n \t\t$category->name = $name;\n \t\t$category->save();\n \t}\n\n \tfor($i=0; $i<20; $i++) {\n \t\t$comment = new Comment;\n \t\t$comment->comment = $faker->paragraph();\n \t\t$comment->post_id = rand(1,20);\n \t\t$comment->save();\n \t}\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call(RoleTableSeeder::class);\n $this->call(UserTableSeeder::class);\n \n factory('App\\Cat', 5)->create();\n $tags = factory('App\\Tag', 8)->create();\n\n factory(Post::class, 15)->create()->each(function($post) use ($tags){\n $post->comments()->save(factory(Comment::class)->make());\n $post->tags()->attach( $tags->random(mt_rand(1,4))->pluck('id')->toArray() );\n });\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('post')->insert(\n [\n 'title' => 'Test Post1',\n 'desc' => str_random(100).\" post1\",\n 'alias' => 'test1',\n 'keywords' => 'test1',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post2',\n 'desc' => str_random(100).\" post2\",\n 'alias' => 'test2',\n 'keywords' => 'test2',\n ]\n );\n DB::table('post')->insert(\n [\n 'title' => 'Test Post3',\n 'desc' => str_random(100).\" post3\",\n 'alias' => 'test3',\n 'keywords' => 'test3',\n ]\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n \t$faker = Factory::create();\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\tDepartment::create([\n \t\t\t'name' => $department\n \t\t]);\n \t}\n \tforeach ($this->collections as $key => $collection) {\n \t\tCollection::create([\n \t\t\t'name' => $collection\n \t\t]);\n \t}\n \t\n \t\n \tfor ($i=0; $i < 40; $i++) {\n \t\tUser::create([\n \t\t\t'name' \t=>\t$faker->name,\n \t\t\t'email' \t=>\t$faker->email,\n \t\t\t'password' \t=>\tbcrypt('123456'),\n \t\t]);\n \t} \n \t\n \t\n \tforeach ($this->departments as $key => $department) {\n \t\t//echo ($key + 1) . PHP_EOL;\n \t\t\n \t\tfor ($i=0; $i < 10; $i++) { \n \t\t\techo $faker->name . PHP_EOL;\n\n \t\t\tArt::create([\n \t\t\t\t'name'\t\t\t=> $faker->sentence(2),\n \t\t\t\t'img'\t\t\t=> $this->filenames[$i],\n \t\t\t\t'medium'\t\t=> 'canvas',\n \t\t\t\t'department_id'\t=> $key + 1,\n \t\t\t\t'user_id'\t\t=> $this->userIndex,\n \t\t\t\t'dimension'\t\t=> '18.0 x 24.0',\n\t\t\t\t]);\n \t\t\t\t\n \t\t\t\t$this->userIndex ++;\n \t\t}\n \t}\n \t\n \tdd(\"END\");\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->dataCategory();\n factory(App\\Model\\Category::class, 70)->create();\n factory(App\\Model\\Producer::class, rand(5,10))->create();\n factory(App\\Model\\Provider::class, rand(5,10))->create();\n factory(App\\Model\\Product::class, 100)->create();\n factory(App\\Model\\Album::class, 300)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n\n factory('App\\User', 10 )->create();\n\n $users= \\App\\User::all();\n $users->each(function($user){ factory('App\\Category', 1)->create(['user_id'=>$user->id]); });\n $users->each(function($user){ factory('App\\Tag', 3)->create(['user_id'=>$user->id]); });\n\n\n $users->each(function($user){\n factory('App\\Post', 10)->create([\n 'user_id'=>$user->id,\n 'category_id'=>rand(1,20)\n ]\n );\n });\n\n $posts= \\App\\Post::all();\n $posts->each(function ($post){\n\n $post->tags()->attach(array_unique([rand(1,20),rand(1,20),rand(1,20)]));\n });\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $types = factory(\\App\\Models\\Type::class, 5)->create();\n\n $cities = factory(\\App\\Models\\City::class, 10)->create();\n\n $cities->each(function ($city) {\n $districts = factory(\\App\\Models\\District::class, rand(2, 5))->create([\n 'city_id' => $city->id,\n ]);\n\n $districts->each(function ($district) {\n $properties = factory(\\App\\Models\\Property::class, rand(2, 5))->create([\n 'type_id' => rand(1, 5),\n 'district_id' => $district->id\n ]);\n\n $properties->each(function ($property) {\n $galleries = factory(\\App\\Models\\Gallery::class, rand(3, 10))->create([\n 'property_id' => $property->id\n ]);\n });\n });\n });\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n\n $categories = factory(App\\Models\\Category::class, 10)->create();\n\n $categories->each(function ($category) {\n $category\n ->posts()\n ->saveMany(\n factory(App\\Models\\Post::class, 3)->make()\n );\n });\n }", "public function run()\n {\n $this->call(CategoriesTableSeeder::class);\n\n $users = factory(App\\User::class, 5)->create();\n $recipes = factory(App\\Recipe::class, 30)->create();\n $preparations = factory(App\\Preparation::class, 70)->create();\n $photos = factory(App\\Photo::class, 90)->create();\n $comments = factory(App\\Comment::class, 200)->create();\n $flavours = factory(App\\Flavour::class, 25)->create();\n $flavour_recipe = factory(App\\FlavourRecipe::class, 50)->create();\n $tags = factory(App\\Tag::class, 25)->create();\n $recipe_tag = factory(App\\RecipeTag::class, 50)->create();\n $ingredients = factory(App\\Ingredient::class, 25)->create();\n $ingredient_preparation = factory(App\\IngredientPreparation::class, 300)->create();\n \n \n \n DB::table('users')->insert(['name' => 'SimpleUtilisateur', 'email' => '[email protected]', 'password' => bcrypt('SimpleMotDePasse')]);\n \n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n // Sample::truncate();\n // TestItem::truncate();\n // UOM::truncate();\n Role::truncate();\n User::truncate();\n\n // factory(Role::class, 4)->create();\n Role::create([\n 'name'=> 'Director',\n 'description'=> 'Director type'\n ]);\n\n Role::create([\n 'name'=> 'Admin',\n 'description'=> 'Admin type'\n ]);\n Role::create([\n 'name'=> 'Employee',\n 'description'=> 'Employee type'\n ]);\n Role::create([\n 'name'=> 'Technician',\n 'description'=> 'Technician type'\n ]);\n \n factory(User::class, 20)->create()->each(\n function ($user){\n $roles = \\App\\Role::all()->random(mt_rand(1, 2))->pluck('id');\n $user->roles()->attach($roles);\n }\n );\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n UsersLevel::create([\n 'name' => 'Administrator'\n ]);\n\n UsersLevel::create([\n 'name' => 'User'\n ]);\n\n User::create([\n 'username' => 'admin',\n 'password' => bcrypt('admin123'),\n 'level_id' => 1,\n 'fullname' => \"Super Admin\",\n 'email'=> \"[email protected]\"\n ]);\n\n\n \\App\\CategoryPosts::create([\n 'name' =>'Paket Trip'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' =>'Destinasi Kuliner'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Event'\n ]);\n\n \\App\\CategoryPosts::create([\n 'name' => 'Profil'\n ]);\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name' => 'Admin',\n 'email' => '[email protected]',\n 'avatar' => \"avatar\",\n 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi',\n ]);\n $this->call(CategorySeeder::class);\n // \\App\\Models\\Admin::factory(1)->create();\n \\App\\Models\\User::factory(10)->create();\n // \\App\\Models\\Category::factory(50)->create();\n \\App\\Models\\PetComment::factory(50)->create();\n $pets = \\App\\Models\\Pet::factory(50)->create();\n foreach ($pets as $pet) {\n \\App\\Models\\PetTag::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\PetPhotoUrl::factory(1)->create(['pet_id' => $pet->id]);\n \\App\\Models\\Order::factory(1)->create(['pet_id' => $pet->id]);\n };\n }", "public function run()\n { \n\n $this->call(RoleSeeder::class);\n \n $this->call(UserSeeder::class);\n\n Storage::deleteDirectory('socials-icon');\n Storage::makeDirectory('socials-icon');\n $socials = Social::factory(7)->create();\n\n Storage::deleteDirectory('countries-flag');\n Storage::deleteDirectory('countries-firm');\n Storage::makeDirectory('countries-flag');\n Storage::makeDirectory('countries-firm');\n $countries = Country::factory(18)->create();\n\n // Se llenan datos de la tabla muchos a muchos - social_country\n foreach ($countries as $country) {\n foreach ($socials as $social) {\n\n $country->socials()->attach($social->id, [\n 'link' => 'https://www.facebook.com/ministeriopalabrayespiritu/'\n ]);\n }\n }\n\n Person::factory(50)->create();\n\n Category::factory(7)->create();\n\n Video::factory(25)->create(); \n\n $this->call(PostSeeder::class);\n\n Storage::deleteDirectory('documents');\n Storage::makeDirectory('documents');\n Document::factory(25)->create();\n\n }", "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Generate fake publisher data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('publisher')->insert([\n 'name' => $faker->name\n ]);\n }\n /**\n * Seeding payment method\n */\n DB::table('payment')->insert([\n ['name' => 'Mandiri'],\n ['name' => 'BCA'],\n ['name' => 'BRI'],\n ['name' => 'BNI'],\n ['name' => 'Pos Indonesia'],\n ['name' => 'BTN'],\n ['name' => 'Indomaret'],\n ['name' => 'Alfamart'],\n ['name' => 'OVO'],\n ['name' => 'Cash On Delivery']\n ]);\n }", "public function run()\n {\n DatabaseSeeder::seedLearningStylesProbs();\n DatabaseSeeder::seedCampusProbs();\n DatabaseSeeder::seedGenderProbs();\n DatabaseSeeder::seedTypeStudentProbs();\n DatabaseSeeder::seedTypeProfessorProbs();\n DatabaseSeeder::seedNetworkProbs();\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n // MyList::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 3; $i++) {\n MyList::create([\n 'title' => 'List-'.($i+1),\n 'color' => $faker->sentence,\n 'icon' => $faker->randomDigitNotNull,\n 'index' => $faker->randomDigitNotNull,\n 'user_id' => 1,\n ]);\n }\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Products::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few products in our database:\n for ($i = 0; $i < 50; $i++) {\n Products::create([\n 'name' => $faker->word,\n 'sku' => $faker->randomNumber(7, false),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n User::create([\n 'name' => 'Pablo Rosales',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'status' => 1,\n 'role_id' => 1,\n 'movil' => 0\n ]);\n\n User::create([\n 'name' => 'Usuario Movil',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'status' => 1,\n 'role_id' => 3,\n 'movil' => 1\n ]);\n\n Roles::create([\n 'name' => 'Administrador'\n ]);\n Roles::create([\n 'name' => 'Operaciones'\n ]);\n Roles::create([\n 'name' => 'Comercial'\n ]);\n Roles::create([\n 'name' => 'Aseguramiento'\n ]);\n Roles::create([\n 'name' => 'Facturación'\n ]);\n Roles::create([\n 'name' => 'Creditos y Cobros'\n ]);\n\n factory(App\\Customers::class, 100)->create();\n }", "public function run()\n {\n // php artisan db:seed --class=StoreTableSeeder\n\n foreach(range(1,20) as $i){\n $faker = Faker::create();\n Store::create([\n 'name' => $faker->name,\n 'desc' => $faker->text,\n 'tags' => $faker->word,\n 'address' => $faker->address,\n 'longitude' => $faker->longitude($min = -180, $max = 180),\n 'latitude' => $faker->latitude($min = -90, $max = 90),\n 'created_by' => '1'\n ]);\n }\n\n }", "public function run()\n {\n DB::table('users')->insert([\n 'name'=>\"test\",\n 'password' => Hash::make('123'),\n 'email'=>'[email protected]'\n ]);\n DB::table('tags')->insert(['name'=>'tags']);\n $this->call(UserSeed::class);\n $this->call(CategoriesSeed::class);\n $this->call(TopicsSeed::class);\n $this->call(CommentariesSeed::class);\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n echo 'seeding permission...', PHP_EOL;\n $permissions = [\n 'role-list',\n 'role-create',\n 'role-edit',\n 'role-delete',\n 'formation-list',\n 'formation-create',\n 'formation-edit',\n 'formation-delete',\n 'user-list',\n 'user-create',\n 'user-edit',\n 'user-delete'\n ];\n foreach ($permissions as $permission) {\n Permission::create(['name' => $permission]);\n }\n echo 'seeding users...', PHP_EOL;\n\n $user= User::create(\n [\n 'name' => 'Mr. admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'remember_token' => null,\n ]\n );\n echo 'Create Roles...', PHP_EOL;\n Role::create(['name' => 'former']);\n Role::create(['name' => 'learner']);\n Role::create(['name' => 'admin']);\n Role::create(['name' => 'manager']);\n Role::create(['name' => 'user']);\n\n echo 'seeding Role User...', PHP_EOL;\n $user->assignRole('admin');\n $role = $user->assignRole('admin');\n $role->givepermissionTo(Permission::all());\n\n \\DB::table('languages')->insert(['name' => 'English', 'code' => 'en']);\n \\DB::table('languages')->insert(['name' => 'Français', 'code' => 'fr']);\n }", "public function run()\n {\n $this->call(UsersTableSeeder::class);\n $this->call(PermissionsSeeder::class);\n $this->call(RolesSeeder::class);\n $this->call(ThemeSeeder::class);\n\n //\n\n DB::table('paypal_info')->insert([\n 'client_id' => '',\n 'client_secret' => '',\n 'currency' => '',\n ]);\n DB::table('contact_us')->insert([\n 'content' => '',\n ]);\n DB::table('setting')->insert([\n 'site_name' => ' ',\n ]);\n DB::table('terms_and_conditions')->insert(['terms_and_condition' => 'text']);\n }", "public function run()\n {\n $this->call([\n UserSeeder::class,\n ]);\n\n User::factory(20)->create();\n Author::factory(20)->create();\n Book::factory(60)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UserSeeder::class);\n $this->call(RolePermissionSeeder::class);\n $this->call(AppmodeSeeder::class);\n\n // \\App\\Models\\Appmode::factory(3)->create();\n \\App\\Models\\Doctor::factory(100)->create();\n \\App\\Models\\Unit::factory(50)->create();\n \\App\\Models\\Broker::factory(100)->create();\n \\App\\Models\\Patient::factory(100)->create();\n \\App\\Models\\Expence::factory(100)->create();\n \\App\\Models\\Testcategory::factory(100)->create();\n \\App\\Models\\Test::factory(50)->create();\n \\App\\Models\\Parameter::factory(50)->create();\n \\App\\Models\\Sale::factory(50)->create();\n \\App\\Models\\SaleItem::factory(100)->create();\n \\App\\Models\\Goption::factory(1)->create();\n \\App\\Models\\Pararesult::factory(50)->create();\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // DB::table('roles')->insert(\n // [\n // ['name' => 'admin', 'description' => 'Administrator'],\n // ['name' => 'student', 'description' => 'Student'],\n // ['name' => 'lab_tech', 'description' => 'Lab Tech'],\n // ['name' => 'it_staff', 'description' => 'IT Staff Member'],\n // ['name' => 'it_manager', 'description' => 'IT Manager'],\n // ['name' => 'lab_manager', 'description' => 'Lab Manager'],\n // ]\n // );\n\n // DB::table('users')->insert(\n // [\n // 'username' => 'admin', \n // 'password' => Hash::make('password'), \n // 'active' => 1,\n // 'name' => 'Administrator',\n // 'email' => '[email protected]',\n // 'role_id' => \\App\\Role::where('name', 'admin')->first()->id\n // ]\n // );\n\n DB::table('status')->insert([\n // ['name' => 'Active'],\n // ['name' => 'Cancel'],\n // ['name' => 'Disable'],\n // ['name' => 'Open'],\n // ['name' => 'Closed'],\n // ['name' => 'Resolved'],\n ['name' => 'Used'],\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create([\n 'name' => 'Qwerty',\n 'email' => '[email protected]',\n 'password' => bcrypt('secretpassw'),\n ]);\n\n factory(User::class, 59)->create([\n 'password' => bcrypt('secretpassw'),\n ]);\n\n for ($i = 1; $i < 11; $i++) {\n factory(Category::class)->create([\n 'name' => 'Category ' . $i,\n ]);\n }\n\n for ($i = 1; $i < 101; $i++) {\n factory(Product::class)->create([\n 'name' => 'Product ' . $i,\n ]);\n }\n }", "public function run()\n {\n\n \t// Making main admin role\n \tDB::table('roles')->insert([\n 'name' => 'Admin',\n ]);\n\n // Making main category\n \tDB::table('categories')->insert([\n 'name' => 'Other',\n ]);\n\n \t// Making main admin account for testing\n \tDB::table('users')->insert([\n 'name' \t\t=> 'Admin',\n 'email' \t=> '[email protected]',\n 'password' => bcrypt('12345'),\n 'role_id' => 1,\n 'created_at' => date('Y-m-d H:i:s' ,time()),\n 'updated_at' => date('Y-m-d H:i:s' ,time())\n ]);\n\n \t// Making random users and posts\n factory(App\\User::class, 10)->create();\n factory(App\\Post::class, 35)->create();\n }", "public function run()\n {\n $faker = Faker::create();\n\n \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Chef',\n 'salario' => '15000.00'\n ));\n\n\t\t \\DB::table('positions')->insert(array (\n 'codigo' => strtoupper($faker->randomLetter).$faker->postcode,\n 'nombre' => 'Mesonero',\n 'salario' => '12000.00'\n ));\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = \\Faker\\Factory::create();\n\n foreach (range(1,5) as $index) {\n Lista::create([\n 'name' => $faker->sentence(2),\n 'description' => $faker->sentence(10), \n ]);\n } \n\n foreach (range(1,20) as $index) {\n $n = $faker->sentence(2);\n \tTarea::create([\n \t\t'name' => $n,\n \t\t'description' => $faker->sentence(10),\n 'lista_id' => $faker->numberBetween(1,5),\n 'slug' => Str::slug($n),\n \t\t]);\n } \n }", "public function run()\n {\n $faker = Faker::create('lt_LT');\n\n DB::table('users')->insert([\n 'name' => 'user',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n DB::table('users')->insert([\n 'name' => 'user2',\n 'email' => '[email protected]',\n 'password' => Hash::make('123')\n ]);\n\n foreach (range(1,100) as $val)\n DB::table('authors')->insert([\n 'name' => $faker->firstName(),\n 'surname' => $faker->lastName(),\n \n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(UsersTableSeeder::class);\n\n // DB::table('users')->insert([\n // 'name' => 'User1',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('password'),\n // ]);\n\n\n $faker = Faker::create();\n \n foreach (range(1,10) as $index){\n DB::table('companies')->insert([\n 'name' => $faker->company(),\n 'email' => $faker->email(10).'@gmail.com',\n 'logo' => $faker->image($dir = '/tmp', $width = 640, $height = 480),\n 'webiste' => $faker->domainName(),\n \n ]);\n }\n \n \n foreach (range(1,10) as $index){\n DB::table('employees')->insert([\n 'first_name' => $faker->firstName(),\n 'last_name' => $faker->lastName(),\n 'company' => $faker->company(),\n 'email' => $faker->str_random(10).'@gmail.com',\n 'phone' => $faker->e164PhoneNumber(),\n \n ]);\n }\n\n\n\n }", "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n Flight::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 100; $i++) {\n\n\n Flight::create([\n 'flightNumber' => $faker->randomNumber(5),\n 'depAirport' => $faker->city,\n 'destAirport' => $faker->city,\n 'reservedWeight' => $faker->numberBetween(1000 - 10000),\n 'deptTime' => $faker->dateTime('now'),\n 'arrivalTime' => $faker->dateTime('now'),\n 'reservedVolume' => $faker->numberBetween(1000 - 10000),\n 'airlineName' => $faker->colorName,\n ]);\n }\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->truncteTables([\n 'users',\n 'products'\n ]);\n\n $this->call(UsersSeeder::class);\n $this->call(ProductsSeeder::class);\n\n }", "public function run()\n {\n /**\n * Dummy seeds\n */\n DB::table('metas')->truncate();\n $faker = Faker::create();\n\n for ($i=0; $i < 10; $i++) { \n DB::table('metas')->insert([\n 'id_rel' => $faker->randomNumber(),\n 'titulo' => $faker->sentence,\n 'descricao' => $faker->paragraph,\n 'justificativa' => $faker->paragraph,\n 'valor_inicial' => $faker->numberBetween(0,100),\n 'valor_atual' => $faker->numberBetween(0,100),\n 'valor_final' => $faker->numberBetween(0,10),\n 'regras' => json_encode([$i => [\"values\" => $faker->words(3)]]),\n 'types' => json_encode([$i => [\"values\" => $faker->words(2)]]),\n 'categorias' => json_encode([$i => [\"values\" => $faker->words(4)]]),\n 'tags' => json_encode([$i => [\"values\" => $faker->words(5)]]),\n 'active' => true,\n ]);\n }\n\n\n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n\n $faker = Faker::create();\n\n $lessonIds = Lesson::lists('id')->all(); // An array of ID's in that table [1, 2, 3, 4, 5, 7]\n $tagIds = Tag::lists('id')->all();\n\n foreach(range(1, 30) as $index)\n {\n // a real lesson id\n // a real tag id\n DB::table('lesson_tag')->insert([\n 'lesson_id' => $faker->randomElement($lessonIds),\n 'tag_id' => $faker->randomElement($tagIds),\n ]);\n }\n }", "public function run()\n {\n $this->call(CategoriasTableSeeder::class);\n $this->call(UfsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n $this->call(UserTiposTableSeeder::class);\n factory(App\\User::class, 2)->create();\n/* factory(App\\Models\\Categoria::class, 20)->create();*/\n/* factory(App\\Models\\Anuncio::class, 50)->create();*/\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n Language::truncate();\n Reason::truncate();\n Report::truncate();\n Category::truncate();\n Position::truncate();\n\n $languageQuantity = 10;\n $reasonQuantity = 10;\n $reportQuantity = 10;\n $categoryQuantity = 10;\n $positionQuantity = 10;\n\n factory(Language::class,$languageQuantity)->create();\n factory(Reason::class,$reasonQuantity)->create();\n \n factory(Report::class,$reportQuantity)->create();\n \n factory(Category::class,$categoryQuantity)->create();\n \n factory(Position::class,$positionQuantity)->create();\n\n }", "public function run()\n {\n // \\DB::statement('SET_FOREIGN_KEY_CHECKS=0');\n \\DB::table('users')->truncate();\n \\DB::table('posts')->truncate();\n // \\DB::table('category')->truncate();\n \\DB::table('photos')->truncate();\n \\DB::table('comments')->truncate();\n \\DB::table('comment_replies')->truncate();\n\n \\App\\Models\\User::factory()->times(10)->hasPosts(1)->create();\n \\App\\Models\\Role::factory()->times(10)->create();\n \\App\\Models\\Category::factory()->times(10)->create();\n \\App\\Models\\Comment::factory()->times(10)->hasReplies(1)->create();\n \\App\\Models\\Photo::factory()->times(10)->create();\n\n \n // \\App\\Models\\User::factory(10)->create([\n // 'role_id'=>2,\n // 'is_active'=>1\n // ]);\n\n // factory(App\\Models\\Post::class, 10)->create();\n // $this->call(UsersTableSeeder::class);\n }", "public function run()\n {\n $this->call([\n ArticleSeeder::class, \n TagSeeder::class,\n Arttagrel::class\n ]);\n // \\App\\Models\\User::factory(10)->create();\n \\App\\Models\\Article::factory()->count(7)->create();\n \\App\\Models\\Tag::factory()->count(15)->create(); \n \\App\\Models\\Arttagrel::factory()->count(15)->create(); \n }", "public function run()\n {\n $this->call(ArticulosTableSeeder::class);\n /*DB::table('articulos')->insert([\n 'titulo' => str_random(50),\n 'cuerpo' => str_random(200),\n ]);*/\n }", "public function run()\n {\n $this->call(CategoryTableSeeder::class);\n $this->call(ProductTableSeeder::class);\n\n \t\t\n\t\t\tDB::table('users')->insert([\n 'first_name' => 'Ignacio',\n 'last_name' => 'Garcia',\n 'email' => '[email protected]',\n 'password' => bcrypt('123456'),\n 'role' => '1',\n 'avatar' => 'CGnABxNYYn8N23RWlvTTP6C2nRjOLTf8IJcbLqRP.jpeg',\n ]);\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n $this->call(RoleSeeder::class);\n $this->call(UserSeeder::class);\n\n Medicamento::factory(50)->create();\n Reporte::factory(5)->create();\n Cliente::factory(200)->create();\n Asigna_valor::factory(200)->create();\n Carga::factory(200)->create();\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n TicketSeeder::class\n ]);\n\n DB::table('departments')->insert([\n 'abbr' => 'IT',\n 'name' => 'Information Technologies',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'email_verified_at' => Carbon::now(),\n 'password' => Hash::make('admin'),\n 'department_id' => 1,\n 'avatar' => 'default.png',\n 'created_at' => Carbon::now(),\n 'updated_at' => Carbon::now(),\n ]);\n\n DB::table('role_user')->insert([\n 'role_id' => 1,\n 'user_id' => 1\n ]);\n }", "public function run()\n {\n \\App\\Models\\Article::factory(20)->create();\n \\App\\Models\\Category::factory(5)->create();\n \\App\\Models\\Comment::factory(40)->create();\n\n \\App\\Models\\User::create([\n \"name\"=>\"Alice\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n \\App\\Models\\User::create([\n \"name\"=>\"Bob\",\n \"email\"=>'[email protected]',\n 'password' => Hash::make('password'),\n ]);\n }", "public function run()\n {\n /** \n * Note: You must add these lines to your .env file for this Seeder to work (replace the values, obviously):\n SEEDER_USER_FIRST_NAME = 'Firstname'\n SEEDER_USER_LAST_NAME = 'Lastname'\n\t\tSEEDER_USER_DISPLAY_NAME = 'Firstname Lastname'\n\t\tSEEDER_USER_EMAIL = [email protected]\n SEEDER_USER_PASSWORD = yourpassword\n */\n\t\tDB::table('users')->insert([\n 'user_first_name' => env('SEEDER_USER_FIRST_NAME'),\n 'user_last_name' => env('SEEDER_USER_LAST_NAME'),\n 'user_name' => env('SEEDER_USER_DISPLAY_NAME'),\n\t\t\t'user_email' => env('SEEDER_USER_EMAIL'),\n 'user_status' => 1,\n \t'password' => Hash::make((env('SEEDER_USER_PASSWORD'))),\n 'permission_fk' => 1,\n 'created_at' => Carbon::now()->format('Y-m-d H:i:s'),\n 'updated_at' => Carbon::now()->format('Y-m-d H:i:s')\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class,3)->create()->each(\n \tfunction($user)\n \t{\n \t\t$user->questions()\n \t\t->saveMany(\n \t\t\tfactory(App\\Question::class, rand(2,6))->make()\n \t\t)\n ->each(function ($q) {\n $q->answers()->saveMany(factory(App\\Answer::class, rand(1,5))->make());\n })\n \t}\n );\n }\n}", "public function run()\n {\n $faker = Faker::create();\n\n // $this->call(UsersTableSeeder::class);\n\n DB::table('posts')->insert([\n 'id'=>str_random(1),\n 'user_id'=> str_random(1),\n 'title' => $faker->name,\n 'body' => $faker->safeEmail,\n 'created_at' => date('Y-m-d H:i:s'),\n 'updated_at' => date('Y-m-d H:i:s'),\n ]);\n }", "public function run()\n\t{\n\t\tDB::table(self::TABLE_NAME)->delete();\n\n\t\tforeach (seed(self::TABLE_NAME) as $row)\n\t\t\t$records[] = [\n\t\t\t\t'id'\t\t\t\t=> $row->id,\n\t\t\t\t'created_at'\t\t=> $row->created_at ?? Carbon::now(),\n\t\t\t\t'updated_at'\t\t=> $row->updated_at ?? Carbon::now(),\n\n\t\t\t\t'sport_id'\t\t\t=> $row->sport_id,\n\t\t\t\t'gender_id'\t\t\t=> $row->gender_id,\n\t\t\t\t'tournamenttype_id'\t=> $row->tournamenttype_id ?? null,\n\n\t\t\t\t'name'\t\t\t\t=> $row->name,\n\t\t\t\t'external_id'\t\t=> $row->external_id ?? null,\n\t\t\t\t'is_top'\t\t\t=> $row->is_top ?? null,\n\t\t\t\t'logo'\t\t\t\t=> $row->logo ?? null,\n\t\t\t\t'position'\t\t\t=> $row->position ?? null,\n\t\t\t];\n\n\t\tinsert(self::TABLE_NAME, $records ?? []);\n\t}", "public function run()\n\t{\n\t\tDB::table('libros')->truncate();\n\n\t\t$faker = Faker\\Factory::create();\n\n\t\tfor ($i=0; $i < 10; $i++) { \n\t\t\tLibro::create([\n\n\t\t\t\t'titulo'\t\t=> $faker->text(40),\n\t\t\t\t'isbn'\t\t\t=> $faker->numberBetween(100,999),\n\t\t\t\t'precio'\t\t=> $faker->randomFloat(2,3,150),\n\t\t\t\t'publicado'\t\t=> $faker->numberBetween(0,1),\n\t\t\t\t'descripcion'\t=> $faker->text(400),\n\t\t\t\t'autor_id'\t\t=> $faker->numberBetween(1,3),\n\t\t\t\t'categoria_id'\t=> $faker->numberBetween(1,3)\n\n\t\t\t]);\n\t\t}\n\n\t\t// Uncomment the below to run the seeder\n\t\t// DB::table('libros')->insert($libros);\n\t}", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 10)->create()->each(function ($user) {\n // Seed the relation with 5 purchases\n // $videos = factory(App\\Video::class, 5)->make();\n // $user->videos()->saveMany($videos);\n // $user->videos()->each(function ($video){\n // \t$video->videometa()->save(factory(App\\VideoMeta::class)->make());\n // \t// :( \n // });\n factory(App\\User::class, 10)->create()->each(function ($user) {\n\t\t\t factory(App\\Video::class, 5)->create(['user_id' => $user->id])->each(function ($video) {\n\t\t\t \tfactory(App\\VideoMeta::class, 1)->create(['video_id' => $video->id]);\n\t\t\t // $video->videometa()->save(factory(App\\VideoMeta::class)->create(['video_id' => $video->id]));\n\t\t\t });\n\t\t\t});\n\n });\n }", "public function run()\n {\n // for($i=1;$i<11;$i++){\n // DB::table('post')->insert(\n // ['title' => 'Title'.$i,\n // 'post' => 'Post'.$i,\n // 'slug' => 'Slug'.$i]\n // );\n // }\n $faker = Faker\\Factory::create();\n \n for($i=1;$i<20;$i++){\n $dname = $faker->name;\n DB::table('post')->insert(\n ['title' => $dname,\n 'post' => $faker->text($maxNbChars = 200),\n 'slug' => str_slug($dname)]\n );\n }\n }", "public function run()\n {\n $this->call([\n CountryTableSeeder::class,\n ProvinceTableSeeder::class,\n TagTableSeeder::class\n ]);\n\n User::factory()->count(10)->create();\n Category::factory()->count(5)->create();\n Product::factory()->count(20)->create();\n Section::factory()->count(5)->create();\n Bundle::factory()->count(20)->create();\n\n $bundles = Bundle::all();\n // populate bundle-product table (morph many-to-many)\n Product::all()->each(function ($product) use ($bundles) {\n $product->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray(),\n ['default_quantity' => rand(1, 10)]\n );\n });\n // populate bundle-tags table (morph many-to-many)\n Tag::all()->each(function ($tag) use ($bundles) {\n $tag->bundles()->attach(\n $bundles->random(2)->pluck('id')->toArray()\n );\n });\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n Contract::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Contract::create([\n 'serialnumbers' => $faker->numberBetween($min = 1000000, $max = 2000000),\n 'address' => $faker->address,\n 'landholder' => $faker->lastName,\n 'renter' => $faker->lastName,\n 'price' => $faker->numberBetween($min = 10000, $max = 50000),\n 'rent_start' => $faker->date($format = 'Y-m-d', $max = 'now'),\n 'rent_end' => $faker->date($format = 'Y-m-d', $max = 'now'),\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker=Faker\\Factory::create();\n\n for($i=0;$i<100;$i++){\n \tApp\\Blog::create([\n \t\t'title' => $faker->catchPhrase,\n 'description' => $faker->text,\n 'showns' =>true\n \t\t]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::statement('SET FOREIGN_KEY_CHECKS = 0'); // TO PREVENT CHECKS FOR foreien key in seeding\n\n User::truncate();\n Category::truncate();\n Product::truncate();\n Transaction::truncate();\n\n DB::table('category_product')->truncate();\n\n User::flushEventListeners();\n Category::flushEventListeners();\n Product::flushEventListeners();\n Transaction::flushEventListeners();\n\n $usersQuantities = 1000;\n $categoriesQuantities = 30;\n $productsQuantities = 1000;\n $transactionsQuantities = 1000;\n\n factory(User::class, $usersQuantities)->create();\n factory(Category::class, $categoriesQuantities)->create();\n\n factory(Product::class, $productsQuantities)->create()->each(\n function ($product) {\n $categories = Category::all()->random(mt_rand(1, 5))->pluck('id');\n $product->categories()->attach($categories);\n });\n\n factory(Transaction::class, $transactionsQuantities)->create();\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n $this->call(PermissionsTableSeeder::class);\n $this->call(UsersTableSeeder::class);\n\n $this->call(BusinessTableSeeder::class);\n $this->call(PrinterTableSeeder::class);\n factory(App\\Tag::class,10)->create();\n factory(App\\Category::class,10)->create();\n factory(App\\Subcategory::class,50)->create();\n factory(App\\Provider::class,10)->create();\n factory(App\\Product::class,24)->create()->each(function($product){\n\n $product->images()->saveMany(factory(App\\Image::class, 4)->make());\n\n });\n\n\n factory(App\\Client::class,10)->create();\n }", "public function run()\n {\n Article::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 50; $i++) {\n Article::create([\n 'name' => $faker->sentence,\n 'sku' => $faker->paragraph,\n 'price' => $faker->number,\n ]);\n }\n }", "public function run()\n {\n Storage::deleteDirectory('public/products');\n Storage::makeDirectory('public/products');\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n $this->call(ProductSeeder::class);\n Order::factory(4)->create();\n Order_Detail::factory(4)->create();\n Size::factory(100)->create();\n }", "public function run()\n {\n $this->call(RolSeeder::class);\n\n $this->call(UserSeeder::class);\n Category::factory(4)->create();\n Doctor::factory(25)->create();\n Patient::factory(50)->create();\n Status::factory(3)->create();\n Appointment::factory(100)->create();\n }", "public function run()\n\t{\n\t\t\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\n\t\t$faker = \\Faker\\Factory::create();\n\n\t\tTodolist::truncate();\n\n\t\tforeach(range(1, 50) as $index)\n\t\t{\n\n\t\t\t$user = User::create([\n\t\t\t\t'name' => $faker->name,\n\t\t\t\t'email' => $faker->email,\n\t\t\t\t'password' => 'password',\n\t\t\t\t'confirmation_code' => mt_rand(0, 9),\n\t\t\t\t'confirmation' => rand(0,1) == 1\n\t\t\t]);\n\n\t\t\t$list = Todolist::create([\n\t\t\t\t'name' => $faker->sentence(2),\n\t\t\t\t'description' => $faker->sentence(4),\n\t\t\t]);\n\n\t\t\t// BUILD SOME TASKS FOR EACH LIST ITEM\n\t\t\tforeach(range(1, 10) as $index) \n\t\t\t{\n\t\t\t\t$task = new Task;\n\t\t\t\t$task->name = $faker->sentence(2);\n\t\t\t\t$task->description = $faker->sentence(4);\n\t\t\t\t$list->tasks()->save($task);\n\t\t\t}\n\n\t\t}\n\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 1'); \n\n\t}", "public function run()\n {\n Campus::truncate();\n Canteen::truncate();\n Dorm::truncate();\n\n $faker = Faker\\Factory::create();\n $schools = School::all();\n foreach ($schools as $school) {\n \tforeach (range(1, 2) as $index) {\n\t \t$campus = Campus::create([\n\t \t\t'school_id' => $school->id,\n\t \t\t'name' => $faker->word . '校区',\n\t \t\t]);\n\n \t$campus->canteens()->saveMany(factory(Canteen::class, mt_rand(2,3))->make());\n $campus->dorms()->saveMany(factory(Dorm::class, mt_rand(2,3))->make());\n\n }\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n DB::table('users')->insert([\n 'name' => 'admin',\n 'email' => '[email protected]',\n 'password' => bcrypt('admin'),\n 'seq_q'=>'1',\n 'seq_a'=>'admin'\n ]);\n\n // DB::table('bloods')->insert([\n // ['name' => 'A+'],\n // ['name' => 'A-'],\n // ['name' => 'B+'],\n // ['name' => 'B-'],\n // ['name' => 'AB+'],\n // ['name' => 'AB-'],\n // ['name' => 'O+'],\n // ['name' => 'O-'],\n // ]);\n\n \n }", "public function run()\n {\n // $this->call(UserTableSeeder::class);\n \\App\\User::create([\n 'name'=>'PAPE SAMBA NDOUR',\n 'email'=>'[email protected]',\n 'password'=>bcrypt('Admin1122'),\n ]);\n\n $faker = Faker::create();\n\n for ($i = 0; $i < 100 ; $i++)\n {\n $firstName = $faker->firstName;\n $lastName = $faker->lastName;\n $niveau = \\App\\Niveau::inRandomOrder()->first();\n \\App\\Etudiant::create([\n 'prenom'=>$firstName,\n 'nom'=>$lastName,\n 'niveau_id'=>$niveau->id\n ]);\n }\n\n\n }", "public function run()\n {\n //\n DB::table('foods')->delete();\n\n Foods::create(array(\n 'name' => 'Chicken Wing',\n 'author' => 'Bambang',\n 'overview' => 'a deep-fried chicken wing, not in spicy sauce'\n ));\n\n Foods::create(array(\n 'name' => 'Beef ribs',\n 'author' => 'Frank',\n 'overview' => 'Slow baked beef ribs rubbed in spices'\n ));\n\n Foods::create(array(\n 'name' => 'Ice cream',\n 'author' => 'Lou',\n 'overview' => ' A sweetened frozen food typically eaten as a snack or dessert.'\n ));\n\n }", "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n News::truncate();\n\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 10; $i++) {\n News::create([\n 'title' => $faker->sentence,\n 'summary' => $faker->sentence,\n 'content' => $faker->paragraph,\n 'imagePath' => '/img/exclamation_mark.png'\n ]);\n }\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(App\\User::class, 3)->create();\n factory(App\\Models\\Category::class, 3)\n ->create()\n ->each(function ($u) {\n $u->courses()->saveMany(factory(App\\Models\\Course::class,3)->make())->each(function ($c){\n $c->exams()->saveMany(factory(\\App\\Models\\Exam::class,3)->make())->each(function ($e){\n $e->questions()->saveMany(factory(\\App\\Models\\Question::class,4)->make())->each(function ($q){\n $q->answers()->saveMany(factory(\\App\\Models\\Answer::class,4)->make())->each(function ($a){\n $a->correctAnswer()->save(factory(\\App\\Models\\Correct_answer::class)->make());\n });\n });\n });\n });\n\n });\n\n }", "public function run()\n {\n \\DB::table('employees')->delete();\n\n $faker = \\Faker\\Factory::create('ja_JP');\n\n $role_id = ['1','2','3'];\n\n for ($i = 0; $i < 10; $i++) {\n \\App\\Models\\Employee::create([\n 'last_name' =>$faker->lastName() ,\n 'first_name' => $faker->firstName(),\n 'mail' => $faker->email(),\n 'password' => Hash::make( \"password.$i\"),\n 'birthday' => $faker->date($format='Y-m-d',$max='now'),\n 'role_id' => $faker->randomElement($role_id)\n ]);\n }\n }", "public function run()\n {\n\n DB::table('clients')->delete();\n DB::table('trips')->delete();\n error_log('empty tables done.');\n\n $random_cities = City::inRandomOrder()->select('ar_name')->limit(5)->get();\n $GLOBALS[\"random_cities\"] = $random_cities->pluck('ar_name')->toArray();\n\n $random_airlines = Airline::inRandomOrder()->select('code')->limit(5)->get();\n $GLOBALS[\"random_airlines\"] = $random_airlines->pluck('code')->toArray();\n\n factory(App\\Client::class, 5)->create();\n error_log('Client seed done.');\n\n\n factory(App\\Trip::class, 50)->create();\n error_log('Trip seed done.');\n\n\n factory(App\\Quicksearch::class, 10)->create();\n error_log('Quicksearch seed done.');\n }", "public function run()\n {\n // Admins\n User::factory()->create([\n 'name' => 'Zaiman Noris',\n 'username' => 'rognales',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n User::factory()->create([\n 'name' => 'Affiq Rashid',\n 'username' => 'affiqr',\n 'email' => '[email protected]',\n 'active' => true,\n ]);\n\n // Only seed test data in non-prod\n if (! app()->isProduction()) {\n Member::factory()->count(1000)->create();\n Staff::factory()->count(1000)->create();\n\n Participant::factory()\n ->addSpouse()\n ->addChildren()\n ->addInfant()\n ->addOthers()\n ->count(500)\n ->hasUploads(2)\n ->create();\n }\n }", "public function run()\n {\n $this->call([\n RoleSeeder::class,\n UserSeeder::class,\n ]);\n\n \\App\\Models\\Category::factory(4)->create();\n \\App\\Models\\View::factory(6)->create();\n \\App\\Models\\Room::factory(8)->create();\n \n $rooms = \\App\\Models\\Room::all();\n // \\App\\Models\\User::all()->each(function ($user) use ($rooms) { \n // $user->rooms()->attach(\n // $rooms->random(rand(1, \\App\\Models\\Room::max('id')))->pluck('id')->toArray()\n // ); \n // });\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n Employee::factory()->create(['email' => '[email protected]']);\n Brand::factory()->count(3)->create();\n $this->call([\n TagSeeder::class,\n AttributeSeeder::class,\n AttributeValueSeeder::class,\n ProductSeeder::class,\n ]);\n }", "public function run()\n {\n $this->call(RolesTableSeeder::class); // crée les rôles\n $this->call(PermissionsTableSeeder::class); // crée les permissions\n\n factory(Employee::class,3)->create();\n factory(Provider::class,1)->create();\n\n $user = User::create([\n 'name'=>'Alioune Bada Ndoye',\n 'email'=>'[email protected]',\n 'phone'=>'773012470',\n 'password'=>bcrypt('123'),\n ]);\n Employee::create([\n 'job'=>'Informaticien',\n 'user_id'=>User::where('email','[email protected]')->first()->id,\n 'point_id'=>Point::find(1)->id,\n ]);\n $user->assignRole('admin');\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(User::class, 1)\n \t->create(['email' => '[email protected]']);\n\n factory(Category::class, 5)->create();\n }", "public function run()\n {\n //$this->call(UsersTableSeeder::class);\n $this->call(rootSeed::class);\n factory(App\\Models\\Egresado::class,'hombre',15)->create();\n factory(App\\Models\\Egresado::class,'mujer',15)->create();\n factory(App\\Models\\Administrador::class,5)->create();\n factory(App\\Models\\Notificacion::class,'post',10)->create();\n factory(App\\Models\\Notificacion::class,'mensaje',5)->create();\n factory(App\\Models\\Egresado::class,'bajaM',5)->create();\n factory(App\\Models\\Egresado::class,'bajaF',5)->create();\n factory(App\\Models\\Egresado::class,'suscritam',5)->create();\n factory(App\\Models\\Egresado::class,'suscritaf',5)->create();\n }", "public function run()\n {\n \n User::factory(1)->create([\n 'rol'=>'EPS'\n ]);\n Person::factory(10)->create();\n $this->call(EPSSeeder::class);\n $this->call(OfficialSeeder::class);\n $this->call(VVCSeeder::class);\n $this->call(VaccineSeeder::class);\n }", "public function run()\n {\n // $faker=Faker::create();\n // foreach(range(1,100) as $index)\n // {\n // DB::table('products')->insert([\n // 'name' => $faker->name,\n // 'price' => rand(10,100000)/100\n // ]);\n // }\n }", "public function run()\n {\n $this->call([\n LanguagesTableSeeder::class,\n ListingAvailabilitiesTableSeeder::class,\n ListingTypesTableSeeder::class,\n RoomTypesTableSeeder::class,\n AmenitiesTableSeeder::class,\n UsersTableSeeder::class,\n UserLanguagesTableSeeder::class,\n ListingsTableSeeder::class,\n WishlistsTableSeeder::class,\n StaysTableSeeder::class,\n GuestsTableSeeder::class,\n TripsTableSeeder::class,\n ReviewsTableSeeder::class,\n RatingsTableSeeder::class,\n PopularDestinationsTableSeeder::class,\n ImagesTableSeeder::class,\n ]);\n\n // factory(App\\User::class, 5)->states('host')->create();\n // factory(App\\User::class, 10)->states('hostee')->create();\n\n // factory(App\\User::class, 10)->create();\n // factory(App\\Models\\Listing::class, 30)->create();\n }", "public function run()\n {\n Schema::disableForeignKeyConstraints();\n Grade::truncate();\n Schema::enableForeignKeyConstraints();\n\n $faker = \\Faker\\Factory::create();\n\n for ($i = 0; $i < 10; $i++) {\n Grade::create([\n 'letter' => $faker->randomElement(['а', 'б', 'в']),\n 'school_id' => $faker->unique()->numberBetween(1, School::count()),\n 'level' => 1\n ]);\n }\n }", "public function run()\n {\n // $this->call(UserSeeder::class);\n factory(App\\User::class,5)->create();//5 User created\n factory(App\\Model\\Genre::class,5)->create();//5 genres\n factory(App\\Model\\Film::class,6)->create();//6 films\n factory(App\\Model\\Comment::class, 20)->create();// 20 comments\n }", "public function run()\n {\n\n $this->call(UserSeeder::class);\n factory(Empresa::class,10)->create();\n factory(Empleado::class,50)->create();\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n User::create([\n 'name' => 'jose luis',\n 'email' => '[email protected]',\n 'password' => bcrypt('xxxxxx'),\n 'role' => 'admin',\n ]);\n\n Category::create([\n 'name' => 'inpods',\n 'description' => 'auriculares inalambricos que funcionan con blouthue genial'\n ]);\n\n Category::create([\n 'name' => 'other',\n 'description' => 'otra cosa diferente a un inpods'\n ]);\n\n\n /* Create 10 products */\n Product::factory(10)->create();\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Russell'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Bitfumes'\n ]);\n\n factory(User::class)->create([\n 'email' => '[email protected]',\n 'name' => 'Paul'\n ]);\n }", "public function run()\n {\n $user_ids = [1,2,3];\n $faker = app(\\Faker\\Generator::class);\n $posts = factory(\\App\\Post::class)->times(50)->make()->each(function($post) use ($user_ids,$faker){\n $post->user_id = $faker->randomElement($user_ids);\n });\n \\App\\Post::insert($posts->toArray());\n }", "public function run()\n {\n // Vaciar la tabla.\n Favorite::truncate();\n $faker = \\Faker\\Factory::create();\n // Crear artículos ficticios en la tabla\n\n // factory(App\\Models\\User::class, 2)->create()->each(function ($user) {\n // $user->users()->saveMany(factory(App\\Models\\User::class, 25)->make());\n //});\n }", "public function run()\n\t{\n\t\t$this->call(ProductsTableSeeder::class);\n\t\t$this->call(CategoriesTableSeeder::class);\n\t\t$this->call(BrandsTableSeeder::class);\n\t\t$this->call(ColorsTableSeeder::class);\n\n\t\t$products = \\App\\Product::all();\n \t$categories = \\App\\Category::all();\n \t$brands = \\App\\Brand::all();\n \t$colors = \\App\\Color::all();\n\n\t\tforeach ($products as $product) {\n\t\t\t$product->colors()->sync($colors->random(3));\n\n\t\t\t$product->category()->associate($categories->random(1)->first());\n\t\t\t$product->brand()->associate($brands->random(1)->first());\n\n\t\t\t$product->save();\n\t\t}\n\n\t\t// for ($i = 0; $i < count($products); $i++) {\n\t\t// \t$cat = $categories[rand(0,5)];\n\t\t// \t$bra = $brands[rand(0,7)];\n\t\t// \t$cat->products()->save($products[$i]);\n\t\t// \t$bra->products()->save($products[$i]);\n\t\t// }\n\n\t\t// $products = factory(App\\Product::class)->times(20)->create();\n\t\t// $categories = factory(App\\Category::class)->times(6)->create();\n\t\t// $brands = factory(App\\Brand::class)->times(8)->create();\n\t\t// $colors = factory(App\\Color::class)->times(15)->create();\n\t}", "public function run()\n {\n /*$this->call(UsersTableSeeder::class);\n $this->call(GroupsTableSeeder::class);\n $this->call(TopicsTableSeeder::class);\n $this->call(CommentsTableSeeder::class);*/\n DB::table('users')->insert([\n 'name' => 'pkw',\n 'email' => '[email protected]',\n 'password' => bcrypt('secret'),\n 'type' => '1'\n ]);\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $faker = Faker::create();\n foreach (range(1,200) as $index) {\n DB::table('users')->insert([\n 'name' => $faker->name,\n 'email' => $faker->email,\n 'phone' => $faker->randomDigitNotNull,\n 'address'=> $faker->streetAddress,\n 'password' => bcrypt('secret'),\n ]);\n }\n }", "public function run()\n {\n $this->call(UsersSeeder::class);\n User::factory(2)->create();\n Company::factory(2)->create();\n\n }", "public function run()\n {\n echo PHP_EOL , 'seeding roles...';\n\n Role::create(\n [\n 'name' => 'Admin',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Principal',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Teacher',\n 'deletable' => false,\n ]\n );\n\n Role::create(\n [\n 'name' => 'Student',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Parents',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Accountant',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Librarian',\n 'deletable' => false,\n ]\n );\n Role::create(\n [\n 'name' => 'Receptionist',\n 'deletable' => false,\n ]\n );\n\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n // $this->call(QuestionTableSeed::class);\n\n $this->call([\n QuestionTableSeed::class,\n AlternativeTableSeed::class,\n ScheduleActionTableSeeder::class,\n UserTableSeeder::class,\n CompanyClassificationTableSeed::class,\n ]);\n // DB::table('clients')->insert([\n // 'name' => 'Empresa-02',\n // 'email' => '[email protected]',\n // 'password' => bcrypt('07.052.477/0001-60'),\n // ]);\n }", "public function run()\n {\n $faker = \\Faker\\Factory::create();\n\n // And now, let's create a few articles in our database:\n for ($i = 0; $i < 5; $i++) {\n Runner::create([\n 'external_id' => $faker->uuid,\n 'name' => $faker->name,\n 'race_id' =>rand(1,5),\n 'age' => rand(30, 45),\n 'sex' => $faker->randomElement(['male', 'female']),\n 'color' => $faker->randomElement(['#ecbcb4', '#d1a3a4']),\n ]);\n }\n }", "public function run()\n {\n // \\App\\Models\\User::factory(10)->create();\n\n User::factory()->create([\n 'name' => 'Carlos',\n 'email' => '[email protected]',\n 'email_verified_at' => now(),\n 'password' => bcrypt('123456'), // password\n 'remember_token' => Str::random(10),\n ]);\n \n $this->call([PostsTableSeeder::class]);\n $this->call([TagTableSeeder::class]);\n\n }", "public function run()\n {\n $this->call(AlumnoSeeder::class);\n //Alumnos::factory()->count(30)->create();\n //DB::table('alumnos')->insert([\n // 'dni_al' => '13189079',\n // 'nom_al' => 'Jose',\n // 'ape_al' => 'Araujo',\n // 'rep_al' => 'Principal',\n // 'esp_al' => 'Tecnologia',\n // 'lnac_al' => 'Valencia'\n //]);\n }", "public function run()\n {\n Eloquent::unguard();\n\n DB::statement('SET FOREIGN_KEY_CHECKS=0;');\n\n // $this->call([\n // CountriesTableSeeder::class,\n // ]);\n\n factory(App\\User::class, 100)->create();\n factory(App\\Type::class, 10)->create();\n factory(App\\Item::class, 100)->create();\n factory(App\\Order::class, 1000)->create();\n\n $items = App\\Item::all();\n\n App\\Order::all()->each(function($order) use ($items) {\n\n $n = rand(1, 10);\n\n $order->items()->attach(\n $items->random($n)->pluck('id')->toArray()\n , ['quantity' => $n]);\n\n $order->total = $order->items->sum(function($item) {\n return $item->price * $item->pivot->quantity;\n });\n\n $order->save();\n\n });\n\n DB::statement('SET FOREIGN_KEY_CHECKS=1;');\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'izzanni',\n \n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'aina',\n\n ]\n );\n factory(User::class)->create(\n [\n 'email'=>'[email protected]',\n 'name'=>'sab',\n\n ]\n );\n }", "public function run()\n {\n\n factory('App\\Models\\Pessoa', 60)->create();\n factory('App\\Models\\Profissional', 10)->create();\n factory('App\\Models\\Paciente', 50)->create();\n $this->call(UsersTableSeeder::class);\n $this->call(ProcedimentoTableSeeder::class);\n // $this->call(PessoaTableSeeder::class);\n // $this->call(ProfissionalTableSeeder::class);\n // $this->call(PacienteTableSeeder::class);\n // $this->call(AgendaProfissionalTableSeeder::class);\n }", "public function run()\n {\n //Acá se define lo que el seeder va a hacer.\n //insert() para insertar datos.\n //Array asociativo. La llave es el nombre de la columna.\n// DB::table('users')->insert([\n// //Para un solo usuario.\n// 'name' => 'Pedrito Perez',\n// 'email' => '[email protected]',\n// 'password' => bcrypt('123456')\n// ]);//Se indica el nombre de la tabla.\n\n //Crea 50 usuarios (sin probar)\n// factory(App\\User::class, 50)->create()->each(function($u) {\n// $u->posts()->save(factory(App\\Post::class)->make());\n// });\n\n factory(App\\User::class, 10)->create(); //Así se ejecuta el model factory creado en ModelFactory.php\n\n }", "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n //nhập liệu mẫu cho bảng users\n DB::table('users')->insert([\n \t['id'=>'1001', 'name'=>'Phan Thị Hiền', 'email'=>'[email protected]', 'password'=>'123456', 'isadmin'=>1],\n \t['id'=>'1002', 'name'=>'Phan Thị Hà', 'email'=>'[email protected]', 'password'=>'111111', 'isadmin'=>0]\n ]);\n\n\n //nhập liệu mẫu cho bảng suppliers\n DB::table('suppliers')->insert([\n \t['name'=>'FPT', 'address'=>'151 Hùng Vương, TP. Đà Nẵng', 'phonenum'=>'0971455395'],\n \t['name'=>'Điện Máy Xanh', 'address'=>'169 Phan Châu Trinh, TP. Đà Nẵng', 'phonenum'=>'0379456011']\n ]);\n\n\n //Bảng phiếu bảo hành\n }", "public function run()\n {\n \t// DB::table('categories')->truncate();\n // factory(App\\Models\\Category::class, 10)->create();\n Schema::disableForeignKeyConstraints();\n Category::truncate();\n $faker = Faker\\Factory::create();\n\n $categories = ['SAMSUNG','NOKIA','APPLE','BLACK BERRY'];\n foreach ($categories as $key => $value) {\n Category::create([\n 'name'=>$value,\n 'description'=> 'This is '.$value,\n 'markup'=> rand(10,100),\n 'category_id'=> null,\n 'UUID' => $faker->uuid,\n ]);\n }\n }" ]
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.7841468", "0.7834583", "0.7827792", "0.7819104", "0.78088796", "0.7802872", "0.7802348", "0.78006834", "0.77989215", "0.7795819", "0.77903426", "0.77884805", "0.77862066", "0.7778816", "0.7777486", "0.7765202", "0.7762492", "0.77623445", "0.77621746", "0.7761383", "0.77606887", "0.77596676", "0.7757001", "0.7753607", "0.7749522", "0.7749292", "0.77466977", "0.7729947", "0.77289546", "0.772796", "0.77167094", "0.7714503", "0.77140456", "0.77132195", "0.771243", "0.77122366", "0.7711113", "0.77109736", "0.7710777", "0.7710086", "0.7705484", "0.770464", "0.7704354", "0.7704061", "0.77027386", "0.77020216", "0.77008796", "0.7698617", "0.76985973", "0.76973504", "0.7696405", "0.7694293", "0.7692694", "0.7691264", "0.7690576", "0.76882726", "0.7687433", "0.7686844", "0.7686498", "0.7685065", "0.7683827", "0.7679184", "0.7678287", "0.76776296", "0.76767945", "0.76726556", "0.76708084", "0.76690495", "0.766872", "0.76686716", "0.7666299", "0.76625943", "0.7662227", "0.76613766", "0.7659881", "0.7656644", "0.76539344", "0.76535016", "0.7652375", "0.7652313", "0.7652022" ]
0.0
-1
array of links Initialize the database link
function MySql( $link_name = null ){ if( !$link_name ) $this->link_name = $link_name; $this->link = isset( mysql::$link_array[$this->link_name] ) ? mysql::$link_array[$this->link_name] : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function genLink () {\n\t\t\t$db_host=\"127.0.0.1\";\n\t\t\t$db_nombre=\"gallery\";\n\t\t\t$db_user=\"gallery\";\n\t\t\t$db_pass=\"gallery\";\n\t\t\t$link=mysql_connect($db_host, $db_user, $db_pass) or die (\"Error conectando a la base de datos.\");\n\t\t\tmysql_select_db($db_nombre ,$link) or die(\"Error seleccionando la base de datos.\");\n\t\t\t$this->link = $link;\n\t\t}", "public function initLinks()\n\t{\n\t\tif ($this->collLinks === null) {\n\t\t\t$this->collLinks = array();\n\t\t}\n\t}", "function links() {\n return array(\n\n );\n }", "public function getLinksArray()\n {\n $db = new db(self::db_links);\n return $db->getLinksArray();\n }", "function link_database()\n{\n\t$sql=\"CREATE TABLE IF NOT EXISTS `link` (\n `id` int(11) NOT NULL AUTO_INCREMENT,\n `link` varchar(100) COLLATE utf8_unicode_ci NOT NULL,\n `url` varchar(255) COLLATE utf8_unicode_ci NOT NULL,\n PRIMARY KEY (`id`)\n) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;\";\n\tlz::h('db')->install($sql);\n}", "protected function addLinks()\n {\n }", "public function create_link_array()\n\t{\n\t\t$this->prefix = '';\t\t\n\t\treturn parent::create_link_array();\n\t}", "protected function get_schema_links()\n {\n }", "protected function get_schema_links()\n {\n }", "protected function generateLinks()\n {\n if ( ! is_null($this->links) ) {\n foreach ( $this->links as $link ) {\n $this->addLine('<url>');\n $this->addLine('<loc>');\n $this->addLine($this->helpers->url(\n $link->link,\n $this->protocol,\n $this->host\n ));\n $this->addLine('</loc>');\n $this->addLine('<lastmod>' . date_format($link->updated_at, 'Y-m-d') . '</lastmod>');\n $this->addLine('</url>');\n }\n }\n }", "function store_all_links($owner_id,$base_url,$link_array){\n\t//database configuration\n\trequire 'database/snippet_links_db.php';\n\tfor($count=0;$count<count($link_array);$count++){\n\t\t$webpage_address = $link_array[$count];\n if(!check_if_link_is_added($webpage_address)){\n\t\t//store link into database\n\t\t$sql = \"INSERT INTO snippet_links(webpage_id,owner_id,parent_website,webpage_address,date_added)\n\t\t VALUES(NULL,'$owner_id','$base_url','$webpage_address',NOW())\";\n\t\t$result = mysqli_query($connection,$sql);\n\t\tif(!$result){\n\t\t}\n\t\telse{\n\t\t}\n }\n}\n\t//close the connection\n\tmysqli_close($connection);\n}", "public function bulkSetLink()\n {\n $this->crud->hasAccessOrFail('bulkSetLink');\n\n $entries = $this->crud->getRequest()->input('entries');\n $link = $this->crud->getRequest()->input('link');\n\n foreach ($entries as $key => $id) {\n if ($entry = $this->crud->model->find($id)) {\n $entry->links()->attach($link);\n }\n }\n\n return response()->json($entries);\n }", "function generateTagsLinks( ){\n global $config;\n \n $oSql = Sql::getInstance( );\n $oQuery = $oSql->getQuery( 'SELECT sUrl, iTag, sLang FROM tags ORDER BY iPosition ASC' );\n while( $aData = $oQuery->fetch( PDO::FETCH_ASSOC ) ){\n $sUrl = $config['tags_url_prefix'].change2Url( $aData['sUrl'] );\n $aLinksIds[$aData['iTag']] = $sUrl.'.html';\n $aLinks[$sUrl] = Array( $aData['iTag'], $aData['sLang'] );\n } // end while\n\n file_put_contents( $config['dir_database'].'cache/tags_links', ( isset( $aLinks ) ? serialize( $aLinks ) : null ) );\n file_put_contents( $config['dir_database'].'cache/tags_links_ids', ( isset( $aLinksIds ) ? serialize( $aLinksIds ) : null ) );\n}", "public function get_links()\n {\n }", "function getAllLinks(){\r\n return $this->link_arry;\r\n }", "public function initCampaignLinks()\n\t{\n\t\t$this->collCampaignLinks = array();\n\t}", "public function setLinks(array $data)\n {\n $this->links = [];\n\n foreach ($data as $key => $item) {\n $this->addLink($key, $item);\n }\n }", "function InitLookupLinks()\r\n{\r\n\tglobal $lookupTableLinks;\r\n\r\n\t$lookupTableLinks = array();\r\n\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"][\"adm_usuarios1.tipo_usuario\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"][\"adm_usuarios1.tipo_usuario\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_tipousuario\"][\"adm_usuarios1.tipo_usuario\"][\"edit\"] = array(\"table\" => \"adm_usuarios\", \"field\" => \"tipo_usuario\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_plano_profissional\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_plano_profissional\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_plano_profissional\"][\"adm_usuarios1.plano_tipo\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_plano_profissional\"][\"adm_usuarios1.plano_tipo\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_plano_profissional\"][\"adm_usuarios1.plano_tipo\"][\"edit\"] = array(\"table\" => \"adm_usuarios\", \"field\" => \"plano_tipo\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_pais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"ibge_pais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_pais\"][\"adm_usuarios1.pais\"] )) {\r\n\t\t\t$lookupTableLinks[\"ibge_pais\"][\"adm_usuarios1.pais\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"ibge_pais\"][\"adm_usuarios1.pais\"][\"edit\"] = array(\"table\" => \"adm_usuarios\", \"field\" => \"pais\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_municipios\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"ibge_municipios\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_municipios\"][\"adm_usuarios1.municipio\"] )) {\r\n\t\t\t$lookupTableLinks[\"ibge_municipios\"][\"adm_usuarios1.municipio\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"ibge_municipios\"][\"adm_usuarios1.municipio\"][\"edit\"] = array(\"table\" => \"adm_usuarios\", \"field\" => \"municipio\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_usuarios_dados_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"adm_usuarios1.idEmpresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"adm_usuarios1.idEmpresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"adm_usuarios1.idEmpresa\"][\"edit\"] = array(\"table\" => \"adm_usuarios\", \"field\" => \"idEmpresa\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_planos\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_planos\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_planos\"][\"adm_meuplano1.idPlano\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_planos\"][\"adm_meuplano1.idPlano\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_planos\"][\"adm_meuplano1.idPlano\"][\"edit\"] = array(\"table\" => \"adm_meuplano\", \"field\" => \"idPlano\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"][\"login.tipo_usuario\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"][\"login.tipo_usuario\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_tipousuario\"][\"login.tipo_usuario\"][\"edit\"] = array(\"table\" => \"login\", \"field\" => \"tipo_usuario\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.atendimento_presencial\"] )) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.atendimento_presencial\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.atendimento_presencial\"][\"edit\"] = array(\"table\" => \"buscar_profissionais\", \"field\" => \"atendimento_presencial\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.nome_empresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.nome_empresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.nome_empresa\"][\"search\"] = array(\"table\" => \"buscar_profissionais\", \"field\" => \"nome_empresa\", \"page\" => \"search\");\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.ramo_empresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.ramo_empresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.ramo_empresa\"][\"edit\"] = array(\"table\" => \"buscar_profissionais\", \"field\" => \"ramo_empresa\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"Busca Profissional\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"Busca Profissional\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"Busca Profissional\"][\"buscar_profissionais.estado_empresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"Busca Profissional\"][\"buscar_profissionais.estado_empresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"Busca Profissional\"][\"buscar_profissionais.estado_empresa\"][\"search\"] = array(\"table\" => \"buscar_profissionais\", \"field\" => \"estado_empresa\", \"page\" => \"search\");\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.municipio_empresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.municipio_empresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"buscar_profissionais\"][\"buscar_profissionais.municipio_empresa\"][\"search\"] = array(\"table\" => \"buscar_profissionais\", \"field\" => \"municipio_empresa\", \"page\" => \"search\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_tipousuario\"][\"busca_profissional.tipo_usuario\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_tipousuario\"][\"busca_profissional.tipo_usuario\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_tipousuario\"][\"busca_profissional.tipo_usuario\"][\"edit\"] = array(\"table\" => \"Busca Profissional\", \"field\" => \"tipo_usuario\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_plano_profissional\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_plano_profissional\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_plano_profissional\"][\"busca_profissional.plano_tipo\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_plano_profissional\"][\"busca_profissional.plano_tipo\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_plano_profissional\"][\"busca_profissional.plano_tipo\"][\"edit\"] = array(\"table\" => \"Busca Profissional\", \"field\" => \"plano_tipo\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_pais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"ibge_pais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_pais\"][\"busca_profissional.pais\"] )) {\r\n\t\t\t$lookupTableLinks[\"ibge_pais\"][\"busca_profissional.pais\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"ibge_pais\"][\"busca_profissional.pais\"][\"edit\"] = array(\"table\" => \"Busca Profissional\", \"field\" => \"pais\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_municipios\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"ibge_municipios\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"ibge_municipios\"][\"busca_profissional.municipio\"] )) {\r\n\t\t\t$lookupTableLinks[\"ibge_municipios\"][\"busca_profissional.municipio\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"ibge_municipios\"][\"busca_profissional.municipio\"][\"edit\"] = array(\"table\" => \"Busca Profissional\", \"field\" => \"municipio\", \"page\" => \"edit\");\r\n\t\tif( !isset( $lookupTableLinks[\"adm_usuarios_dados_profissionais\"] ) ) {\r\n\t\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"] = array();\r\n\t\t}\r\n\t\tif( !isset( $lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"busca_profissional.idEmpresa\"] )) {\r\n\t\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"busca_profissional.idEmpresa\"] = array();\r\n\t\t}\r\n\t\t$lookupTableLinks[\"adm_usuarios_dados_profissionais\"][\"busca_profissional.idEmpresa\"][\"edit\"] = array(\"table\" => \"Busca Profissional\", \"field\" => \"idEmpresa\", \"page\" => \"edit\");\r\n}", "public function link();", "public function __construct() {\r\n\t\t$this->links = array();\r\n\t}", "function setLinks($links) \r\n {\r\n\r\n $this->activity_list->setLinks($links); \r\n \t\t \r\n// \t\t echo print_r($this->linkValues,true);\t \r\n \t parent::setLinks($links);\r\n \r\n }", "protected function prepare_links($prepared)\n {\n }", "function store_links_and_feature_images($owner_id,$base_url,$link_array){\n\t//database configuration\n\trequire 'database/snippet_links_db.php';\n\tfor($count=0;$count<count($link_array);$count++){\n\t\t$webpage_address = $link_array[$count]['link'];\n if(!check_if_link_is_added($webpage_address)){\n\t\t$feature_image = $link_array[$count]['img_link'];\n\t\t$image_title = $link_array[$count]['img_title'];\n\t\t//store link into database\n\t\t$sql = \"INSERT INTO snippet_links\n\t\t (webpage_id,owner_id,parent_website,webpage_address,feature_image,date_added)\n\t\t VALUES(NULL,'$owner_id','$base_url','$webpage_address','$feature_image',NOW())\";\n\t\t$result = mysqli_query($connection,$sql);\n\t\tif(!$result){\n\t\t}\n\t\telse{\n\t\t}\n }\n}\n\t//close the connection\n\tmysqli_close($connection);\n}", "public function getLinksList(){\n return $this->_get(9);\n }", "public function addLinks(array $links) {\r\n if (count($links) != 0) {\r\n $this->sql = \"\";\r\n foreach ($links as $link) {\r\n $link = str_replace(\"https://\", \"\", str_replace(\"http://\", \"\", $link));\r\n $this->sql .= \"INSERT INTO noticias1 values('null','PIRATINHA','$link','1');\";\r\n }\r\n if (mysqli_multi_query($this->conexao, $this->sql)) {\r\n do {\r\n if ($result = mysqli_store_result($this->conexao)) {\r\n mysqli_free_result($result);\r\n }\r\n } while (mysqli_more_results($this->conexao) && mysqli_next_result($this->conexao));\r\n } else {\r\n throw new Exception(\r\n \"Houve um erro ao tentar adicionar dados ao Banco. ERRO: \" .\r\n mysqli_error($this->conexao));\r\n }\r\n }\r\n }", "public function getlinks()\n {////\n // Define an empty array to hold the list of admin links\n $links = array();\n\n // Return the links array back to the calling function\n return $links;\n }", "function link() {\n\t\t$this->Link->recursive = 0;\n\t\t$links = $this->Link->find('all');\n\t\t$this->set('links', $links);\n\t}", "function get_choices_links (array &$links) {\n //Adds a link to /push\n $links[] = [lang_get(\"PushMessage\"), get_url('push')];\n }", "function getlistlink(){\t\t\t\n\t\tif($this->type=='news'){\n\t\t\t$sql = 'SELECT `a`.`id`,`a`.`name`,`b`.`ctrl` FROM `'.DB_TABLE_PREFIX.'news` as `a` INNER JOIN `'.DB_TABLE_PREFIX.'newslink` as `b` ON `a`.`id`=`b`.`linkid` WHERE `b`.`newsid`='.$this->newsid.' AND `b`.`ctrl`='.$this->ctrl;\n\t\t}elseif($this->type=='product'){\n\t\t\t$sql = 'SELECT `a`.`id`,`a`.`name`,`b`.`ctrl` FROM `'.DB_TABLE_PREFIX.'product` as `a` INNER JOIN `'.DB_TABLE_PREFIX.'productnewslink` as `b` ON `a`.`id`=`b`.`productid` WHERE `b`.`newsid`='.$this->newsid.' AND `b`.`ctrl`='.$this->ctrl.' AND `b`.`from`='.$this->from;\t\t\n\t\t}\n\t\t_trace($sql);\n\t\t$rs = mysql_query($sql);\n\t\t$this->a_link = array();\n\t\twhile($this->a_link[] = mysql_fetch_assoc($rs));\n\t\tarray_pop($this->a_link);\t\t\t\n\t\tmysql_free_result($rs);\t\n\t}", "function setLinks($link) \n {\n $this->links = $link;\n }", "public function multipleLinks(array $links);", "protected function prepare_links($item)\n {\n }", "public abstract function prepare_item_links($id);", "public function add_links($links)\n {\n }", "function linkCollection ($argArray) {\n $this->tamino = new taminoConnection($argArray);\n $this->subject = new subjectList($argArray);\n\n $this->sort_opts = array(\"title\", \"date\",\"contrib\");\n $this->pretty_sort_opts['date'] = \"Date Submitted\";\n $this->pretty_sort_opts['title'] = \"Title\";\n $this->pretty_sort_opts['contrib'] = \"Contributor\";\n\n $this->sortfield[\"date\"] = \"dc:date\";\n $this->sortfield[\"title\"] = \"dc:title\";\n $this->sortfield[\"contrib\"] = \"dc:contributor\";\n $this->sort = $argArray['sort'];\n $this->limit_subject = $argArray['limit_subject'];\n\n if ($this->sort == '') { $this->sort = \"title\"; } // default\n\n // Dublin Core namespace\n $this->dcns = \"dc='http://purl.org/dc/elements/1.1/'\";\n // xquery to retrieve all linkRecord identifiers from tamino\n $this->xquery = \"declare namespace $this->dcns\" . \n 'for $b in input()/linkCollection/linkRecord/@id';\n if (isset($this->limit_subject) && ($this->limit_subject != '') \n\t&& ($this->limit_subject != 'all')) {\n $this->xquery .= \" where \\$b/../dc:subject = '$this->limit_subject' \";\n }\n $this->xquery .= ' return $b ';\n $this->xquery .= \" sort by (../\" . $this->sortfield[$this->sort] . \")\"; \n // return \\$b sort by (../\" . $this->sortfield[$this->sort] . \")\"; \n\n // initialize id list from Tamino \n $this->taminoGetIds(); \n // for each id, create and initialize a linkRecord object\n foreach ($this->ids as $i) {\n $linkargs = $argArray;\n $linkargs[\"id\"] = $i;\n $this->link[$i] = new linkRecord($linkargs);\n $this->link[$i]->taminoGetRecord();\n }\n }", "protected function prepare_links($id)\n {\n }", "protected function prepare_links($id)\n {\n }", "protected function prepare_links($doc) {\n $base = sprintf('%s/%s', $this->namespace, $this->rest_base);\n $links = array(\n 'self' => array(\n 'href' => rest_url(trailingslashit( $base ) . $doc->ID),\n ),\n 'collection' => array(\n 'href' => rest_url($base),\n ),\n );\n return $links;\n }", "public function __construct(){\n\t\t\t$this->genLink();\n\t\t}", "public function get_all_links()\r\n {\r\n \tif (empty($this->course_code))\r\n \t\tdie('Error in get_not_created_links() : course code not set');\r\n \t\r\n \t$course_info = api_get_course_info($this->course_code);\r\n \t$tbl_grade_links = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINK,$course_info['dbName']);\r\n\r\n\t\t$sql = 'SELECT id,title from '.$this->get_exercise_table();\r\n\t\t$result = api_sql_query($sql, __FILE__, __LINE__);\r\n\r\n\t\t$cats=array();\r\n\t\twhile ($data=mysql_fetch_array($result))\r\n\t\t{\r\n\t\t\t$cats[] = array ($data['id'], $data['title']);\r\n\t\t}\r\n\t\treturn $cats;\r\n }", "public function setLinksFoundArray()\n { \n $cnt = count($this->links_found_url_descriptors);\n for ($x=0; $x<$cnt; $x++)\n {\n $UrlDescriptor = $this->links_found_url_descriptors[$x];\n \n // Convert $UrlDescriptor-object to an array\n $object_vars = get_object_vars($UrlDescriptor);\n \n $this->links_found[] = $object_vars;\n }\n }", "public function getLinks()\n {\n $url = Yii::$app->getRequest()->getAbsoluteUrl();\n // change $url_cut_point if you have more prefix in the url of restful api\n $url_cut_point = 5;\n $url_slice = array_slice(preg_split(\"#[?/]#\", $url), 0, $url_cut_point);\n $link = implode('/', $url_slice).'/'.$this->id;\n\n return [ Link::REL_SELF => $link ];\n }", "public function save_links($data){\n\n // Insert Data In Links Table\n $this->db->insert($data,'links');\n \n }", "public function column_url($link)\n {\n }", "function define_link(){\n\t\t\t$link = \"javascript:set_values(\";\n\t\t\t#print_r($this->column);\n\t\t\tfor($i=0;$i<count($this->column);$i++){\n\t\t\t\t$link .= \"'%$i',\";\t\t\t\t\n\t\t\t}\n\t\t\t$link = substr($link,0,strlen($link)-1);\n\t\t\t$link .= \")\";\n\t\t\treturn $link;\n\t\t}", "public function linksProvider()\n {\n return [[[new \\Urbania\\AppleNews\\Format\\LinkedArticle()]]];\n }", "static function import($linkArray)\n {\n $link = new Link;\n\n foreach ($linkArray as $key => $value) {\n $link->$key = $value;\n }\n\n return $link;\n }", "public function run()\n {\n DB::table('links')->insert([\n 'link' => 'Google,https://www.google.com/|Media api,https://www.mediafire.com/|Situs cantique,http://emak.com/',\n 'res' => '720p',\n 'episodes_id' => '1'\n ]);\n DB::table('links')->insert([\n 'link' => 'Google,https://www.google.com/|Media api,https://www.mediafire.com/|Situs cantique,http://emak.com/',\n 'res' => '480p',\n 'episodes_id' => '1'\n ]);\n DB::table('links')->insert([\n 'link' => 'Google,https://www.google.com/|Media api,https://www.mediafire.com/|Situs cantique,http://emak.com/',\n 'res' => '480p',\n 'episodes_id' => '2'\n ]);\n }", "public function getLinksForMenu() : array\n {\n return $this->db->query(\"SELECT page_title, page_link FROM pages\");\n }", "public function run()\n {\n DB::table('links')->insert([\n [\n 'content' => 'https://www.youtube.com/watch?v=JgHfx2v9zOU',\n 'uses' => '1a',\n 'comments' => 'video before testimonials',\n ],\n [\n 'content' => 'https://colorlib.com/',\n 'uses' => 'footer',\n 'comments' => 'footer/copyright',\n ], \n ]);\n }", "public function prepare_item_links($id)\n {\n }", "public function prepare_item_links($id)\n {\n }", "public function prepare_item_links($id)\n {\n }", "public function run()\n {\n Link::truncate();\n Link::create([\n 'domain' => 'https://52zoe.com',\n 'logo' => 'https://52zoe.com/images/avatar.png',\n 'title' => '秋枫阁',\n 'summary' => '秋枫阁,一个PHPer的个人博客。',\n 'state' => 1,\n ]);\n }", "protected function prepare_links($theme)\n {\n }", "public function getLinkData()\n {\n return array(\n 'loungetag' => $this->lounge->getLoungetag()\n );\n }", "public function getLinksList()\n {\n $sql = 'SELECT bwl.*, bwll.`title`, bwll.`url`\n FROM `'._DB_PREFIX_.'bwcatbanner_link` bwl\n LEFT JOIN `'._DB_PREFIX_.'bwcatbanner_link_lang` bwll\n ON (bwl.`id_item` = bwll.`id_item`)\n WHERE bwl.`id_shop` = '.(int)Context::getContext()->shop->id.'\n AND bwll.`id_lang` = '.(int)Context::getContext()->language->id;\n\n return Db::getInstance()->executeS($sql);\n }", "public function fetchAll()\n\t{\n\t\t$resultSet = $this->getDbTable()->fetchAll();\n\t\t$entries = array();\n\t\tforeach ($resultSet as $row) \n\t\t{\n\t\t\t$entry = new GC_Model_Link();\n\t\t\t$entry->setId($row->id)\n\n\t\t\t\t->setNome($row->nome)\n\t\t\t\t->setDescricao($row->descricao)\n\t\t\t\t->setUrl($row->url)\n\t\t\t\t->setValidadeInicio($row->validade_inicio)\n\t\t\t\t->setValidadeTermino($row->validade_termino)\n\t\t\t\t->setDataDesativacao($row->data_desativacao)\n\t\t\t\t->setDataAutoReativar($row->data_auto_reativar)\n\t\t\t\t->setMotivoDesativacao($row->motivo_desativacao)\n ->setMenu($row->menu)\n ->setRowinfo($row->rowinfo)\n\t\t\t\t->setMapper($this);\n\t\t\t$entries[] = $entry;\n\t\t}\n\t\treturn $entries;\n\t}", "public function run()\n {\n $data=[\n [\n 'link_name'=>'牛博网',\n 'link_title'=>'牛逼',\n 'link_url' =>'www.houdunwang.com',\n 'link_order' =>2,\n ],\n [\n 'link_name'=>'自学it',\n 'link_title'=>'牛逼',\n 'link_url' =>'www.houdunwang.com',\n 'link_order' =>2,\n ],\n ];\n DB::table('links')->insert($data);\n }", "public function links_load($settings);", "protected function setupBulkSetLinkDefaults()\n {\n $this->crud->allowAccess('bulkSetLink');\n\n $this->crud->operation('list', function () {\n $this->crud->enableBulkActions();\n $this->crud->addButton('top', 'bulkSetLink', 'view', 'crud::buttons.bulk_set_link');\n });\n }", "protected function _saveLinks()\n {\n $resource = $this->_linkFactory->create();\n $mainTable = $resource->getMainTable();\n $positionAttrId = [];\n $nextLinkId = $this->_resourceHelper->getNextAutoincrement($mainTable);\n\n // pre-load 'position' attributes ID for each link type once\n foreach ($this->_linkNameToId as $linkName => $linkId) {\n $select = $this->_connection->select()->from(\n $resource->getTable('catalog_product_link_attribute'),\n ['id' => 'product_link_attribute_id']\n )->where(\n 'link_type_id = :link_id AND product_link_attribute_code = :position'\n );\n $bind = [':link_id' => $linkId, ':position' => 'position'];\n $positionAttrId[$linkId] = $this->_connection->fetchOne($select, $bind);\n }\n while ($bunch = $this->_dataSourceModel->getNextBunch()) {\n $productIds = [];\n $linkRows = [];\n $positionRows = [];\n\n foreach ($bunch as $rowNum => $rowData) {\n if (!$this->isRowAllowedToImport($rowData, $rowNum)) {\n continue;\n }\n\n $sku = $rowData[self::COL_SKU];\n\n $productId = $this->skuProcessor->getNewSku($sku)[$this->getProductEntityLinkField()];\n $productLinkKeys = [];\n $select = $this->_connection->select()->from(\n $resource->getTable('catalog_product_link'),\n ['id' => 'link_id', 'linked_id' => 'linked_product_id', 'link_type_id' => 'link_type_id']\n )->where(\n 'product_id = :product_id'\n );\n $bind = [':product_id' => $productId];\n foreach ($this->_connection->fetchAll($select, $bind) as $linkData) {\n $linkKey = \"{$productId}-{$linkData['linked_id']}-{$linkData['link_type_id']}\";\n $productLinkKeys[$linkKey] = $linkData['id'];\n }\n foreach ($this->_linkNameToId as $linkName => $linkId) {\n $productIds[] = $productId;\n if (isset($rowData[$linkName . 'sku'])) {\n $linkSkus = explode($this->getMultipleValueSeparator(), $rowData[$linkName . 'sku']);\n $linkPositions = !empty($rowData[$linkName . 'position'])\n ? explode($this->getMultipleValueSeparator(), $rowData[$linkName . 'position'])\n : [];\n foreach ($linkSkus as $linkedKey => $linkedSku) {\n $linkedSku = trim($linkedSku);\n if (($this->skuProcessor->getNewSku($linkedSku) !== null || $this->isSkuExist($linkedSku))\n && strcasecmp($linkedSku, $sku) !== 0\n ) {\n $newSku = $this->skuProcessor->getNewSku($linkedSku);\n if (!empty($newSku)) {\n $linkedId = $newSku['entity_id'];\n } else {\n $linkedId = $this->getExistingSku($linkedSku)['entity_id'];\n }\n\n if ($linkedId == null) {\n // Import file links to a SKU which is skipped for some reason,\n // which leads to a \"NULL\"\n // link causing fatal errors.\n $this->_logger->critical(\n new \\Exception(\n sprintf(\n 'WARNING: Orphaned link skipped: From SKU %s (ID %d) to SKU %s, ' .\n 'Link type id: %d',\n $sku,\n $productId,\n $linkedSku,\n $linkId\n )\n )\n );\n continue;\n }\n\n $linkKey = \"{$productId}-{$linkedId}-{$linkId}\";\n if (empty($productLinkKeys[$linkKey])) {\n $productLinkKeys[$linkKey] = $nextLinkId;\n }\n if (!isset($linkRows[$linkKey])) {\n $linkRows[$linkKey] = [\n 'link_id' => $productLinkKeys[$linkKey],\n 'product_id' => $productId,\n 'linked_product_id' => $linkedId,\n 'link_type_id' => $linkId,\n ];\n }\n if (!empty($linkPositions[$linkedKey])) {\n $positionRows[] = [\n 'link_id' => $productLinkKeys[$linkKey],\n 'product_link_attribute_id' => $positionAttrId[$linkId],\n 'value' => $linkPositions[$linkedKey],\n ];\n }\n $nextLinkId++;\n }\n }\n }\n }\n }\n if (Import::BEHAVIOR_APPEND != $this->getBehavior() && $productIds) {\n $this->_connection->delete(\n $mainTable,\n $this->_connection->quoteInto('product_id IN (?)', array_unique($productIds))\n );\n }\n if ($linkRows) {\n $this->_connection->insertOnDuplicate($mainTable, $linkRows, ['link_id']);\n }\n if ($positionRows) {\n // process linked product positions\n $this->_connection->insertOnDuplicate(\n $resource->getAttributeTypeTable('int'),\n $positionRows,\n ['value']\n );\n }\n }\n return $this;\n }", "function getAdminLinks()\n {\n }", "protected function prepare_links($user)\n {\n }", "public function insert_page_link($data){\n $this->db->insert($data,'links');\n\n }", "private function setCollectionLinks($links)\n {\n if (is_array($links)) {\n for ($i = 0, $l = count($links); $i < $l; $i++) {\n $this->startElement('link');\n $this->writeAttributes(array(\n 'rel' => $links[$i]['rel']\n ));\n if ($links[$i]['type'] === 'application/opensearchdescription+xml') {\n $this->writeAttributes(array(\n 'type' => $links[$i]['type'],\n 'href' => $links[$i]['href']\n ));\n } else {\n $this->writeAttributes(array(\n 'type' => RestoUtil::$contentTypes['atom'],\n 'href' => RestoUtil::updateUrlFormat($links[$i]['href'], 'atom')\n ));\n }\n $this->endElement(); // link\n }\n }\n }", "private static function links()\n {\n $files = ['Link'];\n $folder = static::$root.'Http/Links'.'/';\n\n self::call($files, $folder);\n\n $files = ['LinkKeyNotFoundException'];\n $folder = static::$root.'Http/Links/Exceptions'.'/';\n\n self::call($files, $folder);\n }", "public function addLink($link)\n {\n $db = new db(self::db_links);\n $db->addLink($link);\n }", "private function links() : \\Illuminate\\Database\\Eloquent\\Collection\n {\n return LinkModel::all();\n }", "protected function setUpInstanceCoreLinks() {}", "public function linksProvider()\n {\n return [[new \\Urbania\\AppleNews\\Api\\Objects\\ArticleLinks()]];\n }", "static public function createLink($data = [])\n\t{\n\t\t$link = new Link;\n\n\t\t// set the link fields\n\t\t$link->object_id = $data['object_id'];\n\t\t$link->object_type = $data['object_type'];\n\t\t$link->link_type = $data['link_type'];\n\t\t$link->link = $data['link'];\n\n\t\t// save the record to the DB\n\t\t$link->save();\n\n\t\t// return the new DB records id\n\t\treturn $link;\n\t}", "function create_links()\n\t{\n\t\t$totalItems = $this->total_records;\n\t\t$perPage = $this->size;\n\t\t$currentPage = $this->page;\n\t\t$link = $this->link;\n\t\t$totalPages = floor($totalItems / $perPage);\n\t\t$totalPages += ($totalItems % $perPage != 0) ? 1 : 0;\n\n\t\tif ($totalPages < 1 || $totalPages == 1){\n\t\t\treturn null;\n\t\t}\n\n\t\t$output = null;\t\t\t\t\n\t\t$loopStart = 1; \n\t\t$loopEnd = $totalPages;\n\n\t\tif ($totalPages > 5)\n\t\t{\n\t\t\tif ($currentPage <= 3)\n\t\t\t{\n\t\t\t\t$loopStart = 1;\n\t\t\t\t$loopEnd = 5;\n\t\t\t}\n\t\t\telse if ($currentPage >= $totalPages - 2)\n\t\t\t{\n\t\t\t\t$loopStart = $totalPages - 4;\n\t\t\t\t$loopEnd = $totalPages;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$loopStart = $currentPage - 2;\n\t\t\t\t$loopEnd = $currentPage + 2;\n\t\t\t}\n\t\t}\n\n\t\tif ($loopStart != 1){\n\t\t\t$output .= sprintf('<li class=\"disabledpage\"> <a href=\"' . $link . '\">&#171;</a> </li>', '1');\n\t\t}\n\t\t\n\t\tif ($currentPage > 1){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">'._previous_.'</a> </li>', $currentPage - 1);\n\t\t}\n\t\t\n\t\tfor ($i = $loopStart; $i <= $loopEnd; $i++)\n\t\t{\n\t\t\tif ($i == $currentPage){\n\t\t\t\t$output .= '<li class=\"currentpage\">' . $i . '</li> ';\n\t\t\t} else {\n\t\t\t\t$output .= sprintf('<li><a href=\"' . $link . '\">', $i) . $i . '</a> </li> ';\n\t\t\t}\n\t\t}\n\n\t\tif ($currentPage < $totalPages){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">'._next_.'</a> </li>', $currentPage + 1);\n\t\t}\n\t\t\n\t\tif ($loopEnd != $totalPages){\n\t\t\t$output .= sprintf('<li class=\"nextpage\"> <a href=\"' . $link . '\">&#187;</a> </li>', $totalPages);\n\t\t}\n\n\t\treturn '<div class=\"pagination\"><ul>' . $output . '</ul></div>';\n\t}", "abstract public function links(): JsonApiParser\\Collections\\Links;", "public function getLink();", "public function getLink();", "public function run()\n {\n Link::create([\n 'title' => 'Parco + Hotel',\n 'price' => 39,\n 'url' => 'http://www.gag.it',\n ]);\n Link::create([\n 'title' => 'Gruppi',\n 'price' => 19,\n 'url' => 'http://www.gag.it',\n ]);\n Link::create([\n 'title' => 'Scuole',\n 'price' => 12,\n 'url' => 'http://www.gag.it',\n ]);\n }", "protected static function link()\n {\n foreach (self::fetch('links') as $file) {\n Bus::need($file);\n }\n }", "protected function prepare_links($sidebar)\n {\n }", "public function link()\n {\n return array(\n 'module' => 'app',\n 'controller' => 'index',\n 'action' => 'advert-redirect',\n 'id' => $this->getData('id')\n );\n }", "public function testCreateLinkShouldReturnNativeLink( ) {\n $db = $this->_createDb($this->_cut->createLink());\n }", "public function links() {\n\t\tif(isset($_POST['id'])) $this->query_str = $_POST['id'];\n\t\telse return;\n\n\t\t$raw = null;\n\n\t\t//check if jar exists\n\t\tif(file_exists('../executable/app.jar')) $raw = shell_exec('cd ../executable/ && java -jar app.jar links ' . escapeshellarg($this->query_str));\n\t\telse return;\n\n\t\t$this->results = json_decode($raw);\n\n\t}", "public function settings_link($links){\n $settings_link = '<a href=\"admin.php?page=primary_cat\">Settings</a>';\n array_push( $links, $settings_link );\n return $links;\n }", "function create_links() {\n $total_rows = $this->total_rows;\n if ($total_rows == 0) {\n return '';\n }\n\n // Calculate the total number of pages\n $CI = & get_instance();\n $_quantity = $CI->_quantity;\n $per_page = $this->per_page;\n $num_pages = ceil($total_rows / $per_page);\n\n // Is there only one page? Hm... nothing more to do here then.\n if ($num_pages == 1) {\n return '';\n }\n\n // Determine the current page number.\n $_offset = $CI->_offset;\n $cur_page = $_quantity == -1 ? -1 : floor($CI->_offset / $per_page) + 1;\n\n // And here we go...\n $output = '';\n\n // Render the \"First\" link\n if ($cur_page != 1) {\n $i = 0;\n $output .= $this->first_tag_open . $i . $this->first_tag_close;\n } else {\n $output .= \"<li class='null'></li>\";\n }\n\n // Render the \"previous\" link\n if ($cur_page != 1 && $_quantity != -1) {\n $i = $_offset - $per_page;\n $output .= $this->prev_tag_open . $i . $this->prev_tag_close;\n } else {\n $output .= \"<li class='null'></li>\";\n }\n\n // Write the digit links\n $output .= \"<select tabindex='-1'>\";\n $start = 1;\n $end = $per_page;\n if ($_quantity == -1)\n $output .= '<option selected=\"selected\" > - </option>';\n for ($loop = 1; $loop <= $num_pages; $loop++) {\n if ($end > $total_rows)\n $end = $total_rows;\n $output .= '<option value=\"' . (($loop - 1) * $per_page) . '\" ' . ($loop == $cur_page ? \"selected='selected'\" : \"\") . ' >Trang ' . $loop . '/' . $num_pages . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;' . $start . \"-\" . $end . '/' . $total_rows . '</option>';\n $start+=$per_page;\n $end+=$per_page;\n }\n $output .= \"</select>\";\n\n // Render the \"next\" link\n if ($cur_page != $num_pages && $_quantity != -1) {\n $i = $_offset + $per_page;\n $output .= $this->next_tag_open . $i . $this->next_tag_close;\n } else {\n $output .= \"<li class='null'></li>\";\n }\n\n // Render the \"Last\" link\n if ($cur_page != $num_pages) {\n $i = ($num_pages - 1) * $per_page;\n $output .= $this->last_tag_open . $i . $this->last_tag_close;\n } else {\n $output .= \"<li class='null'></li>\";\n }\n\n // Add the wrapper HTML if exists\n $output = $this->full_tag_open . $output . str_replace(array(\"{class}\", \"{style}\"), array(($_quantity == -1 ? \"ui-state-hover\" : \"icon\"), ($_quantity == -1 ? \"cursor:default\" : \"\")), $this->full_tag_close);\n\n return $output;\n }", "public function create_links()\n {\n $totalPages = floor($this->total_records / $this->size);\n $totalPages += ($this->total_records % $this->size != 0) ? 1 : 0;\n if($totalPages < 1 || $totalPages == 1)\n return null;\n $output = null;\n $loopStart = 1;\n $loopEnd = $totalPages;\n if($totalPages > 5){\n if($this->page <= 3){\n $loopStart = 1;\n $loopEnd = 5;\n } else if($this->page >= $totalPages - 2){\n $loopStart = $totalPages - 4;\n $loopEnd = $totalPages;\n } else{\n $loopStart = $this->page - 2;\n $loopEnd = $this->page + 2;\n }\n }\n if($loopStart != 1){\n $output .= sprintf('<a id=\"back\" href=\"' . $this->link . '\">&#171;</a>', '1');\n }\n if($this->page > 1){\n $output .= sprintf('<a id=\"prev\" href=\"' . $this->link . '\">' . __('Previous') . '</a>', $this->page - 1);\n }\n for($i = $loopStart; $i <= $loopEnd; $i++){\n if($i == $this->page){\n $output .= '<a class=\"on\">' . $i . '</a>';\n } else{\n $output .= sprintf('<a href=\"' . $this->link . '\">', $i) . $i . '</a>';\n }\n }\n if($this->page < $totalPages){\n $output .= sprintf('<a id=\"next\" href=\"' . $this->link . '\">' . __('Next') . '</a>', $this->page + 1);\n }\n if($loopEnd != $totalPages){\n $output .= sprintf('<a id=\"forward\" href=\"' . $this->link . '\">&#187;</a>', $totalPages);\n }\n return '<div id=\"pagination\"><ul><li>' . $output . '</li></ul></div>';\n }", "public function getLinks()\n\t{\n\t\t$data = $this->curl->curlGetReq($this->baseURL);\n\t\t$query = \"//a/@href\";\n\t\t$links = $this->curl->getDOMData($data,$query);\n\t\t\n\n\t\t//var_dump($links[0]);\n\n\t\tforeach ($links as $link)\n\t\t{\n\t\t\t\n\t\t\tif($link->value == \"/calendar\")\n\t\t\t{\n\t\t\t\t$this->calendarLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t\t\n\t\t\t}\n\t\t\tif($link->value == \"/cinema\")\n\t\t\t{\n\t\t\t\t$this->cinemaLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t}\n\t\t\tif($link->value == \"/dinner\")\n\t\t\t{\n\t\t\t\t$this->dinnerLink = $this->baseURL. str_replace(\"/\", \"\", $link->value).\"/\";\n\t\t\t\t$this->dinnerLoginLink = $this->dinnerLink.\"login\";\n\t\t\t}\n\n\t\t\n\t\t\n\t\t}\n\t}", "function journalize_auto_link_urls_activate() {\n\t$options = get_option('journalize');\n\t$options['auto_link_urls'] = true;\n\tupdate_option('journalize', $options);\n}", "protected function prepare_links($post)\n {\n }", "protected function prepare_links($post)\n {\n }", "public function links()\r\n\t{\r\n\t\tif ( ! $this->user)\r\n\t\t{\t\t\r\n\t\t\t$this->user = Auth::instance()->get_user();\r\n\t\t}\r\n\t\t\r\n\t\t$links = array();\r\n\t\t\r\n\t\t// Admin links\r\n\t\tif ($this->user->can('use_admin'))\r\n\t\t{\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'text'\t\t=> 'Administrator',\r\n\t\t\t\t'icon'\t\t=> array('src' => '/media/img/dropdown_arrow.png'),\r\n\t\t\t\t'dropdown'\t=> array(\r\n\t\t\t\t\t'dropdown_links' => array(\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'location' => Route::url('admin'),\r\n\t\t\t\t\t\t\t'text' => 'Dashboard',\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'location' => Route::url('admin', array('controller' => 'role')),\r\n\t\t\t\t\t\t\t'text' => 'Roles',\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'location' => Route::url('admin', array('controller' => 'user')),\r\n\t\t\t\t\t\t\t'text' => 'Users',\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t'location' => Route::url('admin', array('controller' => 'dashboard', 'action' => 'settings')),\r\n\t\t\t\t\t\t\t'text' => 'Settings',\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t),\r\n\t\t\t\t),\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\t// Link to resend verification email\r\n\t\tif ( ! $this->user->is_a('verified_user') AND $this->user->can('get_registration_email'))\r\n\t\t{\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('email registration', array('action' => 'send')),\r\n\t\t\t\t'text' => 'Resend verification email'\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\t// New account registration link\r\n\t\tif ($this->user->can('register'))\r\n\t\t{\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('user', array('controller' => 'user', 'action' => 'register')),\r\n\t\t\t\t'text' => 'Create an account',\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\t// Login link\r\n\t\tif ($this->user->can('login'))\r\n\t\t{\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('user', array('controller' => 'user', 'action' => 'login')),\r\n\t\t\t\t'text' => 'Log in'\r\n\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t\t/* User account links:\r\n\t\tmy account\r\n\t\tmy profile\r\n\t\tmy characters\r\n\t\tmy events\r\n\t\tlogout \t*/\r\n\t\t// And other links..\r\n\t\tif (Auth::instance()->logged_in())\r\n\t\t{\r\n\t\t\tif ($this->user->can('edit_own_profile'))\r\n\t\t\t{\r\n\t\t\t\t$links[] = array(\r\n\t\t\t\t\t'text'\t\t=> 'My Account',\r\n\t\t\t\t\t'icon'\t\t=> array('src' => '/media/img/dropdown_arrow.png'),\r\n\t\t\t\t\t'dropdown'\t=> array(\r\n\t\t\t\t\t\t'dropdown_links' => array(\r\n\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t'location' => Route::url('user', array('controller' => 'user', 'action' => 'manage')),\r\n\t\t\t\t\t\t\t\t'text' => 'My Profile'\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t'location' => Route::url('character'),\r\n\t\t\t\t\t\t\t\t'text' => 'My Characters',\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t'location' => Route::url('event'),\r\n\t\t\t\t\t\t\t\t'text' => 'My Events',\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tarray(\r\n\t\t\t\t\t\t\t\t'location' => Route::url('user', array('controller' => 'user', 'action' => 'logout')),\r\n\t\t\t\t\t\t\t\t'text' => 'Log out'\r\n\t\t\t\t\t\t\t),\r\n\t\t\t\t\t\t),\r\n\t\t\t\t\t),\r\n\t\t\t\t);\r\n\t\t\t}\r\n\r\n\t\t\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('event'),\r\n\t\t\t\t'text' => 'Events',\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('build'),\r\n\t\t\t\t'text' => 'Builds',\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('slot'),\r\n\t\t\t\t'text' => 'Slots',\r\n\t\t\t);\r\n\t\t\t\r\n\t\t\t$links[] = array(\r\n\t\t\t\t'location' => Route::url('dungeon'),\r\n\t\t\t\t'text' => 'Dungeons',\r\n\t\t\t);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $links;\r\n\t}", "private function getLinks() {\n\t\t// Get new values\n\t$prevMonth = isset($_GET['month']) ? ($_GET['month'] -1) : $this->currentMonth -1;\n\t$nextMonth = isset($_GET['month']) ? ($_GET['month'] +1) : $this->currentMonth +1;\n\n\t\t//Write out links\n\t$this->prevLink = ' <a href=\"?month=' . $prevMonth . '&amp;year=' . $this->newYear . '\"> &laquo; </a> ';\n\t$this->nextLink = ' <a href=\"?month=' . $nextMonth . '&amp;year=' . $this->newYear . '\"> &raquo; </a> ';\n\n\n\t}", "protected function prepare_links($location)\n {\n }", "protected function prepare_links($block_type)\n {\n }", "private function newLink(int $bid = 0) {\n $m = $this->getViewModel();\n $link = new Links();\n $m->link = $link;\n $link->sitename = 'Here';\n $link->url = '/';\n $link->urltype = 'Front';\n $link->enabled = true;\n\n if ($bid > 0) {\n\n $link->refid = $bid;\n $link->urltype = 'Blog';\n // get the actual blog, extract title, url and intro text\n $blog = Blog::findFirstById($bid);\n if (!empty($blog)) {\n $revision = $this->getLinkedRevision($blog);\n $link->url = \"/article/\" . $blog->title_clean;\n $link->title = $blog->title;\n $link->summary = Text::IntroText($revision->content, 300);\n }\n } else {\n $link->urltype = 'Front';\n }\n\n $m->collections = [];\n return $this->viewNewLink($m);\n }", "public function getLinks()\n {\n if(null === $this->_link){\n\t\t\t$node = Mage::app()->getConfig()\n\t\t\t\t->getNode('global/faonni_accountnavigation/link');\n\t\t\t$this->_link = $node->asArray();\t\n\t\t}\n\t\treturn $this->_link;\n }", "public function addSiteLinks()\n {\n foreach ($this->getSiteLinks() as $item) {\n $this->addArray($item);\n }\n }", "public function testSetDocumentLinks()\n {\n $this->document->setDocumentLinks([\n Link::SELF => new Link($selfUrl = 'selfUrl'),\n Link::FIRST => new Link($firstUrl = 'firstUrl'),\n Link::LAST => new Link($lastUrl = 'lastUrl'),\n Link::PREV => new Link($prevUrl = 'prevUrl'),\n Link::NEXT => new Link($nextUrl = 'nextUrl'),\n ]);\n\n $expected = <<<EOL\n {\n \"links\" : {\n \"self\" : \"selfUrl\",\n \"first\" : \"firstUrl\",\n \"last\" : \"lastUrl\",\n \"prev\" : \"prevUrl\",\n \"next\" : \"nextUrl\"\n },\n \"data\" : null\n }\nEOL;\n $this->check($expected);\n }", "public function links()\n {\n if (isset($this->item['links'])) {\n return new Links($this->item['links']);\n }\n }", "public function makeLinks() {\r\n $this->url = new Url(sprintf(\"/f-p%d.htm#%d\", $this->id, $this->id));\r\n $this->url->single = sprintf(\"/forums?mode=post.single&id=%d\", $this->id);\r\n $this->url->report = sprintf(\"/f-report-%d.htm\", $this->id);\r\n $this->url->reply = sprintf(\"/f-po-quote-%d.htm\", $this->id);\r\n $this->url->delete = sprintf(\"/f-po-delete-%d.htm\", $this->id);\r\n $this->url->edit = sprintf(\"/f-po-editpost-%d.htm\", $this->id);\r\n $this->url->replypm = sprintf(\"/messages/new/from/%d/\", $this->id);\r\n $this->url->iplookup = sprintf(\"/moderators?mode=ip.lookup&ip=%s\", $this->ip);\r\n $this->url->herring = sprintf(\"/f-herring-p-%d.htm\", $this->id);\r\n \r\n if ($this->thread->forum->id == 71) {\r\n $this->url->developers = sprintf(\"/%s/d/%s/%s\", \"developers\", $this->thread->url_slug, $this->url_slug);\r\n }\r\n \r\n return $this;\r\n }", "public function run()\n {\n $data = [\n [\n 'link_name'=>'我的博客',\n 'link_title'=>'laravel试炼',\n 'link_url'=>'www.1024.com',\n 'link_order'=>1,\n ],\n [\n 'link_name'=>'1024',\n 'link_title'=>'天天更新',\n 'link_url'=>'www.1024.com',\n 'link_order'=>2,\n ],\n ];\n DB::table('links')->insert($data);\n }" ]
[ "0.68690825", "0.6698066", "0.66353154", "0.65721726", "0.6480422", "0.62672406", "0.62511015", "0.6233343", "0.6233343", "0.6230344", "0.6219999", "0.6111632", "0.61041015", "0.6064084", "0.6045755", "0.59775925", "0.5941076", "0.59352934", "0.5934604", "0.5911978", "0.58853036", "0.5837333", "0.5830171", "0.5826735", "0.57943505", "0.5782377", "0.5778775", "0.57744175", "0.5772444", "0.5761567", "0.57491213", "0.5743036", "0.57396466", "0.57317144", "0.5720104", "0.57066333", "0.57066333", "0.57060367", "0.57030183", "0.56999534", "0.5602867", "0.5584579", "0.55743426", "0.5573032", "0.556078", "0.5558981", "0.5552007", "0.5547698", "0.5544199", "0.5538619", "0.55294394", "0.55294394", "0.55294394", "0.552619", "0.5515516", "0.551121", "0.5510721", "0.55065465", "0.5504679", "0.55022746", "0.54974324", "0.5496366", "0.5490358", "0.5486906", "0.54803884", "0.5475062", "0.54743695", "0.5462266", "0.54542524", "0.5426401", "0.54242814", "0.54132926", "0.5410839", "0.5408237", "0.54032266", "0.54032266", "0.5402821", "0.5380621", "0.53788805", "0.5375463", "0.53745097", "0.53726596", "0.5371778", "0.5365584", "0.53628534", "0.53509635", "0.5350794", "0.53341436", "0.53341436", "0.5317113", "0.5311654", "0.53104275", "0.530218", "0.5301128", "0.5299577", "0.52988344", "0.5298828", "0.52981144", "0.5297615", "0.5297598" ]
0.5773259
28
Connect to the database
function connect( $hostname = null, $username = null, $password = null, $database = null ){ if( !$hostname && !$username && !$database ){ require "conf.db.php"; $hostname=$db['default']['hostname']; $username=$db['default']['username']; $password=$db['default']['password']; $database=$db['default']['database']; } if( $this->link = mysql::$link_array[$this->link_name] = mysql_connect( $hostname, $username, $password ) or die( mysql_error() ) ) return mysql_select_db( $database ) or die ( mysql_error() ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function connectToDB() {}", "private function connectDatabase() {\r\r\n\t\t$this->dbHandle = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Core\\\\Database\\\\DatabaseConnection');\r\r\n\t\t$this->dbHandle->setDatabaseHost($this->dbHost);\r\r\n\t\t$this->dbHandle->setDatabaseUsername($this->dbUsername);\r\r\n\t\t$this->dbHandle->setDatabasePassword($this->dbPassword);\r\r\n\t\t$this->dbHandle->setDatabaseName($this->db);\r\r\n\t\t$this->dbHandle->sql_pconnect();\r\r\n\t\t$this->dbHandle->sql_select_db();\r\r\n\t}", "public function connectDB() {}", "public function connect_db() {\n }", "private function connectDB()\n\t{\n\t\t$this->db = ECash::getMasterDb();\n\t\t\n\t//\t$this->dbconn = $this->db->getConnection();\n\t}", "private function connect()\n {\n if (! is_null(self::$db)) {\n return;\n }\n\n // $this->host \t= $Database->host;\n // $this->user \t= $Database->user;\n // $this->pass \t= $Database->pass;\n // $this->database\t= $Database->database;\n\n $conn = 'mysql:dbname=' . $this->dbInfo->database . ';host=' . $this->dbInfo->host.';charset=utf8';\n try {\n self::$db = new PDO($conn, $this->dbInfo->user, $this->dbInfo->pass);\n } catch (PDOException $e) {\n die('Could not connect to database (' . $conn . ')');\n }\n }", "private function connect()\n {\n if ($this->configuration->get('db.connector') == 'PDO') {\n $dsn = \"mysql:host=\" . $this->configuration->get('db.host') . \";dbname=\" . $this->configuration->get('db.name');\n $options = array();\n $this->db = new PDO(\n $dsn, $this->configuration->get('db.username'), $this->configuration->get('db.password'), $options\n );\n } elseif ($this->configuration->get('db.connector') == 'mysqli') {\n $this->db = mysqli_connect(\n $this->configuration->get('db.host'), $this->configuration->get('db.username'), $this->configuration->get('db.password'), $this->configuration->get('db.name')\n );\n }\n }", "private function connect() {\n $host = $this->dbConfig[$this->selected]['host'];\n $login = $this->dbConfig[$this->selected]['login'];\n $password = $this->dbConfig[$this->selected]['password'];\n $database = $this->dbConfig[$this->selected]['database'];\n try {\n $this->db = new PDO('mysql:host=' . $host . ';dbname=' . $database . ';charset=utf8', $login, $password);\n $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n//\t\t\t$this->db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);\n } catch (PDOException $e) {\n die('Could not connect to DB:' . $e);\n }\n }", "public function connectToDatabase(){\n\t\t$dbinfo=$this->getDBinfo();\n\n\t\t$host=$dbinfo[\"host\"];\n\t\t$dbname=$dbinfo[\"dbname\"];\n\t\t$user=$dbinfo[\"user\"];\n\t\t\n $pass=$this->getPassword();//don't share!!\n\n try{\n $DBH = new PDO(\"mysql:host=$host;dbname=$dbname\", $user, $pass);\n $DBH->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n }catch(PDOException $e){\n $this->processException($e);\n }\n \n $this->setDBH($DBH);\n }", "public function connect() {\n if ($this->link = mysql_connect($this->host, $this->user, $this->pass)) {\n if (!empty($this->name)) {\n if (!mysql_select_db($this->name)) {\n $this->exception(\"Could not connect to the database!\");\n }\n }\n } else {\n $this->exception(\"Could not create database connection!\");\n }\n }", "private function connect(){\n\t\trequire (__DIR__ . '/../../config.php');\n\t\t$mysqlCFG =$database['mysql'];\n\t\t\n\t\tif(!self::$db){\n\t\t\t$connectionString = \"mysql:host=$mysqlCFG[host];dbname=$mysqlCFG[dbname]\";\n\t\t\ttry{\n\t\t\t\tself::$db = new \\PDO($connectionString, $mysqlCFG['user'], $mysqlCFG['password']);\n\t\t\t\tself::$db->setAttribute( \\PDO::ATTR_ERRMODE, \\PDO::ERRMODE_EXCEPTION);\n\t\t\t}catch(\\PDOException $e){\n\t\t\t\tdie(\"Ocurrio un error al conectar con la base de datos: $e->getMessage()\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private function connect() {\n $this->load->database();\n }", "private function connectToDB()\n {\n $this->handler = new DBConnect();\n $this->handler = $this->handler->startConnection();\n }", "private function connectToDatabase()\n {\n return DbConnection::connectToDatabase($this->link);\n }", "private function connect()\n {\n $connection_string = 'mysql:host=' . DB_HOST . ';dbname=' . DB_NAME . ';';\n $this->connection = new PDO($connection_string, DB_USER, DB_PASS);\n }", "function connect_to_db(){\n\t\t//Fun Fact: @ suppresses errors of the expression it prepends\n\t\t\n\t\t//Connect to the database and select the database\t\t\t\n\t\ttry{\n\t\t\t$this->connection = new PDO(\"mysql:host=$DATABASE_HOST;dbname=DATABASE_NAME\", DATABASE_USER, DATABASE_PASS);\n\t\t\t$this->connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t}catch(PDOException $err){\n\t\t\tdie('Could not connect to database' . $err->getMessage());\n\t\t}\t\t\n\t}", "public function connect()\n {\n $driver = 'DB'; // default driver\n $dsn = $this->getParameter('dsn');\n\n $do = $this->getParameter('dataobject');\n if ($do && isset($do['db_driver'])) {\n $driver = $do['db_driver'];\n }\n\n if ('DB' == $driver) {\n\n if (!class_exists('DB')) {\n include('DB.php');\n }\n\n $options = PEAR::getStaticProperty('DB', 'options');\n if ($options) {\n $this->connection = DB::connect($dsn, $options);\n } else {\n $this->connection = DB::connect($dsn);\n }\n \n } else {\n\n if (!class_exists('MDB2')) {\n include('MDB2.php');\n }\n \n $options = PEAR::getStaticProperty('MDB2', 'options');\n $this->connection = MDB2::connect($dsn, $options);\n }\n\n if (PEAR::isError($this->connection)) {\n\n throw new AgaviDatabaseException($this->connection->getMessage());\n $this->connection = Null;\n }\n }", "protected function connectDB () {\n $host=$this->Parameters['db_host'];\n $username=$this->Parameters['db_username'];\n\t\t$password=$this->Parameters['db_userpassword'];\n\t\t$dbname=$this->Parameters['db_name'];\n\t\t\n $this->Conn = new mysqli ($host,$username,$password,$dbname);\n if($this->Conn->connect_errno > 0){\n throw new Exception('Unable to connect to database [' . $this->Conn->connect_error . ']');\n }\n }", "private function connect()\n\t{\n\t\t$connectionData = $this->app->file->requireFile('config.php');\n\t\t\n\t\textract($connectionData);\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstatic::$connection = new PDO('mysql:host=' . $server . ';dbname=' . $dbname, $dbuser, $dbpass);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);\n\t\t\t\n\t\t\tstatic::$connection->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n\t\t\t\n\t\t\tstatic::$connection->exec('SET NAMES utf8');\n\t\t}\n\t\tcatch (PDOException $e)\n\t\t{\n\t\t\tdie($e->getMessage());\n\t\t}\t\t\t\t\n\t}", "private function dbConnect(){\n $database=new \\Database();\n return $database->getConnection();\n }", "public function connect()\n {\n $data = $this->app->file->requireFile('config.php');\n extract($data);\n try {\n static::$DB = new PDO('mysql:host=' . $server . ';dbname=' . $dbname , $dbuser , $dbpass);\n\n static::$DB->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE , PDO::FETCH_OBJ);\n static::$DB->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION);\n static::$DB->exec('SET NAMES utf8');\n\n }\n catch (PDOException $e){\n die($e->getMessage());\n }\n }", "private function connectToDb()\n {\n //home connect\n $link =pg_connect(\"host=localhost dbname=user1 user=postgres\");\n if(!$link)\n {\n die('Connect Error');\n }\n $this->dbConnect = $link;\n }", "function db_connect(){\n\t\tif(SQ_DEBUG){\n\t\t\t$this->dbh = mysql_connect($this->dbhost, $this->dbuser, $this->dbpassword, true);\n\t\t}else{\n\t\t\t$this->dbh = @mysql_connect($this->dbhost, $this->dbuser, $this->dbpassword, true);\n\t\t}\n\t\t\n\t\tif (!$this->dbh){\n\t\t\t$error_message = sprintf(SQ_DB_CONN_ERROR_MESSAGE, $this->dbhost, $this->dbuser);\n\t\t\tthrow new SQ_Exception($error_message, SQ_DB_CONN_ERROR_CODE);\n\t\t}\n\t\t$this->ready = true;\n\t\t\n\t\ttry{\n\t\t\t$this->select($this->dbname, $this->dbh);\n\t\t}catch(SQ_Exception $e){\n\t\t\tthrow $e;\n\t\t}\n\t}", "protected function db_connect() {\n \n // Data source name\n $this->dsn = 'mysql:host=' . $this->db_host . ';dbname=' . $this->db_name . ';charset=' . $this->db_charset;\n\n // Makes a connection to the database\n $this->db_conn = new PDO( $this->dsn, $this->db_user, $this->db_password );\n\n // When fetching an SQL row it turn into an object\n $this->db_conn->setAttribute( PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ );\n // Gives the Error reporting atribute and throws exeptions\n $this->db_conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n \n // Returns the connection\n return $this->db_conn;\n\n }", "public static function databaseConnect()\n {\n self::$mysqli->connect(self::$dbHost, self::$dbUser, self::$dbPass, self::$dbName);\n }", "public function connect() {\n if (!$this->connected()) {\n tenant_connect(\n $this->db_name\n );\n }\n }", "public function connect(){\n $this->database->connect($this->server, $this->login, $this->password, $this->db_name);\n if($this->database->connect_errno){\n return;\n }\n //nastavi kodovanie databazy na UTF-8\n $this->database->query(\"SET CHARACTER SET utf8\");\n $this->connected=true;\n }", "private function connect()\n {\n global $config, $conn;\n if (!isset($conn))\n {\n try\n {\n $conn = new PDO('mysql:host=' . $config['mysql_hostname'] . ';dbname=' . $config['mysql_database'] . ';', $config['mysql_user'], $config['mysql_password']);\n $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }\n catch (PDOException $e)\n {\n error_log($e->getMessage());\n print 'We were unable to connect to the database. Please check your error logs.';\n die();\n }\n }\n }", "public function connect() {\r\n\t\t$this->connection = mysql_connect($this->host, $this->username, $this->password);\r\n\t\t$this->selectDB($this->squema);\r\n\t}", "public function connect()\n\t{\n\t\ttry {\n\t\t\t$this->_connection = new PDO(\n\t\t\t\t\"mysql:host=\" . $this->_host . \n\t\t\t\t\";dbname=\" . $this->_database,\n\t\t\t\t$this->_username,\n\t\t\t\t$this->_password,\n\t\t\t\tarray(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8')\n\t\t\t); \n\t\t}\n\t\tcatch(PDOException $error) {\n\t\t\tdie('<br />MySQL error: Failed to connect.<br />' . $error->getMessage());\n\t\t}\n\t}", "public function connect() {\n $this->database = new mysqli(\n $this->dbinfo['host'],\n $this->dbinfo['user'],\n $this->dbinfo['pass'],\n $this->dbinfo['name']\n );\n if ($this->database->connect_errno > 0)\n return $this->fail(\"Could not connect to database: [{$this->database->connect_error}]\");\n }", "private function connecDb()\n {\n try{\n $dsn = \"{$this->db_type}:host={$this->db_host};port={$this->db_port};\";\n $dsn .= \"dbname={$this->db_name};charset={$this->db_charset}\";\n //echo \"$dsn, $this->db_user, $this->db_pass\";\n $this->pdo = new PDO($dsn,$this->db_user,$this->db_pass);\n }catch(PDOException $e){\n echo\"<h2>创建POD对象失败</h2>\";\n $this->ShowErrorMessage($e);\n die();\n }\n }", "public function openConnection() {\n if($this->database != null) return;\n\n $config = $this->getDatabaseConfig();\n\n try {\n $this->database = new \\PDO(\n 'mysql:dbname=' . $config['database'] . ';host=' . $config['host'] . ':' . $config['port'],\n $config['username'],\n $config['password'],\n [\n \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_EXCEPTION,\n \\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_ASSOC\n ]\n );\n } catch(\\PDOException $exception) {\n die('Connection to mysql-server failed: ' . $exception->getMessage());\n }\n }", "public function connect()\n {\n try {\n\n $this->config = (new Config\\Config())->getConfig(); // load config file in config class\n\n // create pdo connection to DB by using config\n $this->_dbInstance = new \\PDO('mysql:host=' . $this->config['ServerName'] . ';dbname=' . $this->config['DBName'], $this->config['UserName'], $this->config['Password'],array(PDO::MYSQL_ATTR_INIT_COMMAND => \"SET NAMES utf8\"));\n\n // set attributes for this connection\n $this->_dbInstance->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }catch(\\PDOException $e)\n {\n echo $e->getMessage();\n }\n }", "private static function connect(){\n try{\n $conn_data = json_decode(file_get_contents(__DIR__.\"/../config/connection.json\"), true);\n self::$connection = new PDO($conn_data['CONN_STRING'], $conn_data['DB_USER'], $conn_data['DB_PASS']);\n\t\t} catch (PDOException $e){\n\t\t\techo \"Database error: \".$e->getMessage();\n\t\t\tdie();\n\t\t}\n }", "private function connect() {\r\n\t\tunset($this->dbLink);\r\n\t\t/* create connection to database host */\r\n\t\t// $dbLink = mysql_connect(\"mysql.localhost\", \"de88623\", \"proberaum1\");\r\n\t\t$dbLink = mysql_connect(\"localhost\", \"robert\", \"YMbHFY+On2\");\r\n\t\t/* select database */\r\n\t\tmysql_select_db(\"robert_www_parkdrei_de\");\r\n\t\t/* set link to database as a object attribute */\r\n\t\t$this->dbLink = $dbLink;\r\n\t}", "public function connect () {\n\t\tif(!$this->con) {\n\t\t\t$this->db = mysqli_connect($this->db_host, $this->db_user, $this->db_pass, $this->db_name) or die(mysql_error());\n\t\t\t$this->con = true;\n\t\t}\n\t}", "public function connect($db_properties);", "function connectToDatabase() {\n\n $host = self::servername;\n $databaseName = self::dbname;\n $password = self::password;\n $username = self::username;\n //To create the connection\n $conn = new mysqli($host, $username, $password, $databaseName);\n self::$conn = $conn;\n //Connection Checking, if there is a connection error, print the error\n if ($conn->connect_error) {\n exit(\"Failure\" . $conn->connect_error);\n }\n }", "public function connect()\n {\n $dsn = sprintf(\"mysql:host=%s;port=%s;dbname=%s\", $this->configuration['host'], $this->configuration['port'], $this->configuration['database']);\n $this->pdo = new PDO($dsn, $this->configuration['username'], $this->configuration['password']);\n }", "public function connect()\n {\n if ($this->pdo !== null) {\n return;\n }\n\n $db = $this->configs['database'] ?? '';\n $hostname = $this->configs['hostname'] ?? '';\n $port = $this->configs['port'] ?? '';\n $charset = $this->configs['charset'] ?? '';\n $username = $this->configs['username'] ?? '';\n $password = $this->configs['password'] ?? '';\n\n $this->pdo = new PDO(\n \"mysql:dbname={$db};host={$hostname};port={$port};charset={$charset}\",\n $username,\n $password\n );\n }", "private function openDatabaseConnection()\n {\n\n // set the (optional) options of the PDO connection. in this case, we set the fetch mode to\n // \"objects\", which means all results will be objects, like this: $result->user_name !\n // For example, fetch mode FETCH_ASSOC would return results like this: $result[\"user_name] !\n // @see http://www.php.net/manual/en/pdostatement.fetch.php\n $options = array(\\PDO::ATTR_DEFAULT_FETCH_MODE => \\PDO::FETCH_OBJ, \\PDO::ATTR_ERRMODE => \\PDO::ERRMODE_WARNING);\n\n // generate a database connection, using the PDO connector\n // @see http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/\n $this->db = new \\PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME . ';charset=' . DB_CHARSET, DB_USER, DB_PASS, $options);\n }", "private function dbconnect()\n {\n $this->db = new mysqli(Config::$dbhost, Config::$dbuser, Config::$dbpass, Config::$database);\n if (mysqli_connect_errno()) {\n Log::info(sprintf(\"Connect failed: %s\\n\", mysqli_connect_error()));\n exit();\n }\n }", "private function connect()\n {\n $this->db = new mysqli($this->host_name, $this->user_name, $this->password, $this->database_name);\n if ($this->db->connect_error) {\n die(\"Connect failed: \". $this->db->connect_error);\n exit();\n }\n }", "public function connect() {\r\n\t\t// connection parameters\r\n\t\t$host = App_Constant::$DATABASE_HOST;\r\n\t\t$user = App_Constant::$DATABASE_USER;\r\n\t\t$password = App_Constant::$DATABASE_PASSWORD;\r\n\t\t$database = App_Constant::$DATABASE_DB;\r\n\t\t$port = App_Constant::$DATABASE_PORT;\r\n\t\t// $socket = App_Constant::$DATABASE_SOCKET;\r\n\t\t\r\n\t\t// create new connection with specified database details.\r\n\t\ttry {\r\n\t\t\t$this->connection = mysqli_connect ( $host, $user, $password, $database, $port );\r\n\t\t} catch ( Exception $e ) {\r\n\t\t\tthrow new Exception ( App_Constant::$ERROR_FAIL_DB_CONNECTION . mysqli_connect_error () );\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\t * if (mysqli_connect_errno()) { throw new Exception(App_Constant::$ERROR_FAIL_DB_CONNECTION . mysqli_connect_error()); }\r\n\t\t */\r\n\t}", "public static function connect() {\n $dsn = \"mysql:host=\" . Config::$DB_HOST\n . \";port=\" . Config::$DB_PORT\n . \";dbname=\" . Config::$DB_NAME\n . \";charset=\" . Config::$DB_CHAR;\n try {\n self::$PDO = new PDO($dsn, Config::$DB_USER, Config::$DB_PASS);\n self::$PDO->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); // Display SQL exceptions to the web page\n self::$PDO->setAttribute(PDO::MYSQL_ATTR_LOCAL_INFILE, true); // Allows use of MySQL 'LOAD DATA LOCAL INFILE' for mass data import\n } catch (PDOException $ex) {\n exit(\"Database failed to connect: \" . $ex->getMessage());\n }\n }", "public function connectdb()\n {\n $this->db = mysql_connect($this->host,$this->port, $this->user, $this->pass)\n if (!$db)\n {\n die('Could not connect: ' . mysql_error());\n }\n\n mysql_select_db($this->database, $this->db);\n }", "private function dbConnection() {\r\n //if (!is_resource($this->connessione))\r\n // $this->connessione = mysql_connect($this->db_server,$this->db_username,$this->db_pass) or die(\"Error connectin to the DBMS: \" . mysql_error());\r\n if (!is_resource($this->connessione)) {\r\n try {\r\n $this->connessione = new PDO($this->db_type . \":dbname=\" . $this->db_name . \";host=\" . $this->db_server, $this->db_username, $this->db_pass);\r\n //echo \"PDO connection object created\";\r\n $this->setupSQLStatement();\r\n } catch (PDOException $e) {\r\n echo $e->getMessage();\r\n die();\r\n }\r\n }\r\n }", "private function connect()\n {\n try {\n self::$connection = new PDO($this->buildDSN(), $this->user, $this->pass, $this->options);\n } catch (PDOException $e) {\n die('Connection failed: ' . $e->getMessage());\n }\n\n }", "protected function connect()\n\t{\n\t\t$strDSN = 'mysql:';\n\t\t$strDSN .= 'dbname=' . $GLOBALS['TL_CONFIG']['dbDatabase'] . ';';\n\t\t$strDSN .= 'host=' . $GLOBALS['TL_CONFIG']['dbHost'] . ';';\n\t\t$strDSN .= 'port=' . $GLOBALS['TL_CONFIG']['dbPort'] . ';';\n\t\t$strDSN .= 'charset=' . $GLOBALS['TL_CONFIG']['dbCharset'] . ';'; // supported only in PHP 5.3.6+\n\n\t\t$arrOptions = array(\n\t\t\tPDO::ATTR_PERSISTENT => $GLOBALS['TL_CONFIG']['dbPconnect'],\n\t\t\tPDO::MYSQL_ATTR_INIT_COMMAND => 'SET sql_mode=\\'\\'; SET NAMES ' . $GLOBALS['TL_CONFIG']['dbCharset'],\n\t\t\tPDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION\n\t\t);\n\n\t\t$this->resConnection = new PDO($strDSN, $GLOBALS['TL_CONFIG']['dbUser'], $GLOBALS['TL_CONFIG']['dbPass'], $arrOptions);\n\t}", "function connectDB();", "public function getConnect()\n {\n $this->conn = Registry::get('db');\n }", "private function connect ()\n {\n $dbConfig = require_once 'config/configuration.php';\n list('host' => $host, 'port' => $port, 'database' => $database, 'username' => $username, 'password' => $password) = $dbConfig;\n\n $this->connection = new \\mysqli($host, $username, $password, $database, $port);\n\n if ($this->connection->connect_errno) {\n throw new \\Exception('Failed to connect to database');\n }\n }", "public function connect()\n {\n $config = $this->config;\n $config = array_merge($this->_baseConfig, $config);\n\n $conn = \"DATABASE='{$config['database']}';HOSTNAME='{$config['host']}';PORT={$config['port']};\";\n $conn .= \"PROTOCOL=TCPIP;UID={$config['username']};PWD={$config['password']};\";\n\n if (!$config['persistent']) {\n $this->connection = db2_connect($conn, PGSQL_CONNECT_FORCE_NEW);\n } else {\n $this->connection = db2_pconnect($conn);\n }\n $this->connected = false;\n\n if ($this->connection) {\n $this->connected = true;\n $this->query('SET search_path TO '.$config['schema']);\n }\n if (!empty($config['charset'])) {\n $this->setEncoding($config['charset']);\n }\n\n return $this->connection;\n }", "protected function connectDatabase() {\n\t\t\n\t\t/* check if tables need to be created */\n\t\t$createTables = !is_file(self::DATABASE_FILE);\n\t\t\n\t\t/* connect */\n\t\t$this->db = new SQLite3(self::DATABASE_FILE);\n\t\tif (!$this->db) {\n\t\t\tthrow new QuicksandException(\"Initializing SQLite database failed. Tell the admin.\");\n\t\t}\n\t\t\n\t\t/* create tables */\n\t\tif ($createTables) {\n\t\t\t$this->db->exec(\"CREATE TABLE image(\n\t\t\t\tid CHAR(\".self::ID_LENGTH_MAX.\") PRIMARY KEY,\n\t\t\t\tsize INTEGER,\n\t\t\t\ttype INTEGER,\n\t\t\t\tdelete_time INTEGER,\n\t\t\t\tdelete_code CHAR(32),\n\t\t\t\tgallery_id CHAR(\".self::ID_LENGTH_MAX.\")\n\t\t\t)\");\n\t\t}\n\t\t\n\t\t/* wait up to 20 seconds if another instance is using the db */\n\t\t$this->db->busyTimeout(20000);\n\t}", "public function connectToDB()\n {\n $this->dbConnection = @new mysqli(\"localhost\",\"root\", \"\",\"CMS_Project\");\n if (!$this->dbConnection)\n {\n die('Could not connect to the CMS Database: ' .\n $this->dbConnection->connect_errno);\n }\n }", "private function Connect()\n {\n $config = ConfigDb::dbConfig();\n $dsn = 'mysql:dbname='.$config['database'].';host='.$config['host'];\n try\n {\n $this->pdo = new PDO($dsn, $config['username'], $config['password'], array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'));\n $this->pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n $this->pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true);\n $this->bConnected = true;\n }\n catch (PDOException $e)\n {\n echo $this->ExceptionLog($e->getMessage());\n die();\n }\n }", "public function connect () : void {\n\t\t\t$this->dbConnection = mysqli_connect($this->servername, $this->username, $this->password, $this->dbName);\n\n\t\t\tif($this->dbConnection == false)\n\t\t\t{\n\t\t\t die(mysqli_connect_error());\n\t\t\t}\n\n\t\t}", "function connect()\n\t{\n\t\t$this->link = mysql_connect( $this->hostname, $this->username, $this->password );\n\t\t\n\t\tif( $this->link === FALSE )\n\t\t\tthrow new Exception('MySQLDatabase: Failed to connect to database.');\t\n\t\t\t\n\t\t$db_selected = mysql_select_db( $this->database, $this->link );\n\t\t\n\t\tif( $db_selected === FALSE )\n\t\t\tthrow new Exception('MySQLDatabase: Failed to select database: '.$this->database );\t\n\t}", "public function connect(){\n\t\tdefine(\"DB_SERVER\", \"localhost\");\n\t\tdefine(\"DB_USER\", \"root\");\n\t\tdefine(\"DB_PASS\", \"admin\");\n\t\tdefine(\"DB\", \"gpomara\");\n\t\t$this->con = mysqli_connect(DB_SERVER,DB_USER,DB_PASS,DB);\n\t\tif(mysqli_errno($this->con)){\n\t\t\tdie(\"Database connection failed: \".mysqli_connect_error().\"(\".mysqli_connect_error().\")\");\n\t\t}\n\t}", "private static function _connect()\n {\n try {\n self::$_dbh = new PDO(DB_DSN, DB_USERNAME, DB_PASSWORD);\n }\n catch (PDOException $e) {\n echo \"Failure to connect to database. \".$e->getMessage();\n }\n }", "public function connect()\n {\n $this->connection->connect();\n }", "function dbConnect () {\n\t$con = mysql_connect($this -> host, $this -> user, $this -> pass);\n mysql_select_db($this->dbname,$con);\n\t}", "private function databaseConnection()\n {\n // Les connexions sont établies en créant des instances de la classe de base de PDO\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n }", "function connect()\n {\n $this->db = new MysqliAdapter($this->config[$this->sectionName]);\n \n if (isset($this->config[$this->sectionName]['username']) && isset($this->config[$this->sectionName]['password']))\n {\n if (!$this->db->connect())\n {\n writeLog('Could not connect to server', E_USER_ERROR);\n exit;\n }\n writeLog(\"connect successfull\");\n } \n else \n {\n writeLog(\"no username or password\");\n $this->unauthorized();\n exit;\n }\n }", "private function openConnection() {\n $this->db = new PDO(\"mysql:host=127.0.0.1;dbname=mvc\", \"gert\", \"becode\");\n }", "protected function openConn() {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "public function connect() {\n if ($this->db == null) {\n $this->db = new mysqli($this->host_name, $this->user_name, $this->password, $this->db_name);\n if ($this->db->connect_errno > 0) {\n throw new Eccezione(\"C'è stato un errore nella connessione con il database. L'errore che si è verificato è il seguente: \" . $this->db->connect_error);\n } else {\n $this->is_connected = TRUE;\n }\n }\n }", "protected function connect()\n\t\t{\n\t\t\t$conn = new PDO(\"mysql:dbname=$this->m_db;host=$this->m_host\", $this->m_username, $this->m_password); /* Create a new connection */\n\n\t\t\tif (DEBUG) /* If the global variable DEBUG is true */\n\t\t\t\techo 'Connecting to database.<br>'; /* Display debug messages */\n\t\t\t\n\t\t\treturn $conn; /* Return the database connection */\n\t\t}", "public function connect()\n {\n $this->connection = new mysqli(\"localhost\", \"mid2\", \"mid2\", \"ds9\");\n if ($this->connection->connect_error) {\n die(\"Connection failed: \" . $this->connection->connect_error);\n }\n }", "public static function connect() {\n $databaseConfig = Config::getDatabase();\n $databaseClass = $databaseConfig['class'];\n $databaseFile = SRC.'lib/db/databases/'.$databaseClass.'.php';\n if (!file_exists($databaseFile)) {\n throw new SynopsyException(\"Database class file '$databaseFile' doesn't exist!\");\n }\n require_once($databaseFile);\n $c = \"\\Synopsy\\Db\\Databases\\\\$databaseClass\";\n self::$instance = new $c();\n if (!self::$instance instanceof DatabaseInterface) {\n throw new SynopsyException(\"Database class '$databaseClass' doesn't implement DatabaseInterface interface!\");\n }\t\n self::$instance->connect($databaseConfig);\n }", "public function connect()\n {\n if(is_null($this->client))\n {\n $this->client = new \\MongoClient($this->dsn);\n $parsedDsn = Utils::ParseDsn($this->dsn);\n if(is_null($this->dataDatabase)) {\n $this->db = $this->client->{$parsedDsn['database']};\n }else{\n $this->db = $this->client->{$this->dataDatabase};\n }\n //$this->collection = $this->client->selectCollection($this->dsn['database'], $this->dsn['table']);\n }\n }", "private function connect()\n {\n //variable con el nombre del server\n $server = \"localhost\";\n //variable con el nombre de la base\n $database = \"candidatossv\";\n //variable con el usuario de la base\n $username = \"root\";\n //variable con la contra de la base\n $password = \"\";\n try {\n //realizando conexion\n @self::$connection = new PDO(\"mysql:host=$server; dbname=$database; charset=utf8\", $username, $password);\n } catch (PDOException $exception) {\n //mostrando el tipo de excepcion al realizar la conexion\n throw new Exception($exception->getCode());\n }\n }", "public function connect(){\n $this->con = oci_connect($this->user, $this->pass, $this->db, 'AL32UTF8');\n if( !$this->con){\n $e = oci_error();\n throw new Exception(\"Error al conectar db; \"\n . \"User: {$this->user}, Database: {$this->db}, Error: \"\n . $e);\n\n }\n\n }", "public function connect() {\n if ($this->db === null) {\n $this->db = new PDO($this->db_dsn, $this->db_user, $this->db_pass);\n $this->db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);\n }\n\n if ($this->db_schema !== null && $this->db_schema !== '') {\n $this->db->exec('SET search_path = ' . $this->db_schema . ', public');\n }\n\n return $this->db;\n }", "public function connect(){ //connrct to database\r\t\tif ($this->connected==false){\r\t\t\tif ($this->pers){\r\t\t\t\t$this->handle=sqlite_popen($this->server);\r\t\t\t}else{\r\t\t\t\t$this->handle=sqlite_open($this->server);\r\t\t\t}\r\t\t\t\r\t\t\t//$this->engine = new SQLiteDatabase($this->server);\r\t\t\t$this->connected=true;\r\t\t}//\r\t}", "public function connectDatabase()\n {\n if($this->database !== null)\n {\n $this->disconnectDatabase();\n }\n\n $this->database = new mysqli(\n $this->DatabaseConfiguration['Host'],\n $this->DatabaseConfiguration['Username'],\n $this->DatabaseConfiguration['Password'],\n $this->DatabaseConfiguration['Name'],\n $this->DatabaseConfiguration['Port']\n );\n }", "private function db_connect() {\n\n\t\t$new_link = defined( 'MYSQL_NEW_LINK' ) ? MYSQL_NEW_LINK : TRUE;\n\t\t$client_flags = defined( 'MYSQL_CLIENT_FLAGS' ) ? MYSQL_CLIENT_FLAGS : 0;\n\n\t\t// Connect to database.\n\t\tif ( DEBUG_MODE ) {\n\t\t\t$this->dbcon = mysqli_connect($this->dbhost, $this->dbuser, $this->dbpassword, $this->dbname, $this->dbport);\n\t\t} else {\n\t\t\t$this->dbcon = @mysqli_connect($this->dbhost, $this->dbuser, $this->dbpassword, $this->dbname, $this->dbport);\n\t\t}\n\n\t\tif ( mysqli_connect_errno () ) {\n\t\t\t/* ===== Bail ===== */\n\t\t\tif (DEBUG_DISPLAY) {\n\t\t\t\techo (\"Failed to connect to MySQL: \" . mysqli_connect_error() . '<br />');\n\t\t\t}\n\t\t}\n\n\t\t// Set charset.\n\t\tmysqli_set_charset ( $this->dbcon, $this->dbcharset );\n\n\t\t// Set collate.\n\t\t// mysqli_query ( $this->dbcon, \"COLLATE {$this->dbcollate}\" );\n\n\t\t// Set the database as ready for queries.\n\t\t$this->ready = TRUE;\n\t}", "private function _connect()\n\t{\n\t\t// persistent connection can lessen server load\n\t\tif ($this->_persistent === true)\n\t\t{\n\t\t\t$this->_connection = mysql_pconnect($this->_host.':'.$this->_port,\n\t\t\t\t$this->_user, $this->_password);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_connection = mysql_connect($this->_host.':'.$this->_port,\n\t\t\t\t$this->_user, $this->_password);\n\t\t}\n\n\t\t// verify that the connection is active\n\t\tif ($this->_connection == false ||\n\t\t\tis_resource($this->_connection) === false\n\t\t)\n\t\t{\n\t\t\tthrow new DatabaseException('',\n\t\t\t\tDatabaseException::CONNECTION_FAILED\n\t\t\t);\n\t\t}\n\n\t\t// only try to connect if there is a database given (with mysql\n\t\t// you don't need a database given\n\t\tif (!empty($this->_database))\n\t\t{\n\t\t\t// try to connect to the database\n\t\t\tif (mysql_select_db($this->_database, $this->_connection) === false)\n\t\t\t{\n\t\t\t\tthrow new DatabaseException('Error ('.\n\t\t\t\t\tmysql_errno($this->_connection).') '.\n\t\t\t\t\tmysql_error($this->_connection));\n\t\t\t}\n\t\t}\n\t}", "protected function openConn()\n {\n $database = new Database();\n $this->conn = $database->getConnection();\n }", "protected function _initDbConnection() {\n\t\tif (!empty($this->db)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Create a new connection\n\t\tif (empty($this->config['datasource'])) {\n\t\t\tdie(\"FeedAggregatorPdoStorage: no datasource configured\\n\");\n\t\t}\n\n\t\t// Initialise a new database connection and associated schema.\n\t\t$db = new PDO($this->config['datasource']); \n\t\t$this->_initDbSchema();\n\t\t\n\t\t// Check the database tables exist\n\t\t$this->_initDbTables($db);\n\n\t\t// Database successful, make it ready to use\n\t\t$this->db = $db;\n\t}", "public function open_db_connection() {\n $this->connection = new mysqli(DB_HOST, DB_USER, DB_PASS, DB_NAME);\n // cgecking if the connection has errors\n if($this->connection->connect_errno) {\n die(\"Database connection failed\" . $this->connection->connect_error);\n }\n }", "function connectDB(){\n\t\tif(!$this->conId=mysql_connect($this->host,$this->user,$this->password)){\n trigger_error('Error connecting to the server '.mysql_error());\n exit();\n\t\t}\n\t\tif(!mysql_select_db($this->database,$this->conId)){\n\t\t\t trigger_error('Error selecting database '.mysql_error());\n\t\t\t exit();\n\t\t}\n\t}", "private function open_db() {\n\n\t\t//var_dump($this->connection); exit;\n\n\t\t\n\n\t}", "private function __connect() {\n $this->handle = mysql_connect($this->server, $this->user, $this->password) \n or die('<pre style=\"margin:auto;background:rgba(0,0,0,.1)\">'.mysql_error().'</pre>');\n mysql_select_db($this->dataBase, $this->handle) \n or die('<pre style=\"margin:auto;background:rgba(0,0,0,.1)\">'.mysql_error().'</pre>');\n @mysql_query(\"SET NAMES 'utf8'\");\n }", "public static function connect()\n {\n try {\n $db_host = DbConfig::$host_url;\n $db_name = DbConfig::$database_name;\n $db_user = DbConfig::$database_user;\n $user_pw = DbConfig::$password;\n \n $con = new PDO('mysql:host='.$db_host.'; dbname='.$db_name, $db_user, $user_pw); \n $con->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\n $con->setAttribute( PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ );\n $con->setAttribute( PDO::ATTR_EMULATE_PREPARES, false );\n $con->exec(\"SET CHARACTER SET utf8\");\n\n return $con;\n }\n catch (PDOException $err) { \n $err->getMessage() . \"<br/>\";\n file_put_contents(__DIR__.'/log/PDOErrors.txt', $err.PHP_EOL.PHP_EOL, FILE_APPEND);\n die( $err->getMessage());\n }\n }", "public function connect(){\n try {\n $this->_dbh = new PDO('mysql:host='.$this->_host.';dbname='.$this->_db,$this->_user,$this->_pass);\n echo \"connexion reussi\";\n }\n catch(PDOException $e)\n {\n echo \"Connection failed: \" . $e->getMessage();\n }\n }", "private function connect() {\n\t\t$this->db_connect = new mysqli($this->db_host, $this->db_user, $this->db_pass, $this->db_name);\n\n\t\t// check for connection\n\t\tif ($this->db_connect->connect_error) {\n\n\t\t\tif (DEBUG_MODE == true) {\n\t\t\t\tdie('Failed to connect to MySQL: ' . $this->db_connect->connect_error);\n\t\t\t} else {\n\t\t\t\tdie('Failed to connect to MySQL.');\n\t\t\t}\n\n\t\t}\n\n\t\t$this->db_connect->query(\"SET NAMES utf8;\");\n\t\t$this->db_connect->query(\"SET CHARACTER_SET utf8;\");\n\n\t}", "public function connectDB()\n {\n // Early return if connected already\n if ($this->isConnected) {\n return;\n }\n\n if (! $this->databaseName) {\n throw new \\RuntimeException('TYPO3 Fatal Error: No database selected!', 1270853882);\n }\n\n if ($this->sql_pconnect()) {\n if (! $this->sql_select_db()) {\n throw new \\RuntimeException('TYPO3 Fatal Error: Cannot connect to the current database, \"' . $this->databaseName . '\"!', 1270853883);\n }\n } else {\n throw new \\RuntimeException('TYPO3 Fatal Error: The current username, password or host was not accepted when the connection to the database was attempted to be established!', 1270853884);\n }\n }", "public function connect() {\n $this->debugBacktrace();\n $this->connection = mysqli_connect($this->server, $this->user, $this->password, $this->database); \n\n if (!$this->connection) {\n $mysqlError = mysqli_error($this->connection);\n die('ERROR CODE: ARPOASRUWWER412547');\n } \n }", "private function connect()\n {\n $this->dbh = new PDO('sqlite:' . $this->sqlite);\n return;\n }", "function connect()\n {\n $this->db = new PDO($this->dns,$this->user,$this->pass,$this->option);\n $this->db->setAttribute(PDO::ATTR_ERRMODE , PDO::ERRMODE_EXCEPTION);\n\n }", "public function connect() {\n\t\t$cnn_string = 'host='.$this->_dbhost.' port='.$this->_dbport.' user='.$this->_dbuser.' password='.$this->_dbpass.' dbname='.$this->_dbname;\n\t\t\n\t\t$this->_instance = pg_connect($cnn_string) or PK_debug(__FUNCTION__, \"No se ha podido conectar con la DB\\n\\n\".pg_errormessage(), array('class'=>'error'));\n\t\t\n\t\tif (!$this->_instance) {\n\t\t\techo '<h1>Error en la aplicacion</h1><p>No se ha podido conectar con la base de datos</p>';\n\t\t\tPK_debug('', '', 'output');\n\t\t\texit();\n\t\t}\n\t\t\n\t\treturn $this->_instance;\n\t}", "private function openDatabaseConnection()\n {\n $options = array(PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ, PDO::ATTR_ERRMODE => PDO::ERRMODE_WARNING);\n $this->db = new PDO(DB_TYPE . ':host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS, $options);\n\n //UTF-8 encoding queries\n $this->db->exec(\"SET NAMES 'utf8'\");\n $this->db->exec(\"SET CHARACTER SET utf8\");\n $this->db->exec(\"SET COLLATION_CONNECTION='utf8_unicode_ci'\");\n }", "private function connect()\n {\n // Try\n try {\n // Create SQLite3\n $this->connection = new SQLite3(Constants::path_storage.'/Database/' . $this->file_name . '.db');\n } catch (Exception $ex) {\n // Return warning\n ErrorHandler::die(102, 'No database connection. Does to file exists? Error: ' . $ex->getMessage());\n }\n }", "private function connect()\n {\n // Try\n try {\n // Setup database connection\n $this->connection = new mysqli(\n $this->credentials->host,\n $this->credentials->user,\n $this->credentials->pass,\n $this->credentials->name,\n $this->credentials->port\n );\n } catch (Exception $ex) {\n // Return warning\n ErrorHandler::die(102, 'No database connection. Please check your credentials or is the server offline? Error: ' . $ex->getMessage());\n }\n }", "private function dbConnect(){\n $this->db = mysqli_connect(self::DB_SERVER,self::DB_USER,self::DB_PASSWORD,self::DB);\n // if($this->db){\n // mysql_select_db(self::DB,$this->db);\n // } \n }", "private static function get_connect(){\n static::$db = pg_connect(static::$host . \" \" . static::$port . \" \" . static::$database . \" \" . static::$user . \" \" . static::$pass);\n }", "public static function connectDatabase()\n {\n $database_config = require(__ROOT__ . 'config/database.php');\n\n try {\n\n return new \\PDO(\n 'mysql:host=' . $database_config['host'] . ';dbname=' . $database_config['db_name'] . ';charset=' . $database_config['db_charset'],\n $database_config['db_user'],\n $database_config['db_password']\n );\n\n } catch (\\PDOException $e) {\n\n }\n }", "private function databaseConnection(){\n \t\tif($this->connection != null){\n \t\t\treturn;\n \t\t} else {\n \t\t\t$this->connection = mysqli_connect(\"127.0.0.1\", \"user\", \"password\", \"database\") or die(\"Error \" . mysqli_error($this->connection));\n \t\t}\n\n\t}", "public static function connect() {\n\t\tif(!self::$conn) {\n\t\t\tnew Database();\n\t\t}\n\t\treturn self::$conn;\n\t}" ]
[ "0.8534311", "0.8342093", "0.82699823", "0.8112563", "0.8073666", "0.802183", "0.80065566", "0.7957954", "0.7884873", "0.7834758", "0.77875775", "0.77661145", "0.77612895", "0.775366", "0.7730027", "0.7725947", "0.7691153", "0.76839006", "0.7675189", "0.76694065", "0.7658359", "0.7654464", "0.7618307", "0.76080465", "0.7576932", "0.75412524", "0.7529819", "0.75135124", "0.75097066", "0.7506009", "0.7504002", "0.75017595", "0.7499861", "0.7497404", "0.74949384", "0.74911094", "0.7485788", "0.74846953", "0.7481255", "0.74713385", "0.74653196", "0.7461226", "0.74555063", "0.7451176", "0.74500895", "0.74485713", "0.74419725", "0.74365926", "0.74246734", "0.7422465", "0.7396814", "0.7395321", "0.7376478", "0.7372372", "0.7359611", "0.73549706", "0.7352034", "0.7343286", "0.7343063", "0.7334843", "0.73347706", "0.7313754", "0.7311409", "0.7307732", "0.73075014", "0.73059267", "0.72921306", "0.7274932", "0.7274071", "0.7267381", "0.7266805", "0.726248", "0.72458935", "0.724377", "0.7241515", "0.7232573", "0.72208935", "0.72148335", "0.7212", "0.7206087", "0.71932703", "0.7192931", "0.71922266", "0.7191998", "0.71826994", "0.7169659", "0.71673554", "0.7166488", "0.71572495", "0.7143966", "0.71388143", "0.71372193", "0.7130092", "0.7122034", "0.71218616", "0.7121386", "0.7121321", "0.7089349", "0.70775026", "0.70719326", "0.707175" ]
0.0
-1
Execute query. Use this function for update/delete query, for read query use getField, getRow, getArrayRow ...
function query( $query ){ if( ( $query || $query=$this->query ) && !isset( $this->result[$query] ) ){ if( $this->result[$query] = mysql_query( $query, $this->link ) ){ mysql::$nquery++; return $this->result[ $this->query = $query ]; } else{ trigger_error( mysql_error($this->link) . "<br/><font color=\"red\">$query</font><br/>", E_USER_ERROR ); // if debug mode on query error stop the execution if( isset($GLOBALS['debug']) && $GLOBALS['debug'] == true ) exit; } } else return $this->result[ $query ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function executeQuery() {\n\t\t$recordset = $this->getConnection()->execute( $this );\n\t\t\n\t\tif( $recordset === false ) {\n\t\t\t$this->_recordset = array();\n\t\t} else {\n\t\t\t$this->_recordset = $recordset;\n\t\t}\n\n\t\t$this->_currentRow = 0;\n\t\t$this->isDirty( false );\n\t}", "private function ExecuteQuery()\n\t{\n\t\tswitch($this->querytype)\n\t\t{\n\t\t\tcase \"SELECT\":\n\t\t\t{\n\t\t\t\t$this->stmt->execute();\n\t\t\t\t$this->querydata = $this->stmt->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"INSERT\":\n\t\t\tcase \"UPDATE\":\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$this->beginTransaction();\n\t\t\t\t\t$this->stmt->execute();\n\t\t\t\t\t$this->commit();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcatch (PDOException $e)\n\t\t\t\t{\n\t\t\t\t\t$this->rollBack();\n\t\t\t\t\techo(\"Query failed: \" . $e->getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public function execute()\n\t{\n\t\t$this->query->setFetchMode($this->fetchMode);\n\n\t\t$this->query->execute($this->params);\t\n\n\t\t// Fetch the data in the appropriate format\n\t\tswitch ($this->fetchMethod) {\n\t\t\tcase 'row':\n\t\t\t\t$this->result = $this->query->fetch();\n\t\t\t\tbreak;\n\t\t\tcase 'field':\n\t\t\t\t$this->result = $this->query->fetchColumn();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->result = $this->query->fetchAll();\n\t\t\t\tbreak;\n\t\t}\n\t}", "function executeQuery($query);", "public function execute($query);", "public function executeQuery() \r\n\t{\r\n\t\t$Result = $this->objStatement->execute();\r\n\t\t\r\n\t\tif($Result)\r\n\t\t{\r\n\t\t\t$Result = new DatabaseStatement($this->objStatement);\r\n\t\t}\r\n\t\t\r\n\t\treturn $Result;\r\n\t}", "protected abstract function executeQuery(Result $result);", "protected abstract function executeQuery($query);", "protected function execute_single_query(){\n\t\t$this -> open_connection();\n\t\t$this -> conn -> query($this -> query);\n\t\t$this -> close_connection();\n\t}", "protected function execute()\n{\n\t$this->result = $this->db->query($this->getSql());\n\t$this->position = 0;\n\t$this->data = array();\n\n\treturn $this->result;\n}", "abstract public function execute($query);", "public function execute()\n {\n return $this->query($this->sSql);\n }", "public function executeQuery() {\r\n\t\t$query = $this->query;\r\n\t\t$query->matching($query->logicalAnd($this->queryConstraints));\r\n//$parser = \\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::makeInstance('TYPO3\\\\CMS\\\\Extbase\\\\Persistence\\\\Generic\\\\Storage\\\\Typo3DbQueryParser'); \r\n//$queryParts = $parser->parseQuery($query); \r\n//\\TYPO3\\CMS\\Core\\Utility\\DebugUtility::debug($queryParts, 'Query Content');\r\n\t\t$queryResult = $query->execute()->toArray();\r\n\t\t$this->setSelectedPageUids($queryResult);\r\n\t\t$this->resetQuery(); \r\n\t\treturn $queryResult;\r\n\t}", "public function execute()\n {\n \tif ( $this->cur_query != \"\" )\n \t{\n \t\t$res = $this->query( $this->cur_query );\n \t}\n \t\n \t$this->cur_query \t= \"\";\n \t$this->is_shutdown \t= false;\n\n \treturn $res;\n }", "public function ExecuteQuery($query){\n\t\treturn $this->db_con->query($query);\n\t}", "public function executeQuery($query, array $params = array());", "protected function execute_single_query() \n\t\t{\n \t\t\t$this->open_connection();\n \t\t\t$this->conn->query($this->query);\n \t\t\t$this->close_connection();\n\t\t}", "abstract function executeQuery($cons);", "private function execute() {\n $query = $this->db->query($this->sql);\n return $query->result();\n }", "public function executeQuery($q){ $this->makeConnection();\n //check for SQL injection\n\n //execute query\n $results = $this->connection->query($q);\n\n return $results;\n\n }", "public function execute()\n {\n if (!$this->sessionSet && $this->platform instanceof MySqlPlatform) {\n $this->connection->exec(\"SET @@SESSION.sql_mode = '';\");\n $this->sessionSet = true;\n }\n\n // Take a local copy so that we don't modify the original query and cause issues later\n $query = $this->replacePrefix((string) $this->sql);\n\n if (!($this->sql instanceof \\JDatabaseQuery) && ($this->limit > 0 || $this->offset > 0)) {\n // @TODO\n if ($this->offset > 0) {\n $query .= ' LIMIT ' . $this->offset . ', ' . $this->limit;\n } else {\n $query .= ' LIMIT ' . $this->limit;\n }\n }\n\n $this->prepared = $this->connection->prepare($query);\n\n // Increment the query counter.\n $this->count++;\n\n // Reset the error values.\n $this->errorNum = 0;\n $this->errorMsg = '';\n $memoryBefore = null;\n\n // If debugging is enabled then let's log the query.\n if ($this->debug) {\n // Add the query to the object queue.\n $this->log[] = $query;\n\n \\JLog::add($query, \\JLog::DEBUG, 'databasequery');\n\n $this->timings[] = microtime(true);\n }\n\n // Execute the query.\n $this->executed = false;\n $previous = null;\n\n if ($this->prepared instanceof Statement) {\n // Bind the variables:\n if ($this->sql instanceof JDatabaseQueryPreparable) {\n $bounded = $this->sql->getBounded();\n\n foreach ($bounded as $key => $obj) {\n $this->prepared->bindParam($key, $obj->value, $obj->dataType, $obj->length, $obj->driverOptions);\n }\n }\n\n try {\n $this->executed = $this->prepared->execute();\n } catch (\\Exception $previous) {\n }\n }\n\n if ($this->debug) {\n $this->timings[] = microtime(true);\n\n if (defined('DEBUG_BACKTRACE_IGNORE_ARGS')) {\n $this->callStacks[] = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);\n } else {\n $this->callStacks[] = debug_backtrace();\n }\n }\n\n // If an error occurred handle it.\n if (!$this->executed) {\n // Get the error number and message before we execute any more queries.\n $errorNum = (int) $this->connection->errorCode();\n $errorMsg = (string) 'SQL: ' . implode(\", \", $this->connection->errorInfo());\n\n // Get the error number and message from before we tried to reconnect.\n $this->errorNum = $errorNum;\n $this->errorMsg = $errorMsg;\n\n // Throw the normal query exception.\n \\JLog::add(\n \\JText::sprintf('JLIB_DATABASE_QUERY_FAILED', $this->errorNum, $this->errorMsg),\n \\JLog::ERROR,\n 'databasequery'\n );\n throw new RuntimeException($this->errorMsg, $this->errorNum, $previous);\n }\n\n return $this->prepared;\n }", "function runQuery()\r\n\t\t{\r\n\t\tif(!$this->conn)\r\n\t\t\t{\r\n\t\t\t$this->createConnect();\r\n\t\t\t}\r\n\t\tif($this->query)\r\n\t\t\t{\r\n\t\t\t$this->errors=\"\";\r\n\t\t\t$this->query.=\";\";\r\n\t\t\t$this->result = mysql_query($this->query);\r\n\t\t\tif(mysql_affected_rows()>=0)\r\n\t\t\t\t{\r\n\t\t\t\tunset($this->query);\r\n\t\t\t\t}\r\n\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\techo \"<br>Error:<br>\";\r\n\t\t\t\t$debugging=debug_backtrace();\r\n\t\t\t\tforeach ($debugging as $debug)\r\n\t\t\t\t\t{\r\n\t\t\t\t\techo \"<b>File :</b> \".$debug[\"file\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Line :</b> \".$debug[\"line\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Function :</b> \".$debug[\"function\"].\"<br />\";\r\n\t\t\t\t\techo \"<b>Cause :</b> \".mysql_error().\"<br />\";\r\n\t\t\t\t\t}\r\n\t\t\t\techo \"<b>Query :</b> \".$this->query.\"<hr>\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\telse\r\n\t\t\t{\r\n\t\t\techo \"<br>-- NULL Query --\";\r\n\t\t\t}\r\n\t\tif (!is_resource($this->result))\r\n\t\t\t{\r\n\t\t\t$this->errors=mysql_error();\r\n\t\t\tif($this->transaction)\r\n\t\t\t\t{\r\n\t\t\t\t\t$this->transaction=FALSE;\r\n\t\t\t\t\t$this->query=\"ROLLBACK TRANSACTION\";\r\n\t\t\t\t\t$this->runQuery();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "function queryExecute($query) {\r\n\t\t\r\n\t\tif (strlen(trim($query)) < 0 ) {\r\n\t\t\ttrigger_error(\"Database encountered empty query string in queryExecute function\",E_ERROR);\r\n\t\t}\r\n\t\tif( !$this->connected ) \r\n\t\t\t$this->connect();\r\n\t\t\r\n\t\tif($this->socket->query($query) === true) {\r\n\t\t\t$this->recordsUpdated = $this->socket->affected_rows;\r\n\t\t}\r\n\t}", "abstract public function query();", "public function query();", "public function query();", "public function query();", "public function execute(QueryObject $query);", "public function execute () {\n $this->query->execute();\n }", "public function execute()\n {\n /* If there's a select limit, capitalize on it */\n if($this->limit) {\n $this->query .= ' LIMIT ' . $this->limit;\n }\n \n /* If executement arguments has values, execute statement with\n the values */\n if(count($this->values) != 0) {\n /* Execute query in prepared format */\n $request = $this->pdo->prepare($this->getQuery());\n \n /* Append values to execute */\n $request->execute($this->values);\n }else if(count($this->values) == 0) {\n /* Run query if values is empty */\n $request = $this->pdo->query($this->getQuery());\n }\n /* Reset values array for next query */\n $this->values = [];\n \n /* If execution action is fetch, return ->fetchAll(); */\n if($this->action == 'fetch') {\n return $request->fetchAll();\n }\n \n /* If execution action is rows, return ->rowCount(); */\n if($this->action == 'rows') {\n return $request->rowCount();\n }\n \n /* Else return self */\n return $this;\n }", "public function executeQuery($query) {\r\n\t\t\r\n\t\t$this->mdb2->connect();\r\n\t\t\t\t\r\n\t\t$ResultSet = $this->mdb2->query($query);\r\n\t\t\r\n\t\t$this->mdb2->disconnect();\r\n\t\t\r\n\t\tif (PEAR::isError($ResultSet)) {\r\n\t\t\tdie($ResultSet->getMessage() . \": \" . $query);\r\n\t\t}\r\n\t\t\r\n\t\treturn $ResultSet;\r\n\t\t\r\n\t}", "public function executeQuery($sql)\r\n\t{\r\n\t\t//return qocqal_query($sql);\r\n\t}", "public function queryRow()\n\t{\n\t\treturn $this->queryInternal('fetch',$this->_fetchMode);\n\t}", "public function exec_query($sql = null) {\n\t\t$this->setFoundRows();\n\t\tif($this->debug) {\n\t\t\ttry {\n\t\t\t\t// Execute query\n\t\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t\t//$this->writeQueryInLog($Rs->last_query, debug_backtrace());\n\n\t\t\t\t// $this->query_debugger($Rs->last_query); // Debug queries\n\t\t\t\t\n\t\t\t\t$this->resetVariables(); // reset all variables\t\t\t\t\n\t\t\t} catch (Exception $e) {\n\t\t\t\t$newex = new Exception($e->getMessage());\n\t\t\t\t//echo 'ex :: '.$this->getSQL($this->getFullQuery());exit;\n\t\t\t\t$this->displayException($newex);\n\t\t\t}\n\t\t} \n\t\telse {\n\t\t\t$this->query = (isset($sql) && !empty($sql)) ? $sql : $this->getFullQuery();\n\t\t\t$Rs = $this->Connection->Execute($this->query, $this->params);\n\t\t\t$Rs->last_query = $this->getSQL($this->query); // full query with parameter\n\t\t\t$this->resetVariables();\t\t\t\n\t\t}\n\t\t\n\t\t$this->query = trim($this->query);\n\t\tif(stripos($this->query, 'INSERT') === 0) {\n\t\t\treturn $this->Connection->getLastInsertedId();\n\t\t} \n\t\telseif(stripos($this->query, 'UPDATE') === 0) {\n\t\t\treturn $Rs;\n\t\t} \n\t\telse {\n\t\t\tif($Rs->RecordCount() == 0)\n\t\t\t\treturn false;\n return $Rs;\n\t\t}\n\t}", "public function execute() { \n return $this -> stmt -> execute();\n }", "function query(\\database $dbase){\n //\n //Get the sql string \n $sql=$this->to_str();\n //\n // Execute the $sql on columns to get the $result\n $dbase->query($sql);\n \n }", "public function execute() \r\n\t{\r\n\t\treturn $this->objStatement->execute();\r\n\t}", "private function execute () {\n if($this->_query->execute()) {\n\n // It has been succesful so add the output to $this->results and set it as an object\n $this->_results = $this->_query->fetchAll(PDO::FETCH_OBJ);\n\n // Set the affected row count to $this->_count\n $this->_count = $this->_query->rowCount();\n\n } else {\n\n // The query failed so set $this->_error to true. MORE WORK NEEDED HERE\n $this->_error = true;\n\n }\n }", "public function execute()\n\t{\n\t\t$this->arrParams = func_get_args();\n\n\t\tif (is_array($this->arrParams[0]))\n\t\t{\n\t\t\t$this->arrParams = array_values($this->arrParams[0]);\n\t\t}\n\n\t\treturn $this->query();\n\t}", "private function RunBasicQuery() {\n // Prepare the Query\n $this->stmt = $this->db->prepare($this->sql);\n \n // Run the Query in the Database\n $this->stmt->execute();\n \n // Store the Number Of Rows Returned\n $this->num_rows = $this->stmt->rowCount();\n \n // Work with the results (as an array of objects)\n $this->rs = $this->stmt->fetchAll();\n \n // Free the statement\n $this->stmt->closeCursor(); \n }", "public function executeQuery($sql){\n return DB::executeQuery($this->db, $sql);\n }", "function _execute($sql) {\n\t\t$result = sqlite_query($this->connection, $sql);\n\n\t\tif (preg_match('/^(INSERT|UPDATE|DELETE)/', $sql)) {\n\t\t\t$this->resultSet($result);\n\t\t\tlist($this->_queryStats) = $this->fetchResult();\n\t\t}\n\t\treturn $result;\n\t}", "public function executeQuery($query) {\n\t\t$result = $this->connection->query($query);\n\t\t$this->rowsAffected = $this->connection->affected_rows;\n\t\t\t\n\t\tif(!$result) {\n\t\t\tthrow new DBException(\"Unable to execute query: \" . $query);\n\t\t}\n\t\treturn $result;\n\t}", "private function query() {\n return ApplicationSql::query($this->_select, $this->_table, $this->_join, $this->_where, $this->_order, $this->_group, $this->_limit, $this->_offset);\n }", "function execute( $qry )\n {\n // -- Montem la query. Pot ser un objecte o un string SELECT\n if( is_object( $qry ))\n {\n if( in_array( 'get_query', get_class_methods( $qry ) ))\n {\n $sQuery = $qry->get_query();\n }\n else\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - Objeto sin función get_query' );\n }\n }\n else\n {\n $sQuery = $qry;\n }\n if( empty( $sQuery ))\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - No existeix consulta' );\n }\n $result = odbc_exec( $sQuery, $this->_hDb );\n if( !$result )\n {\n $this->throw_exception( $this->_hDb, __CLASS__.'::'.__FUNCTION__. ' - Impossible executar consulta [['.$sQuery.']] ' );\n }\n return $result;\n }", "public function ExecuteQuery($Query){\n\t\treturn $this->db->query($Query); \n\t}", "public function execute($query)\n {\n }", "public function execute($sql) {\n\t\tif(SYS_USE_FIREPHP==1)\n\t\t\tPhpBURN_Message::output(\"[!Performing the query!]: $sql\");\n\t\treturn $this->getModel()->getConnection()->executeSQL($sql);\n\t\t//$this->resultSet = &$this->getModel()->getConnection()->executeSQL($sql);\n\t}", "public function executeQuery($query){\n\t\n $resultQuery = mysqli_query($this->link, $query) or die (\"Requete => PROBLEME\");\n return $resultQuery;\n }", "private function query()\n {\n $lStart = microtime(true);\n\n //arguments should be query (with placeholders) followed by an array of key-value pairs\n $args = func_get_args();\n $args = array_shift($args);\n $query = array_shift($args);\n $params = $args ? array_shift($args) : [];\n\n $sth = $this->pdo->prepare($query);\n if (!$sth) {\n //prepare failed\n $this->handlePrepareError($sth, $query, $params);\n }\n\n //explicitly bind parameters as int/string so IN() doens't get quoted\n foreach ($params as $key => $value) {\n if (is_numeric($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_INT);\n } elseif (is_bool($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_BOOL);\n } elseif (is_null($value)) {\n $sth->bindValue($key, $value, PDO::PARAM_NULL);\n } else {\n $sth->bindValue($key, $value, PDO::PARAM_STR);\n }\n }\n\n //query invalid\n if(!$sth->execute()) {\n $this->handleExecuteError($sth, $query, $params);\n }\n $this->queryTimer += microtime(true) - $lStart;\n $this->queryCount++;\n\n $query = preg_replace('/^\\s+/', '', $query);\n if(str_starts_with(strtolower($query), 'select')) {\n //return results for SELECT\n return $sth;\n\n } elseif(str_starts_with(strtolower($query), 'insert')) {\n //return insert id for INSERT\n $id = $this->pdo->lastInsertId();\n return ($id ?: true);\n\n } else {\n //return TRUE for DELETE, UPDATE\n //NB: don't return affected rows for UPDATE since 0 affected will be interpreted as query failed)\n return true;\n }\n }", "public function execute()\n {\n $query = $this->__toString();\n if (!empty($this->params)) {\n $statement = $this->pdo->prepare($query);\n $statement->execute($this->params);\n return $statement;\n }\n return $this->pdo->query($query);\n }", "public function execute()\n\t{\n\t\t// Use cached results if found (previous count() or other internal call)\n\t\tif($this->activeQueryResults) {\n\t\t\t$results = $this->activeQueryResults;\n\t\t} else {\n\t\t\tif($this->activeQuery instanceof phpDataMapper_Database_Query_Interface) {\n\t\t\t\t$results = $this->query($this->activeQuery->sql(), $this->activeQuery->getParameters());\n\t\t\t\t$this->activeQueryResults = $results;\n\t\t\t} else {\n\t\t\t\t$results = array();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn $results;\n\t}", "function db_execute($query)\n {\n /*\n * Execute the Query\n */\n $this->varifysql($query[\"SQL\"]);\n return $this->get_conn()->query($query[\"SQL\"], PDO::FETCH_ASSOC);\n }", "public static function query();", "public function execute($sql){\n\t $query = DB::query(Database::SELECT, $sql);\n\t return $query->execute($this->database);\n\t}", "public static function execute()\n {\n if(DEBUG_QUERIES)\n {\n $start = microtime();\n }\n $r = self::$stmt->execute();\n if(DEBUG_QUERIES)\n {\n $elapsed = round(microtime() - $start, 4);\n isset(Core::$benchmark['db']['count']) ? Core::$benchmark['db']['count']++ : Core::$benchmark['db']['count'] = 1;\n isset(Core::$benchmark['db']['elapsed']) ? (Core::$benchmark['db']['elapsed']+$elapsed) : Core::$benchmark['db']['elapsed'] = $elapsed;\n }\n if(self::$stmt->errorCode() !== '00000')\n {\n trigger_error(json_encode(self::$stmt->errorInfo()));\n }\n return $r;\n }", "final public function execute()\n {\n return $this\n ->finalize()\n ->getDB()\n ->execute($this);\n }", "abstract public function query($sql);", "protected function execute_single_query() {\n\t\tif($_POST) {\n\t\t\t$this->open_connection();\n\t\t\t$this->conn->query($this->query);\n\t\t\t\n\t\t} else {\n\t\t\t$this->mensaje = 'Metodo no permitido';\n\t\t}\n\t}", "public function query()\n\t{\n\t\t\n\t}", "public function execute($sql);", "public function execute($sql);", "public abstract function execute($sql);", "public function queryRow($sql, $params = array());", "public function doQuery($sql, $params);", "protected function executeQuery() {\n return array();\n }", "final public function executeQuery($query,$dataArray=array()) {\r\n \t$sqlQuery=$query;\r\n \tif(count($dataArray)!=0) {\r\n\t \t$sqlQuery=$this->buildQuery($query,$dataArray);\r\n\t }\r\n \treturn $this->execute($sqlQuery);\r\n\t}", "public function query($query = \"NONEE\"){\n\t\t\n\t\tif($update = $query === \"NONEE\")\n\t\t\t$query = $this->query; \t\t\t\t\t\n\t\t\n\t\t$this->query_total++;\n\t\t\n\t\t$query_check = trim($query);\n\t\t\n\t\tif($this->debug){\n\t\t\techo \"<br/><strong style=\\\"color:#E4C100\\\">&lt;DEBUG&gt;</strong><br/>\";\n\t\t\techo $this->comment != \"\" ? \"<span style=\\\"color:#D3C26E;font-style:italic\\\">#\".$this->comment.\"</span><br/>\" : \"\";\n\t\t\techo \"<span style=\\\"color:#E4C100\\\">\".$query.\"</span><br/><strong style=\\\"color:#E4C100\\\">&lt;/DEBUG&gt;</strong><br/>\";\n\t\t}\n\t\t\n\t\t$resultset = $this->showErrors ? mysqli_query($this->connection,$query) : @mysqli_query($this->connection,$query);\n\t\t\n\t\t$proceed_log = $this->log && ( \n\t\t(stripos($query_check,\"INSERT\") === 0 && $this->log_options{0} === '1')\n\t\t||\n\t\t(stripos($query_check,\"DELETE\") === 0 && $this->log_options{1} === '1')\n\t\t||\n\t\t(stripos($query_check,\"UPDATE\") === 0 && $this->log_options{2} === '1')\n\t\t||\n\t\t(stripos($query_check,\"SELECT\") === 0 && $this->log_options{3} === '1'));\n\t\t\n\t\tif(stripos($query_check,\"INSERT\") === 0 || stripos($query_check,\"DELETE\") === 0 || stripos($query_check,\"UPDATE\") === 0)\n\t\t\tif(!$resultset)\n\t\t\t\t$this->transaction = false;\n\t\t\n\t\tif($proceed_log){\n\t\t\t$log_fields = \"query,date,user\";\n\t\t\t$log_values=\"'\".$this->secure($query).\"',NOW(),\".$this->log_user;\n\t\t}\n\t\t\n\t\tif(!$resultset){\n\t\t\tif($this->showErrors){ \n\t\t\t\techo \"<br/><strong style=\\\"color:red\\\">&lt;QERROR&gt;</strong><br/>\";\n\t\t\t\techo $this->comment != \"\" ? \"<span style=\\\"color:#E88888;font-style:italic\\\">#\".$this->comment.\"</span><br/>\" : $this->comment.\"nada\";\n\t\t\t\techo \"<span style=\\\"color:red\\\">\".mysqli_error($this->connection).\" at \".$query_check.\"</span><br/><strong style=\\\"color:red\\\">&lt;/QERROR&gt;</strong><br/>\";\n\t\t\t}\n\t\t\tif($proceed_log){\n\t\t\t\t$log_fields .= \",error\";\n\t\t\t\t$log_values .= \",'\".mysqli_error($this->connection).\"'\";\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tif($proceed_log){\t\t\t\n\t\t\t@mysqli_query($this->connection,\"INSERT INTO \".$this->log_table.\"($log_fields) VALUES($log_values)\");\n\t\t}\n\t\t\n\t\tif(!$resultset && $this->closeOnError) \n\t\t\texit;\n\t\t\n\t\tif($update)\n\t\t\t$this->resultset = $resultset;\n\t\t\n\t\treturn $resultset; \n\t}", "public function executeQuery($sql)\r\n\t{\r\n\t\t//return mysql_query($sql);\r\n\t}", "function db_run_query( $statement ) {\n\n $this->pm_clear_dataset();\n $this->pm_store_statement( $statement );\n $this->pm_debug_statement( $statement );\n if( ! $this->query_is_select ) $this->pm_write_logfile( $statement );\n\n $this->dataset_obj = $this->connection->query( $statement );\n $this->pm_die_if_error( 'dataset_obj' );\n\n if( is_object( $this->dataset_obj )) # updates/inserts/deletes seem to return an integer not an object\n $this->rowcount = $this->dataset_obj->numrows();\n else\n $this->rowcount = ROWCOUNT_NOT_SET;\n\n return $this->dataset_obj;\n }", "abstract public function query($sql, $execute =FALSE);", "public function executeSQL($query){\n\t\t$this->lastQuery = $query;\t\t\n\t\tif($this->result = mysqli_query( $this->databaseLink,$query)){\n\t\t\tif (gettype($this->result) === 'object') {\n\t\t\t\t$this->records = @mysqli_num_rows($this->result);\n\t\t\t\t$this->affected = @mysqli_affected_rows($this->databaseLink);\n\t\t\t} else {\n\t\t\t\t$this->records = 0;\n\t\t\t\t$this->affected = 0;\n\t\t\t}\n\n\t\t\tif($this->records > 0){\n\t\t\t\t$this->arrayResults();\n\t\t\t\treturn $this->arrayedResult;\n\t\t\t}else{\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t}else{\n\t\t\t$this->lastError = mysql_error($this->databaseLink);\n\t\t\techo $this->lastError;\n\t\t\treturn false;\n\t\t}\n\t}", "private function func_execute () {\n $this -> connection = parent::func_query ($this -> query, $this -> query_data);\n }", "public function execute(): ResultSet\n {\n if (null === $this->statement) {\n $this->prepare();\n }\n return $this->statement->execute($this->getParameters());\n }", "abstract public function execute($sql);", "abstract protected function doQuery( $sql );", "public function executeStatement()\n {\n \n }", "public function executeGenericDQLQuery($query){\n try{\n if(!$this->db)\n {\n $this->db = mysql_connect(self::DB_SERVER,self::DB_USER,self::DB_PASSWORD);\n }\n $result = mysql_query($query, $this->db);\n /* if(mysqli_errno($con) != 0){\n throw new Exception(\"Error :\".mysqli_errno($con).\" : \".mysqli_error($con));\n } */\n $rows = array();\n while($row = mysql_fetch_array($result)){\n array_push($rows,$row);\n }\n //mysqli_close($con);\n return $rows;\n \n }\n catch(Exception $e){\n $response = array();\n $response['status'] = false;\n $response['message'] = $e->getMessage();\n $this->response($this->json($response), 200);\n }\n \n }", "private function _executeQuery() \n\t{\n\t\t$this->_stmt->execute ( $this->_stmtData );\n\t\t\n\t\tif ($this->_stmt->rowCount () > 0) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn $this->_stmt->errorInfo();\n\t\t}\n\t}", "function runQuery()\n\t{\n\t\treturn $this->query;\n\t}", "abstract protected function _query($sql);", "abstract public function Execute($query, $multiline = FALSE);", "public function execute() {\n\t\t\t$connection = \\Leap\\Core\\DB\\Connection\\Pool::instance()->get_connection($this->data_source);\n\t\t\tif ($this->before !== NULL) {\n\t\t\t\tcall_user_func_array($this->before, array($connection));\n\t\t\t}\n\t\t\t$connection->execute($this->command());\n\t\t\tif ($this->after !== NULL) {\n\t\t\t\tcall_user_func_array($this->after, array($connection));\n\t\t\t}\n\t\t}", "public function Execute()\r\n {\r\n $this->PREPARE_STATEMENT($this->sql);\r\n return $this->EXECUTE_STATEMENT($this->statement);\r\n \r\n }", "public function execute(): Statement;", "public function execute()\n {\n return $this->_execute();\n }", "public function Execute($sql) {\r\n return $this->_connection->query($sql);\r\n }", "public function run(){\n $sql = $this->sql();\n return $this->query($sql,$this->args);\n }", "public function execute() {\n $lastImplementaion = '';\n $finalWhere = ( count($this->_lastWhere) > 0) ? ' WHERE ' . join($this->_currentImplement['where'], ' ' ) : '';\n $finalLimit = ( strlen($this->_lastLimit) > 0 ) ? ' lIMIT ' . $this->_lastLimit : '';\n\n if ( !empty($this->_lastSelect) ) {\n $finalSelect = ' SELECT ' . join( $this->_currentImplement['select'], ',' );\n\n $finalTables = ' FROM ' . join( array_map(function($item ){\n return '`'.$item.'`';\n }, $this->_currentImplement['table']), ',');\n\n $finalOrder = ( strlen($this->_lastOrder) > 0 ) ? ' ORDER BY ' . $this->_lastOrder : '';\n\n $finalJoin = '';\n\n if ( isset($this->_currentImplement['join']) && count($this->_currentImplement['join']) > 0 ) {\n foreach ( $this->_currentImplement['join'] as $key => $value ) {\n $finalJoin[] = ' ' . $value['type'] . ' JOIN `' . $value['table'] . '`' . ' ON ' . $value['on'];\n }\n\n $finalJoin = join( $finalJoin, ' ' );\n }\n\n $lastImplementaion = $finalSelect . $finalTables . $finalJoin . $finalWhere . $finalOrder . $finalLimit;\n } else if ( !empty($this->_lastUpdate) ) {\n if(empty($finalWhere)){\n throw new Exception(\"If you preform this query, you will update all rows in table\", 1);\n }\n\n $lastImplementaion = 'UPDATE ' . $this->_lastTable . ' SET ' . $this->_lastUpdate . $finalWhere . $finalLimit;\n } else if ( !empty($this->_lastInsert) ) {\n $lastImplementaion = 'INSERT INTO `' . $this->_lastTable . '` ' . $this->_lastInsert;\n } else if ( !empty($this->_lastCreate) ) {\n $lastImplementaion = $this->_lastCreate;\n } else if ( !empty($this->_lastDrop) ) {\n $lastImplementaion = $this->_lastDrop;\n }else if( !empty($this->_lastTruncate) ){\n $lastImplementaion = $this->_lastTruncate;\n }else if( !empty($this->_lastDelete) ) {\n if(empty($finalWhere)){\n throw new Exception(\"If you preform this query, you will delete all rows in table, if you want so user truncate() instead.\", 1);\n }\n\n $lastImplementaion = $this->_lastDelete . $finalWhere . $finalLimit;\n }\n\n $lastImplementaion = trim( $lastImplementaion );\n $this->unsetAll();\n\n unset( $this->_currentImplement );\n unset( $finalSelect );\n unset( $finalTables );\n unset( $finalJoin );\n unset( $finalWhere );\n unset( $finalOrder );\n unset( $finalLimit );\n return $lastImplementaion;\n }", "public function query()\n {\n }", "public function query()\n {\n }", "function _execQ($query, $param_strs, $params){\n $db = MySQLConnect::get_instance();\n $res = $db->prepare($query);\n \t array_unshift($params, $param_strs);\n call_user_func_array(array($res, 'bind_param'), $params);\n $bool = $res->execute();\n $sonuclar = $res->get_result();\n $rows = $sonuclar->fetch_all(MYSQLI_ASSOC);\n return $rows;\n }", "public static function executeQuery(Sql $db, $query){\n $statement = $db->prepareStatementForSqlObject($query);\n $rs = new ResultSet();\n return $rs->initialize($statement->execute())->buffer();\n }", "private function runQuery () {\n\n // Prepare the constructed SQL statement\n if ($this->_query = $this->_pdo->prepare($this->_sql)) {\n\n // Set a counter to one to use when binding\n $x = 1;\n \n // Loop through the binding array\n foreach($this->_bindArray as $param) {\n \n // Run the bindValue function to match the correct value to the correct placing\n $this->_query->bindValue($x, $param);\n\n // Increment the counter\n $x++;\n \n }\n \n // Run the execute function\n $this->execute();\n }\n }", "public function query($sql);", "public function query($sql);", "public function query($sql);", "public function query($sql);", "public function runQuery(){\n \n $query = $this->getQuery();\n $pager = $this->getPager();\n $modify_result = $this->getModifyResult();\n\n // set default number of results so that we don't output NULL as \n // total_results if there are errors\n $pager->setTotalResults( 0 );\n $results = array();\n \n if( !$this->getResponse()->hasErrors() ){\n \t\n \t $count_query = clone $query;\n\t $pager->setTotalResults( $count_query->count() );\n \t $pager->decorateQuery( $query );\n \n\t if( $pager->getPageSize() > 0 ){\n\t $db_results = $query->find();\n\t foreach( $db_results as $model ){\n\t $result_object = array();\n\t $modify_result( $model, $result_object );\n\t $results[] = $result_object;\n\t }\n\t }\n\t \n }\n \n $api_response_body = $this->getResponse()->getResponseBody();\n $api_response_body->setBody($results);\n \n }", "public function executeQuery($sql, $params = []){;\n $statement = $this->dataBaseHandler->prepare($sql);\n $statement->execute($params);\n return $statement->fetch(PDO::FETCH_BOTH);\n }", "function customQuery($query) \t{\n $res = $this->execute($query);\n\t\t return $res;\n\t}" ]
[ "0.7674113", "0.749581", "0.74085987", "0.73130035", "0.71883756", "0.71472347", "0.7134763", "0.7109761", "0.70824414", "0.7078435", "0.7074987", "0.69737285", "0.6926541", "0.6865066", "0.68597555", "0.6843696", "0.68261224", "0.68240696", "0.68232673", "0.6818714", "0.6793958", "0.6769371", "0.67605066", "0.6741552", "0.67339206", "0.67339206", "0.67339206", "0.67299026", "0.6719578", "0.67036515", "0.668949", "0.66882116", "0.66876423", "0.6665151", "0.6648551", "0.66413414", "0.6634232", "0.66159683", "0.66108644", "0.6604776", "0.6594708", "0.6592204", "0.6586516", "0.6581302", "0.6550614", "0.6550401", "0.65383697", "0.65166634", "0.6514478", "0.6506273", "0.64941865", "0.64907503", "0.64889747", "0.6480556", "0.6470215", "0.64619994", "0.6459194", "0.64504236", "0.6448822", "0.6446971", "0.64405054", "0.64405054", "0.6429028", "0.63966286", "0.6390981", "0.6377729", "0.6373199", "0.6355788", "0.6354131", "0.6350896", "0.6343104", "0.63421977", "0.6341322", "0.634041", "0.6339937", "0.63392055", "0.6337257", "0.633267", "0.63316745", "0.6322817", "0.6320655", "0.63096714", "0.63050616", "0.6304921", "0.6301133", "0.62926316", "0.6279745", "0.62678844", "0.62632453", "0.6261024", "0.6261024", "0.625905", "0.62560767", "0.6254349", "0.6243958", "0.6243958", "0.6243958", "0.6243958", "0.624287", "0.62334913", "0.6227919" ]
0.0
-1
Return the number of rows of the query
function num_rows( $query = null ){ if( $result = $this->query( $query ) ) return mysql_num_rows( $result ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rowCount()\n {\n return sasql_num_rows($this->result);\n }", "function NumRows() {\n\t\t\t$result = pg_num_rows($this->result);\n\t\t\treturn $result;\n\t\t}", "public function count()\n\t{\n\t\treturn $this->query->rowCount();\n\t}", "public function count() {\n $this->_active_query->fields($this->func()->count());\n $query = $this->query( $this->_active_query->getQuery(), $this->_active_query->getParams() );\n return (int)$query->rowCount();\n }", "public function countRows(): int\n {\n $result = $this->_getResult()->numRows(); // Returns an integer on success and an \\PEAR_Error object on failure\n return is_int($result) ? $result : 0;\n }", "public function rowCount()\n {\n return oci_num_rows($this->sth);\n }", "public function num_rows() {\n\t\t\treturn $this->count();\n\t\t}", "public function num_rows()\n\t{\n\t\t$regex = '/^SELECT\\s+(?:ALL\\s+|DISTINCT\\s+)?(?:.*?)\\s+FROM\\s+(.*)$/i';\n\t\t$output = array();\n\n\t\tif (preg_match($regex, $this->last_query, $output) > 0)\n\t\t{\n\t\t\t$stmt = $this->query(\"SELECT COUNT(*) FROM {$output[1]}\");\n\t\t\treturn (int) $stmt->fetchColumn();\n\t\t}\n\n\t\treturn NULL;\n\t}", "public function count()\n\t{\n\t\treturn (int) $this->getStatement()->rowCount();\n\t}", "public function countRows()\n {\n return $this->_result !== null ? $this->_result->rowCount() : 0;\n }", "public function num_rows() {\n\t\treturn $this->GetNumRows();\n\t}", "public function count_rows() {\r\n return $this->db->count_all_results($this->table_name);\r\n }", "public function count() {\n\t\t$results = $this->execute();\n\t\treturn $results ? count($results) : 0;\n\t}", "function getNumRows() {\r\n\t\t\tif($this->privateVars['resultset']) {\r\n\t\t\t\tif(@mysql_num_rows($this->privateVars['resultset']))\r\n\t\t\t\t\treturn mysql_num_rows($this->privateVars['resultset']);\r\n\t\t\t}\r\n\t\t\treturn -1;\r\n\t\t}", "function num_rows($query)\n\t{\n\t\tif(!is_object($query))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif(is_numeric(stripos($query->queryString, 'SELECT')))\n\t\t{\n\t\t\t$query = $this->db->query($query->queryString);\n\t\t\t$result = $query->fetchAll();\n\t\t\treturn count($result);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $query->rowCount();\n\t\t}\n\t}", "public abstract function row_count();", "function num_rows($query)\n\t{\n\t\treturn pg_num_rows($query);\n\t}", "public function count()\n {\n return $this->queryResult->getSize();\n }", "function getNRows() \n { \n if($this->rsQry)\n {\n return true;\n }\n else\n {\n\t\t\t return mysql_num_rows($this->rsQry);\n }\n\t\t}", "public function count() {\n return count($this->__rows__);\n }", "function num_rows() {\r\n\t\treturn $this->dbh->num_rows();\r\n\t}", "public function rowCount () {\n return $this->query->rowCount();\n }", "public function countRows()\n {\n return count($this->rows);\n }", "public function count()\n {\n $result = new QueryResult($this);\n return $result->count();\n }", "public function count()\n\t{\n\t\t// Execute query and return count\n\t\t$result = $this->execute();\n\t\treturn ($result !== false) ? count($result) : 0;\n\t}", "public function getNumRows()\n {\n \treturn $this->previouslyExecuted->num_rows;\n }", "function get_num_records()\n\t{\n\t\t$this->sql = 'SELECT COUNT(*) FROM ' . $this->table;\n\t\t$this->apply_filters();\n\t\treturn db_getOne($this->sql, $this->use_db);\n\t}", "public function count() {\n return $this->row_count();\n }", "public function count_rows()\n {\n $m_num_rows = $this->c_obj_stmt->rowCount();\n return $m_num_rows;\n }", "public function getNumberOfRows();", "public function count()\n {\n return count($this->_rows);\n }", "function count()\n {\n $this->object->select($this->object->get_primary_key_column());\n $retval = $this->object->run_query(FALSE, FALSE, FALSE);\n return count($retval);\n }", "function getNumRows() {\r\n return mysql_num_rows($this->m_Result);\r\n }", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n return $row['total_rows'];\n }", "function numrows() {\r\n\t\treturn $this->numrows;\r\n\t}", "public function getNumRows() {\n\t\treturn $this->_num_rows;\n\t}", "public function count(){\n\t\t\t$query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n\t\t\n\t\t\t$stmt = $this->conn->prepare( $query );\n\t\t\t$stmt->execute();\n\t\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\n\t\t\n\t\t\treturn $row['total_rows'];\n\t\t}", "function count()\n{\n\tif (!$this->getSql()) return 0;\n\t$rows = $this->getClone()->select('count(*) as n');\n\treturn (int)$rows[0]['n'];\n}", "public function getRowsCount()\n {\n if ($this->num_rows === 0 && count($this->resultArray()) > 0) {\n $this->num_rows = count($this->resultArray());\n @oci_execute($this->stmt_id, OCI_DEFAULT);\n\n if ($this->curs_id) {\n @oci_execute($this->curs_id, OCI_DEFAULT);\n }\n }\n\n return $this->num_rows;\n }", "function num_rows()\n\t{\n\t\t$num_rows=0;\n\t\treturn !$num_rows = sqlsrv_num_rows($this->result_id) ? 0 : $num_rows;\n\t}", "function sql_num_rows($result) {\n\t\treturn pg_num_rows($result);\n\t}", "public function num_rows($query_result) {\n//\t\t\twhile ( OCIFetchINTO($query_result,$dumy,OCI_ASSOC) ) {\n//\t\t\t\t$i++;\n//\t\t\t}\n//\t\t\t//return ocifetchstatement($query_result,$dumy);\n//\t\t\treturn $i;\n\t\t}", "public function get_rows_count()\n\t{\n\t\treturn count($this->get_rows());\n\t}", "function RecordCount() {\r\n return $this->result->numRows();\r\n }", "public function getNumberOfRows()\r\n {\r\n return count($this->data);\r\n }", "public function rowCount() {\n\t\tif( !$this->_result ) return 0;\n\t\treturn mssql_num_rows($this->_result);\n\t}", "public function count(){\n $query = \"SELECT COUNT(*) as total_rows FROM \".$this->table_name. \"\";\n\n $stmt = $this->conn->prepare($query);\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n\n return $row['total_rows'];\n }", "public function GetNumberOfRows() {\n return $this->num_rows;\n }", "public function RowCount()\r\n\t{\r\n\t\t$this->ResetError();\r\n\t\tif( !$this->IsConnected() )\r\n\t\t{\r\n\t\t\t$this->SetError('No connection', -1);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telseif( !$this->last_result )\r\n\t\t{\r\n\t\t\t$this->SetError('No query results exist', -1);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t$result = @mysql_num_rows( $this->last_result );\r\n\t\t\tif( !$result )\r\n\t\t\t{\r\n\t\t\t\t$this->SetError();\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn $result;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function count()\n {\n $query = \"SELECT COUNT(*) as total_rows FROM \" . $this->table_name . \"\";\n \n $stmt = $this->conn->prepare( $query );\n $stmt->execute();\n $row = $stmt->fetch(PDO::FETCH_ASSOC);\n \n return $row['total_rows'];\n }", "public function getNumRows() {\n\t\t$this->_numRows = mysqli_num_rows($this->_result);\n\t\treturn $this->_numRows;\n\t}", "public function num_rows()\r\n {\r\n return $this->num_rows;\r\n }", "public function count(): int\n {\n return $this->statement->rowCount();\n }", "public function rowCount()\n {\n return $this->exec()->rowCount();\n }", "public function num_rows($result){\n return count($result); \n }", "public function num_rows()\n\t{\n\t\tif ($this->sqlResource)\n\t\t{\n\t\t\treturn (mysql_num_rows($this->sqlResource));\n\t\t}\n\t}", "function numResults() {\n\t\treturn $this->num_rows();\n\t}", "public function numRows() : int\n\t{\n\t\treturn $this->handle->numRows($this->result);\n\t}", "function RowCount() {}", "public function count() {\n $s = $this->buildSelect(true, null, false, false);\n return $s->numRows();\n }", "function nbrRows() {\n return mysqli_num_rows($this->result);\n }", "function num_rows()\n\t{\n\t\treturn @mysqli_num_rows($this->m_query_id);\n\t}", "function NumRows() {\n\t\t\tif ($this->result) {\n\t\t\t\treturn mysql_num_rows($this->result);\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n \t}", "function sql_num_rows($res)\n {\n // DELETE, INSERT, UPDATE\n // do not use : SELECT\n return $res->rowCount();\n }", "function Rows()\n\t{\n\t\tif(!$this->Ready(true))\n\t\t\treturn $this->Error('query.exec', __FUNCTION__);\n\t\t\t\n\t\t$q = $this->Run();\n\t\t$r = num_rows($q);\n\t\t\n\t\treturn $r;\n\t}", "function num_rows() {\n\t\n\t\t$num = @mysql_num_rows($this->rstemp);\n\t\tif ($this->debug) echo \"$num records returneds <br>\\n\\n\";\t\n\t\t\n\t\treturn $num;\t\t\n\t}", "public function GetRowCount() : INT\r\n {\r\n return($this->preparedStatement->rowCount());\r\n }", "public function num_rows($query){\n $query = $this->db->query($query);\n $num_rows = $query->num_rows();\n return $num_rows;\n }", "public function numOfRows();", "public function count()\n {\n return $this->rows;\n }", "public function num_rows()\n {\n if($this->result)\n {\n $num = mysqli_num_rows($this->result);\n }\n else\n {\n $num = 0;\n }\n return $num; \n }", "function num_rows()\r\n\t{\r\n\t\tif ( ! $this->pdo_results ) {\r\n\t\t\t$this->pdo_results = $this->result_id->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t}\r\n\t\treturn sizeof($this->pdo_results);\r\n\t}", "public function num_rows() {\n if($this->result) {\n $num = mysqli_num_rows ($this->result);\n }else {\n $num = 0;\n }\n return $num;\n }", "public function numRows() {\n\t\treturn $this->sth->rowCount();\n\t}", "public function getNumberOfRows() {\n return count($this->rows);\n }", "public function num_rows()\n {\n if(is_resource($this->resource))\n {\n $result = pg_num_rows($this->resource);\n\n if(!$result)\n {\n return false;\n }\n else\n {\n return $result;\n }\n }\n else\n {\n return false;\n }\n }", "function get_count()\n\t{\n\t\treturn $this->__num_rows;\n\t}", "public function count(): int\n {\n if ($this->numberOfRows === null) {\n if (is_array($this->rows)) {\n $this->numberOfRows = count($this->rows);\n } else {\n $this->numberOfRows = $this->query->count();\n }\n }\n return $this->numberOfRows;\n }", "public function count( )\n {\n if ( !$this->db_query_result )\n return 0;\n\n return @ mysql_num_rows( $this->db_query_result );\n }", "public function getNumRows();", "public function numRows() {\r\n\t\tif ($this->hasError()) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\treturn mysql_num_rows($this->result);\r\n\t}", "public function num_rows()\n\t{\n\t\tif ( ! is_int($this->num_rows))\n\t\t{\n\t\t\tif (count($this->result_array) > 0)\n\t\t\t{\n\t\t\t\treturn $this->num_rows = count($this->result_array);\n\t\t\t}\n\t\t\telseif (count($this->result_object) > 0)\n\t\t\t{\n\t\t\t\treturn $this->num_rows = count($this->result_array);\n\t\t\t}\n\n\t\t\treturn $this->num_rows = count($this->result_array());\n\t\t}\n\n\t\treturn $this->num_rows;\n\t}", "public function getCount() {\n\t\treturn $this->db->fetchColumn ( \"SELECT COUNT(id) FROM \" . $this->table );\n\t}", "public function count()\n\t{\n\t\treturn $this->result->count();\n\t}", "function numRows()\n{\n\t$num = mysql_num_rows($this->res);\n\treturn $num;\n}", "function get_row_count() {\n $query = \"SELECT COUNT(*) FROM failure;\";\n $count = select_scalar($query);\n return $count;\n}", "function num_rows()\n\t{\n\t\treturn @mysqli_num_rows($this->result_id);\n\t}", "public function getNumberOfRecords() {\r\n\t\treturn mysqli_num_rows($this->result);\r\n\t}", "public function getNumberOfRows(){\r\n $this->setTable('subscribed');\r\n $table = $this->getTable();\r\n\r\n $sql = \"SELECT * FROM \" . $table;\r\n $stmt = $this->fetch()->query($sql);\r\n return $stmt->rowCount();\r\n }", "public function getNumRows(){\n return $this->numrows;\n }", "public function num_rows()\n {\n return @mysql_num_rows( $this->Query_ID );\n }", "public function getNbResults()\n {\n return $this->select->count();\n }", "public function CountRow()\n\t{\n\treturn HDB::hus()->Hcount(\"partdata\");\n\t}", "public function number_of_rows()\n {\n if (is_bool($this->result))\n {\n return $this->mysqli->affected_rows;\n }\n else\n {\n return $this->result->num_rows;\n }\n }", "public function num_rows() {\n\n\n\t\t/**\n\t\t* Obtener el numero total de registros ejemplo: en (modelo)\n\t\t* $this->db->query(\"SELECT * FROM blog\");\n\t\t* echo $this->db->num_rows();\n\t\t**/\n\n\t\t$num_rows = $this->result->num_rows;\n\n\t\treturn $num_rows;\n\n\t}", "public abstract function GetNumRows();", "public function numberOfRows();", "public function getNumberOfRows() {\n\n $query = $this->db->prepare(\"SELECT COUNT(*) FROM `products`\");\n\n try {\n\n $query->execute();\n $rows = $query->fetchColumn();\n\n return $rows;\n\n } catch (PDOException $e) {\n die($e->getMessage());\n }\n }", "public function getRowCount() {\n return $this->statement->rowCount();\n }", "public function countQuery();", "public function getCount()\n {\n if ($this->_queryResult === null) {\n return 0;\n }\n\n return $this->_queryResult->count();\n }" ]
[ "0.864723", "0.8512401", "0.8450332", "0.83071303", "0.82695067", "0.8264866", "0.8256076", "0.8242351", "0.82259053", "0.821804", "0.82048744", "0.8193916", "0.81896925", "0.81793064", "0.81719905", "0.8169355", "0.8155625", "0.8155009", "0.814531", "0.81434816", "0.81401163", "0.8135505", "0.8130727", "0.811068", "0.81086016", "0.8105858", "0.80971324", "0.8069709", "0.806694", "0.80490136", "0.8043524", "0.80355024", "0.8033785", "0.80311865", "0.8030307", "0.8027093", "0.8027072", "0.80255795", "0.80219465", "0.8011115", "0.8001462", "0.7985677", "0.79728943", "0.797245", "0.7972313", "0.7968104", "0.7967586", "0.7965201", "0.7964489", "0.7961154", "0.79609555", "0.7959614", "0.79593426", "0.795906", "0.7957276", "0.7953211", "0.7946344", "0.7946325", "0.7943902", "0.79364866", "0.7929946", "0.7920723", "0.79109526", "0.79095554", "0.79053915", "0.7902653", "0.78790957", "0.7871597", "0.78714454", "0.78695494", "0.7867881", "0.7866656", "0.7864995", "0.78577435", "0.78566915", "0.78470755", "0.784327", "0.78379077", "0.7828922", "0.78288287", "0.7822464", "0.78185683", "0.7814696", "0.7809955", "0.78088886", "0.77980256", "0.77973175", "0.7797167", "0.7797148", "0.7791697", "0.77881706", "0.7787657", "0.7786902", "0.77864474", "0.7783662", "0.7780551", "0.7780499", "0.7779753", "0.7776561", "0.77433425", "0.77351236" ]
0.0
-1
Return the selected field. E.g.: $name = $db>getField( "name", "SELECT name FROM user LIMIT 1" );
function get_field( $field, $query = null ){ if( $row = $this->get_row( $query ) and isset( $row[$field] ) ) return $row[$field]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchField();", "function GetField($field=0){\n\t\t\treturn @mysql_result($this->result,0,$field);\n\t\t}", "public function get_field(/* .... */)\n {\n return $this->_field;\n }", "public function getField($field_name);", "public function select($field);", "public abstract function FetchField();", "function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}", "public function getField($name) { return $this->fields[$name]; }", "public function getField();", "public function getField();", "public function getField();", "function getFieldValue($field);", "function get_field($name)\r\n {\r\n if ($name)\r\n {\r\n $tempArray = fetch_to_array(database::query(\"SELECT * FROM system WHERE name='$name'\"),\"\");\r\n if (is_array($tempArray)) return(current($tempArray));\r\n }\r\n else return (false);\r\n }", "public function selectField($a_szQuery, $a_szField) {\n\t\t$oResult = $this->dbquery($a_szQuery);\n\t\tif($this->numRows($oResult) == 0) return null;\n\t\t$aryData = $this->fetchArray($oResult);\n\t\t$this->freeResult($oResult);\n\t\treturn $aryData[$a_szField];\n\t}", "public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }", "function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}", "public function getField() {\n\t\treturn $this->field; \n\t}", "public function getField()\n {\n return $this->_field;\n }", "public function get_field_name();", "public function getField() {\n\t\treturn $this->field;\n\t}", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField()\n {\n return $this->field;\n }", "public function getField() {\n\t\treturn $this->_field;\n\t}", "function news_get_field( $p_news_id, $p_field_name ) {\r\n\t\t$row = news_get_row( $p_news_id );\r\n\t\treturn ( $row[$p_field_name] );\r\n\t}", "public function getField(): string\n {\n return $this->field;\n }", "public abstract function GetCurrentField();", "public function getField(){\n return $this->field;\n }", "public function getField(): string;", "function getField($field){\n\t\t$query = \"SELECT `$field` FROM `mkombo_university`.`staff` WHERE `username`='\".$_SESSION['username'].\"'\";\n\t\tif($query_run = @mysql_query($query)){\n\t\t\tif($query_result = @mysql_result($query_run,0, $field)){\n\t\t\t\treturn $query_result;\n\t\t\t}\n\t\t}\t\t\n\t}", "public function getField($name) {\n\t\treturn $this->fields[$name];\n\t}", "function getField(){\n\t\treturn $this->Field;\n\t}", "public function getField($fieldName) {}", "function get_field($type, $type_id = '', $field = 'name')\n {\n if ($type_id != '') {\n $l = $this->db->get_where($type, array(\n $type . '_id' => $type_id\n ));\n $n = $l->num_rows();\n if ($n > 0) {\n return $l->row()->$field;\n }\n }\n }", "function db_get_field($query)\n{\n\t$args = func_get_args();\n\n\tif ($_result = call_user_func_array('db_query', $args)) {\n\t\n\t\t$result = driver_db_fetch_row($_result);\n\n\t\tdriver_db_free_result($_result);\n\n\t}\n\n\treturn (isset($result) && is_array($result)) ? $result[0] : NULL;\n}", "function get_field($id=false, $field=false) {\n\t\tif(!$id && !$field) return false;\n\t\tglobal $wpdb;\n\t\t$query = \"SELECT wposts.$field FROM $wpdb->posts wposts WHERE wposts.ID=$id\";\n\t\t$results = $this->query($query);\n\t\tif(isset($results[0])) return $results[0]->$field;\n\t}", "function getuserfield($field){\n \t$query=\"SELECT $field FROM users WHERE userID=\".$_SESSION['RCMS_user_id'];\n \tif ($query_run=mysqli_query($GLOBALS['link'],$query)) {\n \t\tif ($query_result=mysqli_fetch_row($query_run)) {\n \t\t\treturn $query_result[0];\n \t\t}\n \t}\n }", "function getfield($field){\n\t\t$query = \"SELECT * FROM `users` WHERE Id=\". $_SESSION['user_id'];\t\t\n\n\t\tif ($query_run=mysql_query($query)){\n\t\t\tif($query_result=mysql_result($query_run, 0, $field)){\n\t\t\t\treturn $query_result;\n\t\t\t}\n\t\t}else{\n\t\t\treturn 'Wrong field or query not executed right';\n\t\t}\n\t}", "function db_field_name($qid, $fieldno) {\n\n\treturn mysqli_fetch_field_direct($qid, $fieldno);\n}", "public function get($field);", "public function get($field);", "public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}", "public function getField($name) {\n return $this->getFields()[$name];\n }", "public function getSelectableField($fieldName);", "public function getField($name)\n {\n return $this->fields[$name];\n }", "function field($id, $field, $default=null) {\n\t\tif(array_key_exists($field, $this->schema())) {\n\t\t\t$res = $this->query('SELECT `'.$field.'` FROM `'.$this->table.'` WHERE `'.$this->primaryKey.'` = \\''.$this->escape($id).'\\' LIMIT 1');\n\t\t\tif($row = $res->fetch_row()) {\n\t\t\t\t$res->free();\n\t\t\t\treturn $row[0];\n\t\t\t}\n\t\t} else { /* throw error? */ }\n\t\treturn $default;\n\t}", "function get_gp_field($gid, $field) {\n global $db;\n $results = $db->select(tbl($this->gp_tbl), $field, \"group_id='$gid'\");\n\n if ($db->num_rows > 0) {\n return $results[0];\n } else {\n return false;\n }\n }", "public function getUserfield();", "function getField ( $name )\n\t{\n\t\tif ( ake ( $name , $this->_fields ) )\n\t\t{\n\t\t\treturn $this->_fields[$name] ;\n\t\t}\n\t\treturn null ;\n\t}", "public function getFieldName() {}", "function field($dsstr)\n{\n\t$args = func_get_args();\n\t$sql = $this->getSelectSql($dsstr, $args);\n\t$this->setLimit(1);\n\t$res = $this->query($sql);\n\t$data = $this->drv->fetch($res, 'r');\n\tif (!$data) return null;\n\treturn $data[0];\n}", "public function getFieldValue(/*string*/ $fieldName);", "public function getUserField($field = null) {\n\t\treturn $this->_objUserInfo->getUserField($field);\n\t}", "function getField($id, $table, $field){\n\t$q = mysql_query(\"SELECT `$field` FROM `$table` WHERE `id`='$id'\");\n\t$qd = mysql_fetch_assoc($q);\n\treturn stripslashes($qd[$field]);\n}", "function FetchField($off = 0)\n\t{\n\n\t\t$o= new ADOFieldObject();\n\t\t$o->name = @pg_field_name($this->_queryID,$off);\n\t\t$o->type = @pg_field_type($this->_queryID,$off);\n\t\t$o->max_length = @pg_fieldsize($this->_queryID,$off);\n\t\treturn $o;\n\t}", "public function getField($field_name) {\n $retval = NULL;\n // if field exists\n if (array_key_exists($field_name,$this->form_fields)) {\n $retval = $this->form_fields[$field_name];\n }\n return $retval;\n }", "function &getField($name){\n\t\t$fields =& $this->fields();\n\t\tif ( !isset($fields[$name]) ){\n\t\t\treturn null;\n\t\t} else {\n\t\t\treturn $fields[$name];\n\t\t}\n\t}", "public function getField($name)\n {\n return $this->fields[$name] ?: $this->addField($name);\n }", "public function getField($id)\r\n {\r\n return $this->_fetch($id);\r\n }", "function getField($col, $sF, $sV, $tbl, $cmd, $other = null) \n {\n return $this->$cmd(\"SELECT {$this->clean($col) } FROM {$this->clean($tbl) } WHERE {$this->clean($sF) }='{$this->clean($sV) }' {$other}\");\n }", "public function getDbFieldName($field_name);", "function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }", "public function field($fieldName = '') {\n if (!empty($fieldName)) {\n $this->currentField = $fieldName;\n }\n\n if (isset($this->fields[$this->currentField])) {\n return $this->fields[$this->currentField];\n } else {\n return null;\n }\n }", "function getValue(int $field);", "function get_field($field, $where_field, $where_value, $debug = FALSE)\r\n {\r\n \t\r\n \t$this->db->select($field)->from($this->table)->where($where_field, $where_value);\r\n \t$query_db = $this->db->get();\r\n \t\r\n \tif($debug)\r\n \t{\r\n \t\tprint_a('Arguments~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');\r\n \t\tprint_a($field);\r\n \t\tprint_a($where_field);\r\n \t\tprint_a($where_value);\r\n \t\t\r\n \t\tprint_a('SQL returned handle ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');\r\n \t\tprint_a($query_db);\r\n \t\t\r\n \t\tprint_a('DB data~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~');\r\n \t\tprint_a($query_db->row_array());\r\n \t}\r\n \telse\r\n \t{\r\n \t\tif($query_db->num_rows)\r\n \t\t{\r\n \t\t\t$results = $query_db->row_array(); \r\n \t\t\treturn $results[$field];\r\n \t\t\t\r\n \t\t}\r\n \t\treturn FALSE;\r\n \t}\r\n \t\r\n }", "public function getField($name) {\n return $this->body->getField($name);\n }", "public function getFieldById($id = false) {\n\t\t\t// Database Connection\n\t\t\t$db\t\t\t\t= $GLOBALS['db_q'];\n\t\t\t// Query set up\t\n\t\t\t$return\t\t\t= ($id) ? $db->getRow('tb_field', '*', \"id = {$id}\") : false;\n\t\t\t// Return\n\t\t\treturn $return;\n\t\t}", "public function getField($field, $default = \"\", $filter = false)\n {\n return Data::get($field, static::FIELD_PREFIX . $this->getID(), $default, $filter);\n }", "function get_field($selector, $post_id = \\false, $format_value = \\true)\n{\n}", "public function getSearchField($class, $field);", "public function selectField($field, $as = NULL) {\r\n\r\n\t\tif ($field instanceof SqlExpr) {\r\n\t\t\t$sqlExpr = $field;\r\n\t\t\t$field = $sqlExpr->getFieldName();\r\n\t\t\tif ($field === NULL) {\r\n\t\t\t\tthrow new SaltException(L::error_query_select_expr);\r\n\t\t\t}\r\n\t\t} else if (!is_string($field)) {\r\n\t\t\tthrow new SaltException(L::error_query_select_fieldname);\r\n\t\t} else {\r\n\t\t\t$sqlExpr = $this->$field;\r\n\t\t}\r\n\r\n\t\tif ($sqlExpr->getType() === FieldType::DATE) {\r\n\t\t\t$sqlExpr->asTimestamp();\r\n\t\t}\r\n\r\n\t\treturn $this->select($sqlExpr, ($as === NULL)?$field:$as);\r\n\t}", "function getField($field,$table,$chkfield,$id=0)\n\t{\n\t\t$ret=0;\n\t\tif($field)\n\t\t{\n\t\t\tif($table)\n\t\t\t{\n\t\t\t\t$where=$this->WhereClause($chkfield,$id);\n // $t_field=$this->sqlFormatField($field);\n\t\t\t\tif(strlen($where))\n\t\t\t\t{\n\t\t\t\t\t$sql=\"select $field from $table where $where\";\n\t\t\t\t\t$qt=$this->query($sql);\n\t\t\t\t\tif($qt)\n\t\t\t\t\t{\n\t\t\t\t\t\tif($temp_arr=$this->getRow(MYSQL_ASSOC))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$ret=$temp_arr[$field];\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}", "function get_val($id, $field){\n if($id){\n $q = sql_query(\"SELECT `$field` FROM `entities` WHERE `ID` = '$id'\");\n $r = mysqli_fetch_row($q);\n mysqli_free_result($q);\n return $r[0];\n }\n else{\n return \"\";\n }\n}", "public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }", "function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}", "public function getField(string $name, string $class=null): Field;", "function get_table_field($table){\n\t return mysql_query(\"SHOW FIELDS FROM \".$table, $this->link);\t\t\n\t}", "public function getFieldValue($name)\n\t\t{\n\t\t\treturn $this->row[$name];\n\t\t}", "public function getField($fieldName) {\n\t\t$result = NULL;\n\t\tif ($this->hasField($fieldName)) {\n\t\t\t$result = $this->tca['columns'][$fieldName];\n\t\t}\n\t\treturn $result;\n\t}", "public function getFieldName() {\r\n return $this->_fieldName;\r\n }", "function getField($campo)\n{\n\treturn $this->res2[$campo];\n}", "function fieldvalue($field=\"menu_id\",$id=\"\",$condition=\"\",$order=\"\")\n\t{\n\t\t$rs=$this->fetchrecordset($id, $condition, $order);\n\t\t$ret=0;\n\t\twhile($rw=mysql_fetch_assoc($rs))\n\t\t{\n\t\t\t$ret=$rw[$field];\n\t\t}\n\t\treturn $ret;\n\t}", "public function getFieldName() {\n return $this->fieldName;\n }", "public function getField($pk = null)\n\t{\n\t\treturn parent::getRecord($pk);\n\t}", "public static function getField($query)\n {\n if ($_result = call_user_func_array(array('self', 'query'), func_get_args())) {\n\n $result = self::$_db->fetchRow($_result, 'indexed');\n\n self::$_db->freeResult($_result);\n\n }\n\n return (isset($result) && is_array($result)) ? $result[0] : NULL;\n }", "public function getField()\n\t{\n\t\t// this Fldsrc is not related to the target-table\n\t\treturn null;\n\t}", "public function __get($field)\n {\n if ($field == 'userId')\n {\n return $this->uid;\n }\n else \n {\n return $this->fields[$field];\n }\n }", "function fetch_field($tbl_name, $flds, $where_condition)\n\n\t{\n\n\t\t\n\n\t\t$param_array = func_get_args();\n\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD database_manipulation::fetch_field() - PARAMETER LIST : ', $param_array);\n\n\n\n\t\t$qry = \"select \" . $flds . \" from \" . $tbl_name . \" where 1 = 1 and \" . $where_condition;\n\n\t\t\n\n\t\t$res = $this->execute_sql($qry);\n\n\t\t\n\n\t\t$data = mysql_fetch_array($res[0]);\n\n\t\t\n\n\t\t//$ret_val = $data->$flds;\n\n\t\t$ret_val = $data[0];\n\n\t\t\n\n\t\t$GLOBALS['logger_obj']->debug('<br>METHOD database_manipulation::fetch_field() - Return Value : ', $ret_val);\n\n\n\n\t\treturn $ret_val;\n\n\t\n\n\t}", "function exam_get_field($field, $exam)\r\n{\r\n include \"connect.inc.php\";\r\n\r\n $query = \"SELECT `$field` FROM `exams` WHERE `exam_id`='$exam'\";\r\n if ($query_run = mysqli_query($con, $query)) {\r\n if ($row = mysqli_fetch_row($query_run)) {\r\n return $row[0];\r\n } else {\r\n\r\n }\r\n } else {\r\n echo \"There was a problem\";\r\n }\r\n\r\n}", "public function getField($field_name, $check_db_on_fail = true){\n if(isset($this->data[$this->alias][$field_name]))\n return $this->data[$this->alias][$field_name];\n else if($check_db_on_fail && $this->id)\n return $this->field($field_name);\n else\n return null;\n }", "public function selectField($name)\n {\n return new SelectField($this, $name);\n }", "public function getFieldByName($field) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_resultFields[$field]) && isset($this->_result[$this->_resultFields[$field]])) return $this->_result[$this->_resultFields[$field]];\n\t\t\telse parent::throwGetColException('trying to get non existing data ('.$field.') in PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('trying to get non existing data ('.$field.') in PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t}", "public function getField($field) {\n\n\t\tif (!empty($this->options[$field]))\n\t\t\treturn $this->options[$field];\n\n\t}", "public function field(string $query = null): mixed;", "function getfield($field){\r\n\t$mysql_host='localhost';\r\n$mysql_user='root';\r\n$mysql_pass='';\r\n\r\n$mysql_db='userdata';\r\n\tif(!($con=mysqli_connect($mysql_host,$mysql_user,$mysql_pass,$mysql_db))){\r\n\t\tdie(\"could not connect\");\r\n\t}\r\n\t$user_id= $_SESSION['user_id'];\r\n\t$query=\"SELECT `$field` FROM `users` WHERE id='$user_id'\";\r\n\tif($query_run=mysqli_query($con,$query)){\r\n\t\t$row=mysqli_fetch_assoc($query_run);\r\n\t\treturn $row[$field];\r\n\t} \r\n\r\n}", "function getSelectedFieldsRecordByField($selectedFields, $fieldName, $searchKey, $orderByField='', $orderByValue='')\r\n\t\t{\r\n\t\t\t$sqlRecord = $this->getSelectedTableRecordByField($this->table, $selectedFields, $fieldName , $searchKey, $orderByField, $orderByValue );\r\n\t\t\treturn $sqlRecord;\r\n\t\t\t\r\n\t\t}", "function getField($f,$tb,$w='',$k=''){\n\t\t$s = 'SELECT '.$f.' FROM '.$tb.($w!=''?' WHERE '.$w.' = '.$k:'');\n\t\t// pr($s);exit();\n\t\t$e = mysql_query($s);\n\t\t$r = mysql_fetch_assoc($e);\n\t\treturn $r[$f];\n\t}", "function getByField ( $field,$value){\n\t\t $result=$this->fetchRow(\"$field= '$value' \"); //order by id?\n\t\t if($result==null)\n\t\t\t return;\n\t\t if(is_array($result))\n\t\t\t return $result[0];\n\t\t return $result;\n\t}", "public function get_field( string $field ) {\n\t\tif ( array_key_exists( $field, $this->data ) ) {\n\t\t\treturn $this->data[ $field ];\n\t\t}\n\n\t\treturn '';\n\t}" ]
[ "0.7866787", "0.77709866", "0.75318277", "0.752762", "0.74431556", "0.74267995", "0.7345674", "0.7341357", "0.7313169", "0.7313169", "0.7313169", "0.73038244", "0.7265691", "0.72484696", "0.71794736", "0.7159486", "0.71347433", "0.71257126", "0.71246845", "0.70891994", "0.70881337", "0.70881337", "0.70881337", "0.70881337", "0.7078581", "0.70648205", "0.7058391", "0.70524013", "0.7048814", "0.7044971", "0.70419884", "0.7035176", "0.70171475", "0.7003802", "0.6994578", "0.6993774", "0.699012", "0.6979352", "0.69788927", "0.6976416", "0.6974667", "0.6974667", "0.6970191", "0.6936763", "0.6928834", "0.6920298", "0.6916768", "0.69141054", "0.6896686", "0.68909377", "0.6871851", "0.685613", "0.68141353", "0.6787595", "0.6768442", "0.6740209", "0.673582", "0.6730804", "0.66744334", "0.6664027", "0.6659711", "0.6645083", "0.6609967", "0.65914434", "0.65861166", "0.6566576", "0.654139", "0.653213", "0.652026", "0.6517074", "0.65153784", "0.65123284", "0.6507328", "0.65000844", "0.64906496", "0.6480485", "0.64799714", "0.64758414", "0.6465833", "0.64572704", "0.6446865", "0.64448893", "0.64335763", "0.6431616", "0.6429171", "0.64286995", "0.6420565", "0.64169633", "0.6411332", "0.6410654", "0.6399177", "0.6391306", "0.63746095", "0.63730264", "0.6369345", "0.63614416", "0.6359969", "0.6357053", "0.6353408", "0.6349131" ]
0.73475766
6