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

PHP nf函数代码示例

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

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



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

示例1: fire

 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     // Check file exists
     if (!File::exists($this->argument('file'))) {
         $this->comment('No coverage file found, skipping.');
         return 0;
     }
     // Open serialised file
     $serialised = File::get($this->argument('file'));
     if (!Str::startsWith($serialised, '<?php')) {
         $coverage = unserialize($serialised);
         // Require PHP object in file
     } else {
         $coverage = (require $this->argument('file'));
     }
     // Check coverage percentage
     $total = $coverage->getReport()->getNumExecutableLines();
     $executed = $coverage->getReport()->getNumExecutedLines();
     $percentage = nf($executed / $total * 100, 2);
     // Compare percentage to threshold
     $threshold = $this->argument('threshold');
     if ($percentage >= $threshold) {
         $this->info("Code Coverage of {$percentage}% is higher than the minimum threshold required {$threshold}%!");
         return;
     }
     // Throw error
     $this->error("Code Coverage of {$percentage}% is below than the minimum threshold required {$threshold}%!");
     return 1;
 }
开发者ID:valorin,项目名称:vest,代码行数:34,代码来源:Coverage.php


示例2: stats_render

function stats_render()
{
    global $DBc;
    $html = "";
    $res = $DBc->sqlQuery("SELECT SUM(sp_money) as all_money, AVG(sp_money) as avg_money, COUNT(*) as playercount FROM app_achievements.stat_players as s, webig.players as p, ring_live.characters as c, nel.user as n WHERE s.sp_char = p.id AND p.cid = c.char_id AND c.user_id = n.uid AND n.privilege=''");
    $html .= "<b>Total characters</b>: " . nf($res[0]['playercount']) . "<p>";
    #$res = $DBc->sqlQuery("SELECT SUM(sp_money) as anz FROM stat_players");
    $html .= "<b>Total money</b>: " . nf($res[0]['all_money']) . "<p>";
    #$res = $DBc->sqlQuery("SELECT AVG(sp_money) as anz FROM stat_players");
    $html .= "<b>Average money</b>: " . nf($res[0]['avg_money']) . "<p>";
    $res = $DBc->sqlQuery("SELECT sp_money FROM app_achievements.stat_players as s, webig.players as p, ring_live.characters as c, nel.user as n WHERE s.sp_char = p.id AND p.cid = c.char_id AND c.user_id = n.uid AND n.privilege='' ORDER by sp_money ASC LIMIT " . floor($res[0]['playercount'] / 2) . ",1");
    $html .= "<b>Mean money</b>: " . nf($res[0]['sp_money']) . "<p>";
    return $html;
}
开发者ID:cls1991,项目名称:ryzomcore,代码行数:14,代码来源:adm_render_stats.php


示例3: admin_custom_room_column

/**
 * admin_custom_room_column()
 * 
 * Display custom column data
 * 
 * @param none
 * @return none
 */
function admin_custom_room_column($column, $post_id)
{
    switch ($column) {
        case 'room_status':
            $status = get_field('room_status', $post_id);
            echo sprintf('<span class="badge %s">%s</span>', sanitize_title_with_dashes($status), $status);
            break;
        case 'room_type':
            echo get_room_type($post_id)->post_title;
            break;
        case 'room_price':
            echo nf(get_field('price', $post_id));
            break;
    }
}
开发者ID:sergiocasquejo,项目名称:bigdream,代码行数:23,代码来源:admin.php


示例4: nf

                                                                                                    <td align="right" style="font-size: 14px;">$<?php 
            echo nf($a_order['shipping_price']);
            ?>
</td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td align="right" style="font-weight: bold; font-size: 14px;">GST (Included)</td>
                                                                                                    <td align="right" style="font-size: 14px;">$<?php 
            echo nf($total->gst_inclusive);
            ?>
</td>
                                                                                                </tr>
                                                                                                <tr>
                                                                                                    <td align="right" style="font-weight: bold; font-size: 14px;">Total</td>
                                                                                                    <td align="right" style="font-size: 14px;">$<?php 
            echo nf($total->total_price_nf - $a_order['discount_amount']);
            ?>
</td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    
                                                                                    <?php 
        }
        ?>

                                                                                </p>
                                                                            
                                                                            <?php 
    }
    ?>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:31,代码来源:order.bak.php


示例5: ach_render_progressbar

function ach_render_progressbar($prog, $val, $width)
{
    $val = max(1, $val);
    $left = floor($width * (100 * ($prog / $val)) / 100);
    $html = "\r\n\t\t<table width='" . $width . "px' cellspacing='0' cellpadding='0' style='border:1px solid #FFFFFF;color:#000000;'>\r\n\t\t\t<tr>\r\n\t\t\t\t<td bgcolor='#66CC00' width='" . $left . "px' align='right'>";
    if ($prog / $val > 0.85) {
        $html .= "&nbsp;" . nf($prog) . " / " . nf($val) . "&nbsp;";
    }
    $html .= "</td>\r\n\t\t\t\t<td align='left' style='color:#FFFFFF;'>";
    if ($prog / $val <= 0.85) {
        $html .= "&nbsp;" . nf($prog) . " / " . nf($val) . "&nbsp;";
    }
    $html .= "</td>\r\n\t\t\t</tr>\r\n\t\t</table>";
    return $html;
}
开发者ID:ryzom,项目名称:ryzomcore,代码行数:15,代码来源:adm_render_csr.php


示例6: nf

                    <div class="col-xs-12 text-center">
                        <div class="huge"><?php 
echo nf((double) get_year_sales());
?>
</div>
                        <div>This Year</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-lg-3 col-md-6">
            <div class="panel panel-violet">
                <div class="panel-heading">
                    <div class="col-xs-12 text-center">
                        <div class="huge"><?php 
echo nf((double) get_last_year_sales());
?>
</div>
                        <div>Last Year</div>
                    </div>
                </div>
            </div>
        </div>
    </div>

	<div class="row">
        <div class="graph-wrapper col-md-12">
            <div id="legend"></div>
    		<canvas id="canvas"></canvas>
        </div>
	</div>
开发者ID:sergiocasquejo,项目名称:bigdream,代码行数:31,代码来源:dashboard.html.php


示例7: the_field

</span></li>
							<li><span>Bed</span><span><?php 
the_field('bed', $data['room_type_ID']);
?>
</span></li>
							<li><span>View</span><span><?php 
the_field('view', $data['room_type_ID']);
?>
</span></li>
							<li>
								<span>Total Room <?php 
echo $data['no_of_room'];
?>
</span>
								<span><?php 
echo nf($data['amount']);
?>
</span>
							</li>
						</ul>
					</div>
					<div class="reservation-room-seleted_total">
						<label>TOTAL</label>
						<span class="reservation-total">
							<?php 
echo format_price($data['amount']);
?>
						</span>
					</div>
					<div class="guest-paid">
						<label>GUEST PAID</label>
开发者ID:sergiocasquejo,项目名称:bigdream,代码行数:31,代码来源:booking-details.html.php


示例8: ach_render_progressbar

function ach_render_progressbar($prog, $val, $width)
{
    $hero = false;
    if ($val == false) {
        $hero = true;
        $val = $prog;
    }
    $val = max(1, $val);
    $left = floor($width * (100 * ($prog / $val)) / 100);
    $left = max(1, $left);
    $html = "<table width='" . ($width + 12) . "px'>\r\n\t\t\t<tr>\r\n\t\t\t\t<td width='10px'></td>\r\n\t\t\t\t<td><table cellpadding='1px' width='" . ($width + 2) . "px'><tr><td bgcolor='#FFFFFF'>\r\n\t\t<table width='" . $width . "px' cellspacing='0' cellpadding='0'>\r\n\t\t\t<tr>\r\n\t\t\t\t<td bgcolor='#66CC00' width='" . $left . "px'><font color='#000000'>";
    if ($hero == false) {
        if ($prog / $val > 0.5) {
            $html .= "&nbsp;" . nf($prog) . " / " . nf($val) . "&nbsp;";
        }
        $html .= "</font></td>\r\n\t\t\t\t\t<td align='left' bgcolor='#00000066'><font color='#FFFFFF'>";
        if ($prog / $val <= 0.5) {
            $html .= "&nbsp;" . nf($prog) . " / " . nf($val) . "&nbsp;";
        }
    } else {
        $html .= "&nbsp;" . nf($prog) . "&nbsp;";
    }
    $html .= "</font></td>\r\n\t\t\t</tr>\r\n\t\t</table></td></tr></table></td>\r\n\t\t\t</tr>\r\n\t\t</table>";
    return $html;
}
开发者ID:ryzom,项目名称:ryzomcore,代码行数:25,代码来源:ach_render_ig.php


示例9: nf

?>
">
											</div>
										</div>
									</div>
								</div>
								<?php 
$totalBanco = $datos["MONBANCO1"] + $datos["MONBANCO2"] + $datos["MONBANCO3"];
?>
								<div class="row">
									<div class="col-md-12">
										<div class="form-group">
											<label class="control-label col-md-10">Total Depositos:</label>
											<div class="col-md-2">
												<p class="form-control-static"><?php 
echo nf($totalBanco);
?>
</p>
											</div>
										</div>
									</div>
								</div>
						</form>





						
					<!-- END EXAMPLE TABLE PORTLET-->
				</div>
开发者ID:flytechsistemas,项目名称:isum,代码行数:31,代码来源:index.php


示例10: handle_hidden_prices

function handle_hidden_prices(&$input)
{
    global $language;
    if (empty($input['tank_inspection'])) {
        unset($input['hidden_tank_inspection_price']);
    }
    if (empty($input['antifreeze'])) {
        unset($input['hidden_antifreeze_price']);
    }
    # voor het moment verberg altijd de tank_inspection_price in de mail
    //unset( $input['hidden_tank_inspection_price'] );
    $fields = array('hidden_mazout_liter_price', 'hidden_mazout_price', 'hidden_antifreeze_price', 'hidden_total_price');
    # replace all ',' to '.'
    foreach ($fields as $field) {
        if (empty($input[$field])) {
            continue;
        }
        # the javascript sometimes passes these values => unset the value
        if (strpos($input[$field], 'undefined') !== false || strpos($input[$field], 'false') !== false) {
            error_log('undefined / false value on field ' . $field . ' value = ' . $input[$field]);
            unset($input[$field]);
            continue;
        }
        $input[$field] = str_replace(',', '.', $input[$field]);
        $input[$field] = str_replace('€', '', $input[$field]);
        if (!is_numeric($input[$field])) {
            unset($input[$field]);
            continue;
        }
        $input[$field] = (double) $input[$field];
        if ($field == 'hidden_mazout_liter_price') {
            $btw_incl = $input[$field];
            $btw_excl = $input[$field] / 1.21;
            $btw_incl_indication = $language->language == 'nl' ? 'incl. BTW' : 'TVAC';
            $btw_excl_indication = $language->language == 'nl' ? 'excl. BTW' : 'hors TVA';
            $input[$field] = '€ ' . nf($btw_incl, 4) . '/l ' . $btw_incl_indication . ' (' . '€ ' . nf($btw_excl, 4) . '/l ' . $btw_excl_indication . ')';
        } else {
            if ($field == 'hidden_mazout_price') {
                $btw_incl_indication = $language->language == 'nl' ? 'incl. BTW' : 'TVAC';
                # indien antivries -> toon totaalbedrag mazout+antivries
                if (!empty($input['antifreeze'])) {
                    $input['hidden_total_price'] = str_replace('€', '€ ', $input['hidden_total_price']);
                    $input[$field] = $input['hidden_total_price'] . ' ' . $btw_incl_indication;
                } else {
                    $input[$field] = str_replace('.', ',', $input[$field]);
                    $input[$field] = '€ ' . number_format($input[$field], 2, ',', '') . ' ' . $btw_incl_indication;
                }
            } else {
                $input[$field] = '€ ' . nf($input[$field], 2);
            }
        }
    }
}
开发者ID:bartcornelis,项目名称:comfortenergy,代码行数:53,代码来源:customer_registration_mail.php


示例11: nf

     $pdf->SetFillColor($tab_modele_pdf["couleur_moy_general1"][$classe_id], $tab_modele_pdf["couleur_moy_general2"][$classe_id], $tab_modele_pdf["couleur_moy_general3"][$classe_id]);
     //if($total_coef_en_calcul != 0 and $affiche_moyenne_maxi_general[$classe_id] === '1' ){
     if ($total_coef_en_calcul != 0 and $tab_modele_pdf["affiche_moyenne_maxi_general"][$classe_id] === '1') {
         $moyenne_max = $total_moyenne_max_en_calcul / $total_coef_en_calcul;
     } else {
         $moyenne_max = '-';
     }
     if ($moyenne_max != '-') {
         //=========================
         // MODIF: boireaus 20080102
         // On remplace la moyenne mal calculée au sein de la page par la moyenne calculée dans /lib/calcul_moy_gen.inc.php
         //$moyenne_max=$tab_moy_max_classe[$classe_id][$id_periode];
         $moyenne_max = $tab_moy_max_classe[$classe_id][$id_periode];
         //$pdf->Cell($largeur_d_une_moyenne[$classe_id], $hauteur_entete_moyenne_general[$classe_id], present_nombre($moyenne_max, $arrondie_choix[$classe_id], $nb_chiffre_virgule[$classe_id], $chiffre_avec_zero[$classe_id]),1,0,'C', $couleur_moy_general[$classe_id]);
         //$pdf->Cell($largeur_d_une_moyenne[$classe_id], $hauteur_entete_moyenne_general[$classe_id], $moyenne_max,1,0,'C', $couleur_moy_general[$classe_id]);
         $pdf->Cell($tab_modele_pdf["largeur_d_une_moyenne"][$classe_id], $tab_modele_pdf["hauteur_entete_moyenne_general"][$classe_id], nf($moyenne_max), 1, 0, 'C', $tab_modele_pdf["couleur_moy_general"][$classe_id]);
         //=========================
     } else {
         //$pdf->Cell($largeur_d_une_moyenne[$classe_id], $hauteur_entete_moyenne_general[$classe_id], '-',1,0,'C', $couleur_moy_general[$classe_id]);
         $pdf->Cell($tab_modele_pdf["largeur_d_une_moyenne"][$classe_id], $tab_modele_pdf["hauteur_entete_moyenne_general"][$classe_id], '-', 1, 0, 'C', $tab_modele_pdf["couleur_moy_general"][$classe_id]);
     }
     //$largeur_utilise = $largeur_utilise + $largeur_d_une_moyenne[$classe_id];
     $largeur_utilise = $largeur_utilise + $tab_modele_pdf["largeur_d_une_moyenne"][$classe_id];
 }
 // rang de l'élève
 //if($active_rang[$classe_id]==='1' and $ordre_moyenne[$cpt_ordre] === 'rang') {
 if ($tab_modele_pdf["active_rang"][$classe_id] === '1' and $ordre_moyenne[$cpt_ordre] === 'rang') {
     $pdf->SetXY($X_note_moy_app + $largeur_utilise, $Y_note_moy_app);
     $pdf->SetFont('DejaVu', '', 8);
     //$pdf->SetFillColor($couleur_moy_general1[$classe_id], $couleur_moy_general2[$classe_id], $couleur_moy_general3[$classe_id]);
     $pdf->SetFillColor($tab_modele_pdf["couleur_moy_general1"][$classe_id], $tab_modele_pdf["couleur_moy_general2"][$classe_id], $tab_modele_pdf["couleur_moy_general3"][$classe_id]);
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:bulletin_pdf_avec_modele_classe.php


示例12: tt

                            <p><?php 
echo tt('Frost free');
?>
</p>
                        </div>

                        <div class="product_card_content">
                            <p><?php 
echo tt('Price from 2000L');
?>
 (<?php 
echo $items['price']['last_modified'];
?>
)</p>
                            <p class="bold card_item">&euro; <?php 
echo nf($items['price']['price_standaard'], 4);
?>
/l</p>
                        </div>
     
                        <div class="product_card_content card_button">
                            <a class="button red" href="<?php 
echo $calculator_link;
?>
?product=mazout-standard"><?php 
echo tt('Calculate the price');
?>
</a>
                        </div>
                    </div>  
                </div>
开发者ID:bartcornelis,项目名称:comfortenergy,代码行数:31,代码来源:a20_31_table_mobile.tpl.php


示例13: zone_browser

function zone_browser($like = NULL, $highlight = NULL)
{
    global $zone_group_size, $soa_table_name, $rr_table_name, $use_pgsql;
    echo "<DIV align=center>\n";
    if ($zone_group_size == 0) {
        $res = sql_query(soa_select() . " ORDER BY origin") or ErrSQL("Error loading SOA record(s).");
    } else {
        /* Get current offset and total number of zones */
        $page = getpostvar('page');
        $total = sql_count("SELECT COUNT(*) FROM {$soa_table_name} {$like}", "number of SOA records");
        $offset = offset_select($page, $total, $zone_group_size, "action=browse");
        $query = soa_select() . " {$like} ORDER BY origin ";
        if ($use_pgsql) {
            $query .= "LIMIT {$zone_group_size} OFFSET {$offset}";
        } else {
            $query .= "LIMIT {$offset},{$zone_group_size}";
        }
        $res = sql_query($query) or ErrSQL("Error loading SOA record(s).");
    }
    ?>
<TABLE class=browserBox cellspacing=0>

<?php 
    while ($soa = sql_fetch_array($res)) {
        $record_count = sql_count("SELECT COUNT(*) FROM {$rr_table_name} WHERE zone={$soa['id']}", "number of resource records in zone {$soa['id']}");
        $output_origin = $soa['origin'];
        if ($highlight) {
            $output_origin = str_replace($highlight, "<span class=highlight>{$highlight}</span>", $output_origin);
        }
        ?>
	<TR bgcolor="<?php 
        echo bgcolor();
        ?>
">
		<TD class=browserCellLeft><A href="<?php 
        echo $_SERVER['PHP_SELF'];
        ?>
?zone=<?php 
        echo $soa['id'];
        ?>
"
			title="Edit zone <?php 
        echo $soa['id'];
        ?>
"><?php 
        echo $output_origin;
        ?>
</A>
		<TD class=browserCellRight><?php 
        echo nf($record_count);
        ?>
 record(s)
<?php 
    }
    echo "</TABLE>\n";
    echo "</DIV>\n";
}
开发者ID:evmuc,项目名称:mydns-ng,代码行数:57,代码来源:admin.php


示例14: nf

echo nf('2000', 0);
?>
L</th>
                </tr>
            <?  foreach ( $prices as $record ){ ?>
                    <tr>
                        <td class="bold"><?php 
echo htmlentities($record['name'], ENT_COMPAT, 'UTF-8');
?>
</td>
                        <td>&euro; <?php 
echo htmlentities(nf($record['official_1000l_price'], 4), ENT_COMPAT, 'UTF-8');
?>
</td>
                        <td>&euro; <?php 
echo htmlentities(nf($record['official_2000l_price'], 4), ENT_COMPAT, 'UTF-8');
?>
</td>
                    </tr>
            <?  } ?>
            </table>

            <div class="table_bottom">
                <p><?php 
echo tt('Prices of');
?>
 <?php 
echo $fd($prices[0]['modified']);
?>
.</p>
                <a class="button red" href="/<?php 
开发者ID:bartcornelis,项目名称:comfortenergy,代码行数:31,代码来源:a76_50_content.tpl.php


示例15: Amount

                                                                    <!--<td class="order_price">&nbsp;</td>-->
                                                                </tr>
                                                                <tr class="order_total">
                                                                    <td class="order_invisible" colspan="5" style="background-color:white; border:0;">&nbsp;</td>
                                                                    <td class="order_text"><strong>GST Amount (Included)</strong></td>
                                                                    <td class="center order_price" style="text-align:right">$<span class="gst"><?php 
    echo nf($gst);
    ?>
</span></td>
                                                                    <!--<td class="order_price">&nbsp;</td>-->
                                                                </tr>
                                                                <tr class="order_total">
                                                                    <td class="order_invisible" colspan="5" style="background-color:white; border:0;">&nbsp;</td>
                                                                    <td class="order_dark_text"><strong>Current Grand Total</strong></td>
                                                                    <td class="center order_dark_price" style="text-align:right"><strong class="grand_total_box">$<span class="grand_total"><?php 
    echo nf($total - $order->discount_amount + $order->shipping_price + $gst);
    ?>
</span></strong></td>
                                                                    <!--<td class="order_dark_price">&nbsp;</td>-->
                                                                </tr>

                                                        <?php 
} else {
    ?>
                                                            <tr><td colspan="9">There are no items.</td></tr>
                                                        <?php 
}
?>
                                                    </tbody>
                                                </table>
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:30,代码来源:update.php


示例16: getTopCreators2

function getTopCreators2($dbw, $cutoff, $start)
{
    global $table, $join, $where, $cond, $andcond;
    $result = "<ol>";
    $sql = "select nap_page from newarticlepatrol left join page on nap_page = page_id where page_namespace = 0\n\t\t\tand nap_timestamp > '{$cutoff}' and nap_timestamp < '{$start}'; ";
    wfDebug("Dashboard top creators: {$sql}\n");
    debugMsg("getting nap {$nap} ");
    $res = $dbw->query($sql, __METHOD__);
    $pages = array();
    $revisions = array();
    while ($row = $dbw->fetchObject($res)) {
        $pages[] = $row->nap_page;
    }
    debugMsg("getting min revisions on pages " . sizeof($pages) . " pages ");
    $count = 0;
    foreach ($pages as $page_id) {
        $revisions[$page_id] = selectField($table, array("min(rev_id)"), array("rev_page" => $page_id));
        $count++;
        if ($count % 100 == 0) {
            debugMsg("done {$count}");
        }
    }
    $users = array();
    debugMsg("getting users on newly created pages " . sizeof($revisions) . " revisions ");
    $count = 0;
    foreach ($revisions as $page_id => $rev_id) {
        if (empty($rev_id)) {
            #echo "<!---uh oh: {$page_id} has no min rev!-->";
            continue;
        }
        $u = selectField($dbw, "select rev_user_text from {$table} where rev_id={$rev_id}");
        if (!isset($users[$u])) {
            $users[$u] = 1;
        } else {
            $users[$u]++;
        }
        $count++;
        if ($count % 100 == 0) {
            debugMsg("done {$count}");
        }
    }
    debugMsg("sorting " . sizeof($users) . " users");
    asort($users, SORT_NUMERIC);
    $users = array_reverse($users);
    array_splice($users, 20);
    $yy = 0;
    debugMsg("outputting all of this now " . sizeof($users) . " users");
    foreach ($users as $u => $c) {
        $x = User::newFromName($u);
        $c = nf($c);
        if (!$x) {
            $result .= "<li>{$u} - {$c} new articles created</li>\n";
        } else {
            $result .= "<li> " . getUserLink($x) . " - {$c} new articles created" . getUserToolLinks($x) . "</li>\n";
        }
        $yy++;
        if ($yy == 20) {
            break;
        }
    }
    $result .= "</ol>";
    return $result;
}
开发者ID:biribogos,项目名称:wikihow-src,代码行数:63,代码来源:update_dashboard.php


示例17: success_booking_details

function success_booking_details()
{
    if (is_empty_booking()) {
        empty_booking();
        redirect_js_script(get_bloginfo('url'));
    }
    $d = get_booking_by_id(booking_data('booking_ID'));
    $room_price = $d['room_price'];
    $nights = $d['no_of_night'];
    $output = '';
    $output .= '<div id="successBookingDetails">';
    $output .= '<a href="#" class="pull-right print-booking"><i class="fa fa-print"></i></a>';
    $output .= '<div  id="bookingDetailContent">';
    $output .= '<div class="success-booking-details">';
    $output .= '<div class="row">';
    $output .= '<div class="col-md-4 col-lg-3">';
    $output .= '<div class="reservation-sidebar">';
    $output .= '<div class="reservation-date">';
    $output .= '<h2 class="reservation-heading">Dates</h2>';
    $output .= '<ul>';
    $output .= '<li>';
    $output .= '<span>Check-In</span>';
    $output .= '<span>' . format_date($d['date_in']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Check-Out</span>';
    $output .= '<span>' . format_date($d['date_out']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Total Nights</span>';
    $output .= '<span>' . count_nights($d['date_in'], $d['date_out']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Total Guests</span>';
    $output .= '<span>' . $d['no_of_adult'] . ' Adults ' . $d['no_of_child'] . ' Children</span>';
    $output .= '</li>';
    $output .= '</ul>';
    $output .= '</div>';
    $output .= '<div class="reservation-room-selected">';
    $output .= '<h2 class="reservation-heading">Selected Room</h2>';
    $output .= '<div class="reservation-room-seleted_item">';
    $output .= '<div class="reservation-room-seleted_name has-package">';
    $output .= '<h2><a>' . get_the_title($d['room_type_ID']) . '</a></h2>';
    $output .= '</div>';
    $output .= '<ul>';
    $output .= '<li>';
    $output .= '<span>Max</span>';
    $output .= '<span>' . get_field('max_person', $d['room_type_ID']) . ' Person(s)</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Size</span>';
    $output .= '<span>' . get_field('room_size', $d['room_type_ID']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Bed</span>';
    $output .= '<span>' . get_field('bed', $d['room_type_ID']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Occupancy</span>';
    $output .= '<span>' . get_field('occupancy', $d['room_type_ID']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Room Price</span>';
    $output .= '<span>' . nf($room_price) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Total Nights</span>';
    $output .= '<span>x ' . count_nights($d['date_in'], $d['date_out']) . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Total Room</span>';
    $output .= '<span>x ' . booking_data('no_of_room') . '</span>';
    $output .= '</li>';
    $output .= '</ul>';
    $output .= '</div>';
    $output .= '<div class="reservation-room-seleted_total">';
    $output .= '<label>TOTAL</label>';
    $output .= '<span class="reservation-total">' . format_price($d['amount'], false) . '</span>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '</div>';
    $output .= '<div class="col-md-8 col-lg-9">';
    $output .= '<div class="reservation_content">';
    $output .= '<div class="reservation-billing-detail success-details">';
    $output .= '<h4>BILLING DETAILS</h4>';
    $output .= '<ul>';
    $output .= '<li>';
    $output .= '<span>Booking #</span>';
    $output .= '<span>' . $d['booking_no'] . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Country</span>';
    $output .= '<span>' . $d['country'] . '</span>';
    $output .= '</li>';
    $output .= '<li>';
    $output .= '<span>Full Name</span>';
    $output .= '<span>' . $d['salutation'] . ' ' . $d['first_name'] . ' ' . $d['middle_name'] . ' ' . $d['last_name'] . '</span>';
    $output .= '</li>';
    $output .= '<li>';
//.........这里部分代码省略.........
开发者ID:sergiocasquejo,项目名称:bigdream,代码行数:101,代码来源:shortcodes.php


示例18: nf

                                            <div class="data">
                                                <span class="number"><?php 
echo $items['orders'];
?>
</span>
                                                orders
                                            </div>
                                            <span class="date"><?php 
echo $items['type'];
?>
</span>
                                        </div>
                                        <div class="span3 stat last">
                                            <div class="data">
                                                <span class="number">$<?php 
echo nf($items['sales']);
?>
</span>
                                                sales
                                            </div>
                                            <span class="date"><?php 
echo $items['type'];
?>
</span>
                                        </div>
                                    </div>
                                </div>
                                <!-- end upper main stats -->
                                
                                <div id="pad-wrapper">
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:30,代码来源:dashboard.php


示例19: mb_strlen

						$cpt_tmp++;
					}
				}
			//}
		}

		if(($legendy[2]=='Toutes_les_périodes')&&(isset($_GET['affiche_moy_annuelle']))){
			if($cpt_tmp>0){
				$mgen_annuelle=round($total_tmp/$cpt_tmp,1);
			}
			else{
				$mgen_annuelle="-";
			}

			$ytmp=$ytmp+15;
			$largeur_texte = mb_strlen(nf($mgen_annuelle)) * ImageFontWidth($taille_police);
            imagettftext($img, $taille_police*$rapport_imageString_imagettftext, 0, $x1+round($largeurMat/2)+round((($x2-$x1)-$largeur_texte)/2), $ytmp+10, $couleureleve[$nb_series_bis], dirname(__FILE__)."/../fpdf/font/unifont/DejaVuSansCondensed.ttf", $mgen_annuelle);
		}
	}

	//===================================================================================




	//=======================================================================
	// On positionne les noms d'élèves en haut de l'image: y=5
	// Pour en bas, ce serait: y=$hauteur+$hauteurMoy+25


	if($legendy[2]=='Toutes_les_périodes'){
开发者ID:rhertzog,项目名称:lcs,代码行数:31,代码来源:draw_graphe.php


示例20: bulletin_classe


//.........这里部分代码省略.........
                        $style_bordure_cell = "border: 1px solid black";
                    } else {
                        $style_bordure_cell = "border: 1px solid black; border-bottom: 1px dashed black";
                    }
                } elseif ($nb == $periode2) {
                    $style_bordure_cell = "border: 1px solid black; border-top: 1px dashed black;";
                } else {
                    $style_bordure_cell = "border: 1px solid black; border-top: 1px dashed black; border-bottom: 1px dashed black;";
                }
                //=========================
                if ($avec_rapport_effectif == "y") {
                    //$sql="SELECT 1=1 FROM j_eleves_classes jec,
                    $sql = "SELECT DISTINCT jeg.login FROM j_eleves_classes jec,\n\t\t\t\t\t\t\t\t\tj_eleves_groupes jeg,\n\t\t\t\t\t\t\t\t\tj_groupes_classes jgc\n\t\t\t\t\t\t\t\tWHERE jec.id_classe='{$id_classe}' AND\n\t\t\t\t\t\t\t\t\t\tjec.periode='{$nb}' AND\n\t\t\t\t\t\t\t\t\t\tjec.periode=jeg.periode AND\n\t\t\t\t\t\t\t\t\t\tjec.login=jeg.login AND\n\t\t\t\t\t\t\t\t\t\tjeg.id_groupe=jgc.id_groupe AND\n\t\t\t\t\t\t\t\t\t\tjeg.id_groupe='" . $current_group["id"] . "';";
                    //$sql0=$sql;
                    $res_effectif = mysqli_query($GLOBALS["mysqli"], $sql);
                    $effectif_grp_classe = mysqli_num_rows($res_effectif);
                    $sql = "SELECT 1=1 FROM j_eleves_groupes jeg\n\t\t\t\t\t\t\t\tWHERE jeg.periode='{$nb}' AND\n\t\t\t\t\t\t\t\t\t\tjeg.id_groupe='" . $current_group["id"] . "';";
                    $res_effectif_tot = mysqli_query($GLOBALS["mysqli"], $sql);
                    $effectif_grp_total = mysqli_num_rows($res_effectif_tot);
                    echo "<td width=\"{$larg_col2}\" align=\"center\" class='bull_simpl' style='{$style_bordure_cell}'>";
                    //echo "$sql0<br /><br />";
                    //echo "$sql<br /><br />";
                    if ($effectif_grp_classe == $effectif_grp_total) {
                        echo $effectif_grp_classe . '&nbsp;él.';
                    } else {
                        echo "{$effectif_grp_classe}&nbsp;él. /{$effectif_grp_total}";
                    }
                    echo "</td>\n";
                }
                if ($affiche_colonne_moy_classe != 'n') {
                    echo "<td width=\"{$larg_col2}\" align=\"center\" class='bull_simpl' style='{$style_bordure_cell}'>\n";
                    // 20121209
                    //$note=number_format($current_classe_matiere_moyenne[$nb],1, ',', ' ');
                    $note = nf($current_classe_matiere_moyenne[$nb]);
                    if ($note != "0,0") {
                        if ($avec_moy_min_max_classe == 'y') {
                            echo "<span title=\"Moyenne minimale sur l'enseignement\">" . nf($moy_min_classe_grp[$nb]) . "</span> ";
                        }
                        echo "<span style='font-weight:bold' title=\"Moyenne du groupe sur l'enseignement\">" . $note . "</span>";
                        if ($avec_moy_min_max_classe == 'y') {
                            echo " &l 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP nf_get_object_meta_value函数代码示例发布时间:2022-05-15
下一篇:
PHP nextgen_esc_url函数代码示例发布时间: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