Actualizado el 14-01-2007
versión para imprimir
<?php
#--------------------------------------------------------------------------
# MyPlugin 1.0
#
# HTML-Kit PHP plugin created on 03-ago-2003 13:54:34
# Version Information: HKPGEN 2.96, HKPAPI 1.0.50
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# HTML-Kit will call the following function whenever user clicks on the
# the plugin's icon, selects one of its drop-down menu items or otherwise
# invokes the plugin.
#--------------------------------------------------------------------------
function hkp_Main()
{
$v = new HKPCore;
$nPluginID = 0;
$nOutputMode = 1;
$sOutput = '';
$nMoveCursor = 0;
$nFormatTags = 0;
#-----------------------------------------------------------
# Get the 1 based plugin ID. Useful when there are two or
# more plugins registered within a single file.
#-----------------------------------------------------------
$nPluginID = $v->hkp_DataGetInt( $v->hkp_PLUGIN_ID, 1 );
# Button "Button1"
if($nPluginID == 1)
{
/* Aqui se desarrollan las acciones del plugin
*/
}
$v->hkp_DataAdd( $v->hkp_OUTPUT, $sOutput );
$v->hkp_DataAddInt( $v->hkp_MODE_OUTPUT, $nOutputMode );
$v->hkp_DataAddInt( $v->hkp_MODE_MOVE_TO_CARET, $nMoveCursor );
$v->hkp_DataAddInt( $v->hkp_MODE_PREPROCESS_FORMAT_TAGS, $nFormatTags );
$v->hkp_Quit();
}
#--------------------------------------------------------------------------
# HTML-Kit will call the following function to initialize and register
# the plugin.
#--------------------------------------------------------------------------
function hkp_Register()
{
$v = new HKPCore;
#-------------------------
# Button # 1:
# "Button1"
#-------------------------
$v->hkp_DataSetGlobalSuffix( '_1' );
# Required Information
$v->hkp_DataAdd( $v->hkp_NAME, 'Button1' );
$v->hkp_DataAdd( $v->hkp_SECTION, 'MyPlugins' );
# Optional Information
$v->hkp_DataAdd( $v->hkp_VERSION, '1.0' );
$v->hkp_DataAddInt( $v->hkp_MODE_SHOW_STATUS, 0 );
$v->hkp_DataSetGlobalSuffix( '' );
$v->hkp_Quit();
}
if( hkp_mode_register() )
{
hkp_Register();
}
else
if( hkp_mode_run() )
{
hkp_Main();
}
?>