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


PHP js_include函数代码示例

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


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

示例1: picture_navigation_page_start

function picture_navigation_page_start()
{
    $superCage = Inspekt::makeSuperCage();
    if (!$superCage->get->keyExists('slideshow')) {
        js_include('plugins/picture_navigation/picture_navigation.js');
    }
}
开发者ID:phill104,项目名称:branches,代码行数:7,代码来源:codebase.php

示例2: js_include

* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

* 
*/
/**
 * @file
 * @brief  display the folders the user has no access and permit to add them 
 * thanks ajax call. 
 * 
 * The received parameter  are 
 *  - $a_dossier, the result of   Dossier::show_dossier
 *  - $user_id id of the user
 * 
 */
echo js_include('admin.js');
if (count($a_dossier) == 0) {
    echo '<h1 class="notice">' . _('Aucun dossier à afficher') . '</h1>';
    return;
}
?>
<table class="result">
<?php 
$nb_dossier = count($a_dossier);
for ($i = 0; $i < $nb_dossier; $i++) {
    $class = $i % 2 == 0 ? "even" : "odd";
    ?>
    <tr id="row_db_<?php 
    echo $a_dossier[$i]['dos_id'];
    ?>
" class="<?php 
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:folder_display.php

示例3: define

    This means the page is much smaller and is usable with lots of categories.

    Without this, the dropdown boxes grow exponentially as each category has the
    option to be moved into all other categories.

    If you make major changes to this page, please test with 200-300 categories
    nested several levels deep.
*/
define('IN_COPPERMINE', true);
define('CATMGR_PHP', true);
require 'include/init.inc.php';
set_js_var('lang_confirm_delete', $lang_catmgr_php['confirm_delete']);
list($timestamp, $form_token) = getFormToken();
set_js_var('form_token', $form_token);
set_js_var('timestamp', $timestamp);
js_include('js/catmgr.js');
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$CAT_LIST = array(0 => array('cid' => 0, 'cat_count' => 0));
$icon_array['submit'] = cpg_fetch_icon('ok', 1);
function get_subcat_data($parent, $ident = '')
{
    global $CONFIG, $CAT_LIST;
    $sql = "SELECT rgt, cid, parent, name, pos FROM {$CONFIG['TABLE_CATEGORIES']} ORDER BY lft ASC";
    $result = cpg_db_query($sql);
    if ($result->numRows() > 0) {
        $rowset = cpg_db_fetch_rowset($result, true);
        $right = array();
        foreach ($rowset as $subcat) {
            if (count($right) > 0) {
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:catmgr.php

示例4: define

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.0
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
**********************************************/
define('IN_COPPERMINE', true);
define('GROUPMGR_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.cluetip.js');
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
$cpg_udb->synchronize_groups();
function display_group_list()
{
    global $CONFIG, $custom_group_counter;
    global $lang_groupmgr_php, $lang_byte_units, $lang_common;
    $row_counter = 0;
    $table_start = '<table border="0" cellspacing="0" cellpadding="0" style="white-space:nowrap;font-size:90%;">' . "\n";
    $table_end = '</table>' . "\n";
    $tr_start = '<tr>' . "\n";
    $tr_end = '</tr>' . "\n";
    $td_start = '<td>' . "\n";
    $td_end = '</td>' . "\n";
开发者ID:phill104,项目名称:branches,代码行数:31,代码来源:groupmgr.php

示例5: array

    if (!empty($row['user_favpics'])) {
        $FAVPICS = @unserialize(@base64_decode($row['user_favpics']));
    } else {
        $FAVPICS = array();
    }
}
// Include the jquery javascript library. Jquery will be included on all pages.
js_include('js/jquery-1.3.2.js');
// Include the scripts.js javascript library that contains coppermine-specific
// JavaScript that is being used on all pages.
// Do not remove this line unless you really know what you're doing
js_include('js/scripts.js');
// Include the JavaScript library that takes care of the help system.
js_include('js/jquery.greybox.js');
// Include the elastic plugin for auto-expanding textareas if debug_mode is on
js_include('js/jquery.elastic.js');
// If referer is set in URL and it contains 'http' or 'script' texts then set it to 'index.php' script
/**
 * Use $CPG_REFERER wherever $_GET['referer'] is used
 */
if ($matches = $superCage->get->getMatched('referer', '/((\\%3C)|<)[^\\n]+((\\%3E)|>)|(.*http.*)|(.*script.*)|(^[\\W].*)/i')) {
    $CPG_REFERER = 'index.php';
} else {
    /**
     * Using getRaw() since we are checking the referer in the above if condition.
     */
    $CPG_REFERER = $superCage->get->getRaw('referer');
}
/**
 * CPGPluginAPI::action('page_start',null)
 *
开发者ID:stephenjschaefer,项目名称:APlusPhotography,代码行数:31,代码来源:init.inc.php

示例6: shorturl_page_start


//.........这里部分代码省略.........
                                <tr>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['no']}
                                    </th>
                                    <th valign="top" align="center" class="tableh2">
                                        {$lang_common['yes']}
                                    </th>
                                </tr>
                                {$preview}
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" class="tablef">
                        </td>
                        <td valign="middle" class="tablef" colspan="2">
                            <input type="hidden" name="form_token" value="{$form_token}" />
                            <input type="hidden" name="timestamp" value="{$timestamp}" />
                            <button type="submit" class="button" name="submit" value="{$lang_common['ok']}">{$annotate_icon_array['ok']}{$lang_common['ok']}</button>
                        </td>
                    </tr>
EOT;
                endtable();
                pagefooter();
                exit;
            }
            if ($superCage->get->getAlpha('shorturl') == 'add') {
                if (shorturl_get_permission() == 0) {
                    global $lang_errors;
                    load_template();
                    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
                }
                if ($superCage->post->keyExists('url')) {
                    js_include('plugins/shorturl/jquery.copy.js');
                    load_template();
                    pageheader($lang_plugin_shorturl['your_url']);
                    starttable('100%', $lang_plugin_shorturl['your_url'], 2);
                    echo <<<EOT
                        <tr>
                            <td class="tableb">
EOT;
                    $regex = '^' . '(https?://){1,1}' . '(([0-9a-z_!~*\'().&=+$%-]+: ){0,1}' . '[0-9a-z_!~*\'().&=+$%-]+@){0,1}' . '(([0-9]{1,3}\\.){3}[0-9]{1,3}' . '|' . '(' . '([0-9a-z_!~*\'()-]+\\.)*' . '([0-9a-z][0-9a-z-]{0,61})?[0-9a-z]\\.' . '[a-z]{2,6}' . ')' . ')' . '(:[0-9]{1,4}){0,1}' . '((/?)|' . '(/[0-9a-zA-Z_!~*\'().;?:@&=+$,%\\#-]+)+/?)' . '$';
                    $url = $superCage->post->getRaw('url');
                    if (!preg_match('#' . $regex . '#i', $url)) {
                        echo $lang_plugin_shorturl['invalid_url'] . ": <tt>{$url}</tt> <br/> <form action=\"javascript:history.back();\"><button type=\"submit\" class=\"button\">{$lang_common['back']}</button></form>";
                    } else {
                        $result = cpg_db_query("SELECT rid FROM {$CONFIG['TABLE_PREFIX']}plugin_shorturl WHERE url = '{$url}'");
                        if (mysql_num_rows($result) > 0) {
                            $rid = mysql_result($result, 0);
                        } else {
                            cpg_db_query("INSERT INTO {$CONFIG['TABLE_PREFIX']}plugin_shorturl (url) VALUES ('{$url}')");
                            $result = cpg_db_query("SELECT rid FROM {$CONFIG['TABLE_PREFIX']}plugin_shorturl WHERE url = '{$url}'");
                            $rid = mysql_result($result, 0);
                        }
                        mysql_free_result($result);
                        $length = strlen($CONFIG['ecards_more_pic_target'] . "?r={$rid}") + 20;
                        $preview_status = sprintf($lang_plugin_shorturl['preview_status'], $CONFIG['plugin_shorturl_preview'] == 1 ? $lang_plugin_shorturl['enabled'] : $lang_plugin_shorturl['disabled']);
                        echo <<<EOT
                            <input id="shorturl" type="text" name="url" size="{$length}" class="textinput" value="{$CONFIG['ecards_more_pic_target']}?r={$rid}" readonly="readonly" onclick="\$(this).select();" />
                            <span style="cursor:help;" title="{$preview_status}">{$lang_plugin_shorturl['immediate_redirection']}</span>
                            <br />
                            <input id="shorturl_p" type="text" name="url" size="{$length}" class="textinput" value="{$CONFIG['ecards_more_pic_target']}?r={$rid}&amp;preview" readonly="readonly" onclick="\$(this).select();" />
                            {$lang_plugin_shorturl['display_link']}
EOT;
                    }
                    echo <<<EOT
开发者ID:phill104,项目名称:branches,代码行数:67,代码来源:codebase.php

示例7: theme_javascript_head

function theme_javascript_head()
{
    global $JS, $LINEBREAK;
    $return = '';
    // Check if we have any variables being set using set_js_vars function
    if (!empty($JS['vars'])) {
        // Convert the $JS['vars'] array to json object string
        $json_vars = json_encode($JS['vars']);
        // Output the json object
        $return = <<<EOT
<script type="text/javascript">
/* <![CDATA[ */
    var js_vars = {$json_vars};
/* ]]> */
</script>

EOT;
    }
    // Check if we have any js includes
    if (!empty($JS['includes'])) {
        // Bring the jquery core library to the very top of the list
        if (in_array('js/jquery-1.4.2.js', $JS['includes']) == TRUE) {
            $key = array_search('js/jquery-1.4.2.js', $JS['includes']);
            unset($JS['includes'][$key]);
            array_unshift($JS['includes'], 'js/jquery-1.4.2.js');
        }
        $JS['includes'] = CPGPluginAPI::filter('javascript_includes', $JS['includes']);
        // Include all the files which were set using js_include() function
        foreach ($JS['includes'] as $js_file) {
            $return .= js_include($js_file, true) . $LINEBREAK;
        }
    }
    return $return;
}
开发者ID:CatBerg-TestOrg,项目名称:coppermine_1.6.x,代码行数:34,代码来源:theme.php

示例8: define

  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.6.01
  $HeadURL$
  $Revision$
**********************************************/
define('IN_COPPERMINE', true);
define('SEARCHNEW_PHP', true);
define('DB_INPUT_PHP', true);
require 'include/init.inc.php';
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
set_js_var('lang_continue', $lang_common['continue']);
js_include('js/searchnew.js');
$rowCounter = 0;
$icon_array['ok'] = cpg_fetch_icon('ok', 1);
$icon_array['batch_add'] = cpg_fetch_icon('searchnew', 2);
/**
 * Local functions definition
 */
/**
 * albumselect()
 *
 * return the HTML code for a listbox with name $id that contains the list
 * of all albums
 *
 * @param string $id the name of the listbox
 * @return the HTML code
 */
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:searchnew.php

示例9: define

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/register.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('REGISTER_PHP', true);
require 'include/init.inc.php';
require 'include/mailer.inc.php';
if (!$CONFIG['allow_user_registration']) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
if (defined('UDB_INTEGRATION')) {
    $cpg_udb->register_page();
}
js_include('js/register.js');
$icon_array = array('ok' => cpg_fetch_icon('ok', 0), 'username' => cpg_fetch_icon('my_profile', 2), 'password' => cpg_fetch_icon('key_enter', 2), 'email' => cpg_fetch_icon('contact', 2), 'blank' => cpg_fetch_icon('blank', 2));
/*****************************
* function definitions start *
*****************************/
/**
* display_disclaimer()
*
* Display the disclaimer
*
* @param void
* @return void
**/
function display_disclaimer()
{
    global $CONFIG, $CPG_PHP_SELF, $lang_register_php, $icon_array;
开发者ID:stephenjschaefer,项目名称:APlusPhotography,代码行数:31,代码来源:register.php

示例10: define

  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.0
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.cluetip.js');
js_include('js/jSerach.js');
if ($superCage->get->keyExists('album')) {
    $album_id = $superCage->get->getInt('album');
} elseif ($superCage->post->keyExists('album')) {
    $album_id = $superCage->post->getInt('album');
} else {
    $album_id = -1;
}
if (is_array($USER_DATA['allowed_albums']) && count($USER_DATA['allowed_albums'])) {
    define('MODERATOR_MODE', 1);
    $albStr = implode(",", $USER_DATA['allowed_albums']);
    $albStr = "({$albStr})";
    echo "albstring: " . $albStr;
    /*
        if (isset($_REQUEST['album']) && in_array($_REQUEST['album'], $USER_DATA['allowed_albums'])) {
          define('MODERATOR_EDIT_MODE', 1);
开发者ID:phill104,项目名称:branches,代码行数:31,代码来源:editpics.php

示例11: die

 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with NOALYSS; if not, write to the Free Software
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/*! \file
 * \brief Manage the document template
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_document_modele.php';
$sub_action = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : "";
echo js_include('modele_document.js');
echo '<div class="content">';
// show the form for adding a template
//
$doc = new Document_modele($cn);
//-----------------------------------------------------
// Document 	add a template
//-----------------------------------------------------
if ($sub_action == 'add_document') {
    require_once NOALYSS_INCLUDE . '/class_document_modele.php';
    $doc = new Document_modele($cn);
    $doc->md_name = $_POST['md_name'];
    $doc->md_id = -1;
    // because it is a new model
    $doc->md_type = $_POST['md_type'];
    $doc->start = $_POST['start_seq'];
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:document_modele.inc.php

示例12: html_page_start

$User->Check();
html_page_start($User->theme);
if ($User->admin != 1) {
    html_page_stop();
    return;
}
load_all_script();
echo '<H2 class="info"> ' . _('Administration Globale') . '</H2>';
echo '<div class="topmenu">';
echo MenuAdmin() . "</div>";
define('ALLOWED', true);
?>
<DIV >
<?php 
if (isset($_REQUEST["action"])) {
    echo js_include("admin.js");
    if ($_REQUEST["action"] == "user_mgt") {
        //----------------------------------------------------------------------
        // User management
        //----------------------------------------------------------------------
        require_once "user.inc.php";
    }
    // action=user_mgt
    if ($_REQUEST["action"] == "dossier_mgt") {
        //-----------------------------------------------------------------------
        // action = dossier_mgt
        //-----------------------------------------------------------------------
        require_once "dossier.inc.php";
    }
    if ($_REQUEST["action"] == "modele_mgt") {
        //-----------------------------------------------------------------------
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:admin_repo.php

示例13: base_url

<html>
<head>
<title>New Player</title>
<link type="text/css" rel="stylesheet" media="screen" href="<?php 
echo base_url();
?>
/css/style.css">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
<?php 
echo js_include("prototype");
echo js_include("effects");
echo js_include("dragdrop");
echo js_include("controls");
?>
</head>
<body>
<h1>New Football Player!</h1>
	<form action="<?php 
echo site_url('/football/create_player');
?>
" method="post" enctype="multipart/form-data" >
		<p>
			<input type='text' name='name'> Нэр
		</p>
		<p>
			<?php 
echo country_select();
?>
			 Улс 
			<?php 
echo team_select();
开发者ID:Buyanbat,项目名称:sportnewsmn,代码行数:31,代码来源:new_player.php

示例14: define

* this is not the file which allows you to set album properties,
* also see documentation for this file's {@relativelink ../_albmgr.php.php Free Standing Code}
*
* @copyright 2002-2006 Gregory DEMAR, Coppermine Dev Team
* @license http://opensource.org/licenses/gpl-license.php GNU General Public License V2
* @package Coppermine
* @version $Id$
*/
/**
* @ignore
*/
define('IN_COPPERMINE', true);
define('ALBMGR_PHP', true);
require 'include/init.inc.php';
js_include('js/jquery.js');
js_include('js/jquery.tablednd.js');
if (!(GALLERY_ADMIN_MODE || USER_ADMIN_MODE)) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
/**
 * alb_get_subcat_data()
 *
 * @param integer $parent
 * @param string $ident
 **/
function alb_get_subcat_data($parent, $ident = '')
{
    global $CONFIG, $CAT_LIST, $USER_DATA;
    //select cats where the users can change the albums
    $group_id = $USER_DATA['group_id'];
    $result = cpg_db_query("SELECT cid, name, description FROM {$CONFIG['TABLE_CATEGORIES']} WHERE parent = '{$parent}' AND cid != 1 ORDER BY pos");
开发者ID:phill104,项目名称:branches,代码行数:31,代码来源:albmgr.php

示例15: Copyright

  Copyright (c) 2003-2015 Coppermine Dev Team
  v1.0 originally written by Gregory Demar

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License version 3
  as published by the Free Software Foundation.

  ********************************************
  Coppermine version: 1.5.40
  $HeadURL: https://svn.code.sf.net/p/coppermine/code/trunk/cpg1.5.x/edit_one_pic.php $
  $Revision: 8830 $
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/edit_one_pic.js');
// Define the icons
$icon_array = array('album_properties' => cpg_fetch_icon('modifyalb', 2), 'thumbnail_view' => cpg_fetch_icon('thumbnails', 2), 'file_info' => cpg_fetch_icon('info', 2), 'album' => cpg_fetch_icon('alb_mgr', 2), 'move' => cpg_fetch_icon('move', 2), 'title' => cpg_fetch_icon('title', 2), 'file_name' => cpg_fetch_icon('filename', 2), 'description' => cpg_fetch_icon('text_left', 2), 'keyword' => cpg_fetch_icon('keyword_mgr', 2), 'file_approval' => cpg_fetch_icon('file_approval', 2), 'file_approve' => cpg_fetch_icon('file_approve', 2), 'file_disapprove' => cpg_fetch_icon('file_disapprove', 2), 'exif' => cpg_fetch_icon('exif_mgr', 2), 'reset_views' => cpg_fetch_icon('stats_delete', 2), 'reset_votes' => cpg_fetch_icon('blank', 2), 'delete_comments' => cpg_fetch_icon('comment_approval', 2), 'ok' => cpg_fetch_icon('ok', 2));
$superCage = Inspekt::makeSuperCage();
if ($superCage->get->keyExists('id')) {
    $pid = $superCage->get->getInt('id');
} elseif ($superCage->post->keyExists('id')) {
    $pid = $superCage->post->getInt('id');
} else {
    $pid = -1;
}
/* --------------------------------------------------------------------------
 * FUNCTION DEFINITIONS
 * --------------------------------------------------------------------------*/
function process_post_data()
{
开发者ID:stephenjschaefer,项目名称:APlusPhotography,代码行数:31,代码来源:edit_one_pic.php


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