<?
include ("../../../../../functions/db.php");
include("../../../../../functions/variables.php");
//include("../functions/stripslashes.php");
include("../../../../../functions/functions.php");
$classification_result2 = mssql_query("SELECT * FROM classification order by name");
?>
http://www.opensource.org/licenses/lgpl-license.php
http://www.fckeditor.net/
fredck@fckeditor.net
<html>
<head>
<title>Classify Properties</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="noindex, nofollow" name="robots">
<script src="common/fck_dialog_common.js" type="text/javascript"></script>
<script type="text/javascript">
var oEditor = window.parent.InnerDialogLoaded() ;
// Gets the document DOM
var oDOM = oEditor.FCK.EditorDocument ;
var oActiveEl = oEditor.FCKSelection.GetSelectedElement() ;
window.onload = function()
{
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage(document) ;
if ( oActiveEl && oActiveEl.tagName == 'A' && oActiveEl.name.length > 0 && oActiveEl.getAttribute('href').length == 0 )
document.getElementById('txtName').value = oActiveEl.name ;
else
oActiveEl = null ;
window.parent.SetOkButton( true ) ;
}
function Ok()
{
if ( document.getElementById('txtName').value.length == 0 )
{
alert( oEditor.FCKLang.DlgClassifyErrorName ) ;
return false ;
}
//oEditor.FCK.InsertHtml( '<a name="' + GetE('txtName').value + '"><\/a>' ) ;
oEditor.FCK.InsertHtml( '<b>'+ document.getElementById('txtName').value + '</b>  ' ) ;
return true ;
}
</script>
</head>
<body style="OVERFLOW: hidden" scroll="no">
<table height="100%" width="100%">
<tr>
<td align="center">
<table border="0" cellpadding="0" cellspacing="0" width="80%">
<tr>
<td>
<span fckLang="ClassifyDlgName">Classification Picker</span><BR>
<select id="txtName" name="txtName" style="WIDTH: 100%">
<option value="">----Classification Picker----</option>
<?
while($row1=mssql_fetch_array($classification_result2))
{
echo "<option value=\"$row1[name]\">$row1[name]</option>";
};
?>
</select>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
http://www.opensource.org/licenses/lgpl-license.php
http://www.fckeditor.net/
fredck@fckeditor.net
