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


PHP dol_size函数代码示例

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


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

示例1: dol_size

		top: 4px;
		max-width: 82px;
	}
    li.tmenu, li.tmenusel {
        min-width: 30px;
    }

	div.tmenucenter {
  		text-overflow: clip;
	}
    .topmenuimage {
    	background-size: 20px auto;
    	margin-top: 2px !important;
	}
	div.mainmenu {
    	min-width: 20px;
    }

	#tooltip {
		position: absolute;
		width: <?php 
print dol_size(300, 'width');
?>
px;
	}
}

<?php 
if (is_object($db)) {
    $db->close();
}
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:style.css.php

示例2: dol_size

}

.validtitre {
    background: #D5BAA8;
	font-weight: bold;
}


/* ============================================================================== */
/* Tooltips                                                                       */
/* ============================================================================== */

#tooltip {
position: absolute;
width: <?php 
print dol_size(450, 'width');
?>
px;
border-top: solid 1px #BBBBBB;
border-<?php 
print $left;
?>
: solid 1px #BBBBBB;
border-<?php 
print $right;
?>
: solid 1px #444444;
border-bottom: solid 1px #444444;
padding: 2px;
z-index: 3000;
background-color: #EFCFAA;
开发者ID:LionSystemsSolutions,项目名称:El-Canelo-ERP,代码行数:31,代码来源:style.css.ori.php

示例3: array

            $total += $Adherents[$key][$idx];
        }
    }
}
print '<tr><td width="30%" class="notopnoleft" valign="top">';
/*
 * Statistics
 */
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="2">' . $langs->trans("Statistics") . '</td></tr>';
print '<tr><td align="center">';
$dataval = array();
$datalabels = array();
$i = 0;
foreach ($AdherentType as $key => $adhtype) {
    $datalabels[] = array($i, $staticmember->getTagUrl(0, dol_size(16)));
    foreach ($staticmember->fk_extrafields->fields->Status->values as $idx => $row) {
        $dataval[$key][] = array($i, $Adherents[$key][$idx]);
    }
    $i++;
}
$dataseries = array();
foreach ($staticmember->fk_extrafields->fields->Status->values as $idx => $row) {
    $dataseries[] = array('label' => $langs->trans($row->label), 'data' => round($somme[$idx]));
}
$data = array('series' => $dataseries);
dol_print_graph('stats', 330, 180, $data, 1, 'pie', 1);
print '</td></tr>';
print '<tr class="liste_total"><td>' . $langs->trans("Total") . '</td><td align="right">';
print $total;
print '</td></tr>';
开发者ID:nrjacker4,项目名称:crm-php,代码行数:31,代码来源:index.php

示例4: dol_print_error

} else {
    dol_print_error($db);
}
// Summary of members by type
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("MembersTypes") . '</td>';
print '<td align=right>' . $langs->trans("MembersStatusToValid") . '</td>';
print '<td align=right>' . $langs->trans("MenuMembersNotUpToDate") . '</td>';
print '<td align=right>' . $langs->trans("MenuMembersUpToDate") . '</td>';
print '<td align=right>' . $langs->trans("MembersStatusResiliated") . '</td>';
print "</tr>\n";
foreach ($AdherentType as $key => $adhtype) {
    $var = !$var;
    print "<tr " . $bc[$var] . ">";
    print '<td>' . $adhtype->getNomUrl(1, dol_size(32)) . '</td>';
    print '<td align="right">' . (isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0 ? $MemberToValidate[$key] : '') . ' ' . $staticmember->LibStatut(-1, $adhtype->cotisation, 0, 3) . '</td>';
    print '<td align="right">' . (isset($MembersValidated[$key]) && $MembersValidated[$key] - (isset($MemberUpToDate[$key]) ? $MemberUpToDate[$key] : 0) > 0 ? $MembersValidated[$key] - (isset($MemberUpToDate[$key]) ? $MemberUpToDate[$key] : 0) : '') . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, 0, 3) . '</td>';
    print '<td align="right">' . (isset($MemberUpToDate[$key]) && $MemberUpToDate[$key] > 0 ? $MemberUpToDate[$key] : '') . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, $now, 3) . '</td>';
    print '<td align="right">' . (isset($MembersResiliated[$key]) && $MembersResiliated[$key] > 0 ? $MembersResiliated[$key] : '') . ' ' . $staticmember->LibStatut(0, $adhtype->cotisation, 0, 3) . '</td>';
    print "</tr>\n";
}
print '<tr class="liste_total">';
print '<td class="liste_total">' . $langs->trans("Total") . '</td>';
print '<td class="liste_total" align="right">' . $SommeA . ' ' . $staticmember->LibStatut(-1, $adhtype->cotisation, 0, 3) . '</td>';
print '<td class="liste_total" align="right">' . $SommeB . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, 0, 3) . '</td>';
print '<td class="liste_total" align="right">' . $SommeC . ' ' . $staticmember->LibStatut(1, $adhtype->cotisation, $now, 3) . '</td>';
print '<td class="liste_total" align="right">' . $SommeD . ' ' . $staticmember->LibStatut(0, $adhtype->cotisation, 0, 3) . '</td>';
print '</tr>';
print "</table>\n";
print "<br>\n";
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:index.php

示例5: top_menu

/**
 *  Show an HTML header + a BODY + The top menu bar
 *
 *  @param      string	$head    			Lines in the HEAD
 *  @param      string	$title   			Title of web page
 *  @param      string	$target  			Target to use in menu links (Example: '' or '_top')
 *	@param		int		$disablejs			Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
 *	@param		int		$disablehead		Do not output head section
 *	@param		array	$arrayofjs			Array of js files to add in header
 *	@param		array	$arrayofcss			Array of css files to add in header
 *  @param		string	$morequerystring	Query string to add to the link "print" to get same parameters (use only if autodetect fails)
 *  @return		void
 */
function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '')
{
    global $user, $conf, $langs, $db;
    global $dolibarr_main_authentication, $dolibarr_main_demo;
    global $hookmanager, $menumanager;
    // Instantiate hooks of thirdparty module
    $hookmanager->initHooks(array('toprightmenu'));
    $toprightmenu = '';
    // For backward compatibility with old modules
    if (empty($conf->headerdone)) {
        top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
    }
    print '<body id="mainbody">';
    if ($conf->use_javascript_ajax) {
        if (empty($conf->dol_use_jmobile) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
            print '<script type="text/javascript">
				jQuery(document).ready(function () {
					jQuery("body").layout(layoutSettings);
				});
				var layoutSettings = {
					name: "mainlayout",
					defaults: {
						useStateCookie: true,
						size: "auto",
						resizable: false,
						//paneClass: "none",
						//resizerClass: "resizer",
						//togglerClass: "toggler",
						//buttonClass: "button",
						//contentSelector: ".content",
						//contentIgnoreSelector: "span",
						togglerTip_open: "Close This Pane",
						togglerTip_closed: "Open This Pane",
						resizerTip:	"Resize This Pane",
						fxSpeed: "fast"
					},
					west: {
						paneClass: "leftContent",
						//spacing_closed:	14,
						//togglerLength_closed: 14,
						//togglerAlign_closed: "auto",
						//togglerLength_open: 0,
						//	effect defaults - overridden on some panes
						//slideTrigger_open:	"mouseover",
						initClosed:	' . (empty($conf->dol_optimize_smallscreen) ? 'false' : 'true') . ',
						fxName:	"drop",
						fxSpeed: "fast",
						fxSettings: { easing: "" }
					},
					north: {
						paneClass: "none",
						resizerClass: "none",
						togglerClass: "none",
						spacing_open: 0,
						togglerLength_open:	0,
						togglerLength_closed: -1,
						slidable: false,
						fxName:	"none",
						fxSpeed: "fast"
					},
					center: {
						paneSelector: "#mainContent"
					}
				}
    		</script>';
        }
        // Wrapper to show tooltips
        print "\n" . '<script type="text/javascript">
                    jQuery(document).ready(function () {
                       	jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});
                    });
                </script>';
    }
    /*
     * Top menu
     */
    print "\n" . '<!-- Start top horizontal -->' . "\n";
    if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
        print '<div class="ui-layout-north"> <!-- Begin top layout -->' . "\n";
    }
    if (empty($conf->dol_hide_topmenu)) {
        print '<div class="side-nav-vert"><div id="id-top">';
        // Show menu entries
        print '<div id="tmenu_tooltip' . (empty($conf->global->MAIN_MENU_INVERT) ? '' : 'invert') . '" class="tmenu">' . "\n";
        $menumanager->atarget = $target;
        $menumanager->showmenu('top');
        // This contains a \n
//.........这里部分代码省略.........
开发者ID:TAASA,项目名称:Dolibarr-ERP-3.8.1,代码行数:101,代码来源:main.inc.php

示例6: llxFooter

 /**
  * Show HTML footer
  * Close div /DIV data-role=page + /DIV class=fiche + /DIV /DIV main layout + /BODY + /HTML.
  * If global var $delayedhtmlcontent was filled, we output it just before closing the body. 
  *
  * @param	string	$comment    A text to add as HTML comment into HTML generated page
  * @param	string	$zone		'private' (for private pages) or 'public' (for public pages)
  * @return	void
  */
 function llxFooter($comment = '', $zone = 'private')
 {
     global $conf, $langs;
     global $delayedhtmlcontent;
     // Global html output events ($mesgs, $errors, $warnings)
     dol_htmloutput_events();
     // Core error message
     if (defined("MAIN_CORE_ERROR") && constant("MAIN_CORE_ERROR") == 1) {
         // Ajax version
         if ($conf->use_javascript_ajax) {
             $title = img_warning() . ' ' . $langs->trans('CoreErrorTitle');
             print ajax_dialog($title, $langs->trans('CoreErrorMessage'));
         } else {
             $msg = img_warning() . ' ' . $langs->trans('CoreErrorMessage');
             print '<div class="error">' . $msg . '</div>';
         }
         define("MAIN_CORE_ERROR", 0);
     }
     print "\n\n";
     print '</div> <!-- End div class="fiche" -->' . "\n";
     if (!empty($conf->dol_use_jmobile)) {
         print '</div>';
     }
     // end data-role="page"
     if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
         print '</div></div> <!-- end main layout -->' . "\n";
     }
     if (empty($conf->dol_hide_leftmenu)) {
         print '</div> <!-- End div id-right -->';
     }
     // End div id-right
     print "\n";
     if ($comment) {
         print '<!-- ' . $comment . ' -->' . "\n";
     }
     printCommonFooter($zone);
     //var_dump($langs);		// Uncommment to see the property _tab_loaded to see which language file were loaded
     if (empty($conf->dol_hide_leftmenu) && empty($conf->dol_use_jmobile) && empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
         print '</div> <!-- End div id-container -->' . "\n";
     }
     // End div container
     if (!empty($delayedhtmlcontent)) {
         print $delayedhtmlcontent;
     }
     // Wrapper to show tooltips
     print "\n<!-- JS CODE TO ENABLE tipTip on all object with class classfortooltip -->\n";
     print '<script type="text/javascript">
     	jQuery(document).ready(function () {
     		jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});
     	});
     </script>' . "\n";
     print "</body>\n";
     print "</html>\n";
 }
开发者ID:Samara94,项目名称:dolibarr,代码行数:63,代码来源:main.inc.php

示例7: dol_size

    background: pink;
}

.validtitre {
    background: #D5BAA8;
	font-weight: bold;
}


/* ============================================================================== */
/* Tooltips                                                                       */
/* ============================================================================== */

#tooltip {
position: absolute;
width: <?php print dol_size(450,'width'); ?>px;
border-top: solid 1px #BBBBBB;
border-<?php print $left; ?>: solid 1px #BBBBBB;
border-<?php print $right; ?>: solid 1px #444444;
border-bottom: solid 1px #444444;
padding: 2px;
z-index: 3000;
background-color: #FFFFF0;
opacity: 1;
-moz-border-radius:6px;
}



/* ============================================================================== */
/* Calendar                                                                       */
开发者ID:remyyounes,项目名称:dolibarr,代码行数:31,代码来源:style.css.php

示例8: top_menu

/**
 *  Show an HTML header + a BODY + The top menu bar
 *
 *  @param      string	$head    			Lines in the HEAD
 *  @param      string	$title   			Title of web page
 *  @param      string	$target  			Target to use in menu links (Example: '' or '_top')
 *	@param		int		$disablejs			Do not output links to js (Ex: qd fonction utilisee par sous formulaire Ajax)
 *	@param		int		$disablehead		Do not output head section
 *	@param		array	$arrayofjs			Array of js files to add in header
 *	@param		array	$arrayofcss			Array of css files to add in header
 *  @param		string	$morequerystring	Query string to add to the link "print" to get same parameters (use only if autodetect fails)
 *  @return		void
 */
function top_menu($head, $title = '', $target = '', $disablejs = 0, $disablehead = 0, $arrayofjs = '', $arrayofcss = '', $morequerystring = '')
{
    global $user, $conf, $langs, $db;
    global $dolibarr_main_authentication, $dolibarr_main_demo;
    global $hookmanager, $menumanager;
    // Instantiate hooks of thirdparty module
    $hookmanager->initHooks(array('toprightmenu'));
    $toprightmenu = '';
    // For backward compatibility with old modules
    if (empty($conf->headerdone)) {
        top_htmlhead($head, $title, $disablejs, $disablehead, $arrayofjs, $arrayofcss);
    }
    print '<body id="mainbody">';
    if ($conf->use_javascript_ajax) {
        if (empty($conf->dol_use_jmobile) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
            print '<script type="text/javascript">
				jQuery(document).ready(function () {
					jQuery("body").layout(layoutSettings);
				});
				var layoutSettings = {
					name: "mainlayout",
					defaults: {
						useStateCookie: true,
						size: "auto",
						resizable: false,
						//paneClass: "none",
						//resizerClass: "resizer",
						//togglerClass: "toggler",
						//buttonClass: "button",
						//contentSelector: ".content",
						//contentIgnoreSelector: "span",
						togglerTip_open: "Close This Pane",
						togglerTip_closed: "Open This Pane",
						resizerTip:	"Resize This Pane",
						fxSpeed: "fast"
					},
					west: {
						paneClass: "leftContent",
						//spacing_closed:	14,
						//togglerLength_closed: 14,
						//togglerAlign_closed: "auto",
						//togglerLength_open: 0,
						//	effect defaults - overridden on some panes
						//slideTrigger_open:	"mouseover",
						initClosed:	' . (empty($conf->dol_optimize_smallscreen) ? 'false' : 'true') . ',
						fxName:	"drop",
						fxSpeed: "fast",
						fxSettings: { easing: "" }
					},
					north: {
						paneClass: "none",
						resizerClass: "none",
						togglerClass: "none",
						spacing_open: 0,
						togglerLength_open:	0,
						togglerLength_closed: -1,
						slidable: false,
						fxName:	"none",
						fxSpeed: "fast"
					},
					center: {
						paneSelector: "#mainContent"
					}
				}
    		</script>';
        }
        // Wrapper to show tooltips
        print "\n" . '<script type="text/javascript">
                    jQuery(document).ready(function () {
                    	jQuery(function() {
                        	jQuery(".classfortooltip").tipTip({maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});
                        });
                    });
                </script>';
    }
    /*
     * Top menu
     */
    print "\n" . '<!-- Start top horizontal -->' . "\n";
    if (empty($conf->dol_use_jmobile) && !empty($conf->use_javascript_ajax) && !empty($conf->global->MAIN_MENU_USE_JQUERY_LAYOUT)) {
        print '<div class="ui-layout-north"> <!-- Begin top layout -->' . "\n";
    }
    if (empty($conf->dol_hide_topmenu)) {
        // Show menu entries
        print '<div id="tmenu_tooltip' . (empty($conf->global->MAIN_MENU_INVERT) ? '' : 'invert') . '" class="tmenu">' . "\n";
        $menumanager->atarget = $target;
        $menumanager->showmenu('top');
//.........这里部分代码省略.........
开发者ID:ADDAdev,项目名称:Dolibarr,代码行数:101,代码来源:main.inc.php

示例9: dol_size

                    if ($nboffilesinsubdir > 0) {
                        $htmltooltip .= '<b>' . $langs->trans("ECMNbOfFilesInSubDir") . '</b>: ' . $nboffilesinsubdir;
                    } else {
                        $htmltooltip .= '<b>' . $langs->trans("ECMNbOfSubDir") . '</b>: ' . ($nbofsubdir >= 0 ? $nbofsubdir : $langs->trans("NeedRefresh")) . '<br>';
                    }
                    print $form->textwithpicto('', $htmltooltip, 1, "info");
                    print "</td>";
                    print "</tr></table>\n";
                    print '</div>';
                    //print '<div>&nbsp;</div>';
                    print "</li>\n";
                }
            }
            // Enable jquery handlers on new generated HTML objects
            print '<script type="text/javascript">';
            print 'jQuery(".classfortooltip").tipTip({ maxWidth: "' . dol_size(600, 'width') . 'px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});';
            // TODO Remove this. Is replaced with function as 3rd parameter of fileTree
            print 'jQuery(".fmdirlia").click(function(e) {
            			id=jQuery(this).attr(\'id\').substr(12);
            			jQuery("#formuserfile_section_dir").val(jQuery(this).attr(\'rel\'));
            			jQuery("#formuserfile_section_id").val(id);
    				});';
            print '</script>';
            echo "</ul>\n";
        }
    } else {
        print "PermissionDenied";
    }
}
// This ajax service is called only when a directory $selecteddir is opened but not when closed.
//print '<script language="javascript">';
开发者ID:Albertopf,项目名称:prueba,代码行数:31,代码来源:ajaxdirtree.php

示例10: foreach

// Summary of members by type
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>'.$langs->trans("MembersTypes").'</td>';
print '<td align=right>'.$langs->trans("MembersStatusToValid").'</td>';
print '<td align=right>'.$langs->trans("MenuMembersNotUpToDate").'</td>';
print '<td align=right>'.$langs->trans("MenuMembersUpToDate").'</td>';
print '<td align=right>'.$langs->trans("MembersStatusResiliated").'</td>';
print "</tr>\n";

foreach ($AdherentType as $key => $adhtype)
{
	$var=!$var;
	print "<tr $bc[$var]>";
	print '<td><a href="type.php?rowid='.$adhtype->id.'">'.img_object($langs->trans("ShowType"),"group").' '.$adhtype->getNomUrl(0,dol_size(16)).'</a></td>';
	print '<td align="right">'.(isset($MemberToValidate[$key]) && $MemberToValidate[$key] > 0?$MemberToValidate[$key]:'').' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>';
	print '<td align="right">'.(isset($MembersValidated[$key]) && ($MembersValidated[$key]-$MemberUpToDate[$key] > 0) ? $MembersValidated[$key]-$MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>';
	print '<td align="right">'.(isset($MemberUpToDate[$key]) && $MemberUpToDate[$key] > 0 ? $MemberUpToDate[$key]:'').' '.$staticmember->LibStatut(1,$adhtype->cotisation,gmmktime(),3).'</td>';
	print '<td align="right">'.(isset($MembersResiliated[$key]) && $MembersResiliated[$key]> 0 ?$MembersResiliated[$key]:'').' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).'</td>';
	print "</tr>\n";
}
print '<tr class="liste_total">';
print '<td class="liste_total">'.$langs->trans("Total").'</td>';
print '<td class="liste_total" align="right">'.$SommeA.' '.$staticmember->LibStatut(-1,$adhtype->cotisation,0,3).'</td>';
print '<td class="liste_total" align="right">'.$SommeB.' '.$staticmember->LibStatut(1,$adhtype->cotisation,0,3).'</td>';
print '<td class="liste_total" align="right">'.$SommeC.' '.$staticmember->LibStatut(1,$adhtype->cotisation,gmmktime(),3).'</td>';
print '<td class="liste_total" align="right">'.$SommeD.' '.$staticmember->LibStatut(0,$adhtype->cotisation,0,3).'</td>';
print '</tr>';

print "</table>\n";
开发者ID:remyyounes,项目名称:dolibarr,代码行数:30,代码来源:index.php


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