示例#1
0
/* @var $this LbCustomerController */
/* @var $model LbCustomer */
/* @var $customer_addresses array of LbCustomerAddress models */
/* @var $customer_contacts ARRAY of LbCustomerContact models */
$m = $this->module->id;
$canAdd = BasicPermission::model()->checkModules($m, 'add');
$canView = BasicPermission::model()->checkModules($m, 'view');
$canAddInvoice = BasicPermission::model()->checkModules(LbInvoice::model()->getEntityType(), 'add');
if (!$canView) {
    echo "Have no permission to see this record";
    return;
}
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" style="margin-left:-11px;"><h3>' . Yii::t('lang', 'Customers') . '</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton($model->getHomeURLNormalized());
echo '&nbsp;';
// new
if ($canAdd || $canAddInvoice) {
    LBApplicationUI::newButtonGroup(Yii::t('lang', 'New'), array('buttons' => array(array('items' => array(array('label' => Yii::t('lang', 'New Address'), 'url' => LbCustomerAddress::model()->getCreateURLNormalized(array('customer_id' => $model->lb_record_primary_key)), 'visible' => $canAdd), array('label' => Yii::t('lang', 'New Contact'), 'url' => LbCustomerContact::model()->getCreateURLNormalized(array('customer_id' => $model->lb_record_primary_key)), 'visible' => $canAdd), array('label' => Yii::t('lang', 'New Invoice'), 'url' => '#', 'visible' => $canAddInvoice), '---', array('label' => Yii::t('lang', 'New Customer'), 'url' => $model->getCreateURLNormalized(), 'visible' => $canAdd))))));
}
echo '</div>';
echo '</div>';
?>

<div style="width:30%;margin-top:19px;margin-bottom:11px;"><span style="font-size: 16px;"><b><?php 
echo $model->lb_customer_name;
?>
</b></span></div>

<?php 
示例#2
0
.qq-upload-button {
    background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
    border-bottom: medium none;
    color: #0088CC;
    display: block;
    padding: 7px 0;
    left: 460px;
    text-align: center;
}
</style>
<?php 
// echo $model->lb_record_primary_key;
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" ><h3>Bills</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbVendor::model()->getActionURLNormalized('dashboard'));
echo '&nbsp;';
$this->widget('bootstrap.widgets.TbButtonGroup', array('type' => '', 'buttons' => array(array('label' => '<i class="icon-th-large"></i> ' . Yii::t('lang', 'New'), 'items' => array(array('label' => Yii::t('lang', 'Print PDF'), 'url' => '#'), array('label' => Yii::t('lang', 'Get Public URL'), 'url' => '#', 'linkOptions' => array()), array('label' => Yii::t('lang', 'Enter Payment'), 'url' => LbVendor::model()->getActionModuleURL('vendor', 'addPayment'), 'linkOptions' => array())))), 'encodeLabel' => false));
echo '</div>';
echo '</div><br>';
?>


<?php 
/* @var $this LbInvoiceController */
/* @var $model LbInvoice */
/* @var $ownCompany LbCustomer */
// header container div
echo '<div id="invoice-header-container" class="container-header" style="position: relative">';
//echo $model->lb_vendor_company_id;
echo '<div id="logo_wrapper" style="overflow:hidden;text-align: center;">';
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
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 '&nbsp;';
$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 '&nbsp;';
if ($id) {
    $this->widget('bootstrap.widgets.TbButton', array('label' => 'Print PDF', 'htmlOptions' => array('onclick' => 'print_PDF_PV()')));
}
echo '</div>';
echo '</div><br>';
echo '<div class = "header">';
if ($id) {
    echo '<div style="overflow:hidden; border-top: 1px solid #fff;margin-top: 5px; padding-bottom:5px;margin-bottom:5px;">';
    echo '</div>';
} else {
    echo '<h2>New Payment Voucher</h2>';
}
echo '</div>';
$this->renderPartial('_form_pv', array('model' => $model, 'modelPV' => $modelPv));
$this->renderPartial('_form_line_expenses', array('model' => $model, 'modelPV' => $modelPv));
?>
<script type="text/javascript">
<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" style="margin-left:-11px;"><h4>Expenses</h4></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbExpenses::model()->getActionURLNormalized('paymentVoucher'));
echo '&nbsp;';
$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 '&nbsp;';
if ($id) {
    $this->widget('bootstrap.widgets.TbButton', array('label' => 'Print PDF', 'htmlOptions' => array('onclick' => 'print_PDF_PV()')));
}
echo '</div>';
echo '</div><br>';
echo '<div class = "header" style="margin-bottom:10px">';
if ($id) {
    echo '<div style="overflow:hidden; border-top: 1px solid #fff;margin-top: 5px; padding-bottom:5px;margin-bottom:5px;">';
    echo '</div>';
} else {
    echo '<span style="font-size:16px;"><b>New Payment Voucher</b></span>';
}
echo '</div>';
$this->renderPartial('_form_pv', array('model' => $model, 'modelPV' => $modelPv));
$this->renderPartial('_form_line_expenses', array('model' => $model, 'modelPV' => $modelPv));
?>
<script type="text/javascript">
示例#5
0
<?php

$canAdd = BasicPermission::model()->checkModules('lbPayment', 'add');
$customer_arr = LbCustomer::model()->getCompanies($sort = 'lb_customer_name ASC', LbCustomer::LB_QUERY_RETURN_TYPE_DROPDOWN_ARRAY);
$option_customer = array(0 => 'Choose Customer') + $customer_arr;
?>
<style>
    .accordion-heading{
        background: rgb(91,183,91);
    }
</style>
<?php 
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" style="margin-left:-11px;"><h3>' . Yii::t('lang', 'Payment') . '</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbInvoice::model()->getAdminURLNormalized());
echo '&nbsp;';
echo '</div>';
echo '</div>';
echo '<div style="clear: both;overflow:hidden"><Br>';
?>
<div style="overflow: hidden;">
    <div class="accordion" id="accordion2">
        <?php 
if ($canAdd) {
    ?>
        <div class="accordion-group">
            <div class="accordion-heading" id="new_payment">
                <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#form_new_payment">
                    <i></i>
                    <span style="color: #fff;font-size: 20px; font-weight: bold"><?php 
示例#6
0
<?php

/* @var $this LbExpensesController */
/* @var $model LbExpenses */
/* @var $form CActiveForm */
$valuePv = false;
if (isset($_REQUEST['idPV'])) {
    $valuePv = $_REQUEST['idPV'];
}
echo '<input type="hidden" value="' . $valuePv . '"  id="idPv">';
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" style="margin-left:-11px;"><h4>Expenses</h4></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbExpenses::model()->getActionURLNormalized('expenses'));
echo '&nbsp;';
$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>';
?>

<div class="form">

<?php 
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('id' => 'lb-expenses-form', 'enableAjaxValidation' => true, 'type' => 'horizontal', 'htmlOptions' => array('enctype' => 'multipart/form-data', 'onsubmit' => "validation();")));
?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	
     
        
示例#7
0
$m = $this->module->id;
$canAdd = BasicPermission::model()->checkModules($m, 'add');
$canList = BasicPermission::model()->checkModules($m, 'list');
$this->breadcrumbs = array('Lb Contracts' => array('index'), 'Manage');
//$this->menu=array(
//	array('label'=>'List LbContracts', 'url'=>array('index')),
//	array('label'=>'Create LbContracts', 'url'=>array('create')),
//);
Yii::app()->clientScript->registerScript('search', "\n\$('.search-button').click(function(){\n\t\$('.search-form').toggle();\n\treturn false;\n});\n\$('.search-form form').submit(function(){\n\t\$('#lb-contracts-grid').yiiGridView('update', {\n\t\tdata: \$(this).serialize()\n\t});\n\treturn false;\n});\n");
?>

<?php 
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" ><h3>Contracts</h3></div>';
echo '<div class="lb-header-left" style="width:400px;">';
LBApplicationUI::backButton(LbInvoice::model()->getActionURLNormalized("dashboard"));
echo '&nbsp;';
$this->widget('bootstrap.widgets.TbButtonGroup', array('type' => '', 'buttons' => array(array('label' => '<i class="icon-plus"></i> New Contract', 'url' => $this->createUrl('create'))), 'encodeLabel' => false));
echo '</div>';
echo '</div>';
echo '<br>';
?>
<div style="width: 100%;text-align: center;">
<?php 
$this->widget('bootstrap.widgets.TbButtonGroup', array('buttons' => array(array('label' => 'Active', 'url' => $this->createUrl('admin')), array('label' => 'No Active', 'url' => $this->createUrl('admin', array('status' => LbContracts::LB_CONTRACT_STATUS_NO_ACTIVE))), array('label' => 'Has Renew', 'url' => $this->createUrl('admin', array('status' => LbContracts::LB_CONTRACT_STATUS_HAS_RENEWED))), array('label' => 'End Contract', 'url' => $this->createUrl('admin', array('status' => LbContracts::LB_CONTRACT_STATUS_END))))));
?>
</div>
<?php 
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'lb-contracts-grid', 'dataProvider' => $model->getContract($status, 20, $canList), 'filter' => $model, 'columns' => array(array('header' => 'Contract No', 'name' => 'lb_contract_no', 'type' => 'raw', 'value' => '($data->lb_contract_no ?
					LBApplication::workspaceLink($data->lb_contract_no, $data->getViewURL($data->customer->lb_customer_name) )
					:LBApplication::workspaceLink("No customer", $data->getViewURL("No customer") )
示例#8
0
//$this->breadcrumbs=array(
//	'Lb Contracts'=>array('index'),
//	$model->lb_record_primary_key,
//);
//$this->menu=array(
//	array('label'=>'List LbContracts', 'url'=>array('index')),
//	array('label'=>'Create LbContracts', 'url'=>array('create')),
//	array('label'=>'Update LbContracts', 'url'=>array('update', 'id'=>$model->lb_record_primary_key)),
//	array('label'=>'Delete LbContracts', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->lb_record_primary_key),'confirm'=>'Are you sure you want to delete this item?')),
//	array('label'=>'Manage LbContracts', 'url'=>array('admin')),
//);
//
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" ><h3>Contracts</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton(LbContracts::model()->getActionURLNormalized("dashboard"));
echo '&nbsp;';
$this->widget('bootstrap.widgets.TbButtonGroup', array('type' => '', 'buttons' => array(array('label' => '<i class="icon-plus"></i> ' . Yii::t('lang', 'New Contract'), 'url' => $this->createUrl('create'))), 'encodeLabel' => false));
echo '</div>';
echo '</div><Br>';
?>
<div style="overflow: hidden; clear: both;">
    <div style="float: left;width: 300px;"><h3 style="line-height:10px;">Contract: <?php 
echo $model->lb_contract_no;
?>
</h3></div>
   <div style="text-align: right;"><h3 style="line-height:10px;"><?php 
echo $model->customer->lb_customer_name;
?>
</h3></div>
</div>
示例#9
0
<?php

echo '<div class="btn-toolbar">';
LBApplicationUI::backButton(Yii::app()->createUrl('configuration/index'), false);
echo '</div>';
?>
 

<div id ="item" width=100px>
        
     <input hidden="true" class="nameList" value = <?php 
echo $list_name;
?>
 ></input>
    
    <?php 
//($model->customerAddress->lb_customer_address_line_1!=NULL) ? $model->customerAddress->lb_customer_address_line_1.'. ' : ''
$this->widget('bootstrap.widgets.TbGridView', array('id' => 'usergrid', 'itemsCssClass' => 'table-bordered items', 'dataProvider' => $list, 'columns' => array(array('class' => 'editable.EditableColumn', 'name' => 'system_list_item_id', 'headerHtmlOptions' => array('style' => 'width: 110px'), 'editable' => array('apply' => '$data->system_list_item_id', 'placement' => 'right')), array('class' => 'editable.EditableColumn', 'name' => 'system_list_item_name', 'headerHtmlOptions' => array('style' => 'width: 110px'), 'editable' => array('apply' => '$data->system_list_item_name', 'url' => Yii::app()->createAbsoluteUrl('configuration/ajaxUpdateItem'), 'placement' => 'right')), array('class' => 'CButtonColumn', 'template' => "{delete}", 'buttons' => array('delete' => array('url' => 'Yii::app()->createUrl("configuration/deleteItem", array("id"=>$data->system_list_item_id,"list"=>$data->system_list_code))'))))));
?>
    
     
<fieldset>
    
    <?php 
//    LBApplicationUI::backButton(Yii::app()->createUrl('configuration/index'), false);
?>
    
        <?php 
echo '<div class="btn-toolbar" id ="new_item">';
LBApplicationUI::newButton('New Item', array());
echo '</div>';
示例#10
0
<?php

/* @var $this DefaultControllersController */
/* @var $model LbEmployee */
$this->breadcrumbs = array('Lb Employees' => array('index'), $model->lb_record_primary_key => array('view', 'id' => $model->lb_record_primary_key), 'Update');
echo '<div id="lb-container-header">';
echo '<div class="lb-header-right" style="margin-left:-11px;"><h3>' . Yii::t('lang', 'Employee') . '</h3></div>';
echo '<div class="lb-header-left">';
LBApplicationUI::backButton($model->getActionModuleURL('default', 'Dashboard'));
echo '&nbsp;';
// new
echo '</div>';
echo '</div>';
$this->menu = array(array('label' => 'List LbEmployee', 'url' => array('index')), array('label' => 'Create LbEmployee', 'url' => array('create')), array('label' => 'View LbEmployee', 'url' => array('view', 'id' => $model->lb_record_primary_key)), array('label' => 'Manage LbEmployee', 'url' => array('admin')));
?>
<div style="width:30%;margin-top:19px;margin-bottom:11px;"><span style="font-size: 16px;"><b><?php 
echo $model->employee_name;
?>
</b></span></div>


<?php 
$this->renderPartial('_form', array('model' => $model));