当前位置: 首页>>代码示例>>PHP>>正文


PHP sajax_show_javascript函数代码示例

本文整理汇总了PHP中sajax_show_javascript函数的典型用法代码示例。如果您正苦于以下问题:PHP sajax_show_javascript函数的具体用法?PHP sajax_show_javascript怎么用?PHP sajax_show_javascript使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sajax_show_javascript函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

<?php

define("VIRGO_API_DIR", "virgo_api");
require_once "smarty/Smarty.class.php";
require_once VIRGO_API_DIR . "/virgo_api.php";
require "Sajax.php";
require VIRGO_API_DIR . "/ajaxfunctions.php";
sajax_init();
sajax_export("AJAXSynchronizeDB");
sajax_handle_client_request();
$smarty = new Smarty();
$api = new VirgoAPI();
sajax_handle_client_request();
$smarty->assign("synchronizeDB", $api->GetSynchronizeJS());
$smarty->assign("ajax", sajax_show_javascript());
$smarty->display("index.tpl");
开发者ID:uirapuru,项目名称:virgoapi,代码行数:16,代码来源:index.php

示例2: _renderAJAXJavaScript

    /**
     * Outputs the AJAX-powered JavaScript to the browser. It is meant to be used
     * by renderJavaScript()
     *
     * @access private
     */
    function _renderAJAXJavaScript()
    {
        jpimport('helpers.sajax', true);
        sajax_init();
        sajax_force_page_ajax();
        sajax_export('toggle', 'filepane', 'folderpane');
        ?>
<script language="JavaScript" type="text/javascript">
	/*
	 * (S)AJAX Library code
	 */
	 <?php 
        sajax_show_javascript();
        ?>
 	sajax_fail_handle = SAJAXTrap;

	function SAJAXTrap( myData ) {
		alert('Invalid AJAX reponse: ' + myData);
	}

	var globRoot = '';
	
	function toggle( fileName )
	{
		x_toggle( fileName, toggle_cb );
	}
	
	function toggle_cb( myRet )
	{
		filepane();
	}
	
	function filepane()
	{
		x_filepane( globRoot, filepane_cb ); 
	}
	
	function filepane_cb( myRet )
	{
		document.getElementById('filepane').innerHTML = myRet;
	}
	
	function folderpane( path )
	{
		globRoot = path;
		document.getElementById('currentdirectory').innerHTML = globRoot;
		x_folderpane( globRoot, folderpane_cb );
	}
	
	function folderpane_cb( myRet )
	{
		document.getElementById('folderpane').innerHTML = myRet;
		filepane();
	}
</script>
<?php 
    }
开发者ID:albertobraschi,项目名称:Hab,代码行数:63,代码来源:sff.php

示例3: __construct

 public function __construct()
 {
     sajax_init();
     sajax_export("AJAXSynchronizeDB");
     sajax_export("AJAXSynchronizeOffersCount");
     sajax_handle_client_request();
     $this->synchronizeDB = $this->GetSynchronizeJS();
     $this->synchronizeOffersCount = $this->GetSynchronizeOffersCount();
     $this->ajax = sajax_show_javascript();
 }
开发者ID:uirapuru,项目名称:virgoapi,代码行数:10,代码来源:api.php

示例4: _renderAJAXJavaScript

    /**
     * Outputs the AJAX-powered JavaScript to the browser. It is meant to be used
     * by renderJavaScript()
     *
     * @access private
     */
    function _renderAJAXJavaScript()
    {
        jpimport('helpers.sajax', true);
        sajax_init();
        sajax_force_page_ajax();
        sajax_export('toggle', 'tablepane');
        ?>
<script language="JavaScript" type="text/javascript">
	/*
	 * (S)AJAX Library code
	 */
	 <?php 
        sajax_show_javascript();
        ?>
 	sajax_fail_handle = SAJAXTrap;

	function SAJAXTrap( myData ) {
		alert('Invalid AJAX reponse: ' + myData);
	}

	function toggle( table )
	{
		x_toggle( table, toggle_cb );
	}
	
	function toggle_cb( myRet )
	{
		tablepane();
	}
		
	function tablepane()
	{
		x_tablepane( tablepane_cb );
	}
	
	function tablepane_cb( myRet )
	{
		document.getElementById('tablepane').innerHTML = myRet;
	}
</script>
<?php 
    }
开发者ID:albertobraschi,项目名称:Hab,代码行数:48,代码来源:dbef.php

示例5: dirname

include_once dirname(__FILE__) . '/includes/Sajax.php';
$post_id = !empty($_REQUEST['post_id']) ? $_REQUEST['post_id'] : '';
$kermert = new Kermert($con);
$categories = $kermert->loadCategories();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
<link rel="stylesheet" type="text/css" href="./style.css" media="screen" />
<script type="text/javascript" src="./includes/tools.js"></script>
<script type="text/javascript" language="javascript">
<!--
<?php 
sajax_show_javascript();
?>
-->
</script>
<title>Administration</title>
</head>
<body>
<table width="100%" class="Framework" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2">

<div id="top">
<table width="100%" cellpadding="8" cellspacing="0">
<tr>
<td>
<h1>Administration</h1>
开发者ID:BackupTheBerlios,项目名称:kermert-svn,代码行数:31,代码来源:categories.php

示例6: echoHTML

    function echoHTML()
    {
        jpimport('helpers.lang');
        // Get URL for JavaScript
        $jsURI_pb = JoomlapackAbstraction::SiteURI() . '/administrator/components/' . JoomlapackAbstraction::getParam('option', 'com_joomlapack') . '/assets/js/xp_progress.js';
        // Get some more HTML fragments
        $headingHTML = JoomlapackCommonHTML::getAdminHeadingHTML(JoomlapackLangManager::_('CPANEL_DBEF'));
        $this->commonSAJAX();
        echo <<<ENDFRAGMENT
\t\t\t<script language="javascript" src="{$jsURI_pb}">
\t\t\t\t// WinXP Progress Bar- By Brian Gosselin- http://www.scriptasylum.com/
\t\t\t</script>
\t\t\t<script language="JavaScript" type="text/javascript">
\t\t\t\t/*
\t\t\t\t * (S)AJAX Library code
\t\t\t\t */
ENDFRAGMENT;
        sajax_show_javascript();
        echo <<<ENDFRAGMENT
\t\t \t\tsajax_fail_handle = SAJAXTrap;
\t\t
\t\t\t\tfunction SAJAXTrap( myData ) {
\t\t\t\t\talert('Invalid AJAX reponse: ' + myData);
\t\t\t\t}
\t\t\t\t\t
\t\t\t\tfunction ToggleFilter( myTable, myID ) {
\t\t\t\t\tvar sCheckStatus = (document.getElementById(myID).checked == true) ? "on" : "off";
\t\t\t
\t\t\t\t\tdocument.getElementById("DBEFScreen").style.display = "none";
\t\t\t\t\tdocument.getElementById("DBEFProgressBar").style.display = "block";
\t\t\t
\t\t\t\t\tx_toggleDBFilter( myTable, sCheckStatus, ToggleFilter_cb );
\t\t\t\t}
\t\t\t
\t\t\t\tfunction ToggleFilter_cb( myRet ) {
\t\t\t\t\tTablesHTML();
\t\t\t\t\tdocument.getElementById("DBEFScreen").style.display = "block";
\t\t\t\t\tdocument.getElementById("DBEFProgressBar").style.display = "none";
\t\t\t\t}
\t\t\t
\t\t\t\tfunction TablesHTML() {
\t\t\t\t\tx_DBSelectionHTML( cb_TablesHTML );
\t\t\t\t}
\t\t\t
\t\t\t\tfunction cb_TablesHTML( myRet ) {
\t\t\t\t\tdocument.getElementById("DBEFScreen").style.display = "block";
\t\t\t\t\tdocument.getElementById("DBEFProgressBar").style.display = "none";
\t\t\t\t\tdocument.getElementById("DBEFOperationList").innerHTML = myRet;
\t\t\t\t}
\t\t\t\t
\t\t\t\tfunction Reset() {
\t\t\t\t\tdocument.getElementById("DBEFScreen").style.display = "none";
\t\t\t\t\tdocument.getElementById("DBEFProgressBar").style.display = "block";
\t\t\t\t\tx_ResetDBEF( ToggleFilter_cb );
\t\t\t\t}
\t\t\t\t
\t\t\t\tfunction FilterNonJ()
\t\t\t\t{
\t\t\t\t\tdocument.getElementById("DBEFScreen").style.display = "none";
\t\t\t\t\tdocument.getElementById("DBEFProgressBar").style.display = "block";
\t\t\t\t\tx_FilterNonJoomlaTables( ToggleFilter_cb );
\t\t\t\t}
\t\t\t</script>
\t\t\t
\t\t\t<div id="DBEFProgressBar" style="display:none;" class="sitePack">
\t\t\t\t<h4>Please wait...</h4>
\t\t\t\t<script type="text/javascript">
\t\t\t\t\tvar bar0 = createBar(320,15,'white',1,'black','blue',85,7,3,"");
\t\t\t\t</script>
\t\t\t</div>
\t\t\t
\t\t\t<div id="DBEFScreen">
\t\t\t\t{$headingHTML}
\t\t\t\t<div id="DBEFOperationList">
\t\t\t\t\t<script type="text/javascript">
\t\t\t\t\t\tTablesHTML();
\t\t\t\t\t</script>
\t\t\t\t</div>
\t\t\t</div>\t\t
ENDFRAGMENT;
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:81,代码来源:dbef.php

示例7: echoHTML

    /**
     * Displays the page
     *
     */
    function echoHTML()
    {
        jpimport('helpers.lang');
        // Default to site's root folder
        $myRoot = JPATH_SITE;
        $rootArray = explode('\\', $myRoot);
        $myRoot = implode('//', $rootArray);
        // Get URL for JavaScript
        $jsURI_pb = JoomlapackAbstraction::SiteURI() . '/administrator/components/' . JoomlapackAbstraction::getParam('option', 'com_joomlapack') . '/assets/js/xp_progress.js';
        // Get some more HTML fragments
        $headingHTML = JoomlapackCommonHTML::getAdminHeadingHTML(JoomlapackLangManager::_('CPANEL_SFF'));
        $this->commonSAJAX();
        ?>
			<script language="javascript" src="<?php 
        echo $jsURI_pb;
        ?>
">
				// WinXP Progress Bar- By Brian Gosselin- http://www.scriptasylum.com/
			</script>
			<script language="JavaScript" type="text/javascript">
				/*
				 * (S)AJAX Library code
				 */
				 <?php 
        sajax_show_javascript();
        ?>
		 		sajax_fail_handle = SAJAXTrap;
		
				function SAJAXTrap( myData ) {
					alert('Invalid AJAX reponse: ' + myData);
				}

				 
				 var globRoot;
				 
				function ToggleFilter( myRoot, myFile, myID ) {
					var sCheckStatus = (document.getElementById(myID).checked == true) ? "on" : "off";
			
					globRoot = myRoot;
			
					document.getElementById("DEFScreen").style.display = "none";
					document.getElementById("DEFProgressBar").style.display = "block";
			
					x_toggleFileFilter( myRoot, myFile, sCheckStatus, ToggleFilter_cb );
				}
			
				function ToggleFilter_cb( myRet ) {
					dirSelectionHTML( globRoot );
					document.getElementById("DEFScreen").style.display = "block";
					document.getElementById("DEFProgressBar").style.display = "none";
				}
			
				function dirSelectionHTML( myRoot ) {
					globRoot = myRoot;
					x_sffSelectionHTML( myRoot, cb_dirSelectionHTML );
				}
			
				function cb_dirSelectionHTML( myRet ) {
					document.getElementById("DEFScreen").style.display = "block";
					document.getElementById("DEFProgressBar").style.display = "none";
					document.getElementById("DEFOperationList").innerHTML = myRet;
				}
			</script>
			
			<div id="DEFProgressBar" style="display:none;" class="sitePack">
				<h4>Please wait...</h4>
				<script type="text/javascript">
					var bar0 = createBar(320,15,'white',1,'black','blue',85,7,3,"");
				</script>
			</div>
			
			<div id="DEFScreen">
				<?php 
        echo $headingHTML;
        ?>
				<div id="DEFOperationList">
					<script type="text/javascript">
						dirSelectionHTML('<?php 
        echo $myRoot;
        ?>
');
					</script>
				</div>
			</div>	
		<?php 
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:90,代码来源:sff.php

示例8: echoAJAXJS

    function echoAJAXJS()
    {
        $this->commonSAJAX();
        echo <<<ENDFRAGMENT
\t\t<script language="JavaScript" type="text/javascript">
\t\t\t\t/*
\t\t\t\t * (S)AJAX Library code
\t\t\t\t */
ENDFRAGMENT;
        sajax_show_javascript();
        echo <<<ENDFRAGMENT
\t\t
\t\t \t\tsajax_fail_handle = SAJAXTrap;
\t\t
\t\t\t\tfunction SAJAXTrap( myData ) {
\t\t\t\t\talert('Invalid AJAX reponse: ' + myData);
\t\t\t\t}
\t\t\t\t
\t\t\t\tfunction getDefaultOutputDirectory()
\t\t\t\t{
\t\t\t\t\tx_getDefaultOutputDirectory( getDefaultOutputDirectory_cb )
\t\t\t\t}
\t\t\t\t
\t\t\t\tfunction getDefaultOutputDirectory_cb( myRet )
\t\t\t\t{
\t\t\t\t\tdocument.getElementById("outdir").value = myRet;
\t\t\t\t}

\t\t\t\tfunction getDefaultTempDirectory()
\t\t\t\t{
\t\t\t\t\tx_getDeafultTempDirectory( getDeafultTempDirectory_cb )
\t\t\t\t}
\t\t\t\t
\t\t\t\tfunction getDeafultTempDirectory_cb( myRet )
\t\t\t\t{
\t\t\t\t\tdocument.getElementById("tempdir").value = myRet;
\t\t\t\t}
\t\t\t\t
\t\t</script>
ENDFRAGMENT;
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:41,代码来源:configeditor.php

示例9: mysql_query

		if($time_check > '86400') {
			$delete_extras = mysql_query ('DELETE FROM phaos_shout WHERE id = \''.$row['id'].'\' ');
		}
	}
}

$sajax_request_type = "GET";
sajax_init();
sajax_export("add_chat_line", "refresh");
sajax_handle_client_request();
?>
<html>
<head>

<script>
<?php sajax_show_javascript(); ?>
function refresh_chat(new_data) {
	document.getElementById("chat_right_side").innerHTML = new_data;
}

function refresh() {
	x_refresh(refresh_chat);
}

function add_chat_line_cb() {
	refresh();
}

function add_chat_line() {
	var chat_text;
	chat_text = document.chat_form.chat_text.value;
开发者ID:pombredanne,项目名称:ArcherSys,代码行数:31,代码来源:header.php

示例10: handleAJAX

 /**
  * Sets up the pages AJAX functions.
  *
  * @author Ben Dodson
  * @version 1/12/05
  * @since 1/12/05
  */
 function handleAJAX()
 {
     global $include_path, $jukebox, $my_frontend;
     // AJAX:
     $ajax_list = array();
     @(include_once $include_path . "frontend/frontends/{$my_frontend}/ajax.php");
     @(include_once $include_path . "frontend/frontends/{$my_frontend}/ajax_scripts.php");
     @(include_once $include_path . "frontend/ajax.php");
     @(include_once $include_path . "frontend/ajax_scripts.php");
     if ($jukebox == "true") {
         include_once $include_path . "jukebox/ajax.php";
         include_once $include_path . "jukebox/ajax_scripts.php";
     }
     if (sizeof($ajax_list > 0)) {
         // This frontend has AJAX functions:
         global $sajax_debug_mode, $sajax_export_list, $sajax_request_type, $sajax_remote_uri;
         $sajax_debug_mode = 0;
         include_once $include_path . "lib/Sajax.php";
         sajax_init();
         for ($i = 0; $i < sizeof($ajax_list); $i++) {
             sajax_export($ajax_list[$i]);
         }
         echo "\n<script>\n";
         sajax_show_javascript();
         echo "\n</script>\n";
     }
 }
开发者ID:seanfbrown,项目名称:jinzora,代码行数:34,代码来源:display.php

示例11: show

    function show($args)
    {
        $pluginrelativepath = $this->getPluginUrl();
        echo '</td></tr></table></td></tr></table>';
        include 'sajax_functions.php';
        echo '<script language="Javascript">';
        sajax_show_javascript();
        include 'script.js.php';
        echo '</script>';
        echo <<<endHTML
<style type="text/css">
<!--
a.link {font-family:Arial;font-size:8pt;color:#FF0000;}
a:hover {color:#000000;}
td.text {font-family:Arial;font-size:8pt;}
select {font-size:8pt;}
span.logo {font-size:38pt;font-family:monospace;color:#FFFFFF;font-size:bold}
#info {position:absolute;left:185px;top:200px;visibility:hidden}
#pinfo {position:absolute;left:128px;top:220px;visibility:hidden}
#halloffame {position:absolute;left:185px;top:200px;visibility:hidden}
-->
</style>
<form name="hilfeform">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="75" bgcolor="#D0D0D0" align="center" class="text">Version 1.1</td>
<td width="100" bgcolor="#A0A0A0">&nbsp;</td>
<td width="400" bgcolor="#D0D0D0">

 <table cellpadding="3"><tr><td class="text" id="anzeige">Zum Spielstart auf Neustart klicken</td></tr></table>

</td>
<td width="150" bgcolor="#A0A0A0">&nbsp;</td>
</tr>

<tr>
<td rowspan="2" align="center" valign="top"><span class="logo" id="logo0">M</span><br><span class="logo" id="logo1">U</span><br><span class="logo" id="logo2">R</span><br><span class="logo" id="logo3">M</span><br><span class="logo" id="logo4">E</span><br><span class="logo" id="logo5">L</span><br><span class="logo" id="logo6">N</span></td>
<td valign="top">

 <table width="100" cellpadding="0" cellspacing="0">
 <tr>
 <td bgcolor="#D0D0D0" class="text">&nbsp;<br>
 <table cellpadding="5" cellspacing="0">
 <tr>
 <td class="text"><a href="javascript:neustart()" class="link" id="link0">Neustart</a><br><br><a href="javascript:show_info()" class="link" id="link1">Info</a><br><br>
 <a href="javascript:show_halloffame()" class="link" id="link2">Hall of Fame</a>
 </td>
 </tr>
 </table>
 &nbsp;</td>
 </tr>
 </table>

</td>
<td align="center" bgcolor="#A0A0A0">
 <img src="{$pluginrelativepath}/images/trans.gif" width="10" height="5" border="0" alt="">
 <br>
 <table border="0" cellpadding="0" cellspacing="1" bgcolor="#A0A0A0">
 <tr bgcolor="#000000">
 <td id="zz0"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_0" onclick="klick(0,0)"></td>
 <td id="zz1"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_1" onclick="klick(0,1)"></td>
 <td id="zz2"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_2" onclick="klick(0,2)"></td>
 <td id="zz3"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_3" onclick="klick(0,3)"></td>
 <td id="zz4"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_4" onclick="klick(0,4)"></td>
 <td id="zz5"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_5" onclick="klick(0,5)"></td>
 <td id="zz6"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_0_6" onclick="klick(0,6)"></td>
 </tr>

 <tr bgcolor="#000000">
 <td id="zz7"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_0" onclick="klick(1,0)"></td>
 <td id="zz8"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_1" onclick="klick(1,1)"></td>
 <td id="zz9"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_2" onclick="klick(1,2)"></td>
 <td id="zz10"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_3" onclick="klick(1,3)"></td>
 <td id="zz11"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_4" onclick="klick(1,4)"></td>
 <td id="zz12"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_5" onclick="klick(1,5)"></td>
 <td id="zz13"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_1_6" onclick="klick(1,6)"></td>
 </tr>

 <tr bgcolor="#000000">
 <td id="zz14"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_0" onclick="klick(2,0)"></td>
 <td id="zz15"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_1" onclick="klick(2,1)"></td>
 <td id="zz16"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_2" onclick="klick(2,2)"></td>
 <td id="zz17"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_3" onclick="klick(2,3)"></td>
 <td id="zz18"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_4" onclick="klick(2,4)"></td>
 <td id="zz19"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_5" onclick="klick(2,5)"></td>
 <td id="zz20"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_2_6" onclick="klick(2,6)"></td>
 </tr>

 <tr bgcolor="#000000">
 <td id="zz21"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_0" onclick="klick(3,0)"></td>
 <td id="zz22"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_1" onclick="klick(3,1)"></td>
 <td id="zz23"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_2" onclick="klick(3,2)"></td>
 <td id="zz24"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_3" onclick="klick(3,3)"></td>
 <td id="zz25"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_4" onclick="klick(3,4)"></td>
 <td id="zz26"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_5" onclick="klick(3,5)"></td>
 <td id="zz27"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_3_6" onclick="klick(3,6)"></td>
 </tr>

 <tr bgcolor="#000000">
 <td id="zz28"><img src="{$pluginrelativepath}/images/trans.gif" width="50" height="50" border="0" alt="" name="feld_4_0" onclick="klick(4,0)"></td>
//.........这里部分代码省略.........
开发者ID:noackorama,项目名称:MurmelnPlugin,代码行数:101,代码来源:MurmelnPlugin.class.php

示例12: _echoJavaScript

    /**
     * Outputs the JavaScript required for (S)AJAX to work
     *
     */
    function _echoJavaScript()
    {
        $this->commonSAJAX();
        ?>
		<script type="text/javascript">
		<?php 
        sajax_show_javascript();
        ?>
 		sajax_fail_handle = SAJAXTrap;

		function SAJAXTrap( myData ) {
			alert('Invalid AJAX reponse: ' + myData);
		}


		function testdb()
		{
			var host = document.getElementById("host").value;
			var port = document.getElementById("port").value;
			var username = document.getElementById("username").value;
			var password = document.getElementById("password").value;
			var database = document.getElementById("database").value;

			x_testdatabase( host, port, username, password, database, testdb_cb ); 
		}
		
		function testdb_cb( myRet )
		{
			if( myRet == true )
			{
				alert('<?php 
        echo JoomlapackLangManager::_('MULTIDB_TESTOK');
        ?>
');
			} else {
				alert('<?php 
        echo JoomlapackLangManager::_('MULTIDB_TESTNOTOK');
        ?>
');
			}
		}
		
		function do_getMultiDBList()
		{
			x_getMultiDBList( do_getMultiDBList_cb );
		}
		
		function do_getMultiDBList_cb( myRet )
		{
			document.getElementById("multidblist").innerHTML = myRet;
		}
		
		function ToggleActive( id )
		{
			x_toggleMultiDBActive( id, ToggleActive_cb );
		}
		
		function ToggleActive_cb( myRet )
		{
			do_getMultiDBList();
		}
		
		function editRow( id )
		{
			document.getElementById("id").value = id;
			submitbutton('edit');
		}
		
		function deleteRow( id )
		{
			document.getElementById("id").value = id;
			submitbutton('delete');
		}
		 
		</script>
<?php 
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:81,代码来源:multidb.php

示例13: _renderJavaScript

    /**
     * Outputs the JavaScript required for AJAX calls to work
     * 
     * @access private
     */
    function _renderJavaScript()
    {
        $this->commonSAJAX();
        // Start JS tag
        echo <<<JSFRAGEND
\t\t\t<script type="text/JavaScript">
\t\t\t/*
\t \t\t* (S)AJAX Library code
\t \t\t*/\t \t\t
JSFRAGEND;
        // Display (S)AJAX code
        sajax_show_javascript();
        echo <<<JSFRAGEND
\t\t\t</script>
JSFRAGEND;
        echo '<script type="text/javascript" src="' . JoomlapackAbstraction::SiteURI() . '/administrator/components/' . JoomlapackAbstraction::getParam('option', 'com_joomlapack') . '/assets/js/pack.js"></script>';
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:22,代码来源:backup.php

示例14: _echoJavaScript

    function _echoJavaScript()
    {
        $this->commonSAJAX();
        ?>
		<script type="text/javascript">
		<?php 
        sajax_show_javascript();
        ?>
		
	 		
 		sajax_fail_handle = SAJAXTrap;

		function SAJAXTrap( myData ) {
			alert('Invalid AJAX reponse: ' + myData);
		}

		function do_deletebackup( filename )
		{
			x_deleteBackup( filename, do_deletebackup_cb ); 
		}
		
		function do_deletebackup_cb( myRet )
		{
			if( myRet ) {
				alert('<?php 
        echo JoomlapackLangManager::_('BUADMIN_DELETESUCCESS');
        ?>
');
			} else {
				alert('<?php 
        echo JoomlapackLangManager::_('BUADMIN_DELETEFAILED');
        ?>
');
			}
			
			history.go(0);
		}
		 
		</script>
<?php 
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:41,代码来源:backupadmin.php

示例15: echoHTML

    /**
     * Displays the HTML for this page, directly outputting it to the browser
     */
    function echoHTML()
    {
        jpimport('helpers.lang');
        // 1.1.1b2 - Oops! This page wouldn't work on at least 1 windows system
        $myRoot = JPATH_SITE;
        $rootArray = explode('\\', $myRoot);
        $myRoot = implode('//', $rootArray);
        // Get URL for JavaScript
        $jsURI_pb = JoomlapackAbstraction::SiteURI() . '/administrator/components/' . JoomlapackAbstraction::getParam('option', 'com_joomlapack') . '/assets/js/xp_progress.js';
        // Get some more HTML fragments
        $headingHTML = JoomlapackCommonHTML::getAdminHeadingHTML(JoomlapackLangManager::_('CPANEL_DEF'));
        $this->commonSAJAX();
        echo <<<ENDFRAGMENT
\t\t\t<script language="javascript" src="{$jsURI_pb}">
\t\t\t\t// WinXP Progress Bar- By Brian Gosselin- http://www.scriptasylum.com/
\t\t\t</script>
\t\t\t<script language="JavaScript" type="text/javascript">
\t\t\t\t/*
\t\t\t\t * (S)AJAX Library code
\t\t\t\t */
ENDFRAGMENT;
        sajax_show_javascript();
        echo <<<ENDFRAGMENT
\t\t \t\tsajax_fail_handle = SAJAXTrap;
\t\t
\t\t\t\tfunction SAJAXTrap( myData ) {
\t\t\t\t\talert('Invalid AJAX reponse: ' + myData);
\t\t\t\t}
\t\t\t\t\t\t
\t\t\t\tvar globRoot;
\t\t\t
\t\t\t\tfunction ToggleFilter( myRoot, myDir, myID ) {
\t\t\t\t\tvar sCheckStatus = (document.getElementById(myID).checked == true) ? "on" : "off";
\t\t\t
\t\t\t\t\tglobRoot = myRoot;
\t\t\t
\t\t\t\t\tdocument.getElementById("DEFScreen").style.display = "none";
\t\t\t\t\tdocument.getElementById("DEFProgressBar").style.display = "block";
\t\t\t
\t\t\t\t\tx_toggleDirFilter( myRoot, myDir, sCheckStatus, ToggleFilter_cb );
\t\t\t\t}
\t\t\t
\t\t\t\tfunction ToggleFilter_cb( myRet ) {
\t\t\t\t\tdirSelectionHTML( globRoot );
\t\t\t\t\tdocument.getElementById("DEFScreen").style.display = "block";
\t\t\t\t\tdocument.getElementById("DEFProgressBar").style.display = "none";
\t\t\t\t}
\t\t\t
\t\t\t\tfunction dirSelectionHTML( myRoot ) {
\t\t\t\t\tglobRoot = myRoot;
\t\t\t\t\tx_dirSelectionHTML( myRoot, cb_dirSelectionHTML );
\t\t\t\t}
\t\t\t
\t\t\t\tfunction cb_dirSelectionHTML( myRet ) {
\t\t\t\t\tdocument.getElementById("DEFScreen").style.display = "block";
\t\t\t\t\tdocument.getElementById("DEFProgressBar").style.display = "none";
\t\t\t\t\tdocument.getElementById("DEFOperationList").innerHTML = myRet;
\t\t\t\t}
\t\t\t</script>
\t\t\t
\t\t\t<div id="DEFProgressBar" style="display:none;" class="sitePack">
\t\t\t\t<h4>Please wait...</h4>
\t\t\t\t<script type="text/javascript">
\t\t\t\t\tvar bar0 = createBar(320,15,'white',1,'black','blue',85,7,3,"");
\t\t\t\t</script>
\t\t\t</div>
\t\t\t
\t\t\t<div id="DEFScreen">
\t\t\t\t{$headingHTML}
\t\t\t\t<div id="DEFOperationList">
\t\t\t\t\t<script type="text/javascript">
\t\t\t\t\t\tdirSelectionHTML('{$myRoot}');
\t\t\t\t\t</script>
\t\t\t\t</div>
\t\t\t</div>\t\t
ENDFRAGMENT;
    }
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:80,代码来源:def.php


注:本文中的sajax_show_javascript函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。