DExifII*E`....................................../////.===Shadow-Here===./////................................................ > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < > < ------------------------------------------------------------------------------------------------------------------- /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// RIFF¤ WEBPVP8 ˜ ðÑ *ôô>‘HŸK¥¤"§£±¨àð enü¹%½_F‘åè¿2ºQú³íªú`N¿­3ÿƒügµJžaÿ¯ÿ°~¼ÎùnúîÞÖô•òíôÁÉß®Sm¥Ü/ ‡ó˜f£Ùà<˜„xëJ¢Ù€SO3x<ªÔ©4¿+ç¶A`q@Ì“Úñè™ÍÿJÌ´ª-˜ÆtÊÛL]Ïq*‘Ý”ì#ŸÌÏãY]@ê`¿ /ªfkØB4·®£ó z—Üw¥Pxù–ÞLШKÇN¾AkÙTf½è'‰g gÆv›Øuh~ a˜Z— ïj*á¥t d£“uÒ ¨`K˜¹ßþ]b>˜]_ÏÔ6W—è2r4x•íÖ…"ƒÖNîä!¦å Ú}ýxGøÌ —@ ;ÆÚŠ=ɾ1ý8lªË¥ô ^yf®Œ¢u&2©nÙÇ›ñÂñŒ³ aPo['½»øFùà­+4ê“$!lövlüÞ=;N®3ð‚õ›DÉKòÞ>ÄÍ ¥ˆuߤ#ˆ$6ù™¥îЇy’ÍB¼ çxÛ;X"WL£R÷͝*ó-¶Zu}º.s¸sšXqù–DþÿvªhüïwyŸ ¯é³lÀ:KCûÄ£Ëá\…­ ~—ýóî ¼ûûÜTÓüÇy…ŽÆvc»¾×U ñ¸žþоP÷¦ó:Ò¨¨5;Ð#&#ÖúñläÿÁœ GxÉ­/ñ‡áQðìYÉtÒw޼GÔ´zàÒò ð*ëzƒ•4~H]Ø‹f ñÓÈñ`NåWçs'ÆÏW^ø¹!XžµmQ5ÃËoLœÎ: ÞËÍ¥J ù…î èo£ßPÎñ¶ž8.Œ]ʵ~5›ÙË-ù*8ÙÖß±~ ©¹rÓê‚j¶d¸{^Q'˜±Crß ÚH—#¥¥QlÀ×ëã‡DÜ«èî þ&Çæžî;ŽÏºò6ÒLÃXy&ZŒ'j‚¢Ù€IßÚù+–MGi‰*jE€‘JcÜ ÓÌ EÏÚj]o˜ Þr <¾U ûŪæÍ/šÝH¥˜b”¼ ÁñßX GP›ï2›4WŠÏà×£…íÓk†¦H·ÅíMh–*nó÷à]ÁjCº€b7<ب‹¨5車bp2:Á[UªM„QŒçiNMa#<5›áËó¸HýÊ"…×Éw¹¦ì2º–x<›»a±¸3Weü®FÝ⑱ö–î–³|LPÈ~çð~Çå‡|º kD¢µÏàÆAI %1À% ¹Ò – ”ϝS¦‰4&¶£°à Öý”û_Ò Áw°A«Å€?mÇÛgHÉ/8)á¾ÛìáöŽP í¨PŸNÙµº¦‡§Ùš"ÿ«>+ªÕ`Ê÷‡‚ß Õû˜þãÇ-PÍ.¾XV‘€ dÜ"þ4¹ ±Oú‘©t¥¦FªÄÃÄ•b‚znýu½—#cDs˜ÃiÑOˆñ×QO=*IAÊ,¶ŽZƒ;‡wøXè%EÐk:F±Ú” .Ѽ+Áu&Ç`."pÈÉw o&¿dE6‘’EqTuK@Ì¥ã™À(Êk(h‰,H}RÀIXÛš3µ1©_OqÚÒJAñ$ÊÙÜ;D3çŒ[þùœh¬Ã³™ö6ç†NY".Ú‰ï[ªŸŒ '²Ð öø_¨ÂÉ9ué¶³ÒŠõTàîMØ#û¯gN‡bÙ놚X„ö …ÉeüÌ^J ‹€.œ$Æ)βÄeæW#óüßĺŸ€ ÀzwV 9oä»f4V*uB «Ë†¹ì¯žR霓æHXa=&“I4K;¯ç‹h×·"UŠ~<•╪Vêª&ÍSÃÆÅ?ÔqÎ*mTM ˜›µwêd#[C¡©§‘D<©àb†–ÁœøvH/,í:¯( ²£|4-„Æövv„Yͼ™^Á$ˆ„¢Û[6yB.åH*V¨æ?$=˜Ñ€•ñ·­(VlŸ‘ nÀt8W÷´Bûba?q9ú¶Xƒl«ÿ\ù¶’þòUÐj/õ¢Ìµ³g$ƒÎR!¸»|Oߍë’BhîÚÑ¢ñåŒJ„®„£2Ð3•ô02Nt…!£Í]Ïc½Qÿ?ˆ<&ÃA¾Ú,JˆijÌ#5yz„‰Î|ÊŽ5QÏ:‹ÐaóVÔxW—CpeÏzÐïíçôÿÅ_[hãsÐ_/ŽTÝ?BîˆííV$<¿i>²F¬_Eß¿ †bÊŒº­ÿ®Z H“C}”¬,Mp ý/Bá£w>˜YV°aƒúh+cŠ- r/[%|üUMHäQ°X»|û/@|°¥Ð !BÔ Ç¢Ä©š+Õì D«7ìN¶ŽðÔ " ƶ’ÖçtA‰Û×}{tþz­¾GÍ›k¹OEJR$ Â׃ «ëÁ"oÉôž$oUK(Ä)Ãz³Ê-‹êN[Ò3Œñbï8P 4ƒ×q¢bo|?<ÛX¬òÄͰL–±›(™ûG?ýË©ÚÄ–ÂDØÐ_Ç¡ô ¾–ÄÏø ×e8Ë©$ÄF¹Å‹ì[©óìl:F¾f´‹‹Xì²ï®\¬ôùƒ ÿat¥óèÒùHß0äe‚;ü×h:ÆWðHž=Ã8骣"kœ'Y?³}Tûè€>?0l›e1Lòñ„aæKÆw…hÖŠùW…ÈÆÄ0ši·›[pcwËþñiêíY/~-Á5˜!¿†A›™Mÿþ(±“t@â“ö2­´TG5yé]çå僳 .·ÍïçÝ7UÚ±Ð/Nè»,_Ï ùdj7\ï Wì4›„»c¸àešg#ÒÊ⥭áØo5‘?ÌdÝô¯ ¹kzsƒ=´#ëÉK›Ø´±-¥eW?‡çßtòTã…$Ý+qÿ±ƒ÷_3Ô¥í÷:æ–ž<·Ö‡‰Å¢ š‡%Ô—utÌÈìðžgÖÀz²À—ï÷Óîäõ{K'´È÷³yaÏÁjƒô}ž§®æÊydÕÈë5¯èˆõvÕ©ã*çD„ “z„Ó‡^^xÂ3M§A´JG‚öï 3W'ˆ.OvXè¡ÊÕª?5º7†˜(˜Ç¶#çê’¶!ÌdZK§æ 0fãaN]òY³RV ™î$®K2R¨`W!1Ôó\;Ý ýB%qæK•&ÓÈe9È0êI±žeŸß -ú@žQr¦ ö4»M¼Áè¹µmw 9 EÆE_°2ó„ŸXKWÁ×Hóì^´²GѝF©óäR†¦‰ç"V»eØ<3ùd3ÿÚ¤Žú“Gi" —‘_ÙËÎ~Üö¯¥½Î»üŸEÚŽåmÞþí ;ÞólËΦMzA"Âf(´òá;Éï(/7½ûñÌ­cïÕçлþÝz¾-ÍvÑ“pH­–ðÓj$¸Äû¤‚‘ãUBË-n“2åPkS5&‹Â|+g^œ®Ì͆d!OïäîU«c;{Û!ÅŽ«ëZ9Ókóˆ]¯ƒ›né `ÇÒ+tÆš (ØKá¾—=3œ®•vuMñg²\ï Ec€ 05±d™‡×iÇ×›UúvÌ¢£Èþ¡ÕØô¶ßÎA"ß±#Ö²ˆÊŸ¦*Ä~ij|àø.-¼'»Ú¥£h ofº¦‡VsR=N½„Î v˜Z*SÌ{=jÑB‹tê…;’HžH¯8–îDù8ñ¢|Q•bÛçš–‹m³“ê¨ åÏ^m¬Žãþ©ïêO‡½6] µÆ„Ooòü ²x}N¦Ë3ïé¿»€›HA˜m%çÞ/¿í7Fø“‹léUk)É°Œµ8Q8›:ÀŠeT*šõ~ôڝG6 ¢}`ùH­–”¡k ‰P1>š†®9z11!X wKfmÁ¦xÑ,N1Q”–æB¶M…ÒÃv6SMˆhU¬ÊPŽï‘öj=·CŒ¯u¹ƒVIЃsx4’ömÛýcå¡¶7ßŠß 57^\wÒÐÆ k§h,Œý î«q^R½3]J¸ÇðN ‚çU¬ôº^Áì} ³f©Õœ§ˆã:FÄÈ‚é(€™?àýÓüè1Gô£¼éj‚OÅñ  #>×—ßtà 0G¥Åa뀐kßhc™À_ÉñÞ#±)GD" YîäË-ÿÙ̪ ¹™a¯´¢E\ÝÒö‚;™„ë]_ p8‰o¡ñ+^÷ 3‘'dT4œŽ ðVë½° :¬víÑ«£tßÚS-3¶“þ2 †üüʨòrš¹M{É_¤`Û¨0ìjœøJ‡:÷ÃáZ˜†@GP&œÑDGÏs¡þ¦þDGú‘1Yá9Ôþ¼ ûø…§÷8&–ÜÑnÄ_m®^üÆ`;ÉVÁJ£?â€-ßê}suÍ2sõA NÌúA磸‘îÿÚ»ƒìö·á¿±tÑÐ"Tÿü˜[@/äj¬€uüªìù¥Ý˜á8Ý´sõj 8@rˆð äþZÇD®ÿUÏ2ùôõrBzÆÏÞž>Ì™xœ“ wiÎ×7_… ¸ \#€MɁV¶¥üÕÿPÔ9Z‡ø§É8#H:ƒ5ÀÝå9ÍIŒ5åKÙŠ÷qÄ>1AÈøžj"µÂд/ªnÀ qªã}"iŸBå˜ÓÛŽ¦…&ݧ;G@—³b¯“•"´4í¨ôM¨åñC‹ïùÉó¯ÓsSH2Ý@ßáM‡ˆKÀªÛUeø/4\gnm¥‹ŸŒ qÄ b9ÞwÒNÏ_4Ég³ú=܆‚´ •â¥õeíþkjz>éÚyU«Íӝ݃6"8/ø{=Ô¢»G¥ äUw°W«,ô—¿ãㆅү¢³xŠUû™yŒ (øSópÐ 9\åTâ»—*oG$/×ÍT†Y¿1¤Þ¢_‡ ¼ „±ÍçèSaÓ 3ÛMÁBkxs‰’R/¡¤ˆÙçª(*õ„üXÌ´ƒ E§´¬EF"Ù”R/ÐNyÆÂ^°?™6¡œïJ·±$§?º>ÖüœcNÌù¯G ‹ñ2ЁBB„^·úìaz¨k:#¨Æ¨8LÎõލ£^§S&cŒÐU€ü(‡F±Š¼&P>8ÙÁ ‰ p5?0ÊÆƒZl¸aô š¼¡}gÿ¶zÆC²¹¬ÎÖG*HB¡O<º2#ñŒAƒ–¡B˜´É$¥›É:FÀÔx¾u?XÜÏÓvN©RS{2ʈãk9rmP¼Qq̳ è¼ÐFׄ^¡Öì fE“F4A…!ì/…¦Lƒ… … $%´¾yã@CI¬ á—3PþBÏNÿ<ý°4Ü ËÃ#ØÍ~âW«rEñw‹eùMMHß²`¬Öó½íf³:‹k˜¯÷}Z!ã¿<¥,\#öµÀ¯aÒNÆIé,Ћ–lŽ#Àæ9ÀÒS·I’½-Ïp Äz¤Š Â* ­íÄ9­< h>׍3ZkËU¹§˜ŒŠ±f­’¤º³Q ÏB?‹#µíÃ¥®@(Gs«†vI¥Mµ‹Á©e~2ú³ÁP4ìÕi‚²Ê^ö@-DþÓàlÜOÍ]n"µã:žpsŽ¢:! Aõ.ç~ÓBûH÷JCÌ]õVƒd «ú´QÙEA–¯¯Œ!.ˆˆëQ±ù œ·Ì!Õâ )ùL„ÅÀlÚè5@B…o´Æ¸XÓ&Û…O«˜”_#‡ƒ„ûÈt!¤ÁÏ›ÎÝŠ?c9 â\>lÓÁVÄÑ™£eØY]:fÝ–—ù+p{™ðè û³”g±OƒÚSù£áÁÊ„ä,ï7š²G ÕÌBk)~ÑiCµ|h#u¤¶îK¨² #²vݯGãeÖ϶ú…¾múÀ¶þÔñ‚Š9'^($¤§ò “š½{éúp÷J›ušS¹áªCÂubÃH9™D™/ZöØÁ‡¦ÝÙŸ·kð*_”.C‹{áXó€‡c¡c€§/šò/&éš÷,àéJþ‰X›fµ“C¨œ®r¬"kL‰Â_q…Z–.ÉL~O µ›zn‚¹À¦Öª7\àHµšÖ %»ÇníV[¥*Õ;ƒ#½¾HK-ÖIÊdÏEÚ#=o÷Óò³´Š: Ç?{¾+9›–‘OEáU·S€˜j"ÄaÜ ŒÛWt› á–c#a»pÔZÞdŽtWê=9éöÊ¢µ~ ë ;Öe‡Œ®:bî3±ýê¢wà¼îpêñ¹¾4 zc¾ðÖÿzdêŒÑÒŝÀ‰s6¤í³ÎÙB¿OZ”+F¤á‡3@Ñëäg©·Ž ˆèª<ù@É{&S„œÕúÀA)‰h:YÀ5^ÂÓŒ°õäU\ ùËÍû#²?Xe¬tu‰^zÒÔãë¼ÛWtEtû …‚g¶Úüâî*moGè¨7%u!]PhÏd™Ý%Îx: VÒ¦ôÊD3ÀŽKÛËãvÆî…N¯ä>Eró–ð`5 Œ%u5XkñÌ*NU%¶áœÊ:Qÿú»“úzyÏ6å-၇¾ ´ ÒÊ]y žO‘w2Äøæ…H’²f±ÎÇ.ª|¥'gîV•Ü .̘¯€šòü¤U~Ù†*¢!?ò wý,}´°ÔÞnïoKq5µb!áÓ3"vAßH¡³¡·G(ÐÎ0Îò¼MG!/ài®@—¬04*`…«é8ªøøló“ˆÊ”èù¤…ßÊoÿé'ËuÌÖ5×È¡§ˆˆfŽë9}hìâ_!!¯  B&Ëö¶‰ÀAÙNVŸ Wh›¸®XÑJì¨ú“¿÷3uj²˜¨ÍÎìë±aúŠÝå¯ð*Ó¨ôJ“yºØ)m°WýOè68†ŸÏ2—‰Ïüꪫٚ¥‹l1 ø ÏÄFjêµvÌbü¦èÝx:X±¢H=MÐß—,ˆÉÇ´(9ú¾^ÅÚ4¿m‡$âX‘å%(AlZo@½¨UOÌÕ”1ø¸jÎÀÃÃ_ µ‘Ü.œº¦Ut: Æï’!=¯uwû#,“pþÇúŒø(é@?³ü¥‘Mo §—s@Œ#)§ŒùkL}NOÆêA›¸~r½¼ÙA—HJ«eˆÖ´*¡ÓpÌŸö.m<-"³ûÈ$¬_6­åf£ïÚâj1y§ÕJ½@dÞÁr&Í\Z%D£Íñ·AZ Û³øüd/ªAi†/Й~  ‡âĮҮÏh§°b—›Û«mJžòG'[ÈYýŒ¦9psl ýÁ ®±f¦x,‰½tN ‚Xª9 ÙÖH.«Lo0×?͹m¡å†Ѽ+›2ƒF ±Ê8 7Hցϓ²Æ–m9…òŸï]Â1äN†VLâCˆU .ÿ‰Ts +ÅÎx(%¦u]6AF Š ØF鈄‘ |¢¶c±soŒ/t[a¾–û:s·`i햍ê›ËchÈ…8ßÀUÜewŒðNOƒõD%q#éû\9¤x¹&UE×G¥ Í—™$ð E6-‡¼!ýpãÔM˜ Âsìe¯ñµK¢Ç¡ùôléœ4Ö£”À Š®Ðc ^¨À}ÙËŸ§›ºê{ÊuÉC ×Sr€¤’fÉ*j!úÓ’Gsùìoîßîn%ò· àc Wp÷$¨˜)û»H ×8ŽÒ€Zj¤3ÀÙºY'Ql¦py{-6íÔCeiØp‘‡XÊîÆUߢ܂ž£Xé¼Y8þ©ëgñß}é.ÎógÒ„ÃØËø¯»™§Xýy M%@NŠ À(~áÐvu7&•,Ù˜ó€uP‡^^®=_E„jt’ 403WebShell
403Webshell
Server IP : 50.6.201.105  /  Your IP : 13.59.212.110
Web Server : Apache
System : Linux vps-13231541.northidigital.com.br 5.14.0-427.31.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Aug 15 14:47:52 EDT 2024 x86_64
User : novotermaco ( 1059)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/novotermaco/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/novotermaco/public_html/admin/produtosinfo.php
<?php

// Global variable for table object
$produtos = NULL;

//
// Table class for produtos
//
class cprodutos extends cTable {
	var $Id;
	var $id_categoria;
	var $id_subcategoria;
	var $nome;
	var $preco;
	var $imagem;
	var $imagem2;
	var $imagem3;
	var $imagem4;
	var $imagem5;
	var $imagem6;
	var $exibir;
	var $pdf;
	var $resumo;
	var $classificada;
	var $downloads;
	var $home;
	var $seguranca;
	var $ordem;

	//
	// Table class constructor
	//
	function __construct() {
		global $Language;

		// Language object
		if (!isset($Language)) $Language = new cLanguage();
		$this->TableVar = 'produtos';
		$this->TableName = 'produtos';
		$this->TableType = 'TABLE';
		$this->ExportAll = TRUE;
		$this->ExportPageBreakCount = 0; // Page break per every n record (PDF only)
		$this->ExportPageOrientation = "portrait"; // Page orientation (PDF only)
		$this->ExportPageSize = "a4"; // Page size (PDF only)
		$this->DetailAdd = FALSE; // Allow detail add
		$this->DetailEdit = FALSE; // Allow detail edit
		$this->DetailView = FALSE; // Allow detail view
		$this->ShowMultipleDetails = FALSE; // Show multiple details
		$this->GridAddRowCount = 5;
		$this->AllowAddDeleteRow = ew_AllowAddDeleteRow(); // Allow add/delete row
		$this->UserIDAllowSecurity = 0; // User ID Allow
		$this->BasicSearch = new cBasicSearch($this->TableVar);

		// Id
		$this->Id = new cField('produtos', 'produtos', 'x_Id', 'Id', '`Id`', '`Id`', 3, -1, FALSE, '`Id`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->Id->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['Id'] = &$this->Id;

		// id_categoria
		$this->id_categoria = new cField('produtos', 'produtos', 'x_id_categoria', 'id_categoria', '`id_categoria`', '`id_categoria`', 3, -1, FALSE, '`id_categoria`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->id_categoria->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['id_categoria'] = &$this->id_categoria;

		// id_subcategoria
		$this->id_subcategoria = new cField('produtos', 'produtos', 'x_id_subcategoria', 'id_subcategoria', '`id_subcategoria`', '`id_subcategoria`', 3, -1, FALSE, '`id_subcategoria`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->id_subcategoria->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['id_subcategoria'] = &$this->id_subcategoria;

		// nome
		$this->nome = new cField('produtos', 'produtos', 'x_nome', 'nome', '`nome`', '`nome`', 200, -1, FALSE, '`nome`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['nome'] = &$this->nome;

		// preco
		$this->preco = new cField('produtos', 'produtos', 'x_preco', 'preco', '`preco`', '`preco`', 131, -1, FALSE, '`preco`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->preco->FldDefaultErrMsg = $Language->Phrase("IncorrectFloat");
		$this->fields['preco'] = &$this->preco;

		// imagem
		$this->imagem = new cField('produtos', 'produtos', 'x_imagem', 'imagem', '`imagem`', '`imagem`', 200, -1, TRUE, '`imagem`', FALSE, FALSE, FALSE, 'IMAGE');
		$this->fields['imagem'] = &$this->imagem;

		// imagem2
		$this->imagem2 = new cField('produtos', 'produtos', 'x_imagem2', 'imagem2', '`imagem2`', '`imagem2`', 200, -1, TRUE, '`imagem2`', FALSE, FALSE, FALSE, 'IMAGE');
		$this->fields['imagem2'] = &$this->imagem2;

		// imagem3
		$this->imagem3 = new cField('produtos', 'produtos', 'x_imagem3', 'imagem3', '`imagem3`', '`imagem3`', 200, -1, TRUE, '`imagem3`', FALSE, FALSE, FALSE, 'IMAGE');
		$this->fields['imagem3'] = &$this->imagem3;

		// imagem4
		$this->imagem4 = new cField('produtos', 'produtos', 'x_imagem4', 'imagem4', '`imagem4`', '`imagem4`', 200, -1, TRUE, '`imagem4`', FALSE, FALSE, FALSE, 'IMAGE');
		$this->fields['imagem4'] = &$this->imagem4;

		// imagem5
		$this->imagem5 = new cField('produtos', 'produtos', 'x_imagem5', 'imagem5', '`imagem5`', '`imagem5`', 200, -1, TRUE, '`imagem5`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['imagem5'] = &$this->imagem5;

		// imagem6
		$this->imagem6 = new cField('produtos', 'produtos', 'x_imagem6', 'imagem6', '`imagem6`', '`imagem6`', 200, -1, TRUE, '`imagem6`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['imagem6'] = &$this->imagem6;

		// exibir
		$this->exibir = new cField('produtos', 'produtos', 'x_exibir', 'exibir', '`exibir`', '`exibir`', 202, -1, FALSE, '`exibir`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['exibir'] = &$this->exibir;

		// pdf
		$this->pdf = new cField('produtos', 'produtos', 'x_pdf', 'pdf', '`pdf`', '`pdf`', 200, -1, TRUE, '`pdf`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['pdf'] = &$this->pdf;

		// resumo
		$this->resumo = new cField('produtos', 'produtos', 'x_resumo', 'resumo', '`resumo`', '`resumo`', 201, -1, FALSE, '`resumo`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['resumo'] = &$this->resumo;

		// classificada
		$this->classificada = new cField('produtos', 'produtos', 'x_classificada', 'classificada', '`classificada`', '`classificada`', 202, -1, FALSE, '`classificada`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['classificada'] = &$this->classificada;

		// downloads
		$this->downloads = new cField('produtos', 'produtos', 'x_downloads', 'downloads', '`downloads`', '`downloads`', 3, -1, FALSE, '`downloads`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->downloads->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['downloads'] = &$this->downloads;

		// home
		$this->home = new cField('produtos', 'produtos', 'x_home', 'home', '`home`', '`home`', 202, -1, FALSE, '`home`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['home'] = &$this->home;

		// seguranca
		$this->seguranca = new cField('produtos', 'produtos', 'x_seguranca', 'seguranca', '`seguranca`', '`seguranca`', 202, -1, FALSE, '`seguranca`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->fields['seguranca'] = &$this->seguranca;

		// ordem
		$this->ordem = new cField('produtos', 'produtos', 'x_ordem', 'ordem', '`ordem`', '`ordem`', 3, -1, FALSE, '`ordem`', FALSE, FALSE, FALSE, 'FORMATTED TEXT');
		$this->ordem->FldDefaultErrMsg = $Language->Phrase("IncorrectInteger");
		$this->fields['ordem'] = &$this->ordem;
	}

	// Multiple column sort
	function UpdateSort(&$ofld, $ctrl) {
		if ($this->CurrentOrder == $ofld->FldName) {
			$sSortField = $ofld->FldExpression;
			$sLastSort = $ofld->getSort();
			if ($this->CurrentOrderType == "ASC" || $this->CurrentOrderType == "DESC") {
				$sThisSort = $this->CurrentOrderType;
			} else {
				$sThisSort = ($sLastSort == "ASC") ? "DESC" : "ASC";
			}
			$ofld->setSort($sThisSort);
			if ($ctrl) {
				$sOrderBy = $this->getSessionOrderBy();
				if (strpos($sOrderBy, $sSortField . " " . $sLastSort) !== FALSE) {
					$sOrderBy = str_replace($sSortField . " " . $sLastSort, $sSortField . " " . $sThisSort, $sOrderBy);
				} else {
					if ($sOrderBy <> "") $sOrderBy .= ", ";
					$sOrderBy .= $sSortField . " " . $sThisSort;
				}
				$this->setSessionOrderBy($sOrderBy); // Save to Session
			} else {
				$this->setSessionOrderBy($sSortField . " " . $sThisSort); // Save to Session
			}
		} else {
			if (!$ctrl) $ofld->setSort("");
		}
	}

	// Current master table name
	function getCurrentMasterTable() {
		return @$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_MASTER_TABLE];
	}

	function setCurrentMasterTable($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_MASTER_TABLE] = $v;
	}

	// Session master WHERE clause
	function GetMasterFilter() {

		// Master filter
		$sMasterFilter = "";
		if ($this->getCurrentMasterTable() == "subcategorias") {
			if ($this->id_subcategoria->getSessionValue() <> "")
				$sMasterFilter .= "`id`=" . ew_QuotedValue($this->id_subcategoria->getSessionValue(), EW_DATATYPE_NUMBER);
			else
				return "";
		}
		if ($this->getCurrentMasterTable() == "categorias") {
			if ($this->id_categoria->getSessionValue() <> "")
				$sMasterFilter .= "`id`=" . ew_QuotedValue($this->id_categoria->getSessionValue(), EW_DATATYPE_NUMBER);
			else
				return "";
		}
		return $sMasterFilter;
	}

	// Session detail WHERE clause
	function GetDetailFilter() {

		// Detail filter
		$sDetailFilter = "";
		if ($this->getCurrentMasterTable() == "subcategorias") {
			if ($this->id_subcategoria->getSessionValue() <> "")
				$sDetailFilter .= "`id_subcategoria`=" . ew_QuotedValue($this->id_subcategoria->getSessionValue(), EW_DATATYPE_NUMBER);
			else
				return "";
		}
		if ($this->getCurrentMasterTable() == "categorias") {
			if ($this->id_categoria->getSessionValue() <> "")
				$sDetailFilter .= "`id_categoria`=" . ew_QuotedValue($this->id_categoria->getSessionValue(), EW_DATATYPE_NUMBER);
			else
				return "";
		}
		return $sDetailFilter;
	}

	// Master filter
	function SqlMasterFilter_subcategorias() {
		return "`id`=@id@";
	}

	// Detail filter
	function SqlDetailFilter_subcategorias() {
		return "`id_subcategoria`=@id_subcategoria@";
	}

	// Master filter
	function SqlMasterFilter_categorias() {
		return "`id`=@id@";
	}

	// Detail filter
	function SqlDetailFilter_categorias() {
		return "`id_categoria`=@id_categoria@";
	}

	// Table level SQL
	function SqlFrom() { // From
		return "`produtos`";
	}

	function SqlSelect() { // Select
		return "SELECT * FROM " . $this->SqlFrom();
	}

	function SqlWhere() { // Where
		$sWhere = "";
		$this->TableFilter = "";
		ew_AddFilter($sWhere, $this->TableFilter);
		return $sWhere;
	}

	function SqlGroupBy() { // Group By
		return "";
	}

	function SqlHaving() { // Having
		return "";
	}

	function SqlOrderBy() { // Order By
		return "";
	}

	// Check if Anonymous User is allowed
	function AllowAnonymousUser() {
		switch (@$this->PageID) {
			case "add":
			case "register":
			case "addopt":
				return FALSE;
			case "edit":
			case "update":
			case "changepwd":
			case "forgotpwd":
				return FALSE;
			case "delete":
				return FALSE;
			case "view":
				return FALSE;
			case "search":
				return FALSE;
			default:
				return FALSE;
		}
	}

	// Apply User ID filters
	function ApplyUserIDFilters($sFilter) {
		return $sFilter;
	}

	// 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);
		}
	}

	// Get SQL
	function GetSQL($where, $orderby) {
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(),
			$this->SqlGroupBy(), $this->SqlHaving(), $this->SqlOrderBy(),
			$where, $orderby);
	}

	// Table SQL
	function SQL() {
		$sFilter = $this->CurrentFilter;
		$sFilter = $this->ApplyUserIDFilters($sFilter);
		$sSort = $this->getSessionOrderBy();
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(),
			$this->SqlGroupBy(), $this->SqlHaving(), $this->SqlOrderBy(),
			$sFilter, $sSort);
	}

	// Table SQL with List page filter
	function SelectSQL() {
		$sFilter = $this->getSessionWhere();
		ew_AddFilter($sFilter, $this->CurrentFilter);
		$sFilter = $this->ApplyUserIDFilters($sFilter);
		$sSort = $this->getSessionOrderBy();
		return ew_BuildSelectSql($this->SqlSelect(), $this->SqlWhere(), $this->SqlGroupBy(),
			$this->SqlHaving(), $this->SqlOrderBy(), $sFilter, $sSort);
	}

	// Get ORDER BY clause
	function GetOrderBy() {
		$sSort = $this->getSessionOrderBy();
		return ew_BuildSelectSql("", "", "", "", $this->SqlOrderBy(), "", $sSort);
	}

	// Try to get record count
	function TryGetRecordCount($sSql) {
		global $conn;
		$cnt = -1;
		if ($this->TableType == 'TABLE' || $this->TableType == 'VIEW') {
			$sSql = "SELECT COUNT(*) FROM" . substr($sSql, 13);
			$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";
		}
		if ($rs = $conn->Execute($sSql)) {
			if (!$rs->EOF && $rs->FieldCount() > 0) {
				$cnt = $rs->fields[0];
				$rs->Close();
			}
		}
		return intval($cnt);
	}

	// 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);
	}

	// Get record count (for current List page)
	function SelectRecordCount() {
		global $conn;
		$origFilter = $this->CurrentFilter;
		$this->Recordset_Selecting($this->CurrentFilter);
		$sSql = $this->SelectSQL();
		$cnt = $this->TryGetRecordCount($sSql);
		if ($cnt == -1) {
			if ($rs = $conn->Execute($sSql)) {
				$cnt = $rs->RecordCount();
				$rs->Close();
			}
		}
		$this->CurrentFilter = $origFilter;
		return intval($cnt);
	}

	// Update Table
	var $UpdateTable = "`produtos`";

	// INSERT statement
	function InsertSQL(&$rs) {
		global $conn;
		$names = "";
		$values = "";
		foreach ($rs as $name => $value) {
			if (!isset($this->fields[$name]))
				continue;
			$names .= $this->fields[$name]->FldExpression . ",";
			$values .= ew_QuotedValue($value, $this->fields[$name]->FldDataType) . ",";
		}
		while (substr($names, -1) == ",")
			$names = substr($names, 0, -1);
		while (substr($values, -1) == ",")
			$values = substr($values, 0, -1);
		return "INSERT INTO " . $this->UpdateTable . " ($names) VALUES ($values)";
	}

	// Insert
	function Insert(&$rs) {
		global $conn;
		return $conn->Execute($this->InsertSQL($rs));
	}

	// UPDATE statement
	function UpdateSQL(&$rs, $where = "") {
		$sql = "UPDATE " . $this->UpdateTable . " SET ";
		foreach ($rs as $name => $value) {
			if (!isset($this->fields[$name]))
				continue;
			$sql .= $this->fields[$name]->FldExpression . "=";
			$sql .= ew_QuotedValue($value, $this->fields[$name]->FldDataType) . ",";
		}
		while (substr($sql, -1) == ",")
			$sql = substr($sql, 0, -1);
		$filter = $this->CurrentFilter;
		ew_AddFilter($filter, $where);
		if ($filter <> "")	$sql .= " WHERE " . $filter;
		return $sql;
	}

	// Update
	function Update(&$rs, $where = "", $rsold = NULL) {
		global $conn;
		return $conn->Execute($this->UpdateSQL($rs, $where));
	}

	// DELETE statement
	function DeleteSQL(&$rs, $where = "") {
		$sql = "DELETE FROM " . $this->UpdateTable . " WHERE ";
		if ($rs) {
			if (array_key_exists('Id', $rs))
				ew_AddFilter($where, ew_QuotedName('Id') . '=' . ew_QuotedValue($rs['Id'], $this->Id->FldDataType));
		}
		$filter = $this->CurrentFilter;
		ew_AddFilter($filter, $where);
		if ($filter <> "")
			$sql .= $filter;
		else
			$sql .= "0=1"; // Avoid delete
		return $sql;
	}

	// Delete
	function Delete(&$rs, $where = "") {
		global $conn;
		return $conn->Execute($this->DeleteSQL($rs, $where));
	}

	// Key filter WHERE clause
	function SqlKeyFilter() {
		return "`Id` = @Id@";
	}

	// Key filter
	function KeyFilter() {
		$sKeyFilter = $this->SqlKeyFilter();
		if (!is_numeric($this->Id->CurrentValue))
			$sKeyFilter = "0=1"; // Invalid key
		$sKeyFilter = str_replace("@Id@", ew_AdjustSql($this->Id->CurrentValue), $sKeyFilter); // Replace key value
		return $sKeyFilter;
	}

	// Return page URL
	function getReturnUrl() {
		$name = EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_RETURN_URL;

		// Get referer URL automatically
		if (ew_ServerVar("HTTP_REFERER") <> "" && ew_ReferPage() <> ew_CurrentPage() && ew_ReferPage() <> "login.php") // Referer not same page or login page
			$_SESSION[$name] = ew_ServerVar("HTTP_REFERER"); // Save to Session
		if (@$_SESSION[$name] <> "") {
			return $_SESSION[$name];
		} else {
			return "produtoslist.php";
		}
	}

	function setReturnUrl($v) {
		$_SESSION[EW_PROJECT_NAME . "_" . $this->TableVar . "_" . EW_TABLE_RETURN_URL] = $v;
	}

	// List URL
	function GetListUrl() {
		return "produtoslist.php";
	}

	// View URL
	function GetViewUrl($parm = "") {
		if ($parm <> "")
			return $this->KeyUrl("produtosview.php", $this->UrlParm($parm));
		else
			return $this->KeyUrl("produtosview.php", $this->UrlParm(EW_TABLE_SHOW_DETAIL . "="));
	}

	// Add URL
	function GetAddUrl() {
		return "produtosadd.php";
	}

	// Edit URL
	function GetEditUrl($parm = "") {
		return $this->KeyUrl("produtosedit.php", $this->UrlParm($parm));
	}

	// Inline edit URL
	function GetInlineEditUrl() {
		return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=edit"));
	}

	// Copy URL
	function GetCopyUrl($parm = "") {
		return $this->KeyUrl("produtosadd.php", $this->UrlParm($parm));
	}

	// Inline copy URL
	function GetInlineCopyUrl() {
		return $this->KeyUrl(ew_CurrentPage(), $this->UrlParm("a=copy"));
	}

	// Delete URL
	function GetDeleteUrl() {
		return $this->KeyUrl("produtosdelete.php", $this->UrlParm());
	}

	// Add key value to URL
	function KeyUrl($url, $parm = "") {
		$sUrl = $url . "?";
		if ($parm <> "") $sUrl .= $parm . "&";
		if (!is_null($this->Id->CurrentValue)) {
			$sUrl .= "Id=" . urlencode($this->Id->CurrentValue);
		} else {
			return "javascript:alert(ewLanguage.Phrase('InvalidRecord'));";
		}
		return $sUrl;
	}

	// Sort URL
	function SortUrl(&$fld) {
		if ($this->CurrentAction <> "" || $this->Export <> "" ||
			in_array($fld->FldType, array(128, 204, 205))) { // Unsortable data type
				return "";
		} elseif ($fld->Sortable) {
			$sUrlParm = $this->UrlParm("order=" . urlencode($fld->FldName) . "&amp;ordertype=" . $fld->ReverseSort());
			return ew_CurrentPage() . "?" . $sUrlParm;
		} else {
			return "";
		}
	}

	// 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 (isset($_GET)) {
			$arKeys[] = @$_GET["Id"]; // Id

			//return $arKeys; // Do not return yet, so the values will also be checked by the following code
		}

		// Check keys
		$ar = array();
		foreach ($arKeys as $key) {
			if (!is_numeric($key))
				continue;
			$ar[] = $key;
		}
		return $ar;
	}

	// Get key filter
	function GetKeyFilter() {
		$arKeys = $this->GetRecordKeys();
		$sKeyFilter = "";
		foreach ($arKeys as $key) {
			if ($sKeyFilter <> "") $sKeyFilter .= " OR ";
			$this->Id->CurrentValue = $key;
			$sKeyFilter .= "(" . $this->KeyFilter() . ")";
		}
		return $sKeyFilter;
	}

	// Load rows based on filter
	function &LoadRs($sFilter) {
		global $conn;

		// Set up filter (SQL WHERE clause) and get return SQL
		//$this->CurrentFilter = $sFilter;
		//$sSql = $this->SQL();

		$sSql = $this->GetSQL($sFilter, "");
		$rs = $conn->Execute($sSql);
		return $rs;
	}

	// Load row values from recordset
	function LoadListRowValues(&$rs) {
		$this->Id->setDbValue($rs->fields('Id'));
		$this->id_categoria->setDbValue($rs->fields('id_categoria'));
		$this->id_subcategoria->setDbValue($rs->fields('id_subcategoria'));
		$this->nome->setDbValue($rs->fields('nome'));
		$this->preco->setDbValue($rs->fields('preco'));
		$this->imagem->Upload->DbValue = $rs->fields('imagem');
		$this->imagem2->Upload->DbValue = $rs->fields('imagem2');
		$this->imagem3->Upload->DbValue = $rs->fields('imagem3');
		$this->imagem4->Upload->DbValue = $rs->fields('imagem4');
		$this->imagem5->Upload->DbValue = $rs->fields('imagem5');
		$this->imagem6->Upload->DbValue = $rs->fields('imagem6');
		$this->exibir->setDbValue($rs->fields('exibir'));
		$this->pdf->Upload->DbValue = $rs->fields('pdf');
		$this->resumo->setDbValue($rs->fields('resumo'));
		$this->classificada->setDbValue($rs->fields('classificada'));
		$this->downloads->setDbValue($rs->fields('downloads'));
		$this->home->setDbValue($rs->fields('home'));
		$this->seguranca->setDbValue($rs->fields('seguranca'));
		$this->ordem->setDbValue($rs->fields('ordem'));
	}

	// Render list row values
	function RenderListRow() {
		global $conn, $Security;

		// Call Row Rendering event
		$this->Row_Rendering();

   // Common render codes
		// Id
		// id_categoria
		// id_subcategoria
		// nome
		// preco
		// imagem
		// imagem2
		// imagem3
		// imagem4
		// imagem5
		// imagem6
		// exibir
		// pdf
		// resumo
		// classificada
		// downloads
		// home

		$this->home->CellCssStyle = "white-space: nowrap;";

		// seguranca
		// ordem
		// Id

		$this->Id->ViewValue = $this->Id->CurrentValue;
		$this->Id->ViewCustomAttributes = "";

		// id_categoria
		if (strval($this->id_categoria->CurrentValue) <> "") {
			$sFilterWrk = "`id`" . ew_SearchString("=", $this->id_categoria->CurrentValue, EW_DATATYPE_NUMBER);
		$sSqlWrk = "SELECT `id`, `categoria` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `categorias`";
		$sWhereWrk = "";
		if ($sFilterWrk <> "") {
			ew_AddFilter($sWhereWrk, $sFilterWrk);
		}

		// Call Lookup selecting
		$this->Lookup_Selecting($this->id_categoria, $sWhereWrk);
		if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
		$sSqlWrk .= " ORDER BY `categoria` ASC";
			$rswrk = $conn->Execute($sSqlWrk);
			if ($rswrk && !$rswrk->EOF) { // Lookup values found
				$this->id_categoria->ViewValue = $rswrk->fields('DispFld');
				$rswrk->Close();
			} else {
				$this->id_categoria->ViewValue = $this->id_categoria->CurrentValue;
			}
		} else {
			$this->id_categoria->ViewValue = NULL;
		}
		$this->id_categoria->ViewCustomAttributes = "";

		// id_subcategoria
		if (strval($this->id_subcategoria->CurrentValue) <> "") {
			$sFilterWrk = "`id`" . ew_SearchString("=", $this->id_subcategoria->CurrentValue, EW_DATATYPE_NUMBER);
		$sSqlWrk = "SELECT `id`, `subcategoria` AS `DispFld`, '' AS `Disp2Fld`, '' AS `Disp3Fld`, '' AS `Disp4Fld` FROM `subcategorias`";
		$sWhereWrk = "";
		if ($sFilterWrk <> "") {
			ew_AddFilter($sWhereWrk, $sFilterWrk);
		}

		// Call Lookup selecting
		$this->Lookup_Selecting($this->id_subcategoria, $sWhereWrk);
		if ($sWhereWrk <> "") $sSqlWrk .= " WHERE " . $sWhereWrk;
		$sSqlWrk .= " ORDER BY `subcategoria` ASC";
			$rswrk = $conn->Execute($sSqlWrk);
			if ($rswrk && !$rswrk->EOF) { // Lookup values found
				$this->id_subcategoria->ViewValue = $rswrk->fields('DispFld');
				$rswrk->Close();
			} else {
				$this->id_subcategoria->ViewValue = $this->id_subcategoria->CurrentValue;
			}
		} else {
			$this->id_subcategoria->ViewValue = NULL;
		}
		$this->id_subcategoria->ViewCustomAttributes = "";

		// nome
		$this->nome->ViewValue = $this->nome->CurrentValue;
		$this->nome->ViewCustomAttributes = "";

		// preco
		$this->preco->ViewValue = $this->preco->CurrentValue;
		$this->preco->ViewCustomAttributes = "";

		// imagem
		$this->imagem->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem->Upload->DbValue)) {
			$this->imagem->ImageAlt = $this->imagem->FldAlt();
			$this->imagem->ViewValue = ew_UploadPathEx(FALSE, $this->imagem->UploadPath) . $this->imagem->Upload->DbValue;
		} else {
			$this->imagem->ViewValue = "";
		}
		$this->imagem->ViewCustomAttributes = "";

		// imagem2
		$this->imagem2->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem2->Upload->DbValue)) {
			$this->imagem2->ImageAlt = $this->imagem2->FldAlt();
			$this->imagem2->ViewValue = ew_UploadPathEx(FALSE, $this->imagem2->UploadPath) . $this->imagem2->Upload->DbValue;
		} else {
			$this->imagem2->ViewValue = "";
		}
		$this->imagem2->ViewCustomAttributes = "";

		// imagem3
		$this->imagem3->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem3->Upload->DbValue)) {
			$this->imagem3->ImageAlt = $this->imagem3->FldAlt();
			$this->imagem3->ViewValue = ew_UploadPathEx(FALSE, $this->imagem3->UploadPath) . $this->imagem3->Upload->DbValue;
		} else {
			$this->imagem3->ViewValue = "";
		}
		$this->imagem3->ViewCustomAttributes = "";

		// imagem4
		$this->imagem4->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem4->Upload->DbValue)) {
			$this->imagem4->ImageAlt = $this->imagem4->FldAlt();
			$this->imagem4->ViewValue = ew_UploadPathEx(FALSE, $this->imagem4->UploadPath) . $this->imagem4->Upload->DbValue;
		} else {
			$this->imagem4->ViewValue = "";
		}
		$this->imagem4->ViewCustomAttributes = "";

		// imagem5
		$this->imagem5->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem5->Upload->DbValue)) {
			$this->imagem5->ViewValue = $this->imagem5->Upload->DbValue;
		} else {
			$this->imagem5->ViewValue = "";
		}
		$this->imagem5->ViewCustomAttributes = "";

		// imagem6
		$this->imagem6->UploadPath = "../images/produtos/";
		if (!ew_Empty($this->imagem6->Upload->DbValue)) {
			$this->imagem6->ViewValue = $this->imagem6->Upload->DbValue;
		} else {
			$this->imagem6->ViewValue = "";
		}
		$this->imagem6->ViewCustomAttributes = "";

		// exibir
		if (strval($this->exibir->CurrentValue) <> "") {
			switch ($this->exibir->CurrentValue) {
				case $this->exibir->FldTagValue(1):
					$this->exibir->ViewValue = $this->exibir->FldTagCaption(1) <> "" ? $this->exibir->FldTagCaption(1) : $this->exibir->CurrentValue;
					break;
				case $this->exibir->FldTagValue(2):
					$this->exibir->ViewValue = $this->exibir->FldTagCaption(2) <> "" ? $this->exibir->FldTagCaption(2) : $this->exibir->CurrentValue;
					break;
				default:
					$this->exibir->ViewValue = $this->exibir->CurrentValue;
			}
		} else {
			$this->exibir->ViewValue = NULL;
		}
		$this->exibir->ViewCustomAttributes = "";

		// pdf
		$this->pdf->UploadPath = "../images/produtos/pdf/";
		if (!ew_Empty($this->pdf->Upload->DbValue)) {
			$this->pdf->ViewValue = $this->pdf->Upload->DbValue;
		} else {
			$this->pdf->ViewValue = "";
		}
		$this->pdf->ViewCustomAttributes = "";

		// resumo
		$this->resumo->ViewValue = $this->resumo->CurrentValue;
		$this->resumo->ViewCustomAttributes = "";

		// classificada
		if (strval($this->classificada->CurrentValue) <> "") {
			switch ($this->classificada->CurrentValue) {
				case $this->classificada->FldTagValue(1):
					$this->classificada->ViewValue = $this->classificada->FldTagCaption(1) <> "" ? $this->classificada->FldTagCaption(1) : $this->classificada->CurrentValue;
					break;
				case $this->classificada->FldTagValue(2):
					$this->classificada->ViewValue = $this->classificada->FldTagCaption(2) <> "" ? $this->classificada->FldTagCaption(2) : $this->classificada->CurrentValue;
					break;
				default:
					$this->classificada->ViewValue = $this->classificada->CurrentValue;
			}
		} else {
			$this->classificada->ViewValue = NULL;
		}
		$this->classificada->ViewCustomAttributes = "";

		// downloads
		$this->downloads->ViewValue = $this->downloads->CurrentValue;
		$this->downloads->ViewCustomAttributes = "";

		// home
		if (strval($this->home->CurrentValue) <> "") {
			switch ($this->home->CurrentValue) {
				case $this->home->FldTagValue(1):
					$this->home->ViewValue = $this->home->FldTagCaption(1) <> "" ? $this->home->FldTagCaption(1) : $this->home->CurrentValue;
					break;
				case $this->home->FldTagValue(2):
					$this->home->ViewValue = $this->home->FldTagCaption(2) <> "" ? $this->home->FldTagCaption(2) : $this->home->CurrentValue;
					break;
				default:
					$this->home->ViewValue = $this->home->CurrentValue;
			}
		} else {
			$this->home->ViewValue = NULL;
		}
		$this->home->ViewCustomAttributes = "";

		// seguranca
		if (strval($this->seguranca->CurrentValue) <> "") {
			switch ($this->seguranca->CurrentValue) {
				case $this->seguranca->FldTagValue(1):
					$this->seguranca->ViewValue = $this->seguranca->FldTagCaption(1) <> "" ? $this->seguranca->FldTagCaption(1) : $this->seguranca->CurrentValue;
					break;
				case $this->seguranca->FldTagValue(2):
					$this->seguranca->ViewValue = $this->seguranca->FldTagCaption(2) <> "" ? $this->seguranca->FldTagCaption(2) : $this->seguranca->CurrentValue;
					break;
				default:
					$this->seguranca->ViewValue = $this->seguranca->CurrentValue;
			}
		} else {
			$this->seguranca->ViewValue = NULL;
		}
		$this->seguranca->ViewCustomAttributes = "";

		// ordem
		$this->ordem->ViewValue = $this->ordem->CurrentValue;
		$this->ordem->ViewCustomAttributes = "";

		// Id
		$this->Id->LinkCustomAttributes = "";
		$this->Id->HrefValue = "";
		$this->Id->TooltipValue = "";

		// id_categoria
		$this->id_categoria->LinkCustomAttributes = "";
		$this->id_categoria->HrefValue = "";
		$this->id_categoria->TooltipValue = "";

		// id_subcategoria
		$this->id_subcategoria->LinkCustomAttributes = "";
		$this->id_subcategoria->HrefValue = "";
		$this->id_subcategoria->TooltipValue = "";

		// nome
		$this->nome->LinkCustomAttributes = "";
		$this->nome->HrefValue = "";
		$this->nome->TooltipValue = "";

		// preco
		$this->preco->LinkCustomAttributes = "";
		$this->preco->HrefValue = "";
		$this->preco->TooltipValue = "";

		// imagem
		$this->imagem->LinkCustomAttributes = "";
		$this->imagem->HrefValue = "";
		$this->imagem->HrefValue2 = $this->imagem->UploadPath . $this->imagem->Upload->DbValue;
		$this->imagem->TooltipValue = "";

		// imagem2
		$this->imagem2->LinkCustomAttributes = "";
		$this->imagem2->HrefValue = "";
		$this->imagem2->HrefValue2 = $this->imagem2->UploadPath . $this->imagem2->Upload->DbValue;
		$this->imagem2->TooltipValue = "";

		// imagem3
		$this->imagem3->LinkCustomAttributes = "";
		$this->imagem3->HrefValue = "";
		$this->imagem3->HrefValue2 = $this->imagem3->UploadPath . $this->imagem3->Upload->DbValue;
		$this->imagem3->TooltipValue = "";

		// imagem4
		$this->imagem4->LinkCustomAttributes = "";
		$this->imagem4->HrefValue = "";
		$this->imagem4->HrefValue2 = $this->imagem4->UploadPath . $this->imagem4->Upload->DbValue;
		$this->imagem4->TooltipValue = "";

		// imagem5
		$this->imagem5->LinkCustomAttributes = "";
		$this->imagem5->HrefValue = "";
		$this->imagem5->HrefValue2 = $this->imagem5->UploadPath . $this->imagem5->Upload->DbValue;
		$this->imagem5->TooltipValue = "";

		// imagem6
		$this->imagem6->LinkCustomAttributes = "";
		$this->imagem6->HrefValue = "";
		$this->imagem6->HrefValue2 = $this->imagem6->UploadPath . $this->imagem6->Upload->DbValue;
		$this->imagem6->TooltipValue = "";

		// exibir
		$this->exibir->LinkCustomAttributes = "";
		$this->exibir->HrefValue = "";
		$this->exibir->TooltipValue = "";

		// pdf
		$this->pdf->LinkCustomAttributes = "";
		$this->pdf->HrefValue = "";
		$this->pdf->HrefValue2 = $this->pdf->UploadPath . $this->pdf->Upload->DbValue;
		$this->pdf->TooltipValue = "";

		// resumo
		$this->resumo->LinkCustomAttributes = "";
		$this->resumo->HrefValue = "";
		$this->resumo->TooltipValue = "";

		// classificada
		$this->classificada->LinkCustomAttributes = "";
		$this->classificada->HrefValue = "";
		$this->classificada->TooltipValue = "";

		// downloads
		$this->downloads->LinkCustomAttributes = "";
		$this->downloads->HrefValue = "";
		$this->downloads->TooltipValue = "";

		// home
		$this->home->LinkCustomAttributes = "";
		$this->home->HrefValue = "";
		$this->home->TooltipValue = "";

		// seguranca
		$this->seguranca->LinkCustomAttributes = "";
		$this->seguranca->HrefValue = "";
		$this->seguranca->TooltipValue = "";

		// ordem
		$this->ordem->LinkCustomAttributes = "";
		$this->ordem->HrefValue = "";
		$this->ordem->TooltipValue = "";

		// Call Row Rendered event
		$this->Row_Rendered();
	}

	// Aggregate list row values
	function AggregateListRowValues() {
	}

	// Aggregate list row (for rendering)
	function AggregateListRow() {
	}

	// Export data in HTML/CSV/Word/Excel/Email/PDF format
	function ExportDocument(&$Doc, &$Recordset, $StartRec, $StopRec, $ExportPageType = "") {
		if (!$Recordset || !$Doc)
			return;

		// Write header
		$Doc->ExportTableHeader();
		if ($Doc->Horizontal) { // Horizontal format, write header
			$Doc->BeginExportRow();
			if ($ExportPageType == "view") {
				if ($this->id_categoria->Exportable) $Doc->ExportCaption($this->id_categoria);
				if ($this->id_subcategoria->Exportable) $Doc->ExportCaption($this->id_subcategoria);
				if ($this->nome->Exportable) $Doc->ExportCaption($this->nome);
				if ($this->preco->Exportable) $Doc->ExportCaption($this->preco);
				if ($this->imagem->Exportable) $Doc->ExportCaption($this->imagem);
				if ($this->imagem2->Exportable) $Doc->ExportCaption($this->imagem2);
				if ($this->imagem3->Exportable) $Doc->ExportCaption($this->imagem3);
				if ($this->imagem4->Exportable) $Doc->ExportCaption($this->imagem4);
				if ($this->imagem5->Exportable) $Doc->ExportCaption($this->imagem5);
				if ($this->imagem6->Exportable) $Doc->ExportCaption($this->imagem6);
				if ($this->exibir->Exportable) $Doc->ExportCaption($this->exibir);
				if ($this->pdf->Exportable) $Doc->ExportCaption($this->pdf);
				if ($this->resumo->Exportable) $Doc->ExportCaption($this->resumo);
				if ($this->ordem->Exportable) $Doc->ExportCaption($this->ordem);
			} else {
				if ($this->Id->Exportable) $Doc->ExportCaption($this->Id);
				if ($this->id_categoria->Exportable) $Doc->ExportCaption($this->id_categoria);
				if ($this->id_subcategoria->Exportable) $Doc->ExportCaption($this->id_subcategoria);
				if ($this->nome->Exportable) $Doc->ExportCaption($this->nome);
				if ($this->preco->Exportable) $Doc->ExportCaption($this->preco);
				if ($this->imagem->Exportable) $Doc->ExportCaption($this->imagem);
				if ($this->imagem2->Exportable) $Doc->ExportCaption($this->imagem2);
				if ($this->imagem3->Exportable) $Doc->ExportCaption($this->imagem3);
				if ($this->imagem4->Exportable) $Doc->ExportCaption($this->imagem4);
				if ($this->imagem5->Exportable) $Doc->ExportCaption($this->imagem5);
				if ($this->imagem6->Exportable) $Doc->ExportCaption($this->imagem6);
				if ($this->exibir->Exportable) $Doc->ExportCaption($this->exibir);
				if ($this->pdf->Exportable) $Doc->ExportCaption($this->pdf);
				if ($this->resumo->Exportable) $Doc->ExportCaption($this->resumo);
				if ($this->classificada->Exportable) $Doc->ExportCaption($this->classificada);
				if ($this->downloads->Exportable) $Doc->ExportCaption($this->downloads);
				if ($this->home->Exportable) $Doc->ExportCaption($this->home);
				if ($this->seguranca->Exportable) $Doc->ExportCaption($this->seguranca);
				if ($this->ordem->Exportable) $Doc->ExportCaption($this->ordem);
			}
			$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();
				$Doc->BeginExportRow($RowCnt); // Allow CSS styles if enabled
				if ($ExportPageType == "view") {
					if ($this->id_categoria->Exportable) $Doc->ExportField($this->id_categoria);
					if ($this->id_subcategoria->Exportable) $Doc->ExportField($this->id_subcategoria);
					if ($this->nome->Exportable) $Doc->ExportField($this->nome);
					if ($this->preco->Exportable) $Doc->ExportField($this->preco);
					if ($this->imagem->Exportable) $Doc->ExportField($this->imagem);
					if ($this->imagem2->Exportable) $Doc->ExportField($this->imagem2);
					if ($this->imagem3->Exportable) $Doc->ExportField($this->imagem3);
					if ($this->imagem4->Exportable) $Doc->ExportField($this->imagem4);
					if ($this->imagem5->Exportable) $Doc->ExportField($this->imagem5);
					if ($this->imagem6->Exportable) $Doc->ExportField($this->imagem6);
					if ($this->exibir->Exportable) $Doc->ExportField($this->exibir);
					if ($this->pdf->Exportable) $Doc->ExportField($this->pdf);
					if ($this->resumo->Exportable) $Doc->ExportField($this->resumo);
					if ($this->ordem->Exportable) $Doc->ExportField($this->ordem);
				} else {
					if ($this->Id->Exportable) $Doc->ExportField($this->Id);
					if ($this->id_categoria->Exportable) $Doc->ExportField($this->id_categoria);
					if ($this->id_subcategoria->Exportable) $Doc->ExportField($this->id_subcategoria);
					if ($this->nome->Exportable) $Doc->ExportField($this->nome);
					if ($this->preco->Exportable) $Doc->ExportField($this->preco);
					if ($this->imagem->Exportable) $Doc->ExportField($this->imagem);
					if ($this->imagem2->Exportable) $Doc->ExportField($this->imagem2);
					if ($this->imagem3->Exportable) $Doc->ExportField($this->imagem3);
					if ($this->imagem4->Exportable) $Doc->ExportField($this->imagem4);
					if ($this->imagem5->Exportable) $Doc->ExportField($this->imagem5);
					if ($this->imagem6->Exportable) $Doc->ExportField($this->imagem6);
					if ($this->exibir->Exportable) $Doc->ExportField($this->exibir);
					if ($this->pdf->Exportable) $Doc->ExportField($this->pdf);
					if ($this->resumo->Exportable) $Doc->ExportField($this->resumo);
					if ($this->classificada->Exportable) $Doc->ExportField($this->classificada);
					if ($this->downloads->Exportable) $Doc->ExportField($this->downloads);
					if ($this->home->Exportable) $Doc->ExportField($this->home);
					if ($this->seguranca->Exportable) $Doc->ExportField($this->seguranca);
					if ($this->ordem->Exportable) $Doc->ExportField($this->ordem);
				}
				$Doc->EndExportRow();
			}
			$Recordset->MoveNext();
		}
		$Doc->ExportTableFooter();
	}

	// Table level events
	// Recordset Selecting event
	function Recordset_Selecting(&$filter) {

		// Enter your code here	
	}

	// Recordset Selected event
	function Recordset_Selected(&$rs) {

		//echo "Recordset Selected";
	}

	// Recordset Search Validated event
	function Recordset_SearchValidated() {

		// Example:
		//$this->MyField1->AdvancedSearch->SearchValue = "your search criteria"; // Search value

	}

	// Recordset Searching event
	function Recordset_Searching(&$filter) {

		// Enter your code here	
	}

	// Row_Selecting event
	function Row_Selecting(&$filter) {

		// Enter your code here	
	}

	// Row Selected event
	function Row_Selected(&$rs) {

		//echo "Row Selected";
	}

	// Row Inserting event
	function Row_Inserting($rsold, &$rsnew) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Inserted event
	function Row_Inserted($rsold, &$rsnew) {

		//echo "Row Inserted"
	}

	// Row Updating event
	function Row_Updating($rsold, &$rsnew) {

		// Enter your code here
		// To cancel, set return value to FALSE

		return TRUE;
	}

	// Row Updated event
	function Row_Updated($rsold, &$rsnew) {

		//echo "Row Updated";
	}

	// Row Update Conflict event
	function Row_UpdateConflict($rsold, &$rsnew) {

		// Enter your code here
		// To ignore conflict, set return value to FALSE

		return TRUE;
	}

	// Row Deleting event
	function Row_Deleting(&$rs) {

		// Enter your code here
		// To cancel, set return value to False

		return TRUE;
	}

	// Row Deleted event
	function Row_Deleted(&$rs) {

		//echo "Row Deleted";
	}

	// Email Sending event
	function Email_Sending(&$Email, &$Args) {

		//var_dump($Email); var_dump($Args); exit();
		return TRUE;
	}

	// Lookup Selecting event
	function Lookup_Selecting($fld, &$filter) {

		// Enter your code here
	}

	// Row Rendering event
	function Row_Rendering() {

		// Enter your code here	
	}

	// Row Rendered event
	function Row_Rendered() {

		// To view properties of field class, use:
		//var_dump($this-><FieldName>); 

	}

	// User ID Filtering event
	function UserID_Filtering(&$filter) {

		// Enter your code here
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit