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


PHP HtmlInput::button方法代码示例

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


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

示例1: tag_cell

 /**
  * @brief show the cell content in Display for the tags
  * called also by ajax
  */
 function tag_cell()
 {
     global $g_user;
     $a_tag = $this->tag_get();
     $c = count($a_tag);
     for ($e = 0; $e < $c; $e++) {
         echo '<span style="border:1px solid black;margin-right:5px;">';
         echo $a_tag[$e]['t_tag'];
         if ($g_user->can_write_action($this->ag_id) == true) {
             $js_remove = sprintf("onclick=\"action_tag_remove('%s','%s','%s')\"", dossier::id(), $this->ag_id, $a_tag[$e]['t_id']);
             echo HtmlInput::anchor(SMALLX, "javascript:void(0)", $js_remove, ' class="smallbutton" style="padding:0px;display:inline" ');
         }
         echo '</span>';
         echo '&nbsp;';
         echo '&nbsp;';
     }
     $js = sprintf("onclick=\"action_tag_select('%s','%s')\"", dossier::id(), $this->ag_id);
     if ($g_user->can_write_action($this->ag_id) == true) {
         echo HtmlInput::button('tag_bt', 'Ajout tag', $js, 'smallbutton');
     }
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:25,代码来源:class_follow_up.php

示例2: _

  <h2 class="info"> <?php 
    echo _("Total lettré");
    ?>
</h2>
<span style="display:block;font-size:14px"><?php 
    echo _('Total Debit');
    ?>
   <?php 
    echo $amount_deb;
    ?>
</span>
<span style="display:block;font-size:14px"><?php 
    echo _('Total Credit');
    ?>
   <?php 
    echo $amount_cred;
    ?>
</span>
<span style="display:block;font-size:14px"><?php 
    echo _('Total') . " " . $side;
    ?>
   <?php 
    echo $delta;
    ?>
</span>

<?php 
}
echo HtmlInput::button('check_all', _('Sélectionner tout'), ' onclick="select_checkbox(\'letter_form\')"');
echo HtmlInput::button('check_none', _('Tout Désélectionner'), ' onclick="unselect_checkbox(\'letter_form\')"');
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:30,代码来源:letter_prop.php

示例3: h

        </td>
        <td>
        <span class="noprint" id="input_desc<?php 
        echo $aAttachedFile[$i]['d_id'];
        ?>
" style="display:none" >
              <input type="input" class="input_text" id="input_desc_txt<?php 
        echo $aAttachedFile[$i]['d_id'];
        ?>
" 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') {
        ?>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:detail-action.php

示例4: td

 * @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);
?>
</table>
<?php 
echo HtmlInput::hidden('p_oldu', $pcmn_val);
echo HtmlInput::hidden('p_action', $action);
echo dossier::hidden();
$checkbox = new ICheckBox("delete_acc");
echo _('Cocher pour effacer') . " " . $checkbox->input();
echo '<hr>';
echo HtmlInput::submit('update', _('Sauve'));
echo HtmlInput::button('hide', _('Annuler'), 'onClick="$(\'acc_update\').hide();return true;"');
?>
</form>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:pcmn_update.php

示例5: IDate

<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';
	//Effect.Grow(div,{});
}
try {
var array=Array('customer_now_div','customer_late_div','supplier_now_div','supplier_late_div','action_now_div','action_late_div');
var i=0;
for  (i=0;i < array.length;i++) {
	new Draggable(array[i],{});
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:dashboard.php

示例6: isset

        $p_post = null;
        if (isset($_REQUEST['pre_def']) && $_REQUEST['pre_def'] != '') {
            $op->set_od_id($_REQUEST['pre_def']);
            $p_post = $op->compute_array();
        }
    }
}
$p_msg = isset($p_msg) ? $p_msg : "";
print '<p class="notice">' . $p_msg . '</p>';
echo '<form method="post"  class="print">';
echo dossier::hidden();
echo HtmlInput::request_to_hidden(array('ac'));
echo $ledger->input($p_post);
echo '<div style="position:absolute;width:40%;right:20px">';
echo '<table class="info_op">' . '<tr>' . td(_('Débit')) . '<td id="totalDeb"></td>' . td(_('Crédit')) . ' <td id="totalCred"></td>' . td(_('Difference')) . ' <td id="totalDiff"></td>';
echo '</table>';
echo '</div>';
$iconcerned = new IConcerned('jrn_concerned');
$iconcerned->amount_id = "totalDeb";
echo "Opération rapprochée : " . $iconcerned->input();
echo '<p>';
echo HtmlInput::button('add', _('Ajout d\'une ligne'), 'onClick="quick_writing_add_row()"');
echo HtmlInput::submit('summary', _('Sauvez'));
echo '</p>';
echo '</form>';
echo "<script>checkTotalDirect();</script>";
echo create_script(" update_name()");
if ($g_parameter->MY_DATE_SUGGEST == 'Y') {
    echo create_script(" get_last_date()");
}
echo '</div>';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:operation_ods_new.inc.php

示例7: _

    // if $l_id != 0
}
// $_POST[DATABASE]
?>
<h2> <?php 
echo _('Dossier Management');
?>
</h2>

<?php 
//---------------------------------------------------------------------------
// List of folder
if ($sa == 'list') {
    require_once NOALYSS_INCLUDE . '/class_sort_table.php';
    echo '<p>';
    echo HtmlInput::button(_('Ajouter'), _('Ajouter un dossier'), " onclick=\$('folder_add_id').show()");
    echo '</p>';
    $header = new Sort_Table();
    $url = $_SERVER['PHP_SELF'] . "?sa=list&action=" . $_REQUEST['action'];
    $header->add(_("id"), $url, " order by dos_id asc", " order by dos_id desc", "da", "dd");
    $header->add(_("Nom"), $url, " order by dos_name asc", " order by dos_name desc", "na", "nd");
    $header->add(_("Description"), $url, " order by dos_description asc", " order by dos_description  desc", "da", "dd");
    $repo = new Dossier(0);
    $repocn = new Database();
    $ord = isset($_REQUEST['ord']) ? $_REQUEST['ord'] : 'na';
    $sql_order = $header->get_sql_order($ord);
    $Res = $repocn->get_array("select *  from ac_dossier {$sql_order}");
    $compteur = 1;
    $template = "";
    echo '<div class="content">';
    echo '<span style="display:block">';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:dossier.inc.php

示例8: _

		</td>
		<td>
			<?php 
    $v = $row['fd_create_account'] == 't' ? _("Automatique") : _("Manuel");
    echo $v;
    ?>
		</td>
		<td>
			<?php 
    echo $row['frd_text'];
    ?>
		</td>
		<td>
			<?php 
    echo h($row['fd_description']);
    ?>
		</td>
	</tr>


<?php 
}
?>
</table>
<?php 
echo HtmlInput::button("cat_fiche_def_add", _("Ajout d'une nouvelle catégorie"), "onclick=\"detail_category_show('detail_category_div','" . $dossier . "','-1')\"");
?>
</div>
<div id="detail_category_div" style="display:none"">

</div>
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:fiche_def_list.php

示例9: display

 function display($p_array)
 {
     require_once NOALYSS_INCLUDE . '/class_acc_ledger_purchase.php';
     global $g_parameter, $g_user;
     extract($p_array);
     $ledger = new Acc_Ledger_Purchase($this->db, $this->jrn_def_id);
     if ($p_array != null) {
         extract($p_array);
     }
     $flag_tva = $g_parameter->MY_TVA_USE;
     /* Add button */
     $f_add_button = new IButton('add_card');
     $f_add_button->label = _('Créer une nouvelle fiche');
     $f_add_button->tabindex = -1;
     $f_add_button->set_attribute('ipopup', 'ipop_newcard');
     $f_add_button->set_attribute('jrn', $this->jrn_def_id);
     $f_add_button->javascript = " this.jrn=\$('p_jrn').value;select_card_type(this);";
     $f_add_button2 = new IButton('add_card2');
     $f_add_button2->tabindex = -1;
     $f_add_button2->label = _('Créer une nouvelle fiche');
     $f_add_button2->set_attribute('ipopup', 'ipop_newcard');
     $f_add_button2->set_attribute('filter', $ledger->get_all_fiche_def());
     //    $f_add_button2->set_attribute('jrn',$ledger->id);
     $f_add_button2->javascript = "  this.jrn=\$('p_jrn').value;select_card_type(this);";
     $str_add_button = "";
     $str_add_button2 = "";
     if ($g_user->check_action(FICADD) == 1) {
         $str_add_button = $f_add_button->input();
         $str_add_button2 = $f_add_button2->input();
     }
     $r = "";
     $r .= dossier::hidden();
     $f_legend = _("En-tête facture fournisseur");
     $f_legend_detail = _("Détail articles acheté");
     // Ledger (p_jrn)
     //--
     /* if we suggest the next pj, then we need a javascript */
     $add_js = "";
     // Display the customer
     //--
     $fiche = 'cred';
     // Save old value and set a new one
     //--
     $e_client = isset($e_client) ? $e_client : "";
     $e_client_label = "&nbsp;";
     //str_pad("",100,".");
     // retrieve e_client_label
     //--
     if (strlen(trim($e_client)) != 0) {
         $fClient = new Fiche($ledger->db);
         $fClient->get_by_qcode($e_client);
         $e_client_label = $fClient->strAttribut(ATTR_DEF_NAME) . ' ' . ' Adresse : ' . $fClient->strAttribut(ATTR_DEF_ADRESS) . ' ' . $fClient->strAttribut(ATTR_DEF_CP) . ' ' . $fClient->strAttribut(ATTR_DEF_CITY) . ' ';
     }
     $W1 = new ICard();
     $W1->label = _("Fournisseur ") . HtmlInput::infobulle(0);
     $W1->name = "e_client";
     $W1->tabindex = 3;
     $W1->value = $e_client;
     $W1->table = 0;
     $W1->set_dblclick("fill_ipopcard(this);");
     $W1->set_attribute('ipopup', 'ipopcard');
     // name of the field to update with the name of the card
     $W1->set_attribute('label', 'e_client_label');
     // name of the field to update with the name of the card
     $W1->set_attribute('typecard', 'cred');
     // Add the callback function to filter the card on the jrn
     $W1->set_callback('filter_card');
     $W1->set_function('fill_data');
     $W1->javascript = sprintf(' onchange="fill_data_onchange(\'%s\');" ', $W1->name);
     $f_client_qcode = $W1->input();
     $client_label = new ISpan();
     $client_label->table = 0;
     $f_client = $client_label->input("e_client_label", $e_client_label);
     $f_client_bt = $W1->search();
     // Record the current number of article
     $min = $ledger->get_min_row();
     $p_article = isset($nb_item) ? $nb_item : $min;
     $max = $p_article < $min ? $min : $p_article;
     $e_comment = isset($e_comment) ? $e_comment : "";
     $Hid = new IHidden();
     $r .= $Hid->input("nb_item", $p_article);
     // For each article
     //--
     for ($i = 0; $i < $max; $i++) {
         // Code id, price & vat code
         //--
         $march = isset(${"e_march{$i}"}) ? ${"e_march{$i}"} : "";
         $march_price = isset(${"e_march" . $i . "_price"}) ? ${"e_march" . $i . "_price"} : "";
         /* use vat */
         if ($g_parameter->MY_TVA_USE == 'Y') {
             $march_tva_id = isset(${"e_march{$i}" . "_tva_id"}) ? ${"e_march{$i}" . "_tva_id"} : "";
             $march_tva_amount = isset(${"e_march{$i}" . "_tva_amount"}) ? ${"e_march{$i}" . "_tva_amount"} : "";
         }
         $march_label = isset(${"e_march" . $i . "_label"}) ? ${"e_march" . $i . "_label"} : "";
         // retrieve the tva label and name
         //--
         if (strlen(trim($march)) != 0 && strlen(trim($march_label)) == 0) {
             $fMarch = new Fiche($ledger->db);
             $fMarch->get_by_qcode($march);
             $march_label = $fMarch->strAttribut(ATTR_DEF_NAME);
//.........这里部分代码省略.........
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:101,代码来源:class_pre_op_ach.php

示例10: die

 *   (at your option) any later version.
 *
 *   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 show detail of a fiche_def (category of card) + Attribut
 *
 */
if (!defined('ALLOWED')) {
    die('Appel direct ne sont pas permis');
}
require_once NOALYSS_INCLUDE . '/class_fiche_def.php';
require_once NOALYSS_INCLUDE . '/class_tool_uos.php';
global $g_user;
$g_user->can_request(FICCAT, 0);
$fd = new Fiche_Def($cn, $_GET['id']);
if ($_GET['id'] > 0) {
    echo $fd->input_detail();
    echo HtmlInput::button("retour_b", _("Retour à la liste"), "onclick=\"\$('detail_category_div').hide();\$('list_cat_div').show()\"");
} else {
    $fd->input_new();
}
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_fiche_def_detail.php

示例11: h

         for ($i = 0; $i < count($array); $i++) {
             $class = $i % 2 == 0 ? ' class="even" ' : ' class="odd" ';
             $r .= '<tr ' . $class . ' id="select_cat_row_' . $array[$i]['fd_id'] . '">';
             $r .= '<td >';
             $r .= '<a href="javascript:void(0)" onclick="select_cat(\'' . $array[$i]['fd_id'] . '\')">' . h($array[$i]['fd_label']) . '</a>';
             $r .= '</td>';
             $r .= '<td>';
             $r .= '<a href="javascript:void(0)" onclick="select_cat(\'' . $array[$i]['fd_id'] . '\')">' . h($array[$i]['fd_description']) . '</a>';
             $r .= '</td>';
             $r .= "</tr>";
         }
         $r .= '</table>';
         $r .= HtmlInput::hidden('fd_id', 0);
         $r .= '<p style="text-align:center">';
         $r .= HtmlInput::submit('st', 'choix');
         $r .= HtmlInput::button('Annuler', _('Annuler'), " onclick=\"removeDiv('{$ctl}')\" ");
         $r .= '</p>';
         $r .= '</form>';
         $r .= '</div>';
         $html .= $r;
     }
     break;
     /*----------------------------------------------------------------------
       * SC save card
       * save the new card (insert)
       *
       ----------------------------------------------------------------------*/
 /*----------------------------------------------------------------------
   * SC save card
   * save the new card (insert)
   *
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:ajax_card.php

示例12: foreach

    }
    echo '<table>';
    $count = 0;
    foreach ($array as $row) {
        if ($count % 2 == 0) {
            echo '<tr class="odd">';
        } else {
            echo '<tr class="even">';
        }
        $count++;
        echo '<td>' . h($row['od_name']) . '</td>';
        echo '<td>' . h($row['od_description']) . '</td>';
        echo '<td>';
        echo '<form method="POST" id="preod_frm" class="print" style="margin:0px;padding:0px;">';
        echo dossier::hidden();
        echo $hid->input("sa", "del");
        echo $hid->input("ac", $request_ac);
        echo $hid->input("del", "");
        echo $hid->input("od_id", $row['od_id']);
        echo $hid->input("jrn", $get_jrn);
        $b = '<input type="submit" class="smallbutton" value="' . _("Effacer") . '"' . ' onClick="return confirm_box(\'preod_frm\',\'' . _("Voulez-vous vraiment effacer cette operation ?") . '\');" >';
        echo $b;
        echo '</form>';
        echo '</td>';
        $b = HtmlInput::button('mod' . $row['od_id'], "Modifier", "onclick=\"mod_predf_op('" . dossier::id() . "','" . $row['od_id'] . "');\"");
        echo td($b);
        echo '</tr>';
    }
    echo '</table>';
}
echo '</div>';
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:preod.inc.php

示例13: isset

//----------------------------------------
// Correct the operations
//----------------------------------------
if (isset($_POST['correct'])) {
    $correct = 1;
}
//----------------------------------------
// Blank form
//----------------------------------------
echo '<div style="position:absolute" class="content">';
echo '<p class="notice">' . $p_msg . '</p>';
echo '<form class="print" name="form_detail" enctype="multipart/form-data" class="print" METHOD="POST">';
echo HtmlInput::hidden('ledger_type', 'fin');
echo HtmlInput::hidden('ac', $_REQUEST['ac']);
$array = isset($correct) ? $_POST : null;
// show select ledger
try {
    echo $Ledger->input($array);
    echo HtmlInput::button('add_item', _('Ajout article'), ' onClick="ledger_fin_add_row()"');
    echo HtmlInput::submit('save', _('Sauve'));
    echo HtmlInput::reset(_('Effacer'));
    if (!isset($_POST['e_date']) && $g_parameter->MY_DATE_SUGGEST == 'Y') {
        echo create_script(" get_last_date();ajax_saldo('first_sold');");
    } else {
        echo create_script(" ajax_saldo('first_sold');");
    }
    echo create_script(" update_name()");
} catch (Exception $ex) {
    echo $ex->getMessage();
}
return;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:compta_fin.inc.php

示例14: catch

            echo HtmlInput::hidden("ledger_type", "VEN");
            echo HtmlInput::hidden("ac", $_REQUEST['ac']);
            echo HtmlInput::hidden("sa", "p");
            echo $Ledger->input($array);
            echo '<div class="content">';
            echo $Ledger->input_paid();
            echo '</div>';
            echo '<script>';
            echo 'compute_all_ledger();';
            echo '</script>';
        }
    }
} catch (Exception $e) {
    alert($e->getMessage());
    return;
}
echo '<div class="content">';
echo HtmlInput::button('act', _('Actualiser'), 'onClick="compute_all_ledger();"');
echo HtmlInput::submit("view_invoice", _("Enregistrer"));
echo HtmlInput::reset(_('Effacer '));
echo '</div>';
echo "</FORM>";
/* if we suggest the pj n# the run the script */
if ($g_parameter->MY_PJ_SUGGEST == 'Y') {
    echo '<script> update_pj()</script>';
}
if (!isset($_POST['e_date']) && $g_parameter->MY_DATE_SUGGEST == 'Y') {
    echo create_script(" get_last_date()");
}
echo create_script(" update_name()");
return;
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:compta_ven.inc.php

示例15: _

?>
	<?php 
echo HtmlInput::submit("search", _("Recherche"));
?>
	<?php 
echo HtmlInput::request_to_hidden(array('ac', 'gDossier', 'ord'));
?>
</form>
     <?php 
echo _('Filtre'), HtmlInput::filter_table('menu_tb', '0,1,2,4', '1');
?>
</fieldset>
<?php 
$gDossier = Dossier::id();
echo HtmlInput::button("Add_plugin", _("Ajout d'un plugin"), "onclick=add_plugin({$gDossier})");
echo HtmlInput::button("Add_menu", _("Ajout d'un menu"), "onclick=create_menu({$gDossier})");
echo '<table class="result" id="menu_tb">';
echo '<tr>';
echo '<th>' . $table->get_header(0) . '</th>';
echo '<th>' . $table->get_header(1) . '</th>';
echo '<th>' . $table->get_header(2) . '</th>';
echo '<th>' . $table->get_header(3) . HtmlInput::infobulle(33) . '</th>';
echo '<th>' . $table->get_header(4) . '</th>';
echo '<th>' . $table->get_header(5) . '</th>';
echo '<th>' . $table->get_header(6) . '</th>';
echo '<th>' . $table->get_header(7) . '</th>';
echo '</tr>';
for ($i = 0; $i < Database::num_row($ret); $i++) {
    $row = $menu->get_object($ret, $i);
    $js = $row->me_code;
    switch ($row->me_type) {
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:menu.inc.php


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