Popup (automatisch)- XHTML Content 1.01 1 1089656896 1094288781 1 <?PHP //Formularname $mip_form['0']['cat'] = 'txt'; $mip_form['0']['type'] = ''; $mip_form['0']['desc'] = 'Formularfeldname (Hovermenü):'; $mip_form['0']['cms_var'] = 'MOD_VAR[0]'; $mip_form['0']['cms_val'] = $dedi_mod['value']['0']; $mip_form['0']['cms_val_default'] = 'Popupbild'; $mip_form['0']['tab'] = '0'; //Feldbeschreibung Titel $mip_form['1']['cat'] = 'txt'; $mip_form['1']['type'] = ''; $mip_form['1']['desc'] = 'Feldbeschreibung Titel:'; $mip_form['1']['cms_var'] = 'MOD_VAR[1]'; $mip_form['1']['cms_val'] = $dedi_mod['value']['1']; $mip_form['1']['cms_val_default'] = 'Url der Seite (http://www.......)'; $mip_form['1']['tab'] = '0'; //Feldbeschreibung Bild $mip_form['2']['cat'] = 'txt'; $mip_form['2']['type'] = ''; $mip_form['2']['desc'] = 'Feldbeschreibung Bild:'; $mip_form['2']['cms_var'] = 'MOD_VAR[2]'; $mip_form['2']['cms_val'] = $dedi_mod['value']['2']; $mip_form['2']['cms_val_default'] = 'Bildauswahl'; $mip_form['2']['tab'] = '0'; //Style Beschreibung $mip_form['3']['desc'] = 'Stylesheet für Thumbnailbild:'; $mip_form['3']['cat'] = 'app_css'; $mip_form['3']['output_cat'] = 'option'; $mip_form['3']['cms_var'] = 'MOD_VAR[3]'; $mip_form['3']['cms_val'] = $dedi_mod['value']['3']; $mip_form['3']['flag'] = 'class_only'; //Style {font1} $mip_form['4']['desc'] = 'Weiteres Stylesheet {font}:'; $mip_form['4']['cat'] = 'app_css'; $mip_form['4']['output_cat'] = 'option'; $mip_form['4']['cms_var'] = 'MOD_VAR[4]'; $mip_form['4']['cms_val'] = $dedi_mod['value']['4']; $mip_form['4']['flag'] = 'class_only'; //Thumbnail Höhe $mip_form['5']['cat'] = 'txt'; $mip_form['5']['type'] = ''; $mip_form['5']['desc'] = 'Thumbnail Breite (in Pixel):'; $mip_form['5']['cms_var'] = 'MOD_VAR[5]'; $mip_form['5']['cms_val'] = $dedi_mod['value']['5']; $mip_form['5']['cms_val_default'] = '150'; $mip_form['5']['tab'] = '0'; //Thumbnail Weite $mip_form['6']['cat'] = 'txt'; $mip_form['6']['type'] = ''; $mip_form['6']['desc'] = 'Thumbnail Höhe (in Pixel):'; $mip_form['6']['cms_var'] = 'MOD_VAR[6]'; $mip_form['6']['cms_val'] = $dedi_mod['value']['6']; $mip_form['6']['cms_val_default'] = ''; $mip_form['6']['tab'] = '0'; //Aspectratio $mip_form['7']['cat'] = 'option'; $mip_form['7']['desc'] = 'Proportionen erhalten:'; $mip_form['7']['cms_var'] = 'MOD_VAR[7]'; $mip_form['7']['cms_val'] = $dedi_mod['value']['7']; $mip_form['7']['cms_val_default'] = 'true'; $mip_form['7']['option_desc']['0'] = 'Ja'; $mip_form['7']['option_val']['0'] = 'true'; $mip_form['7']['option_desc']['1'] = 'Nein'; $mip_form['7']['option_val']['1'] = 'false'; $mip_form['7']['tab'] = '0'; //Dateitypen $mip_form['8']['desc'] = 'Dateitypen:'; $mip_form['8']['cat'] = 'option'; $mip_form['8']['flag'] = 'multiple'; $mip_form['8']['size'] = '5'; $mip_form['8']['cms_var'] = 'MOD_VAR[8]'; $mip_form['8']['cms_val'] = $dedi_mod['value']['8']; $mip_form['8']['cms_val_default'] = 'true'; $mip_form['8']['option_desc']['0'] = 'Alle verfügbaren Webgrafiken'; $mip_form['8']['option_val']['0'] = 'true'; $mip_form['8']['option_desc']['1'] = '*.gif'; $mip_form['8']['option_val']['1'] = 'gif'; $mip_form['8']['option_desc']['2'] = '*.jpg'; $mip_form['8']['option_val']['2'] = 'jpg'; $mip_form['8']['option_desc']['3'] = '*.jpeg'; $mip_form['8']['option_val']['3'] = 'jpeg'; $mip_form['8']['option_desc']['4'] = '*.png'; $mip_form['8']['option_val']['4'] = 'png'; //Ordner $mip_form['9']['desc'] = 'Ordner: '; $mip_form['9']['cat'] = 'app_directory'; $mip_form['9']['output_cat'] = 'option'; $mip_form['9']['cms_var'] = 'MOD_VAR[9]'; $mip_form['9']['cms_val'] = $dedi_mod['value']['9']; $mip_form['9']['flag'] = 'multiple'; $mip_form['9']['cms_val_default'] = 'true'; $mip_form['9']['size'] = '5'; //Unterordner anzeigen $mip_form['10']['cat'] = 'option'; $mip_form['10']['desc'] = 'Vorhandene Unterordner automatisch anzeigen:'; $mip_form['10']['cms_var'] = 'MOD_VAR[10]'; $mip_form['10']['cms_val'] = $dedi_mod['value']['10']; $mip_form['10']['cms_val_default'] = 'false'; $mip_form['10']['option_desc']['0'] = 'Ja'; $mip_form['10']['option_val']['0'] = 'true'; $mip_form['10']['option_desc']['1'] = 'Nein'; $mip_form['10']['option_val']['1'] = 'false'; $mip_form['10']['tab'] = '0'; //Erweitertes Bearbeitungsmenü $mip_form['11']['cat'] = 'radio'; $mip_form['11']['type'] = ''; $mip_form['11']['desc'] = 'Bearbeitungsmenü:<br> <small>Ein <b>normales Menü</b> besteht aus der Schalfläche "bearbeiten", das <b>erweiterte Menü</b> bietet darüberhinaus die Schaltflächen "neu, löschen, nach oben, nach unten". Wird <b>kein Menü</b> gewählt, ist der Content nicht editierbar.</small>'; $mip_form['11']['cms_var'] = 'MOD_VAR[11]'; $mip_form['11']['cms_val'] = $dedi_mod['value']['11']; $mip_form['11']['cms_val_default'] = 'true'; $mip_form['11']['option_desc']['0'] = 'Normales Menü'; $mip_form['11']['option_val']['0'] = 'true'; $mip_form['11']['option_desc']['1'] = 'Erweitertes Menü'; $mip_form['11']['option_val']['1'] = 'advanced'; $mip_form['11']['option_desc']['2'] = 'Kein Menü'; $mip_form['11']['option_val']['2'] = 'false'; $mip_form['11']['tab'] = '0'; // Template $mip_form['12']['desc'] = 'Template:'; $mip_form['12']['cat'] = 'txtarea'; $mip_form['12']['rows'] = '6'; $mip_form['12']['type'] = 'long'; $mip_form['12']['cms_var'] = 'MOD_VAR[12]'; $mip_form['12']['cms_val'] = $dedi_mod['value']['12']; $mip_form['12']['cms_val_default'] = '{popup}{editbutton}'; mip_formsp($mip_form['0']);//formularfeldname mip_formsp($mip_form['1']);//feldbeschreibung textüberschrift mip_formsp($mip_form['2']);//feldbeschreibung bild mip_formsp($mip_form['3']);//style thumbnail mip_formsp($mip_form['4']);//style font1 mip_formsp($mip_form['5']);//bild breite mip_formsp($mip_form['6']);//bild höhe mip_formsp($mip_form['7']);//aspectratio mip_formsp($mip_form['8']);//dateitypen mip_formsp($mip_form['9']);//ordner mip_formsp($mip_form['10']);//unterordner mip_formsp($mip_form['11']);//menü mip_formsp($mip_form['12']);//template echo ' <small><b>Legende:</b><br> Komplettes Popup: {popup}, Bearbeitungsbutton {editbutton}, Stylesheet für Thumbnail: {thumb_style},<br> Titel: {title}, Bildbeschreibung {desc}, Weiterer Style {font}<br> Php-Code: &lt;?PHP echo "Ich bin gecachter phpcode! Ich werde immer nur dann neu generiert, wenn es eine<br> Änderung auf der Seite gegeben hat"; ?&gt;<br> &lt;DEDIPHP&gt; echo "Ich bin ungecachter phpcode! Ich werde bei jedem Aufruf der Seite ausgeführt";&lt;/DEDIPHP&gt;<br> </small>'; unset($mip_form); ?> <?PHP //2003 by Björn Brockmann $myPopup['thumb_url'] = <dedi:mod type="image" id="1" mode="url" width="MOD_VALUE[5]" height="MOD_VALUE[6]" aspectratio="MOD_VALUE[7]" autoresize="true" menuoptions="false" addslashes="true" />; $myPopup['thumb_amplitude'] = <dedi:mod type="image" id="1" mode="amplitude" width="MOD_VALUE[5]" height="MOD_VALUE[6]" aspectratio="MOD_VALUE[7]" autoresize="true" menuoptions="false" addslashes="true" />; $myPopup['thumb_style'] = ( "MOD_VALUE[3]" == "") ? '' : 'class="MOD_VALUE[3]"'; $myPopup['thumb_image'] = '<img src="'. $myPopup['thumb_url'] .'" '. $myPopup['thumb_amplitude'] .' '. $myPopup['thumb_style'] .' alt="" />'; $myPopup['popup_url'] = <dedi:mod type="image" id="1" mode="url" menuoptions="false" addslashes="true" />; $myPopup['popup_width'] = <dedi:mod type="image" id="1" mode="width" menuoptions="false" addslashes="true" />; $myPopup['popup_height'] = <dedi:mod type="image" id="1" mode="height" menuoptions="false" addslashes="true" />; $myPopup['popup_desc'] = <dedi:mod type="image" id="1" mode="desc" menuoptions="false" title="MOD_VALUE[2]" filetypes = "MOD_VALUE[8]" folders = "MOD_VALUE[9]" subfolders ="MOD_VALUE[10]" addslashes="true" />; $myPopup['text_title'] = <dedi:mod type="text" id="1" menuoptions="false" title="MOD_VALUE[1]" addslashes="true" />; $myPopup['editbutton'] = <dedi:mod type="typegroup" elements="text[1],image[1]" title="MOD_VALUE[0]" menuoptions ="MOD_VALUE[11]" addslashes="true" />; $js_function_call = " onclick=\"return gb_pop('". $myPopup['popup_width'] ."', '". $myPopup['popup_height'] ."', '" . $myPopup['popup_url'] . "', '". rawurlencode($myPopup['text_title']) ."')\" "; if ( empty($myPopup['thumb_url']) ) $myPopup['popup'] = ''; else $myPopup['popup'] = ' <a href="'. $myPopup['popup_url'] .'" '. $js_function_call .'>'. $myPopup['thumb_image'] .'</a> '; $myPopup['font1'] = "MOD_VALUE[4]"; $myTplVars['thumb_url'] = '{thumb_url}'; $myTplVars['thumb_amplitude'] = '{thumb_amplitude}'; $myTplVars['thumb_style'] = '{style}'; $myTplVars['thumb_image'] = '{thumb_image}'; $myTplVars['popup_url'] = '{popup_url}'; $myTplVars['popup_width'] = '{popup_width}'; $myTplVars['popup_height'] = '{popup_height}'; $myTplVars['popup_desc'] = '{popup_desc}'; $myTplVars['text_title'] = '{title}'; $myTplVars['editbutton'] = '{editbutton}'; $myTplVars['popup'] = '{popup}'; $myTplVars['font1'] = '{font1}'; $myTpl = "MOD_VALUE[12]"; if($gb_pop_is_throwed_out != true){ //stellt sicher, dass die JS- Funktion bei mehrfacher Verwendung nur einmal ausgegeben wird $gb_pop_is_throwed_out = true; ?> <script type="text/javascript"> //<![CDATA[ var pic_popup = null function gb_pop(b, h, url, windowtitle) { var tpop_bildschirmx = screen.availWidth; var tpop_bildschirmy = screen.availHeight; var tpop_breite = b; var tpop_hoehe = h; var tpop_startx = Math.round(tpop_bildschirmx / 2) - (tpop_breite / 2); var tpop_starty = Math.round(tpop_bildschirmy / 2) - (tpop_hoehe / 2); if (pic_popup != null && !pic_popup.closed) pic_popup.close() pic_popup = window.open('', '', "width="+ b + ", height=" + h + ", status=no, toolbar=no, menubar=no, resizable=yes, scrollbars=no, screenX=" + tpop_startx + ", left=" + tpop_startx + ", screenY=" + tpop_starty + ", top=" + tpop_starty + " "); pic_popup.focus(); pic_popup.document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'); pic_popup.document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" lang="de" xml:lang="de"><head>'); pic_popup.document.writeln('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />'); pic_popup.document.writeln('<title>'+ decodeURI(windowtitle) + '</title></head>'); pic_popup.document.writeln('<body style="overflow:hidden; margin:0;">'); pic_popup.document.writeln('<div style="margin:0;">'); pic_popup.document.writeln('<a href="#" onclick="self.close()"><img src="'+ url +'" style="margin:0px; border:0 none;" alt="" /></a>'); pic_popup.document.writeln('</div></body></html>'); pic_popup.document.close(); return false; } //]]> </script> <?PHP }//end if $myTpl = str_replace($myTplVars, $myPopup, $myTpl); eval('?>'.$myTpl); unset($myTpl, $myTplVars, $myPopup); ?> mod:db17bed012e476a339fbc150009096c9:c1585a63