當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UI::printButton方法代碼示例

本文整理匯總了PHP中UI::printButton方法的典型用法代碼示例。如果您正苦於以下問題:PHP UI::printButton方法的具體用法?PHP UI::printButton怎麽用?PHP UI::printButton使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在UI的用法示例。


在下文中一共展示了UI::printButton方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: tags

$ui->callout()->title("This is just a small example")->uiType("warning")->desc('This example shows only a handful of the UI options. ' . 'See the <a href="http://172.16.8.5/wiki/index.php/UI_Library">UI Library wiki</a> for a detailed list of options. ' . 'Help us build this page by adding more example codes.')->show();
$ui->alert()->title("Is this example working for you?")->uiType("info")->desc('If the example is not working for you, the error is probably because of php short tags (<code>&lt;?</code>). Instead of converting all short tags to <code>&lt;?php</code>, you can enable the <code>short_open_tag</code> property in the php.ini file. <a href="http://stackoverflow.com/q/2185320/1492578" target="_blank">Here\'s how!</a>')->show();
$alertCol->close();
$printCol = $ui->col()->width(6)->open();
$printBox = $ui->box()->icon($ui->icon("print"))->title("Print this page")->tooltip("Printing this page wouldn't print this row. How awesome is that!")->open();
?>
<p>Everything in the view will be printed by default. To ignore something that shouldn't be printed, use the <code>noPrint()</code> property on that <code>Element</code>.</p>
<pre>
$ui->someElem()
   ...
   ->noPrint()
</pre>
<p>To make a Print button, use <code>$ui->printButton()->show()</code>. All other properties of <code>Button</code>s are still valid on the print button. For instance, you can set its id, name, UI type or value.</p>

<?php 
$ui->printButton()->show();
$printBox->close();
$printCol->close();
$topRow->close();
?>
<h2 class="page-header">Different box types</h2><?php 
$boxTypesRow = $ui->row()->open();
$col = $ui->col()->width(4)->open();
$box = $ui->box()->title("Default Box")->open();
?>
<p>This is the default box. It is the simplest box you can create. Use the following to create this:</p>
<pre>
$box = $ui->box()
          ->title("Default Box")
          ->open();
</pre><?php 
開發者ID:pkdism,項目名稱:ISM-MIS,代碼行數:31,代碼來源:example.php

示例2:

		<p>6.Actual Period of Work - <?php 
echo $memo->work_period;
?>
</p>
		<p>7.Date of Submission of final report - <?php 
echo $memo->submission_date;
?>
</p>
		<p>8.Total Consultancy / Testing Charge Rs. - <?php 
echo $memo->testing_charge;
?>
</p>
		<p>9.Consultancy / Testing Charge Received on - <?php 
echo $memo->charge_received_date;
?>
<br>vide ISM cash receipt No./ Bank Credit <?php 
echo $memo->bank_credit;
?>
</p>
		<p>10.No of pages in the bill including enclosures: - <?php 
echo $memo->enclosure;
?>
<br><br></p>
		<p>AR(B&P) section may process strictly as per noticed ISM Consultancy / Testing Rules, Guidelines for the C.I. etc. It may be ensured that all pages of bills and cutting, if any, are countersigned by PCE,Any Change made in the bill may be communicated to PCE in order to keep the countersigned by PCE's office corrected and updated. No bill under this consultancy may be accepted unless it is forwarded through and counterigned by PCE.</p>
		<table width=100%>
			<td align='left' width=50%><br><br><h4>AR(B&P)</h4></td>
			<td align='right'><br><br><p>Professor of Continuing Education</p></td>
		</table>
	<?php 
$ui->printButton()->noPrint()->uiType('primary')->id('print')->show();
$column2->close();
開發者ID:vivek0739,項目名稱:consultancy,代碼行數:31,代碼來源:disbursement_print4.php


注:本文中的UI::printButton方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。