• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP img_help函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中img_help函数的典型用法代码示例。如果您正苦于以下问题:PHP img_help函数的具体用法?PHP img_help怎么用?PHP img_help使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



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

示例1: ecm_prepare_dasboard_head

/**
 * Prepare array with list of different ecm main dashboard
 *
 * @param   object	$object		Object related to tabs
 * @return  array				Array of tabs to shoc
 */
function ecm_prepare_dasboard_head($object)
{
    global $langs, $conf, $user;
    $h = 0;
    $head = array();
    $head[$h][0] = DOL_URL_ROOT . '/ecm/index.php';
    $head[$h][1] = $langs->trans("ECMSectionsManual") . img_help(1, $helptext1);
    $head[$h][2] = 'index';
    $h++;
    if (!empty($conf->global->ECM_AUTO_TREE_ENABLED)) {
        $head[$h][0] = DOL_URL_ROOT . '/ecm/index_auto.php';
        $head[$h][1] = $langs->trans("ECMSectionsAuto") . img_help(1, $helptext2);
        $head[$h][2] = 'index_auto';
        $h++;
    }
    // Show more tabs from modules
    // Entries must be declared in modules descriptor with line
    // $this->tabs = array('entity:+tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__');   to add new tab
    // $this->tabs = array('entity:-tabname:Title:@mymodule:/mymodule/mypage.php?id=__ID__');   to remove a tab
    complete_head_from_modules($conf, $langs, $object, $head, $h, 'ecm');
    complete_head_from_modules($conf, $langs, $object, $head, $h, 'ecm', 'remove');
    return $head;
}
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:29,代码来源:ecm.lib.php


示例2: dol_print_date

        // Date
        print "<td align=\"center\" width=\"100\">";
        if ($obj->dc) {
            print dol_print_date($db->jdate($obj->dc), "day");
        } else {
            print "-";
        }
        print '</td>';
        // Delivery date
        print '<td align="right">';
        print dol_print_date($db->jdate($obj->date_livraison), 'day');
        print '</td>';
        // Statut
        print '<td align="right">' . $commandestatic->LibStatut($obj->fk_statut, 5) . '</td>';
        // Billed
        print '<td align="center">' . yn($obj->billed) . '</td>';
        print '<td></td>';
        print "</tr>\n";
        $i++;
    }
    print "</table>\n";
    print "</form>\n";
    if (!empty($conf->facture->enable)) {
        print '<br>' . img_help(1, '') . ' ' . $langs->trans("ToBillSeveralOrderSelectCustomer", $langs->transnoentitiesnoconv("CreateInvoiceForThisCustomer")) . '<br>';
    }
    $db->free($resql);
} else {
    dol_print_error($db);
}
llxFooter();
$db->close();
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:list.php


示例3: img_help

         $valuetoshow = $langs->trans("TypeOfTemplate");
     }
     if ($id == 2) {
         if ($fieldlist[$field] == 'region_id') {
             $valuetoshow = '&nbsp;';
             $showfield = 1;
         }
         if ($fieldlist[$field] == 'region') {
             $valuetoshow = $langs->trans("Country") . '/' . $langs->trans("Region");
             $showfield = 1;
         }
     }
     if ($valuetoshow != '') {
         print '<td align="' . $align . '">';
         if (!empty($tabhelp[$id][$value]) && preg_match('/^http(s*):/i', $tabhelp[$id][$value])) {
             print '<a href="' . $tabhelp[$id][$value] . '" target="_blank">' . $valuetoshow . ' ' . img_help(1, $valuetoshow) . '</a>';
         } else {
             if (!empty($tabhelp[$id][$value])) {
                 print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]);
             } else {
                 print $valuetoshow;
             }
         }
         print '</td>';
     }
     if ($fieldlist[$field] == 'libelle' || $fieldlist[$field] == 'label') {
         $alabelisused = 1;
     }
 }
 if ($id == 4) {
     print '<td></td>';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:dict.php


示例4: img_help

 print '<table class="border" width="100%">';
 // Ref
 print '<tr><td class="fieldrequired" width="30%">' . $langs->trans("Ref") . '</td>';
 print '<td><input size="12" name="ref" value="' . $object->ref . '"></td></tr>';
 // Label
 print '<tr><td class="fieldrequired">' . $langs->trans("Label") . '</td>';
 print '<td><input size="40" name="title" value="' . $object->title . '"></td></tr>';
 // Customer
 print '<tr><td>' . $langs->trans("ThirdParty") . '</td><td>';
 $filteronlist = '';
 if (!empty($conf->global->PROJECT_FILTER_FOR_THIRDPARTY_LIST)) {
     $filteronlist = $conf->global->PROJECT_FILTER_FOR_THIRDPARTY_LIST;
 }
 $text = $form->select_thirdparty_list($object->thirdparty->id, 'socid', $filteronlist, 1, 1);
 $texthelp = $langs->trans("IfNeedToUseOhterObjectKeepEmpty");
 print $form->textwithtooltip($text . ' ' . img_help(), $texthelp, 1, 0, '', '', 2);
 print '</td></tr>';
 // Visibility
 print '<tr><td>' . $langs->trans("Visibility") . '</td><td>';
 $array = array(0 => $langs->trans("PrivateProject"), 1 => $langs->trans("SharedProject"));
 print $form->selectarray('public', $array, $object->public);
 print '</td></tr>';
 // Status
 print '<tr><td>' . $langs->trans("Status") . '</td><td>' . $object->getLibStatut(4) . '</td></tr>';
 // Date start
 print '<tr><td>' . $langs->trans("DateStart") . '</td><td>';
 print $form->select_date($object->date_start ? $object->date_start : -1, 'projectstart', 0, 0, 0, '', 1, 0, 1);
 print ' &nbsp; &nbsp; <input type="checkbox" name="reportdate" value="yes" ';
 if ($comefromclone) {
     print ' checked ';
 }
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:31,代码来源:card.php


示例5: img_help

        print '</form>';
        print "</td>\n";
        print "</tr>\n";
    }
    print '</table>';
}
$virtualdiffersfromphysical = 0;
if (!empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT) || !empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)) {
    $virtualdiffersfromphysical = 1;
}
// According to increase/decrease stock options, virtual and physical stock may differs.
if ($virtualdiffersfromphysical) {
    print '<br>';
    print '<table class="noborder" width="100%">';
    print '<tr class="liste_titre">';
    print "  <td>" . $langs->trans("RuleForStockReplenishment") . " " . img_help('help', $langs->trans("VirtualDiffersFromPhysical")) . "</td>\n";
    print "  <td align=\"right\" width=\"160\">&nbsp;</td>\n";
    print '</tr>' . "\n";
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    print '<td width="60%">' . $langs->trans("UseVirtualStockByDefault") . '</td>';
    print '<td width="160" align="right">';
    print "<form method=\"post\" action=\"stock.php\">";
    print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
    print "<input type=\"hidden\" name=\"action\" value=\"STOCK_USE_VIRTUAL_STOCK\">";
    print $form->selectyesno("STOCK_USE_VIRTUAL_STOCK", $conf->global->STOCK_USE_VIRTUAL_STOCK, 1);
    print '<input type="submit" class="button" value="' . $langs->trans("Modify") . '">';
    print '</form>';
    print "</td>\n";
    print "</tr>\n";
    print '</table>';
开发者ID:Samara94,项目名称:dolibarr,代码行数:31,代码来源:stock.php


示例6: img_help

     } else {
         $valuetoshow = $langs->trans("Amount");
     }
     $align = 'right';
 }
 if ($fieldlist[$field] == 'localtax1_type') {
     $valuetoshow = $form->textwithtooltip($langs->trans("UseLocalTax") . " 2", $langs->trans("LocalTaxDesc"), 2, 1, img_help(1, ''));
     $align = "center";
     $sortable = 0;
 }
 if ($fieldlist[$field] == 'localtax1') {
     $valuetoshow = $langs->trans("Rate") . " 2";
     $sortable = 0;
 }
 if ($fieldlist[$field] == 'localtax2_type') {
     $valuetoshow = $form->textwithtooltip($langs->trans("UseLocalTax") . " 3", $langs->trans("LocalTaxDesc"), 2, 1, img_help(1, ''));
     $align = "center";
     $sortable = 0;
 }
 if ($fieldlist[$field] == 'localtax2') {
     $valuetoshow = $langs->trans("Rate") . " 3";
     $sortable = 0;
 }
 if ($fieldlist[$field] == 'organization') {
     $valuetoshow = $langs->trans("Organization");
 }
 if ($fieldlist[$field] == 'lang') {
     $valuetoshow = $langs->trans("Language");
 }
 if ($fieldlist[$field] == 'type') {
     $valuetoshow = $langs->trans("Type");
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:31,代码来源:dict.php


示例7: img_right

				$ul.append('<li class="category '+spc_line_class+'" catid="'+item.id+'"><a href="javascript:getArboSPC('+item.id+', $(\'li[catid='+item.id+']\') )">'+item.label+'</a></li>');
			});
			
			$.each(data.TProduct,function(i,item) {
				spc_line_class = (spc_line_class == 'even') ? 'odd' : 'even';
				$li = $('<li class="product '+spc_line_class+'" productid="'+item.id+'"><input type="checkbox" value="1" name="TProductSPCtoAdd['+item.id+']" fk_product="'+item.id+'" class="checkSPC" /> <a class="checkIt" href="javascript:;" onclick="checkProductSPC('+item.id+')" >'+item.label+'</a> <a class="addToForm" href="javascript:;" onclick="addProductSPC('+item.id+',\''+item.label.replace(/\'/g, "&quot;")+'\', \''+item.ref+'\')"><?php 
echo img_right($langs->trans('SelectThisProduct'));
?>
</a></li>');
				
				<?php 
if ($conf->global->SPC_DISPLAY_DESC_OF_PRODUCT) {
    ?>
					var desc = item.description.replace(/'/g, "\\'");
					var bubble = $("<?php 
    echo addslashes(img_help());
    ?>
");
					bubble.attr('title', desc);
					$li.append(bubble);
				<?php 
}
?>
				
				$ul.append($li);
			});
		}
		
		container.find('span.loading').remove();
		container.append($ul);
		
开发者ID:ATM-Consulting,项目名称:dolibarr_module_searchproductcategory,代码行数:30,代码来源:searchproductcategory.js.php


示例8: formconfirm


//.........这里部分代码省略.........
                                            if (!empty($input['label'])) {
                                                $more .= $input['label'] . '</td><td valign="top" colspan="2" align="left">';
                                            }
                                            $more .= $input['value'];
                                            $more .= '</td></tr>' . "\n";
                                        }
                                    }
                                }
                            }
                        }
                    }
                    array_push($inputarray, $input['name']);
                }
            }
            $more .= '</table>' . "\n";
        }
        $formconfirm .= "\n<!-- begin form_confirm -->\n";
        if ($useajax && $conf->use_javascript_ajax) {
            $autoOpen = true;
            $dialogconfirm = 'dialog-confirm';
            if (!is_int($useajax)) {
                $button = $useajax;
                $useajax = 1;
                $autoOpen = false;
                $dialogconfirm .= '-' . $button;
            }
            $pageyes = $page . '&action=' . $action . '&confirm=yes';
            $pageno = $useajax == 2 ? $page . '&confirm=no' : '';
            // New code using jQuery only
            $formconfirm .= '<div id="' . $dialogconfirm . '" title="' . dol_escape_htmltag($title) . '" style="display: none;">';
            if (!empty($more)) {
                $formconfirm .= '<p>' . $more . '</p>';
            }
            $formconfirm .= img_help('', '') . ' ' . $question;
            $formconfirm .= '</div>' . "\n";
            $formconfirm .= '<script type="text/javascript">
            $(function() {
                var choice=\'ko\';
                var	$inputarray=' . json_encode($inputarray) . ';
                var button=\'' . $button . '\';
            	var dialogconfirm=\'' . $dialogconfirm . '\';

			    $( "#" + dialogconfirm ).dialog({
			        autoOpen: ' . ($autoOpen ? 'true' : 'false') . ',
			        resizable: false,
			        height:' . $height . ',
			        width:' . $width . ',
			        modal: true,
			        closeOnEscape: false,
			        close: function(event, ui) {
			             if (choice == \'ok\') {
			             	var options="";
			             	if ($inputarray.length>0) {
			             		$.each($inputarray, function() {
			             			var inputname = this;
			             			var inputvalue = $("#" + this).val();
			             			options += \'&\' + inputname + \'=\' + inputvalue;
			             		});
			             		//alert( options );
			             	}
			             	location.href=\'' . $pageyes . '\' + options;
			             }
                         ' . ($pageno ? 'if (choice == \'ko\') location.href=\'' . $pageno . '\';' : '') . '
		              },
			        buttons: {
			            \'' . dol_escape_js($langs->transnoentities("Yes")) . '\': function() {
开发者ID:netors,项目名称:dolibarr,代码行数:67,代码来源:html.form.class.php


示例9: formconfirm


//.........这里部分代码省略.........
            $useajax = 0;
        }
        if (empty($conf->use_javascript_ajax)) {
            $useajax = 0;
        }
        if ($useajax) {
            $autoOpen = true;
            $dialogconfirm = 'dialog-confirm';
            $button = '';
            if (!is_numeric($useajax)) {
                $button = $useajax;
                $useajax = 1;
                $autoOpen = false;
                $dialogconfirm .= '-' . $button;
            }
            $pageyes = $page . (preg_match('/\\?/', $page) ? '&' : '?') . 'action=' . $action . '&confirm=yes';
            $pageno = $useajax == 2 ? $page . (preg_match('/\\?/', $page) ? '&' : '?') . 'confirm=no' : '';
            // Add input fields into list of fields to read during submit (inputok and inputko)
            if (is_array($formquestion)) {
                foreach ($formquestion as $key => $input) {
                    if (isset($input['name'])) {
                        array_push($inputok, $input['name']);
                    }
                    if (isset($input['inputko']) && $input['inputko'] == 1) {
                        array_push($inputko, $input['name']);
                    }
                }
            }
            // Show JQuery confirm box. Note that global var $useglobalvars is used inside this template
            $formconfirm .= '<div id="' . $dialogconfirm . '" title="' . dol_escape_htmltag($title) . '" style="display: none;">';
            if (!empty($more)) {
                $formconfirm .= '<p>' . $more . '</p>';
            }
            $formconfirm .= img_help('', '') . ' ' . $question;
            $formconfirm .= '</div>';
            $formconfirm .= '<script type="text/javascript">';
            $formconfirm .= '
            $(function() {
            	$( "#' . $dialogconfirm . '" ).dialog({
                    autoOpen: ' . ($autoOpen ? "true" : "false") . ',';
            if ($newselectedchoice == 'no') {
                $formconfirm .= '
						open: function() {
            				$(this).parent().find("button.ui-button:eq(1)").focus();
						},';
            }
            $formconfirm .= '
                    resizable: false,
                    height: "' . $height . '",
                    width: "' . $width . '",
                    modal: true,
                    closeOnEscape: false,
                    buttons: {
                        "' . dol_escape_js($langs->transnoentities("Yes")) . '": function() {
                        	var options="";
                        	var inputok = ' . json_encode($inputok) . ';
                         	var pageyes = "' . dol_escape_js(!empty($pageyes) ? $pageyes : '') . '";
                         	if (inputok.length>0) {
                         		$.each(inputok, function(i, inputname) {
                         			var more = "";
                         			if ($("#" + inputname).attr("type") == "checkbox") { more = ":checked"; }
                         		    if ($("#" + inputname).attr("type") == "radio") { more = ":checked"; }
                         			var inputvalue = $("#" + inputname + more).val();
                         			if (typeof inputvalue == "undefined") { inputvalue=""; }
                         			options += "&" + inputname + "=" + inputvalue;
                         		});
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:67,代码来源:html.form.class.php


示例10:

        $defaultref = $modProject->getNextValue($soc,$project);
    }

    if (is_numeric($defaultref) && $defaultref <= 0) $defaultref='';

    // Ref
    print '<tr><td><span class="fieldrequired">'.$langs->trans("Ref").'</span></td><td><input size="12" type="text" name="ref" value="'.($_POST["ref"]?$_POST["ref"]:$defaultref).'"></td></tr>';

    // Label
    print '<tr><td><span class="fieldrequired">'.$langs->trans("Label").'</span></td><td><input size="30" type="text" name="title" value="'.$_POST["title"].'"></td></tr>';

    // Customer
    print '<tr><td>'.$langs->trans("ThirdParty").'</td><td>';
    $text=$html->select_company(GETPOST("socid"),'socid','',1,1);
    $texthelp=$langs->trans("IfNeedToUseOhterObjectKeepEmpty");
    print $html->textwithtooltip($text.' '.img_help(),$texthelp,1);
    print '</td></tr>';

    // Public
    print '<tr><td>'.$langs->trans("Visibility").'</td><td>';
    $array=array(0 => $langs->trans("PrivateProject"),1 => $langs->trans("SharedProject"));
    print $html->selectarray('public',$array,$project->public);
    print '</td></tr>';

    // Date start
    print '<tr><td>'.$langs->trans("DateStart").'</td><td>';
    print $html->select_date('','project');
    print '</td></tr>';

    // Date end
    print '<tr><td>'.$langs->trans("DateEnd").'</td><td>';
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:fiche.php


示例11: textwithpicto

 /**
  * 	Show a text with a picto and a tooltip on picto
  *
  * 	@param	string	$text				Text to show
  * 	@param  string	$htmltext	     	Content of tooltip
  * 	@param	int		$direction			1=Icon is after text, -1=Icon is before text, 0=no icon
  * 	@param	string	$type				Type of picto (info, help, warning, superadmin...)
  *  @param  string	$extracss           Add a CSS style to td tags
  *  @param  int		$noencodehtmltext   Do not encode into html entity the htmltext
  * 	@return	string						HTML code of text, picto, tooltip
  */
 function textwithpicto($text, $htmltext, $direction = 1, $type = 'help', $extracss = '', $noencodehtmltext = 0)
 {
     global $conf;
     if ("{$type}" == "0") {
         $type = 'info';
     }
     // For backward compatibility
     $alt = '';
     // If info or help with no javascript, show only text
     if (empty($conf->use_javascript_ajax)) {
         if ($type == 'info' || $type == 'help') {
             return $text;
         } else {
             $alt = $htmltext;
             $htmltext = '';
         }
     }
     // If info or help with smartphone, show only text
     if (!empty($conf->browser->phone)) {
         if ($type == 'info' || $type == 'help') {
             return $text;
         }
     }
     // Info or help
     if ($type == 'info') {
         $img = img_help(0, $alt);
     }
     if ($type == 'help' || $type == 1) {
         $img = img_help(1, $alt);
     }
     if ($type == 'superadmin') {
         $img = img_picto($alt, "redstar");
     }
     if ($type == 'admin') {
         $img = img_picto($alt, "star");
     }
     // Warnings
     if ($type == 'warning') {
         $img = img_warning($alt);
     }
     return $this->textwithtooltip($text, $htmltext, 2, $direction, $img, $extracss, 0, '', $noencodehtmltext);
 }
开发者ID:nrjacker4,项目名称:crm-php,代码行数:53,代码来源:html.form.class.php


示例12: dol_escape_htmltag

" title="<?php 
echo dol_escape_htmltag($title);
?>
" style="display: none;">
	<?php 
if (!empty($more)) {
    ?>
	<p><?php 
    echo $more;
    ?>
</p>
	<?php 
}
?>
	<?php 
echo img_help('', '') . ' ' . $question;
?>
</div>
<script type="text/javascript">

/*
 * Warning: function is loaded once and not overwritten if loaded by another ajax page.
 * So if we need inputok/ko and pageyes/no to be different according to ajax calls (to have several confirm box loaded
 * from different ajax parts of page, we must place such variables outside of function. For this $useglobalvars must be set to 1.
 */

<?php 
if (!empty($useglobalvars)) {
    ?>
var inputok=<?php 
    echo json_encode($inputok);
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:formconfirm.tpl.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP img_info函数代码示例发布时间:2022-05-15
下一篇:
PHP img_format函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap