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


PHP HtmlInput::default_value_get方法代码示例

本文整理汇总了PHP中HtmlInput::default_value_get方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlInput::default_value_get方法的具体用法?PHP HtmlInput::default_value_get怎么用?PHP HtmlInput::default_value_get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在HtmlInput的用法示例。


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

示例1: die

// following the given distribution key given in parameter.
// Parameters are :
//   - gDossier
//   - t the element HTML to use as target
//   - amount the amount to distribute
//   - key the Distribution key to use
//
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_anc_key.php';
ob_start();
/////
$key = HtmlInput::default_value_get('key', 0);
$amount = HtmlInput::default_value_get('amount', 0);
$target = HtmlInput::default_value_get('t', '');
if (isNumber($key) == 0 || isNumber($amount) == 0 || $target == '') {
    die('Invalid parameter');
}
$compute_key = new Anc_Key($key);
$compute_key->fill_table($target, $amount);
////
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl></ctl>
<code>{$html}</code>
</data>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_anc_key_compute.php

示例2: define

 * \brief manage all the export to CSV or PDF
 *   act can be
 *
 */
define('ALLOWED', 1);
require_once '../include/constant.php';
global $g_user, $cn, $g_parameter;
require_once NOALYSS_INCLUDE . '/class_database.php';
require_once NOALYSS_INCLUDE . '/class_user.php';
$gDossier = dossier::id();
$cn = new Database($gDossier);
mb_internal_encoding("UTF-8");
$g_user = new User($cn);
$g_user->Check();
$action = $g_user->check_dossier($gDossier);
set_language();
if ($action == 'X' || !isset($_GET['act']) || $g_user->check_print($_GET['act']) == 0) {
    echo alert(_('Accès interdit'));
    redirect("do.php?" . dossier::get());
    exit;
}
// get file and execute it
$action = HtmlInput::default_value_get('act', null);
if ($action == null) {
    die(_('Appel invalide'));
}
$prfile = $cn->get_value("select me_file from menu_ref where me_code=\$1", array($action));
if ($prfile == "") {
    die(_('Export impossible'));
}
require_once $prfile;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:export.php

示例3: die

 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   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 display, add, delete and modify forecast
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_anticipation.php';
$action = HtmlInput::default_value_get('action', '');
echo '<div class="content">';
$sa = isset($_REQUEST['sa']) ? $_REQUEST['sa'] : 'list';
/* * ********************************************************************
 * Remove a anticipation
 *
 *
 * ******************************************************************** */
if ($action == 'del') {
    $forecast = new Forecast($cn, $_GET['f_id']);
    $forecast->delete();
}
/*
 * Cloning
 */
if ($action == 'clone') {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:forecast.inc.php

示例4: die

 *     # 1 it is a menu with possible submenu p_type = E, refresh the table with menu
 *     # 2 it is a menu with no submenu , p_type = E 
 * $dep  : is the profile_menu.pm_id of the parent menu
 *     
 * 
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
// Security
if ($g_user->check_module('CFGPRO') == 0) {
    die;
}
$type = HtmlInput::default_value_get('type', 'XX');
$p_level = HtmlInput::default_value_get('p_level', 0);
$dep = HtmlInput::default_value_get('dep', 0);
if ($type == 'XX') {
    throw new Exception('invalid call');
    return;
}
// if type == menu the
if ($type == 'me') {
    if (isNumber($p_level) == 0) {
        throw new Exception('invalid call');
    }
    if ($p_level == 0) {
        // There is no dependency
        // Menu which can be added
        $ame_code = $cn->make_array("\nselect me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')\n\t||'('|| case when me_type='SP' then 'Special'\n\t\twhen me_type='PL' then 'Plugin'\n\t\twhen me_type='ME' and me_file is null and me_javascript is null and me_url is null then 'Module - Menu principal'\n\t\twhen me_type='ME' then 'Menu'\n\t\telse\n\t\tme_type\n\t\tend||')'\n\tfrom\n\tmenu_ref\n        where\n        me_type<>'PR'\n\torder by 1\n\t");
    } elseif ($p_level == 1) {
        // dependency is in dep
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_add_menu.php

示例5: die

 * Security : only user with the menu CFGPRO
 * display the submenu of a menu or a module
 * It expects 2 parameters  = p_profile (profile.p_id) and the dep (menu_ref.me_code)
 */
// require_once '.php';
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
// Security
if ($g_user->check_module('CFGPRO') == 0) {
    die;
}
// Check parameter
$module = HtmlInput::default_value_get("dep", "");
$p_level = HtmlInput::default_value_get("p_level", 0);
$p_id = HtmlInput::default_value_get('p_profile', -1);
if ($module == "" || $p_id == -1 || isNumber($p_id) == 0 || isNumber($p_level) == 0) {
    echo _('Paramètre invalide');
    return;
}
require_once NOALYSS_INCLUDE . '/class_profile_menu.php';
$p_level++;
$profile = new Profile_Menu($cn);
$profile->p_id = $p_id;
$profile->display_module_menu($module, $p_level);
////////////////////////////////////////////////////////////////////////////////
// EXAMPLE
////////////////////////////////////////////////////////////////////////////////
/*
if ($ac == 'save') // operation
{
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_display_submenu.php

示例6: isset

 $page = isset($_GET['offset']) ? $_GET['page'] : 1;
 $offset = isset($_GET['offset']) ? $_GET['offset'] : 0;
 if (count($_GET) == 0) {
     $array = null;
 } else {
     $array = $_GET;
 }
 $array['p_action'] = 'ALL';
 if (!isset($array['date_start']) || !isset($array['date_end'])) {
     // get first date of current exercice
     list($array['date_start'], $array['date_end']) = $g_user->get_limit_current_exercice();
 }
 list($sql, $where) = $ledger->build_search_sql($array);
 // Count nb of line
 $max_line = $cn->count_sql($sql);
 $target = HtmlInput::default_value_get("target", "");
 list($count, $content) = $ledger->list_operation_to_reconcile($sql, $target);
 $bar = navigation_bar($offset, $max_line, $step, $page);
 if (!$inside) {
     echo $bar;
 } else {
     if ($step < $max_line) {
         echo '<h2 class="notice">' . _('Liste limitée à ') . $step . _(' enregistrements. Le nombre d\'enregistrements trouvés est de ') . $max_line . '</h2>';
     }
 }
 echo '<form method="get" onsubmit="set_reconcile(this);return false">';
 echo HtmlInput::submit("upd_rec", _("Mettre à jour"));
 echo HtmlInput::get_to_hidden(array('ctlc', 'amount_id', 'ledger'));
 echo HtmlInput::get_to_hidden(array('l', 'date_start', 'date_end', 'desc', 'amount_min', 'amount_max', 'qcodesearch_op', 'accounting', 'unpaid', 'gDossier', 'ledger_type'));
 echo $content;
 echo HtmlInput::submit("upd_rec", _("Mettre à jour"));
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:search.inc.php

示例7: die

 * \file
 *
 *
 * \brief
 *
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_acc_ledger_purchase.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger_fin.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger_sold.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger.php';
global $g_user, $cn;
$p_array = $_GET;
$ledger_type = HtmlInput::default_value_get("ledger_type", 'ALL');
switch ($ledger_type) {
    case 'ACH':
        $Ledger = new Acc_Ledger_Purchase($cn, 0);
        $ask_pay = 1;
        break;
    case 'ODS':
        $Ledger = new Acc_Ledger($cn, 0);
        $ask_pay = 0;
        $p_array['ledger_type'] = 'ODS';
        $Ledger->type = 'ODS';
        break;
    case 'ALL':
        $Ledger = new Acc_Ledger($cn, 0);
        $ask_pay = 0;
        $p_array['ledger_type'] = 'ALL';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:history_operation.inc.php

示例8: switch

$all = HtmlInput::default_value_get('all', "0");
switch ($p_type) {
    case 'C':
        $bal->get_array_card('C');
        $bal->export_csv($p_date, $p_let);
        break;
    case 'F':
        $bal->get_array_card('F');
        $bal->export_csv($p_date, $p_let);
        break;
    case 'U':
        $bal->get_array_card('U', $fiche);
        $bal->export_csv($p_date, $p_let);
        break;
    case 'X':
        $all = HtmlInput::default_value_get('all', 0);
        if ($all == 0) {
            $bal->get_array_card('X', $_GET['cat']);
            $bal->export_csv($p_date, $p_let);
        } else {
            $a_cat = $cn->get_array("select fd_id from vw_fiche_def where ad_id=" . ATTR_DEF_ACCOUNT . " order by fd_label asc");
            $nb_cat = count($a_cat);
            for ($i = 0; $i < $nb_cat; $i++) {
                $bal->get_array_card('X', $a_cat[$i]['fd_id']);
                $bal->export_csv($p_date, $p_let);
            }
        }
        break;
    default:
        break;
}
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:export_balance_age_csv.php

示例9: die

 *   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
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_calendar.php';
ob_start();
if ($notitle == 0) {
    echo HtmlInput::title_box(_("Calendrier"), "calendar_zoom_div");
}
$cal = new Calendar();
$in = HtmlInput::default_value_get('in', "");
$notitle = HtmlInput::default_value_get('notitle', "0");
if ($in == "") {
    $in = $cal->get_preference();
}
$cal->set_periode($in);
echo $cal->zoom($distype, $notitle);
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<ctl></ctl>
<html>{$html}</html>
</data>
EOF;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_calendar_zoom.php

示例10: Acc_Report

require_once NOALYSS_INCLUDE . '/class_iselect.php';
require_once NOALYSS_INCLUDE . '/class_idate.php';
require_once NOALYSS_INCLUDE . '/class_acc_report.php';
require_once NOALYSS_INCLUDE . '/class_exercice.php';
global $g_user;
//-----------------------------------------------------
// If print is asked
// First time in html
// after in pdf or cvs
//-----------------------------------------------------
if (isset($_GET['bt_html'])) {
    $Form = new Acc_Report($cn, $_GET['form_id']);
    $Form->get_name();
    // step asked ?
    //--
    $type_periode = HtmlInput::default_value_get("type_periode", -1);
    if ($type_periode == 1) {
        $array = $Form->get_row($_GET['from_date'], $_GET['to_date'], $type_periode);
    }
    if ($type_periode == 0 && $_GET['p_step'] == 0) {
        $array = $Form->get_row($_GET['from_periode'], $_GET['to_periode'], $type_periode);
    }
    if ($type_periode == 0 && $_GET['p_step'] == 1) {
        // step are asked
        //--
        for ($e = $_GET['from_periode']; $e <= $_GET['to_periode']; $e += $_GET['p_step']) {
            $periode = getPeriodeName($cn, $e);
            if ($periode == null) {
                continue;
            }
            $array[] = $Form->get_row($e, $e, $_GET['type_periode']);
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:impress_rapport.inc.php

示例11: header

    header('Content-type: text/xml; charset=UTF-8');
    $dom = new DOMDocument('1.0', 'UTF-8');
    $xml = escape_xml($content);
    $xml_content = $dom->createElement('content', $xml);
    $xml_status = $dom->createElement('status', $status);
    $root = $dom->createElement("root");
    $root->appendChild($xml_content);
    $root->appendChild($xml_status);
    $dom->appendChild($root);
    echo $dom->saveXML();
    exit;
}
// For the operation 'modele_drop','modele_modify','folder_modify','folder_drop'
// the p_dossier parameter is mandatory
if (in_array($op, array('modele_drop', 'modele_modify', 'folder_modify', 'folder_drop'))) {
    $dossier = HtmlInput::default_value_get('p_dossier', 0);
    $content = _('Erreur paramètre');
    $status = "NOK";
    // check if we receive a valid parameter
    if ($dossier == 0 || isNumber($dossier) == 0) {
        //----------------------------------------------------------------
        // Answer in XML
        header('Content-type: text/xml; charset=UTF-8');
        $dom = new DOMDocument('1.0', 'UTF-8');
        $xml = escape_xml($content);
        $xml_content = $dom->createElement('content', $xml);
        $xml_status = $dom->createElement('status', $status);
        $root = $dom->createElement("root");
        $root->appendChild($xml_content);
        $root->appendChild($xml_status);
        $dom->appendChild($root);
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_admin.php

示例12: header

header('Content-Disposition: attachment;filename="jrn-' . $fDate . '.csv"', FALSE);
include_once "ac_common.php";
require_once NOALYSS_INCLUDE . '/class_own.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger_sold.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger_purchase.php';
require_once NOALYSS_INCLUDE . '/class_dossier.php';
$gDossier = dossier::id();
require_once NOALYSS_INCLUDE . '/class_database.php';
require_once NOALYSS_INCLUDE . '/class_acc_ledger.php';
/*
 * Variable from $_GET
 */
$get_jrn = HtmlInput::default_value_get('jrn_id', -1);
$get_option = HtmlInput::default_value_get('p_simple', -1);
$get_from_periode = HtmlInput::default_value_get('from_periode', null);
$get_to_periode = HtmlInput::default_value_get('to_periode', NULL);
//--- Check validity
if ($get_jrn == -1 || $get_option == -1 || $get_from_periode == null || $get_to_periode == null) {
    die(_('Options invalides'));
}
require_once NOALYSS_INCLUDE . '/class_user.php';
$g_user->Check();
$g_user->check_dossier($gDossier);
//----------------------------------------------------------------------------
// $get_jrn == 0 when request for all ledger, in that case, we must filter
// the legder with the security in Acc_Ledger::get_row
//----------------------------------------------------------------------------
if ($get_jrn != 0 && $g_user->check_jrn($get_jrn) == 'X') {
    NoAccess();
    exit;
}
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:export_ledger_csv.php

示例13: Follow_Up

    $gestion = new Follow_Up($cn);
    $gestion->display_short();
    return;
}
if ($op == 'action_save') {
    require_once NOALYSS_INCLUDE . '/class_follow_up.php';
    /**
     * save info from the get
     */
    $date_event = HtmlInput::default_value_get("date_event", -1);
    $dest = HtmlInput::default_value_get("dest", "");
    $event_group = HtmlInput::default_value_get("event_group", 0);
    $event_priority = HtmlInput::default_value_get("event_priority", 0);
    $title = HtmlInput::default_value_get("title_event", NULL);
    $summary = HtmlInput::default_value_get("summary", "");
    $type_event = HtmlInput::default_value_get('type_event', -1);
    /*
     * Check if data are valid
     */
    try {
        if ($date_event == -1 || isDate($date_event) == 0) {
            throw new Exception(_('Date invalide'));
        }
        if (trim($dest) == "") {
            $dest_id = NULL;
        } else {
            $fiche = new Fiche($cn);
            $fiche->get_by_qcode($dest);
            $dest_id = $fiche->id;
            if ($dest_id == 0) {
                throw new Exception(_('Destinataire invalide'));
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_gestion.php

示例14: die

 *
 *   NOALYSS is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   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 2014 Author Dany De Bontridder danydb@aevalys.eu
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
$ag_id = HtmlInput::default_value_get("ag_id", "0");
$f_id = HtmlInput::default_value_get("f_id", "0");
if ($ag_id == 0 || $f_id == 0) {
    throw new Exception("Invalid values", 0);
}
require_once 'class_follow_up.php';
$follow = new Follow_Up($cn, $ag_id);
ob_start();
$follow->remove_linked_card($f_id);
echo $follow->display_linked();
HtmlInput::button_action_add_concerned_card($follow->ag_id);
$response = ob_get_clean();
$html = escape_xml($response);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_action_remove_concerned.php

示例15: sprintf

* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* 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 calendar as a list. Included from the Calendar::zoom_list()
 */
?>
<div class="content" id="user_cal" style="width:100%">
<?php 
$short = HtmlInput::default_value_get('from', 0);
$js = sprintf("calendar_zoom({gDossier:%d,invalue:'%s',outvalue:'%s',distype:'%s','notitle':%d})", dossier::id(), 'per_div', 'calendar_zoom_div', 'cal', $notitle);
echo HtmlInput::anchor(_('Calendrier'), '', " onclick=\"{$js}\"");
echo HtmlInput::button_action_add();
?>
    <table class="result">
<?php 
$nb_event = count($a_event);
$a_status = array('R' => _('Retard'), 'N' => 'Auj.', 'F' => '');
for ($i = 0; $i < $nb_event; $i++) {
    $class = $i % 2 == 0 ? 'even' : 'odd';
    $idx = $a_event[$i]['status'];
    $class = $idx == 'R' ? 'notice' : $class;
    ?>
        <tr class="<?php 
    echo $class;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:calendar-list.php


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