All pastes #808189 Raw Edit

Stuff

public php v1 · immutable
·published 2007-12-07 11:16 UTC
rendered paste body
<?php/*$inclfilename = '../include.php';while(!@file_exists($inclfilename)){            $inclfilename = "../".$inclfilename;}@require_once($inclfilename);*/require "../../../../../lib/web_admin.php";  require_once("popup.php");?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>	<head>		<title>Link articoli/documenti/gallerie</title>        <META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">		<meta content="noindex, nofollow" name="robots"> 		<script type="text/javascript" src="fckcmscontent.js"></script>		<script type="text/javascript">		<!--			var oEditor			= window.parent.InnerDialogLoaded(); 			var FCK				= oEditor.FCK; 			var FCKLang			= oEditor.FCKLang ;			var FCKConfig		= oEditor.FCKConfig ;            var FCKRegexLib    = oEditor.FCKRegexLib ;			 			// oLink: The actual selected link in the editor.			var oLink = FCK.Selection.MoveToAncestorNode( 'A' ) ;			if ( oLink )				FCK.Selection.SelectNode( oLink ) ;				window.onload = function ()	{ 				// First of all, translates the dialog box texts.				oEditor.FCKLanguageManager.TranslatePage(document);								LoadSelected();							//See function below 				window.parent.SetOkButton( true );		//Show the "Ok" button. 							} 			 			//If an anchor (A) object is currently selected, load the properties into the dialog 			function LoadSelected()	{				var sSelected;								if ( oEditor.FCKBrowserInfo.IsGecko ) {					sSelected = FCK.EditorWindow.getSelection();				} else {					sSelected = FCK.EditorDocument.selection.createRange().text;				}//				if ( sSelected == "" ) {//					alert( 'Devi selezionare prima del testo, per creare un collegamento.' );//				}			}			//Code that runs after the OK button is clicked 			function Ok() {				//Validate is option is selected				var oPageList = document.getElementById( 'cmbPages' ) ;				if(oPageList.selectedIndex == -1) {					alert('Seleziona un link');					return false;				}				                var txtTitle = document.getElementById( 'txtTitle' ).value;                    var sWindowName = ",'" + document.getElementById( 'txtTitle' ).value.replace(/\W/gi, "") + "'" ;                var sFeatures = '' ;                var txtPopupWidth = document.getElementById( 'txtPopupWidth' ).value;                    var txtPopupHeight = document.getElementById( 'txtPopupHeight' ).value;                    var txtPopupLeft = document.getElementById( 'txtPopupLeft' ).value;    				var txtPopupTop = document.getElementById( 'txtPopupTop' ).value;	                if ( txtPopupWidth.value.length > 0 )   sFeatures += ',width=' + txtPopupWidth.value ;                if ( txtPopupHeight.value.length > 0 )  sFeatures += ',height=' + txtPopupHeight.value ;                if ( txtPopupLeft.value.length > 0 )    sFeatures += ',left=' + txtPopupLeft.value ;                if ( txtPopupTop.value.length > 0 )     sFeatures += ',top=' + txtPopupTop.value ;                var urlstart = 'javascript:window.open(';                var urlend = ');void(0)';                                 				// var sURL = document.getElementById( 'PageURL' ) ; 				var sPageId = "'" + oPageList[oPageList.selectedIndex].value + "'";				oLink = oEditor.FCK.CreateLink( urlstart + sPageId + sWindowName + ",'" + sFeatures + ",'" + urlend ) ;                SetAttribute( oLink, 'title'    , txtTitle ) ;				//SetAttribute( oLink, 'title'	, txtTitle ) ;				//SetAttribute( oLink, 'alt'	, txtAlt ) ;				return true;			} 					//-->		</script>		</head>				<body scroll="no" style="OVERFLOW: hidden; margin:0; padding:0;">        <input type="hidden" id="PageURL" value="<?php echo "".$config['query_var']."" ?>" />        <!input type="hidden" id="cmbLinkType" value="url" />        <!input type="hidden" id="cmbLinkProtocol" value="" />        <!input type="hidden" id="cmbTarget" value="popup" />		<table cellSpacing="0" cellPadding="0" width="100%" border="0"  height="100%">			<tr>				<td colspan="2" width="100%" height="15" nowrap="nowrap"><div style="float: left;"><span fckLang="DlgCMSCommentPageSelection"><b>Link Documenti:</b></span></div>                <div style="float: right;"><a href="link.php?PageURL=<?php echo "".$config['query_var']."" ?>">&laquo; Torna al menu precedente</a></div>                </td>			</tr>			<tr>				<td colspan="2" nowrap="nowrap" height="150">                <select id="cmbPages" style="width: 100%" size="20" name="cmbPages">                <?php                    echo topic_plug();                 ?>				</select>                </td>			</tr>			<tr>				<td nowrap align="right"><span fckLang="DlgCMSCommentTitle">HTML title:</span>&nbsp;</td>				<td width="88%"><input id="txtTitle" style="width: 98%;" type="text" name="txtTitle"></td>			</tr>            </tr>                <td colspan="2">                    <table cellspacing="0" cellpadding="0" id="tablePopupFeatures" align="center">                        <tr>                            <td valign="top"><input id="chkPopupResizable" name="chkFeature" value="resizable" type="checkbox" /><label for="chkPopupResizable" fckLang="DlgLnkPopResize">Resizable</label></td>                            <td valign="top"><input id="chkPopupLocationBar" name="chkFeature" value="location" type="checkbox" /><label for="chkPopupLocationBar" fckLang="DlgLnkPopLocation">Location Bar</label></td>                            <td valign="top"><input id="chkPopupManuBar" name="chkFeature" value="menubar" type="checkbox" /><label for="chkPopupManuBar" fckLang="DlgLnkPopMenu">Menu Bar</label></td>                            <td valign="top"><input id="chkPopupScrollBars" name="chkFeature" value="scrollbars" type="checkbox" /><label for="chkPopupScrollBars" fckLang="DlgLnkPopScroll">Scroll Bars</label></td>                        </tr>                        <tr>                            <td valign="top"><input id="chkPopupStatusBar" name="chkFeature" value="status" type="checkbox" /><label for="chkPopupStatusBar" fckLang="DlgLnkPopStatus">Status Bar</label></td>                            <td valign="top"><input id="chkPopupToolbar" name="chkFeature" value="toolbar" type="checkbox" /><label for="chkPopupToolbar" fckLang="DlgLnkPopToolbar">Toolbar</label></td>                            <td valign="top"><input id="chkPopupFullScreen" name="chkFeature" value="fullscreen" type="checkbox" /><label for="chkPopupFullScreen" fckLang="DlgLnkPopFullScrn">Full Screen (IE)</label></td>                            <td valign="top"><input id="chkPopupDependent" name="chkFeature" value="dependent" type="checkbox" /><label for="chkPopupDependent" fckLang="DlgLnkPopDependent">Dependent (Netscape)</label></td>                        </tr>                        <tr>                            <td><span fckLang="DlgLnkPopWidth">Width</span>&nbsp;<input id="txtPopupWidth" type="text" maxlength="4" size="4" /></td>                            <td><span fckLang="DlgLnkPopHeight">Height</span>&nbsp;<input id="txtPopupHeight" type="text" maxlength="4" size="4" /></td>                            <td><span fckLang="DlgLnkPopLeft">Left Position</span>&nbsp;<input id="txtPopupLeft" type="text" maxlength="4" size="4" /></td>                            <td><span fckLang="DlgLnkPopTop">Top Position</span>&nbsp;<input id="txtPopupTop" type="text" maxlength="4" size="4" /></td>                        </tr>                    </table>                </td>                                        <tr>		</table>        		</body></html>