本文整理汇总了PHP中HtmlInput::title_box方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlInput::title_box方法的具体用法?PHP HtmlInput::title_box怎么用?PHP HtmlInput::title_box使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlInput
的用法示例。
在下文中一共展示了HtmlInput::title_box方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fill_from_action
function fill_from_action(&$p_array, $p_style)
{
global $g_user;
$profile = $g_user->get_profile();
$cn = new Database(dossier::id());
$sql = "select ag_id,to_char(ag_remind_date,'DD')::integer as ag_timestamp_day,ag_title,ag_hour,\n coalesce(name,'interne') as str_name\n\t\t\t" . " from action_gestion " . " left join vw_fiche_name on (f_id=f_id_dest) " . " where " . " to_char(ag_remind_date,'MM')::integer=\$1 " . " and to_char(ag_remind_date,'YYYY')::integer=\$2 " . " and ag_dest in (select p_granted from user_sec_action_profile where p_id =\$3)\n\t\t\t\t and ag_state IN (2, 3)\n\t\t\t\t";
$array = $cn->get_array($sql, array($this->month, $this->year, $profile));
for ($i = 0; $i < count($array); $i++) {
$ind = $array[$i]['ag_timestamp_day'];
$this->action[$ind][] = $array[$i]['ag_id'];
$this->title[$ind][] = $array[$i]['ag_title'];
$this->hour[$ind][] = $array[$i]['ag_hour'];
$this->str_name[$ind][] = $array[$i]['str_name'];
}
/*
* Fill foreach day
*/
if ($p_style == "short") {
foreach ($this->action as $day => $aAction) {
if ($p_array[$day] == "") {
$p_array[$day] = '<span class="input_text" onclick="display_task(\'tsk' . $day . '\');">' . " " . count($aAction) . " " . _("Tâches") . '</span>';
}
$this->action_div[$day] = '<div id="tsk' . $day . '" class="inner_box" style="width:200;display:none">';
$this->action_div[$day] .= HtmlInput::title_box($day . "/" . $this->month . "/" . $this->year, "tsk" . $day, "hide");
$this->action_div[$day] .= "<ol>";
for ($i = 0; $i < count($aAction); $i++) {
$this->action_div[$day] .= '<li>' . HtmlInput::detail_action($aAction[$i], $this->title[$day][$i]) . '</li>';
}
$this->action_div[$day] .= '</ol></div>';
}
} else {
if ($p_style == "long") {
foreach ($this->action as $day => $aAction) {
$p_array[$day] .= "<ol>";
for ($i = 0; $i < count($aAction); $i++) {
$p_array[$day] .= '<li>' . hb($this->str_name[$day][$i]) . '→' . HtmlInput::detail_action($aAction[$i], $this->hour[$day][$i] . " " . $this->title[$day][$i]) . '</li>';
}
$p_array[$day] .= '</ol>';
}
}
}
}
示例2: die
* - t for the table id
* - amount is the amount to distributed
*
*/
// Copyright (2014) Author Dany De Bontridder danydb@aevalys.eu
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
$amount = HtmlInput::default_value_get("amount", 0);
$table_id = HtmlInput::default_value_get("t", "");
$ledger = HtmlInput::default_value_get('led', 0);
if ($table_id == "" || isNumber($amount) == 0 || isNumber($ledger) == 0) {
die('Invalid Parameter');
}
require_once 'class_anc_key.php';
ob_start();
echo HtmlInput::title_box(_("Choix d'une clef"), 'div_anc_key_choice');
Anc_Key::display_choice($amount, $table_id, $ledger);
echo HtmlInput::button_close('div_anc_key_choice');
$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>
EOF;
?>
示例3: _
*
* 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
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/**
* @file
* @brief show box for search
*
*/
?>
<div id="histo_search_d" class="inner_box" style="width:60%;height:380px;display:none">
<?php
echo HtmlInput::title_box(_("Recherche"), "histo_search_d", "hide");
?>
<form method="GET">
<?php
echo HtmlInput::get_to_hidden(array("gDossier", "ac"));
?>
<table>
<tr>
<td> <?php
echo _("Code Stock");
?>
</td>
<td> <?php
echo $wcode_stock->input();
echo $wcode_stock->search();
?>
示例4: _
<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
?>
<?php
echo HtmlInput::title_box("Modèle de document", "mod_doc", 'hide');
?>
<form method="post" enctype="multipart/form-data">
<table>
<tr>
<td><?php
echo _("Nom du document");
?>
</td>
<td>
<?php
$a = new IText('md_name');
$a->value = $doc->md_name;
echo $a->input();
?>
</td>
</tr>
<tr>
<td>
<?php
echo _("Catégorie de document");
?>
示例5: Draggable
</table>
</div>
<div id="add_todo_list" class="box" style="display:none">
<script charset="utf-8" type="text/javascript" language="javascript">
new Draggable($('add_todo_list'),{});
</script>
<form method="post">
<?php
$wDate = new IDate('p_date_todo');
$wDate->id = 'p_date_todo';
$wTitle = new IText('p_title');
$wDesc = new ITextArea('p_desc');
$wDesc->heigh = 5;
$wDesc->width = 40;
echo HtmlInput::title_box("Note", "add_todo_list", "hide");
echo _("Date") . " " . $wDate->input() . '<br>';
echo _("Titre") . " " . $wTitle->input() . '<br>';
echo _("Description") . "<br>" . $wDesc->input() . '<br>';
echo dossier::hidden();
echo HtmlInput::hidden('tl_id', 0);
echo HtmlInput::submit('save_todo_list', _('Sauve'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
echo HtmlInput::button('hide', _('Annuler'), 'onClick="Effect.Fold(\'add_todo_list\');return true;"');
?>
</form>
</div>
<script type="text/javascript" language="javascript" charset="utf-8">
function display_detail(div) {
$(div).style.display="block";
// $(div).style.top=calcy('150')+'px';
示例6: die
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PhpCompta; 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 <dany@alchimerys.be>
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
/**
* @file
* @brief
* @param type $name Descriptionara
*/
echo HtmlInput::title_box("Poste comptable", "acc_update", "hide");
?>
<span id="acc_update_info" class="notice"></span>
<form method="post" id="acc_update_frm_id" onsubmit="pcmn_save();return false;">
<table style="width:100%">
<?php
$r = td(_('Poste comptable'), 'style="width:20em;width:15rem;text-align:right"') . td($val->input());
echo tr($r);
$r = td(_('Description'), 'style="width:auto;text-align:right"') . td($lib->input());
echo tr($r);
$r = td(_('Parent'), 'style="width:auto;text-align:right"') . td($parent->input());
echo tr($r);
$r = td(_('Type'), 'style="width:auto;text-align:right"') . td($type->input());
echo tr($r);
?>
示例7: die
/**
* @brief display a window with the content of a tag
*/
//This file is part of NOALYSS and is under GPL
//see licence.txt
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_tool_uos.php';
require_once NOALYSS_INCLUDE . '/class_tag.php';
ob_start();
$tag = new Tag($cn);
$tag->data->t_id = $_GET['tag'];
$tag->data->load();
echo HtmlInput::title_box(_("Détail du dossier ou tag"), "tag_div");
// save via POST and reload page
if ($_GET['form'] == 'p') {
?>
<form id="tag_detail_frm" method="POST" >
<?php
/*
* save via javascript and don't reload page
*/
} else {
?>
<form id="tag_detail_frm" method="POST" onsubmit="return save_tag();">
<?php
}
?>
示例8: 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
/**
* @file
* @brief show result card search
*
*/
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
$sql = "\n\tselect distinct vw.f_id,vw_name,vw_first_name,vw_description,fd_label,quick_code,tva_num,(select ad_value from fiche_Detail where f_id=pc.f_id and ad_id=5) as poste\n\tfrom vw_fiche_attr as vw\n\tjoin fiche_def as fd on (vw.fd_id=fd.fd_id)\n\tleft join fiche_detail as pc on (pc.f_id=vw.f_id)\n\twhere\n\tad_value ~* \$1\n\torder by 2\n";
$array = $cn->get_array($sql, array($_GET['card']));
echo HtmlInput::title_box(_("Résultat recherche"), "boxsearch_card_div");
$max = count($array) > MAX_CARD_SEARCH ? MAX_CARD_SEARCH : count($array);
if (count($array) > MAX_CARD_SEARCH) {
?>
<h2 class="notice"><?php
printf(_("Résultat limité à %d , %d nombre de fiches trouvées"), MAX_CARD_SEARCH, count($array));
?>
</h2>
<?php
}
echo _('Filtre');
?>
<?php
echo HtmlInput::infobulle(26);
echo HtmlInput::filter_table("tb_fiche", "0,1,2,3,4,5", 1);
示例9: _
?>
</td>
</tr>
</table>
<?php
echo HtmlInput::submit('add_menubt', _("Valider"));
echo '</form>';
return;
}
// for printing menu (export CSV or PDF)
if ($type == 'pr') {
$ame_code = $cn->make_array("\nselect me_code,me_code||' '||coalesce(me_menu,'')||' '||coalesce(me_description,'')\n\tfrom\n\tmenu_ref\n\twhere me_type='PR'\n\tand me_code not in (select me_code from profile_menu where p_id=\$1)\n\torder by 1\n\t", 0, array($p_id));
$me_code = new ISelect('me_code');
$me_code->value = $ame_code;
echo HtmlInput::title_box(_("Nouveau menu"), $ctl);
if (count($ame_code) == 0) {
echo h2(_("Aucune impression disponible à ajouter"), 'class="notice"');
return;
}
?>
<form method="POST" id="menu_new2_frm" onsubmit="return confirm_box('menu_new2_frm','<?php
echo _('Vous confirmez ?');
?>
">
<?php
echo HtmlInput::hidden('tab', 'profile_print_div');
?>
<?php
echo HtmlInput::hidden('p_id', $p_id);
?>
示例10: foreach
//-----------------------------------------------------
if ($sub_action == 'rm_template') {
require_once NOALYSS_INCLUDE . '/class_document_modele.php';
// Get all the document to remove
foreach ($_POST as $name => $value) {
list($id) = sscanf($name, "dm_remove_%d");
if ($id == null) {
continue;
}
// a document has to be removed
$doc = new Document_modele($cn);
$doc->md_id = $id;
$doc->Delete();
}
}
//----------------------------------------------------------------------
// Document modify a template
//----------------------------------------------------------------------
if ($sub_action == 'mod_template') {
require_once NOALYSS_INCLUDE . '/class_document_modele.php';
$doc = new Document_modele($cn, $_POST['id']);
$doc->update($_POST);
}
//-----------------------------------------------------
// Default action : Show the list
//-----------------------------------------------------
echo $doc->myList();
echo '<div id="add_modele" class="inner_box" style="display:none">';
echo HtmlInput::title_box("Ajout d'un modèle", "add_modele", "hide");
echo $doc->form('');
echo '</div>';
示例11: 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 2014 Author Dany De Bontridder danydb@aevalys.eu
// require_once '.php';
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
ob_start();
$ag_id = HtmlInput::default_value_get("ag_id", "0");
if ($ag_id == 0) {
throw new Exception('ag_id is null');
}
require_once 'class_acc_ledger.php';
$r = HtmlInput::title_box(_("Détail fiche"), 'search_card');
$r .= '<form id="search_card1_frm" method="GET" onsubmit="action_add_concerned_card(this);return false;">';
$q = new IText('query');
$q->value = isset($query) ? $query : '';
$r .= '<span style="margin-left:50px">';
$r .= _('Fiche contenant') . HtmlInput::infobulle(19);
$r .= $q->input();
$r .= HtmlInput::submit('fs', _('Recherche'), "", "smallbutton");
$r .= '</span>';
$r .= dossier::hidden() . HtmlInput::hidden('op', 'add_concerned_card');
$r .= HtmlInput::request_to_hidden(array('ag_id'));
$r .= '</form>';
$query = HtmlInput::default_value_get("query", "");
$sql_array['query'] = $query;
$sql_array['typecard'] = 'all';
$fiche = new Fiche($cn);
示例12: _
<?php
//This file is part of NOALYSS and is under GPL
//see licence.txt
$html = HtmlInput::title_box(_("Ajout d'une catégorie ") . $msg, $ctl);
?>
<div class="content">
<form id="newcat" name="newcat" method="get" onsubmit="this.ipopup='<?php
echo $ipopup;
?>
';save_card_category(this);return false;">
<?php
echo HtmlInput::get_to_hidden(array('gDossier', 'cat'));
?>
<TABLE BORDER="0" CELLSPACING="0">
<TR>
<TD><?php
echo _('Nom de la catégorie de fiche');
?>
</TD>
<TD><?php
echo $nom_mod->input();
?>
</TD>
</TR>
<TR>
<TD> <?php
echo _('Classe de base');
?>
示例13: _
*
* 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 Author Dany De Bontridder danydb@aevalys.eu
/**\file
* \brief this file respond to an ajax request to modify a type of document
*/
require_once NOALYSS_INCLUDE . '/class_document_type.php';
echo HtmlInput::title_box(_('Type de document'), 'change_doc_div');
$doc_type = new Document_type($cn, $dt_id);
$doc_type->get();
?>
<form method="POST" id="cat_doc_f" onsubmit="cat_doc_change_record('cat_doc_f');">
<?php
echo HtmlInput::request_to_hidden(array("ac", "gDossier", "dt_id"));
?>
<table>
<tr>
<td> <?php
echo _('Nom');
?>
</td>
<td>
<?php
示例14: basename
$base = basename($_SERVER['SCRIPT_NAME']);
$inside = false;
$ledger = new Acc_Ledger($cn, 0);
$ledger->type = 'ALL';
if (isset($_GET['amount_id'])) {
put_global(array(array("key" => 'amount_min', 'value' => $_GET['amount_id']), array("key" => 'amount_max', 'value' => $_GET['amount_id'])));
}
$search_box = $ledger->search_form('ALL', 1, 'search_op');
if ($base == 'recherche.php' || $base == 'do.php') {
echo '<div class="content" >';
echo '<form method="GET">';
} else {
$div = 'search_op';
$action = "";
$callback = "";
echo HtmlInput::title_box(_('Recherche'), $div);
echo '<form name="search_form_ajx" id="search_form_ajx" onsubmit="search_operation(this);return false">';
echo HtmlInput::get_to_hidden(array('ctlc', 'ledger', 'target'));
$inside = true;
}
echo $search_box;
echo HtmlInput::submit("viewsearch", _("Recherche"));
echo HtmlInput::button_close('search_op');
echo '</form>';
if (isset($_GET['amount_min']) && isset($_GET['amount_max']) && ($_GET['amount_max'] != 0 || $_GET['amount_min'] != 0)) {
$_GET['viewsearch'] = 1;
put_global(array(array('key' => 'ledger_type', 'value' => 'ALL')));
}
//-----------------------------------------------------
// Display search result
//-----------------------------------------------------
示例15: 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
/**
* @file
* @brief show a depot
*
*/
if (!defined('ALLOWED')) {
die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_stock_sql.php';
$st = new Stock_Sql($_GET['r_id']);
echo HtmlInput::title_box("Ajouter un dépôt", "change_stock_repo_div", "close");
?>
<form method="post">
<?php
echo HtmlInput::hidden("r_id", $_GET['r_id']);
?>
<table>
<tr>
<td>
<?php
echo _("Nom");
?>
</td>
<td>
<?php
$name = new IText("r_name", $st->r_name);