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


PHP dossier::id方法代码示例

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


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

示例1: input

 public function input($p_name = null, $p_value = null)
 {
     $this->name = $p_name == null ? $this->name : $p_name;
     $this->value = $p_value == null ? $this->value : $p_value;
     if ($this->readOnly == true) {
         return $this->display();
     }
     $this->id = $this->id == "" ? $this->name : $this->id;
     $r = sprintf("\n                   <INPUT class=\"smallbutton\" TYPE=\"button\" onClick=\"search_action(" . dossier::id() . ",'%s')\" value=\"?\">\n                   <INPUT TYPE=\"text\"  style=\"color:black;background:lightyellow;border:solid 1px grey;\"  NAME=\"%s\" ID=\"%s\" VALUE=\"%s\" SIZE=\"8\" readonly>\n\t\t\t\t   <INPUT class=\"smallbutton\"  TYPE=\"button\" onClick=\"\$('%s').value=''\" value=\"X\">\n\n                   ", $this->id, $this->name, $this->id, $this->value, $this->id);
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:11,代码来源:class_irelated_action.php

示例2: sub_menu

    /**
     * Display the content of a profile menu for printing
     * @param type $resource
     * @param type $p_id
     */
    function sub_menu($resource, $p_id)
    {
        if (Database::num_row($resource) != 0) {
            ////
            // If there are submenus
            $gDossier = dossier::id();
            echo '<td>';
            for ($e = 0; $e < Database::num_row($resource); $e++) {
                $menu = Database::fetch_array($resource, $e);
                $me_code = $menu['me_code'];
                $me_code_dep = $menu['me_code_dep'];
                $mp_type = $menu['p_type_display'];
                $me_menu = $menu['me_menu'];
                $me_desc = $menu['me_description'];
                $me_def = $menu['pm_default'] == '1' ? '<span class="notice" style="display:inline">Défaut</span>' : '';
                ?>
                <li id="sub<?php 
                echo $menu['pm_id'];
                ?>
">

                    <?php 
                echo $me_menu;
                ?>
                    <?php 
                echo $me_desc;
                ?>
  <?php 
                echo $me_def;
                ?>
                    <?php 
                $ret2 = $this->cn->exec_sql("\n                                    SELECT pm_id,\n                                            pm.me_code,\n                                            me_code_dep,\n                                            p_id,\n                                            p_order,\n                                            p_type_display,\n                                            pm_default,\n                                            pm_desc,\n                                            me_menu,\n                                            me_description\n                                            FROM profile_menu as pm\n                                                    join profile_menu_type on (p_type_display=pm_type)\n                                                    join menu_ref as mr on (mr.me_code=pm.me_code)\n                                            where\n                                            p_id=\$1 and me_code_dep=\$2\n                                            order by p_order asc\n                        ", array($p_id, $me_code));
                ?>
                    <span>
                        <?php 
                echo HtmlInput::anchor(SMALLX, "", sprintf(" onclick = \"remove_sub_menu(%d,%d)\"", Dossier::id(), $menu['pm_id']), 'class="tinybutton"');
                ?>
                    </span>
                    <?php 
                echo "</li>";
            }
            //end loop e
            echo '</ul>';
        }
        // end if
    }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:51,代码来源:class_profile_menu.php

示例3: h

    echo h($array[$i]['r_city']);
    ?>
		</td>
		<td>
			<?php 
    echo h($array[$i]['r_country']);
    ?>
		</td>
		<td>
			<?php 
    echo h($array[$i]['r_phone']);
    ?>
		</td>
		<td>
			<?php 
    $js = ' onclick="stock_repo_change(\'' . dossier::id() . '\',\'' . $array[$i]['r_id'] . '\')"';
    echo HtmlInput::button("mod", _("Modifier"), $js);
    ?>
		</td>
	</tr>

<?php 
}
?>
</table>
	<?php 
echo HtmlInput::button("show_add_depot_d", "Ajout d'un dépot", "onclick=\"\$('add_depot_d').show();\"");
?>
	<div id="add_depot_d" class="inner_box" style="display:none">
	<?php 
echo HtmlInput::title_box("Ajouter un dépôt", "add_depot_d", "hide");
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:stock_cfg.inc.php

示例4: test_me

 static function test_me()
 {
     // call the page with ?gDossier=14
     $a = new Database(dossier::id());
     $bal = new Anc_Balance_Simple($a);
     $bal->get_request();
     echo '<form method="GET">';
     echo $bal->display_form();
     echo '</form>';
     if (isset($_GET['result'])) {
         echo $bal->show_button("", "");
         echo "<h1>HTML</h1>";
         echo $bal->display_html();
         echo "<h1>CSV</h1>";
         echo $bal->display_csv();
         /* 	echo "<h1>pdf</h1>"; */
         /* 	echo $bal->display_pdf(); */
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:19,代码来源:class_anc_balance_simple.php

示例5: Database

require_once NOALYSS_INCLUDE . '/class_dossier.php';
require_once NOALYSS_INCLUDE . '/ac_common.php';
require_once NOALYSS_INCLUDE . '/constant.php';
require_once NOALYSS_INCLUDE . '/function_javascript.php';
require_once NOALYSS_INCLUDE . '/class_extension.php';
require_once NOALYSS_INCLUDE . '/class_html_input.php';
require_once NOALYSS_INCLUDE . '/class_iselect.php';
require_once NOALYSS_INCLUDE . '/constant.security.php';
require_once NOALYSS_INCLUDE . '/class_user.php';
echo '<div class="topmenu">';
@html_page_start($_SESSION['g_theme']);
$cn = new Database(dossier::id());
global $g_user;
$g_user = new User($cn);
$g_user->check();
$only_plugin = $g_user->check_dossier(dossier::id());
/* javascript file */
echo load_all_script();
/* show all the extension we can access */
$a = new ISelect('plugin_code');
$a->value = Extension::make_array($cn);
$a->selected = isset($_REQUEST['plugin_code']) ? strtoupper($_REQUEST['plugin_code']) : '';
/* no plugin available */
if (count($a->value) == 0) {
    alert(j(_("Aucune extension  disponible")));
    exit;
}
/* only one plugin available then we don't propose a choice*/
if (count($a->value) == 1) {
    $_REQUEST['plugin_code'] = $a->value[0]['value'];
}
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:extension_choice.inc.php

示例6: test_me

 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Acc_Report($cn);
     print_r($a->get_list());
     $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%", "fr_id" => 110, "form_nom" => "Tableau");
     $a->from_array($array);
     print_r($a);
     echo '<form method="post">';
     echo $a->form(10);
     echo HtmlInput::submit('update', 'Enregistre');
     /* Add a line should be a javascript see comptanalytic */
     //  $r.= '<INPUT TYPE="submit" value="Ajoute une ligne" name="add_line">';
     echo HtmlInput::submit('del_form', 'Efface ce rapport');
     echo HtmlInput::hidden('test_select', $_REQUEST['test_select']);
     echo "</FORM>";
     if (isset($_POST['update'])) {
         $b = new Acc_Report($cn);
         $b->from_array($_POST);
         echo '<hr>';
         print_r($b);
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:23,代码来源:class_acc_report.php

示例7: die

/*! \file
 * \brief Send a report in PDF
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
include_once "class_acc_report.php";
include_once "ac_common.php";
require_once NOALYSS_INCLUDE . '/class_database.php';
include_once "class_impress.php";
require_once NOALYSS_INCLUDE . '/class_user.php';
require_once NOALYSS_INCLUDE . '/header_print.php';
require_once NOALYSS_INCLUDE . '/class_dossier.php';
require_once NOALYSS_INCLUDE . '/class_acc_report.php';
require_once NOALYSS_INCLUDE . '/class_pdf.php';
$gDossier = dossier::id();
$cn = new Database($gDossier);
extract($_GET);
$ret = "";
$Form = new Acc_Report($cn, $form_id);
$Libelle = sprintf("%s ", $Form->get_name());
$pdf = new PDF($cn);
$pdf->setDossierInfo($Libelle);
$pdf->AliasNbPages();
$pdf->AddPage();
$pdf->SetAuthor('NOALYSS');
$pdf->setTitle("Rapport " . $Libelle, true);
// Step ??
//--
$step = HtmlInput::default_value_get("p_step", 0);
if ($step == 0) {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:export_form_pdf.php

示例8: test_me

 static function test_me()
 {
     require 'class_user.php';
     global $g_user;
     $cn = new Database(dossier::id());
     $g_user = new User($cn);
     $a = new Acc_Balance($cn);
     $a->get_row(163, 175, 1);
     var_dump($a);
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:10,代码来源:class_acc_balance.php

示例9: h

" value="<?php 
        echo h($aAttachedFile[$i]['d_description']);
        ?>
">
              <?php 
        $js = sprintf("update_document('%s','%s')", dossier::id(), $aAttachedFile[$i]['d_id']);
        echo HtmlInput::button('save_desc' . $aAttachedFile[$i]['d_id'], _('Sauve'), 'onclick="' . $js . '"', 'smallbutton');
        ?>
        </span>
        <?php 
    } else {
        ?>
        </span>
        <?php 
    }
    $rmDoc = sprintf("return confirm_box(null,'" . _('Voulez-vous effacer le document') . " %s' , function(){remove_document('%s','%s');});", $aAttachedFile[$i]['d_filename'], dossier::id(), $aAttachedFile[$i]['d_id']);
    ?>
        </td>
        <td>
  <?php 
    if ($p_view != 'READ') {
        ?>
  <a class="line"  id="<?php 
        echo "ac" . $aAttachedFile[$i]['d_id'];
        ?>
" href="javascript:void(0)" onclick="<?php 
        echo $rmDoc;
        ?>
"><?php 
        echo _("Effacer");
        ?>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:detail-action.php

示例10: isset

$w->set_attribute('ipopup', 'ipop_account');
$w->set_attribute('label', 'poste_id_label');
$w->set_attribute('account', 'poste_id');
$w->table = 0;
$w->value = isset($_REQUEST['poste_id']) ? $_REQUEST['poste_id'] : "";
$w->label = "Choisissez le poste";
print td('Choisissez un poste ') . td($w->input());
echo td($span->input('poste_id_label'));
echo '</tr><tr>';
$w_poste = new ICard('f_id');
$w_poste->table = 0;
$w_poste->jrn = 0;
echo td("Ou Choisissez la fiche");
$w_poste->set_attribute('label', 'f_id_label');
$w_poste->set_attribute('ipopup', 'ipop_card');
$w_poste->set_attribute('gDossier', dossier::id());
$w_poste->set_attribute('typecard', 'all');
$w_poste->set_function('fill_data');
$w_poste->set_dblclick("fill_ipopcard(this);");
$w_poste->value = isset($_REQUEST['f_id']) ? $_REQUEST['f_id'] : "";
print td($w_poste->input() . $w_poste->search());
echo td($span->input('f_id_label'));
print '</TR>';
print '<TR>';
$date_from = new IDate('from_periode');
$date_to = new IDate('to_periode');
$year = $g_user->get_exercice();
$date_from->value = isset($_REQUEST['from_periode']) ? $_REQUEST['from_periode'] : "01.01." . $year;
$date_to->value = isset($_REQUEST['to_periode']) ? $_REQUEST['to_periode'] : "31.12." . $year;
echo td(_('Depuis') . $date_from->input());
echo td(_('Jusque ') . $date_to->input());
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:impress_poste.inc.php

示例11: test_me

 static function test_me()
 {
     $a = new Database(dossier::id());
     $bal = new Anc_Balance_Double($a);
     $bal->get_request();
     echo '<form method="GET">';
     echo $bal->display_form();
     echo '</form>';
     if (isset($_GET['result'])) {
         echo $bal->show_button("", "");
         echo "<h1>HTML</h1>";
         echo $bal->display_html();
         echo "<h1>CSV</h1>";
         echo $bal->display_csv();
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:16,代码来源:class_anc_balance_double.php

示例12: button_action_remove_operation

 /**
  * 
  * @param type $p_operation_jr_id action_gestion_operation.ago_id
  */
 static function button_action_remove_operation($p_operation)
 {
     $rmOperation = sprintf("javascript:confirm_box(null,'" . _('Voulez-vous effacer cette relation ') . "',function ()  {remove_operation('%s','%s');});", dossier::id(), $p_operation);
     $js = '<a class="tinybutton" id="acop' . $p_operation . '" href="javascript:void(0)" onclick="' . $rmOperation . '">' . SMALLX . '</a>';
     return $js;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:10,代码来源:class_html_input.php

示例13: test_me

 static function test_me()
 {
     $cn = new Database(dossier::id());
     $a = new Acc_Report_Row();
     $array = array("text0" => "test1", "form0" => "7%", "text1" => "test2", "form1" => "6%");
     $a->db = $cn;
     $b = $a->from_array($array);
     print_r($b);
     echo $a->get_info();
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:10,代码来源:class_acc_report_row.php

示例14: Acc_Ledger

$ledger = new Acc_Ledger($cn, $id_ledger);
$first_ledger = $ledger->get_first('ODS');
$ledger->id = $ledger->id == -1 ? $first_ledger['jrn_def_id'] : $id_ledger;
// check if we can write in the ledger
if ($g_user->check_jrn($ledger->id) == 'X') {
    alert(_("Vous ne pouvez pas écrire dans ce journal, contacter votre administrateur"));
    return;
}
echo '<div style="position:absolute" class="content">';
echo '<div id="predef_form">';
echo HtmlInput::hidden('p_jrn_predef', $ledger->id);
$op = new Pre_op_ods($cn);
$op->set('ledger', $ledger->id);
$op->set('ledger_type', "ODS");
$op->set('direct', 't');
$url = http_build_query(array('action' => 'use_opd', 'p_jrn_predef' => $ledger->id, 'ac' => $_REQUEST['ac'], 'gDossier' => dossier::id()));
echo $op->form_get('do.php?' . $url);
echo '</div>';
echo '<div id="jrn_name_div">';
echo '<h2 id="jrn_name" style="display:inline">' . $ledger->get_name() . '</h2>';
echo '</div>';
// Show the predef operation
// Don't forget the p_jrn
$p_post = $_POST;
if (isset($_GET['action']) && !isset($_POST['correct'])) {
    if ($_GET['action'] == 'use_opd') {
        // get data from predef. operation
        $op = new Pre_op_advanced($cn);
        $p_post = null;
        if (isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') {
            $op->set_od_id($_REQUEST['pre_def']);
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:operation_ods_new.inc.php

示例15: extract

require_once NOALYSS_INCLUDE . '/class_dossier.php';
require_once NOALYSS_INCLUDE . '/class_pre_operation.php';
// Check if the needed field does exist
extract($_GET);
foreach (array('l', 't', 'd', 'gDossier') as $a) {
    if (!isset(${$a})) {
        echo "error {$a} is not set ";
        exit;
    }
}
$cn = new Database(dossier::id());
$op = new Pre_operation_detail($cn);
$op->set('ledger', $l);
$op->set('ledger_type', $t);
$op->set('direct', $d);
$url = http_build_query(array('action' => 'use_opd', 'p_jrn_predef' => $l, 'ac' => $_GET['ac'], 'gDossier' => dossier::id()));
$html = "";
$html .= HtmlInput::title_box(_("Modèle d'opérations"), 'modele_op_div', 'hide');
$html .= $op->show_button('do.php?' . $url);
$html = escape_xml($html);
header('Content-type: text/xml; charset=UTF-8');
echo <<<EOF
<?xml version="1.0" encoding="UTF-8"?>
<data>
<code></code>
<value>{$html}</value>
</data>
EOF;
?>

开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:29,代码来源:ajax_update_predef.php


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