Ejemplo n.º 1
0
 public function actionAdmin()
 {
     $model = new UserPlan('search');
     $model->unsetAttributes();
     if (isset($_GET['UserPlan'])) {
         $model->setAttributes($_GET['UserPlan']);
     }
     $this->render('admin', array('model' => $model));
 }
Ejemplo n.º 2
0
        <div class="pad020"><a href="#" onclick="hideTotals();return false;"><?php 
echo _('( hide totals )');
?>
</a></div>
    </td><td class="layout_rcolumn">
        <div id="email_msg" style="display:none">
            <div style="margin-left:0px;" class="messages_unauthorized marginright">
                <?php 
echo _('Sending Emails......');
?>
            </div>
        </div>
        <div class="banner40 pad020 text34">         
<?php 
echo _('Invoices');
$do_inv_limit = new UserPlan();
$button_add_invoice = new DynamicButton();
if ($do_inv_limit->canUserAddInvoice()) {
    echo '<div class="right_20_top_0">', $button_add_invoice->CreateButton('/invoice_add.php', _('create new invoice'), '', '', 'dyn_button_add_new_invoice', 'width:150px;'), '</div>';
} else {
    echo '<div class="right_20_top_0">', $button_add_invoice->CreateButton('/upgrade_your_account.php?msg=' . $_SESSION['do_User']->plan . '_i', _('create new invoice'), '', '', 'dyn_button_add_new_invoice', 'width:150px;'), '</div>';
}
?>
        </div>

        <div id="inv_msgs">
		    <?php 
if ($_SESSION['inv_past_due_hide'] == 'Yes') {
    $do_invoice_check = new Invoice();
    $msg = new Message();
    if ($do_invoice_check->hasInvoices()) {
Ejemplo n.º 3
0
<?php

$this->breadcrumbs = array(
	UserPlan::label(2),
	Yii::t('app', 'Index'),
);

$this->menu = array(
	array('label'=>Yii::t('app', 'Create') . ' ' . UserPlan::label(), 'url' => array('create')),
	array('label'=>Yii::t('app', 'Manage') . ' ' . UserPlan::label(2), 'url' => array('admin')),
);
?>

<h1><?php echo GxHtml::encode(UserPlan::label(2)); ?></h1>

<?php $this->widget('zii.widgets.CListView', array(
	'dataProvider'=>$dataProvider,
	'itemView'=>'_view',
)); 
Ejemplo n.º 4
0
<?php 
$thistab = _('Contacts');
include_once 'includes/ofuz_navtabs.php';
?>

<?php 
$do_breadcrumb = new Breadcrumb();
$do_breadcrumb->getBreadcrumbs();
?>
    <div class="grayline1"></div>
    <div class="spacerblock_20"></div>
    <table class="layout_columns"><tr><td class="layout_lcolumn">
        <div class="left_text_links">
<?php 
$button_new_contact = new DynamicButton();
$do_contact_limit = new UserPlan();
if ($do_contact_limit->canUserAddContact()) {
    echo $button_new_contact->CreateButton('/contact_add.php', _('add new contact'), '', '', 'dyn_button_add_new_contact');
} else {
    echo $button_new_contact->CreateButton('/upgrade_your_account.php?msg=' . $_SESSION['do_User']->plan . '_c', _('add new contact'), '', '', 'dyn_button_add_new_contact');
}
?>
            <!-- hide for now as its counter intuitive when we do not have listing of companies 
            <br /><br />
            <a href="company_add.php"><?php 
echo _('Add a new company');
?>
</a> //-->
        </div><br /><br />
        <?php 
$GLOBALS['page_name'] = 'contacts';
Ejemplo n.º 5
0
		<div class="row">
		<?php echo $form->labelEx($model,'fono'); ?>
		<?php echo $form->textField($model, 'fono', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'fono'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'mail'); ?>
		<?php echo $form->textField($model, 'mail', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'mail'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'username'); ?>
		<?php echo $form->textField($model, 'username', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'username'); ?>
		</div><!-- row -->
		<div class="row">
		<?php echo $form->labelEx($model,'password'); ?>
		<?php echo $form->passwordField($model, 'password', array('maxlength' => 45)); ?>
		<?php echo $form->error($model,'password'); ?>
		</div><!-- row -->

		<label><?php echo GxHtml::encode($model->getRelationLabel('locals')); ?></label>
		<?php echo $form->checkBoxList($model, 'locals', GxHtml::encodeEx(GxHtml::listDataEx(Local::model()->findAllAttributes(null, true)), false, true)); ?>
		<label><?php echo GxHtml::encode($model->getRelationLabel('userPlans')); ?></label>
		<?php echo $form->checkBoxList($model, 'userPlans', GxHtml::encodeEx(GxHtml::listDataEx(UserPlan::model()->findAllAttributes(null, true)), false, true)); ?>

<?php
echo GxHtml::submitButton(Yii::t('app', 'Save'));
$this->endWidget();
?>
</div><!-- form -->