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 : 3.135.237.153
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/produtosview.php
<?php
if (session_id() == "") session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include_once "ewcfg10.php" ?>
<?php include_once "ewmysql10.php" ?>
<?php include_once "phpfn10.php" ?>
<?php include_once "produtosinfo.php" ?>
<?php include_once "admininfo.php" ?>
<?php include_once "categoriasinfo.php" ?>
<?php include_once "subcategoriasinfo.php" ?>
<?php include_once "userfn10.php" ?>
<?php

//
// Page class
//

$produtos_view = NULL; // Initialize page object first

class cprodutos_view extends cprodutos {

	// Page ID
	var $PageID = 'view';

	// Project ID
	var $ProjectID = "{92AF19DC-8210-4443-BC47-09C259AABDEF}";

	// Table name
	var $TableName = 'produtos';

	// Page object name
	var $PageObjName = 'produtos_view';

	// Page name
	function PageName() {
		return ew_CurrentPage();
	}

	// Page URL
	function PageUrl() {
		$PageUrl = ew_CurrentPage() . "?";
		if ($this->UseTokenInUrl) $PageUrl .= "t=" . $this->TableVar . "&"; // Add page token
		return $PageUrl;
	}

	// Page URLs
	var $AddUrl;
	var $EditUrl;
	var $CopyUrl;
	var $DeleteUrl;
	var $ViewUrl;
	var $ListUrl;

	// Export URLs
	var $ExportPrintUrl;
	var $ExportHtmlUrl;
	var $ExportExcelUrl;
	var $ExportWordUrl;
	var $ExportXmlUrl;
	var $ExportCsvUrl;
	var $ExportPdfUrl;

	// Update URLs
	var $InlineAddUrl;
	var $InlineCopyUrl;
	var $InlineEditUrl;
	var $GridAddUrl;
	var $GridEditUrl;
	var $MultiDeleteUrl;
	var $MultiUpdateUrl;

	// Message
	function getMessage() {
		return @$_SESSION[EW_SESSION_MESSAGE];
	}

	function setMessage($v) {
		ew_AddMessage($_SESSION[EW_SESSION_MESSAGE], $v);
	}

	function getFailureMessage() {
		return @$_SESSION[EW_SESSION_FAILURE_MESSAGE];
	}

	function setFailureMessage($v) {
		ew_AddMessage($_SESSION[EW_SESSION_FAILURE_MESSAGE], $v);
	}

	function getSuccessMessage() {
		return @$_SESSION[EW_SESSION_SUCCESS_MESSAGE];
	}

	function setSuccessMessage($v) {
		ew_AddMessage($_SESSION[EW_SESSION_SUCCESS_MESSAGE], $v);
	}

	function getWarningMessage() {
		return @$_SESSION[EW_SESSION_WARNING_MESSAGE];
	}

	function setWarningMessage($v) {
		ew_AddMessage($_SESSION[EW_SESSION_WARNING_MESSAGE], $v);
	}

	// Show message
	function ShowMessage() {
		$hidden = FALSE;
		$html = "";

		// Message
		$sMessage = $this->getMessage();
		$this->Message_Showing($sMessage, "");
		if ($sMessage <> "") { // Message in Session, display
			if (!$hidden)
				$sMessage = "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $sMessage;
			$html .= "<div class=\"alert alert-success ewSuccess\">" . $sMessage . "</div>";
			$_SESSION[EW_SESSION_MESSAGE] = ""; // Clear message in Session
		}

		// Warning message
		$sWarningMessage = $this->getWarningMessage();
		$this->Message_Showing($sWarningMessage, "warning");
		if ($sWarningMessage <> "") { // Message in Session, display
			if (!$hidden)
				$sWarningMessage = "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $sWarningMessage;
			$html .= "<div class=\"alert alert-warning ewWarning\">" . $sWarningMessage . "</div>";
			$_SESSION[EW_SESSION_WARNING_MESSAGE] = ""; // Clear message in Session
		}

		// Success message
		$sSuccessMessage = $this->getSuccessMessage();
		$this->Message_Showing($sSuccessMessage, "success");
		if ($sSuccessMessage <> "") { // Message in Session, display
			if (!$hidden)
				$sSuccessMessage = "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $sSuccessMessage;
			$html .= "<div class=\"alert alert-success ewSuccess\">" . $sSuccessMessage . "</div>";
			$_SESSION[EW_SESSION_SUCCESS_MESSAGE] = ""; // Clear message in Session
		}

		// Failure message
		$sErrorMessage = $this->getFailureMessage();
		$this->Message_Showing($sErrorMessage, "failure");
		if ($sErrorMessage <> "") { // Message in Session, display
			if (!$hidden)
				$sErrorMessage = "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" . $sErrorMessage;
			$html .= "<div class=\"alert alert-error ewError\">" . $sErrorMessage . "</div>";
			$_SESSION[EW_SESSION_FAILURE_MESSAGE] = ""; // Clear message in Session
		}
		echo "<table class=\"ewStdTable\"><tr><td><div class=\"ewMessageDialog\"" . (($hidden) ? " style=\"display: none;\"" : "") . ">" . $html . "</div></td></tr></table>";
	}
	var $PageHeader;
	var $PageFooter;

	// Show Page Header
	function ShowPageHeader() {
		$sHeader = $this->PageHeader;
		$this->Page_DataRendering($sHeader);
		if ($sHeader <> "") { // Header exists, display
			echo "<p>" . $sHeader . "</p>";
		}
	}

	// Show Page Footer
	function ShowPageFooter() {
		$sFooter = $this->PageFooter;
		$this->Page_DataRendered($sFooter);
		if ($sFooter <> "") { // Footer exists, display
			echo "<p>" . $sFooter . "</p>";
		}
	}

	// Validate page request
	function IsPageRequest() {
		global $objForm;
		if ($this->UseTokenInUrl) {
			if ($objForm)
				return ($this->TableVar == $objForm->GetValue("t"));
			if (@$_GET["t"] <> "")
				return ($this->TableVar == $_GET["t"]);
		} else {
			return TRUE;
		}
	}

	//
	// Page class constructor
	//
	function __construct() {
		global $conn, $Language;
		$GLOBALS["Page"] = &$this;

		// Language object
		if (!isset($Language)) $Language = new cLanguage();

		// Parent constuctor
		parent::__construct();

		// Table object (produtos)
		if (!isset($GLOBALS["produtos"]) || get_class($GLOBALS["produtos"]) == "cprodutos") {
			$GLOBALS["produtos"] = &$this;
			$GLOBALS["Table"] = &$GLOBALS["produtos"];
		}
		$KeyUrl = "";
		if (@$_GET["Id"] <> "") {
			$this->RecKey["Id"] = $_GET["Id"];
			$KeyUrl .= "&amp;Id=" . urlencode($this->RecKey["Id"]);
		}
		$this->ExportPrintUrl = $this->PageUrl() . "export=print" . $KeyUrl;
		$this->ExportHtmlUrl = $this->PageUrl() . "export=html" . $KeyUrl;
		$this->ExportExcelUrl = $this->PageUrl() . "export=excel" . $KeyUrl;
		$this->ExportWordUrl = $this->PageUrl() . "export=word" . $KeyUrl;
		$this->ExportXmlUrl = $this->PageUrl() . "export=xml" . $KeyUrl;
		$this->ExportCsvUrl = $this->PageUrl() . "export=csv" . $KeyUrl;
		$this->ExportPdfUrl = $this->PageUrl() . "export=pdf" . $KeyUrl;

		// Table object (admin)
		if (!isset($GLOBALS['admin'])) $GLOBALS['admin'] = new cadmin();

		// Table object (categorias)
		if (!isset($GLOBALS['categorias'])) $GLOBALS['categorias'] = new ccategorias();

		// Table object (subcategorias)
		if (!isset($GLOBALS['subcategorias'])) $GLOBALS['subcategorias'] = new csubcategorias();

		// Page ID
		if (!defined("EW_PAGE_ID"))
			define("EW_PAGE_ID", 'view', TRUE);

		// Table name (for backward compatibility)
		if (!defined("EW_TABLE_NAME"))
			define("EW_TABLE_NAME", 'produtos', TRUE);

		// Start timer
		if (!isset($GLOBALS["gTimer"])) $GLOBALS["gTimer"] = new cTimer();

		// Open connection
		if (!isset($conn)) $conn = ew_Connect();

		// Export options
		$this->ExportOptions = new cListOptions();
		$this->ExportOptions->Tag = "div";
		$this->ExportOptions->TagClassName = "ewExportOption";

		// Other options
		$this->OtherOptions['action'] = new cListOptions();
		$this->OtherOptions['action']->Tag = "div";
		$this->OtherOptions['action']->TagClassName = "ewActionOption";
		$this->OtherOptions['detail'] = new cListOptions();
		$this->OtherOptions['detail']->Tag = "div";
		$this->OtherOptions['detail']->TagClassName = "ewDetailOption";
	}

	// 
	//  Page_Init
	//
	function Page_Init() {
		global $gsExport, $gsExportFile, $UserProfile, $Language, $Security, $objForm;

		// Security
		$Security = new cAdvancedSecurity();
		if (!$Security->IsLoggedIn()) $Security->AutoLogin();
		if (!$Security->IsLoggedIn()) {
			$Security->SaveLastUrl();
			$this->Page_Terminate("login.php");
		}
		$this->CurrentAction = (@$_GET["a"] <> "") ? $_GET["a"] : @$_POST["a_list"]; // Set up curent action

		// Global Page Loading event (in userfn*.php)
		Page_Loading();

		// Page Load event
		$this->Page_Load();
	}

	//
	// Page_Terminate
	//
	function Page_Terminate($url = "") {
		global $conn;

		// Page Unload event
		$this->Page_Unload();

		// Global Page Unloaded event (in userfn*.php)
		Page_Unloaded();
		$this->Page_Redirecting($url);

		 // Close connection
		$conn->Close();

		// Go to URL if specified
		if ($url <> "") {
			if (!EW_DEBUG_ENABLED && ob_get_length())
				ob_end_clean();
			header("Location: " . $url);
		}
		exit();
	}
	var $ExportOptions; // Export options
	var $OtherOptions = array(); // Other options
	var $DisplayRecs = 1;
	var $StartRec;
	var $StopRec;
	var $TotalRecs = 0;
	var $RecRange = 10;
	var $RecCnt;
	var $RecKey = array();
	var $Recordset;

	//
	// Page main
	//
	function Page_Main() {
		global $Language;
		$sReturnUrl = "";
		$bMatchRecord = FALSE;

		// Set up Breadcrumb
		$this->SetupBreadcrumb();
		if ($this->IsPageRequest()) { // Validate request
			if (@$_GET["Id"] <> "") {
				$this->Id->setQueryStringValue($_GET["Id"]);
				$this->RecKey["Id"] = $this->Id->QueryStringValue;
			} else {
				$sReturnUrl = "produtoslist.php"; // Return to list
			}

			// Get action
			$this->CurrentAction = "I"; // Display form
			switch ($this->CurrentAction) {
				case "I": // Get a record to display
					if (!$this->LoadRow()) { // Load record based on key
						if ($this->getSuccessMessage() == "" && $this->getFailureMessage() == "")
							$this->setFailureMessage($Language->Phrase("NoRecord")); // Set no record message
						$sReturnUrl = "produtoslist.php"; // No matching record, return to list
					}
			}
		} else {
			$sReturnUrl = "produtoslist.php"; // Not page request, return to list
		}
		if ($sReturnUrl <> "")
			$this->Page_Terminate($sReturnUrl);

		// Render row
		$this->RowType = EW_ROWTYPE_VIEW;
		$this->ResetAttrs();
		$this->RenderRow();
	}

	// Set up other options
	function SetupOtherOptions() {
		global $Language, $Security;
		$options = &$this->OtherOptions;
		$option = &$options["action"];

		// Add
		$item = &$option->Add("add");
		$item->Body = "<a class=\"ewAction ewAdd\" href=\"" . ew_HtmlEncode($this->AddUrl) . "\">" . $Language->Phrase("ViewPageAddLink") . "</a>";
		$item->Visible = ($this->AddUrl <> "" && $Security->IsLoggedIn());

		// Edit
		$item = &$option->Add("edit");
		$item->Body = "<a class=\"ewAction ewEdit\" href=\"" . ew_HtmlEncode($this->EditUrl) . "\">" . $Language->Phrase("ViewPageEditLink") . "</a>";
		$item->Visible = ($this->EditUrl <> "" && $Security->IsLoggedIn());

		// Copy
		$item = &$option->Add("copy");
		$item->Body = "<a class=\"ewAction ewCopy\" href=\"" . ew_HtmlEncode($this->CopyUrl) . "\">" . $Language->Phrase("ViewPageCopyLink") . "</a>";
		$item->Visible = ($this->CopyUrl <> "" && $Security->IsLoggedIn());

		// Delete
		$item = &$option->Add("delete");
		$item->Body = "<a class=\"ewAction ewDelete\" href=\"" . ew_HtmlEncode($this->DeleteUrl) . "\">" . $Language->Phrase("ViewPageDeleteLink") . "</a>";
		$item->Visible = ($this->DeleteUrl <> "" && $Security->IsLoggedIn());

		// Set up options default
		foreach ($options as &$option) {
			$option->UseDropDownButton = FALSE;
			$option->UseButtonGroup = TRUE;
			$item = &$option->Add($option->GroupOptionName);
			$item->Body = "";
			$item->Visible = FALSE;
		}
		$options["detail"]->DropDownButtonPhrase = $Language->Phrase("ButtonDetails");
		$options["action"]->DropDownButtonPhrase = $Language->Phrase("ButtonActions");
	}

	// Set up starting record parameters
	function SetUpStartRec() {
		if ($this->DisplayRecs == 0)
			return;
		if ($this->IsPageRequest()) { // Validate request
			if (@$_GET[EW_TABLE_START_REC] <> "") { // Check for "start" parameter
				$this->StartRec = $_GET[EW_TABLE_START_REC];
				$this->setStartRecordNumber($this->StartRec);
			} elseif (@$_GET[EW_TABLE_PAGE_NO] <> "") {
				$PageNo = $_GET[EW_TABLE_PAGE_NO];
				if (is_numeric($PageNo)) {
					$this->StartRec = ($PageNo-1)*$this->DisplayRecs+1;
					if ($this->StartRec <= 0) {
						$this->StartRec = 1;
					} elseif ($this->StartRec >= intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1) {
						$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1;
					}
					$this->setStartRecordNumber($this->StartRec);
				}
			}
		}
		$this->StartRec = $this->getStartRecordNumber();

		// Check if correct start record counter
		if (!is_numeric($this->StartRec) || $this->StartRec == "") { // Avoid invalid start record counter
			$this->StartRec = 1; // Reset start record counter
			$this->setStartRecordNumber($this->StartRec);
		} elseif (intval($this->StartRec) > intval($this->TotalRecs)) { // Avoid starting record > total records
			$this->StartRec = intval(($this->TotalRecs-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to last page first record
			$this->setStartRecordNumber($this->StartRec);
		} elseif (($this->StartRec-1) % $this->DisplayRecs <> 0) {
			$this->StartRec = intval(($this->StartRec-1)/$this->DisplayRecs)*$this->DisplayRecs+1; // Point to page boundary
			$this->setStartRecordNumber($this->StartRec);
		}
	}

	// Load row based on key values
	function LoadRow() {
		global $conn, $Security, $Language;
		$sFilter = $this->KeyFilter();

		// Call Row Selecting event
		$this->Row_Selecting($sFilter);

		// Load SQL based on filter
		$this->CurrentFilter = $sFilter;
		$sSql = $this->SQL();
		$res = FALSE;
		$rs = ew_LoadRecordset($sSql);
		if ($rs && !$rs->EOF) {
			$res = TRUE;
			$this->LoadRowValues($rs); // Load row values
			$rs->Close();
		}
		return $res;
	}

	// Load row values from recordset
	function LoadRowValues(&$rs) {
		global $conn;
		if (!$rs || $rs->EOF) return;

		// Call Row Selected event
		$row = &$rs->fields;
		$this->Row_Selected($row);
		$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->imagem->CurrentValue = $this->imagem->Upload->DbValue;
		$this->imagem2->Upload->DbValue = $rs->fields('imagem2');
		$this->imagem2->CurrentValue = $this->imagem2->Upload->DbValue;
		$this->imagem3->Upload->DbValue = $rs->fields('imagem3');
		$this->imagem3->CurrentValue = $this->imagem3->Upload->DbValue;
		$this->imagem4->Upload->DbValue = $rs->fields('imagem4');
		$this->imagem4->CurrentValue = $this->imagem4->Upload->DbValue;
		$this->imagem5->Upload->DbValue = $rs->fields('imagem5');
		$this->imagem5->CurrentValue = $this->imagem5->Upload->DbValue;
		$this->imagem6->Upload->DbValue = $rs->fields('imagem6');
		$this->imagem6->CurrentValue = $this->imagem6->Upload->DbValue;
		$this->exibir->setDbValue($rs->fields('exibir'));
		$this->pdf->Upload->DbValue = $rs->fields('pdf');
		$this->pdf->CurrentValue = $this->pdf->Upload->DbValue;
		$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'));
	}

	// Load DbValue from recordset
	function LoadDbValues(&$rs) {
		if (!$rs || !is_array($rs) && $rs->EOF) return;
		$row = is_array($rs) ? $rs : $rs->fields;
		$this->Id->DbValue = $row['Id'];
		$this->id_categoria->DbValue = $row['id_categoria'];
		$this->id_subcategoria->DbValue = $row['id_subcategoria'];
		$this->nome->DbValue = $row['nome'];
		$this->preco->DbValue = $row['preco'];
		$this->imagem->Upload->DbValue = $row['imagem'];
		$this->imagem2->Upload->DbValue = $row['imagem2'];
		$this->imagem3->Upload->DbValue = $row['imagem3'];
		$this->imagem4->Upload->DbValue = $row['imagem4'];
		$this->imagem5->Upload->DbValue = $row['imagem5'];
		$this->imagem6->Upload->DbValue = $row['imagem6'];
		$this->exibir->DbValue = $row['exibir'];
		$this->pdf->Upload->DbValue = $row['pdf'];
		$this->resumo->DbValue = $row['resumo'];
		$this->classificada->DbValue = $row['classificada'];
		$this->downloads->DbValue = $row['downloads'];
		$this->home->DbValue = $row['home'];
		$this->seguranca->DbValue = $row['seguranca'];
		$this->ordem->DbValue = $row['ordem'];
	}

	// Render row values based on field settings
	function RenderRow() {
		global $conn, $Security, $Language;
		global $gsLanguage;

		// Initialize URLs
		$this->AddUrl = $this->GetAddUrl();
		$this->EditUrl = $this->GetEditUrl();
		$this->CopyUrl = $this->GetCopyUrl();
		$this->DeleteUrl = $this->GetDeleteUrl();
		$this->ListUrl = $this->GetListUrl();
		$this->SetupOtherOptions();

		// Convert decimal values if posted back
		if ($this->preco->FormValue == $this->preco->CurrentValue && is_numeric(ew_StrToFloat($this->preco->CurrentValue)))
			$this->preco->CurrentValue = ew_StrToFloat($this->preco->CurrentValue);

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

		// Common render codes for all row types
		// Id
		// id_categoria
		// id_subcategoria
		// nome
		// preco
		// imagem
		// imagem2
		// imagem3
		// imagem4
		// imagem5
		// imagem6
		// exibir
		// pdf
		// resumo
		// classificada
		// downloads
		// home
		// seguranca
		// ordem

		if ($this->RowType == EW_ROWTYPE_VIEW) { // View row

			// 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_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 = "";

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

		// Call Row Rendered event
		if ($this->RowType <> EW_ROWTYPE_AGGREGATEINIT)
			$this->Row_Rendered();
	}

	// Set up Breadcrumb
	function SetupBreadcrumb() {
		global $Breadcrumb, $Language;
		$Breadcrumb = new cBreadcrumb();
		$Breadcrumb->Add("list", $this->TableVar, "produtoslist.php", $this->TableVar, TRUE);
		$PageId = "view";
		$Breadcrumb->Add("view", $PageId, ew_CurrentUrl());
	}

	// Page Load event
	function Page_Load() {

		//echo "Page Load";
	}

	// Page Unload event
	function Page_Unload() {

		//echo "Page Unload";
	}

	// Page Redirecting event
	function Page_Redirecting(&$url) {

		// Example:
		//$url = "your URL";

	}

	// Message Showing event
	// $type = ''|'success'|'failure'|'warning'
	function Message_Showing(&$msg, $type) {
		if ($type == 'success') {

			//$msg = "your success message";
		} elseif ($type == 'failure') {

			//$msg = "your failure message";
		} elseif ($type == 'warning') {

			//$msg = "your warning message";
		} else {

			//$msg = "your message";
		}
	}

	// Page Render event
	function Page_Render() {

		//echo "Page Render";
	}

	// Page Data Rendering event
	function Page_DataRendering(&$header) {

		// Example:
		//$header = "your header";

	}

	// Page Data Rendered event
	function Page_DataRendered(&$footer) {

		// Example:
		//$footer = "your footer";

	}
}
?>
<?php ew_Header(FALSE) ?>
<?php

// Create page object
if (!isset($produtos_view)) $produtos_view = new cprodutos_view();

// Page init
$produtos_view->Page_Init();

// Page main
$produtos_view->Page_Main();

// Global Page Rendering event (in userfn*.php)
Page_Rendering();

// Page Rendering event
$produtos_view->Page_Render();
?>
<?php include_once "header.php" ?>
<script type="text/javascript">

// Page object
var produtos_view = new ew_Page("produtos_view");
produtos_view.PageID = "view"; // Page ID
var EW_PAGE_ID = produtos_view.PageID; // For backward compatibility

// Form object
var fprodutosview = new ew_Form("fprodutosview");

// Form_CustomValidate event
fprodutosview.Form_CustomValidate = 
 function(fobj) { // DO NOT CHANGE THIS LINE!

 	// Your custom validation code here, return false if invalid. 
 	return true;
 }

// Use JavaScript validation or not
<?php if (EW_CLIENT_VALIDATE) { ?>
fprodutosview.ValidateRequired = true;
<?php } else { ?>
fprodutosview.ValidateRequired = false; 
<?php } ?>

// Dynamic selection lists
fprodutosview.Lists["x_id_categoria"] = {"LinkField":"x_id","Ajax":null,"AutoFill":false,"DisplayFields":["x_categoria","","",""],"ParentFields":[],"FilterFields":[],"Options":[]};
fprodutosview.Lists["x_id_subcategoria"] = {"LinkField":"x_id","Ajax":null,"AutoFill":false,"DisplayFields":["x_subcategoria","","",""],"ParentFields":[],"FilterFields":[],"Options":[]};

// Form object for search
</script>
<script type="text/javascript">

// Write your client script here, no need to add script tags.
</script>
<?php $Breadcrumb->Render(); ?>
<div class="ewViewExportOptions">
<?php $produtos_view->ExportOptions->Render("body") ?>
<?php if (!$produtos_view->ExportOptions->UseDropDownButton) { ?>
</div>
<div class="ewViewOtherOptions">
<?php } ?>
<?php
	foreach ($produtos_view->OtherOptions as &$option)
		$option->Render("body");
?>
</div>
<?php $produtos_view->ShowPageHeader(); ?>
<?php
$produtos_view->ShowMessage();
?>
<form name="fprodutosview" id="fprodutosview" class="ewForm form-horizontal" action="<?php echo ew_CurrentPage() ?>" method="post">
<input type="hidden" name="t" value="produtos">
<table class="ewGrid"><tr><td>
<table id="tbl_produtosview" class="table table-bordered table-striped">
<?php if ($produtos->id_categoria->Visible) { // id_categoria ?>
	<tr id="r_id_categoria">
		<td><span id="elh_produtos_id_categoria"><?php echo $produtos->id_categoria->FldCaption() ?></span></td>
		<td<?php echo $produtos->id_categoria->CellAttributes() ?>>
<span id="el_produtos_id_categoria" class="control-group">
<span<?php echo $produtos->id_categoria->ViewAttributes() ?>>
<?php echo $produtos->id_categoria->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->id_subcategoria->Visible) { // id_subcategoria ?>
	<tr id="r_id_subcategoria">
		<td><span id="elh_produtos_id_subcategoria"><?php echo $produtos->id_subcategoria->FldCaption() ?></span></td>
		<td<?php echo $produtos->id_subcategoria->CellAttributes() ?>>
<span id="el_produtos_id_subcategoria" class="control-group">
<span<?php echo $produtos->id_subcategoria->ViewAttributes() ?>>
<?php echo $produtos->id_subcategoria->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->nome->Visible) { // nome ?>
	<tr id="r_nome">
		<td><span id="elh_produtos_nome"><?php echo $produtos->nome->FldCaption() ?></span></td>
		<td<?php echo $produtos->nome->CellAttributes() ?>>
<span id="el_produtos_nome" class="control-group">
<span<?php echo $produtos->nome->ViewAttributes() ?>>
<?php echo $produtos->nome->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->preco->Visible) { // preco ?>
	<tr id="r_preco">
		<td><span id="elh_produtos_preco"><?php echo $produtos->preco->FldCaption() ?></span></td>
		<td<?php echo $produtos->preco->CellAttributes() ?>>
<span id="el_produtos_preco" class="control-group">
<span<?php echo $produtos->preco->ViewAttributes() ?>>
<?php echo $produtos->preco->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem->Visible) { // imagem ?>
	<tr id="r_imagem">
		<td><span id="elh_produtos_imagem"><?php echo $produtos->imagem->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem->CellAttributes() ?>>
<span id="el_produtos_imagem" class="control-group">
<span>
<?php if ($produtos->imagem->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem->ViewValue ?>" alt=""<?php echo $produtos->imagem->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem->ViewValue ?>" alt=""<?php echo $produtos->imagem->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem2->Visible) { // imagem2 ?>
	<tr id="r_imagem2">
		<td><span id="elh_produtos_imagem2"><?php echo $produtos->imagem2->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem2->CellAttributes() ?>>
<span id="el_produtos_imagem2" class="control-group">
<span>
<?php if ($produtos->imagem2->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem2->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem2->ViewValue ?>" alt=""<?php echo $produtos->imagem2->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem2->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem2->ViewValue ?>" alt=""<?php echo $produtos->imagem2->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem3->Visible) { // imagem3 ?>
	<tr id="r_imagem3">
		<td><span id="elh_produtos_imagem3"><?php echo $produtos->imagem3->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem3->CellAttributes() ?>>
<span id="el_produtos_imagem3" class="control-group">
<span>
<?php if ($produtos->imagem3->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem3->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem3->ViewValue ?>" alt=""<?php echo $produtos->imagem3->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem3->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem3->ViewValue ?>" alt=""<?php echo $produtos->imagem3->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem4->Visible) { // imagem4 ?>
	<tr id="r_imagem4">
		<td><span id="elh_produtos_imagem4"><?php echo $produtos->imagem4->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem4->CellAttributes() ?>>
<span id="el_produtos_imagem4" class="control-group">
<span>
<?php if ($produtos->imagem4->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem4->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem4->ViewValue ?>" alt=""<?php echo $produtos->imagem4->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem4->Upload->DbValue)) { ?>
<img src="<?php echo $produtos->imagem4->ViewValue ?>" alt=""<?php echo $produtos->imagem4->ViewAttributes() ?>>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem5->Visible) { // imagem5 ?>
	<tr id="r_imagem5">
		<td><span id="elh_produtos_imagem5"><?php echo $produtos->imagem5->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem5->CellAttributes() ?>>
<span id="el_produtos_imagem5" class="control-group">
<span<?php echo $produtos->imagem5->ViewAttributes() ?>>
<?php if ($produtos->imagem5->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem5->Upload->DbValue)) { ?>
<?php echo $produtos->imagem5->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem5->Upload->DbValue)) { ?>
<?php echo $produtos->imagem5->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->imagem6->Visible) { // imagem6 ?>
	<tr id="r_imagem6">
		<td><span id="elh_produtos_imagem6"><?php echo $produtos->imagem6->FldCaption() ?></span></td>
		<td<?php echo $produtos->imagem6->CellAttributes() ?>>
<span id="el_produtos_imagem6" class="control-group">
<span<?php echo $produtos->imagem6->ViewAttributes() ?>>
<?php if ($produtos->imagem6->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->imagem6->Upload->DbValue)) { ?>
<?php echo $produtos->imagem6->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->imagem6->Upload->DbValue)) { ?>
<?php echo $produtos->imagem6->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->exibir->Visible) { // exibir ?>
	<tr id="r_exibir">
		<td><span id="elh_produtos_exibir"><?php echo $produtos->exibir->FldCaption() ?></span></td>
		<td<?php echo $produtos->exibir->CellAttributes() ?>>
<span id="el_produtos_exibir" class="control-group">
<span<?php echo $produtos->exibir->ViewAttributes() ?>>
<?php echo $produtos->exibir->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->pdf->Visible) { // pdf ?>
	<tr id="r_pdf">
		<td><span id="elh_produtos_pdf"><?php echo $produtos->pdf->FldCaption() ?></span></td>
		<td<?php echo $produtos->pdf->CellAttributes() ?>>
<span id="el_produtos_pdf" class="control-group">
<span<?php echo $produtos->pdf->ViewAttributes() ?>>
<?php if ($produtos->pdf->LinkAttributes() <> "") { ?>
<?php if (!empty($produtos->pdf->Upload->DbValue)) { ?>
<?php echo $produtos->pdf->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } else { ?>
<?php if (!empty($produtos->pdf->Upload->DbValue)) { ?>
<?php echo $produtos->pdf->ViewValue ?>
<?php } elseif (!in_array($produtos->CurrentAction, array("I", "edit", "gridedit"))) { ?>	
&nbsp;
<?php } ?>
<?php } ?>
</span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->resumo->Visible) { // resumo ?>
	<tr id="r_resumo">
		<td><span id="elh_produtos_resumo"><?php echo $produtos->resumo->FldCaption() ?></span></td>
		<td<?php echo $produtos->resumo->CellAttributes() ?>>
<span id="el_produtos_resumo" class="control-group">
<span<?php echo $produtos->resumo->ViewAttributes() ?>>
<?php echo $produtos->resumo->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
<?php if ($produtos->ordem->Visible) { // ordem ?>
	<tr id="r_ordem">
		<td><span id="elh_produtos_ordem"><?php echo $produtos->ordem->FldCaption() ?></span></td>
		<td<?php echo $produtos->ordem->CellAttributes() ?>>
<span id="el_produtos_ordem" class="control-group">
<span<?php echo $produtos->ordem->ViewAttributes() ?>>
<?php echo $produtos->ordem->ViewValue ?></span>
</span>
</td>
	</tr>
<?php } ?>
</table>
</td></tr></table>
</form>
<script type="text/javascript">
fprodutosview.Init();
</script>
<?php
$produtos_view->ShowPageFooter();
if (EW_DEBUG_ENABLED)
	echo ew_DebugMsg();
?>
<script type="text/javascript">

// Write your table-specific startup script here
// document.write("page loaded");

</script>
<?php include_once "footer.php" ?>
<?php
$produtos_view->Page_Terminate();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit