• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP js_include函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了js_include函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 [email protected]
/*! \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


示例16: cpg_db_query

        $sortBy = 'date';
        $sortDirection = 'ASC';
        break;
}
if ($sortDirection == 'ASC') {
    $sortDirectionText = $lang_db_ecard_php['ecard_ascending'];
}
// determine the total number of entries
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_ECARDS']}");
list($totalEcards) = mysql_fetch_row($result);
mysql_free_result($result);
if ($totalEcards == 0) {
    cpg_die(INFORMATION, $lang_errors['ecards_empty'], __FILE__, __LINE__, false);
}
set_js_var('ecards_delete_confirm', $lang_db_ecard_php['ecards_delete_confirm']);
js_include('js/db_ecard.js');
pageheader($lang_db_ecard_php['title']);
$formTarget = cpgGetUrlVars('count');
print '<form method="post" name="ecardselect" id="cpgform" action="' . $formTarget . '" onsubmit="return defaultagree(this)">';
// create tabbed display (non-coppermine standard); maybe this could be changed later using the coppermine standard method
// step 1: calculate the number of pages
$pageTotal = ceil($totalEcards / $countTo);
// step 2: get the current url without 'start' and 'count'
$urlWithoutStart = $CPG_PHP_SELF . "?";
foreach ($eid as $key => $value) {
    if ($key != 'start' && $key != 'count') {
        $urlWithoutStart .= $key . "=" . $value . "&";
    }
}
//step 3: loop through the pages & create the links
for ($page = 1; $page <= $pageTotal; $page++) {
开发者ID:stephenjschaefer,项目名称:APlusPhotography,代码行数:31,代码来源:db_ecard.php


示例17: cpg_die

    if (mysql_num_rows($results) == 0) {
        cpg_die(ERROR, $lang_modifyalb_php['err_no_alb_to_modify'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_assoc($results);
    $CLEAN['album'] = $ALBUM_DATA['aid'];
} else {
    $results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CLEAN['album']}'");
    if (!mysql_num_rows($results)) {
        cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_assoc($results);
}
$cat = $ALBUM_DATA['category'];
$actual_cat = $cat;
//////////// main code start ///////////////////
js_include('js/modifyalb.js');
set_js_var('reset_views_confirm', $lang_modifyalb_php['reset_views_confirm']);
set_js_var('cursor_stop', $icon_array['stop']);
pageheader(sprintf($lang_modifyalb_php['upd_alb_n'], $ALBUM_DATA['title']));
$album_lb = alb_list_box();
echo <<<EOT
    <form method="post" name="modifyalbum" action="db_input.php">
    <input type="hidden" name="event" value="album_update" />
    <input type="hidden" name="aid" value="{$CLEAN['album']}" />
EOT;
starttable("100%", cpg_fetch_icon('modifyalb', 1) . $lang_common['album_properties'] . ' - ' . $lang_modifyalb_php['update'] . $help['table'], 2, 'cpg_zebra');
echo <<<EOT
    <tr>
        <td class="tableh2">
            <strong>{$lang_modifyalb_php['related_tasks']}</strong>{$help['related_tasks']}
        </td>
开发者ID:stephenjschaefer,项目名称:APlusPhotography,代码行数:31,代码来源:modifyalb.php


示例18: js_include

if ('swfupload' == $upload_form) {
    js_include('js/swfupload/swfupload.js');
    js_include('js/swfupload/swfupload.swfobject.js');
    js_include('js/swfupload/swfupload.queue.js');
    js_include('js/swfupload/fileprogress.js');
    js_include('js/swfupload/handlers.js');
    js_include('js/setup_swf_upload.js');
    // Set the lang_upload_swf_php language array for use in js
    set_js_var('lang_upload_swf_php', $lang_upload_swf_php);
    set_js_var('notify_admin', $CONFIG['upl_notify_admin_email']);
    set_js_var('max_upl_size', $CONFIG['max_upl_size']);
    list($timestamp, $form_token) = getFormToken();
    set_js_var('timestamp', $timestamp);
    set_js_var('form_token', $form_token);
}
js_include('js/upload.js');
//___________________________________Function Block_______________________________________
// The text box form input function. Takes the text label for the box, the input name, the maximum length for text boxes,
// and the number of iterations.
function text_box_input($text, $name, $max_length, $iterations, $default = '')
{
    global $CONFIG, $LINEBREAK;
    $ordinal = '';
    if ($text == '' and $iterations == '') {
        echo '        <input type="hidden" name="' . $name . '" value="' . $default . '" />' . $LINEBREAK;
        return;
    }
    // Begin loop
    for ($counter = 0; $counter < $iterations; $counter++) {
        // Create a numbering system when necessary.
        if ($text == '') {
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:upload2.php


示例19: js_include

    $body = $_POST['body'];
} else {
    $title = '';
    $body = '';
}
?>

<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Under the Couch - Write Blog Post</title>
		<link rel="stylesheet" type="text/css" href="/styles.css" />

		<?php 
js_include('tinymce/tinymce.min');
?>

		<script>
			tinymce.init({
				selector : 'textarea',
				width    : 600,
				toolbar  : 'undo redo '
				         . '| styleselect '
						 . '| bold italic underline strikethrough '
						 . '| alignleft aligncenter alignright alignjustify '
						 . '| bullist numlist '
						 . '| link image'
			});
		</script>
	</head>
开发者ID:eon8ight,项目名称:under-the-couch,代码行数:31,代码来源:writeblog.php


示例20: Copyright

  Copyright (c) 2003-2016 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.6.01
  $HeadURL$
  $Revision$
**********************************************/
define('IN_COPPERMINE', true);
define('EDITPICS_PHP', true);
require 'include/init.inc.php';
js_include('js/editpics.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', 0, $lang_editpics_php['approve_pic']), 'file_approve_all' => cpg_fetch_icon('file_approve', 0, $lang_editpics_php['approve_all']), 'file_disapprove' => cpg_fetch_icon('file_disapprove', 2), 'exif' => cpg_fetch_icon('exif_mgr', 2), 'reset_views' => cpg_fetch_icon('stats_delete', 0), 'reset_views_all' => cpg_fetch_icon('stats_delete', 0, $lang_editpics_php['reset_all_view_count']), 'reset_votes' => cpg_fetch_icon('blank', 2), 'ok' => cpg_fetch_icon('ok', 2), 'category' => cpg_fetch_icon('category', 2), 'delete' => cpg_fetch_icon('delete', 0, $lang_editpics_php['del_pic']), 'delete_all' => cpg_fetch_icon('delete', 0, $lang_editpics_php['del_all']), 'comment_delete' => cpg_fetch_icon('comment_disapprove', 0, $lang_editpics_php['del_comm']), 'comment_delete_all' => cpg_fetch_icon('comment_disapprove', 0, $lang_editpics_php['del_all_comm']), 'edit_files' => cpg_fetch_icon('edit', 2), 'continue' => cpg_fetch_icon('right', 0));
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 = 0;
}
if (isset($USER_DATA['allowed_albums']) && count($USER_DATA['allowed_albums']) > 0) {
    define('MODERATOR_MODE', 1);
    $albStr = implode(',', $USER_DATA['allowed_albums']);
    $albStr = "({$albStr})";
    if (isset($album_id) && in_array($album_id, $USER_DATA['allowed_albums'])) {
        define('MODERATOR_EDIT_MODE', 1);
开发者ID:CatBerg-TestOrg,项目名称:coppermine,代码行数:31,代码来源:editpics.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP js_include_tag函数代码示例发布时间:2022-05-15
下一篇:
PHP js_imgsizer函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap