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


PHP HtmlInput::anchor_hide方法代码示例

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


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

示例1: display_search_form

 /**
  * @brief return a html string with the search_form
  * \return a HTML string with the FORM
  * \see build_search_sql
  * \see search_form
  * \see list_operation
  */
 function display_search_form()
 {
     $r = '';
     $type = $this->type;
     if ($type == "") {
         $type = 'ALL';
     }
     $r .= '<div id="search_form" style="display:none">';
     $r .= HtmlInput::anchor_hide('&#10761;', '$(\'search_form\').style.display=\'none\';');
     $r .= h2('Recherche', 'class="title"');
     $r .= '<FORM METHOD="GET">';
     $r .= $this->search_form($type);
     $r .= HtmlInput::submit('search', _('Rechercher'));
     $r .= HtmlInput::hidden('ac', $_REQUEST['ac']);
     /*  when called from commercial.php some hidden values are needed */
     if (isset($_REQUEST['sa'])) {
         $r .= HtmlInput::hidden("sa", $_REQUEST['sa']);
     }
     if (isset($_REQUEST['sb'])) {
         $r .= HtmlInput::hidden("sb", $_REQUEST['sb']);
     }
     if (isset($_REQUEST['sc'])) {
         $r .= HtmlInput::hidden("sc", $_REQUEST['sc']);
     }
     if (isset($_REQUEST['f_id'])) {
         $r .= HtmlInput::hidden("f_id", $_REQUEST['f_id']);
     }
     $r .= '</FORM>';
     $r .= '</div>';
     $button = new IButton('tfs');
     $button->label = _("Filtrer");
     $button->javascript = "toggleHideShow('search_form','tfs');";
     $r .= $button->input();
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:42,代码来源:class_acc_ledger.php

示例2: title_box

 /**
  * Title for boxes, you can customize the symbol thanks symbol with
  * the mode "custom"
  * @param type $name Title
  * @param type $div element id, except for mode none or custom
  * @param type $mod hide , close , zoom , custom or none, with
  * custom , the $name contains all the code
  * @param type $p_js contains the javascript with "custom" contains button + code 
  * @return type
  */
 static function title_box($name, $div, $mod = "close", $p_js = "")
 {
     if ($mod == 'close') {
         $r = HtmlInput::anchor_close($div, $p_js);
     } else {
         if ($mod == 'hide') {
             $r = HtmlInput::anchor_hide("&#10761;", "\$('{$div}').hide();{$p_js}");
         } else {
             if ($mod == 'zoom') {
                 $r = '<span  id="span_' . $div . '" style="float:right;margin-right:5px">' . HtmlInput::anchor("&#11036;", "", $p_js, ' name="small' . $div . '" id="close_div" class="input_text"  ') . '</span>';
             } else {
                 if ($mod == 'custom') {
                     $r = '<span  id="span_' . $div . '" style="float:right;margin-right:5px">' . $p_js . "</span>";
                 } else {
                     if ($mod == 'none') {
                         $r = "";
                     } else {
                         die(__FILE__ . ":" . __LINE__ . _('Paramètre invaide'));
                     }
                 }
             }
         }
     }
     $r .= h2($name, ' class="title" ');
     return $r;
 }
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:36,代码来源:class_html_input.php

示例3: _

/**
 * @file
 * @brief display the form for searching action
 *
 */
if (!$inner) {
    ?>
<div id="search_action" class="op_detail_frame" style="position:absolute;display:none;margin-left:120px;width:70%;clear:both;z-index:2;height:auto;border:1px #000080 solid">
	<?php 
    echo HtmlInput::anchor_hide('&#10761;', "\$('search_action').style.display='none';");
}
if ($inner) {
    ?>
<div id="search_action" class="">
	<?php 
    echo HtmlInput::anchor_hide('&#10761;', "removeDiv('search_action_div');");
    ?>

	<?php 
}
?>
	<h2 class="title">
		<?php 
echo _('Recherche avancée');
?>
	</h2>
<?php 
if (!$inner) {
    ?>
	<form method="get" action="do.php" style="padding:10px">
<?php 
开发者ID:Kloadut,项目名称:noalyss_ynh,代码行数:31,代码来源:action_search.php


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