本文整理汇总了PHP中LBApplication::renderPartial方法的典型用法代码示例。如果您正苦于以下问题:PHP LBApplication::renderPartial方法的具体用法?PHP LBApplication::renderPartial怎么用?PHP LBApplication::renderPartial使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LBApplication
的用法示例。
在下文中一共展示了LBApplication::renderPartial方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionAjaxLoadFormViewPayment
function actionAjaxLoadFormViewPayment()
{
//LBApplication::renderPartial($this, '_form_view_payment', array());
$model = new LbPayment();
$lbInvoiceModel = new LbInvoice();
LBApplication::renderPartial($this, '_form_view_payment', array('model' => $model, 'lbInvoiceModel' => $lbInvoiceModel));
}
示例2: actionAdmin
/**
* Manages all models.
*/
public function actionAdmin()
{
$model = new UserSubscription('search');
$model->unsetAttributes();
// clear any default values
if (isset($_GET['UserSubscription'])) {
$model->attributes = $_GET['UserSubscription'];
}
LBApplication::renderPartial($this, 'admin', array('model' => $model));
}
示例3: action_search_quotation
public function action_search_quotation()
{
$name = $_GET['name'];
LBApplication::renderPartial($this, '_search_quotation', array('name' => $name));
}
示例4: array
echo ' <input type="text" placeholder="Search" value="" style="border-radius: 15px;" onKeyup="search_name_invoice(this.value);">';
// if($canAdd)
// echo '<button id="btn_invoice" class = "btn" onclick="view_oustanding_invoice()">Outstanding Invoice<span class="notification-badge">'.$count_invoice.'</span></button>';
// if($canAddQuotation)
// echo '<button id="btn_quotation" class = "btn" onclick="view_oustanding_quotation()">Outstanding Quotation<span class="notification-badge">'.$count_quotation.'</span></button>';
// if($canAddPayment)
// echo '<button id="btn_graph" class = "btn" onclick="view_chart()">Chart</button>';
echo '</div>';
echo '<div id="lb_quotation" class="btn-toolbar" style="margin-top:2px;">';
echo '<input type="text" placeholder="Search" value="" style="border-radius: 15px;" onKeyup="search_name_quotation(this.value);">';
echo '</div>';
echo '</div>';
echo '</div>';
echo '<div id="lb_dashboard_summary">';
//echo '<div style="width:15%;"></div>';
LBApplication::renderPartial($this, 'dashboard_summary', array('model' => $model));
echo '</div>';
echo '</br>';
echo '<div id="lb_dashboard_submenu">';
echo '<div class="lb_submenu_left">';
echo '<img id="img_invoice" class="lb_img_submenu_left" src=' . Yii::app()->baseUrl . '/images/icons/invoice-green.png onclick="view_oustanding_invoice()"><br/>';
echo '<label style="margin-left:10px;" class="submenu_label" id="btn_invoice" onclick="view_oustanding_invoice()">Invoice</label>  ';
echo '</div>';
echo '<div class="lb_submenu_left">';
echo '<img id="img_quotation" class="lb_img_submenu_left_opacity" onclick="view_oustanding_quotation()" src=' . Yii::app()->baseUrl . '/images/icons/icon_quote3.png ><br/>';
echo '<label class="submenu_label" id="btn_quotation" style="color:black !important;" onclick="view_oustanding_quotation()">Quotations</label>  ';
echo '</div>';
echo '<div class="lb_submenu_left">';
echo '<img id="img_chart" class="lb_img_submenu_left_opacity" src=' . Yii::app()->baseUrl . '/images/icons/chart.png onclick="view_chart()"><br/>';
echo '<label class="submenu_label" id="btn_graph" style="margin-left:16px;" onclick="view_chart()">Charts</label>';
echo '</div>';
示例5: actionajaxUpdateCustomerVI
public function actionajaxUpdateCustomerVI()
{
if ($this->actionAjaxUpdateFieldInvoice()) {
$vendor_id = $_POST['pk'];
$vendor = LbVendorInvoice::model()->findByPk($vendor_id);
if ($vendor) {
// reset address just in case some address of previous customer is already there
$vendor->lb_vd_invoice_supplier_id = $_POST['value'];
$vendor->lb_vd_invoice_supplier_attention_id = 0;
$vendor->save();
// auto assign one of the addresses of this customer to this invoice
$addresses = LbCustomerAddress::model()->getAddresses($vendor->lb_vd_invoice_supplier_id, LbCustomerAddress::LB_QUERY_RETURN_TYPE_MODELS_ARRAY);
$firstAddress = null;
// only proceed if found any address
if (count($addresses)) {
// get first billing address
// echo
// or just first address to auto assign to this invoice
$firstAddress = $addresses[0];
// be default, just use first address
foreach ($addresses as $addr) {
// if billing address, use this instead
if ($addr->lb_customer_address_is_billing) {
$firstAddress = $addr;
break;
// no need to carry on
}
}
// assign address to invoice
$vendor->lb_vd_invoice_supplier_address_id = $firstAddress->lb_record_primary_key;
if ($vendor->save()) {
// return that address in json
// we need to format it nicely.
$address_array = $firstAddress->formatAddressLines();
// print json
LBApplication::renderPartial($this, '//layouts/plain_ajax_content', array('content' => CJSON::encode($address_array)));
return true;
}
// end formatting address to return in json
}
// end if found addresses
}
return true;
}
return false;
}
示例6: array
<?php
/* @var $this LbInvoiceController */
/* @var $model LbInvoice */
LBApplication::renderPartial($this, '_page_header', array('model' => $model));
$this->renderPartial('_form', array('model' => $model));
示例7: array
<?php
/* @var $this DefaultController */
// echo $model->lb_record_primary_key;
$m = $this->module->id;
$canView = BasicPermission::model()->checkModules($m, 'view');
if (!$canView) {
echo "Have no permission to see this record";
return;
}
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" ><h3>Report</h3></div>';
echo '<div class="lb-header-left">';
echo ' ';
echo '</div>';
echo '</div><br>';
$tab = "all";
if (isset($_GET['tab'])) {
$tab = $_GET['tab'];
}
$this->widget('bootstrap.widgets.TbTabs', array('type' => 'tabs', 'encodeLabel' => false, 'tabs' => array(array('id' => 'tab1', 'label' => '<strong>' . Yii::t('lang', 'Aging Report') . '</strong>', 'content' => LBApplication::renderPartial($this, '_form_aging_report', array(), true), 'active' => $tab == "aging_report" || $tab == "all" ? true : false), array('id' => 'tab2', 'label' => '<strong>' . Yii::t('lang', 'Cash Receipt') . '</strong>', 'content' => $this->renderPartial('_form_cash_receipt', array(), true), 'active' => $tab == "cash_receipt" ? true : false), array('id' => 'tab3', 'label' => '<strong>' . Yii::t('lang', 'Invoice Journal') . '</strong>', 'content' => $this->renderPartial('_form_invoice_journal', array(), true), 'active' => $tab == "invoice_journal" ? true : false), array('id' => 'tab4', 'label' => '<strong>' . Yii::t('lang', 'GST Report') . '</strong>', 'content' => $this->renderPartial('_form_gst_report', array(), true), 'active' => $tab == "gst_report" ? true : false), array('id' => 'tab5', 'label' => '<strong>' . Yii::t('lang', 'Sales Report') . '</strong>', 'content' => $this->renderPartial('_form_sale_report', array(), true), 'active' => $tab == "sales_report" ? true : false), array('id' => 'tab6', 'label' => '<strong>' . Yii::t('lang', 'Customer Statements') . '</strong>', 'content' => $this->renderPartial('_form_customer_statements', array(), true), 'active' => $tab == "customer_statement" ? true : false))));
示例8: array
}
?>
<div class="accordion-group">
<div class="accordion-heading" id="view_payment">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#form_view_payment">
<i></i>
<span style="color: #fff;font-size: 20px; font-weight: bold"><?php
echo Yii::t('lang', 'View Payment');
?>
</span>
</a>
</div>
<div id="form_view_payment" class="accordion-body collapse">
<div class="accordion-inner">
<?php
LBApplication::renderPartial($this, '_view_payment', array('lbInvoiceModel' => $lbInvoiceModel, 'model' => $model));
?>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
// Style accodtion icon
//$('a:active i').addClass("icon-minus-sign");
//$('.accordion-body.in.collapse i').addClass("icon-plus-sign");
$('#new_payment i').addClass('icon-minus-sign');
$('#view_payment i').addClass('icon-plus-sign');
$('#form_new_payment').on('show', function () {
$('#new_payment i').removeClass();
示例9: array
echo CHtml::label(Yii::t('lang', 'To'), "search_data_to", array('style' => 'display:inline'));
?>
<?php
$this->widget('ext.rezvan.RDatePicker', array('name' => 'search_data_to', 'value' => $lastMonth_data, 'options' => array('format' => 'dd-mm-yyyy', 'viewformat' => 'dd-mm-yyyy', 'placement' => 'right', 'todayBtn' => true), 'htmlOptions' => array('class' => 'span2', 'placeholder' => 'Date from', 'style' => 'margin-top: 8px;margin-right: 15px;')));
?>
<?php
echo CHtml::button(Yii::t('lang', 'Search'), array('onclick' => 'load_search_view_payment();return false;', 'class' => 'btn', 'style' => 'margin-top:-3px;'));
?>
</div>
<div id="form_view_detail_payment">
<?php
LBApplication::renderPartial($this, '_form_view_payment', array());
?>
</div>
<script>
function load_search_view_payment(){
var customer_id = $('#select_customer').val();
var search_date_from = $('#search_data_from').val();
var search_date_to = $('#search_data_to').val();
$('#form_view_detail_payment').html('<img src="<?php
echo YII::app()->baseUrl;
?>
/images/loading.gif" /> Loading...');
$('#form_view_detail_payment').load('AjaxLoadFormViewPayment',{customer_id:customer_id,search_date_from:search_date_from,search_date_to:search_date_to});
}
示例10: actionAjaxLoadViewEmployeeReport
public function actionAjaxLoadViewEmployeeReport()
{
$model = new LbEmployeePayment();
LBApplication::renderPartial($this, '_form_view_employee_report', array('model' => $model));
}
示例11: actionAjaxFormPayment
public function actionAjaxFormPayment()
{
$paymentModel = new LbPayment();
LBApplication::renderPartial($this, '_form_payment', array('paymentModel' => $paymentModel));
}
示例12: actionAjaxLoadDefaultNote
public function actionAjaxLoadDefaultNote()
{
LBApplication::renderPartial($this, '_form_default_detail_note', array(), false);
}
示例13: array
<?php
/* @var $this DefaultController */
$m = $this->module->id;
$canView = BasicPermission::model()->checkModules($m, 'view');
if (!$canView) {
echo "Have no permission to see this record";
return;
}
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" ><h3>Expenses</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbExpenses::model()->getAdminURLNormalized());
echo ' ';
$this->widget('bootstrap.widgets.TbButtonGroup', array('type' => '', 'buttons' => array(array('label' => '<i class="icon-plus"></i> ' . Yii::t('lang', 'New'), 'items' => array(array('label' => Yii::t('lang', 'New Expenses'), 'url' => LbExpenses::model()->getActionURLNormalized('create')), array('label' => Yii::t('lang', 'New Payment Voucher'), 'url' => LbExpenses::model()->getActionURLNormalized('createPaymentVoucher'))))), 'encodeLabel' => false));
echo '</div>';
echo '</div><br>';
?>
<?php
$this->widget('bootstrap.widgets.TbTabs', array('type' => 'tabs', 'encodeLabel' => false, 'tabs' => array(array('id' => 'tab1', 'label' => '<strong>' . Yii::t('lang', 'Expenses') . '</strong>', 'content' => LBApplication::renderPartial($this, 'view_expenses', array('model' => $model, 'modelPv' => $modelPv), true), 'active' => true), array('id' => 'tab2', 'label' => '<strong>' . Yii::t('lang', 'Payment voucher') . '</strong>', 'content' => $this->renderPartial('view_payment_voucher', array('model' => $model, 'modelPv' => $modelPv), true), 'active' => false))));
示例14: actionAjaxLoadFormViewStatement
public function actionAjaxLoadFormViewStatement()
{
LBApplication::renderPartial($this, '_form_view_customer_statement', array());
}
示例15: array
/* @var $invoiceItemModel LbInvoiceItem */
/* @var $invoiceDiscountModel LbInvoiceItem */
/* @var $invoiceTaxModel LbInvoiceItem */
/* @var $invoiceTotal LbInvoiceTotal */
$m = $this->module->id;
$credit_by = LbCoreEntity::model()->getCoreEntity($m, $model->lb_record_primary_key)->lb_created_by;
$canAdd = BasicPermission::model()->checkModules($m, 'add');
$canView = BasicPermission::model()->checkModules($m, 'view', $credit_by);
$canList = BasicPermission::model()->checkModules($m, 'list', $credit_by);
$canAddPayment = BasicPermission::model()->checkModules('lbPayment', 'add');
$canReport = DefinePermission::model()->checkFunction($m, 'view_report');
if (!$canView) {
echo "Have no permission to see this record";
return;
}
LBApplication::renderPartial($this, '_page_header', array('model' => $model, 'expenses_id' => $expenses_id));
$this->renderPartial('_form', array('model' => $model, 'expenses_id' => $expenses_id));
$this->renderPartial('_form_line_items', array('model' => $model, 'invoiceItemModel' => $invoiceItemModel, 'invoiceDiscountModel' => $invoiceDiscountModel, 'invoiceTaxModel' => $invoiceTaxModel, 'invoiceTotal' => $invoiceTotal, 'expenses_id' => $expenses_id));
//echo '<div style="float: right; z-index: 9999; top: 150px; position: absolute; width: 60px; height: 300px; margin-left: 1020px;
// border-bottom-right-radius: 5px; border-top-right-radius: 5px;
// padding: 10px;">';
//
//if($canAdd)
// echo LBApplication::workspaceLink(
// CHtml::image(Yii::app()->baseUrl . '/images/icons/icon_new.png', 'Share', array('class'=>'lb-side-icon')),
// $model->getCreateURLNormalized(array('group'=>strtolower(LbInvoice::LB_INVOICE_GROUP_INVOICE))),
// array('data-toggle'=>"tooltip", 'title'=>"Create new invoice", 'class'=>'lb-side-link-invoice'));
//if($canAdd)
// echo CHtml::link(CHtml::image(Yii::app()->baseUrl . '/images/icons/icon_copy.png', 'Copy invoice', array('class'=>'lb-side-icon')),'#', array('data-toggle'=>"tooltip",'onclick'=>'onclickCopyInvoice();', 'title'=>"Copy invoice", 'class'=>'lb-side-link-invoice'));
//if($canAddPayment)
// echo LBApplication::workspaceLink(